3G USB modem test request

Message
Author
User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

3G USB modem test request

#1 Post by BarryK »

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?
[url]https://bkhome.org/news/[/url]

zygo
Posts: 243
Joined: Sat 08 Apr 2006, 20:15
Location: UK

#2 Post by zygo »

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...

zygo
Posts: 243
Joined: Sat 08 Apr 2006, 20:15
Location: UK

#3 Post by zygo »

Pristine boot of Puppy 431: hotpluged Huawei E1550 - no /dev/ttyUSB[n] port.

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#4 Post by Karl Godt »

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]

nap44
Posts: 108
Joined: Thu 09 Aug 2007, 01:52

3G test result

#5 Post by nap44 »

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!

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#6 Post by BarryK »

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
[url]https://bkhome.org/news/[/url]

User avatar
rerwin
Posts: 2017
Joined: Wed 24 Aug 2005, 22:50
Location: Maine, USA

#7 Post by rerwin »

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: Select all

# 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

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#8 Post by BarryK »

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: Select all

# 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.
[url]https://bkhome.org/news/[/url]

alec78
Posts: 49
Joined: Thu 18 Mar 2010, 18:52

#9 Post by alec78 »

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.

JIGNESH_MODI
Posts: 40
Joined: Fri 06 Mar 2009, 01:00
Location: Pune (India)
Contact:

#10 Post by JIGNESH_MODI »

i m using bsnl 3g datacard plz help me in connecting internet......
thans in advance :D :) :o

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#11 Post by BarryK »

JIGNESH_MODI wrote:i m using bsnl 3g datacard plz help me in connecting internet......
thans in advance :D :) :o
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.
[url]https://bkhome.org/news/[/url]

JIGNESH_MODI
Posts: 40
Joined: Fri 06 Mar 2009, 01:00
Location: Pune (India)
Contact:

#12 Post by JIGNESH_MODI »

i have try it , it detects modem but not conecting,
my apn is = bsnlnet
but what is intialising string3 i place??

JIGNESH_MODI
Posts: 40
Joined: Fri 06 Mar 2009, 01:00
Location: Pune (India)
Contact:

#13 Post by JIGNESH_MODI »

if possible plz post video tutorial or step by step image tutorial, this will help idiots like me, and use more puppy.. :lol: thanks in advance... :)

JIGNESH_MODI
Posts: 40
Joined: Fri 06 Mar 2009, 01:00
Location: Pune (India)
Contact:

#14 Post by JIGNESH_MODI »

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.............. :lol: :lol:

JIGNESH_MODI
Posts: 40
Joined: Fri 06 Mar 2009, 01:00
Location: Pune (India)
Contact:

#15 Post by JIGNESH_MODI »

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..

User avatar
rerwin
Posts: 2017
Joined: Wed 24 Aug 2005, 22:50
Location: Maine, USA

bnsl modem

#16 Post by rerwin »

JIGNESH_MODI,
Please post a diagnostic file so we can see what is happening. It is easy to do. Boot up with the modem plugged in (or however you are doing it) and get into pupdial. Set it up with your values and try to connect. Stop right there if it fails. Then, in a console (click the console icon), enter:
pmodemdiag
After it finishes, you can disconnect. Then find the file it produced in your root (click the home or file icon) directory. Attach that file to a message posted here. If you have already done that in some other thread, please point us to it. Thanks.
Richard

JIGNESH_MODI
Posts: 40
Joined: Fri 06 Mar 2009, 01:00
Location: Pune (India)
Contact:

#17 Post by JIGNESH_MODI »

thanks , But i m waiting for Barry k repply. & waiting for new wary Relise hope it will solve my problem...

This one? http://www.teracom.in/htmls/3G.html

Settings = APN : bsnlnet Phone : *99#

There is only *buntu install online

http://www.teracom.in/htmls/3g1.pdf

For Puppy, it's a long thread, but this is rerwin's area of specialisation

http://murga-linux.com/puppy/viewtopic.php?t=37828

You've posted in many threads, but not found this one, so use this

http://www.wellminded.com/puppy/pupsearch.html

some one give me this might helpful to [u]rerwin[/u]

JIGNESH_MODI
Posts: 40
Joined: Fri 06 Mar 2009, 01:00
Location: Pune (India)
Contact:

Re: bnsl modem

#18 Post by JIGNESH_MODI »

rerwin wrote:JIGNESH_MODI,
Please post a diagnostic file so we can see what is happening. It is easy to do. Boot up with the modem plugged in (or however you are doing it) and get into pupdial. Set it up with your values and try to connect. Stop right there if it fails. Then, in a console (click the console icon), enter:
pmodemdiag
After it finishes, you can disconnect. Then find the file it produced in your root (click the home or file icon) directory. Attach that file to a message posted here. If you have already done that in some other thread, please point us to it. Thanks.
Richard
this is what i got in wary 5 :-

--> WvDial: Internet dialer version 1.53
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Sending: AT+CGDCONT=1,"IP","bsnlnet"
AT+CGDCONT=1,"IP","bsnlnet"
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT
~[7f]}#@!}!}!} }9}#}%B#}%}(}"}'}"}"}&} } } } }%}&[1d] N)6[10]~
--> Carrier detected. Waiting for prompt.
~[7f]}#@!}!}"} }9}#}%B#}%}(}"}'}"}"}&} } } } }%}&[1d] N)z}]~
--> PPP negotiation detected.
--> Starting pppd at Tue Jan 4 07:55:15 2011
--> pid of pppd: 20277
--> Disconnecting at Tue Jan 4 07:55:16 2011
--> The PPP daemon has died: A modem hung up the phone (exit code = 16)
--> man pppd explains pppd error codes in more detail.
--> Try again and look into /var/log/messages and the wvdial and pppd man pages for more information.
--> Auto Reconnect will be attempted in 5 seconds
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Sending: AT+CGDCONT=1,"IP","bsnlnet"
AT+CGDCONT=1,"IP","bsnlnet"
OK
--> Modem initialized.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Sending: AT+CGDCONT=1,"IP","bsnlnet"
AT+CGDCONT=1,"IP","bsnlnet"
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT
~[7f]}#@!}!}!} }9}#}%B#}%}(}"}'}"}"}&} } } } }%}&`b!N
~
--> Carrier detected. Waiting for prompt.
~[7f]}#@!}!}"} }9}#}%B#}%}(}"}'}"}"}&} } } } }%}&`b!NAm~
--> PPP negotiation detected.
--> Starting pppd at Tue Jan 4 07:55:26 2011
--> pid of pppd: 20448
--> Disconnecting at Tue Jan 4 07:55:26 2011
--> The PPP daemon has died: A modem hung up the phone (exit code = 16)
--> man pppd explains pppd error codes in more detail.
--> Try again and look into /var/log/messages and the wvdial and pppd man pages for more information.
--> Auto Reconnect will be attempted in 10 seconds
--> Initializing modem.

hope u will find solution for it...
note:- i have install linux driver for it from website which is deb file , after installing that driver it detects modem
http://www.teracom.in/htmls/3G.html

JIGNESH_MODI
Posts: 40
Joined: Fri 06 Mar 2009, 01:00
Location: Pune (India)
Contact:

#19 Post by JIGNESH_MODI »

some one using 3g bsnl on other linux check how he did
http://broadbandforum.in/bsnl-broadband ... -in-linux/

User avatar
rerwin
Posts: 2017
Joined: Wed 24 Aug 2005, 22:50
Location: Maine, USA

#20 Post by rerwin »

JIGNESH_MODI,
Thanks for the URLs of some BSNL instructions. But they do not apply to puppy. Please follow my instructions in my previous message, particularly to run the pmodemdiag command at the appropriate point in time. Then post the resultant file: pmodemdiag-201101??.tar.gz, by attaching it to a message.

Please do not use any of the additional packages or .deb files you mention. I can help only if I have the data captured by pmodemdiag in a "clean" environment. One thing: be sure that "Stupid mode" is selected, because these modems won't work without that.
Richard

Post Reply