From 7c9d1e45be41cda914ac52e15de6755cc817008e Mon Sep 17 00:00:00 2001 From: Alexander Dahl Date: Wed, 7 Jul 2021 14:27:54 +0200 Subject: [PATCH] ublox: Add more values to URAT combinations The SARA-R410M-02B-01 only supports values 7 and 8, log excerpt: Feb 01 05:40:00 unit ModemManager[304]: [1612158000.826046] [modem0/ttymxc4/at] --> 'AT+URAT=?' Feb 01 05:40:00 unit ModemManager[304]: [1612158000.833596] [modem0/ttymxc4/at] <-- '+URAT: (7-8),(7-8)(7-8)OK' Feb 01 05:40:00 unit ModemManager[304]: [1612158000.833992] [modem0] (u-blox) unexpected AcT value: 7 Feb 01 05:40:00 unit ModemManager[304]: [1612158000.834096] [modem0] (u-blox) unexpected AcT value: 8 Feb 01 05:40:00 unit ModemManager[304]: [1612158000.834193] [modem0] couldn't load supported modes: No combinations built from +URAT=? response The SARA-R4 series AT commands manual (and also the SARA-R5 AT commands manual) lists them like this: - 7: LTE Cat M1 - 8: LTE Cat NB1 After the change, log looks like this: Feb 01 06:58:25 unit ModemManager[329]: [1612162705.490627] [modem0/ttymxc4/at] --> 'AT+URAT?' Feb 01 06:58:25 unit ModemManager[329]: [1612162705.499994] [modem0/ttymxc4/at] <-- '+URAT: 7,8OK' Feb 01 06:58:25 unit ModemManager[329]: [1612162705.500433] [modem0] (u-blox) current allowed modes retrieved: 4g Feb 01 06:58:25 unit ModemManager[329]: [1612162705.500561] [modem0] (u-blox) current preferred modes retrieved: 4g Signed-off-by: Alexander Dahl --- plugins/ublox/mm-modem-helpers-ublox.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/ublox/mm-modem-helpers-ublox.c b/plugins/ublox/mm-modem-helpers-ublox.c index ca3039a6..30212ed5 100644 --- a/plugins/ublox/mm-modem-helpers-ublox.c +++ b/plugins/ublox/mm-modem-helpers-ublox.c @@ -361,6 +361,8 @@ static const MMModemMode ublox_combinations[] = { ( MM_MODEM_MODE_2G | MM_MODEM_MODE_3G | MM_MODEM_MODE_4G ), ( MM_MODEM_MODE_2G | MM_MODEM_MODE_4G ), ( MM_MODEM_MODE_3G | MM_MODEM_MODE_4G ), + ( MM_MODEM_MODE_4G ), + ( MM_MODEM_MODE_4G ), }; GArray *