Configuring Icarus Board flashed Through NRF9160dk as a LWM2M Client in coite iot device Management Server.

Hello Community,

I am tirelessly working on connecintg my icarus development board to LWM2M server, However there are no good examples to follow and do it with ease, there are two samples one is with LWM2M for Nrf9160dk board however that sample is not made for actinius board since it uses many gpios of nrf9160dk board. And one more example in zephr/sample/net/lwm2m works only with ipv4 and ipv6.

I need Real help from you guys with any github repo for the sample that works for actinus_icarus board or some help regarding how can i proceed furthur, this would really help me i ahve already wasted 2 weeks editing the samples to make it work for the icarus board nothing is working for me at the movement, so please help!!

best regards,

tejas

  • Hi jonathan , i tried other applications and it works perfectly fine with that, i have edited the code and built and flshed, i am getting the following error in my putty terminal, if u can help please suggest what is this error mean,

    for the same lwm2m sample in nrf/samples/nrf9160/lwm2m

    <err> net_lwm2m_rd_client: Cannot init LWM2M engine (-2)

    [03:51:05.028,076] <err> app_lwm2m_client: LwM2M engine reported a network error.

    [03:51:05.028,167] <inf> app_lwm2m_client: LwM2M restart requested. The sample will try to re-establish network connection.

    [03:51:05.028,167] <inf> net_lwm2m_rd_client: Stop LWM2M Client: urn:imei:352656100464844

    [03:51:06.506,896] <inf> app_lwm2m_client: Connecting to LTE network.

    [03:51:06.506,896] <inf> app_lwm2m_client: This may take several minutes.

    [03:51:09.456,481] <inf> app_lwm2m_client: Connected to LTE network

    [03:51:09.456,604] <inf> net_lwm2m_rd_client: Start LWM2M Client: urn:imei:352656100464844

    [03:51:10.029,327] <inf> net_lwm2m_rd_client: Bootstrap started with endpoint 'urn:imei:352656100464844' with client lifetime 0

    [03:51:11.307,525] <inf> lwm2m_neighbour_cell: Updating information for 1 neighbouring cells

    [03:51:40.034,698] <err> net_lwm2m_engine: Unable to resolve address

    [03:51:40.034,729] <err> net_lwm2m_rd_client: Cannot init LWM2M engine (-2)

    [03:51:41.035,003] <inf> net_lwm2m_rd_client: Bootstrap started with endpoint 'urn:imei:352656100464844' with client lifetime 0

    [03:52:11.040,618] <err> net_lwm2m_engine: Unable to resolve address

    [03:52:11.040,649] <err> net_lwm2m_rd_client: Cannot init LWM2M engine (-2)

    [03:52:12.541,076] <inf> net_lwm2m_rd_client: Bootstrap started with endpoint 'urn:imei:352656100464844' with client lifetime 0

    [03:52:42.545,867] <err> net_lwm2m_engine: Unable to resolve address

    [03:52:42.545,898] <err> net_lwm2m_rd_client: Cannot init LWM2M engine (-2)

    [03:52:45.046,600] <inf> net_lwm2m_rd_client: Bootstrap started with endpoint 'urn:imei:352656100464844' with client lifetime 0

    [03:53:15.049,285] <err> net_lwm2m_engine: Unable to resolve address

    [03:53:15.049,316] <err> net_lwm2m_rd_client: Cannot init LWM2M engine (-2)

  • Seems like you are not able\allowed to connect to the network getting the DNS error "Unable to resolve address" /* DNS error codes don't align with normal errors */. So there seems to be some issue wit the connection. By default our sample only supports the nRF9160DK and the Thingy91, https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.0/nrf/samples/nrf9160/lwm2m_client/sample_description.html#requirements . So I would check with Icarus community to see if anyone have had the same issue, if not then would need to look at the full application, or what changes you do to the sample. 

    Nothing seems to indicate that the issue is with the sample form what you have shared, most likely some configuration but hard to say what. Test the AT client and make sure that everything works as expected on the Icarus board just to rule out any issues with the network. 

    Regards,
    Jonathan

  • I can now successfully connect the icarus board to the server, thank you for all your help and suggestion, However the sample only has the simualted data can you help me know what changes i can do to get the real data?

  • Even if its just accelometer on board of icarus lis LIS2DH is okay for me, i have tried connecting it but it always selct the simulaed accelometer, the config is not changing even though i chage the prj.conf so i am stuck because of that

  • Could you create a new ticket where you describe the new issue and add the prj.conf and overlay files. IF you don't want to share all the info publicly you can create a private ticket. 

    Regards,
    Jonathan

Related