3g - Mobile ISP

Discuss the technical details of Gargoyle and ongoing development

Moderator: Moderators

ispyisail
Moderator
Posts: 5194
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: 3g - Mobile ISP

Post by ispyisail »

Code: Select all

usb 1-1: new high speed USB device using ar71xx-ehci and address 4
usb 1-1: configuration #1 chosen from 1 choice
option 1-1:1.0: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
option 1-1:1.1: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
scsi2 : SCSI emulation for USB Mass Storage devices
option 1-1:1.3: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
scsi 2:0:0:0: Direct-Access     ZTE      MMC Storage      322  PQ: 0 ANSI: 2
sd 2:0:0:0: [sdb] Attached SCSI removable disk
USB0 correct?

Code: Select all

/dev/ttyUSB0

ispyisail
Moderator
Posts: 5194
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: 3g - Mobile ISP

Post by ispyisail »

Code: Select all

P:  Vendor=19d2 ProdID=0031 Rev= 0.00
S:  Manufacturer=ZTE, Incorporated

ispyisail
Moderator
Posts: 5194
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: 3g - Mobile ISP

Post by ispyisail »

Image

results in

Code: Select all

Dec  5 06:44:18 Gargoyle local2.info chat[9082]: abort on (BUSY)
Dec  5 06:44:18 Gargoyle local2.info chat[9082]: abort on (NO CARRIER)
Dec  5 06:44:18 Gargoyle local2.info chat[9082]: abort on (ERROR)
Dec  5 06:44:18 Gargoyle local2.info chat[9082]: report (CONNECT)
Dec  5 06:44:18 Gargoyle local2.info chat[9082]: timeout set to 10 seconds
Dec  5 06:44:18 Gargoyle local2.info chat[9082]: send (AT&F^M)
Dec  5 06:44:28 Gargoyle local2.info chat[9082]: alarm
Dec  5 06:44:28 Gargoyle local2.info chat[9082]:  -- write timed out
Dec  5 06:44:28 Gargoyle local2.err chat[9082]: Failed
Dec  5 06:44:28 Gargoyle daemon.err pppd[4497]: Connect script failed

Cezary
Posts: 135
Joined: Thu Sep 11, 2008 12:57 pm
Location: Poland
Contact:

Re: 3g - Mobile ISP

Post by Cezary »

Or try /dev/ttyUSB1. Show me /proc/bus/usb/devices

ispyisail
Moderator
Posts: 5194
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: 3g - Mobile ISP

Post by ispyisail »

Code: Select all

root@Gargoyle:~# /proc/bus/usb/devices
-ash: /proc/bus/usb/devices: Permission denied

ispyisail
Moderator
Posts: 5194
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: 3g - Mobile ISP

Post by ispyisail »

/dev/ttyUSB0

and

/dev/ttyUSB1

Both don't work

Cezary
Posts: 135
Joined: Thu Sep 11, 2008 12:57 pm
Location: Poland
Contact:

Re: 3g - Mobile ISP

Post by Cezary »

cat /proc/bus/usb/devices ...

ispyisail
Moderator
Posts: 5194
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: 3g - Mobile ISP

Post by ispyisail »

Code: Select all

root@Gargoyle:~# cat /proc/bus/usb/devices

T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0001 Rev= 2.06
S:  Manufacturer=Linux 2.6.32.27 ohci_hcd
S:  Product=Atheros AR71xx built-in OHCI controller
S:  SerialNumber=ar71xx-ohci
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 2
B:  Alloc=  1/800 us ( 0%), #Int=  1, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 2.06
S:  Manufacturer=Linux 2.6.32.27 ehci_hcd
S:  Product=Atheros AR71xx built-in EHCI controller
S:  SerialNumber=ar71xx-ehci
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  3 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=19d2 ProdID=0031 Rev= 0.00
S:  Manufacturer=ZTE, Incorporated
S:  Product=ZTE CDMA Technologies MSM
S:  SerialNumber=1234567890ABCDEF
C:* #Ifs= 4 Cfg#= 1 Atr=a0 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 0 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
I:  If#= 0 Alt= 1 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 1 Alt= 0 #EPs= 0 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
I:  If#= 1 Alt= 1 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E:  Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 2 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E:  Ad=84(I) Atr=03(Int.) MxPS=  64 Ivl=2ms
E:  Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms

T:  Bus=01 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#=  2 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=05e3 ProdID=0723 Rev=94.51
S:  Manufacturer=Generic
S:  Product=USB Storage
S:  SerialNumber=000000009451
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
root@Gargoyle:~#

behappy
Posts: 85
Joined: Thu Mar 31, 2011 5:06 pm

Re: 3g - Mobile ISP

Post by behappy »

Check yr rc.local file, should be like this
# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.
ACTION=add sh /etc/hotplug.d/usb/10-usb

DEV=$(awk -F[=\ ] '/P:/ {print $4":"$6}' /proc/bus/usb/devices)
for i in $DEV; do
P="/etc/usb_modeswitch.d/$i"
if [ -f "$P" ]; then
/usr/bin/usb_modeswitch -c "$P"
fi
done

blkid > /dev/null 2>&1
blkid > /dev/null 2>&1

exit 0

It means modeswitch to usb modem

Cezary
Posts: 135
Joined: Thu Sep 11, 2008 12:57 pm
Location: Poland
Contact:

Re: 3g - Mobile ISP

Post by Cezary »

Hmm this is my script :) usb-modeswith is already included into image. And recent changes eliminate the need for this script.

Post Reply