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

can not connect

Hi
I try to use "light_switch demo" , but sometimes the server does not connect to client, yesterday they could connect , but today they will not and I have not changed anything in the code beyond how many server clients can have on and when I debug the server it end up in sleep

Parents
  • Hello mikkel1e,

    Please perform the following instructions and let us know the outcome... (note that this will erase any previously configured mesh data)

    (1) If you don't already have it installed, download the latest nRF5x Command Line Tools from here...

    www.nordicsemi.com/.../33444

    (2) Once installed, open a command prompt and issue the following commands for each of your DevKit boards (3 servers and 1 client) - xxxxxxxxx is the serial no. for each Devkit:

    nrfjprog -s xxxxxxxxx --family nRF52 -e

    (3) Once complete, flash the relevant softdevice to each board as follows (3 servers and 1 client):

    nrfjprog -s xxxxxxxxx --program %location-of-softdevice%\%required-softdevice-name%.hex -f nrf52

    (4) flash the client lightswitch hex file to your chosen client board as follows (1 client):

    nrfjprog -s xxxxxxxxx --program %location-of-lightswitch-client-demo%\%name-of-lightswitch-client%.hex -f nrf52

    (5) flash the server lightswitch hex file to your server boards as follows (3 servers):

    nrfjprog -s xxxxxxxxx --program %location-of-lightswitch-server-demo%\%name-of-lightswitch-server%.hex -f nrf52

    (6) Finally, issue the following commands for each of your DevKit boards (3 servers and 1 client), I would recommend that you do the servers and then the client:

    nrfjprog -s xxxxxxxxx --family nRF52 -r

    Monitor the output from the J-Link RTT Viewer(s) which you can attach to each devkit board and report back the logged output events if you have any further problems.

    Regards,

  • maybe a stupid question, but I can not do it from "SEGGER embedded studio" or should I do as you say.
    Just another thing, I'll do it every time I need get something on nrf52840
    but thank you for the help, I'll try it

Reply Children
No Data
Related