4 posts / 0 new
Last post
MADHUSF
Offline
Last seen: 4 days 14 hours ago
Joined: 2018-01-15 09:22
ADC example

Hi,

Im trying to read ADC value in ble_app_peripheral, using handler app_adcval1_timer_cb_handler()..

we are trying to send value but didnt getting in BLE scanner app

Please share me example project of ADC peripheral.that we can read through the BLE scanner app

Device: 
PM_Dialog
Offline
Last seen: 4 days 12 hours ago
Staff
Joined: 2018-02-08 11:03
Hi MADHUSF,

Hi MADHUSF,

Did you enable the notifications form the BLE scanner application? In ble_app_peripheral example of the SDK, when the ADC VAL 1 auto notifications are turned on and the notify operation is required by the peer, a 16-bit counter is incremented. This counter value emulates the Analog value of the ADC VAL 1 (there is no hardware support for reading an Analog value).

Thanks, PM_Dialog

MADHUSF
Offline
Last seen: 4 days 14 hours ago
Joined: 2018-01-15 09:22
HI,

HI,

I have enabled notification,But i m not getting any values in BLE Scanner application

PM_Dialog
Offline
Last seen: 4 days 12 hours ago
Staff
Joined: 2018-02-08 11:03
Hi MADHUSF,

Hi MADHUSF,

Which version of SDK are you using? In addition, did you modify the ble_app_peripheral source code? As soon as you have enabled the notification in the peer device, you should get the ADC values. Could you please run the example in debug mode and check if the app_adcval1_timer_cb_handler is being executed? Add a break point I this function and check it hits.

Thanks, PM_Dialog