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

PC SW connection to device throw BLE USB dongle

Hi,

I am developing a PC SW that connects to nRF52840 device throw a BLE USB dongle(another nRF52840)

How I can tell from PC that a device is connected\disconnected to the dongle ?

Lets say in connection I can let the device send to PC a connection message, this way the PC can recognize a new device connected to the dongle.

But in disconnection situation this is a problem, since my dongle shall connect to more than one device.

How I can solve his ?

Another question:

what is the more accepted way to let the user chose from PC to what device to send the command to, sins more than one device connected to the dongle, what is the protocol !?

I will be glad if there is an example of it

BR

JK

Parents
  • Hi

    Please check out this thread, which explains the usbd_ble_uart application a bit better. Our SDK doesn't support HCI, which is what most BLE Dongles use to communicate with computers, which is likely why you're having trouble communicating with your PC.

    As for choosing what device you want to communicate with, I suggest you differentiate them by either UUID or device name and send commands to just one device name that way. So you will have to input what device you want to send a command to when executing the said command.

    Best regards,

    Simon

  • Hi,

    Thank you for you reply.

    another question under the same subject please:

    my project shall allow two devices to connect to one dongle.

    what is more recommended ? the dongle should be as a central or as a peripheral ?

    I believe that there is  advantages and disadvantages to both cases.

    BR

    JK

Reply Children
No Data
Related