Re: Cinterion PLS8-X, udhcp fails

2016-03-19 Thread Aleksander Morgado
On Thu, Mar 17, 2016 at 1:24 PM, José  wrote:
> You are right, the beacon is using /dev/ttyACM0. Launching ppp the
> connection works just fine.
>

Except for the fact that you may not be getting full LTE datarates, if
you're doing LTE...

> Still, it would be nice if ModemManager could use the usbN network
> interfaces. Would a patch to the Cinterion plugin be complicated, or
> just issue some AT commands to configure the modem to use those
> network interfaces?
>

In the ModemManager side, it likely is very simple; just a new
MMBroadbandBearerCinterion object, as done in other plugins. But maybe
the network interface will require additional kernel updates as well,
that should be checked.

> I don't currently have the AT Command Set document, but I will try to get it.

Nice!

-- 
Aleksander
https://aleksander.es
___
ModemManager-devel mailing list
ModemManager-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel


Re: Cinterion PLS8-X, udhcp fails

2016-03-19 Thread Aleksander Morgado
Hey

On Wed, Mar 16, 2016 at 12:57 PM, José  wrote:
> I am trying to use a Cinterion PLS8-X with ModemManager. The modem is
> properly identified and enabled, and the connection is properly
> established. But when I try to use the network interfaces and get an
> IP from the DHCP server, it fails to get any IP address.
>
> This is the log:
>
> root@ccimx6sbc:~# ModemManager &
> root@ccimx6sbc:~# ModemManager[827]:   ModemManager (version
> 1.4.12) starting in system bus...
> ModemManager[827]:   Creating modem with plugin 'Cinterion' and '7' 
> ports
> ModemManager[827]:   Could not grab port (tty/ttyACM4): 'Cannot
> add port 'tty/ttyACM4', unhandled serial type'
> ModemManager[827]:   Could not grab port (tty/ttyACM3): 'Cannot
> add port 'tty/ttyACM3', unhandled serial type'
> ModemManager[827]:   Could not grab port (tty/ttyACM2): 'Cannot
> add port 'tty/ttyACM2', unhandled serial type'
> ModemManager[827]:   Modem for device at
> '/sys/devices/soc0/soc.0/210.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1'
> successfully created
> ModemManager[827]:   Modem: state changed (unknown -> disabled)
>
> root@ccimx6sbc:~#
> root@ccimx6sbc:~#
> root@ccimx6sbc:~# mmcli -m 0 --simple-connect=movistar.es
> Error parsing connect string: 'Couldn't find equal sign separator'
> root@ccimx6sbc:~# mmcli -m 0 --simple-connect=apn=movistar.es
> ModemManager[827]:   Simple connect started...
> ModemManager[827]:   Simple connect state (3/8): Enable
> ModemManager[827]:   Modem
> /org/freedesktop/ModemManager1/Modem/0: state changed (disabled ->
> enabling)
> ModemManager[827]:   Modem
> /org/freedesktop/ModemManager1/Modem/0: 3GPP Registration state
> changed (unknown -> registering)
> ModemManager[827]:   Modem
> /org/freedesktop/ModemManager1/Modem/0: 3GPP Registration state
> changed (registering -> home)
> ModemManager[827]:   Modem
> /org/freedesktop/ModemManager1/Modem/0: state changed (enabling ->
> registered)
> ModemManager[827]:   Simple connect state (4/8): Wait to get fully 
> enabled
> ModemManager[827]:   Simple connect state (5/8): Register
> ModemManager[827]:   Simple connect state (6/8): Bearer
> ModemManager[827]:   Simple connect state (7/8): Connect
> ModemManager[827]:   Modem
> /org/freedesktop/ModemManager1/Modem/0: state changed (registered ->
> connecting)
> ModemManager[827]:   Modem
> /org/freedesktop/ModemManager1/Modem/0: state changed (connecting ->
> connected)
> ModemManager[827]:   Simple connect state (8/8): All done
> successfully connected the modem
> root@ccimx6sbc:~# mmcli -m 0
>
> /org/freedesktop/ModemManager1/Modem/0 (device id
> 'f19bc7567e36f9fef0e5998b5f6a9f7346785ec1')
>   -
>   Hardware |   manufacturer: 'Cinterion'
>|  model: 'PLS8-X'
>|   revision: 'REVISION 03.003'
>|  supported: 'gsm-umts, lte'
>|current: 'gsm-umts, lte'
>|   equipment id: '004401081420651'
>   -
>   System   | device:
> '/sys/devices/soc0/soc.0/210.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1'
>|drivers: 'cdc_acm, cdc_ether'
>| plugin: 'Cinterion'
>|   primary port: 'ttyACM1'
>|  ports: 'ttyACM1 (at), ttyACM0 (at), usb0 (net),
> usb1 (net)'
>   -
>   Numbers  |   own : 'unknown'
>   -
>   Status   |   lock: 'none'
>| unlock retries: 'sim-pin (3), sim-pin2 (3), sim-puk (10),
> sim-puk2 (10), ph-net-pin (10), ph-net-puk (32), ph-fsim-pin (10),
> ph-fsim-puk (32)'
>|  state: 'connected'
>|power state: 'on'
>|access tech: 'edge'
>| signal quality: '20' (recent)
>   -
>   Modes|  supported: 'allowed: 2g; preferred: none
>|  allowed: 3g; preferred: none
>|  allowed: 2g, 3g; preferred: none
>|  allowed: 2g, 3g, 4g; preferred: none'
>|current: 'allowed: any; preferred: none'
>   -
>   Bands|  supported: 'egsm, dcs, pcs, g850, u1900, u850'
>|current: 'egsm, dcs, pcs, g850, u1900, u850'
>   -
>   IP   |  supported: 'ipv4, ipv6, ipv4v6'
>   -
>   3GPP |   imei: '004401081420651'
>|  enabled locks: 'none'
>|operator id: '21407'
>|  operator name: 'Movistar'
>|   subscription: 'unknown'
>|   registration: 'home'
>   -
>   SIM  |   path: '/org/freedesktop/ModemManager1/SIM/0'
>
>   -
>   Bearers  |  paths: '/org/freedesktop/ModemManager1/Bearer/0'
>

I bet if you run "mmcli -b 0" to show the bearer details, it will tell
you that "PPP" should be used.

> root@ccimx6sbc:~# mmcli -
> root@c

Re: Cinterion PLS8-X, udhcp fails

2016-03-19 Thread Dan Williams
On Thu, 2016-03-17 at 13:24 +0100, José  wrote:
> You are right, the beacon is using /dev/ttyACM0. Launching ppp the
> connection works just fine.
> 
> Still, it would be nice if ModemManager could use the usbN network
> interfaces. Would a patch to the Cinterion plugin be complicated, or
> just issue some AT commands to configure the modem to use those
> network interfaces?

As long as the usbN interface is handled by an existing kernel driver,
and exposes itself as a normal ethernet interface, it should be fairly
simple.  The only complications I can think of are:

1) whether the firmware supports DHCPv4 on the interface or not and how
to detect that

2) whether the device supports IPv6 on the interface, and if so,
whether it supports Router Advertisements with/without DHCPv6 (like
Ericsson and some others) or whether it reports static IPv6 details
through the AT command interface (like some Huawei and Icera devices
do)

Dan

> I don't currently have the AT Command Set document, but I will try to
> get it.
> 
> On Wed, Mar 16, 2016 at 1:12 PM, Aleksander Morgado
>  wrote:
> > 
> > Hey
> > 
> > On Wed, Mar 16, 2016 at 12:57 PM, José  wrote:
> > > 
> > > I am trying to use a Cinterion PLS8-X with ModemManager. The
> > > modem is
> > > properly identified and enabled, and the connection is properly
> > > established. But when I try to use the network interfaces and get
> > > an
> > > IP from the DHCP server, it fails to get any IP address.
> > > 
> > > This is the log:
> > > 
> > > root@ccimx6sbc:~# ModemManager &
> > > root@ccimx6sbc:~# ModemManager[827]:   ModemManager
> > > (version
> > > 1.4.12) starting in system bus...
> > > ModemManager[827]:   Creating modem with plugin 'Cinterion'
> > > and '7' ports
> > > ModemManager[827]:   Could not grab port (tty/ttyACM4):
> > > 'Cannot
> > > add port 'tty/ttyACM4', unhandled serial type'
> > > ModemManager[827]:   Could not grab port (tty/ttyACM3):
> > > 'Cannot
> > > add port 'tty/ttyACM3', unhandled serial type'
> > > ModemManager[827]:   Could not grab port (tty/ttyACM2):
> > > 'Cannot
> > > add port 'tty/ttyACM2', unhandled serial type'
> > > ModemManager[827]:   Modem for device at
> > > '/sys/devices/soc0/soc.0/210.aips-
> > > bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1'
> > > successfully created
> > > ModemManager[827]:   Modem: state changed (unknown ->
> > > disabled)
> > > 
> > > root@ccimx6sbc:~#
> > > root@ccimx6sbc:~#
> > > root@ccimx6sbc:~# mmcli -m 0 --simple-connect=movistar.es
> > > Error parsing connect string: 'Couldn't find equal sign
> > > separator'
> > > root@ccimx6sbc:~# mmcli -m 0 --simple-connect=apn=movistar.es
> > > ModemManager[827]:   Simple connect started...
> > > ModemManager[827]:   Simple connect state (3/8): Enable
> > > ModemManager[827]:   Modem
> > > /org/freedesktop/ModemManager1/Modem/0: state changed (disabled
> > > ->
> > > enabling)
> > > ModemManager[827]:   Modem
> > > /org/freedesktop/ModemManager1/Modem/0: 3GPP Registration state
> > > changed (unknown -> registering)
> > > ModemManager[827]:   Modem
> > > /org/freedesktop/ModemManager1/Modem/0: 3GPP Registration state
> > > changed (registering -> home)
> > > ModemManager[827]:   Modem
> > > /org/freedesktop/ModemManager1/Modem/0: state changed (enabling
> > > ->
> > > registered)
> > > ModemManager[827]:   Simple connect state (4/8): Wait to
> > > get fully enabled
> > > ModemManager[827]:   Simple connect state (5/8): Register
> > > ModemManager[827]:   Simple connect state (6/8): Bearer
> > > ModemManager[827]:   Simple connect state (7/8): Connect
> > > ModemManager[827]:   Modem
> > > /org/freedesktop/ModemManager1/Modem/0: state changed (registered
> > > ->
> > > connecting)
> > > ModemManager[827]:   Modem
> > > /org/freedesktop/ModemManager1/Modem/0: state changed (connecting
> > > ->
> > > connected)
> > > ModemManager[827]:   Simple connect state (8/8): All done
> > > successfully connected the modem
> > > root@ccimx6sbc:~# mmcli -m 0
> > > 
> > > /org/freedesktop/ModemManager1/Modem/0 (device id
> > > 'f19bc7567e36f9fef0e5998b5f6a9f7346785ec1')
> > >   -
> > >   Hardware |   manufacturer: 'Cinterion'
> > >    |  model: 'PLS8-X'
> > >    |   revision: 'REVISION 03.003'
> > >    |  supported: 'gsm-umts, lte'
> > >    |current: 'gsm-umts, lte'
> > >    |   equipment id: '004401081420651'
> > >   -
> > >   System   | device:
> > > '/sys/devices/soc0/soc.0/210.aips-
> > > bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1'
> > >    |drivers: 'cdc_acm, cdc_ether'
> > >    | plugin: 'Cinterion'
> > >    |   primary port: 'ttyACM1'
> > >    |  ports: 'ttyACM1 (at), ttyACM0 (at), usb0
> > > (net),
> > > usb1 (net)'
> > >   -
> > >   Numbers  |   own : 'unknown'
> > >   -
> > >   Status   |   lock: 'none'
> > >    | unlo

Re: Cinterion PLS8-X, udhcp fails

2016-03-19 Thread José
You are right, the beacon is using /dev/ttyACM0. Launching ppp the
connection works just fine.

Still, it would be nice if ModemManager could use the usbN network
interfaces. Would a patch to the Cinterion plugin be complicated, or
just issue some AT commands to configure the modem to use those
network interfaces?

I don't currently have the AT Command Set document, but I will try to get it.

On Wed, Mar 16, 2016 at 1:12 PM, Aleksander Morgado
 wrote:
> Hey
>
> On Wed, Mar 16, 2016 at 12:57 PM, José  wrote:
>> I am trying to use a Cinterion PLS8-X with ModemManager. The modem is
>> properly identified and enabled, and the connection is properly
>> established. But when I try to use the network interfaces and get an
>> IP from the DHCP server, it fails to get any IP address.
>>
>> This is the log:
>>
>> root@ccimx6sbc:~# ModemManager &
>> root@ccimx6sbc:~# ModemManager[827]:   ModemManager (version
>> 1.4.12) starting in system bus...
>> ModemManager[827]:   Creating modem with plugin 'Cinterion' and '7' 
>> ports
>> ModemManager[827]:   Could not grab port (tty/ttyACM4): 'Cannot
>> add port 'tty/ttyACM4', unhandled serial type'
>> ModemManager[827]:   Could not grab port (tty/ttyACM3): 'Cannot
>> add port 'tty/ttyACM3', unhandled serial type'
>> ModemManager[827]:   Could not grab port (tty/ttyACM2): 'Cannot
>> add port 'tty/ttyACM2', unhandled serial type'
>> ModemManager[827]:   Modem for device at
>> '/sys/devices/soc0/soc.0/210.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1'
>> successfully created
>> ModemManager[827]:   Modem: state changed (unknown -> disabled)
>>
>> root@ccimx6sbc:~#
>> root@ccimx6sbc:~#
>> root@ccimx6sbc:~# mmcli -m 0 --simple-connect=movistar.es
>> Error parsing connect string: 'Couldn't find equal sign separator'
>> root@ccimx6sbc:~# mmcli -m 0 --simple-connect=apn=movistar.es
>> ModemManager[827]:   Simple connect started...
>> ModemManager[827]:   Simple connect state (3/8): Enable
>> ModemManager[827]:   Modem
>> /org/freedesktop/ModemManager1/Modem/0: state changed (disabled ->
>> enabling)
>> ModemManager[827]:   Modem
>> /org/freedesktop/ModemManager1/Modem/0: 3GPP Registration state
>> changed (unknown -> registering)
>> ModemManager[827]:   Modem
>> /org/freedesktop/ModemManager1/Modem/0: 3GPP Registration state
>> changed (registering -> home)
>> ModemManager[827]:   Modem
>> /org/freedesktop/ModemManager1/Modem/0: state changed (enabling ->
>> registered)
>> ModemManager[827]:   Simple connect state (4/8): Wait to get fully 
>> enabled
>> ModemManager[827]:   Simple connect state (5/8): Register
>> ModemManager[827]:   Simple connect state (6/8): Bearer
>> ModemManager[827]:   Simple connect state (7/8): Connect
>> ModemManager[827]:   Modem
>> /org/freedesktop/ModemManager1/Modem/0: state changed (registered ->
>> connecting)
>> ModemManager[827]:   Modem
>> /org/freedesktop/ModemManager1/Modem/0: state changed (connecting ->
>> connected)
>> ModemManager[827]:   Simple connect state (8/8): All done
>> successfully connected the modem
>> root@ccimx6sbc:~# mmcli -m 0
>>
>> /org/freedesktop/ModemManager1/Modem/0 (device id
>> 'f19bc7567e36f9fef0e5998b5f6a9f7346785ec1')
>>   -
>>   Hardware |   manufacturer: 'Cinterion'
>>|  model: 'PLS8-X'
>>|   revision: 'REVISION 03.003'
>>|  supported: 'gsm-umts, lte'
>>|current: 'gsm-umts, lte'
>>|   equipment id: '004401081420651'
>>   -
>>   System   | device:
>> '/sys/devices/soc0/soc.0/210.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1'
>>|drivers: 'cdc_acm, cdc_ether'
>>| plugin: 'Cinterion'
>>|   primary port: 'ttyACM1'
>>|  ports: 'ttyACM1 (at), ttyACM0 (at), usb0 (net),
>> usb1 (net)'
>>   -
>>   Numbers  |   own : 'unknown'
>>   -
>>   Status   |   lock: 'none'
>>| unlock retries: 'sim-pin (3), sim-pin2 (3), sim-puk (10),
>> sim-puk2 (10), ph-net-pin (10), ph-net-puk (32), ph-fsim-pin (10),
>> ph-fsim-puk (32)'
>>|  state: 'connected'
>>|power state: 'on'
>>|access tech: 'edge'
>>| signal quality: '20' (recent)
>>   -
>>   Modes|  supported: 'allowed: 2g; preferred: none
>>|  allowed: 3g; preferred: none
>>|  allowed: 2g, 3g; preferred: none
>>|  allowed: 2g, 3g, 4g; preferred: none'
>>|current: 'allowed: any; preferred: none'
>>   -
>>   Bands|  supported: 'egsm, dcs, pcs, g850, u1900, u850'
>>|current: 'egsm, dcs, pcs, g850, u1900, u850'
>>   -
>>   IP   |  supported: 'ipv4, ipv6, ipv4v6'
>>   -
>>   3GPP |   imei: '004

Cinterion PLS8-X, udhcp fails

2016-03-18 Thread José
I am trying to use a Cinterion PLS8-X with ModemManager. The modem is
properly identified and enabled, and the connection is properly
established. But when I try to use the network interfaces and get an
IP from the DHCP server, it fails to get any IP address.

This is the log:

root@ccimx6sbc:~# ModemManager &
root@ccimx6sbc:~# ModemManager[827]:   ModemManager (version
1.4.12) starting in system bus...
ModemManager[827]:   Creating modem with plugin 'Cinterion' and '7' ports
ModemManager[827]:   Could not grab port (tty/ttyACM4): 'Cannot
add port 'tty/ttyACM4', unhandled serial type'
ModemManager[827]:   Could not grab port (tty/ttyACM3): 'Cannot
add port 'tty/ttyACM3', unhandled serial type'
ModemManager[827]:   Could not grab port (tty/ttyACM2): 'Cannot
add port 'tty/ttyACM2', unhandled serial type'
ModemManager[827]:   Modem for device at
'/sys/devices/soc0/soc.0/210.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1'
successfully created
ModemManager[827]:   Modem: state changed (unknown -> disabled)

root@ccimx6sbc:~#
root@ccimx6sbc:~#
root@ccimx6sbc:~# mmcli -m 0 --simple-connect=movistar.es
Error parsing connect string: 'Couldn't find equal sign separator'
root@ccimx6sbc:~# mmcli -m 0 --simple-connect=apn=movistar.es
ModemManager[827]:   Simple connect started...
ModemManager[827]:   Simple connect state (3/8): Enable
ModemManager[827]:   Modem
/org/freedesktop/ModemManager1/Modem/0: state changed (disabled ->
enabling)
ModemManager[827]:   Modem
/org/freedesktop/ModemManager1/Modem/0: 3GPP Registration state
changed (unknown -> registering)
ModemManager[827]:   Modem
/org/freedesktop/ModemManager1/Modem/0: 3GPP Registration state
changed (registering -> home)
ModemManager[827]:   Modem
/org/freedesktop/ModemManager1/Modem/0: state changed (enabling ->
registered)
ModemManager[827]:   Simple connect state (4/8): Wait to get fully enabled
ModemManager[827]:   Simple connect state (5/8): Register
ModemManager[827]:   Simple connect state (6/8): Bearer
ModemManager[827]:   Simple connect state (7/8): Connect
ModemManager[827]:   Modem
/org/freedesktop/ModemManager1/Modem/0: state changed (registered ->
connecting)
ModemManager[827]:   Modem
/org/freedesktop/ModemManager1/Modem/0: state changed (connecting ->
connected)
ModemManager[827]:   Simple connect state (8/8): All done
successfully connected the modem
root@ccimx6sbc:~# mmcli -m 0

/org/freedesktop/ModemManager1/Modem/0 (device id
'f19bc7567e36f9fef0e5998b5f6a9f7346785ec1')
  -
  Hardware |   manufacturer: 'Cinterion'
   |  model: 'PLS8-X'
   |   revision: 'REVISION 03.003'
   |  supported: 'gsm-umts, lte'
   |current: 'gsm-umts, lte'
   |   equipment id: '004401081420651'
  -
  System   | device:
'/sys/devices/soc0/soc.0/210.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1'
   |drivers: 'cdc_acm, cdc_ether'
   | plugin: 'Cinterion'
   |   primary port: 'ttyACM1'
   |  ports: 'ttyACM1 (at), ttyACM0 (at), usb0 (net),
usb1 (net)'
  -
  Numbers  |   own : 'unknown'
  -
  Status   |   lock: 'none'
   | unlock retries: 'sim-pin (3), sim-pin2 (3), sim-puk (10),
sim-puk2 (10), ph-net-pin (10), ph-net-puk (32), ph-fsim-pin (10),
ph-fsim-puk (32)'
   |  state: 'connected'
   |power state: 'on'
   |access tech: 'edge'
   | signal quality: '20' (recent)
  -
  Modes|  supported: 'allowed: 2g; preferred: none
   |  allowed: 3g; preferred: none
   |  allowed: 2g, 3g; preferred: none
   |  allowed: 2g, 3g, 4g; preferred: none'
   |current: 'allowed: any; preferred: none'
  -
  Bands|  supported: 'egsm, dcs, pcs, g850, u1900, u850'
   |current: 'egsm, dcs, pcs, g850, u1900, u850'
  -
  IP   |  supported: 'ipv4, ipv6, ipv4v6'
  -
  3GPP |   imei: '004401081420651'
   |  enabled locks: 'none'
   |operator id: '21407'
   |  operator name: 'Movistar'
   |   subscription: 'unknown'
   |   registration: 'home'
  -
  SIM  |   path: '/org/freedesktop/ModemManager1/SIM/0'

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

root@ccimx6sbc:~# mmcli -
root@ccimx6sbc:~# udhcpc -i usb0
udhcpc (v1.23.2) started
cdc_ether 1-1.1:1.10 usb0: CDC: unexpected notification 01!
Sending discover...
Sending discover...
^C
root@ccimx6sbc:~# udhcpc -i usb1
udhcpc (v1.23.2) started
cdc_ether 1-1.1:1.12 usb1: CDC: unexpected notification 01!
Sending discover...

Any idea why the CDC ether driver warns about that unexpected
notifications, and