Hi
I try to flash the firmware from project light_switch_server_nrf52840_xxAA_s140_6_1_0 to nRF52840 dongle to build the Mesh Network with below modifications:-
- Use boards.c file to access LED, exclude button, instead of using simple_hal.c
- Change common configuration - preprocessor definition. use BOARD_PCA10059 instead of BOARD_PCA10056
- Exclude the file simple_hal.c when building the project, because it will return an error
- Use nRF Connect v2.6.1 - Programmer app to flash the firmware
- add softdevice hex file - s140_nrf52_6.1.0_softdevice.hex, from path "nrf5SDKforMeshv300src\bin\softdevice"
- add compile hex file after modify the project with item 1 and 2.
- Remain original bootloader.
- Using Android nRF Mesh app V1.1.0 to scan the device, it was successful to detect the device and completed the provision on
- one nRF52840 DK - as Client or Switch
- one nRF52840 Dongle as Server or Light
- Success to run Generic on off client model, i.e. press the switch from nRF52840 DK (Switch) to toggle the nRF52840 Dongle (Light) LED ON/OFF
- My problem is when using nRF Mesh app v1.1.0 Android to reset node, nRF52840 Dongle unable to detect any more.
Do you have any idea why it failed to detect anymore? Is because of the nRF52840 Dongle to wipe out certain memory area in order to restore back the original state?
- I have tried to add reset node code in the Main function which as show in below
int main(void)
{
initialize();
start();
// TODO: This is experiment for reset dongle back to original state after reset the node (unprovision)
#if MESH_FEATURE_GATT_PROXY_ENABLED
(void) proxy_stop();
#endif
mesh_stack_config_clear();
node_reset();
//TODO: ending...
2. After that rever the reset node code and then flash the firmware to nRF52840 Dongle again. With this method which success to detect the nRF52840 Dongle as Light.But after few more tries, it failed to detect anymore. Do you know any reason for this problem?
Below is my working environment:-
- window 10
- SES 4.12
- SDK for Mesh v3.0 + SDK v15.2.0
- nRF Connect v2.6.1 - Programmer app to flash the firmware
- nRF Mesh app v1.1.0 Android
- using Project light_switch_server_nrf52840_xxAA_s140_6_1_0.emProject