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:
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
HI,
I have enabled notification,But i m not getting any values in BLE Scanner application
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
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?
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
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.
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