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]: <debug> [1612158000.826046] [modem0/ttymxc4/at] --> 'AT+URAT=?<CR>'
    Feb 01 05:40:00 unit ModemManager[304]: <debug> [1612158000.833596] [modem0/ttymxc4/at] <-- '<CR><LF>+URAT: (7-8),(7-8)(7-8)<CR><LF><CR><LF>OK<CR><LF>'
    Feb 01 05:40:00 unit ModemManager[304]: <warn>  [1612158000.833992] [modem0] (u-blox) unexpected AcT value: 7
    Feb 01 05:40:00 unit ModemManager[304]: <warn>  [1612158000.834096] [modem0] (u-blox) unexpected AcT value: 8
    Feb 01 05:40:00 unit ModemManager[304]: <warn>  [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]: <debug> [1612162705.490627] [modem0/ttymxc4/at] --> 'AT+URAT?<CR>'
    Feb 01 06:58:25 unit ModemManager[329]: <debug> [1612162705.499994] [modem0/ttymxc4/at] <-- '<CR><LF>+URAT: 7,8<CR><LF><CR><LF>OK<CR><LF>'
    Feb 01 06:58:25 unit ModemManager[329]: <debug> [1612162705.500433] [modem0] (u-blox) current allowed modes retrieved: 4g
    Feb 01 06:58:25 unit ModemManager[329]: <debug> [1612162705.500561] [modem0] (u-blox) current preferred modes retrieved: 4g

Signed-off-by: Alexander Dahl <ada@thorsis.com>
This commit is contained in:
Alexander Dahl
2021-07-07 14:27:54 +02:00
parent 052eb267c8
commit 7c9d1e45be

View File

@@ -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 *