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

BLE UART bidirectional connection nRF51822DK help

Greetings, My name is Maria, I’m working in an application with the nRF51822DK to communicate via Bluetooth to the USB dongle (PCA10000) and send data between them. In the module I have to do an ADC and send the result to the dongle to display it in the computer screen via UART, then I have to write a value in the computer and sent it back to the module. I’m actually getting start with this system and I have basic skills in programing, what steps do you suggest I should take? Please help! Thank you

Parents
  • Hi Maria

    Perhaps the best way to start is to look at some code examples. On Nordic's Github, you can find some ADC examples, with and without softdevice (Nordic's BLE protocol stack). The adc-example-with-softdevice-and-UART example uses ADC sampling and transfers the value to the hardware UART as well as transfers the value over BLE, which you can receive with Master Control Panel, via the PCA10001 dongle. You can also write data from the Master Control Panel to the device which will then be forwarded on the hardware UART. More information on how the examples work, should be given at the top of the main file in each example.

    I do not however fully understand your scenario. Do you intend to send the data to the PC via UART or BLE?

Reply
  • Hi Maria

    Perhaps the best way to start is to look at some code examples. On Nordic's Github, you can find some ADC examples, with and without softdevice (Nordic's BLE protocol stack). The adc-example-with-softdevice-and-UART example uses ADC sampling and transfers the value to the hardware UART as well as transfers the value over BLE, which you can receive with Master Control Panel, via the PCA10001 dongle. You can also write data from the Master Control Panel to the device which will then be forwarded on the hardware UART. More information on how the examples work, should be given at the top of the main file in each example.

    I do not however fully understand your scenario. Do you intend to send the data to the PC via UART or BLE?

Children
Related