[SOLVED] dial command error for CrazyJohns usb modem U6T
Linux - Wireless NetworkingThis forum is for the discussion of wireless networking in Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
You then eject it....as a software command in the filemanager (such as Konqueror but I use pcmanfm...on a LXDE wm)....leaving the modem still plugged in
Reading your /var/log/messages you will get new ids and you use this to switch to modem mode
Code:
su
modprobe -r usbserial
modprobe usbserial vendor=0x05c6 product=0x9000
lsusb to show product 9000 instead of f000
running wvdialconf the first time is not exciting in terms of baud speed..in a code box for space reasons
Code:
wvdialconf
Editing `/etc/wvdial.conf'.
Scanning your serial ports for a modem.
ttyS0<*1>: ATQ0 V1 E1 — failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 — failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 — and failed too at 115200, giving up.
Modem Port Scan<*1>: S1 S2 S3
WvModem<*1>: Cannot get information for serial port.
ttyUSB0<*1>: ATQ0 V1 E1 — failed with 2400 baud, next try: 9600 baud
ttyUSB0<*1>: ATQ0 V1 E1 — failed with 9600 baud, next try: 9600 baud
ttyUSB0<*1>: ATQ0 V1 E1 — and failed too at 115200, giving up.
WvModem<*1>: Cannot get information for serial port.
ttyUSB1<*1>: ATQ0 V1 E1 — OK
ttyUSB1<*1>: ATQ0 V1 E1 Z — OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 — ERROR
ttyUSB1<*1>: ATQ0 V1 E1 &C1 — ERROR
ttyUSB1<*1>: ATQ0 V1 E1 &D2 — ERROR
ttyUSB1<*1>: ATQ0 V1 E1 +FCLASS=0 — OK
ttyUSB1<*1>: Modem Identifier: ATI — Manufacturer: Alpha
ttyUSB1<*1>: Speed 9600: AT — OK
ttyUSB1<*1>: Max speed is 9600; that should be safe.
ttyUSB1<*1>: ATQ0 V1 E1 +FCLASS=0 — OK
WvModem<*1>: Cannot get information for serial port.
ttyUSB2<*1>: ATQ0 V1 E1 — OK
ttyUSB2<*1>: ATQ0 V1 E1 Z — OK
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 — ERROR
ttyUSB2<*1>: ATQ0 V1 E1 &C1 — ERROR
ttyUSB2<*1>: ATQ0 V1 E1 &D2 — ERROR
ttyUSB2<*1>: ATQ0 V1 E1 +FCLASS=0 — OK
ttyUSB2<*1>: Modem Identifier: ATI — Manufacturer: Alpha
ttyUSB2<*1>: Speed 9600: AT — OK
ttyUSB2<*1>: Max speed is 9600; that should be safe.
ttyUSB2<*1>: ATQ0 V1 E1 +FCLASS=0 — OK
Found a modem on /dev/ttyUSB1.
/etc/wvdial.conf<Warn>: Can't open '/etc/wvdial.conf' for reading: No such file or directory
/etc/wvdial.conf<Warn>: ...starting with blank configuration.
Modem configuration written to /etc/wvdial.conf.
ttyUSB1<Info>: Speed 9600; init "ATQ0 V1 E1 +FCLASS=0"
ttyUSB2<Info>: Speed 9600; init "ATQ0 V1 E1 +FCLASS=0"
root@sid:/home/gordy# cat /etc/wvdial.conf
[Dialer Defaults]
Init2 = ATQ0 V1 E1 +FCLASS=0
Modem Type = Analog Modem
; Phone = <Target Phone Number>
ISDN = 0
; Username = <Your Login Name>
Init1 = ATZ
; Password = <Your Password>
Modem = /dev/ttyUSB1
Baud = 9600
I then edit the /etc/wvdial.conf with root powers to clean it up a bit so it reads
At this stage I am not concerned about slow speed and it should work better? but I have also tried faster speeds in there but same dial error
running wvdial (I am a member of dialout) as local or root gives same error
Code:
wvdial
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 +FCLASS=0
ATQ0 V1 E1 +FCLASS=0
OK
--> Modem initialized.
--> Sending: ATDT*99***1#
--> Waiting for carrier.
ATDT*99***1#
ERROR
--> Invalid dial command.
--> Disconnecting at Sat Aug 29 08:41:15 2009
also check /etc/resolv.conf (Mandriva system, yours may differ)
Mine usually lists wins addresses like 10.11.12.13 and 10.11.12.14 from the modem.
But linux can't connect, it works with the real dns addresses like....
/etc/resolv.conf
Code:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 203.2.193.67
nameserver 202.135.30.4
nameserver 192.168.0.2
search vfinternet.au
search GamesBox.GlennsPref.net
I have to turn off the resolv service to stop the system picking up the wins addresses up from the modem.
Hope this helps you a bit, or at least gives you some other avenues to look up.
I shall investigate all suggestions so will do yours shortly. I have seen a reply on the whirlpool forum suggesting I have mislead you on the apn matter so have corrected the apn to purtona.net in my top post.
That in no way detracts from your suggestion tho.
I am replying below your post to explain the edit to save others from being mislead as well...I hope.
As a side matter...I have seen a number of posts where they use wvdial which is why I was using it...so I do not care to use it if your way or others is effective.
ON that forum there was another suggestion of trying dial number *98# and that is no joy either.
ok first issue....what is exact name of kernel module for option please?
I assumed it related to usb option and tried
Code:
su
modprobe usb_serial_option
WARNING: All config files need .conf: /etc/modprobe.d/blacklist-vmc, it will be ignored in a future release.
FATAL: Module usb_serial_option not found.
modprobe option...that part works...well silly me.
2) why is vmc blacklisted.... That was a config file and blacklisted 2 modems that are definately not mine.
However I tried to use vmc......sorry for not reporting it earlier but I have been doing a lot of things....vmc failed for me.
3) I have just done a big clean up....using partimage to restore my old stuff because I got into a bit of mess with vmc, usb_modeswitch, umtsmon, you name it..... I tried it. Well except for actually installing ms or mac...lol
I also want to now concentrate on one style at a time.
And yes wvdial has had its turn now its the turn of pppd and your way.
ps, if I remember correctly, I used the vmc installer to get the config files, then dumped the binary and use Mandriva and ppp0, in the files above, to initialise it during boot.
Last edited by GlennsPref; 08-31-2009 at 03:47 AM.
# Is this the ZeroCD device?
SUBSYSTEM=="usb", SYSFS{idProduct}=="f000",
SYSFS{idVendor}=="05c6", GOTO="U6T_ZeroCD"
# Is this the actual modem?
SUBSYSTEM=="usb", SYSFS{idProduct}=="9000",
SYSFS{idVendor}=="05c6", GOTO="U6T_Modem"
LABEL="U6T_ZeroCD"
# This is the ZeroCD part of the card, remove
# the usb_storage kernel module so
# it does not get treated like a storage device
RUN+="/sbin/rmmod usb_storage"
LABEL="U6T_Modem"
# This is the Modem part of the card, let's
# load usbserial with the correct vendor
# and product ID's so we get our usb serial devices
RUN+="/sbin/modprobe -r usbserial"
RUN+="/sbin/modprobe usbserial vendor=0x05c6 product=0x9000",
# Make users belonging to the dialout group
# able to use the usb serial devices.
MODE="660", GROUP="dialout"
LABEL="U6T_End"
---------------------------------
with or without that mobprobe -r line...cold boot hangs at populating dev.
in attempting to move on....I am running in the same spot..lol
I have wired ethernet already. My network scripts differ from Mandriva...which may be an issue for me...but I am not sure how to get Glenn's scripts to activate without moving my current eth scripts to another area.
Back in the days when I had a phone line with a dial up modem and ethernet router...because I am now on naked dsl.....I seem to recall that dial up...kinda conflicts with eth. In those days I was using kppp and so I found it easier...if eth failed to load and run a live cd that had kppp on it...to use the dial up modem.
atm I am reading the manual page for pppd.
pppd call (scriptname=isp) looks ok but initially a fail.
So if anyone would like to suggest the smartest way of doing it, feel free.
EDIT it looks like I may be able to keep both by putting Glenn's stuff into
/etc/ppp/peers
ok this bit is not for Glenn but shows what I have attempted so far.
1) su && modprobe option.....ok its loaded
2) Glenn's ...chat-ppp0......goes to my /etc/chatscripts/glenn-chat
3) Glenn's files of network, ifcfg-ppp0 ...not sure but I have all these in /etc/ppp/peers/ with renamed to glenn-*
4) /etc/resolve.conf replaced...no big issue as my script overwrites it on boot as forewarned by Glenn.
5) Now to start it manually I did this
Code:
su (at this stage not concerned about pppd permission)
root@sid:/home/gordy# pppd call glenn-ppp0
pppd: The remote system is required to authenticate itself
pppd: but I couldn't find any suitable secret (password) for it to use to do so
So ignoring the warning in file /etc/ppp/options I have commented the line wanting auth.
now I have....pppd call glen-ppp0.....
terminal shows ATZ...but modem lights do not change to show connection and after about one minute the terminal resets to normal prompt
...its a start....not sure what is wrong atm...so many files and so could be any one of them playing up
------------snip from /var/log/messages-----------
Code:
Sep 1 08:54:05 sid pppd[16017]: pppd 2.4.4 started by gordy, uid 0
Sep 1 08:54:05 sid chat[16019]: abort on (BUSY)
Sep 1 08:54:05 sid chat[16019]: abort on (ERROR)
Sep 1 08:54:05 sid chat[16019]: abort on (NO CARRIER)
Sep 1 08:54:05 sid chat[16019]: abort on (NO DIALTONE)
Sep 1 08:54:05 sid chat[16019]: abort on (Invalid Login)
Sep 1 08:54:05 sid chat[16019]: abort on (Login incorrect)
Sep 1 08:54:05 sid chat[16019]: abort on (VOICE)
Sep 1 08:54:05 sid chat[16019]: abort on (NO ANSWER)
Sep 1 08:54:05 sid chat[16019]: abort on (DELAYED)
Sep 1 08:54:05 sid chat[16019]: abort on (SIM PIN)
Sep 1 08:54:05 sid chat[16019]: send (ATZ^M)
Sep 1 08:54:05 sid chat[16019]: expect (OK)
Sep 1 08:54:33 sid kernel: usb 1-8: reset high speed USB device using ehci_hcd and address 11
Sep 1 08:54:50 sid chat[16019]: alarm
Sep 1 08:54:50 sid chat[16019]: send (AT^M)
Sep 1 08:54:50 sid chat[16019]: expect (OK)
Sep 1 08:55:22 sid kernel: usb 1-8: reset high speed USB device using ehci_hcd and address 11
Sep 1 08:55:35 sid chat[16019]: alarm
Sep 1 08:55:35 sid chat[16019]: Failed
Sep 1 08:55:35 sid pppd[16017]: Exit.
Edit again
it looks like my connect is failing as this person's log shows similar start up commands but they get an OK and can then send other stuff like IP stuff
3) minor note to myself...using wvdial again...I managed to get the following at commands to work
Code:
ATi...for information
Sending: AT+CPIN?
AT+CPIN?
+CPIN: READY
OK
Sending: AT+CGDCONT=1,"IP","purtona.net"
AT+CGDCONT=1,"IP","purtona.net"
OK
4) but I still have not resolved whether the cgdcont=1 is the correct profile or whether I need a CID as per your suggestion or whether the number relates to distance to exchange.
What I can say...I according to my booklet my modem has a flashing blue light which means ...
3G HDSPA/UMTS network found...Ready to connect.
but of course...I still get the wvdial command error or modem hangs on attempting to use pppd and then terminal closes either as local user or root.
as far as I'm aware, first time only, and it was activated in winxp.
My Linux system never saw it as a storage device, but winxp did until the device was restarted (part of the install process)
Quote:
2) Back to option....found this link...is this how you do it?
No, but I got this thing nearly 2 years ago (come feb 2010) so, my memory has faded. I've been using those scripts above since the first time I got it working in Linux. But I did use the VMC program to set it up initially, but the connect part of the program was so unreliable (made for 32bit systems, "dependency hell" on 64bit) I dumped it, got settings from winxp (ipconfig and netstat /an) and have not looked back. Sorry.
regarding Q3) You're AT commands supass my experience, I have used them raw in the workshop, but followed a proprietary design and chips (used in Tele-metering, open dam gate, close dam gate, temp sensors and weather detections systems, etc).
Quote:
What I can say...I according to my booklet my modem has a flashing blue light which means ...
3G HDSPA/UMTS network found...Ready to connect.
Mine is similar, flashing green when searching, flashing dark blue when found but not connected, solid dark blue when connected and solid light blue when transferring at high speed.
iirc, there used to be a listing in my /etc/fstab for binfmt_misc which may have been responsible for making the device use serial usb mode.
As far as I can tell, if the modem searches then is flashing blue, the hardware works. Just a matter of the correct connect config.
I have never had any luck with the standard Mandriva Networking (configure your network) or kde's kppp. Australia was not on the list) I recall viewing some british vodafone forums, and found the hack I use. Although it (Mandriva) did install the appropriate modules and packages for me(wvdial & binfmt_misc) I had to hack the fstab file.
Last edited by GlennsPref; 09-01-2009 at 09:26 PM.
ok well I was naughty and did it with root permissions and had to browse the net with root...but will fix
ok I will do some more testing now and figure out best way to modeswitch...udev or usb_modeswitch or cdrun=8
2) I need to fix my pppd permissions and wvdial
3) Glenn I have done it with that post 12 (2) link and wvdial and manually flip flop
summary was
ifconfig eth0 down...to stop router
replace to use -----------/etc/resolve.conf------------
nameserver 208.67.222.222
nameserver 208.67.220.220
search purtona.net
-------------------
its not perfect but it worked
install modem and eject it
instead of my usbserial crap...I used Glenn's option with a tweak
4) Now I am guessing that new id...causes me to have to use the last named USB device....where previously I thought that was only for modem AT commands....well bugger me.
5) Thanks again for your help.
it may now take me some time to find the easiest most reliable automatic way of getting to modem mode
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.