Re: “bytes-rx” and “bytes-tx” statistics are not getting populated
Hey! > > Yes, my default route is through modem only and in fact below is qmicli output > > root@OpenWrt:/# qmicli -d /dev/cdc-wdm0 -p --wds-get-packet-statistics > [/dev/cdc-wdm0] Connection statistics: > TX packets OK: 97 > RX packets OK: 87 > TX packets dropped: 0 > RX packets dropped: 0 > TX bytes OK: 6271 > RX bytes OK: 9891 > > When I switched modem back to QMI mode then these stats are reported in mmcli. > > Again some problem with MBIM support in the modem? > Yes, that seems to be the case I'm afraid. -- Aleksander https://aleksander.es ___ ModemManager-devel mailing list ModemManager-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel
RE: “bytes-rx” and “bytes-tx” statistics are not getting populated
Yes, my default route is through modem only and in fact below is qmicli output root@OpenWrt:/# qmicli -d /dev/cdc-wdm0 -p --wds-get-packet-statistics [/dev/cdc-wdm0] Connection statistics: TX packets OK: 97 RX packets OK: 87 TX packets dropped: 0 RX packets dropped: 0 TX bytes OK: 6271 RX bytes OK: 9891 When I switched modem back to QMI mode then these stats are reported in mmcli. Again some problem with MBIM support in the modem? The information in this email communication (inclusive of attachments) is confidential to 4RF Limited and the intended recipient(s). If you are not the intended recipient(s), please note that any use, disclosure, distribution or copying of this information or any part thereof is strictly prohibited and that the author accepts no liability for the consequences of any action taken on the basis of the information provided. If you have received this email in error, please notify the sender immediately by return email and then delete all instances of this email from your system. 4RF Limited will not accept responsibility for any consequences associated with the use of this email (including, but not limited to, damages sustained as a result of any viruses and/or any action or lack of action taken in reliance on it).-Original Message- From: Aleksander Morgado Sent: Thursday, 10 October 2019 4:09 PM To: Amol Lad Cc: ModemManager (development) Subject: Re: “bytes-rx” and “bytes-tx” statistics are not getting populated Hey, > Oct 10 09:23:13 OpenWrt [6904]: [/dev/cdc-wdm0] Received message > (translated)... > >>>>>> Header: > >>>>>> length = 96 > >>>>>> type= command-done (0x8003) > >>>>>> transaction = 37 > >>>>>> Fragment header: > >>>>>> total = 1 > >>>>>> current = 0 > >>>>>> Contents: > >>>>>> status error = 'None' (0x) > >>>>>> service = 'basic-connect' (a289cc33-bcbb-8b4f-b6b0-133ec2aae6df) > >>>>>> cid = 'packet-statistics' (0x0014) > >>>>>> Fields: > >>>>>> InDiscards = '0' > >>>>>> InErrors = '0' > >>>>>> InOctets = '0' > >>>>>> InPackets = '0' > >>>>>> OutOctets = '0' > >>>>>> OutPackets = '0' > >>>>>> OutErrors = '0' > >>>>>> OutDiscards = '0' The modem is reporting 0 bytes RX/TX, so that's where the problem is. Are you sure you're using the modem connection as default route? -- Aleksander https://aleksander.es ___ ModemManager-devel mailing list ModemManager-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel
Re: “bytes-rx” and “bytes-tx” statistics are not getting populated
Hey, > Oct 10 09:23:13 OpenWrt [6904]: [/dev/cdc-wdm0] Received message > (translated)... > >> Header: > >> length = 96 > >> type= command-done (0x8003) > >> transaction = 37 > >> Fragment header: > >> total = 1 > >> current = 0 > >> Contents: > >> status error = 'None' (0x) > >> service = 'basic-connect' (a289cc33-bcbb-8b4f-b6b0-133ec2aae6df) > >> cid = 'packet-statistics' (0x0014) > >> Fields: > >> InDiscards = '0' > >> InErrors = '0' > >> InOctets = '0' > >> InPackets = '0' > >> OutOctets = '0' > >> OutPackets = '0' > >> OutErrors = '0' > >> OutDiscards = '0' The modem is reporting 0 bytes RX/TX, so that's where the problem is. Are you sure you're using the modem connection as default route? -- Aleksander https://aleksander.es ___ ModemManager-devel mailing list ModemManager-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel
RE: “bytes-rx” and “bytes-tx” statistics are not getting populated
0 09:25:43 OpenWrt [6904]: [/dev/cdc-wdm0] Sent message... <<<<<< RAW: <<<<<< length = 48 <<<<<< data = 03:00:00:00:30:00:00:00:2A:00:00:00:01:00:00:00:00:00:00:00:A2:89:CC:33:BC:BB:8B:4F:B6:B0:13:3E:C2:AA:E6:DF:14:00:00:00:00:00:00:00:00:00:00:00 Oct 10 09:25:43 OpenWrt [6904]: [/dev/cdc-wdm0] Sent message (translated)... <<<<<< Header: <<<<<< length = 48 <<<<<< type= command (0x0003) <<<<<< transaction = 42 <<<<<< Fragment header: <<<<<< total = 1 <<<<<< current = 0 <<<<<< Contents: <<<<<< service = 'basic-connect' (a289cc33-bcbb-8b4f-b6b0-133ec2aae6df) <<<<<< cid = 'packet-statistics' (0x0014) <<<<<< type= 'query' (0x) Oct 10 09:25:43 OpenWrt [6904]: [/dev/cdc-wdm0] Received message... >>>>>> RAW: >>>>>> length = 96 >>>>>> data = >>>>>> 03:00:00:80:60:00:00:00:2A:00:00:00:01:00:00:00:00:00:00:00:A2:89:CC:33:BC:BB:8B:4F:B6:B0:13:3E:C2:AA:E6:DF:14:00:00:00:00:00:00:00:30:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00 Oct 10 09:25:43 OpenWrt [6904]: [/dev/cdc-wdm0] Received message (translated)... >>>>>> Header: >>>>>> length = 96 >>>>>> type= command-done (0x8003) >>>>>> transaction = 42 >>>>>> Fragment header: >>>>>> total = 1 >>>>>> current = 0 >>>>>> Contents: >>>>>> status error = 'None' (0x) >>>>>> service = 'basic-connect' (a289cc33-bcbb-8b4f-b6b0-133ec2aae6df) >>>>>> cid = 'packet-statistics' (0x0014) >>>>>> Fields: >>>>>> InDiscards = '0' >>>>>> InErrors = '0' >>>>>> InOctets = '0' >>>>>> InPackets = '0' >>>>>> OutOctets = '0' >>>>>> OutPackets = '0' >>>>>> OutErrors = '0' >>>>>> OutDiscards = '0' Oct 10 09:26:13 OpenWrt [6904]: [/dev/cdc-wdm0] Sent message... <<<<<< RAW: <<<<<< length = 48 <<<<<< data = 03:00:00:00:30:00:00:00:2B:00:00:00:01:00:00:00:00:00:00:00:A2:89:CC:33:BC:BB:8B:4F:B6:B0:13:3E:C2:AA:E6:DF:14:00:00:00:00:00:00:00:00:00:00:00 Oct 10 09:26:13 OpenWrt [6904]: [/dev/cdc-wdm0] Sent message (translated)... <<<<<< Header: <<<<<< length = 48 <<<<<< type= command (0x0003) <<<<<< transaction = 43 <<<<<< Fragment header: <<<<<< total = 1 <<<<<< current = 0 <<<<<< Contents: <<<<<< service = 'basic-connect' (a289cc33-bcbb-8b4f-b6b0-133ec2aae6df) <<<<<< cid = 'packet-statistics' (0x0014) <<<<<< type= 'query' (0x) Oct 10 09:26:13 OpenWrt [6904]: [/dev/cdc-wdm0] Received message... >>>>>> RAW: >>>>>> length = 96 >>>>>> data = >>>>>> 03:00:00:80:60:00:00:00:2B:00:00:00:01:00:00:00:00:00:00:00:A2:89:CC:33:BC:BB:8B:4F:B6:B0:13:3E:C2:AA:E6:DF:14:00:00:00:00:00:00:00:30:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00 Oct 10 09:26:13 OpenWrt [6904]: [/dev/cdc-wdm0] Received message (translated)... >>>>>> Header: >>>>>> length = 96 >>>>>> type= command-done (0x8003) >>>>>> transaction = 43 >>>>>> Fragment header: >>>>>> total = 1 >>>>>> current = 0 >>>>>> Contents: >>>>>> status error = 'None' (0x) >>>>>> service = 'basic-connect' (a289cc33-bcbb-8b4f-b6b0-133ec2aae6df) >>>>>> cid = 'packet-statistics' (0x0014) >>>>>> Fields: >>>>>> InDiscards = '0' >>>>>> InErrors = '0' >>>>>> InOctets = '0' >>>>>> InPackets = '0' >>>>>> OutOctets = '0' >>>>>> OutPackets = '0' >>>>>> OutErrors = '0' >>>>>> OutDiscards = '0' Oct 10 09:26:17 OpenWrt [6904]: [1570699577.383770] Signal quality value not updated in 60s, marking as not being recent Oct 10 09:26:43 OpenWrt [6904]: [/dev/cdc-wdm0] Sent message... <<<<<< RAW: <<<<<< length = 48 <<<<<< data = 03:00:00:00:30:00:00:00:2C:00:00:00:01:00:00:00:00:00:00:00:A2:89:CC:33:BC:BB:8B:4F:B6:B0:13:3E:C2:AA:E6:DF:14:00:00:00:00:00:00:00:00:00:00:00 Oct 10 09:26:43 OpenWrt [6904]: [/dev/cdc-wdm0] Sent message (translated)... <<<<<< Header: <<<<<< length = 48 <<<<<< type= command (0x0003) <<<<<< transaction = 44 <<<<<< Fragment header: <<<<<< total = 1 <<<<<< current = 0 <<<<<< Contents: <<<<<< service = 'basic-connect' (a289cc33-bcbb-8b4f-b6b0-133ec2aae6df) <<<<<< cid = 'packet-statistics' (0x0014) <<<<<< type= 'query' (0x) Oct 10 09:26:43 OpenWrt [6904]: [/dev/cdc-wdm0] Received message... >>>>>> RAW: >>>>>> length = 96 >>>>>> data = >>>>>> 03:00:00:80:60:00:00:00:2C:00:00:00:01:00:00:00:00:00:00:00:A2:89:CC:33:BC:BB:8B:4F:B6:B0:13:3E:C2:AA:E6:DF:14:00:00:00:00:00:00:00:30:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00 Oct 10 09:26:43 OpenWrt [6904]: [/dev/cdc-wdm0] Received message (translated)... >>>>>> Header: >>>>>> length = 96 >>>>>> type= command-done (0x8003) >>>>>> transaction = 44 >>>>>> Fragment header: >>>>>> total = 1 >>>>>> current = 0 >>>>>> Contents: >>>>>> status error = 'None' (0x) >>>>>> service = 'basic-connect' (a289cc33-bcbb-8b4f-b6b0-133ec2aae6df) >>>>>> cid = 'packet-statistics' (0x0014) >>>>>> Fields: >>>>>> InDiscards = '0' >>>>>> InErrors = '0' >>>>>> InOctets = '0' >>>>>> InPackets = '0' >>>>>> OutOctets = '0' >>>>>> OutPackets = '0' >>>>>> OutErrors = '0' >>>>>> OutDiscards = '0' Oct 10 09:27:13 OpenWrt [6904]: [/dev/cdc-wdm0] Sent message... <<<<<< RAW: <<<<<< length = 48 <<<<<< data = 03:00:00:00:30:00:00:00:2D:00:00:00:01:00:00:00:00:00:00:00:A2:89:CC:33:BC:BB:8B:4F:B6:B0:13:3E:C2:AA:E6:DF:14:00:00:00:00:00:00:00:00:00:00:00 Oct 10 09:27:13 OpenWrt [6904]: [/dev/cdc-wdm0] Sent message (translated)... <<<<<< Header: <<<<<< length = 48 <<<<<< type= command (0x0003) <<<<<< transaction = 45 <<<<<< Fragment header: <<<<<< total = 1 <<<<<< current = 0 <<<<<< Contents: <<<<<< service = 'basic-connect' (a289cc33-bcbb-8b4f-b6b0-133ec2aae6df) <<<<<< cid = 'packet-statistics' (0x0014) <<<<<< type= 'query' (0x) Oct 10 09:27:13 OpenWrt [6904]: [/dev/cdc-wdm0] Received message... >>>>>> RAW: >>>>>> length = 96 >>>>>> data = >>>>>> 03:00:00:80:60:00:00:00:2D:00:00:00:01:00:00:00:00:00:00:00:A2:89:CC:33:BC:BB:8B:4F:B6:B0:13:3E:C2:AA:E6:DF:14:00:00:00:00:00:00:00:30:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00 Oct 10 09:27:13 OpenWrt [6904]: [/dev/cdc-wdm0] Received message (translated)... >>>>>> Header: >>>>>> length = 96 >>>>>> type= command-done (0x8003) >>>>>> transaction = 45 >>>>>> Fragment header: >>>>>> total = 1 >>>>>> current = 0 >>>>>> Contents: >>>>>> status error = 'None' (0x) >>>>>> service = 'basic-connect' (a289cc33-bcbb-8b4f-b6b0-133ec2aae6df) >>>>>> cid = 'packet-statistics' (0x0014) >>>>>> Fields: >>>>>> InDiscards = '0' >>>>>> InErrors = '0' >>>>>> InOctets = '0' >>>>>> InPackets = '0' >>>>>> OutOctets = '0' >>>>>> OutPackets = '0' >>>>>> OutErrors = '0' >>>>>> OutDiscards = '0' root@OpenWrt:/# The information in this email communication (inclusive of attachments) is confidential to 4RF Limited and the intended recipient(s). If you are not the intended recipient(s), please note that any use, disclosure, distribution or copying of this information or any part thereof is strictly prohibited and that the author accepts no liability for the consequences of any action taken on the basis of the information provided. If you have received this email in error, please notify the sender immediately by return email and then delete all instances of this email from your system. 4RF Limited will not accept responsibility for any consequences associated with the use of this email (including, but not limited to, damages sustained as a result of any viruses and/or any action or lack of action taken in reliance on it).-Original Message- From: Aleksander Morgado Sent: Thursday, 10 October 2019 2:03 PM To: Amol Lad Cc: ModemManager (development) Subject: Re: “bytes-rx” and “bytes-tx” statistics are not getting populated Hey, > I’m using almost the latest modemmanager from master (commit hash: > 0a85254d1765db6e55770d36e24b1e6349e789f4). I started noticing that the > “bytes-rx” and “bytes-tx” statistics are never getting updated even > though there is regular traffic (say ping). I’m not sure if anything > has changed in this area as I remember seeing those stats not long > back… Nothing has changed lately as far as I can tell. Please provide a debug log from ModemManager to see if we're really doing the proper "Packet Statistics Query" via MBIM. -- Aleksander https://aleksander.es ___ ModemManager-devel mailing list ModemManager-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel
Re: “bytes-rx” and “bytes-tx” statistics are not getting populated
Hey, > I’m using almost the latest modemmanager from master (commit hash: > 0a85254d1765db6e55770d36e24b1e6349e789f4). I started noticing that the > “bytes-rx” and “bytes-tx” statistics are never getting updated even though > there is regular traffic (say ping). I’m not sure if anything has changed in > this area as I remember seeing those stats not long back… Nothing has changed lately as far as I can tell. Please provide a debug log from ModemManager to see if we're really doing the proper "Packet Statistics Query" via MBIM. -- Aleksander https://aleksander.es ___ ModemManager-devel mailing list ModemManager-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel