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?

  • Hi Maria

    You upload the example to the nRF51822 Development kit and then it will sample the ADC and send the ADC data over BLE and on the configured UART pins. You can then use e.g. the Master Control Panel to receive the data received over BLE, it receives the data via the PCA10000 dongle (which has master emulator firmware to receive BLE data). Then to connect the UART to the PC, you need to connect the nRF6310 motherboard RS232 port to a UART port on the PC, and connect the nRF6310 motherbord like done here.

    Let me know if my message is adequate or not

Reply
  • Hi Maria

    You upload the example to the nRF51822 Development kit and then it will sample the ADC and send the ADC data over BLE and on the configured UART pins. You can then use e.g. the Master Control Panel to receive the data received over BLE, it receives the data via the PCA10000 dongle (which has master emulator firmware to receive BLE data). Then to connect the UART to the PC, you need to connect the nRF6310 motherboard RS232 port to a UART port on the PC, and connect the nRF6310 motherbord like done here.

    Let me know if my message is adequate or not

Children
No Data
Related