we have a custom hardware with BG96 module. The module is recognized in Linux, lsusb shows:
Bus 001 Device 003: ID 2c7c:0296 Quectel Wireless Solutions Co., Ltd. BG96 CAT-M1/NB-IoT modem
i configure connection with
nmcli c add type gsm ifname cdc-wdm0 con-name gsm apn XX
nmcli c up gsm
Yes, routing looks fine. It’s similar if I add a WiFi connection.
Difference I saw is if using network manager device is in raw ip mode, if starting qmicli device is in 802.3 mode. Any idea if this can cause the problem?
I don’t use both tools in parallel. During hardware bringup we used qmicli to validate hw function and it worked. Now we decided to go with networkmanager which is not working. If I use networkmanager the qmicli script is disabled, only networkmanager and modemmanager are running
That is obvious, no need to explain. I was talking about the modem, not the tools - from my point of view, if it supports, say, 802.3 mode, it will not support other mode(s). I would check the cause with modemmanager.
I am one step further. I checked the logs of ModemManager and saw that the BG96 module reports that it has raw-ip data format. ModemManager then changes to raw-ip which is not working.
Any idea why the bg96 reports raw-ip?
ModemManager[377]: <debug> [946698157.433803] Querying device data format...
ModemManager[377]: [/dev/cdc-wdm0] sent message...
<<<<<< RAW:
<<<<<< length = 13
<<<<<< data = 01:0C:00:00:1A:01:00:01:00:21:00:00:00
ModemManager[377]: [/dev/cdc-wdm0] 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)
ModemManager[377]: [/dev/cdc-wdm0] received message...
<<<<<< RAW:
<<<<<< length = 91
<<<<<< data = 01:5A:00:80:1A:01:02:01:00:21:00:4E:00:02:04:00:00:00:00:00:10:01:00:00:11:04:00:02:00:00:00:12:04:00:00:00:00:00:13:04:00:00:00:00:00:14:04:00:00:00:00:00:15:04:00:00:00:00:00:16:04:00:00:00:00:00:17:04:00:10:00:00:00:18:04:00:00:10:00:00:1A:04:00:00:00:00:00:1B:01:00:00
ModemManager[377]: [/dev/cdc-wdm0] received generic response (translated)...
<<<<<< QMUX:
<<<<<< length = 90
<<<<<< flags = 0x80
<<<<<< service = "wda"
<<<<<< client = 1
<<<<<< QMI:
<<<<<< flags = "response"
<<<<<< transaction = 1
<<<<<< tlv_length = 78
<<<<<< message = "Get Data Format" (0x0021)
<<<<<< TLV:
<<<<<< type = "Result" (0x02)
<<<<<< length = 4
<<<<<< value = 00:00:00:00
<<<<<< translated = SUCCESS
<<<<<< TLV:
<<<<<< type = "QoS Format" (0x10)
<<<<<< length = 1
<<<<<< value = 00
<<<<<< translated = no
<<<<<< TLV:
<<<<<< type = "Link Layer Protocol" (0x11)
<<<<<< length = 4
<<<<<< value = 02:00:00:00
<<<<<< translated = raw-ip
<<<<<< TLV:
<<<<<< type = "Uplink Data Aggregation Protocol" (0x12)
<<<<<< length = 4
<<<<<< value = 00:00:00:00
<<<<<< translated = disabled
<<<<<< TLV:
<<<<<< type = "Downlink Data Aggregation Protocol" (0x13)
<<<<<< length = 4
<<<<<< value = 00:00:00:00
<<<<<< translated = disabled
<<<<<< TLV:
<<<<<< type = "NDP Signature" (0x14)
<<<<<< length = 4
<<<<<< value = 00:00:00:00
<<<<<< translated = 0
<<<<<< TLV:
<<<<<< type = "Uplink Data Aggregation Max Size" (0x15)
<<<<<< length = 4
<<<<<< value = 00:00:00:00
<<<<<< translated = 0
<<<<<< TLV:
<<<<<< type = "Downlink Data Aggregation Max Size" (0x16)
<<<<<< length = 4
<<<<<< value = 00:00:00:00
<<<<<< translated = 0
<<<<<< TLV:
<<<<<< type = 0x17
<<<<<< length = 4
<<<<<< value = 10:00:00:00
<<<<<< TLV:
<<<<<< type = 0x18
<<<<<< length = 4
<<<<<< value = 00:10:00:00
<<<<<< TLV:
<<<<<< type = 0x1a
<<<<<< length = 4
<<<<<< value = 00:00:00:00
<<<<<< TLV:
<<<<<< type = 0x1b
<<<<<< length = 1
<<<<<< value = 00
ModemManager[377]: <debug> [946698157.438634] Checking data format: kernel 802-3, device raw-ip
ModemManager[377]: <debug> [946698157.438713] Updating kernel data format: raw-ip
Found the proplem. Our kernel had some kernel patches which are recommended in another documentation from quectel. When I removed the patch everything works fine. It looks like this kernel patch is not compatible with modemmanager