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

Use SIM cards from T-Mobile Netherland for IoT Creators

Hi, 

I got today a sample of your Nordic Thingy 91 device. I like to integrate the device into our IoT Data Provisioning Service from IoT Creators (Deutsche Telekom IoT GmbH). 

Unfortunatelly I can not use the SIM card which has been part of the box. I need to use my SIM card from T-Mobile Netherland.

How can I configure the following settings on the device?

  • APN
  • Mobile network operator
  • NB-IoT bands
  • IP address and port of our UDP server

Many thanks for your support!!

Regards, Roland

Parents
  • Hi Roland,

    This can be addressed by setting some configurations which are defined in the Kconfig of the LTE Link Controller library, in your projects prj.conf file.

    1. You can set the following Configurations in your prj.conf file:

    First you need to enable the LTE link Controller library:

    CONFIG_LTE_LINK_CONTROL=y
    CONFIG_LTE_AUTO_INIT_AND_CONNECT=n
    

    Then you can set the APN by:

    CONFIG_LTE_PDP_CMD=y
    CONFIG_LTE_PDP_CONTEXT="0,\"IPv4v6\",\"internet.apn\""

    In your main file these Configurations will be addressed in the library when you call the lte_lc_init_and_connect() function in your modem_configure() function.

    2). This is automatically detected from IMSI, so you do not need to set this manually. (can be overridden by the AT command: %XOPCONF)

    3). 

    First you need to tell the modem to start up in NB-IoT mode:

    CONFIG_LTE_NETWORK_MODE_NBIOT=y

    You do not need to specify the band, since the modem will search through the bands and find the available one automatic.
    However, you can set the modem to only search on some specific bands by enabling Bandlock.

    CONFIG_LTE_LOCK_BANDS=y
    CONFIG_LTE_LOCK_BAND_MASK="10000001000000001100"

    4). This is something you address in your main file.
    e.g. you can do something similar as shown in this simple udp sample: https://github.com/martiles/sdk-nrf/blob/udp_psm_sample/samples/nrf9160/udp_psm/src/main.c#L13

    Best regards,

    Martin L.

Reply
  • Hi Roland,

    This can be addressed by setting some configurations which are defined in the Kconfig of the LTE Link Controller library, in your projects prj.conf file.

    1. You can set the following Configurations in your prj.conf file:

    First you need to enable the LTE link Controller library:

    CONFIG_LTE_LINK_CONTROL=y
    CONFIG_LTE_AUTO_INIT_AND_CONNECT=n
    

    Then you can set the APN by:

    CONFIG_LTE_PDP_CMD=y
    CONFIG_LTE_PDP_CONTEXT="0,\"IPv4v6\",\"internet.apn\""

    In your main file these Configurations will be addressed in the library when you call the lte_lc_init_and_connect() function in your modem_configure() function.

    2). This is automatically detected from IMSI, so you do not need to set this manually. (can be overridden by the AT command: %XOPCONF)

    3). 

    First you need to tell the modem to start up in NB-IoT mode:

    CONFIG_LTE_NETWORK_MODE_NBIOT=y

    You do not need to specify the band, since the modem will search through the bands and find the available one automatic.
    However, you can set the modem to only search on some specific bands by enabling Bandlock.

    CONFIG_LTE_LOCK_BANDS=y
    CONFIG_LTE_LOCK_BAND_MASK="10000001000000001100"

    4). This is something you address in your main file.
    e.g. you can do something similar as shown in this simple udp sample: https://github.com/martiles/sdk-nrf/blob/udp_psm_sample/samples/nrf9160/udp_psm/src/main.c#L13

    Best regards,

    Martin L.

Children
No Data
Related