Hello everyone,
I am going tp establish a mesh network by using a devkit and two or more dongle. take as an example, turning off a led on the dongle boards by using a bottom on the devkit through the mesh network.
Thanks for help in advance.
Hello everyone,
I am going tp establish a mesh network by using a devkit and two or more dongle. take as an example, turning off a led on the dongle boards by using a bottom on the devkit through the mesh network.
Thanks for help in advance.
First this will require merging the usb-cdc example code into the mesh example app you intend to run on the nrf52840 devkit before loading on the dongle.
I have just tried that (usb-cdc + lightswitch_client) on devkit and I get the weird behaviour that the firmware runs ONLY if the segger cable is also plugged into the devkit. IF that cable is not plugged in that the serial port does not appear in device manager.
However, I know the firmware is running as I see it waiting for it to be provisioned.
Frustrating indeed.
Additional frustration is that the usb-cdc example could have been written better so that it exposed a better api for integration.
If anyone has any suggestions as to why the serial port does not appear (yet I know the firmware is working because it is waiting for provisioning) then I will be most grateful.
Hello everyone,
Thank you for your reply.
I could program the devkit as a client by adding the root of the example in the Global Macros.
I saw the devkit in the nrf Mesh application as nrf mesh switch.
After which, I followed the instruction suggested in this link to program the dongle board as a server.
I used the hex file built in the build folder in the server folder to program the dongle through nrf connect software.
after witting the hex file, these messages appeared.
Hi Sama,
Please try to test first with blinky example as showed in the tutorial.
Have you ever managed to program any example into the dongle using nRF Connect software ?
I suspect that the bootloader doesn't run on your dongle.
If you press the reset button on the dongle do you see the red LED breathing ?
Hi Hung,
Thank you for your reply.
I have run the Blinky example on the dongle.
I reset the dongle to program and the red LED was breathing and then I follow the instruction in the tutorial.
I don not understand where is the problem.
Thank you
Sama
Hi Sama, have you flashed the softdevice when you flash the application via nRF Connect software ?
Softdevice needed for mesh application.
I would strongly suggest you to solder the P1 header to do programming directly via the SWD interface instead of testing using the bootloader as you are doing now.