Is there any possible way to sedn the data from peripheral device(nrf52832 dev kit) to nrf52840 dongle which is connected to Bluetooth-less desktop

Hello,

In my project, i want to send the data from the ble device nrf52832 dev kit to the nrf52840 dongle which is connected to a Bluetooth-less desktop. Some desktop doesn't have inbuilt Bluetooth and for that, i used an nrf52840 dongle with the help of nrf connect desktop app i flashed the dongle(here i don't have any example or source file, firmware flashed directly by the app), and when I connect it to desktop & scan the peripheral devices with Bluetooth low energy option in nrf connect app. even I can connect the peripheral devices.

Now the issue is how can I send the data from the nrf52832 dev kit to nrf dongle because there is no source file I couldn't add code to receive the data. i tried ble_app_blinky and ble_app_blinky_c examples to send the button state data from peripheral to central so can i use the same for nrf52832 and dongle.??

if so, using the dongle can we connect it to PC and send the data to pc.??

please let me know how can i implement this.

Thank You. 

  • Hi Sgarnayakm, 

    Could you give us the requirement of your application ? Can you build your application based on the UART -> BLE ---- BLE -> UART communication ?

  • hello,

    actually, I have an nrf52810 custom device that reads the character's data via hw uart and writes to Notepad to connected devices like mobile/laptops. Some laptops don't have in-built Bluetooth we can use the nrf52840 dongle as a Bluetooth dongle to pc to connect my nrf52810 device. after that whatever the data coming from uart to nrf52810, it sends to the dongle over a ble and the dongle writes data to notepad via USB.

    this is the application, and as of now I can read the data from uart and writes to the connected devices like mobile/laptops. so now the desktops/laptops which don't have Bluetooth should use the dongle to receive the data over ble. 

    if with nrf5 sdk is not possible, i ok to use nrf connect sdk also. please let me know your suggestions.

    Can you build your application based on the UART -> BLE ---- BLE -> UART communication ?

    Regarding this once the dongle is connected to pc how it will act as a dongle if I use ble_app_uart_c because i couldn't scan any peripheral devices and it connected only if the name Nordic_UART. Ok after connecting like this the data received over uart is that need to use ble_nus_send() API to send the data from nrf52810 to dongle.?? 

    still i am confused.

  • Hi again, 

    You don't have to only connect to Nordic_UART. You can just modify the ble_app_uart_c to change it so that it connect to your device instead. And in the code you can modify the ble_app_uart_c to read your characteristic on the nRF51810 instead of reading the NUS service. 

  • Hello,

    Thanks for the reply,

    You don't have to only connect to Nordic_UART. You can just modify the ble_app_uart_c to change it so that it connect to your device instead.

    You mean, if we require we can change the peripheral device name and we can change it in central.

    so it will connect automatically.

    And in the code you can modify the ble_app_uart_c to read your characteristic on the nRF51810 instead of reading the NUS service. 

    Regarding this, i dumped the ble_app_uart_c code to the dongle and the ble_app_uart code to the nrf52832 dev kit and i tried to send the data from the dev kit to the dongle it's not receiving from the dongle.

    Please let me know why??

    Thank You.



  • sagarnayakm said:

    You mean, if we require we can change the peripheral device name and we can change it in central.

    so it will connect automatically.


    -> Yes this correct. You can modify the example to do that. 

    I don't think the firmware works out of the box on the dongle. You would need to modify it so that it work on the dongle, for example check the start address of the application, you may need to change to USB instead of UART etc. 
    For development it's strongly suggested to use the Dev Kit instead of the dongle. You only change to the dongle after you study the difference between the dongle and the devkit. The dongle is not made to be a development kit. 

Related