⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
8 posts / 0 new
Last post
MADHUSF
Offline
Last seen:1 month 1 week 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:3 days 17 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:1 month 1 week 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:3 days 17 hours ago
Staff
Joined:2018-02-08 11:03
Hi MADHUSF,

Hi MADHUSF,

你用的哪个版本的SDK ?此外,维id 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

vuk1020
Offline
Last seen:1 month 1 week ago
Joined:2020-02-26 01:52
Hi, I'm having the same issue

Hi, I'm having the same issue. I am not able to read ADC Val 1 after setting Control Point value to 1 using the iOS LightBlue app. I have verified that the timer increments when Control Point value is set to 1 using a breakpoint. I'm on SDK version 6.0.14.

Any thoughts on what could be the issue?

PM_Dialog
Offline
Last seen:3 days 17 hours ago
Staff
Joined:2018-02-08 11:03
Hi vuk1020,

Hi vuk1020,

Thanks for your comment. I assume that you are using the ble_app_peripheral example from the SDK. I would suggest to check if the notifications have been enabled in the mobile app.

Since it is an also forum thread and closed, could you please raise as new forum ticket? What is the BLE device that you are using?

Thanks, PM_Dialog

vuk1020
Offline
Last seen:1 month 1 week ago
Joined:2020-02-26 01:52
Sorry for adding further to

Sorry for adding further to the closed thread but the issue was resolved once I turned on notifications in the iOS app for the ADC Val 1 characteristic. I am using the ble_app_peripheral example with DA14585 basic kit.

PM_Dialog
Offline
Last seen:3 days 17 hours ago
Staff
Joined:2018-02-08 11:03
Hi vuk1020,

Hi vuk1020,

Thanks for figure it out. If you have any follow-up question, please fee free to raise a new forum thread.

Thanks, PM_Dialog