3G USB modem test request
- BarryK
- Puppy Master
- Posts: 9392
- Joined: Mon 09 May 2005, 09:23
- Location: Perth, Western Australia
- Contact:
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?
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]
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]
# 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]
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!
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!
- BarryK
- Puppy Master
- Posts: 9392
- Joined: Mon 09 May 2005, 09:23
- Location: Perth, Western Australia
- Contact:
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
If so, you can help out, I have posted another request:
http://bkhome.org/blog/?viewDetailed=02012
[url]https://bkhome.org/news/[/url]
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:"dispatcher --symlink-name" provides the ttyUSB port for the link.
Richard
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"
Richard
- BarryK
- Puppy Master
- Posts: 9392
- Joined: Mon 09 May 2005, 09:23
- Location: Perth, Western Australia
- Contact:
Richard,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:"dispatcher --symlink-name" provides the ttyUSB port for the link.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"
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]
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.
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.
-
- Posts: 40
- Joined: Fri 06 Mar 2009, 01:00
- Location: Pune (India)
- Contact:
- BarryK
- Puppy Master
- Posts: 9392
- Joined: Mon 09 May 2005, 09:23
- Location: Perth, Western Australia
- Contact:
There has been a lot of water under the bridge since this thread was started.JIGNESH_MODI wrote:i m using bsnl 3g datacard plz help me in connecting internet......
thans in advance
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]
-
- Posts: 40
- Joined: Fri 06 Mar 2009, 01:00
- Location: Pune (India)
- Contact:
-
- Posts: 40
- Joined: Fri 06 Mar 2009, 01:00
- Location: Pune (India)
- Contact:
-
- Posts: 40
- Joined: Fri 06 Mar 2009, 01:00
- Location: Pune (India)
- Contact:
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..............
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..............
-
- Posts: 40
- Joined: Fri 06 Mar 2009, 01:00
- Location: Pune (India)
- Contact:
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..
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..
bnsl modem
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
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
-
- Posts: 40
- Joined: Fri 06 Mar 2009, 01:00
- Location: Pune (India)
- Contact:
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]
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]
-
- Posts: 40
- Joined: Fri 06 Mar 2009, 01:00
- Location: Pune (India)
- Contact:
Re: bnsl modem
this is what i got in wary 5 :-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
--> 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
-
- Posts: 40
- Joined: Fri 06 Mar 2009, 01:00
- Location: Pune (India)
- Contact:
some one using 3g bsnl on other linux check how he did
http://broadbandforum.in/bsnl-broadband ... -in-linux/
http://broadbandforum.in/bsnl-broadband ... -in-linux/
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
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