Hello.
I'm compiled and ran the DIALOG_BRBN, DIALOG_PRFL and DIALOG_PRPH projects, from SDK5 folder : \projects\target_apps\ble_examples\ble_app_<___>
I'm able to read from the generic services (Generic Access, Generic Attribute, Device information) but unable to read from the custom profile characteristics.
I'm NOT using one of dialog's dev-boards, but a Murata one.
Can you refer me to the callback that is supposed to handle the GPIO read and ADC read?
I'd like to debug the cause of the read failure.
I've traced down the read operation call-stack :
...
app_entry_point_handler()
app_custs1_process_handler()
app_std_process_event()
handler_search()
...
The problem is handler_search() returning NULL, in response to handler_num == 2.
The result is that in the User Defined service, read operations result in nothing (no handler was configured for it).
Hi kobyfr_mag
There is no callback for the reading operation. The reading operation is handled by the stack from the ROM code and you dont get any indication in upper layers. You should be able to read the values from the example project of the SDK5 since you haven't applied any changes. Can you try to read the values of the characteristic by using another application and also doublecheck that the characteristics you are trying to read have the read permission enabled? Do you get some kind of error from the other side ?
Thanks MT_dialog
I've tried different iOS and Android applications : BLE Scanner, nRF studio, BLE Browser and others.
All fail to read "value". Other fields, such as characteristicdescription, can be read. ("Button state", "ADC1", etc.)
Hi MT_dialog,
why I can not find app_device_config.c and app_device_config_task.c in SDK5 ?
我试图从SDK3 SDK5,复制这两个文件I include the header file in user_profiles_config.h ,
press compile, a lot of errors.
can you give me some advices?
Thanks,
Anthony
Hi antony42,
The app_ of the device_config profile isn't implemented at the moment, i guess that you will have to include the profile from the .\..\..\..\..\..\sdk\ble_stack\profiles\ directory and handle it as a custom profile. You can see the profile and the peripheral projects which include implementation of custom profiles.
Thanks MT_dialog