Skip to content

Commit 25cd0d6

Browse files
petrosyan-vannashif
authored andcommitted
drivers: modem_cellular: use AT+QGMR to fetch FW version on BG95
Quectel BG9x returns only the base model string to AT+CGMR, while AT+QGMR provides the true firmware build ID, e.g. AT+CGMR → BG95M3LAR02A03 AT+QGMR → BG95M3LAR02A03_01.204.01.204 Replace CGMR with QGMR in the BG95 init script so that cellular_get_modem_info(... FW_VERSION ...) reports the complete version string. Signed-off-by: Van Petrosyan <[email protected]>
1 parent 06b4add commit 25cd0d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/modem/modem_cellular.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1956,7 +1956,7 @@ MODEM_CHAT_SCRIPT_CMDS_DEFINE(quectel_bg95_init_chat_script_cmds,
19561956
MODEM_CHAT_SCRIPT_CMD_RESP("", ok_match),
19571957
MODEM_CHAT_SCRIPT_CMD_RESP("AT+CGMI", cgmi_match),
19581958
MODEM_CHAT_SCRIPT_CMD_RESP("", ok_match),
1959-
MODEM_CHAT_SCRIPT_CMD_RESP("AT+CGMR", cgmr_match),
1959+
MODEM_CHAT_SCRIPT_CMD_RESP("AT+QGMR", cgmr_match),
19601960
MODEM_CHAT_SCRIPT_CMD_RESP("", ok_match),
19611961
MODEM_CHAT_SCRIPT_CMD_RESP("AT+CIMI", cimi_match),
19621962
MODEM_CHAT_SCRIPT_CMD_RESP("", ok_match),

0 commit comments

Comments
 (0)