Are AT commands for EM7565 case sensitive?

Hi experts,

I inadvertently found that, sometimes the lower case AT commands may not be handled in the same way as upper case AT commands on EM7565:

# /etc/scripts/modem-cmd 'at!image?'
error: command failed: 'GDBus.Error:org.freedesktop.ModemManager1.Error.Connection.NoCarrier: No carrier'
TYPE SLOT STATUS LRU FAILURES UNIQUE_ID   BUILD_ID
FW   1    GOOD   11  0 0      ?_?         01.08.04.00_?
FW   2    GOOD   12  0 0      ?_?         01.07.02.00_?
FW   3    GOOD   13  0 0      ?_?         01.14.05.00_?
FW   4    GOOD   14  0 0      ?_?         01.09.04.00_?
Max FW images: 4
Active FW image is at slot 4
TYPE SLOT STATUS LRU FAILURES UNIQUE_ID   BUILD_ID
PRI  FF   GOOD   0   0 0      002.047_000 01.14.02.00_ATT
PRI  FF   GOOD   0   0 0      002.015_000 01.09.04.00_DOCOMO
PRI  FF   GOOD   0   0 0      002.035_000 01.14.02.00_GENERIC
PRI  FF   GOOD   0   0 0      002.016_000 01.14.05.00_KT
PRI  FF   GOOD   0   0 0      002.007_000 01.11.00.00_TELSTRA
PRI  FF   GOOD
# 
# 
# /etc/scripts/modem-cmd 'AT!IMAGE?'
response: 'TYPE SLOT STATUS LRU FAILURES UNIQUE_ID   BUILD_ID
FW   1    GOOD   11  0 0      ?_?         01.08.04.00_?
FW   2    GOOD   12  0 0      ?_?         01.07.02.00_?
FW   3    GOOD   13  0 0      ?_?         01.14.05.00_?
FW   4    GOOD   14  0 0      ?_?         01.09.04.00_?
Max FW images: 4
Active FW image is at slot 4

TYPE SLOT STATUS LRU FAILURES UNIQUE_ID   BUILD_ID
PRI  FF   GOOD   0   0 0      002.047_000 01.14.02.00_ATT
PRI  FF   GOOD   0   0 0      002.015_000 01.09.04.00_DOCOMO
PRI  FF   GOOD   0   0 0      002.035_000 01.14.02.00_GENERIC
PRI  FF   GOOD   0   0 0      002.016_000 01.14.05.00_KT
PRI  FF   GOOD   0   0 0      002.007_000 01.11.00.00_TELSTRA
PRI  FF   GOOD   0   0 0      001.000_000 01.07.02.00_TELUS
PRI  FF   GOOD   0   0 0      002.003_000 01.14.02.00_TMO
PRI  FF   GOOD   0   0 0      002.000_000 01.08.04.00_US-CELLULAR
Max PRI images: 50'
# 
# /etc/scripts/modem-cmd 'at!image?'
error: command failed: 'GDBus.Error:org.freedesktop.ModemManager1.Error.Connection.NoCarrier: No carrier'
TYPE SLOT STATUS LRU FAILURES UNI
# 
# /etc/scripts/modem-cmd 'at!image?'
error: command failed: 'GDBus.Error:org.freedesktop.ModemManager1.Error.Connection.NoCarrier: No carrier'
TYPE SLOT STATUS LRU FAILURES UNIQUE_ID   BUILD_ID
FW   1    GOOD   11  0 0      ?_?         01.08.04.00_?
FW   2    GOOD   12  0 0      ?_?         01.07.02.00_?
FW   3    GOOD   13  0 0      ?_?         01.14.05.00_?
FW   4    GOOD   14  0 0      ?_?         01.09.04.00_?
Max FW ima
# 

The modem-cmd script I used above simply manipulates mmcli -m X --command=“xxx” to send the AT command.

As you can tell, the ‘at!image?’ command response could be truncated, whereas the ‘AT!IMAGE?’ responses always seem to be complete (Note, there is one more ModemManager error with the lower case AT command).

I am just curious what has brought about such difference?

Thanks a lot!

Harry

I don’t see problem with minicom:

Welcome to minicom 2.7

OPTIONS: I18n
Compiled on Jan 1 2014, 17:13:19.
Port /dev/ttyUSB2

Press CTRL-A Z for help on special keys

at
OK
ati3
Manufacturer: Sierra Wireless, Incorporated
Model: EM7565
Revision: SWI9X50C_01.11.00.00 5ba42f jenkins 2019/06/28 09:51:52
IMEI: 353533100134710
IMEI SV: 10
FSN: UF913580100215
+GCAP: +CGSM

OK
at!image?
TYPE SLOT STATUS LRU FAILURES UNIQUE_ID BUILD_ID
FW 1 GOOD 7 0 0 ?? 01.08.04.00?
FW 2 GOOD 1 0 0 ?? 01.07.02.00?
FW 3 GOOD 8 0 0 ?? 01.11.00.00?
FW 4 GOOD 6 0 0 ?? 01.12.01.00?
Max FW images: 4
Active FW image is at slot 3

TYPE SLOT STATUS LRU FAILURES UNIQUE_ID BUILD_ID
PRI FF GOOD 0 0 0 002.008_002 01.07.02.00_ATT
PRI FF GOOD 0 0 0 002.023_000 01.11.00.00_GENERIC
PRI FF GOOD 0 0 0 002.000_000 01.12.01.00_KT
PRI FF GOOD 0 0 0 002.015_000 01.08.04.00_VERIZON
Max PRI images: 50

OK
AT!IMAGE?
TYPE SLOT STATUS LRU FAILURES UNIQUE_ID BUILD_ID
FW 1 GOOD 7 0 0 ?? 01.08.04.00?
FW 2 GOOD 1 0 0 ?? 01.07.02.00?
FW 3 GOOD 8 0 0 ?? 01.11.00.00?
FW 4 GOOD 6 0 0 ?? 01.12.01.00?
Max FW images: 4
Active FW image is at slot 3

TYPE SLOT STATUS LRU FAILURES UNIQUE_ID BUILD_ID
PRI FF GOOD 0 0 0 002.008_002 01.07.02.00_ATT
PRI FF GOOD 0 0 0 002.023_000 01.11.00.00_GENERIC
PRI FF GOOD 0 0 0 002.000_000 01.12.01.00_KT
PRI FF GOOD 0 0 0 002.015_000 01.08.04.00_VERIZON
Max PRI images: 50

OK
at!IMAGE?
TYPE SLOT STATUS LRU FAILURES UNIQUE_ID BUILD_ID
FW 1 GOOD 7 0 0 ?? 01.08.04.00?
FW 2 GOOD 1 0 0 ?? 01.07.02.00?
FW 3 GOOD 8 0 0 ?? 01.11.00.00?
FW 4 GOOD 6 0 0 ?? 01.12.01.00?
Max FW images: 4
Active FW image is at slot 3

TYPE SLOT STATUS LRU FAILURES UNIQUE_ID BUILD_ID
PRI FF GOOD 0 0 0 002.008_002 01.07.02.00_ATT
PRI FF GOOD 0 0 0 002.023_000 01.11.00.00_GENERIC
PRI FF GOOD 0 0 0 002.000_000 01.12.01.00_KT
PRI FF GOOD 0 0 0 002.015_000 01.08.04.00_VERIZON
Max PRI images: 50

OK

1 Like