error getting data format

Daniele Palmas dnlplm at gmail.com
Wed Dec 2 17:45:33 UTC 2020


Hi Paul,

Il giorno mer 2 dic 2020 alle ore 16:51 Paul Gildea <gildeap at tcd.ie> ha scritto:
>
> Hi,
>
> Was wondering if you may have some idea what is going on with this error with a Telit FN980m.

can you try also with ep information, something like:

sudo qmicli -d /dev/cdc-wdm0
--wda-get-data-format="ep-type=hsusb,ep-iface-number=2"

?

Regards,
Daniele


> This was seen before but changing the sim allowed me to connect to a network, now I can't connect to said and get the below messages again. I am also getting the same when trying to set raw-ip. Will also show that verbose output.
>
>>
>>  modem1: qmi_cmd: ['--wda-get-data-format']
>>  qmi_cmd: resp="error: couldn't get data format: QMI protocol error (17): 'MissingArgument'\n"
>
>
>> [root at TRX-R6-2 /]# qmicli -p -d /dev/cdc-wdm1 --wda-get-data-format
>> error: couldn't get data format: QMI protocol error (17): 'MissingArgument'
>> [root at TRX-R6-2 /]#
>> [root at TRX-R6-2 /]#
>> [root at TRX-R6-2 /]# qmicli -p -d -v /dev/cdc-wdm1 --wda-get-data-format
>> error: couldn't create QmiDevice: Couldn't query file info: Error when getting information for file ?/-v?:
>> No such file or directory
>> [root at TRX-R6-2 /]# qmicli -p -v -d /dev/cdc-wdm1 --wda-get-data-format
>> [02 Dec 2020, 13:28:48] [Debug] [/dev/cdc-wdm1] Opening device with flags 'proxy, auto'...
>> [02 Dec 2020, 13:28:48] [Debug] [/dev/cdc-wdm1] loaded driver of cdc-wdm port: qmi_wwan
>> [02 Dec 2020, 13:28:48] [Debug] [/dev/cdc-wdm1] automatically selecting QMI mode
>> [02 Dec 2020, 13:28:48] [Debug] [/dev/cdc-wdm1] created endpoint
>> [02 Dec 2020, 13:28:48] [Debug] [/dev/cdc-wdm1] sent message...
>> <<<<<< RAW:
>> <<<<<<   length = 28
>> <<<<<<   data   = 01:1B:00:00:00:00:00:01:00:FF:10:00:01:0D:00:2F:64:65:76:2F:63:64:63:2D:77:64:6D:31
>> [02 Dec 2020, 13:28:48] [Debug] [/dev/cdc-wdm1] sent generic request (translated)...
>> <<<<<< QMUX:
>> <<<<<<   length  = 27
>> <<<<<<   flags   = 0x00
>> <<<<<<   service = "ctl"
>> <<<<<<   client  = 0
>> <<<<<< QMI:
>> <<<<<<   flags       = "none"
>> <<<<<<   transaction = 1
>> <<<<<<   tlv_length  = 16
>> <<<<<<   message     = "Internal Proxy Open" (0xFF00)
>> <<<<<< TLV:
>> <<<<<<   type       = "Device Path" (0x01)
>> <<<<<<   length     = 13
>> <<<<<<   value      = 2F:64:65:76:2F:63:64:63:2D:77:64:6D:31
>> <<<<<<   translated = /dev/cdc-wdm1
>> [02 Dec 2020, 13:28:48] [Debug] [/dev/cdc-wdm1] received message...
>> <<<<<< RAW:
>> <<<<<<   length = 19
>> <<<<<<   data   = 01:12:00:80:00:00:01:01:00:FF:07:00:02:04:00:00:00:00:00
>> [02 Dec 2020, 13:28:48] [Debug] [/dev/cdc-wdm1] received generic response (translated)...
>> <<<<<< QMUX:
>> <<<<<<   length  = 18
>> <<<<<<   flags   = 0x80
>> <<<<<<   service = "ctl"
>> <<<<<<   client  = 0
>> <<<<<< QMI:
>> <<<<<<   flags       = "response"
>> <<<<<<   transaction = 1
>> <<<<<<   tlv_length  = 7
>> <<<<<<   message     = "Internal Proxy Open" (0xFF00)
>> <<<<<< TLV:
>> <<<<<<   type       = "Result" (0x02)
>> <<<<<<   length     = 4
>> <<<<<<   value      = 00:00:00:00
>> <<<<<<   translated = SUCCESS
>> [02 Dec 2020, 13:28:48] [Debug] QMI Device at '/dev/cdc-wdm1' ready
>> [02 Dec 2020, 13:28:48] [Debug] [/dev/cdc-wdm1] Assuming service 'wda' is supported...
>> [02 Dec 2020, 13:28:48] [Debug] [/dev/cdc-wdm1] Allocating new client ID...
>> [02 Dec 2020, 13:28:48] [Debug] [/dev/cdc-wdm1] sent message...
>> <<<<<< RAW:
>> <<<<<<   length = 16
>> <<<<<<   data   = 01:0F:00:00:00:00:00:02:22:00:04:00:01:01:00:1A
>> [02 Dec 2020, 13:28:48] [Debug] [/dev/cdc-wdm1] sent generic request (translated)...
>> <<<<<< QMUX:
>> <<<<<<   length  = 15
>> <<<<<<   flags   = 0x00
>> <<<<<<   service = "ctl"
>> <<<<<<   client  = 0
>> <<<<<< QMI:
>> <<<<<<   flags       = "none"
>> <<<<<<   transaction = 2
>> <<<<<<   tlv_length  = 4
>> <<<<<<   message     = "Allocate CID" (0x0022)
>> <<<<<< TLV:
>> <<<<<<   type       = "Service" (0x01)
>> <<<<<<   length     = 1
>> <<<<<<   value      = 1A
>> <<<<<<   translated = wda
>> [02 Dec 2020, 13:28:48] [Debug] [/dev/cdc-wdm1] received message...
>> <<<<<< RAW:
>> <<<<<<   length = 24
>> <<<<<<   data   = 01:17:00:80:00:00:01:02:22:00:0C:00:02:04:00:00:00:00:00:01:02:00:1A:01
>> [02 Dec 2020, 13:28:48] [Debug] [/dev/cdc-wdm1] received generic response (translated)...
>> <<<<<< QMUX:
>> <<<<<<   length  = 23
>> <<<<<<   flags   = 0x80
>> <<<<<<   service = "ctl"
>> <<<<<<   client  = 0
>> <<<<<< QMI:
>> <<<<<<   flags       = "response"
>> <<<<<<   transaction = 2
>> <<<<<<   tlv_length  = 12
>> <<<<<<   message     = "Allocate CID" (0x0022)
>> <<<<<< TLV:
>> <<<<<<   type       = "Result" (0x02)
>> <<<<<<   length     = 4
>> <<<<<<   value      = 00:00:00:00
>> <<<<<<   translated = SUCCESS
>> <<<<<< TLV:
>> <<<<<<   type       = "Allocation Info" (0x01)
>> <<<<<<   length     = 2
>> <<<<<<   value      = 1A:01
>> <<<<<<   translated = [ service = 'wda' cid = '1' ]
>> [02 Dec 2020, 13:28:48] [Debug] [/dev/cdc-wdm1] Registered 'wda' (version unknown) client with ID '1'
>> [02 Dec 2020, 13:28:48] [Debug] Asynchronously getting data format...
>> [02 Dec 2020, 13:28:48] [Debug] [/dev/cdc-wdm1] sent message...
>> <<<<<< RAW:
>> <<<<<<   length = 13
>> <<<<<<   data   = 01:0C:00:00:1A:01:00:01:00:21:00:00:00
>> [02 Dec 2020, 13:28:48] [Debug] [/dev/cdc-wdm1] sent generic request (translated)...
>> <<<<<< QMUX:
>> <<<<<<   length  = 12
>> <<<<<<   flags   = 0x00
>> <<<<<<   service = "wda"
>> <<<<<<   client  = 1
>> <<<<<< QMI:
>> <<<<<<   flags       = "none"
>> <<<<<<   transaction = 1
>> <<<<<<   tlv_length  = 0
>> <<<<<<   message     = "Get Data Format" (0x0021)
>> [02 Dec 2020, 13:28:52] [Debug] [/dev/cdc-wdm1] received message...
>> <<<<<< RAW:
>> <<<<<<   length = 20
>> <<<<<<   data   = 01:13:00:80:1A:01:02:01:00:21:00:07:00:02:04:00:01:00:11:00
>> [02 Dec 2020, 13:28:52] [Debug] [/dev/cdc-wdm1] received generic response (translated)...
>> <<<<<< QMUX:
>> <<<<<<   length  = 19
>> <<<<<<   flags   = 0x80
>> <<<<<<   service = "wda"
>> <<<<<<   client  = 1
>> <<<<<< QMI:
>> <<<<<<   flags       = "response"
>> <<<<<<   transaction = 1
>> <<<<<<   tlv_length  = 7
>> <<<<<<   message     = "Get Data Format" (0x0021)
>> <<<<<< TLV:
>> <<<<<<   type       = "Result" (0x02)
>> <<<<<<   length     = 4
>> <<<<<<   value      = 01:00:11:00
>> <<<<<<   translated = FAILURE: MissingArgument
>> error: couldn't get data format: QMI protocol error (17): 'MissingArgument'
>> [02 Dec 2020, 13:28:52] [Debug] [/dev/cdc-wdm1] Releasing 'wda' client with flags 'release-cid'...
>> [02 Dec 2020, 13:28:52] [Debug] [/dev/cdc-wdm1] Unregistered 'wda' client with ID '1'
>> [02 Dec 2020, 13:28:52] [Debug] [/dev/cdc-wdm1] sent message...
>> <<<<<< RAW:
>> <<<<<<   length = 17
>> <<<<<<   data   = 01:10:00:00:00:00:00:03:23:00:05:00:01:02:00:1A:01
>> [02 Dec 2020, 13:28:52] [Debug] [/dev/cdc-wdm1] sent generic request (translated)...
>> <<<<<< QMUX:
>> <<<<<<   length  = 16
>> <<<<<<   flags   = 0x00
>> <<<<<<   service = "ctl"
>> <<<<<<   client  = 0
>> <<<<<< QMI:
>> <<<<<<   flags       = "none"
>> <<<<<<   transaction = 3
>> <<<<<<   tlv_length  = 5
>> <<<<<<   message     = "Release CID" (0x0023)
>> <<<<<< TLV:
>> <<<<<<   type       = "Release Info" (0x01)
>> <<<<<<   length     = 2
>> <<<<<<   value      = 1A:01
>> <<<<<<   translated = [ service = 'wda' cid = '1' ]
>> [02 Dec 2020, 13:28:52] [Debug] [/dev/cdc-wdm1] received message...
>> <<<<<< RAW:
>> <<<<<<   length = 24
>> <<<<<<   data   = 01:17:00:80:00:00:01:03:23:00:0C:00:02:04:00:00:00:00:00:01:02:00:1A:01
>> [02 Dec 2020, 13:28:52] [Debug] [/dev/cdc-wdm1] received generic response (translated)...
>> <<<<<< QMUX:
>> <<<<<<   length  = 23
>> <<<<<<   flags   = 0x80
>> <<<<<<   service = "ctl"
>> <<<<<<   client  = 0
>> <<<<<< QMI:
>> <<<<<<   flags       = "response"
>> <<<<<<   transaction = 3
>> <<<<<<   tlv_length  = 12
>> <<<<<<   message     = "Release CID" (0x0023)
>> <<<<<< TLV:
>> <<<<<<   type       = "Result" (0x02)
>> <<<<<<   length     = 4
>> <<<<<<   value      = 00:00:00:00
>> <<<<<<   translated = SUCCESS
>> <<<<<< TLV:
>> <<<<<<   type       = "Release Info" (0x01)
>> <<<<<<   length     = 2
>> <<<<<<   value      = 1A:01
>> <<<<<<   translated = [ service = 'wda' cid = '1' ]
>> [02 Dec 2020, 13:28:52] [Debug] Client released
>> [02 Dec 2020, 13:28:52] [Debug] Closed
>
>
> raw-ip:
>
>>
>> [root at TRX-R6-2 /]# qmicli --help-all | grep raw
>>   --wda-set-data-format=["key=value,..."]
>>          Set data format (allowed keys: link-layer-protocol (802-3|raw-ip), ul-protocol (tlp|qc-ncm|mbim|rn
>> dis|qmap), dl-protocol (tlp|qc-ncm|mbim|rndis|qmap), dl-datagrams-max-size, dl-max-datagrams, ep-type (unde
>> fined|hsusb), ep-iface-number)
>>   -E, --set-expected-data-format=[802-3|raw-ip]
>>          Set the expected data format in the WWAN iface
>>   --device-open-net=[net-802-3|net-raw-ip|net-qos-header|net-no-qos-header]
>>          Open device with specific link protocol and QoS flags
>> [root at TRX-R6-2 /]# qmicli -p -v -d /dev/cdc-wdm1 --wda-set-data-format=raw-ip
>> [02 Dec 2020, 13:32:25] [Debug] [/dev/cdc-wdm1] Opening device with flags 'proxy, auto'...
>> [02 Dec 2020, 13:32:25] [Debug] [/dev/cdc-wdm1] loaded driver of cdc-wdm port: qmi_wwan
>> [02 Dec 2020, 13:32:25] [Debug] [/dev/cdc-wdm1] automatically selecting QMI mode
>> [02 Dec 2020, 13:32:25] [Debug] [/dev/cdc-wdm1] created endpoint
>> [02 Dec 2020, 13:32:25] [Debug] [/dev/cdc-wdm1] sent message...
>> <<<<<< RAW:
>> <<<<<<   length = 28
>> <<<<<<   data   = 01:1B:00:00:00:00:00:01:00:FF:10:00:01:0D:00:2F:64:65:76:2F:63:64:63:2D:77:64:6D:31
>> [02 Dec 2020, 13:32:25] [Debug] [/dev/cdc-wdm1] sent generic request (translated)...
>> <<<<<< QMUX:
>> <<<<<<   length  = 27
>> <<<<<<   flags   = 0x00
>> <<<<<<   service = "ctl"
>> <<<<<<   client  = 0
>> <<<<<< QMI:
>> <<<<<<   flags       = "none"
>> <<<<<<   transaction = 1
>> <<<<<<   tlv_length  = 16
>> <<<<<<   message     = "Internal Proxy Open" (0xFF00)
>> <<<<<< TLV:
>> <<<<<<   type       = "Device Path" (0x01)
>> <<<<<<   length     = 13
>> <<<<<<   value      = 2F:64:65:76:2F:63:64:63:2D:77:64:6D:31
>> <<<<<<   translated = /dev/cdc-wdm1
>> [02 Dec 2020, 13:32:25] [Debug] [/dev/cdc-wdm1] received message...
>> <<<<<< RAW:
>> <<<<<<   length = 19
>> <<<<<<   data   = 01:12:00:80:00:00:01:01:00:FF:07:00:02:04:00:00:00:00:00
>> [02 Dec 2020, 13:32:25] [Debug] [/dev/cdc-wdm1] received generic response (translated)...
>> <<<<<< QMUX:
>> <<<<<<   length  = 18
>> <<<<<<   flags   = 0x80
>> <<<<<<   service = "ctl"
>> <<<<<<   client  = 0
>> <<<<<< QMI:
>> <<<<<<   flags       = "response"
>> <<<<<<   transaction = 1
>> <<<<<<   tlv_length  = 7
>> <<<<<<   message     = "Internal Proxy Open" (0xFF00)
>> <<<<<< TLV:
>> <<<<<<   type       = "Result" (0x02)
>> <<<<<<   length     = 4
>> <<<<<<   value      = 00:00:00:00
>> <<<<<<   translated = SUCCESS
>> [02 Dec 2020, 13:32:25] [Debug] QMI Device at '/dev/cdc-wdm1' ready
>> [02 Dec 2020, 13:32:25] [Debug] [/dev/cdc-wdm1] Assuming service 'wda' is supported...
>> [02 Dec 2020, 13:32:25] [Debug] [/dev/cdc-wdm1] Allocating new client ID...
>> [02 Dec 2020, 13:32:25] [Debug] [/dev/cdc-wdm1] sent message...
>> <<<<<< RAW:
>> <<<<<<   length = 16
>> <<<<<<   data   = 01:0F:00:00:00:00:00:02:22:00:04:00:01:01:00:1A
>> [02 Dec 2020, 13:32:25] [Debug] [/dev/cdc-wdm1] sent generic request (translated)...
>> <<<<<< QMUX:
>> <<<<<<   length  = 15
>> <<<<<<   flags   = 0x00
>> <<<<<<   service = "ctl"
>> <<<<<<   client  = 0
>> <<<<<< QMI:
>> <<<<<<   flags       = "none"
>> <<<<<<   transaction = 2
>> <<<<<<   tlv_length  = 4
>> <<<<<<   message     = "Allocate CID" (0x0022)
>> <<<<<< TLV:
>> <<<<<<   type       = "Service" (0x01)
>> <<<<<<   length     = 1
>> <<<<<<   value      = 1A
>> <<<<<<   translated = wda
>> [02 Dec 2020, 13:32:25] [Debug] [/dev/cdc-wdm1] received message...
>> <<<<<< RAW:
>> <<<<<<   length = 24
>> <<<<<<   data   = 01:17:00:80:00:00:01:02:22:00:0C:00:02:04:00:00:00:00:00:01:02:00:1A:01
>> [02 Dec 2020, 13:32:25] [Debug] [/dev/cdc-wdm1] received generic response (translated)...
>> <<<<<< QMUX:
>> <<<<<<   length  = 23
>> <<<<<<   flags   = 0x80
>> <<<<<<   service = "ctl"
>> <<<<<<   client  = 0
>> <<<<<< QMI:
>> <<<<<<   flags       = "response"
>> <<<<<<   transaction = 2
>> <<<<<<   tlv_length  = 12
>> <<<<<<   message     = "Allocate CID" (0x0022)
>> <<<<<< TLV:
>> <<<<<<   type       = "Result" (0x02)
>> <<<<<<   length     = 4
>> <<<<<<   value      = 00:00:00:00
>> <<<<<<   translated = SUCCESS
>> <<<<<< TLV:
>> <<<<<<   type       = "Allocation Info" (0x01)
>> <<<<<<   length     = 2
>> <<<<<<   value      = 1A:01
>> <<<<<<   translated = [ service = 'wda' cid = '1' ]
>> [02 Dec 2020, 13:32:25] [Debug] [/dev/cdc-wdm1] Registered 'wda' (version unknown) client with ID '1'
>> [02 Dec 2020, 13:32:25] [Debug] Asynchronously setting data format...
>> [02 Dec 2020, 13:32:25] [Debug] [/dev/cdc-wdm1] sent message...
>> <<<<<< RAW:
>> <<<<<<   length = 20
>> <<<<<<   data   = 01:13:00:00:1A:01:00:01:00:20:00:07:00:11:04:00:02:00:00:00
>> [02 Dec 2020, 13:32:25] [Debug] [/dev/cdc-wdm1] sent generic request (translated)...
>> <<<<<< QMUX:
>> <<<<<<   length  = 19
>> <<<<<<   flags   = 0x00
>> <<<<<<   service = "wda"
>> <<<<<<   client  = 1
>> <<<<<< QMI:
>> <<<<<<   flags       = "none"
>> <<<<<<   transaction = 1
>> <<<<<<   tlv_length  = 7
>> <<<<<<   message     = "Set Data Format" (0x0020)
>> <<<<<< TLV:
>> <<<<<<   type       = "Link Layer Protocol" (0x11)
>> <<<<<<   length     = 4
>> <<<<<<   value      = 02:00:00:00
>> <<<<<<   translated = raw-ip
>> [02 Dec 2020, 13:32:29] [Debug] [/dev/cdc-wdm1] received message...
>> <<<<<< RAW:
>> <<<<<<   length = 20
>> <<<<<<   data   = 01:13:00:80:1A:01:02:01:00:20:00:07:00:02:04:00:01:00:11:00
>> [02 Dec 2020, 13:32:29] [Debug] [/dev/cdc-wdm1] received generic response (translated)...
>> <<<<<< QMUX:
>> <<<<<<   length  = 19
>> <<<<<<   flags   = 0x80
>> <<<<<<   service = "wda"
>> <<<<<<   client  = 1
>> <<<<<< QMI:
>> <<<<<<   flags       = "response"
>> <<<<<<   transaction = 1
>> <<<<<<   tlv_length  = 7
>> <<<<<<   message     = "Set Data Format" (0x0020)
>> <<<<<< TLV:
>> <<<<<<   type       = "Result" (0x02)
>> <<<<<<   length     = 4
>> <<<<<<   value      = 01:00:11:00
>> <<<<<<   translated = FAILURE: MissingArgument
>> error: couldn't set data format: QMI protocol error (17): 'MissingArgument'
>> [02 Dec 2020, 13:32:29] [Debug] [/dev/cdc-wdm1] Releasing 'wda' client with flags 'release-cid'...
>> [02 Dec 2020, 13:32:29] [Debug] [/dev/cdc-wdm1] Unregistered 'wda' client with ID '1'
>> [02 Dec 2020, 13:32:29] [Debug] [/dev/cdc-wdm1] sent message...
>> <<<<<< RAW:
>> <<<<<<   length = 17
>> <<<<<<   data   = 01:10:00:00:00:00:00:03:23:00:05:00:01:02:00:1A:01
>> [02 Dec 2020, 13:32:29] [Debug] [/dev/cdc-wdm1] sent generic request (translated)...
>> <<<<<< QMUX:
>> <<<<<<   length  = 16
>> <<<<<<   flags   = 0x00
>> <<<<<<   service = "ctl"
>> <<<<<<   client  = 0
>> <<<<<< QMI:
>> <<<<<<   flags       = "none"
>> <<<<<<   transaction = 3
>> <<<<<<   tlv_length  = 5
>> <<<<<<   message     = "Release CID" (0x0023)
>> <<<<<< TLV:
>> <<<<<<   type       = "Release Info" (0x01)
>> <<<<<<   length     = 2
>> <<<<<<   value      = 1A:01
>> <<<<<<   translated = [ service = 'wda' cid = '1' ]
>> [02 Dec 2020, 13:32:29] [Debug] [/dev/cdc-wdm1] received message...
>> <<<<<< RAW:
>> <<<<<<   length = 24
>> <<<<<<   data   = 01:17:00:80:00:00:01:03:23:00:0C:00:02:04:00:00:00:00:00:01:02:00:1A:01
>> [02 Dec 2020, 13:32:29] [Debug] [/dev/cdc-wdm1] received generic response (translated)...
>> <<<<<< QMUX:
>> <<<<<<   length  = 23
>> <<<<<<   flags   = 0x80
>> <<<<<<   service = "ctl"
>> <<<<<<   client  = 0
>> <<<<<< QMI:
>> <<<<<<   flags       = "response"
>> <<<<<<   transaction = 3
>> <<<<<<   tlv_length  = 12
>> <<<<<<   message     = "Release CID" (0x0023)
>> <<<<<< TLV:
>> <<<<<<   type       = "Result" (0x02)
>> <<<<<<   length     = 4
>> <<<<<<   value      = 00:00:00:00
>> <<<<<<   translated = SUCCESS
>> <<<<<< TLV:
>> <<<<<<   type       = "Release Info" (0x01)
>> <<<<<<   length     = 2
>> <<<<<<   value      = 1A:01
>> <<<<<<   translated = [ service = 'wda' cid = '1' ]
>> [02 Dec 2020, 13:32:29] [Debug] Client released
>> [02 Dec 2020, 13:32:29] [Debug] Closed
>
>
> Regards,
>
> --
> Paul
>
>
> _______________________________________________
> libqmi-devel mailing list
> libqmi-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/libqmi-devel


More information about the libqmi-devel mailing list