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

Pairing nrf52840 dk and nrf52840 dongle.

Hello,

It is my first time using Nordic product as well as programming Bluetooth and I am working on a project in which I have to pair the nrf52840 dk and nrf52840 dongle without using the nrf connect app.

I already saw a Q/A on that subject, and it says to use the UART example or the USBD BLE UART but we have to change them for the nrf52840 dongle can communicate with the nrf5840 dk.

I try to find out what should be modify but i was not able to find it for I did not understand everything.

Would it be possible to have a clue on what should be modify ?

Best regards,

Luca

Parents
  • Okay, thank you for clarifying! Most of our example projects have a peripheral project and a corresponding central project. These centrals are usually set up to scan for devices running the peripheral project with the same name, and connect/pair to it either automatically when found or by pressing a button on the DK. You want the DK to act as the central running the ble_app_uart_c example and the Dongle to act as a peripheral by modifying the usbd_ble_uart example, correct?

    If you check out the scan_init() function in the ble_app_uart_c example project, you can see that it sets scan filters that makes it only scan and detect devices with a specific UUID, so you'll have to either change the scan init to be able to scan for the usbd_ble_uart example, or change the peripheral device to advertise with the Nordic UART Service UUID which it scans for.

    In order to pair the devices once connected, you will also have to implement the peer manager to set up and trig a pairing process between the two, as the ble_app_uart_c example does not support pairing by default. You can use the ble_app_hrs_c example for reference on this.

    Best regards,

    Simon

Reply
  • Okay, thank you for clarifying! Most of our example projects have a peripheral project and a corresponding central project. These centrals are usually set up to scan for devices running the peripheral project with the same name, and connect/pair to it either automatically when found or by pressing a button on the DK. You want the DK to act as the central running the ble_app_uart_c example and the Dongle to act as a peripheral by modifying the usbd_ble_uart example, correct?

    If you check out the scan_init() function in the ble_app_uart_c example project, you can see that it sets scan filters that makes it only scan and detect devices with a specific UUID, so you'll have to either change the scan init to be able to scan for the usbd_ble_uart example, or change the peripheral device to advertise with the Nordic UART Service UUID which it scans for.

    In order to pair the devices once connected, you will also have to implement the peer manager to set up and trig a pairing process between the two, as the ble_app_uart_c example does not support pairing by default. You can use the ble_app_hrs_c example for reference on this.

    Best regards,

    Simon

Children
Related