From b0d467b0824a600181337b63dcd524e47ed7e1cd Mon Sep 17 00:00:00 2001 From: Van Petrosyan Date: Sun, 13 Jul 2025 15:00:25 +0200 Subject: [PATCH] drivers: modem_cellular: use AT+QGMR to fetch FW version on BG95 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- drivers/modem/modem_cellular.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/modem/modem_cellular.c b/drivers/modem/modem_cellular.c index c3f73a1dbbb64..dc850dfe26930 100644 --- a/drivers/modem/modem_cellular.c +++ b/drivers/modem/modem_cellular.c @@ -1956,7 +1956,7 @@ MODEM_CHAT_SCRIPT_CMDS_DEFINE(quectel_bg95_init_chat_script_cmds, MODEM_CHAT_SCRIPT_CMD_RESP("", ok_match), MODEM_CHAT_SCRIPT_CMD_RESP("AT+CGMI", cgmi_match), MODEM_CHAT_SCRIPT_CMD_RESP("", ok_match), - MODEM_CHAT_SCRIPT_CMD_RESP("AT+CGMR", cgmr_match), + MODEM_CHAT_SCRIPT_CMD_RESP("AT+QGMR", cgmr_match), MODEM_CHAT_SCRIPT_CMD_RESP("", ok_match), MODEM_CHAT_SCRIPT_CMD_RESP("AT+CIMI", cimi_match), MODEM_CHAT_SCRIPT_CMD_RESP("", ok_match),