This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

nrf52840 Dongle and USB port problem

Hello,

I'm using nrf52840 Dongle and Visual Studio code "connected devices" won't detect Dongle board on my USB port.

nrfConnect for Desktop / Programmer detects it fine. It's just a bit painful to have to use that programming app.

I use 1.9.1 SDK. Windows 10
If I reset Dongle with push button it shows as "USB Serial Device (COM11)" but Visual Studio does not detect the board even if I refresh Connected devices.

I reloaded the whole IDE once already.

What am I missing? 

I found Marte's Github example where zigbee "lightbulb" that was ported to nrf52840 dongle and want to try it out with a few "dongle light bulbs".and a coordinator on a nrf52840DK

Thanks,

-JM

  • Hi JM,

    The VS Code extension can only find JLink devices or MCUboot devices that are in bootloader mode. The nRF52840 dongle does not have an onboard debugger, and the bootloader on it is the Open USB bootloader from nRF5 SDK. So the dongle is not supported in nRF Connect for VS Code currently, and you will have to use the Programmer app. I have asked the developers if there are plans to support bootloaders from nRF5 SDK in the extension, and I will update you when I get a response.

    Best regards,

    Marte

  • Ok. Yes debugger missing is clear. I thought since it has a "bootloader" it would be detected if I reset it. Yes I saw a info on nRF5 and USB so I figured it would also work on VS.

    Thanks!

  • Hi Marte,
    Can you tell me what the two LED functions and buttons function are on your github "zigbee light bulb" nrf52840 Dongle since they have been remapped from DK board to Dongle?
    It compiled with out any trouble.

    Is there an indication that lightbulb is connected to a PAN and how do you reset to start identification mode over?
    Having some trouble getting lightbulb-dongle design to connect to nrf52840 coordinator example.
    Thx,

    Jorgen

  • Hi Jorgen,

    The developers are working on trying to find a solution for supporting the dongle in VS Code, but I cannot guarantee anything.

    Regarding the sample I did not make any changes to the LEDs. The dongle only has two LEDs, so you will have to work around that, but one of the LEDs is an RGB LED. The way this RGB LED works is that each color is considered a DK_LED, so you can for example use the different colors to indicate different states. The regular green LED can be used for the light bulb LED that is to be turned on and off.

    So the changes you should do is to change BULB_LED to DK_LED1, so that it is the green LED. Then you can change ZIGBEE_NETWORK_STATE_LED to the color you want for indicating that the dongle has joined a Zigbee network. These are the following colors for the RGB LED:

    • Red: DK_LED2
    • Green: DK_LED3
    • Blue: DK_LED4

    Best regards,

    Marte

  • Hi Marte, 

    Ok that makes sense now why I don't see any LED changes. 
    Yes using the RGB color would be the way to do it. And using a Button for reset network join.

    Some feedback: When we work with mesh networks it's very helpful to have a very low cost platform like dongle, so we can test the mesh with multiple known configuration for the Node. Using commercially available Devices has some unknowns how they are configured and capabilities (even if they say Zigbee 3.0 as example) It would be very helpful to have more Zigbee Node examples for the Dongle. Lightbulb, Smart switch, Thermostat, A/D sensor (light, temp, voltage etc).
    Sounds like it would be a good intern project...:)

Related