Hi
I was trying to get my little sharkpod working on my suse 10.2. I finally managed it with "wvdial". And this is how.
First I obtained the vendor and product codes by looking the /var/log/
messages when plugging in the modem with:
linux-ia8q:~ # tail -f /var/log/messages
Here I got:
Nov 20 13:00:09 linux-ia8q kernel: usb 3-2: new device found,
idVendor=0681, idProduct=0034
Then I modprobe for the usb device by using:
linux-ia8q:~ # modprobe usbserial -r
linux-ia8q:~ # modprobe usbserial vendor=0x681 product=0x034
/var/log/messages should return something like this:
Nov 22 22:02:50 linux-ia8q kernel: usbcore: deregistering driver usbserial
Nov 22 22:03:17 linux-ia8q kernel: usbcore: registered new driver usbserial
Nov 22 22:03:17 linux-ia8q kernel: drivers/usb/serial/usb-serial.c:
USB Serial support registered for generic
Nov 22 22:03:17 linux-ia8q kernel: usbcore: registered new driver
usbserial_generic
Nov 22 22:03:17 linux-ia8q kernel: drivers/usb/serial/usb-serial.c:
USB Serial Driver core
Next I edited /etc/wvdial.conf to look like this:
---------------------------------------------------------------------
#wvdial for sharkpod modem
[Dialer Defaults]
Phone = *99***1#
Username = none
Password = none
Stupid Mode = 1
Dial Command = ATDT
[Dialer pin]
Init1 = AT+CPIN=XXXX #(XXXX= Your Sim Card Pin)
[Dialer sharkpod]
Modem = /dev/ttyACM0
Baud = 460800
Init2 = ATZ
ISDN = 0
Modem Type = USB Modem
[Dialer internet]
Init3 = AT+CGDCONT=1,"ip","internet"
-----------------------------------------------------------------------------------------
I don't know how much of this is necessary, but i works for me.
Next I send the pin by typing: wvdial pin
linux-ia8q:/etc # wvdial pin
Here I get an error ( I am a newbie okay
),but it does not matter just ctrl C it.
--> WvDial: Internet dialer version 1.54.0
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: AT+CPIN=XXXX
AT+CPIN=XXXX
OK
--> Modem initialized.
--> Sending: ATDT*99***1#
--> Waiting for carrier.
ATDT*99***1#
ERROR
--> Voice line detected. Trying again.
--> Sending: ATDT*99***1#
--> Waiting for carrier.
ATDT*99***1#
ERROR
--> Voice line detected. Trying again.
--> Sending: ATDT*99***1#
--> Waiting for carrier.
ATDT*99***1#
ERROR
--> Voice line detected. Trying again.
--> Sending: ATDT*99***1#
--> Waiting for carrier.
ATDT*99***1#
Once I ctrl C this I type
linux-ia8q:/etc # wvdial internet
This results in:
linux-ia8q:/etc # wvdial internet
--> WvDial: Internet dialer version 1.54.0
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: AT+CGDCONT=1,"ip","internet"
AT+CGDCONT=1,"ip","internet"
OK
--> Modem initialized.
--> Sending: ATDT*99***1#
--> Waiting for carrier.
ATDT*99***1#
CONNECT
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Thu Nov 22 22:03:57 2007
--> pid of pppd: 13169
--> Using interface ppp0
--> pppd: ialer pin
--> pppd: ialer pin
--> pppd: ialer pin
--> pppd: ialer pin
--> local IP address 10.132.222.169
--> pppd: ialer pin
--> remote IP address 10.0.0.1
--> pppd: ialer pin
--> primary DNS address 196.38.218.4
--> pppd: ialer pin
--> secondary DNS address 196.38.218.5
--> pppd: ialer pin
--> Script /etc/ppp/ip-up run successful
--> Default route Ok.
--> Nameserver (DNS) Ok.
--> Connected... Press Ctrl-C to disconnect
--> pppd: ialer pin
I am able to connect and disconnect without have to send the pin
again. I am a newbie at this linux thing (thats why there is an error
after wvdial pin) and stuff) This solution is combination of several websites
that only works for me as a sum of all the parts.
I am now going to learn bash scripts so I don't have to do this every
time I want to connect the modem.
I was trying to get my little sharkpod working on my suse 10.2. I finally managed it with "wvdial". And this is how.
First I obtained the vendor and product codes by looking the /var/log/
messages when plugging in the modem with:
linux-ia8q:~ # tail -f /var/log/messages
Here I got:
Nov 20 13:00:09 linux-ia8q kernel: usb 3-2: new device found,
idVendor=0681, idProduct=0034
Then I modprobe for the usb device by using:
linux-ia8q:~ # modprobe usbserial -r
linux-ia8q:~ # modprobe usbserial vendor=0x681 product=0x034
/var/log/messages should return something like this:
Nov 22 22:02:50 linux-ia8q kernel: usbcore: deregistering driver usbserial
Nov 22 22:03:17 linux-ia8q kernel: usbcore: registered new driver usbserial
Nov 22 22:03:17 linux-ia8q kernel: drivers/usb/serial/usb-serial.c:
USB Serial support registered for generic
Nov 22 22:03:17 linux-ia8q kernel: usbcore: registered new driver
usbserial_generic
Nov 22 22:03:17 linux-ia8q kernel: drivers/usb/serial/usb-serial.c:
USB Serial Driver core
Next I edited /etc/wvdial.conf to look like this:
---------------------------------------------------------------------
#wvdial for sharkpod modem
[Dialer Defaults]
Phone = *99***1#
Username = none
Password = none
Stupid Mode = 1
Dial Command = ATDT
[Dialer pin]
Init1 = AT+CPIN=XXXX #(XXXX= Your Sim Card Pin)
[Dialer sharkpod]
Modem = /dev/ttyACM0
Baud = 460800
Init2 = ATZ
ISDN = 0
Modem Type = USB Modem
[Dialer internet]
Init3 = AT+CGDCONT=1,"ip","internet"
-----------------------------------------------------------------------------------------
I don't know how much of this is necessary, but i works for me.
Next I send the pin by typing: wvdial pin
linux-ia8q:/etc # wvdial pin
Here I get an error ( I am a newbie okay
--> WvDial: Internet dialer version 1.54.0
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: AT+CPIN=XXXX
AT+CPIN=XXXX
OK
--> Modem initialized.
--> Sending: ATDT*99***1#
--> Waiting for carrier.
ATDT*99***1#
ERROR
--> Voice line detected. Trying again.
--> Sending: ATDT*99***1#
--> Waiting for carrier.
ATDT*99***1#
ERROR
--> Voice line detected. Trying again.
--> Sending: ATDT*99***1#
--> Waiting for carrier.
ATDT*99***1#
ERROR
--> Voice line detected. Trying again.
--> Sending: ATDT*99***1#
--> Waiting for carrier.
ATDT*99***1#
Once I ctrl C this I type
linux-ia8q:/etc # wvdial internet
This results in:
linux-ia8q:/etc # wvdial internet
--> WvDial: Internet dialer version 1.54.0
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: AT+CGDCONT=1,"ip","internet"
AT+CGDCONT=1,"ip","internet"
OK
--> Modem initialized.
--> Sending: ATDT*99***1#
--> Waiting for carrier.
ATDT*99***1#
CONNECT
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Thu Nov 22 22:03:57 2007
--> pid of pppd: 13169
--> Using interface ppp0
--> pppd: ialer pin
--> pppd: ialer pin
--> pppd: ialer pin
--> pppd: ialer pin
--> local IP address 10.132.222.169
--> pppd: ialer pin
--> remote IP address 10.0.0.1
--> pppd: ialer pin
--> primary DNS address 196.38.218.4
--> pppd: ialer pin
--> secondary DNS address 196.38.218.5
--> pppd: ialer pin
--> Script /etc/ppp/ip-up run successful
--> Default route Ok.
--> Nameserver (DNS) Ok.
--> Connected... Press Ctrl-C to disconnect
--> pppd: ialer pin
I am able to connect and disconnect without have to send the pin
again. I am a newbie at this linux thing (thats why there is an error
after wvdial pin) and stuff) This solution is combination of several websites
that only works for me as a sum of all the parts.
I am now going to learn bash scripts so I don't have to do this every
time I want to connect the modem.