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

LwM2M Carrier Library Questions

Hello,

  1. From my understanding, I should integrate the LwM2M Carrier Library connection as the first step in the boot process and once I have received the LWM2M_CARRIER_EVENT_READY event, I can move along with my application similar to how we are waiting for the cloud_ready_to_connect semaphore in the Asset Tracker example. If I am in an area with no LTE coverage, what will happen in this case? How long will I have to wait for the Carrier Library to give the semaphore if there is no coverage? When should I run the portion of my application that does not need LTE Connection, e.g. talking to other devices over UART.
  2. I need to use a different APN in my application. When should I initialize that? Should I put the modem in flight mode (AT+CFUN=4) after getting the LWM2M_CARRIER_EVENT_READY event and then reconfigure the APN and then turn the modem on again? If I do that, do I need to reconnect to the lwm2m operator network?
  3. If I am planning to use an MVNO SIM in my product (such as iBasis), do I need to include the LwM2M Carrier Library? Let's say I am deploying my product in the US and it is connecting to either Verizon or AT&T through the MVNO, will the carrier library be able to connect directly to the carrier.

Regards,

Akash Patel

Parents
  • Hi Akash,

     

     

    If I am in an area with no LTE coverage, what will happen in this case? How long will I have to wait for the Carrier Library to give the semaphore if there is no coverage? When should I run the portion of my application that does not need LTE Connection, e.g. talking to other devices over UART.

     Most of the abstractions in lwm2m can be found in the lwm2m_os.c file, which in this case will call upon the lte_lc library:

    https://github.com/nrfconnect/sdk-nrf/blob/v1.3.0/lib/bin/lwm2m_carrier/os/lwm2m_os.c#L626-L641

     So, it depends on how you have configured that to run (see CONFIG_LTE_NETWORK_TIMEOUT).

     

    Given that your own logic is running in an already running thread, it should run as expected.

     

    I need to use a different APN in my application. When should I initialize that? Should I put the modem in flight mode (AT+CFUN=4) after getting the LWM2M_CARRIER_EVENT_READY event and then reconfigure the APN and then turn the modem on again? If I do that, do I need to reconnect to the lwm2m operator network?

     You can set the APN using this kconfig:

    https://github.com/nrfconnect/sdk-nrf/blob/master/lib/lte_link_control/Kconfig#L97

     

    Then lte_lc library will set it on boot up.

     

    If I am planning to use an MVNO SIM in my product (such as iBasis), do I need to include the LwM2M Carrier Library? Let's say I am deploying my product in the US and it is connecting to either Verizon or AT&T through the MVNO, will the carrier library be able to connect directly to the carrier.

     Roaming SIMs will not access a carrier lwm2m server, so then its not needed.

     

    Kind regards,

    Håkon

Reply
  • Hi Akash,

     

     

    If I am in an area with no LTE coverage, what will happen in this case? How long will I have to wait for the Carrier Library to give the semaphore if there is no coverage? When should I run the portion of my application that does not need LTE Connection, e.g. talking to other devices over UART.

     Most of the abstractions in lwm2m can be found in the lwm2m_os.c file, which in this case will call upon the lte_lc library:

    https://github.com/nrfconnect/sdk-nrf/blob/v1.3.0/lib/bin/lwm2m_carrier/os/lwm2m_os.c#L626-L641

     So, it depends on how you have configured that to run (see CONFIG_LTE_NETWORK_TIMEOUT).

     

    Given that your own logic is running in an already running thread, it should run as expected.

     

    I need to use a different APN in my application. When should I initialize that? Should I put the modem in flight mode (AT+CFUN=4) after getting the LWM2M_CARRIER_EVENT_READY event and then reconfigure the APN and then turn the modem on again? If I do that, do I need to reconnect to the lwm2m operator network?

     You can set the APN using this kconfig:

    https://github.com/nrfconnect/sdk-nrf/blob/master/lib/lte_link_control/Kconfig#L97

     

    Then lte_lc library will set it on boot up.

     

    If I am planning to use an MVNO SIM in my product (such as iBasis), do I need to include the LwM2M Carrier Library? Let's say I am deploying my product in the US and it is connecting to either Verizon or AT&T through the MVNO, will the carrier library be able to connect directly to the carrier.

     Roaming SIMs will not access a carrier lwm2m server, so then its not needed.

     

    Kind regards,

    Håkon

Children
Related