le_mrc_GetRadioBandInUse

le_mrc_GetRadioBandInUse() returns 121

How is that related to any of the !GSTATUS, is there a lookup table or something ?

AT!GSTATUS?
!GSTATUS:
Current Time: 18769 Temperature: 55
Modem Mitigate Level: 0 ModemProc Mitigate Level: 0
Reset Counter: 1 Mode: ONLINE
System mode: LTE PS state: Attached
IMS reg state: UNKNOWN IMS mode: Not Support
IMS Srv State: UNKNOWN SMS,UNKNOWN VoIP
LTE band: B2 LTE bw: 15 MHz
LTE Rx chan: 875 LTE Tx chan: 18875
LTE CA state: INACTIVE
EMM state: Registered Normal Service
RRC state: RRC Idle

PCC RxM RSSI: -72 RSRP (dBm): -92
PCC RxD RSSI: -72 RSRP (dBm): -140
Tx Power: – TAC: 161A (5658)
RSRQ (dB): -3 Cell ID: 0191CD08 (26332424)

do you mean le_result_t is getting 121?
can you paste your code implementing le_mrc_GetRadioBandInUse() here?
What is the current setting on your side on the followings?


ati3
AT!ENTERCND="A710"
AT!band?
AT!BAND=?

It is the bad variable that gets set to 121

uint32_t band = 0;
if (le_mrc_GetRadioBandInUse(&band) != LE_OK)
band = 0;

band is 121

AT!ENTERCND=“A710”
OK
AT!band?
Index, Name, GW Band Mask L Band Mask 1 TDS Band Mask L Band Mask 2
00, All bands, 0000000000280180 000000000000081A 0000000000000000 0000000000000000

OK
AT!BAND=?
Index, Name, GW Band Mask L Band Mask 1 L Band Mask 2 TDS Band Mask
00, All bands 0000000000280180 000000000000081A 0000000000000000 0000000000000000
03, Europe 2G 0000000000000180 0000000000000000 0000000000000000 0000000000000000
04, North America 2G 0000000000280000 0000000000000000 0000000000000000 0000000000000000
05, GSM ALL 0000000000280180 0000000000000000 0000000000000000 0000000000000000
06, Europe 0000000000000180 0000000000000000 0000000000000000 0000000000000000
07, North America 0000000000280000 000000000000081A 0000000000000000 0000000000000000
09, LTE ALL 0000000000000000 000000000000081A 0000000000000000 0000000000000000

                                               0000000000000800 - B12    
                                               0000000000000010 - B5     

AT!GSTATUS?
!GSTATUS:
Current Time: 251 Temperature: 36
Modem Mitigate Level: 0 ModemProc Mitigate Level: 0
Reset Counter: 1 Mode: ONLINE
System mode: LTE PS state: Attached
IMS reg state: UNKNOWN IMS mode: Not Support
IMS Srv State: UNKNOWN SMS,UNKNOWN VoIP
LTE band: B2 LTE bw: 15 MHz
LTE Rx chan: 875 LTE Tx chan: 18875
LTE CA state: INACTIVE
EMM state: Registered Normal Service
RRC state: RRC Idle

PCC RxM RSSI: -63 RSRP (dBm): -91
PCC RxD RSSI: -63 RSRP (dBm): -140
Tx Power: – TAC: 161A (5658)
RSRQ (dB): -10 Cell ID: 0191CD08 (26332424)
SINR (dB): 15.4

on my side, my wp7605 module is registered in LTE B3, but this API return 122

This issue has been reported internally

As workaround, please use AT command

See below for the conversion of returned value and LTE band number:


120 -> LTE band 1
121 -> LTE band 2
122 -> LTE band 3
123 -> LTE band 4
124 -> LTE band 5
125 -> LTE band 6
126 -> LTE band 7
127 -> LTE band 8
128 -> LTE band 9
129 -> LTE band 10

Thanks that will work