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

LwM2M can not connect to leshan bootstrap server

Hi,

I have been trying implement this, which i successfully implemented two week earlier. But for some reason i am not able to implement this anymore. I tried last week and till today.

Could you please suggest what might be the source of evil ?

Here is the description what i have gone though:

1. flashing nrf522832 with lwm2m client example with secure mode

2. Connecting device with my Ubuntu 18.04 LTS according to this  

  -- After this step LED2 came on

  --After this step i could ping in bt0 interface

3. I did this to run leshan bootstrap and leshan server

--- After this i could see booth server running, i could reach them from browser

4.  In this stage i press the Button 1 to initiate bootstrap and monitor in the wireshak

nothing happening after that . I do not have idea to troubleshoot this. please help

Parents
  • i m getting this error and seems to me this the reason, could you please tell me how to get rid of following warning:


    2018-11-15 15:55:26,412 WARN NetworkConfig - cannot write properties to file /home/iot/leshan/Californium.properties: Californium.properties (Permission denied)

  • Does your current user have permissions to that file? Have you edited this file via another user or similar?

    Are you able to post configuration to the bootstrap server via your localhost, like described here?

     

    The lwm2m example is by default setup with security (main.c::USE_SECURITY). Is your server setup this way as well?

    Bet regards,

    Håkon

  • Thanks for your reply,

    0. For some reasons WARNING message is gone.


    1. Yes i can post configuration to the boostrap server and see that as follow:

    also i can see a data folder being created under leshan directory. This data folder contains bootstrap.json file.

    2. I know the default mode is secure mode in lwm2m client, i also tried non-secure mode by setting #if (USE_SECURITY == 0), in both case i failed to connect the client to the bootstrap server.

    And in the post command as you referred by the link, i put the json file with security instance, so that means my server also in security mode right ?

    3. When i trigger the button one, i expected a hello coap message for handshaking to start, but in wireshark this message is type unkown 254 (You can see details in the capture below as i have added in the comment)

Reply
  • Thanks for your reply,

    0. For some reasons WARNING message is gone.


    1. Yes i can post configuration to the boostrap server and see that as follow:

    also i can see a data folder being created under leshan directory. This data folder contains bootstrap.json file.

    2. I know the default mode is secure mode in lwm2m client, i also tried non-secure mode by setting #if (USE_SECURITY == 0), in both case i failed to connect the client to the bootstrap server.

    And in the post command as you referred by the link, i put the json file with security instance, so that means my server also in security mode right ?

    3. When i trigger the button one, i expected a hello coap message for handshaking to start, but in wireshark this message is type unkown 254 (You can see details in the capture below as i have added in the comment)

Children
Related