Configuration for - UDP over NB-IoT

Dear community

I'm new to the nRF9160 and to cellular connectivity related functionality.

We're in the concept phase of a product that implements cellular cloud connectivity. The solution will finally be lauched in several countries all over the world, and therefore must be capable of communicating via LTE-M and NB-IoT.

I managed to install the "nRF9160: UDP" example and to successfully connect to a UDP custom server and to send some dummy data (via LTE-M). That's already a great start, but now, I would like to achieve the same result based on NB-IoT transport. So far I didn't find the right configuration to achieve this.

Here's my setup:

In order to switch to NB-IoT I slightly changed the prj.conf as follows (the example doesn't mention any config for NB-IoT mode):

CONFIG_LTE_NETWORK_MODE_LTE_M=n
CONFIG_LTE_NETWORK_MODE_NBIOT=y

However, with this config change the system seems not able to establish a stable connection anymore (although it looks like initially a connection gets established).

The sample software produces the following output:

*** Booting Zephyr OS build 3afbbacd2ea2  ***
UDP sample has started
LTE cell changed: Cell ID: 16971977, Tracking area: 600
RRC mode: Connected
RRC mode: Idle

LTE cell changed: Cell ID: -1, Tracking area: -1
LTE cell changed: Cell ID: 2643304, Tracking area: 21110
RRC mode: Connected
RRC mode: Idle

LTE cell changed: Cell ID: -1, Tracking area: -1

(here the connection attempt seems to stuck...)

I would be happy for any hint's (or maybe examples) on how I need to tweak the configuration to successfully communicate via NB-IoT

Thanks a lot in advance :-)

Parents Reply Children
  • Hi Didrik

    Thanks a lot for your super-quick support :-)

    I followed your advice and get more Details now (but it's quite cryptic to me :-D ).

    You may see quickly whats going on.

    Kind Regards,

    Stefan

    *PS: I also followed your link to the network coverage page from iBASIS (it really seems the case that the card just not supports NB-IoT in Switzerland).

    Here s the Log:

    *** Booting Zephyr OS build 3afbbacd2ea2  ***
    UDP sample has started
    D: System mode (2) and preference (0) configured
    D: +CEREG notification: +CEREG: 2,"0258","0102F8C9",9<\r><\r><\n>
    D: Network registration status: 2
    D: LTE mode: 9
    D: Dispatching events:
    D:  - handler=0x00011F21
    D: Done
    D: Dispatching events:
    D:  - handler=0x00011F21
    LTE cell changed: Cell ID: 16971977, Tracking area: 600
    D: Done
    D: Dispatching events:
    D:  - handler=0x00011F21
    D: Done
    D: +CSCON notification
    D: Dispatching events:
    D:  - handler=0x00011F21
    RRC mode: Connected
    D: Done
    D: +CEREG notification: +CEREG: 2,"0258","0102F8C9",9,0,15<\r>

    D: Network registration status: 2
    D: LTE mode: 9
    D: +CSCON notification
    D: Dispatching events:
    D:  - handler=0x00011F21
    RRC mode: Idle

    D: Done
    D: +CEREG notification: +CEREG: 2<\r>

    D: Network registration status: 2
    D: LTE mode not found, error code: -22
    D: Dispatching events:
    D:  - handler=0x00011F21
    LTE cell changed: Cell ID: -1, Tracking area: -1
    D: Done
    D: Dispatching events:
    D:  - handler=0x00011F21
    D: Done
    D: +CEREG notification: +CEREG: 2,"5276","00285568",9<\r><\r><\n>
    D: Network registration status: 2
    D: LTE mode: 9
    D: Dispatching events:
    D:  - handler=0x00011F21
    LTE cell changed: Cell ID: 2643304, Tracking area: 21110
    D: Done
    D: Dispatching events:
    D:  - handler=0x00011F21
    D: Done
    D: +CSCON notification
    D: Dispatching events:
    D:  - handler=0x00011F21
    RRC mode: Connected
    D: Done
    D: +CEREG notification: +CEREG: 2,"5276","00285568",9,0,15<\r><\r><\n>
    D: Network registration status: 2
    D: LTE mode: 9
    D: +CSCON notification
    D: Dispatching events:
    D:  - handler=0x00011F21
    RRC mode: Idle

    D: Done
    D: +CEREG notification: +CEREG: 2<\r><\r><\n>
    D: Network registration status: 2
    D: LTE mode not found, error code: -22
    D: Dispatching events:
    D:  - handler=0x00011F21
    LTE cell changed: Cell ID: -1, Tracking area: -1
    D: Done
    D: Dispatching events:
    D:  - handler=0x00011F21
    D: Done

  • StefanL said:
    I followed your advice and get more Details now (but it's quite cryptic to me :-D ).

    It can be a bit difficult if you don't know the code or the AT commands.

    The interesting lines in this case is

    D: +CEREG notification: +CEREG: 2,"5276","00285568",9,0,15<\r><\r><\n>

    (and the one that is almost identical, but a different cell).

    The line tells me that it tried to connect to a cell, but got rejected with reject cause "15".

    The spec has this to say about reject cause 15:

    Cause #15 – No suitable cells in tracking area
    This EMM cause is sent to the UE if it requests service, or if the network initiates a detach request, in a tracking
    area where the UE, by subscription, is not allowed to operate, but when it should find another allowed tracking
    area or location area in the same PLMN or an equivalent PLMN.

    Again, not the easiest to understand, but it basically means that your subscription does not allow you to connect to the cell (but you might be allowed to connect somewhere else/other cells on the same network).

    Which is what we would expect when you are allowed to use LTE-M on the network, but not NB-IoT.

  • Thanks a lot for your help.

    I'll then organize another SIM card which is permitted to connect via NB-IoT.

    Kind Regards,

    Stefan

Related