QMI SDK Band 66 bitmask value

Hi Guys,

The Linux QMI SDK supports setting bitmaks for extended LTE bands, but the values in the LTE extended bitmask aren’t simple mappings to the band designation.

For example, while bit 0 is given in the documentation as E-UTRA Operating Band 1, and bit 1 -> Band 2, bit 60 is given as E-UTRA operating band 125.

The one I’m having a problem with is Band 66, I have no idea where in the extended bitmask Band 66 is located, so I can’t turn Band 66 on or off with the QMI SDK.

Anyone know its’ position ?

which module are you using?

Seems you are right, I checked api\dms\inc\qaGobiApiDms.h, I cannot see LTE EUTRAN Band 66 for the band capability.

Maybe you can use AT command to check.

I’m using an EM7565. Using AT!BAND is fine, no errors, the state of band 66 is displayed and it can be switched on or off without problems.

The SLQSSetSysSelectionPrefExt api call has a field lteBandPrefExt, which seems like a straight bit mask, but assuming band 66 is bit 66 there it still doesn’t work.

Actually, the corresponding get api SLQSGetSysSelectionPrefExt doesn’t return LTEBandPrefExt, so I can’t inspect it from there. I get a 0 for the TlvPresent byte, so I have to use AT!BAND to check anyway.

I’m using the 04.00.25 version of the SDK, on an EM7565 running SWI9X50C_01.11.00.00 (release 14).

UPDATE:

ok, i kind of got it working. By ignoring the LTE E-UTRA bands in LTEBandPref ( setting that to NULL ), and just using lteBandPrefExt, I can turn band 66 on and off. I can now mimic the behaviour of AT!BAND through qmi api calls, and the results tie up. But SLQSGetSysSelectionPrefExt still doesn’t work for me. And, some transitions throw the cards into a funny state. Going from 3G only -> 4g only, that doesn’t work ( the api’s return an error, and subsequent attempts also fail, until the cards are reset with AT!RMARESET )

my testing:

Using SLQS SDK version: SLQS04.00.23

Invoking test: SLQSGetSysSelectionPrefExt

Test Case 19 / 19 : Valid Test Case - All parameters set
Return Code: 0 (0x0)
Return Reason: Success
System Selection Preferences
Emergency Mode: 0x0
Mode Preference: 0x3f
Band Preference: 0x100600000ec00000
CDMA PRL Preference : 0xffff
Roaming Preference : 0xff
LTE Band Preference : 0xa700ba0e19df
Network Selection Preference: 0x0
Service Domain Preference : 0x2
GSM - WCDMA Acquisition Order Preference : 0x0

Acquisition Order Preference :
acq order len : 0x5
acq order: 0x8
acq order: 0x5
acq order: 0x4
acq order: 0x1
acq order: 0x2
Disabled RAT Bitmask: 0x0000

LTE Band Preference Ext.:
bits_1_64: 0xa700ba0e19df
bits_65_128: 0x2
bits_129_192: 0x0
bits_193_256: 0x0

Completed t1404…

Test Completed ----------------------------------

ati3
Manufacturer: Sierra Wireless, Incorporated
Model: EM7565
Revision: SWI9X50C_01.08.04.00 dbb5d0 jenkins 2018/08/21 21:40:11
IMEI: 353533100134710
IMEI SV: 8
FSN: UF913580100215
+GCAP: +CGSM

OK
at!entercnd=“A710”
OK
AT!band?
Index, Name, GW Band Mask L Band Mask 1 TDS Band 4
00, All bands 100600000EC00000 0000A700BA0E19DF 000000000000

OK

Uh, no sorry I dont get that…SLQSGetSysSelectionPrefExt still returns 0 for LTEBandPrefExtTlv.TlvPresent and nothing for the band values.

Then I cannot reproduce your problem.
I used the same FW as yours:

owner@CNHKG-EX-001367:~/QMI/SLQS04.00.23.src/pkgs/qa$ sudo ./qatesthostx86_64 -p …/…/build/bin/hostx86_64/slqssdk -n t1404
[sudo] password for owner:

Using …/…/build/bin/hostx86_64/slqssdk

#devices: 1
deviceNode: /dev/qcqmi0
deviceKey: 00000000000000

Using SLQS SDK version: SLQS04.00.23

Invoking test: SLQSGetSysSelectionPrefExt

Test Case 19 / 19 : Valid Test Case - All parameters set
Return Code: 0 (0x0)
Return Reason: Success
System Selection Preferences
Emergency Mode: 0x0
Mode Preference: 0x3f
Band Preference: 0x100600000ec00000
CDMA PRL Preference : 0xffff
Roaming Preference : 0xff
LTE Band Preference : 0xa700ba0e19df
Network Selection Preference: 0x0
Service Domain Preference : 0x2
GSM - WCDMA Acquisition Order Preference : 0x0

Acquisition Order Preference :
acq order len : 0x5
acq order: 0x8
acq order: 0x5
acq order: 0x4
acq order: 0x1
acq order: 0x2
Disabled RAT Bitmask: 0x0000

LTE Band Preference Ext.:
bits_1_64: 0xa700ba0e19df
bits_65_128: 0x2
bits_129_192: 0x0
bits_193_256: 0x0

Completed t1404…

Test Completed ----------------------------------

at
OK
at!band?
Index, Name, GW Band Mask L Band Mask 1 TDS Band Mask L Band Mask 2 L Band Mask 3 L Band Mask 4
00, All bands 100600000EC00000 0000A700BA0E19DF 0000000000000000 0000000000000002 0000000000000000 0000000000000000

OK
at!band=?
Index, Name, GW Band Mask L Band Mask 1 L Band Mask 2 TDS Band Mask L Band Mask 3 L Band Mask 4
00, All bands 100600000EC00000 0000A700BA0E19DF 0000000000000002 0000000000000000 0000000000000000 0000000000000000
01, Europe 3G 0002000000400000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000
02, North America 3G 0000000004800000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000
06, Europe 0002000000400000 00000000000801C5 0000000000000000 0000000000000000 0000000000000000 0000000000000000
07, North America 0000000004800000 000001000200185A 0000000000000002 0000000000000000 0000000000000000 0000000000000000
08, WCDMA ALL 100600000EC00000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000
09, LTE ALL 0000000000000000 0000A700BA0E19DF 0000000000000002 0000000000000000 0000000000000000 0000000000000000

                                                                0000000000000002 - B66    
                                               0000800000000000 - B48    
                                               0000200000000000 - B46    
                                               0000040000000000 - B43    
                                               0000020000000000 - B42    
                                               0000010000000000 - B41    
                                               0000000080000000 - B32    
                                               0000000020000000 - B30    
                                               0000000010000000 - B29    
                                               0000000008000000 - B28    
                                               0000000002000000 - B26    
                                               0000000000080000 - B20    
                                               0000000000040000 - B19    
                                               0000000000020000 - B18    
                                               0000000000001000 - B13    
                                               0000000000000800 - B12    
                                               0000000000000100 - B9     
                                               0000000000000080 - B8     
                                               0000000000000040 - B7     
                                               0000000000000010 - B5     
                                               0000000000000008 - B4     
                                               0000000000000004 - B3     
                                               0000000000000002 - B2     
                                               0000000000000001 - B1     
                              1000000000000000 - B19 (850)
                              0004000000000000 - B9 (1700)
                              0002000000000000 - B8  (900)
                              0000000008000000 - B6  (800)
                              0000000004000000 - B5  (850)
                              0000000002000000 - B4 (1700)
                              0000000000800000 - B2 (1900)
                              0000000000400000 - B1 (2100)

OK
ati3
Manufacturer: Sierra Wireless, Incorporated
Model: EM7565
Revision: SWI9X50C_01.11.00.00 5ba42f jenkins 2019/06/28 09:51:52
IMEI: 353533100134710
IMEI SV: 10
FSN: UF913580100215
+GCAP: +CGSM

OK