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

(Mesh)device restart,how to communicate with the previous configuration;

Board: custom board; Mesh SDK: V1.0.0; Softdevice: S132; IDE: SEGGER Embedded; BLE: nrf52832

When I test the steps specified by “Interactive PyACI”, I can Provisioning the client and server, and client can send message to server. but when i restart the board, how to communicate with the previous configuration?

Parents
  • Which firmware did you use ? Have you set PERSISTENT_STORAGE = 1 ? If you did, the configuration should be stored on flash. 

    What did you observe ? 

  • mesh V1.0.0;

    This problem has been solved by me. I found the configration has been stored on flash, but has not been reload after reboot , so add this line "dsm_flash_config_load();" in main fountion , that is ok! I think this is a bug.

    Add, there still has a little problem is that the relay node can relay messages in a same subnet after reboot and don't need to reconfigrate the app key and subnet address, but if let the client and server node that has been rebooted print log by serial port we must reconfigrate the publlication and subscription address by this command

    send(cmd.AddrSubscriptionAdd(49218));send(cmd.AddrPublicationAdd(49218))

    so can you tell me why?

Reply
  • mesh V1.0.0;

    This problem has been solved by me. I found the configration has been stored on flash, but has not been reload after reboot , so add this line "dsm_flash_config_load();" in main fountion , that is ok! I think this is a bug.

    Add, there still has a little problem is that the relay node can relay messages in a same subnet after reboot and don't need to reconfigrate the app key and subnet address, but if let the client and server node that has been rebooted print log by serial port we must reconfigrate the publlication and subscription address by this command

    send(cmd.AddrSubscriptionAdd(49218));send(cmd.AddrPublicationAdd(49218))

    so can you tell me why?

Children
No Data
Related