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

Nicolas RENAULT nicolas.renault at openinfo.fr
Thu Jun 30 15:38:05 UTC 2016


Hi,

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

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

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
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...

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

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

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 ?

* question : why it doesn't connect ?

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'

----------------------------------------------

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'

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'


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'


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'

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

Regards



-- 
Nicolas



More information about the libqmi-devel mailing list