how to change Esim profile for nbiot fall back

Hi,

I'm using nrf9160custom board using sdk version 2.0.0
our Esim has 2 profiles one is for LTE and another one is for NB-IoT. Present i have tested tested LTE network and its working fine but i need to work on NB-IoT.

i have no idea how to do fallback for LTE to NB-IoT.

our Esim provider given fallback APDU command.

i have refered below document too but i don't have any how to send AT+CSIM command

https://infocenter.nordicsemi.com/index.jsp?topic=%2Fref_at_commands%2FREF%2Fat_commands%2Faccess_uicc%2Faccess_uicc.html

Thank you

Parents Reply
  • Hi,

    yes i have tried that too but its not changing the profile.

    i have tried using AT+CSIM command to change the profile  below is the which im getting while sending the AT+CSIM

    AT+CSIM=14,80C2000009D3070202018110017C
    +CSIM: 4,"980A"
    OK
    
    AT+CIMI
    222013096796817
    OK
    
    
    AT+CSIM=14,80C2000009D3070202018110017D
    +CSIM: 4,"9000"
    OK
    
    AT+CIMI
    204046824953132
    OK
    
    
    AT+CSIM=14,80C2000009D3070202018110017D
    %XSIM: 0,10
    %CESQ: 38,1,21,3
    +CGEV: ME PDN DEACT 0
    +CEREG: 0
    +CIND: "service",0
    +CIND: "roam",0
    +CGEV: ME DETACH
    +CEREG: 2,"05D7","019C4606",7
    %XSIM: 1
    CSIM: 4,"980A"
    OK
    
    AT+CSIM=14,80C2000009D3070202018110017C
    +CSIM: 4,"9000"
    OK
    +CGEV: RESTR 2,2

    i don't know even its changing or not  please let me know is profile changing or not? 

    Thank you

Children
  • Based on the log, it looks like you are able to change the IMSI.

    However, it also shows that you are using LTE-M. Is NB-IoT enabled?

    You have also activated some throttling mechanism in the network. One way to activate it is to try to attach too many times per hour, or resetting the device too many times without disconnecting properly from the network first.

    To begin with, it might be a good idea to just verify that you can attach to the NB-IoT network, by only enabling NB-IoT with AT%XSYSTEMMODE=0,1,0,0

  • Hi

    To begin with, it might be a good idea to just verify that you can attach to the NB-IoT network, by only enabling NB-IoT with AT%XSYSTEMMODE=0,1,0,0

    in my code its already configured when LTE not available its automatically changing to nb-iot

    please see the below logs 

    [00:07:39.458,343] <dbg> lte_lc.lte_lc_system_mode_set: Sending AT command to set system mode: AT%XSYSTEMMODE=0,1,0,0
    11:28:19.213 -> +CEREG: 2
    11:28:20.242 -> [00:08:13.738,037] <dbg> lte_lc.at_handler: +CEREG notification: +CEREG: 2
    11:28:20.242 -> 
    11:28:20.242 -> [00:08:13.738,128] <err> lte_lc: Could not get tracking area code, error: -22
    11:28:20.242 -> [00:08:13.738,189] <err> lte_lc: Failed to parse notification (error -22): +CEREG: 2
    11:28:20.242 -> 
    11:28:38.644 -> %CESQ: 36,1,7,1
    11:28:38.644 -> +CEREG: 2,"C2F0","00273265",9
    11:28:38.644 -> LTE cell changed: Cell ID: 2568805, Tracking area: 49904
    11:28:39.622 -> [00:08:33.144,134] <dbg> lte_lc.at_handler: +CEREG notification: +CEREG: 2,"C2F0","00273265",9
    11:28:39.622 -> 
    11:28:41.776 -> %CESQ: 34,1,0,0
    11:28:41.962 -> +CSCON: 1
    11:28:41.962 -> RRC mode: Connected
    11:28:42.149 -> %CESQ: 35,1,5,0
    11:28:42.149 -> +CEREG: 2,"C2F0","00273265",9,0,15
    11:28:42.196 -> +CSCON: 0
    11:28:42.196 -> RRC mode: Idle
    11:28:42.616 -> %CESQ: 255,0,255,0
    11:28:42.616 -> +CEREG: 2
    11:28:42.942 -> [00:08:36.482,147] <dbg> lte_lc.at_handler: +CSCON notification
    11:28:42.989 -> [00:08:36.700,225] <dbg> lte_lc.at_handler: +CEREG notification: +CEREG: 2,"C2F0","00273265",9,0,15
    11:28:42.989 -> 
    11:28:42.989 -> [00:08:36.741,516] <dbg> lte_lc.at_handler: +CSCON notification
    11:28:42.989 -> [00:08:37.156,555] <dbg> lte_lc.at_handler: +CEREG notification: +CEREG: 2
    11:28:42.989 -> 
    11:28:42.989 -> [00:08:37.156,646] <err> lte_lc: Could not get tracking area code, error: -22
    11:28:42.989 -> [00:08:37.156,707] <err> lte_lc: Failed to parse notification (error -22): +CEREG: 2
    11:28:42.989 -> 
    11:28:43.084 -> %CESQ: 37,1,8,1
    11:29:00.636 -> 
    

    Thank you

  • > AT+CSIM=14,80C2000009D3070202018110017D

    According AT+CSIM Docu, the length is "The number of hexadecimal characters.". So it's rather 28 than 14. And the value is a string using "". I guess, it should be

    AT+CSIM=28,"80C2000009D3070202018110017D"

  • Hi,

    AT+CSIM=28,"80C2000009D3070202018110017D"

    Thanks for the replay,

    i have tried this method in LTE link monitor

    when i send AT+CSIM=28,"80C2000009D3070202018110017D" below is the response logs  and LTE is show like in below 

    AT+CSIM=28,"80C2000009D3070202018110017D"
    +CSIM: 4,"980A"
    OK
    
    AT+CESQ
    +CESQ: 99,99,255,255,255,255
    OK
    %CESQ: 34,1,18,2
    +CGEV: ME PDN DEACT 0
    AT+CGDCONT?
    +CEREG: 0
    +CIND: "service",0
    +CIND: "roam",0+
    CGEV: ME DETACH
    OK
    AT+CGACT?
    OK
    +CEREG: 2,"05D7","019C4600",7
    AT+CESQ
    +CESQ: 99,99,255,255,17,35
    OK
    +CGEV: ME PDN ACT 0,0
    AT+CGDCONT?
    +CNEC_ESM: 50,0
    +CEREG: 5,"05D7","019C4600",7,,,"00000001","01011111"
    +CIND: "service",1
    +CIND: "roam",1
    +CGDCONT: 0,"IP","eapn1.net","100.108.4.22",0,0
    OK
    AT+CGACT?
    +CGACT: 0,1
    OK
    +CNEC_ESM: 27,1

    when i send AT+CSIM=28,"80C2000009D3070202018110017C" below is the response logs  and LTE is showing Green.

    AT+CSIM=28,"80C2000009D3070202018110017C"
    +CSIM: 4,"9809"
    OK
    
    
    AT+CESQ
    +CESQ: 99,99,255,255,255,255
    OK
    %CESQ: 35,1,19,2
    +CGEV: ME PDN DEACT 0
    AT+CGDCONT?
    +CEREG: 0
    +CIND: "service",0
    +CIND: "roam",0
    +CGEV: ME DETACH
    OK
    AT+CGACT?
    OK
    +CEREG: 2,"05D7","019C4600",7
    +CGEV: ME PDN ACT 0,0
    AT+CGDCONT?
    +CNEC_ESM: 50,0
    +CEREG: 5,"05D7","019C4600",7,,,"00000001","01011111"
    +CIND: "service",1
    +CIND: "roam",1
    +CGDCONT: 0,"IP","eapn1.net","100.108.4.62",0,0
    OK
    AT+CGACT?
    +CGACT: 0,1
    OK
    +CGEV: ME PDN ACT 1
    AT
    +CGDCONT?
    +CGDCONT: 0,"IP","eapn1.net","100.108.4.62",0,0
    +CGDCONT: 1,"IP","i-smsr.net","100.65.192.6",0,0
    OK
    AT+CGACT?
    +CGACT: 0,1
    +CGACT: 1,1
    OK
    +CGEV: ME PDN DEACT 1
    +CNEC_ESM: 36,1
    AT+CGDCONT?
    +CGDCONT: 0,"IP","eapn1.net","100.108.4.62",0,0
    OK
    AT+CGACT?
    +CGACT: 0,1
    OK

    please check the both logs and let me know is profile switching happening or not for NB-IoT and LTE-M 

    Thank you

  • > +CEREG: 2,"05D7","019C4600",7

    AFAIK the "7" means LTE-M/CAT-M1. A "9" would be NB-IoT.

Related