Re: USB Modem



On Fri, 2009-02-06 at 21:45 -0800, Harold Hallikainen wrote:
> I'm running Fedora 10 and have been using KPPP to talk to my cellphone,
> which emulates an AT command set modem over RS-232, which is then adapted
> to USB. I'm interested in using Network Manager instead of KPPP. Looking
> around the web, I found a suggestion that a file
> /etc/hal/fdi/information/3gmodem.fdi be created. I named it cellphone.fdi
> . The file contains the following:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> 
> <deviceinfo version="0.2">
>   <device>
>     <match key="serial.device" string="/dev/ttyUSB0">
>         <append key="info.capabilities" type="strlist">modem</append>
>         <append key="modem.command_sets" type="strlist">IS-707-A</append>
>     </match>
>   </device>
> </deviceinfo>
> 
> When the phone is plugged in, it shows up in Network Manager as CDMA
> Connection 1 (I created the connection in Network Manager).
> 
> The cellphone modem uses the Hayes AT command set, and I suspect that is
> not the command set listed in the above XML.
> 
> Looking at /var/log/messages, I see the following when I tell NM to
> connect to CDMA Connection 1:
> 
> Feb  6 21:29:19 localhost NetworkManager: <info>  Activation (ttyUSB0)
> starting connection 'CDMA connection 1'
> Feb  6 21:29:19 localhost NetworkManager: <info>  (ttyUSB0): device state
> change: 3 -> 4
> Feb  6 21:29:19 localhost NetworkManager: <info>  Activation (ttyUSB0)
> Stage 1 of 5 (Device Prepare) scheduled...
> Feb  6 21:29:19 localhost NetworkManager: <info>  Activation (ttyUSB0)
> Stage 1 of 5 (Device Prepare) started...
> Feb  6 21:29:19 localhost NetworkManager: <info>  Activation (ttyUSB0)
> Stage 1 of 5 (Device Prepare) complete.
> Feb  6 21:29:29 localhost NetworkManager: <WARN>  init_done(): Modem
> initialization timed out
> Feb  6 21:29:29 localhost NetworkManager: <info>  (ttyUSB0): device state
> change: 4 -> 9
> Feb  6 21:29:30 localhost NetworkManager: <info>  Marking connection 'CDMA
> connection 1' invalid.
> Feb  6 21:29:30 localhost NetworkManager: <info>  Activation (ttyUSB0)
> failed.
> Feb  6 21:29:30 localhost NetworkManager: <info>  (ttyUSB0): device state
> change: 9 -> 3
> Feb  6 21:29:30 localhost NetworkManager: <info>  (ttyUSB0): deactivating
> device (reason: 0).
> F
> 
> Also, on the cellphone display, I see no evidence of the phone attempting
> to dial. So... is the modem command set the problem? What is the modem
> command set for an AT modem?

Is your phone really a CDMA/EVDO device?  Or is it GSM/UMTS/HSPA device?
The keys will be different depending on what type.  Once we've figured
that out, could you do the following, all as root?

a) service NetworkManager stop
b) NM_SERIAL_DEBUG=1 /usr/sbin/NetworkManager --no-daemon
c) (as your user) select the connection from the menu of the applet

Then grab that debug output from the terminal and post it as a reply to
this mail.  We're not generally supporting cellphones until we start
using ModemManager, which allows us to be much more flexible about
different devices, but it may just be a quick fix for your phone.

Dan




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]