You are not logged in.

#1 2015-03-25 23:31:33

macphyter
Member
Registered: 2015-03-25
Posts: 2

ModemManager won't connect with Sprint CDMA modem

I'm trying to start an internet connection using a Telit DE910-dual CDMA modem using Sprint as the provider.  First of all, when I plug this into my Ubuntu 14.04 machine, I can create a mobile broadband connection, and all it asks me for is the provider (Sprint).  The internet connection works fine.  This tells me I don't need to provide a username, password, or APN.

But, I'm trying to make this work on an embedded ARM platform running ArchLinuxArm.  I've installed usbutils, usb_modeswitch, NetworkManager, and ModemManager.  The drive is enabled in the kernel build.  Here's where I've gotten:

[root@alarm ~]# ls -al /dev/ttyUSB*
crw-rw---- 1 root uucp 188, 0 Mar 25 22:36 /dev/ttyUSB0
crw-rw---- 1 root uucp 188, 1 Mar 25 22:36 /dev/ttyUSB1
crw-rw---- 1 root uucp 188, 2 Mar 25 22:36 /dev/ttyUSB2
crw-rw---- 1 root uucp 188, 3 Mar 25 23:20 /dev/ttyUSB3

[root@alarm ~]# nmcli d
DEVICE   TYPE      STATE         CONNECTION
eth0     ethernet  connected     Wired connection 1
ttyUSB3  cdma      disconnected  --
lo       loopback  unmanaged     --

[root@alarm ~]# mmcli -m 0
/org/freedesktop/ModemManager1/Modem/0 (device id '82a754d15a8cd1a99af045dfd02eb3095683fb76')
  -------------------------
  Hardware |   manufacturer: 'Telit'
           |          model: 'DE910-DUAL'
           |       revision: '15.00.024'
           |      supported: 'cdma-evdo'
           |        current: 'cdma-evdo'
           |   equipment id: '00023772'
  -------------------------
  System   |         device: '/sys/devices/soc0/80080000.ahb/80080000.usb/ci_hdrc.0/usb1/1-1/1-1.1'
           |        drivers: 'option1'
           |         plugin: 'Telit'
           |   primary port: 'ttyUSB3'
           |          ports: 'ttyUSB1 (gps), ttyUSB2 (at), ttyUSB3 (at)'
  -------------------------
  Numbers  |           own : 'unknown'
  -------------------------
  Status   |           lock: 'none'
           | unlock retries: 'unknown'
           |          state: 'registered'
           |    power state: 'on'
           |    access tech: 'unknown'
           | signal quality: '16' (recent)
  -------------------------
  Modes    |      supported: 'allowed: 2g, 3g; preferred: none'
           |        current: 'allowed: 2g, 3g; preferred: none'
  -------------------------
  Bands    |      supported: 'unknown'
           |        current: 'unknown'
  -------------------------
  IP       |      supported: 'ipv4'
  -------------------------
  CDMA     |           meid: 'unknown'
           |            esn: '00023772'
           |            sid: '94'
           |            nid: 'unknown'
           |   registration: CDMA1x 'registered'
           |                 EV-DO  'unknown'
           |     activation: 'unknown'
  -------------------------
  SIM      |           path: 'none'

  -------------------------
  Bearers  |          paths: '/org/freedesktop/ModemManager1/Bearer/0'

Now here's where I'm stuck.  I can see that that status|state is "registered", but I don't know how to proceed to get it "connected".

If anyone can help me out here, I'd appreciate it.  If you think this should be posted in a different forum, let me know.

  -Macphyter

Offline

#2 2015-03-26 00:47:54

Jasa
Banned
Registered: 2011-08-05
Posts: 41

Re: ModemManager won't connect with Sprint CDMA modem

I used to try mmcli with Huawei stick to connect it without the graphical networkmanager applet, actually i think it does always state "registered" if there is spot for it to connect at.
For connection i used "mmcli -m 0 --simple-connect="apn=apnline", or something likewise and perhaps launched dhcp-client in name specified by "ip addr".
Taken that it does show your modem as hardware ethernet device, by some chance if there is nothing else providen than those of ttyUSB devices it might require wvdial application or likewise.
Been some time around without it already ...

Offline

#3 2015-03-26 01:07:28

macphyter
Member
Registered: 2015-03-25
Posts: 2

Re: ModemManager won't connect with Sprint CDMA modem

Whew!  I struggled with this all day, and finally stumbled onto the solution.  Here it is, in case anyone has a similar problem.

The NetworkManager connection info is stored in /etc/NetworkManager/system-connections.  I tried adding one manually, but it didn't work.  Then I found this trick:
'nmcli connection edit con-name <name of new connection>'
It will prompt you for relevant information and create a new connection config for you.  I did this, and specified 'cdma' for the connection type, and set autoconnect=true.  Then, presto!

[root@alarm ~]# ifconfig
lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        loop  txqueuelen 0  (Local Loopback)
        RX packets 160  bytes 12160 (11.8 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 160  bytes 12160 (11.8 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

ppp0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST>  mtu 1500
        inet 77.249.241.231  netmask 255.255.255.255  destination 66.174.200.64
        ppp  txqueuelen 3  (Point-to-Point Protocol)
        RX packets 411  bytes 534728 (522.1 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 361  bytes 23235 (22.6 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Its all up and running.

Offline

Board footer

Powered by FluxBB