Hi,
I am working with the IoT firmware SDK 5.160.1.19.
I want to add an additional characteristic/service to read the battery voltage from the ADC.
I have followed Training_02_custom_profile_example_v1.0.pdf and was mostly able to find the corresponding definitions in the IoT project. However I'm struggling with the instructions on page 29 ("Add custom1 server function callback table.").
I have looked into "Training_03_custom_profile_gatt_cmd_example_v1 0.pdf" for further instructions, but I am not sure where to put the function as defined on page 26, moreover I am unable to find a handler in the code similar to what is described on page 27.
I figure that what I want is basically the custs1_adc_val_2_char from the ble_app_peripheral project, but again the structure seems too different in the IoT firmware.
你能提供帮助吗?
BR Johannes
Hi gme_johannes,
Let me check how you can add an additional characteristic/service to read the battery voltage from the ADC and I will get back to you as soon as possible.
谢谢,PM_Dialog
Hi PM_Dialog,
any news? I have to finish the implementation during the next week.
BR Johannes
Hi gme_johannes,
Apologies for the delay. You could use the Battery Service which is already implemented and included in the SDK. The prox_reporter example of the SDK includes the Battery Service. Please check this example
谢谢,PM_Dialog
Hi PM_Dialog,
1. OK
2. OK
(I have also added battery.c, battery.h, app_bass.c, app_bass.h after investigating the prox_reporter project)
3. In user_modules_config.h from the IoT project I already have
虽然这个项目中没有提到上述文件。
4.在da1458x_sdk \ 5.0.4 \ projects \ target_apps \ ble_examples \ prox_reporter \ src \ config \ user_callback_config.h我只有
Questions:
1. What is user_app_bass_cb? I can not find it in the prox_reporter project nor the files mentioned in 1. and 2.
2.这一切如何匹配我在教程中关注的程序?
3.在IOT SDK(v5.160.1.19)中,似乎只有“对话佩戴服务”。无论dws_task.c发生什么都在我身边。电池服务究竟如何添加?我在user_dws_config.h中添加它吗?
4. I will soon switch to SDK6 with DA14585. I wonder if it's worth trying to add the service now, when it is so tedious and on top of that the procedure might be different in SDK 6. Has it changed?
谢谢,
Johannes
Hi gme_johannes,
Could you please follow the procedure below in order to include the BASS profile?
I’ve just checked the IoT code and it has slightly different code architecture from the procedure described in the user manual. For new designs we strongly recommend the usage of MultiSensor kit which is based on the top of SDK6. The procedure might be slightly different, but I could check it if you are considering to move into SDK6 and DA14585 product. With the procedure I described, I am able to add the Battery service.
谢谢,PM_Dialog
Hi PM_Dialog,
It seems to work, however I ran into the 32kB limit of Keil.
We are working on a new prototype based on the DA14585 and will switch to SDK6 soon.
Thank you for your efforts,
Johannes
Hi gme_johannes,
Thanks for accepting my answer. For new designs we strongly recommend the usage of 585 Multi-sensor kit. Glad that you will move into DA14585 and SDK6. If you have any questions or issues regarding the SDK6, please create a new forum thread.
谢谢,PM_Dialog