| Author |
Message |
BarryK
Puppy Master

Joined: 09 May 2005 Posts: 6866 Location: Perth, Western Australia
|
Posted: Fri 03 Dec 2010, 20:37 Post subject:
3G USB modem test request |
|
3G USB modems can have multiple /dev/ttyUSB[n] ports.
Here is a test that works for my Optus Huawei E160E modem:
http://bkhome.org/blog/?viewDetailed=02011
...see blog post, there is a request, does this work for your 3G modem?
_________________ http://bkhome.org/blog2/
|
|
Back to top
|
|
 |
zygo
Joined: 08 Apr 2006 Posts: 206 Location: UK
|
Posted: Fri 03 Dec 2010, 21:32 Post subject:
|
|
Barry,
Pristine boot of Q130: hotpluged Huawei E1550 has 3 /dev/ttyUSB items
/dev/ttyUSB0 and /dev/ttyUSB2 return imediately with the blank line and OK but /dev/ttyUSB1 does not return for at least 4 minutes. I connect with /dev/ttyUSB0.
Now where is that P431 CD...
|
|
Back to top
|
|
 |
zygo
Joined: 08 Apr 2006 Posts: 206 Location: UK
|
Posted: Fri 03 Dec 2010, 21:49 Post subject:
|
|
Pristine boot of Puppy 431: hotpluged Huawei E1550 - no /dev/ttyUSB[n] port.
|
|
Back to top
|
|
 |
Karl Godt

Joined: 20 Jun 2010 Posts: 2682 Location: Kiel,Germany
|
Posted: Fri 03 Dec 2010, 22:44 Post subject:
|
|
while connected on asus eeepc 1005 with integrated huawei modem the modem-stats -c "ATZ" /dev/ttyUSB* shows the following :
# modem-stats -c "ATZ" /dev/ttyUSB0 > no output
# modem-stats -c "ATZ" /dev/ttyUSB1 > blinking cursor (hangs, escaping by Cntr C)
# modem-stats -c "ATZ" /dev/ttyUSB2
OK
# modem-stats -c "ATZ" /dev/ttyUSB3
modem-stats: Can't open /dev/ttyUSB3 for reading and writing.
Usage: modem-stats [-c command] [-e end_string] device
The acer extensa5230E with huawei K3715 USB-Pen while not connected shows following :
# modem-stats -c "ATZ" /dev/ttyUSB0
OK
# modem-stats -c "ATZ" /dev/ttyUSB1 > blinking cursor (hangs, escaping by Cntr C)
# modem-stats -c "ATZ" /dev/ttyUSB0
OK
and some minutes later
23 lines with ^BOOT
3 lines with ^RSSI
OK
# modem-stats -c "ATZ" /dev/ttyUSB3
modem-stats: Can't open /dev/ttyUSB3 for reading and writing.
Usage: modem-stats [-c command] [-e end_string] device
Both Net and LapTopBook are connecting fine on ttyUSB0 by pgprs-shell -connect with two telephone companies.
There seems to be no difference between ATZ and ATV1Z here but it seems that the output at ttyUSB2 differs each time :
sometimes many lines with ^BOOT \n OK
sometimes one line with ^BOOT \n OK
the next try no ^BOOT \n OK
and another try one A \n(\n) OK
I remasterd these two dpup-005 and they don't show the fourth ttyUSB3 ....
PUPPY lsusb on asus :
# lsusb
Bus 001 Device 001: ID 1d6b:0002
Bus 002 Device 001: ID 1d6b:0001
Bus 003 Device 001: ID 1d6b:0001
Bus 004 Device 001: ID 1d6b:0001
Bus 005 Device 001: ID 1d6b:0001
Bus 001 Device 003: ID 13d3:5108
Bus 001 Device 005: ID 12d1:1001
Bus 002 Device 002: ID 046d:c51b
installed debian squeeze /root/Downloads/usbutils_0.87-5_i386.deb
# lsusb -t
Bus# 5
`-Dev# 1 Vendor 0x1d6b Product 0x0001
Bus# 4
`-Dev# 1 Vendor 0x1d6b Product 0x0001
Bus# 3
`-Dev# 1 Vendor 0x1d6b Product 0x0001
Bus# 2
`-Dev# 1 Vendor 0x1d6b Product 0x0001
`-Dev# 2 Vendor 0x046d Product 0xc51b
Bus# 1
`-Dev# 1 Vendor 0x1d6b Product 0x0002
|-Dev# 3 Vendor 0x13d3 Product 0x5108
`-Dev# 5 Vendor 0x12d1 Product 0x1001
# usb-devices ( cat /proc/bus/usb/devices )
T: Bus=01 Lev=01 Prnt=01 Port=07 Cnt=02 Dev#= 5 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=12d1 ProdID=1001 Rev=00.00
S: Manufacturer=HUAWEI Technology
S: Product=HUAWEI Mobile
C: #Ifs= 3 Cfg#= 1 Atr=e0 MxPwr=500mA
I: If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
I: If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
I: If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
# grep huawei /proc/*
/proc/kallsyms:f8139250 t usb_stor_huawei_e220_init [usb_storage]
|
|
Back to top
|
|
 |
nap44
Joined: 08 Aug 2007 Posts: 108
|
Posted: Sat 04 Dec 2010, 02:29 Post subject:
3G test result |
|
Acer 5220 Laptop.
Huwae E1762 modem
Optus Carrier
Lupu-510 (Lucid Puppy)
Modem recognised on desktop as SR1 whether hot plugged or inserted at boot up.
No internet connection established prior to testing.
Typed in terminal:
modem-stats -c "ATZ" /dev/ttyUSB0 and then substituted USB1, 2 and 3 for 0.
Results over several tests:
USB0
Blank line
OK
USB1
Blank line
OK
USB2 and USB3
modem-stats: can't open /dev/ttyUSB2 (3) for reading and writing.
Usage: modem-stats [-c command] [-e end_string] device
Also just noticed that the Lock and Zip icons on the desktop are superimposed over one another, but that would be a separate issue.
HTH,
Cheers!
|
|
Back to top
|
|
 |
BarryK
Puppy Master

Joined: 09 May 2005 Posts: 6866 Location: Perth, Western Australia
|
Posted: Sat 04 Dec 2010, 05:19 Post subject:
|
|
Do you have a 3G modem that uses the 'hso.ko' driver?
If so, you can help out, I have posted another request:
http://bkhome.org/blog/?viewDetailed=02012
_________________ http://bkhome.org/blog2/
|
|
Back to top
|
|
 |
rerwin

Joined: 24 Aug 2005 Posts: 1318 Location: Maine, USA
|
Posted: Sat 04 Dec 2010, 18:30 Post subject:
|
|
Barry,
Please note that the usb_modeswitch package includes a udev rule that creates symlinks to the ttyUSB ports that are likely to work. If multiple candidates are detected, your only task is to distinguish which is the full data port. My implementation merely picks one (now, the highest), but your new logic can make that decision. The symlinks are created regardless of the need for a mode switch, it appears to me. The rule: | Code: | # This adds a symlink "gsmmodem[n]" to ttyUSB ports with interrupt transfer;
# will work only with wrapper from 1.1.4 and above (otherwise ignored)
KERNEL=="ttyUSB*", DRIVERS=="option1|usbserial", PROGRAM="/usr/bin/tclsh /usr/sbin/usb_modeswitch_dispatcher --symlink-name %p", SYMLINK="%c"
| "dispatcher --symlink-name" provides the ttyUSB port for the link.
Richard
|
|
Back to top
|
|
 |
BarryK
Puppy Master

Joined: 09 May 2005 Posts: 6866 Location: Perth, Western Australia
|
Posted: Sat 04 Dec 2010, 19:20 Post subject:
|
|
| rerwin wrote: | Barry,
Please note that the usb_modeswitch package includes a udev rule that creates symlinks to the ttyUSB ports that are likely to work. If multiple candidates are detected, your only task is to distinguish which is the full data port. My implementation merely picks one (now, the highest), but your new logic can make that decision. The symlinks are created regardless of the need for a mode switch, it appears to me. The rule: | Code: | # This adds a symlink "gsmmodem[n]" to ttyUSB ports with interrupt transfer;
# will work only with wrapper from 1.1.4 and above (otherwise ignored)
KERNEL=="ttyUSB*", DRIVERS=="option1|usbserial", PROGRAM="/usr/bin/tclsh /usr/sbin/usb_modeswitch_dispatcher --symlink-name %p", SYMLINK="%c"
| "dispatcher --symlink-name" provides the ttyUSB port for the link.
Richard |
Richard,
I don't know why, but this does not work for my Optus Huawei E160E modem. This is the only modem I have right now.
When I get my hands on more 3G modems, I will see if they create the links.
_________________ http://bkhome.org/blog2/
|
|
Back to top
|
|
 |
alec78
Joined: 18 Mar 2010 Posts: 47
|
Posted: Sun 05 Dec 2010, 12:18 Post subject:
|
|
Samsung X05
Huawei E169G
luci_241
First boot of luci_241 with E169 inserted.
/dev showed all three ttyUSB0,1 and 2 present.
/var/log/messages also reports that the option module had been installed.
Opened up the terminal and typed "modem-stats-c "ATV1Z" /dev/ttyUSB0" , response " command not found".
Does this command need the dev.sfs package installed to function?
Fired up PupDial and was pleasantly surprised to see that it was already set up on the ttyUSB0 port rather than the onboard dial-up modem.
Posting this now from luci_241 using the E169 modem.
|
|
Back to top
|
|
 |
JIGNESH_MODI
Joined: 05 Mar 2009 Posts: 40 Location: Pune (India)
|
Posted: Fri 31 Dec 2010, 13:15 Post subject:
|
|
i m using bsnl 3g datacard plz help me in connecting internet......
thans in advance
|
|
Back to top
|
|
 |
BarryK
Puppy Master

Joined: 09 May 2005 Posts: 6866 Location: Perth, Western Australia
|
Posted: Sat 01 Jan 2011, 20:23 Post subject:
|
|
| JIGNESH_MODI wrote: | i m using bsnl 3g datacard plz help me in connecting internet......
thans in advance  |
There has been a lot of water under the bridge since this thread was started.
Wary Puppy 5.0 has my latest 3G modem code. Download Wary and give it a spin:
http://bkhome.org/blog/?viewDetailed=02057
And monitor my blog for further progress.
_________________ http://bkhome.org/blog2/
|
|
Back to top
|
|
 |
JIGNESH_MODI
Joined: 05 Mar 2009 Posts: 40 Location: Pune (India)
|
Posted: Sun 02 Jan 2011, 00:09 Post subject:
|
|
i have try it , it detects modem but not conecting,
my apn is = bsnlnet
but what is intialising string3 i place??
|
|
Back to top
|
|
 |
JIGNESH_MODI
Joined: 05 Mar 2009 Posts: 40 Location: Pune (India)
|
Posted: Sun 02 Jan 2011, 00:33 Post subject:
|
|
if possible plz post video tutorial or step by step image tutorial, this will help idiots like me, and use more puppy.. thanks in advance...
|
|
Back to top
|
|
 |
JIGNESH_MODI
Joined: 05 Mar 2009 Posts: 40 Location: Pune (India)
|
Posted: Sun 02 Jan 2011, 01:42 Post subject:
|
|
some good news= i have connected by nokia e63 modem in pc suit mode my apn is tata.docomo.internet
but i cannot connected by 3g usb datacard of bsnl
wish i could connect by 3g usb modem as early as possible by help of u
i interested in connecting usb 3g because it give me speed of 2.5-3.6 mbs
hope u solve it...
Wary 500 rocks it detects 3G usb modem but fails to connect....
all other puplets,puppys r not detect it....
hope this will solves all issues in other new release...
if it is solved....INDIA will rock..............
|
|
Back to top
|
|
 |
JIGNESH_MODI
Joined: 05 Mar 2009 Posts: 40 Location: Pune (India)
|
Posted: Sun 02 Jan 2011, 01:52 Post subject:
|
|
i think with the combination of gprs setup & Dialup modemsetup U can solve this properly...
i can't do it by my self because i m not professional, but learn through watch and common scene and do......hope u solve it properly...
for this bsnl 3g usb datacard modem u can also search in ubuntu 10.4 for how to connect....and than give step by step conf in wary 5 so i will do as per your instruction...thanks in advance..
hope all izz well..
|
|
Back to top
|
|
 |
|