Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a BusyBox system running on kernel 3.1.12 and I would like to establish a ppp connection using my Sierra Wireless AirCar (313U).
I tried a usb_modeswitch and dial afterwards but it doesn't seem to be able to creat the symlink. Any clues or suggestionswould be appreciated! Thank you!
Code:
# usb_modeswitch --default-vendor=0x1199 -default-product=0x68aa --target-vendor
=0x1199 --target-product=0x6856
* usb_modeswitch: handle USB devices with multiple modes
* Version 1.2.3 (C) Josua Dietze 2012
* Based on libusb0 (0.1.12 and above)
! PLEASE REPORT NEW CONFIGURATIONS !
# pppd call gsm
pppd: In file /etc/ppp/peers/gsm: unrecognized option '/dev/ttyUSB0'
Replace what exactly and for what else?
But before going there, I would like to hammer away on what I have now. When I plug in my little LTE Busb adapter, I do a lksusb I get:
Code:
# lsusb
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 005: ID 1199:68aa Sierra Wireless, Inc.
and I would assume, that I need to do a usb_modeswitch first. Doing this:
Code:
# usb_modeswitch --default-vendor=0x1199 -default-product=0x68aa --target-vendor
=0x1199 --target-product=0x6856
* usb_modeswitch: handle USB devices with multiple modes
* Version 1.2.3 (C) Josua Dietze 2012
* Based on libusb0 (0.1.12 and above)
! PLEASE REPORT NEW CONFIGURATIONS !
I first thought "YES! I got it" but another lsusb disappointingly shows the same as above. How do I know which product ID I have to switch the thing to?
Code:
# lsusb
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 1199:68aa Sierra Wireless, Inc.
Then configure it using some ppp utility and it might work.
Alright, but how do I know which device I have access with pppd? There's no /dev/modem link... and while I load the driver with modprobe, I don't see any messages in syslog. When I plug in the guy I get this from dmseg:
Code:
[ 5779.510000] usb 1-1: new full speed USB device number 6 using at91_ohci
[ 5779.680000] usb 1-1: config 1 has an invalid interface number: 9 but max is 0
[ 5779.690000] usb 1-1: config 1 has no interface number 0
[ 5779.710000] usb 1-1: New USB device found, idVendor=1199, idProduct=0fff
[ 5779.720000] usb 1-1: New USB device strings: Mfr=3, Product=2, SerialNumber=4
[ 5779.720000] usb 1-1: Product: USB MMC Storage
[ 5779.730000] usb 1-1: Manufacturer: Sierra Wireless, Incorporated
[ 5779.730000] usb 1-1: SerialNumber: SWOC22905731
[ 5779.760000] usb-storage: probe of 1-1:1.9 failed with error -5
[ 5782.790000] usb 1-1: USB disconnect, device number 6
[ 5783.210000] usb 1-1: new full speed USB device number 7 using at91_ohci
[ 5783.380000] usb 1-1: config 1 has an invalid interface number: 9 but max is 6
[ 5783.390000] usb 1-1: config 1 has an invalid interface number: 7 but max is 6
[ 5783.390000] usb 1-1: config 1 has no interface number 5
[ 5783.400000] usb 1-1: config 1 has no interface number 6
[ 5783.430000] usb 1-1: New USB device found, idVendor=1199, idProduct=68aa
[ 5783.430000] usb 1-1: New USB device strings: Mfr=3, Product=2, SerialNumber=4
[ 5783.440000] usb 1-1: Product: AirCard 313U
[ 5783.450000] usb 1-1: Manufacturer: Sierra Wireless, Incorporated
[ 5783.450000] usb 1-1: SerialNumber: 012698000051158
[ 5783.480000] scsi5 : usb-storage 1-1:1.9
[ 5784.500000] scsi 5:0:0:0: Direct-Access SWI SD Card 2.31 PQ: 0 ANSI: 2
[ 5784.540000] scsi: killing requests for dead queue
[ 5784.540000] sd 5:0:0:0: [sda] Attached SCSI removable disk
[ 5784.550000] scsi: killing requests for dead queue
[ 5784.570000] scsi: killing requests for dead queue
[ 5784.570000] scsi: killing requests for dead queue
[ 5784.580000] scsi: killing requests for dead queue
[ 5784.610000] scsi: killing requests for dead queue
[ 5784.610000] scsi: killing requests for dead queue
[ 5784.620000] scsi: killing requests for dead queue
But nothing upon usb_modeswitch (usb_modeswitch --default-vendor=0x1199 -default-product=0x68aa --target-vendor
=0x1199 --target-product=0x6856)nor modprobe(modprobe usbserial vendor=0x1199 product=0x68aa)...
Look for '/dev/USBtty#'. Typicially it is '/dev/USBtty0'.
I have a file " /etc/ppp/peers/gsm" that looks like this:
Code:
# cat /etc/ppp/peers/gsm
-detach
lcp-echo-failure 0
/dev/ttyUSB1
115200
debug
defaultroute
usepeerdns
#ipcp-no-address
#ipcp-no-addresses
ipcp-max-failure 4
ipcp-accept-local
ipcp-accept-remote
# AUTHENTICATION
# If noauth works, use that, otherwise you have to pass
# the user name and password. This is an example of a
# standard Cingular user/pw combo
noauth
#user ISPDA@CINGULARGPRS.COM
#password CINGULAR1
crtscts
lock
connect '/usr/sbin/chat -v -t6 -f /etc/ppp/peers/gsm_chat'
#
i tried /dev/ttyUSB0, ttyUSB1 and ttyUSB2 in the 3rd line but I always get :
We actually switched from the Sierra wireless adapter to a huwei adapter(E372) now which seems to be better supported, I can talk to it and succesfully launch my pppd script but it gets stuck when dialing in, I get this:
Code:
# pppd call cdma
abort on (BUSY)
abort on (NO CARRIER)
abort on (VOICE)
abort on (NO DIALTONE)
abort on (NO DIAL TONE)
abort on (NO ANSWER)
abort on (DELAYED)
send (ATZ^M)
expect (OK)
alarm
send (AT^M)
expect (OK)
alarm
Failed
Script /usr/sbin/chat -v -s -f /etc/ppp/peers/cdma_chat finished (pid 691), status = 0x3
Connect script failed
Ok, got that, I needed to change /dev/ttyUSB0 to /dev/ttyUSB1 and then I get further but still get stuck at
Code:
abort on (BUSY)
abort on (NO CARRIER)
abort on (VOICE)
abort on (NO DIALTONE)
abort on (NO DIAL TONE)
abort on (NO ANSWER)
abort on (DELAYED)
send (ATZ^M)
expect (OK)
ATZ^M^M
OK
-- got it
send (AT+CGDCONT=1,"IP",^M)
expect (isp.telus.com)
^M
AT+CGDCONT=1,"IP",^M^M
OK^M
alarm
Failed
Script /usr/sbin/chat -v -s -f /etc/ppp/peers/cdma_chat finished (pid 886), status = 0x3
Connect script failed
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.