Problem configuring LIBQMI for quectel UC20

LaserIndustries - tec4.ele tec4.ele at laserindustries.it
Thu Mar 8 09:21:32 UTC 2018


Good morning,

I'm experiencing some problems to get work the Quectel UC20 modem through QMI wwan interface.

I followed the manufacturer guide to setup the kernel and I got the cdc-qmi.
This is the system startup log
$ dmesg | grep wwan
[    2.198913] usbcore: registered new interface driver qmi_wwan
[    6.692204] qmi_wwan 1-1:1.4: cdc-wdm0: USB WDM device
[    6.697773] qmi_wwan 1-1:1.4 wwan0: register 'qmi_wwan' at usb-d005e000.usb-1, WWAN/QMI device, 32:33:dd:3b:b1:89

$ dmesg | grep USB
[    5.201011] usbserial: USB Serial support registered for GSM modem (1-port)
[    5.214139] usbserial: USB Serial support registered for Qualcomm USB modem
[    6.495066] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    6.642596] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
[    6.656162] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
[    6.669843] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
[    6.683644] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB3
[    6.692204] qmi_wwan 1-1:1.4: cdc-wdm0: USB WDM device

$ ifconfig wwan0
wwan0     Link encap:Ethernet  HWaddr 32:33:dd:3b:b1:89
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)


This is when I try to control the interface
$ sudo qmicli -d /dev/cdc-wdm0 --dms-set-operating-mode=online
[/dev/cdc-wdm0] Operating mode set successfully

$ sudo qmicli -d /dev/cdc-wdm0 --nas-get-system-info
[/dev/cdc-wdm0] Successfully got system info:
                GSM service:
                               Status: 'none'
                               True Status: 'none'
                               Preferred data path: 'no'
                WCDMA service:
                               Status: 'available'
                               True Status: 'available'
                               Preferred data path: 'no'
                               Domain: 'cs-ps'
                               Service capability: 'cs-ps'
                               Roaming status: 'off'
                               Forbidden: 'no'
                               Location Area Code: '61324'
                               Cell ID: '86808460'
                               MCC: '222'
                               MNC: '01'
                               HS call status: 'hsdpa-hsupa-unsupported'
                               HS service: 'hsdpa-hsupa-supported'
                               Cell broadcast support: 'off'
                               Call barring status (CS): 'all-calls'
                               Call barring status (PS): 'all-calls'
                               Cipher Domain: 'none'
                SIM reject info: 'available'

$ sudo qmicli -d /dev/cdc-wdm0 --wda-get-data-format
[/dev/cdc-wdm0] 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'

$ sudo qmicli -d /dev/cdc-wdm0 --set-expected-data-format=raw-ip
error: cannot set expected data format: Expected data format not updated properly: Failed to open file '/sys/class/net/wwan0/qmi/raw_ip' for R/W: No such file or directory




$ sudo qmi-network /dev/cdc-wdm0 start
Loading profile at /etc/qmi-network.conf...
    APN: ibox.tim.it
    APN user: USERNAME1
    APN password: PASSWORD1
    qmi-proxy: no
Checking data format with 'qmicli -d /dev/cdc-wdm0 --wda-get-data-format '...
Device link layer protocol retrieved: 802-3
Getting expected data format with 'qmicli -d /dev/cdc-wdm0 --get-expected-data-format'...
error: cannot get expected data format: Expected data format not retrieved properly: Failed to open file '/sys/class/net/wwan0/qmi/raw_ip': No such file or directory
Expected link layer protocol not retrieved: kernel unsupported
Device and kernel link layer protocol match: 802-3
Starting network with 'qmicli -d /dev/cdc-wdm0 --wds-start-network=apn='ibox.tim.it',username='USERNAME1',password='PASSWORD1'  --client-no-release-cid '...
error: couldn't start network: QMI protocol error (64): '(null)'
Saving state at /tmp/qmi-network-state-cdc-wdm0... (CID: 1)
error: network start failed, no packet data handle
Clearing state at /tmp/qmi-network-state-cdc-wdm0...


I can't understand at what level is the problem.. It seems Have a problem on the interface configuration?

Thankyou very much for your suggestion.

Cordialità,
Luca Vanzin - Tecnico Elettronico
Laser Industries


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libqmi-devel/attachments/20180308/3f17876a/attachment-0001.html>


More information about the libqmi-devel mailing list