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

Problems with NRF2739 & MasterEmulator.dll

Hi There,

I am developing a desktop applications (C#) using NRF2739 dongle and NRF8001 on the other side. Things were going very well using the masterEmulator.dll provided until last week.

I found if the nrf2739 dongle was plugged before Master.EmulateUSB(UsbType.Nordic) is called, things are running well. However, if I started Master.EmulateUSB(UsbType.Nordic) before the dongle was plugged in and then I plug the dongle in, the programm cannot seem to proceed and I got exception prompts asking me to reset hardware.

I was guessing this happened because the dongle needs sometime to boot up. I gave it few seconds before proceed, still got the same problem. It turns out, it has to be plugged in before everything starts. Don't understand what happened behind.

What I need to achieve is to generate an event in my application when the nrf2739 is detected and another event when it's unplugged. Since the provided libs don't have such event handling, I will have to do it myself via looping the Master.EmulateUSB methods and check if the device is present.

Any help on this would be much appreciated!!

Thanks

Related