Solving USB Sierra Wireless 305 error on UBUNTU


Good Morning….

Well, After frustated about error on my USB Sierra 305 lightning after first succesfull connection by networkmanager on my ubuntu 10.10. Finally found the problem.

Okay lets talk about the problem. On first connection issue, it’s really2 worked and my device automatically connected to gsm network. But When I try on the next day, got frustated because i can’t connect the modem to the network. I’m trying to figure out what is the problem by tailing /var/log/syslog and found that network manager used /dev/ttyUSB2 for ppp connection.


Feb 17 23:51:46 MS-1453 pppd[2430]: Using interface ppp0
Feb 17 23:51:46 MS-1453 pppd[2430]: Connect: ppp0 <--> /dev/ttyUSB2
Feb 17 23:51:46 MS-1453 NetworkManager[1172]:    SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
Feb 17 23:51:46 MS-1453 NetworkManager[1172]:    SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/ppp0, iface: ppp0): no ifupdown configuration found.
Feb 17 23:52:06 MS-1453 NetworkManager[1172]: <warn> pppd timed out or didn't initialize our dbus module
Feb 17 23:52:06 MS-1453 NetworkManager[1172]: <info> (ttyUSB2): device state change: 7 -> 9 (reason 5)
Feb 17 23:52:06 MS-1453 pppd[2430]: Terminating on signal 15
Feb 17 23:52:06 MS-1453 NetworkManager[1172]: <info> Marking connection '3 connection 1' invalid.
Feb 17 23:52:06 MS-1453 NetworkManager[1172]: <warn> Activation (ttyUSB2) failed.
Feb 17 23:52:06 MS-1453 NetworkManager[1172]: <info> (ttyUSB2): device state change: 9 -> 3 (reason 0)
Feb 17 23:52:06 MS-1453 NetworkManager[1172]: <info> (ttyUSB2): deactivating device (reason: 0).
Feb 17 23:52:06 MS-1453 modem-manager: Modem /org/freedesktop/ModemManager/Modems/0: state changed (connected -> disconnecting)
Feb 17 23:52:06 MS-1453 modem-manager: Invalid error code: -1
Feb 17 23:52:06 MS-1453 modem-manager: Got failure code 100: Unknown error

When I use wvdialconf found that the modem works on /dev/ttyUSB0, so that’s why network manager can’t connect to internet. Finally i use the wvdial and it works great but I’m not statisfied with it. lookin around on google and ubuntu forums, still doesn’t found solved problems. Problem Solved when I read a page about writing udev.rules. So I Have to add some rules on udev.rules but package called usb-modeswitch needed because Several new USB devices have their proprietary Windows drivers onboard, especially WAN dongles. When plugged in for the first time, they act like a flash storage and start installing the driver from there. If the driver is already installed, the storage device vanishes and a new device, such as an USB modem, shows up. This is called the “ZeroCD” feature. usb-modeswitch solves that issue by sending the command which actually performs the switching of the device from “usb-storage” to “usbserial”.

So, the steps are :
1. Install usb-modeswitch package

apt-get install usb-modeswitch

2.View usb vendor and product id

lsusb
Bus 002 Device 002: ID 046d:c058 Logitech, Inc.
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 007: ID 1199:68a3 Sierra Wireless, Inc.
Bus 001 Device 004: ID 064e:a101 Suyin Corp. Acer CrystalEye Webcam

Based on the information we got that  the modem have vendor id 1199 and product id 68a3

3. Add udev.rules

nano /etc/udev/rules.d/70-sierra-305

#add this line

ATTRS{idVendor}=="1199", ATTRS{idProduct}=="68a3", RUN+="usb_modeswitch '%b/%k'"

Try connecting to the internet using network manager and it should be worked… It works for me on my Ubuntu 10.04 i386 and Ubuntu 10.10 amd64.

That’s all folks, Hope this helpfull and sorry for my english bad…..

Happy Trying

Leave a comment