Difference between revisions of "Idea netsetter (Huawei EG162G)"

From ArchWiki
Jump to: navigation, search
(Created page with 'Category:Communication and network (English) = Introduction = The HUAWEI EG162G is a EDGE/GPRS modem used for wireless internet access. The current kernel (2.6.29.4) has sup...')
 
m (Style updates)
(11 intermediate revisions by 5 users not shown)
Line 1: Line 1:
[[Category:Communication and network (English)]]
+
[[Category:Modems]]
 +
The HUAWEI EG162G is a EDGE/GPRS modem used for wireless internet access. Linux kernel support this at least from version 2.6.29.4 and thus setting this up is not very hard.
  
= Introduction =
+
== Plug it in ==
The HUAWEI EG162G is a EDGE/GPRS modem used for wireless internet access. The current kernel (2.6.29.4) has support for this device and thus setting this up isnt very hard
+
  
=Plug it in=
 
 
Plug in the device , wait for a few seconds and then run
 
Plug in the device , wait for a few seconds and then run
 
  $ ls /dev/ttyUSB*
 
  $ ls /dev/ttyUSB*
 
you will see something like this:
 
you will see something like this:
/dev/ttyUSB1  /dev/ttyUSB2  /dev/ttyUSB3
+
/dev/ttyUSB1  /dev/ttyUSB2  /dev/ttyUSB3
 
the first one is the port of the modem.
 
the first one is the port of the modem.
  
=Installation=
+
== Installation ==
Now install wvdial which is a dialer
+
# pacman -Sy wvdial
+
or if you dont have ppp install that too
+
# pacman -Sy wvdial ppp
+
  
=== Configure and dial ===
+
Now install {{Pkg|ppp}} and [[wvdial]], which is a dialer.
Edit your /etc/wvdial.conf and use this if you are using an idea netsetter , else use google to find the right config for your provider
+
  
[Dialer Defaults]
+
== Configure and dial ==
Modem=/dev/ttyUSB1
+
Baud = 460800
+
Init 1 = AT+CGMM
+
Init 2 = AT+CMEE=1
+
Init 3 = ATE0
+
Init 4 = AT^HS=0,0
+
Init 5 = AT+CFUN?
+
Init 6 = AT+CLCK="SC",2
+
Init 7 = AT+CPIN?
+
Init 8 = AT+CLCK="SC",2
+
Modem Type = USB MODEM
+
Phone=*99#
+
Username = idea
+
Password = idea
+
Dial Command=ATDT
+
Stupid Mode=1
+
ISDN=0
+
  
Remember that the modem might get a different port each time you plug it in so you might need to change the 'Modem=/dev/ttyUSB1' each time.
+
Edit your {{ic|/etc/wvdial.conf}} and use this if you are using an idea netsetter , else use google to find the right config for your provider
for example if the output of  $ ls /dev/ttyUSB* is /dev/ttyUSB0  /dev/ttyUSB1  /dev/ttyUSB2, then you need to change the 2nd line in the wvdial config to 'Modem=/dev/ttyUSB0'
+
 
now all you need to do is run wvdial as root
+
[Dialer Defaults]
 +
Modem=/dev/ttyUSB1
 +
Baud = 460800
 +
Init 1 = AT+CGMM
 +
Init 2 = AT+CMEE=1
 +
Init 3 = ATE0
 +
Init 4 = AT^HS=0,0
 +
Init 5 = AT+CFUN?
 +
Init 6 = AT+CLCK="SC",2
 +
Init 7 = AT+CPIN?
 +
Init 8 = AT+CLCK="SC",2
 +
Modem Type = USB MODEM
 +
Phone=*99#
 +
Username = idea
 +
Password = idea
 +
Dial Command=ATDT
 +
Stupid Mode=1
 +
ISDN=0
 +
 
 +
Remember that the modem might get a different port each time you plug it in so you might need to change the 'Modem=/dev/ttyUSB1' each time, for example if the output of  $ ls /dev/ttyUSB* is /dev/ttyUSB0  /dev/ttyUSB1  /dev/ttyUSB2, then you need to change the 2nd line in the wvdial config to 'Modem=/dev/ttyUSB0'
 +
 
 +
Now all you need to do is run wvdial as root
 
  # wvdial
 
  # wvdial
  
if you get an error 16 in wvdial it means that there is no modem present in the port specified by the config, so edit your config file accordingly
+
If you get an error 16 in wvdial it means that there is no modem present in the port specified by the config, so edit your config file accordingly.
 +
 
 +
If the connection is successfull you will see something like this:
 +
# wvdial
 +
--> WvDial: Internet dialer version 1.60
 +
--> Cannot get information for serial port.
 +
--> Initializing modem.
 +
--> Sending: ATZ
 +
ATZ
 +
OK
 +
--> Modem initialized.
 +
--> Sending: ATDT*99#
 +
--> Waiting for carrier.
 +
ATDT*99#
 +
CONNECT
 +
--> Carrier detected.  Starting PPP immediately.
 +
--> Starting pppd at Sun May 24 02:03:51 2009
 +
--> Pid of pppd: 6361
 +
--> Using interface ppp0
 +
--> pppd: è|[01]¸8A[08]È@Þ[08]
 +
--> pppd: è|[01]޸8A[08]È@Þ[08]
 +
--> pppd: è|[01]޸8AÞ[08]È@Þ[08]
 +
--> pppd: è|[01]¸8AÞ[08]È@Þ[08]
 +
--> pppd: è|[01]¸8AÞ[08]È@Þ[08]
 +
--> pppd: è|[01]¸8AÞ[08]È@Þ[08]
 +
--> local  IP address 112.110.117.241
 +
--> pppd: è|[01]¸8AÞ[08]È@Þ[08]
 +
--> remote IP address 10.64.64.64
 +
--> pppd: è|[01]¸8AÞ[08]È@Þ[08]
 +
--> primary  DNS address 10.11.12.13
 +
--> pppd: è|[01]¸8AÞ[08]È@Þ[08]
 +
--> secondary DNS address 10.11.12.14
 +
--> pppd: è|[01]¸8AÞ[08]È@Þ[08]
  
if the connection is successfull you will see something like this:
+
{{Note|If you get an error 16 in wvdial it means that there is no modem present in the port specified by the config, so edit your config file accordingly.}}
bash-3.2# wvdial
+
--> WvDial: Internet dialer version 1.60
+
--> Cannot get information for serial port.
+
--> Initializing modem.
+
--> Sending: ATZ
+
ATZ
+
OK
+
--> Modem initialized.
+
--> Sending: ATDT*99#
+
--> Waiting for carrier.
+
ATDT*99#
+
CONNECT
+
--> Carrier detected.  Starting PPP immediately.
+
--> Starting pppd at Sun May 24 02:03:51 2009
+
--> Pid of pppd: 6361
+
--> Using interface ppp0
+
--> pppd: è|[01]¸8A[08]È@Þ[08]
+
--> pppd: è|[01]޸8A[08]È@Þ[08]
+
--> pppd: è|[01]޸8AÞ[08]È@Þ[08]
+
--> pppd: è|[01]¸8AÞ[08]È@Þ[08]
+
--> pppd: è|[01]¸8AÞ[08]È@Þ[08]
+
--> pppd: è|[01]¸8AÞ[08]È@Þ[08]
+
--> local  IP address 112.110.117.241
+
--> pppd: è|[01]¸8AÞ[08]È@Þ[08]
+
--> remote IP address 10.64.64.64
+
--> pppd: è|[01]¸8AÞ[08]È@Þ[08]
+
--> primary  DNS address 10.11.12.13
+
--> pppd: è|[01]¸8AÞ[08]È@Þ[08]
+
--> secondary DNS address 10.11.12.14
+
--> pppd: è|[01]¸8AÞ[08]È@Þ[08]
+
  
but you still wont be able to surf the net unless you have a nameserver in ur resolv.conf. if you dont have a nameserver in your resolv.conf
+
You still will not be able to surf the net unless you have a nameserver in your {{ic|/etc/resolv.conf}}. In this case add this line to it:
then edit /etc/resolv.conf and add this line to it
+
nameserver 208.67.222.222
nameserver 208.67.222.222
+
  
If you are already conected to a lan then change the subnet mask of the lan to 255.0.0.0 and you should be able to use the lan and the netsetter
+
If you are already conected to a LAN then change the subnet mask of the lan to 255.0.0.0 and you should be able to use the lan and the netsetter.

Revision as of 21:36, 29 August 2013

The HUAWEI EG162G is a EDGE/GPRS modem used for wireless internet access. Linux kernel support this at least from version 2.6.29.4 and thus setting this up is not very hard.

Plug it in

Plug in the device , wait for a few seconds and then run

$ ls /dev/ttyUSB*

you will see something like this:

/dev/ttyUSB1  /dev/ttyUSB2  /dev/ttyUSB3

the first one is the port of the modem.

Installation

Now install ppp and wvdial, which is a dialer.

Configure and dial

Edit your /etc/wvdial.conf and use this if you are using an idea netsetter , else use google to find the right config for your provider

[Dialer Defaults]
Modem=/dev/ttyUSB1
Baud = 460800
Init 1 = AT+CGMM
Init 2 = AT+CMEE=1
Init 3 = ATE0
Init 4 = AT^HS=0,0
Init 5 = AT+CFUN?
Init 6 = AT+CLCK="SC",2
Init 7 = AT+CPIN?
Init 8 = AT+CLCK="SC",2
Modem Type = USB MODEM
Phone=*99#
Username = idea
Password = idea
Dial Command=ATDT
Stupid Mode=1
ISDN=0

Remember that the modem might get a different port each time you plug it in so you might need to change the 'Modem=/dev/ttyUSB1' each time, for example if the output of $ ls /dev/ttyUSB* is /dev/ttyUSB0 /dev/ttyUSB1 /dev/ttyUSB2, then you need to change the 2nd line in the wvdial config to 'Modem=/dev/ttyUSB0'

Now all you need to do is run wvdial as root

# wvdial

If you get an error 16 in wvdial it means that there is no modem present in the port specified by the config, so edit your config file accordingly.

If the connection is successfull you will see something like this:

# wvdial
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT
--> Carrier detected.  Starting PPP immediately.
--> Starting pppd at Sun May 24 02:03:51 2009
--> Pid of pppd: 6361
--> Using interface ppp0
--> pppd: è|[01]¸8A[08]È@Þ[08]
--> pppd: è|[01]޸8A[08]È@Þ[08]
--> pppd: è|[01]޸8AÞ[08]È@Þ[08]
--> pppd: è|[01]¸8AÞ[08]È@Þ[08]
--> pppd: è|[01]¸8AÞ[08]È@Þ[08]
--> pppd: è|[01]¸8AÞ[08]È@Þ[08]
--> local  IP address 112.110.117.241
--> pppd: è|[01]¸8AÞ[08]È@Þ[08]
--> remote IP address 10.64.64.64
--> pppd: è|[01]¸8AÞ[08]È@Þ[08]
--> primary   DNS address 10.11.12.13
--> pppd: è|[01]¸8AÞ[08]È@Þ[08]
--> secondary DNS address 10.11.12.14
--> pppd: è|[01]¸8AÞ[08]È@Þ[08] 
Note: If you get an error 16 in wvdial it means that there is no modem present in the port specified by the config, so edit your config file accordingly.

You still will not be able to surf the net unless you have a nameserver in your /etc/resolv.conf. In this case add this line to it:

nameserver 208.67.222.222

If you are already conected to a LAN then change the subnet mask of the lan to 255.0.0.0 and you should be able to use the lan and the netsetter.