mbimcli / Telit LN932

Dan Williams dcbw at redhat.com
Thu Mar 24 16:53:32 UTC 2016


On Thu, 2016-03-24 at 17:10 +0100, Sebastian Sjoholm wrote:
> > 
> > 
> > Probably the --no-close and --no-open options, which preserve the
> > connection across runs because they don't close the connection when
> > mbimcli exits.  Look at the utils/mbim-network script for how those
> > work and where to get the transaction ID for --no-open.
> > 
> Thanks, You are right. Below is printout from the “mbim-network”
> script that keeps track on the TRID and uses no-open/no-close. I seem
> to get the connection now that keeps active.
> 
> However the DHCP client does not seem to get the IP address, I am
> using udhcpc, I will keep on digging. 

Oh, note there's a libmbim-devel mailing list for MBIM stuff, I'm cc-
ing it on this mail too.

MBIM devices don't have to support DHCP and many don't.  You can use
the static IP configuration reported by mbimcli 1.12.4 and above, which
was just released last week.  That should give you all the info you
need, including address/prefix/gateway/dns/mtu.

Dan

> -Sebastian
> 
> root at SBC05:~# mbim-network /dev/cdc-wdm0 start
> Loading profile...
>     APN: lte1.dynamic.com
> Querying subscriber ready status 'mbimcli -d /dev/cdc-wdm0 --query-
> subscriber-ready-status --no-close'...
> [/dev/cdc-wdm0] Subscriber ready status retrieved: Ready state:
> 'initialized' Subscriber ID: '235911003601117' SIM ICCID:
> '8931104000000004021' Ready info: 'unknown' Telephone numbers: (0)
> 'unknown' [/dev/cdc-wdm0] Session not closed: TRID: '3'
> Saving state... (TRID: 3)
> Querying registration state 'mbimcli -d /dev/cdc-wdm0 --query-
> registration-state --no-open=3 --no-close'...
> [/dev/cdc-wdm0] Registration status: Network error: 'unknown'
> Register state: 'home' Register mode: 'automatic' Available data
> classes: 'gprs, umts, hsdpa, hsupa' Current cellular class: 'gsm'
> Provider ID: '23591' Provider name: '23591' Roaming text: 'unknown'
> Registration flags: 'packet-service-automatic-attach' [/dev/cdc-wdm0] 
> Session not closed: TRID: '4'
> Saving state... (TRID: 4)
> Attaching to packet service with 'mbimcli -d /dev/cdc-wdm0 --attach-
> packet-service --no-open=4 --no-close'...
> Saving state... (TRID: 5)
> Starting network with 'mbimcli -d /dev/cdc-wdm0 --
> connect=lte1.dynamic.com --no-open=5 --no-close'...
> Network started successfully
> Saving state... (TRID: 7)
> root at SBC05:~# mbim-network /dev/cdc-wdm0 status
> Loading profile...
>     APN: lte1.dynamic.com
> Loading previous state...
>     Previous Transaction ID: 7
> Getting status with 'mbimcli -d /dev/cdc-wdm0 --query-connection-
> state --no-close --no-open=7'...
> Saving state... (TRID: 8)
> Status: activated
> root at SBC05:~# mbimcli -d /dev/cdc-wdm0 --query-connection-state --no-
> close --no-open=8
> [/dev/cdc-wdm0] Connection status:
>               Session ID: '0'
>         Activation state: 'activated'
>         Voice call state: 'none'
>                  IP type: 'ipv4'
>             Context type: 'internet'
>            Network error: 'unknown'
> [/dev/cdc-wdm0] Session not closed:
>             TRID: '9'
> root at SBC05:~#
> 
> 
> 
> 
> 
> 
> 


More information about the libmbim-devel mailing list