This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

GPS/LTE_M/NB-IoT nRF91

Dear, 

I am using :

ncs: v0.4.0 

SES 4.16 

firmware: mfwnrf916007029alpha

Hardware: nRF9160 DK v: 0.8.5

I want to do: 

1. Enable and get GPS position ("AT\%XSYSTEMMODE=0,0,1,0") and data from BMP280 sensor  --> store it in data_pack

2. Turnoff GPS and Enable LTE_M: ("AT\%XSYSTEMMODE=1,0,0,0") & use HTTP POST to post data_pack to my webserver 

3. Switch to NB-IoT: ("AT\%XSYSTEMMODE=0,1,0,0") & use HTTP POST to post data_pack to my webserver

Is it posiblie to do like that now?

I know: "The current modem firmware, v0.7.0-29-alpha, allows you to choose the system mode via command %XSYSTEMMODE, but it does not support them concurrently, meaning that you cannot have GPS + NB-IoT, or GPS + CAT M1, enabled simultaneously at this time."  https://devzone.nordicsemi.com/f/nordic-q-a/48077/gps-http-post

I can switch: AT\%XSYSTEMMODE=0,0,1,0/AT\%XSYSTEMMODE=1,0,0,0/AT\%XSYSTEMMODE=0,1,0,0 but I couldn't POST data to my webserver.

Do you have any suggestions?

Thanks,

Regards, 

hng

Parents
  • Hi hng,

     

    I am very sorry for not seeing the last post in the linked case.

    The system has a flaw when you accept an answer, then add a new reply, it will still mark the case as resolved, so I do not get a notification or state-change on that topic, unfortunately.

     

    From the last reply, it seems that you are not able to successfully connect over NB-IoT in your area, as you do not get the Cell ID, MCC, MNC, and other registration information. You could try to ask your local network providers if there's a nb-iot coverage issue in your area.

    Cat M1 still works fine, right?

     

    Kind regards,

    Håkon

  • Dear

    Thats ok Håkon. 

    I verified the NB-IoT in Horten, Vestfold with iBasis: NO. Then, I used another sim card (telia), I got NB-IoT signal but no LTE-M. I will find someone else, can supply both LTE-M and NB-IoT. 

    But, what do you think about my plan: 

    I want to do: 

    1. Enable and get GPS position ("AT\%XSYSTEMMODE=0,0,1,0") and data from BMP280 sensor  --> store it in data_pack

    2. Turnoff GPS and Enable LTE_M: ("AT\%XSYSTEMMODE=1,0,0,0") & use HTTP POST to post data_pack to my webserver 

    3. Switch to NB-IoT: ("AT\%XSYSTEMMODE=0,1,0,0") & use HTTP POST to post data_pack to my webserver

    Is it possible to do like that now?

    Regards,

    hng

  • as last time, I mentioned, I couldn't POST when I remove the option: 

    # LTE link control
    CONFIG_LTE_LINK_CONTROL=y

    in prj.conf

Reply Children
  • Hi,

     

    You need to manually start the modem unless you have the LTE Link control library present. It's best just to leave that one enabled.

    So, you have one SIM that does LTE M, and another that does NB-IoT.

    If you use them both, you should be able to test all 3 scenario's, but not "on the same run".

     

    I would still recommend that you contact the network provider and ask regarding coverage in your area.

     

    Kind regards,

    Håkon

  • Disappointed

    For example, with iBasis sim ( LTE_M). 

    1. Enable and get GPS position ("AT\%XSYSTEMMODE=0,0,1,0") and data from BMP280 sensor  --> store it in data_pack

    2. Turnoff GPS and Enable LTE_M: ("AT\%XSYSTEMMODE=1,0,0,0") & use HTTP POST to post data_pack to my webserver

    Can we? I can't use GPS if I LTE link control library present.

  • You should see the note in the top of the documentation here:

    https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/mob_termination_ctrl_status/xsystemmode_set.html?cp=2_1_3_30_0

     

    The CFUN=4 command corresponds to function lte_lc.c::lte_lc_offline()

    Then switch the xsystemmode to your wanted mode, and you can call lte_lc.c::lte_lc_normal() to start up again.

     

    Kind regards,

    Håkon

  • Dear 

    Im NOT good enough to understand you all. 

    1. "You need to manually start the modem unless you have the LTE Link control library present. It's best just to leave that one enabled."

            GPS COULDNT get position when I kept : 

    # LTE link control
    CONFIG_LTE_LINK_CONTROL=y

    in prj.conf. 

    From me: the option CONFIG_LTE_LINK_CONTROL=y will connect LTE when the nrf9160 starts. 

    I used : AT+CFUN=4 (or lte_lc_offline()), then enable GPS, and run gps

    #define AT_CFUN4        "AT+CFUN=4"
    #define AT_XSYSTEMMODE "AT\%XSYSTEMMODE=0,0,1,0"
    #define AT_MAGPIO      "AT\%XMAGPIO=1,0,0,1,1,1574,1577"
    #define AT_CFUN        "AT+CFUN=1"
    static const char     at_commands[][31]  = {AT_CFUN4,AT_XSYSTEMMODE, AT_MAGPIO, AT_CFUN };

    but then, the GPS keeps scanning ...................... without fix

    anning [|] [1B][1;1H[1B][2JTracking: 0 Using: 0 Unhealthy: 0
    Seconds since last fix 536
    
    Scanning [/] [1B][1;1H[1B][2JTracking: 0 Using: 0 Unhealthy: 0
    Seconds since last fix 536
    
    Scanning [-] [1B][1;1H[1B][2JTracking: 0 Using: 0 Unhealthy: 0
    Seconds since last fix 537
    
    Scanning [\] [1B][1;1H[1B][2JTracking: 0 Using: 0 Unhealthy: 0
    Seconds since last fix 537
    
    Scanning [|] [1B][1;1H[1B][2JTracking: 0 Using: 0 Unhealthy: 0
    Seconds since last fix 538
    
    Scanning [/] [1B][1;1H[1B][2JTracking: 0 Using: 0 Unhealthy: 0
    Seconds since last fix 538
    
    Scanning [-] [1B][1;1H[1B][2JTracking: 0 Using: 0 Unhealthy: 0
    Seconds since last fix 539
    
    Scanning [\] [1B][1;1H[1B][2JTracking: 0 Using: 0 Unhealthy: 0
    Seconds since last fix 539
    
    Scanning [|] 

    (when I ran without option: CONFIG_LTE_LINK_CONTROL=y, just about less then 50s, it got fixed location:

    Scanning [|] [1B][1;1H[1B][2JTracking: 2 Using: 0 Unhealthy: 0
    Seconds since last fix 26
    
    Scanning [/] [1B][1;1H[1B][2JTracking: 2 Using: 0 Unhealthy: 0
    Seconds since last fix 27
    
    Scanning [-] [1B][1;1H[1B][2JTracking: 2 Using: 0 Unhealthy: 0
    Seconds since last fix 27
    
    Scanning [\] [1B][1;1H[1B][2JTracking: 2 Using: 0 Unhealthy: 0
    Seconds since last fix 0
    ---------------------------------
    Longitude:  10.484627
    
    Latitude:   59.407533
    
    Altitude:   55.224106
    
    Speed:      1.476133
    
    Heading:    0.000000
    
    Date:       20-06-2019
    Time (UTC): 07:17:30
    
    NMEA strings:
    $GPGGA,071730.74,5924.45197,N,01029.7760,E,1,05,3.93,55.22,M,0,,*26
    
    
    $GPGLL,5924.45197,N,01029.7760,E,071730.74,A,A*50
    
    
    $GPGSA,A,3,02,12,24,25,,,,,,,,,4.80,3.93,2.75,1*1A
    
    
    $GPGSV,2,1,5,12,84,188,42,24,45,150,42,25,44,253,40,2,16,123,35,1*6B
    
    
    $GPGSV,2,2,5,32,00,000,31,1*62
    
    
    $GPRMC,071730.74,A,5924.45197,N,01029.7760,E,2.86,0.0,200619,,,A,V*2D

    )

    (my nrf9160 dk stayed outside and the same position)

    Something is wrong on my setup?

    Thanks, 

    Ragards, 

    hng

Related