LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   USB720 Modem not addressed? (https://www.linuxquestions.org/questions/slackware-14/usb720-modem-not-addressed-719731/)

mefizto 04-16-2009 09:52 PM

USB720 Modem not addressed?
 
Greetings all,

I am slowly, but steadily moving trhrough my Slackware 12.2 setup, the last major thing being EVDO modem because that is my only option where I live.

However, I appear to have some problems. The kernel seems to recognize the modem on /dev/ttyUSB{0,1}; dmesg output:

Code:

usb 4-2: new full speed USB device using uhci_hcd and address 3
usb 4-2: configuration #1 chosen from 1 choice
option 4-2:1.0: GSM modem (1-port) converter detected
usb 4-2: GSM modem (1-port) converter now attached to ttyUSB0
option 4-2:1.1: GSM modem (1-port) converter detected
usb 4-2: GSM modem (1-port) converter now attached to ttyUSB1
usb 4-2: New USB device found, idVendor=1410, idProduct=2110
usb 4-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 4-2: Product: Novatel Wireless CDMA
usb 4-2: Manufacturer: Novatel Wireless Inc.

However, the modem does not appear to communicate via chat; tail -f /var/log/messages output:

Code:

Apr 16 19:38:42 faust kernel: PPP generic driver version 2.4.2
Apr 16 19:38:42 faust pppd[3006]: pppd 2.4.4 started by root, uid 0
Apr 16 19:38:43 faust chat[3008]: expect (^M)
Apr 16 19:38:46 faust chat[3008]: alarm
Apr 16 19:38:46 faust chat[3008]: Failed
Apr 16 19:38:47 faust pppd[3006]: Exit.

My scripts are per this post: http://www.linuxquestions.org/questi...highlight=evdo

I tried searching, but came with nothing.

What puzzles me, though, is that there is no re-mapping of the /dev/ttyUSB* ports as it was my understanding that the hal/udev will remap the /dev/ttyUSB* on tts/USB*. But examining lshal output, this did not happen:

Code:

udi = '/org/freedesktop/Hal/devices/usb_device_1410_2110_noserial_if0_serial_usb_0'
  info.capabilities = {'serial', 'modem'} (string list)
  info.category = 'serial'  (string)
  info.parent = '/org/freedesktop/Hal/devices/usb_device_1410_2110_noserial_if0'  (string)
  info.product = 'Ovation U720/MCD3000'  (string)
  info.subsystem = 'tty'  (string)
  info.udi = '/org/freedesktop/Hal/devices/usb_device_1410_2110_noserial_if0_serial_usb_0'  (string)
  linux.device_file = '/dev/ttyUSB0'  (string)
  linux.hotplug_type = 2  (0x2)  (int)
  linux.subsystem = 'tty'  (string)
  linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:10.2/usb4/4-1/4-1:1.0/ttyUSB0/tty/ttyUSB0'  (string)
  modem.command_sets = {'IS-707-A'} (string list)
  serial.device = '/dev/ttyUSB0'  (string)
  serial.originating_device = '/org/freedesktop/Hal/devices/usb_device_1410_2110_noserial_if0'  (string)
  serial.port = 0  (0x0)  (int)
  serial.type = 'usb'  (string)


Code:

bash-3.1# ls -l /dev/ttyUSB*
crw-rw---- 1 root uucp 188, 0 2009-04-16 19:28 /dev/ttyUSB0
crw-rw---- 1 root uucp 188, 1 2009-04-16 19:28 /dev/ttyUSB1

Any ideas please?

Thank you,

M

hurry_hui 04-17-2009 10:18 PM

You need to make symbolic link to your modem: #ln -s /dev/ttyUSB0 /dev/modem.

Actually I used KPPP and the modems (yes-Modems) need to be set to /dev/modem.

I also try any configuration within KPPP option (like set it directly to /dev/ttyUSB0), but cannot query the modem.

Still wondering...

dchmelik 04-18-2009 12:45 AM

I am somewhat disappointed with TLDP at still seeing anyone with dialup modem problems. That modem HOWTO from the early - mid-90s was the best, but at some point it was removed from TLDP. Until 4 - 5 years ago I was using a dialup modem, and in the several years before that I never found another HOWTO (including for NetBSD) that helped set up a modem: it always took a lot of extra work. I recommend trying to find that old modem HOWTO; I had it in a book that published all TLDP docs printed in about 1996 - '8. If you cannot find it or continue to have problems, message me and I will look it up and try to get a copy with its scripts posted here or on my homepage.

mefizto 04-20-2009 12:34 PM

Dear hurry_hui,

do I understand you correctly, based on your quote "but cannot query the modem" that you did not make the modem work?

Dear David,

thank you for the offer, however, I am at the stage where I am considering switching to a different distribution or back to FreeBSD because I am having too many problems.

M

hurry_hui 04-20-2009 09:00 PM

Quote:

do I understand you correctly, based on your quote "but cannot query the modem" that you did not make the modem work?
No, it is like, only when I softlinked the /dev/ttyUSB0 to /dev/modem I can query the modem. I wrote that since someone here insisted that making such softlink is not necessary. Btw, I have succeeded using several modems.

ack_iix 04-21-2009 04:51 AM

I'm using a Huawei E220 HSDPA modem and I don't need to symlink anything. All I require to make it work in KPPP is a right AT command and dial number.

And since the thread starter said it's a EVDO modem, I'm assuming it's a wireless CDMA modem. So, I guess all you need is a correct AT command for your modem.

Please correct me if I'm wrong.

mefizto 04-21-2009 02:02 PM

Dear hurry_hui,

thank you for the reply.

Dear ack_iix,

you are correct, it is a wireless CDMA modem. I have copied a script from a resource claiming to work with the particular modem.

M

ack_iix 04-22-2009 12:44 AM

Maybe your modem needs some parameter passed to the usbserial module?

like: modprobe usbserial vendor=... product=...

Have you try using KPPP? I think it would be easier, because you can try to query the modem from the modem setup page.

mefizto 04-22-2009 12:15 PM

Dear ack_iix,

I did, indeed, passed the parameters to the modem, but on further inspection I have discovered that the parameters are already present in one of the configuration files. Regardless, this is not the problem.

No, I did not try kppp, just pppd.

I am afraid that at this point I do not see another option, but go to a more mainstream distribution.

M

rg3 04-22-2009 03:04 PM

Oh, tough luck! :)

Well, just in case, here are my pppd configuration files for the Huawei E220 modem. AFAIK it's the same for these modems. I have disabled the PIN on the SIM card because it gives less problems. You'd also have to change the username, password and Internet APN to the ones appropriate for your provider (Google helps):

/etc/ppp/chat-3gmodem
Code:

ABORT BUSY
ABORT ERROR
ABORT 'NO CARRIER'
REPORT CONNECT
TIMEOUT 10
"" "ATZ"
OK AT+CGDCONT=1,"ip","internet"
OK "ATE1V1&D2&C1S0=0+IFC=2,2"
OK "AT+IPR=115200"
OK "ATE1"
TIMEOUT 60
"" "ATD*99***1#"
CONNECT \c

And /etc/ppp/peers/3gmodem:
Code:

/dev/ttyUSB0
460800
crtscts
modem
noauth
#usepeerdns
defaultroute
noipdefault
debug
#noccp
#nobsdcomp
#novj
#mtu 500
user "orange"
password "orange"
connect '/usr/sbin/chat -f /etc/ppp/chat-3gmodem'

Note that you may also want to uncomment the "usepeerdns" or to configure some good DNS servers in /etc/resolv.conf. I connect, essentially, using "pppd call 3gmodem nodetach".

Good luck.

Edit: the username/password is changed in the second file, while the Internet APN is the word "internet" in the first file.

mefizto 04-22-2009 06:46 PM

Dear rg3,

&^%$$#, I have just installed Debian. However, thank you for the post, perhaps it will be useful for someone else.

M


All times are GMT -5. The time now is 11:53 PM.