cannot get expected data format: Failed to open file '/sys/class/net/wwan1/qmi/raw_ip

Aleksander Morgado aleksander at aleksander.es
Thu Jun 30 16:06:45 UTC 2016


Hey,

>
> I'm new with libqmi so I hope that my question is not too noobiest :
>
> I try to use qmi-network and I have this ( I test with /dev/dcd-wdm0 to but
> it's raw-ip device not 802-3 ) :
>
> -----------------------------------------------------------------------
> # qmi-network /dev/cdc-wdm1 start
> Loading profile at /etc/qmi-network.conf...
>     APN: websfr
>     APN user: unset
>     APN password: unset
>     qmi-proxy: no
> Checking data format with 'qmicli -d /dev/cdc-wdm1 --wda-get-data-format
> '...
> Device link layer protocol retrieved: 802-3
> Getting expected data format with 'qmicli -d /dev/cdc-wdm1
> --get-expected-data-format'...
>
> error: cannot get expected data format: Expected data format not retrieved
> properly: Failed to open file '/sys/class/net/wwan1/qmi/raw_ip': Aucun
> fichier ou dossier de ce type
>
> Expected link layer protocol not retrieved: kernel unsupported
>

Ok, this shouldn't be an issue, it really isn't an error, maybe we
should just put "warning:" instead.

> ./qmi-network: 278: [: 802-3: unexpected operator
>

Ouch, this one shouldn't be there. Fixed it already in git master.

> Updating device link layer protocol with 'qmicli -d /dev/cdc-wdm1
> --wda-set-data-format=802-3 '...
> New device link layer protocol retrieved: 802-3

Ok, this is good.

> Starting network with 'qmicli -d /dev/cdc-wdm1
> --wds-start-network=apn='websfr'  --client-no-release-cid '...
>
> error: operation failed: Transaction timed out
>
> Saving state at /tmp/qmi-network-state-cdc-wdm1... (CID: 13)
>
> error: network start failed, no packet data handle
>
> Clearing state at /tmp/qmi-network-state-cdc-wdm1...
>

Ok, this is not good. Did you have a good coverage/signal quality?

> ----------------------------------------------------------------------------
> APN=websfr     ( french op, it is the good one for the sim card , i try it
> on smartphone )
>

Does it require user/pass? Can you retry but leaving APN= (i.e. blank)?

> questions :
> * '/sys/class/net/wwan1/qmi/raw_ip'  does not exist
>

This is just saying that your kernel doesn't support this. Not a big
deal, though, you can run in 802.3 mode just fine.

> ls  /sys/class/net/wwan1/
> addr_assign_type
> carrier
> dev_port
> ifalias
> mtu
> power/
> subsystem
> address
> carrier_changes
> dormant
> ifindex
> netdev_group
> queues/
> tx_queue_len
> addr_len
> device
> duplex
> iflink
> operstate
> speed
> type
> broadcast
> dev_id
> flags
> link_mode
> phys_port_id
> statistics/
> uevent
>
> no qmi directory here. is this normal ?
>

/sys/class/net/wwan1/device/driver should link to qmi_wwan.


> * question : why it doesn't connect ?
>

Good question.

> system : debian 7
>
> lsmod |grep qmi
> qmi_wwan               20971  0
> cdc_wdm                17427  1 qmi_wwan
> usbnet                 34989  1 qmi_wwan
> usbcore               199571  10
> uhci_hcd,usbserial,ehci_hcd,ehci_pci,qmi_wwan,option,usbnet,usb_wwan,ftdi_sio,cdc_wdm
>
> qmicli 1.15  from today (06/30/2016)
> - git clone git://anongit.freedesktop.org/libqmi ==> autogen.sh ==> make ==>
> make install )
>
> information from modem :
>
>     Manufacturer: 'Sierra Wireless, Incorporated'
>     Model: 'MC7304'
>     Revision: 'SWI9X15C_05.05.16.02 r21040 carmd-fwbuild1 2014/03/17
> 23:49:48'
>  --------------------------------------
>  power / pin / ICCID / IMSI
>     Power state: 'external-source'
>     Battery level: '0 %'
>  PIN status retrieved successfully
>  PIN1:
>     Status: disabled
>     Verify: 3
>     Unblock: 10
>  PIN2:
>     Status: enabled-not-verified
>     Verify: 3
>     Unblock: 10
>     State: 'initialization-completed'
>  --------------------------------------
>
>     Mode: 'online'
>     HW restricted: 'no'
>
> ----------------------------------------------
>

All good.

> qmicli -d /dev/cdc-wdm0 --wda-get-data-format
>
> [/dev/cdc-wdm0] Successfully got data format
>  QoS flow header: no
>  Link layer protocol: 'raw-ip'
>   Uplink data aggregation protocol: 'disabled'
>  Downlink data aggregation protocol: 'disabled'
>  NDP signature: '0'
>   Uplink data aggregation max size: '0'
>  Downlink data aggregation max size: '0'
>

All good.

> qmicli -d /dev/cdc-wdm1 --wda-get-data-format
>
> [/dev/cdc-wdm1] Successfully got data format
>  QoS flow header: no
>  Link layer protocol: '802-3'
>  Uplink data aggregation protocol: 'disabled'
> Downlink data aggregation protocol: 'disabled'
>  NDP signature: '0'
>  Uplink data aggregation max size: '0'
> Downlink data aggregation max size: '0'
>

All good.

>
> qmicli -d /dev/cdc-wdm1 --nas-get-serving-system
> [/dev/cdc-wdm1] Successfully got serving system:
>     Registration state: 'not-registered-searching'
>     CS: 'detached'
>     PS: 'detached'
>     Selected network: '3gpp'
>     Radio interfaces: '1'
>         [0]: 'lte'
>     Roaming status: 'off'
>     Data service capabilities: '0'
>     Current PLMN:
>         MCC: '208'
>         MNC: '10'
>         Description: ''
>     Roaming indicators: '1'
>         [0]: 'off' (lte)
>     Detailed status:
>         Status: 'limited'
>         Capability: 'ps'
>         HDR Status: 'none'
>         HDR Hybrid: 'yes'
>         Forbidden: 'no'
>     Full operator code info:
>         MCC: '208'
?>         MNC: '10'
>         MNC with PCS digit: 'no'
>

You're not registered to any network, likely this is why it didn't connect.

>
> and finally :
>
> qmicli -d /dev/cdc-wdm1 --nas-get-system-info
> [/dev/cdc-wdm1] Successfully got system info:
>     GSM service:
>         Status: 'none'
>         True Status: 'none'
>         Preferred data path: 'no'
>     WCDMA service:
>         Status: 'none'
>         True Status: 'none'
>         Preferred data path: 'no'
>     LTE service:
>         Status: 'limited'
>         True Status: 'none'
>         Preferred data path: 'no'
>         Domain: 'none'
>         Service capability: 'cs-ps'
>         Roaming status: 'off'
>         Forbidden: 'no'
>         Cell ID: 'XXXXXXXX'
>         MCC: '208'
>         MNC: '10'
>         Tracking Area Code: 'XXXXX'
>         eMBMS coverage info support: 'no'
>     SIM reject info: 'available'
>
>
> I see this
>     LTE service:
>         Status: 'limited'
>

The device isn't registered in any network, the "limited" service is
likely just saying that you only have the emergency network available
(e.g. 112 dialing).

> What does it mean ? (i try the sim card on a smartphone without problem)
> I hope you will have enougth details to help me.
>

Does the modem have an external antenna plugged in? :)

What's the output of --nas-get-signal-info?

-- 
Aleksander
https://aleksander.es


More information about the libqmi-devel mailing list