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

ADC+UART+BLE not working

Dear all, I have been trying to get the ADC BLE example working, given at github.com/.../nrf51-ADC-examples I noticed it gave me error with SDK 6.0.0 saying ble_enable_params_t was not declared. Soft device tried was 6.0. So, I had to update to 6.1.0 and softdevice 7.0 . the example then worked giving me (null) on the receiving end, in the place of adc data. I have been trying to get this working for quite some time. Can someone please advise me on this? Thanks!

Parents
  • For android you can for example use the nRFToolbox app found on google play. I am using version 1.12.1. When loading the app, choose the UART icon to enter the uart part of the app. If you see led 0 lid on the nRF6310 board, the device is advertising. Press connect on the UART app and then it should connect to the device and LED 1 should light up. Then select the settings menu (the three vertical dots) in the upper right corner and press "Show log". Then you should see hexadecimal value received once per second. put your finger on pin P0.5 on the nRF6310 board and you should see the value change.

    If you are in doubt that the device is sending any values over the air, you should start debugging in Keil and set a breakpoint in the ADC_IRQHandler. The command ble_nus_send_string is actually sending the message to the softdevice, which in turn sends it over the air to your Android phone.

Reply
  • For android you can for example use the nRFToolbox app found on google play. I am using version 1.12.1. When loading the app, choose the UART icon to enter the uart part of the app. If you see led 0 lid on the nRF6310 board, the device is advertising. Press connect on the UART app and then it should connect to the device and LED 1 should light up. Then select the settings menu (the three vertical dots) in the upper right corner and press "Show log". Then you should see hexadecimal value received once per second. put your finger on pin P0.5 on the nRF6310 board and you should see the value change.

    If you are in doubt that the device is sending any values over the air, you should start debugging in Keil and set a breakpoint in the ADC_IRQHandler. The command ble_nus_send_string is actually sending the message to the softdevice, which in turn sends it over the air to your Android phone.

Children
No Data
Related