LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-03-2012, 06:20 PM   #1
cerr
LQ Newbie
 
Registered: Apr 2012
Posts: 15

Rep: Reputation: Disabled
Question Sierra Wireless AirCard 313U


Hi,

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'
 
Old 04-08-2012, 04:20 AM   #2
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
See:
http://www.linuxquestions.org/questi...-modem-923068/

Replace the vendor and product.

I have not tried this on a busybox system.
 
Old 04-10-2012, 12:18 PM   #3
cerr
LQ Newbie
 
Registered: Apr 2012
Posts: 15

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by H_TeXMeX_H View Post
See:
http://www.linuxquestions.org/questi...-modem-923068/

Replace the vendor and product.

I have not tried this on a busybox system.
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.
Thank you for any additional hints and tips!

Ron
 
Old 04-10-2012, 01:15 PM   #4
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Run:

Code:
modprobe usbserial vendor=0x1199 product=0x68aa
Then configure it using some ppp utility and it might work.
 
Old 04-10-2012, 01:43 PM   #5
cerr
LQ Newbie
 
Registered: Apr 2012
Posts: 15

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by H_TeXMeX_H View Post
Run:

Code:
modprobe usbserial vendor=0x1199 product=0x68aa
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)...

Last edited by cerr; 04-10-2012 at 01:45 PM.
 
Old 04-10-2012, 01:47 PM   #6
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Look for '/dev/USBtty#'. Typicially it is '/dev/USBtty0'.
 
Old 04-10-2012, 02:08 PM   #7
cerr
LQ Newbie
 
Registered: Apr 2012
Posts: 15

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by H_TeXMeX_H View Post
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 :
Code:
# pppd call gsm
pppd: In file /etc/ppp/peers/gsm: unrecognized option '/dev/ttyUSB0'
 
Old 04-11-2012, 04:16 AM   #8
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
An interface should be created in /dev when you modprobe usbserial. What it is named varies but is usually ttyUSB NOT USBtty.

Why not use a utility like 'pppsetup' to setup the ppp connection.

Last edited by H_TeXMeX_H; 04-11-2012 at 01:45 PM. Reason: got it backwards
 
Old 04-11-2012, 01:22 PM   #9
cerr
LQ Newbie
 
Registered: Apr 2012
Posts: 15

Original Poster
Rep: Reputation: Disabled
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
and my script looks like that:
Code:
ABORT BUSY
ABORT 'NO CARRIER'
ABORT VOICE
ABORT 'NO DIALTONE'
ABORT 'NO DIAL TONE'
ABORT 'NO ANSWER'
ABORT DELAYED
'' ATZ
OK-AT-OK AT+CGDCONT=1,"IP", "isp.telus.com"
OK-AT-OK AT+CGQREQ=1,2,4,3,6,31
OK-AT-OK AT+CGQMIN=1,2,4,3,6,31
OK-AT-OK AT+CGATT=1 OK-AT-OK ATD*99#
CONNECT ''
What's happening there exactly? Why am I not able to dial in properly?
Thanks,
Ron

Last edited by cerr; 04-11-2012 at 01:24 PM.
 
Old 04-11-2012, 01:50 PM   #10
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
You should probably check the manual for more info on what you need to configure it, or you can ask the ISP (but they usually don't support Linux).

For my huawei I had a script like:

Code:
#!/bin/sh
     TTY=/dev/ttyUSB0
     ISP=linux-evdo
     USER=linux-evdo
     /usr/sbin/pppd $TTY \
             defaultroute \
             lock \
             modem \
             name $ISP \
             user $USER \
	     kdebug 1\
	     debug \
	     usepeerdns \
             connect '/usr/sbin/chat -v -s -f /etc/ppp/chat-anydata'
chat-anydata was:

Code:
'' ATDT#777
It's probably not the same for your modem, so you need more info.

An older version of the modem used:

Code:
'' 'AT'
'OK' 'ATDT#777'
 
Old 04-11-2012, 01:54 PM   #11
cerr
LQ Newbie
 
Registered: Apr 2012
Posts: 15

Original Poster
Rep: Reputation: Disabled
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
Any clues for this?
 
Old 04-11-2012, 02:20 PM   #12
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Make sure you set the name and user or it will not connect. It should be in the manual somewhere.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
help with sierra wireless 881U aircard kmccombs Linux - Newbie 3 02-19-2009 12:26 PM
Sierra aircard 880U wireless card (3G) not working crutch52 Linux - Networking 3 03-21-2008 09:40 AM
Sierra Wireless Aircard 750 jammed rarevisitor2 Linux - Wireless Networking 5 08-13-2005 12:03 PM
Sierra Wireless Aircard 555 in linux arnekasper Linux - Wireless Networking 1 08-05-2005 01:37 PM
problem with ppp while using sierra wireless aircard 555 ashutoshs Linux - Wireless Networking 0 12-03-2004 09:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration