Can I connect to the internet if my modem is in Factory Test Mode?

If I set my EM9293 on factory test mode, would I be able to connect to the internet on it?

I want to know because the AT!DARCONFIG command would allow me to set a channel number but only if I’m in factory test mode. My goal is to browse the internet on different channels in LTE bands, as part of my test.

You should configure your CMW500 machine to have internet option
After that module should work in normal mode

Is there any Sierra modem that can set the channel (EARFCN) or PCI on its own without a separate testing device?

you can see here:

BTW, I can also see the MBPL SDK sample application lite-qmi-nas, there is “Get Cell lock Config” and “Set or Clear Cell Config” for locking PCI:

I can’t seem to find “Get Cell lock Config” or “Set or Clear Cell Config” in the lite-qmi-nas README. Do you know where I can find that info? That’d be ideal if I can do that.

you need to see the source code command_set.c:

	{
		"GetCellLockConfig",
		"Get Cell lock Config",
		0,
		NULL,
		eGET_CELL_LOCK_CFG
	},
	{
		"SetCellConfig",
		"Set or Clear Cell Config",
		sizeof(g_set_cell_cfg) / sizeof(ARGUMENT_SET),
		g_set_cell_cfg,
		eSET_CELL_CFG
	},

I don’t see that in my command_set.c. I even just re-downloaded the SDK from the link above.

Path I checked: MBPL_SDK_R44_ENG5-lite.bin/SampleApps/common/src/command_set.c

then you need to contact distributor to get the full source code of sample application lite-qmi-nas

Or you can directly run the binary of sample application lite-qmi-nas

Tried the binary of lite-qmi-nas. As soon as I executed it, my lte signal freezes and the blue LED on my usb adapter stays on (doesn’t flash like it’s supposed to when connected). So, even though there was an option to “get the cell lock config” and to “set or clear cell config”, it returns an error.

Is there a reason I can’t run lite-qmi-nas while connected to LTE? Also, is there a latest modem that will support the AT!celllock for 3g/4g/5g? The MC7304 from the linked post doesn’t support those.

I don’t see problem to run the application:



owner@ubuntu:~/QMI/MBPL/MBPL_SDK_R44_ENG5-lite.bin/SampleApps/lite-qmi-nas$ sudo ./bin/lite-qmi-nashostx86_64 
[sudo] password for owner: 

lite-qmi-nas v1.0.2505.0

Open transport "/dev/cdc-wdm0" on USB device in MBIM mode
Please select one of the following options or press 'q' to exit:

    1.	Set System Selection Preference
    2.	Set Band Preference
    3.	Indication Register
    4.	Get Signal Info
    5.	Get System Info
    6.	Set 5G Signal Strength Thresholds
    7.	Get Plmn Name
    8.	Get Cell Location Info
    9.	Get Network Time
    10.	Get LTE SIB16 Network Time
    11.	Get TxRx Info Ext
    12.	Get eDRX Params
    13.	Get eDRX Params Ext
    14.	Set eDRX Params
    15.	Get RF Info
    16.	Get System Selection Preference
    17.	Block Nr5g Plmn
    18.	Unblock Nr5g Plmn
    19.	Reset Nr5g Plmn Blocking
    20.	Set ENDC Configuration
    21.	Get Antenna Signal Info
    22.	Get Nr5g Cell Info
    23.	Set NR5G Band Priority
    24.	Get Sys Info Ext
    25.	Get RFDEV status (SWINAS)
    26.	Set mmWave config (SWINAS)
    27.	Get System Selection Preference Ext
    28.	Get CQI
    29.	Get Lte Carrier Cell Information
    30.	Get LTE CPHY Carrier aggregation Information
    31.	Get Modem Status Information
    32.	Get Home Network Information
    33.	Get Serving System Information
    34.	Get the ENDC Configuration
    35.	Get LTE Secondary carrier Rx signal level information
    36.	Set the operation of the Antenna/Receiver chain, either enabled or disabled.
    37.	Query the status of the Antenna/Receiver chains, either enabled or disabled.
    38.	Instruct the UE to perform LTE RSSI measurements on the selected Antenna.
    39.	Get LTE CQI
    40.	Get Cell lock Config
    41.	Set or Clear Cell Config
    42.	Get NR5G TX Power Info
    43.	Get HST Info
    44.	Set CMW Config
    45.	Get CMW Config

    (q)uit to exit: 


<< receiving NAS indication: NAS_SERVING_SYSTEM_IND
msgid 0x24, type:4
unpack_nas_ServingSystem_ind ret: 0 Mask: 0x40020002

Serving System Ind:
  Serving system information
    Registration State: QMI_NAS_REGISTERED
    CS Attach State: Attached
    PS Attach State: Attached
    Selected Network: Detached
    Radio Interface Count: 1
       Radio Interface[0]:  LTE
  Data services capability
    dataCapabilitiesLen: 1
      Data Capability[0]: 11
    3GPP Cell ID:25733519
40

Executing command 40 (NAS): GetCellLockConfig 

GetCellLockConfig ret: 0 Mask: 0x00010004
0 element(s) in Cell List



**************************











at!gstatus?                                                                     
!GSTATUS:                                                                       
Current Time:  97               Temperature: 27                                 
                                                                                
Reset Counter: 1                Mode:        ONLINE                             
System mode:   LTE              PS state:    Attached                           
LTE band:      B28              LTE bw:      10 MHz                             
LTE Rx chan:   9510             LTE Tx chan: 27510                              
EMM state:     Registered       Normal Service                                  
RRC state:     RRC Connected                                                    
IMS reg state: NOT REGISTERED   IMS mode:    Normal                             
IMS Srv State: UNKNOWN SMS,UNKNOWN VoIP                                         
                                                                                
PCC Rx0 RSSI:  -44.6            PCC Rx0 RSRP:  -71.9                            
PCC Rx1 RSSI:  -99.7            PCC Rx1 RSRP:  -131.0                           
PCC Tx Power:  3.0              TAC:         9f62 (40802)                       
RSRQ (dB):     -10.8            Cell ID:     0188A9B7 (25733559)                
SINR (dB):      4.4                                                             
                                                                                
NR5G band:       ---            NR5G bw:         ---                            
NR5G Tx Power:   ---            NR5G Tx chan:    ---                            
NR5G Rx chan:    ---            NR5G RSRP (dBm): ---                            
NR5G RSRQ (dB):  ---            NR5G SINR (dB):  ---                            
                                                                                
                                                                                
OK                                                                              
at+Cgpaddr=1                                                                    
+CGPADDR: 1,"10.9.214.67"                                                       
                                                                                
OK                                                                              
at!lteinfo?                                                                     
!LTEINFO:                                                                       
Serving:   EARFCN MCC MNC   TAC      CID Bd D U SNR PCI  RSRQ   RSRP   RSSI RXLV
            38852 454  21 40802 0188A98F 40 5 5   4 319  -9.8  -84.4  -54.7  39 
                                                                                
IntraFreq:                                          PCI  RSRQ   RSRP   RSSI RXLV
                                                                                
InterFreq: EARFCN ThresholdLow ThresholdHi Priority PCI  RSRQ   RSRP   RSSI RXLV
            39050           10          24        7 319 -10.9  -86.3  -67.7  37 
                                                                                
CA SCell : EARFCN   SCID   Bd  ST  D  U   Mdl  Mul  PCI  RSRP   RSSI   SINR     
                                                                                
WCDMA:     UARFCN ThreshL ThreshH Prio PSC   RSCP  ECN0 RXLV                    
                                                                                
                                                                                
OK                                                                              
ati3                                                                            
Manufacturer: Sierra Wireless, Incorporated                                     
Model: EM9291                                                                   
Revision: SWIX65C_02.17.08.00 944ad5 jenkins 2024/08/01 20:22:05                
IMEI: 358186652112345                                                           
IMEI SV:  5                                                                     
FSN: 83403270212345                                                             
+GCAP: +CGSM                                                                    
                                                                                
                                                                                
OK                                                                              
at!impref?                                                                      
!IMPREF:                                                                        
 preferred fw version:    02.17.08.00                                           
 preferred carrier name:  GENERIC                                               
 preferred config name:   GENERIC_030.081_001                                   
 preferred subpri index:  000                                                   
 current fw version:      02.17.08.00                                           
 current carrier name:    GENERIC                                               
 current config name:     GENERIC_030.081_001                                   
 current subpri index:    000                                                   
                                                                                
OK

I get this too. After some time, it says Transport callback is invoked, type:1, value: 11. Also, what does it mean if “0 element(s) are in Cell List”; does it mean I can’t select one then?

did you check AT!GSTATUS?
If it is attached, then that means your observation of LED is not related…

yes it’s attached according to AT!GSTATUS, but can’t browse the internet.

Can you get IP address then?

BTW, below was my testing with EM9191 on this sample application:


1. Connect the EM9191 module which originally attaches to cell ID 328 with EARFCN 1850 and cell ID 326 is a neighbor cell:
 
 
at!lteinfo?                                                                     
!LTEINFO:                                                                       
Serving:   EARFCN MCC MNC   TAC      CID Bd D U SNR PCI  RSRQ   RSRP   RSSI RXLV
             1850 454  12 40802 0188A967  3 3 3  12 328  -9.9  -91.7  -64.8  32 
                                                                                
IntraFreq:                                          PCI  RSRQ   RSRP   RSSI RXLV
                                                    326 -18.0 -101.4  -72.0  32 
                                                                                
InterFreq: EARFCN ThresholdLow ThresholdHi Priority PCI  RSRQ   RSRP   RSSI RXLV
                                                                                
CA SCell : EARFCN   SCID   Bd  ST  D  U   Mdl  Mul  PCI  RSRP   RSSI   SINR     
                                                                                
WCDMA:     UARFCN ThreshL ThreshH Prio PSC   RSCP  ECN0 RXLV                    
                                                                                
                                                                                
OK                                                                              
ati3                                                                            
Manufacturer: Sierra Wireless, Incorporated                                     
Model: EM9191                                                                   
Revision: SWIX55C_03.10.07.00 e32f05 jenkins 2022/12/14 16:18:06                
IMEI: 355890340712345                                                          
IMEI SV: 24                                                                     
FSN: 78214751212345                                                             
+GCAP: +CGSM                                                                    
                                                                                
                                                                                
OK                                                                              
at!gstatus?                                                                     
!GSTATUS:                                                                       
Current Time:  2272             Temperature: 31                                 
Thermal Mitigation Level: 0                                                     
Reset Counter: 1                Mode:        ONLINE                             
System mode:   LTE              PS state:    Attached                           
LTE band:      B3               LTE bw:      10 MHz                             
LTE Rx chan:   1850             LTE Tx chan: 19850                              
EMM state:     Registered       Normal Service                                  
RRC state:     RRC Idle                                                         
IMS reg state: NOT REGISTERED   IMS mode:    Normal                             
IMS Srv State: UNKNOWN SMS,UNKNOWN VoIP                                         
                                                                                
PCC RxM RSSI:  -66              PCC RxM RSRP:  -91                              
PCC RxD RSSI:  -71              PCC RxD RSRP:  -97                              
PCC Tx Power:  ---              TAC:         9f62 (40802)                       
RSRQ (dB):     -8.0             Cell ID:     0188a967 (25733479)                
SINR (dB):     10.8                                                             
                                                                                
NR5G band:       ---            NR5G bw:         ---                            
NR5G Tx Power:   ---            NR5G Tx chan:    ---                            
NR5G Rx chan:    ---            NR5G RSRP (dBm): ---                            
NR5G RSRQ (dB):  ---            NR5G SINR (dB):  ---                            
                                                                                
                                                                                
OK      
 






2.	Run “sudo ./bin/lite-qmi-nashostx86_64"
3.	Enter option “40” to get the cell locking list, it should return no element
GetCellLockConfig ret: 0 Mask: 0x00000004
0 element(s) in Cell List
 
4.	Enter option “41” to set the cell lock
5.	Enter “pci=326 freq=1850 enforce=1" , it should return
SetCellConfig ret: 0 Mask: 0x00000004
 
6.	Enter option “40” to get the cell locking list, it should return:
GetCellLockConfig ret: 0 Mask: 0x00000004
 
1 element(s) in Cell List
  0 - PCI: 326, FREQ: 1850
 




7.	AT!LTEINFO? shows it attaches to cell ID 326
 
at!lteinfo?                                                                     
!LTEINFO:                                                                       
Serving:   EARFCN MCC MNC   TAC      CID Bd D U SNR PCI  RSRQ   RSRP   RSSI RXLV
             1850 454  12 40802 0188A966  3 3 3  -1 326 -18.1 -102.6  -66.7  21 
                                                                                
IntraFreq:                                          PCI  RSRQ   RSRP   RSSI RXLV
                                                    328  -8.4  -97.0  -77.2  21 
                                                                                
InterFreq: EARFCN ThresholdLow ThresholdHi Priority PCI  RSRQ   RSRP   RSSI RXLV
                                                                                
CA SCell : EARFCN   SCID   Bd  ST  D  U   Mdl  Mul  PCI  RSRP   RSSI   SINR     
                                                                                
WCDMA:     UARFCN ThreshL ThreshH Prio PSC   RSCP  ECN0 RXLV                    
                                                                                
                                                                                
OK   
 
 
8.	Now if I enter AT+CFUN=0 and clear the cell locking list by entering <ENTER> key in option "41", after AT+CFUN=1, it will attach to original cell ID 328 as step 1 above.

Thanks! So for my raspberry pi, I had to run the lite-qmi-nasarm binary for it to work (not nasrpi). Also, for it to connect to internet again (and LED to flash properly), I have to re-plug the usb adapter for the modem.

BTW, when I try to clear the cell locking list by pressing enter key in option “41”, It says SetCellConfig errorCode: 1090 - Incompatible State. How can I clear the list?

did you do it after AT+CFUN=0?

Thanks again, that was it

Is there a way I can avoid having to restart my modem to browse the internet after locking to a cell? I have tried AT+CGATT=1 and AT+CGACT=1,1 and AT+CGDCONT but none of them allow me to browse the internet. I checked AT!GSTATUS and everything looks fine (PS state is attached, EMM state is registered)

Only a full restart using AT+CFUN=1,1 or AT!RESET fixes it but I want to avoid that since it takes time.

how about AT+CFUN=0 and AT+CFUN=1

Still no luck, is there any other way of doing a restart without actually doing a restart?