Hey,
I have created 2 services with 30 characteristics. When I want to add a third service I'm just able to create 24 charakteristics. When I create more the third service is displayed as empty. I already checked if there might be some syntax error. When I try to create two different charakteristics (for the 24th and 23rd characteristic) the problem is reproduced. I don't get any errors from the compiler. The Board isn't stuck in some function it seems to work fine. What can I do increase the number of characteristics?
Changed settings:#define DB_HEAP_SZ 14336
I'm using:
DA14585
SDK 6.0.10.511
ble_app_profile
当做,
Keywords:
Device:
Hi moritz.schnaufer,
您可以在服务中拥有的特征数量和服务数量t都受到为数据库分配的堆数量的限制。因此,正如您在文章中提到的,您应该根据您的实现来增加DB\u HEAP\u SZ的大小。你有没有试着在调试模式下运行你的代码,当你添加第24和第23个特征时,代码没有崩溃?你能确保你的设备还在广告中吗?您可以使用SmartSnippets工具箱的powerprofiler来确保设备进行广告。
谢谢, PM_Dialog
Hey,
thank you for the response. I increased the size of DB_HEAP_SZ but it's still not working. When the size of the DB_HEAP_SZ is too small the programm is usualy stuck in
ASSERT_WARNING(error == RESET_AFTER_SUOTA_UPDATE);
But in my case this doesn't happen. Furthermore I think the DB_HEAP_SZ is truly large.I'm not sure if I understand what you mean withmake sure that your device still advertises. I mean, I can see and connect to it. Therefore the advertiting went well. At least that's what I think. Can you explain me what you meant there?
Unfortunalely the SmartSnippet tootlbox is not working at the moment. For that reason I can't try the power profiler yet.
I debugged the code and it didn't crashed.
问候
Hi moritz.schnaufer,
What Central application are you using to scan & connect to the peripheral device. The issue can be on the Central as well. Try using a different Central application and if you have to access to a sniffer, that is the best option to debug through this issue.
The services & characteristics are only limited by the heap memory available to the application.
Best,
LC_Dialog
Hey,
as a Central device I used Smartphones. On the Smartphones I used the BLE Scanner and nRF Connect. The behaviour didn't changed using a different Smartphone. I tried some other applications too, as well as a Bluetooth dongle. The result allways stayed the same. I don't think that it's a problem from the Central application. I know that the Apps and the Smartphones are capable of showing more services with Charakteristics.
And just for fun I increased the heap to 32768 but I still got the same result. By increasing the number of characteristics and services I just have to adjust the DB_HEAP_SZ, nothing else?
当做,
Hi moritz.schnaufer,
Yes, the heap size is the only limitation with respect to the number of services and characteristics. We will further explore into this issue and get back to you with a possible solution.
Best,
LC_Dialog
Hello Dialog,
I am experimenting with BLE_APP_PERIPHERAL and have included a service SVC4 (total 4 services) and one charactertistic (CHAR1);
On compiling the application and debugging,
1. Characteristic declaration "DECL" can be included
2在添加特征“值”时-尽管程序在调试模式下运行,但设备不会播发(基于power profiler)。
May I know the steps to make changes in SDK6.0.10 for BLE_APP_PERIPHERAL or any other to increase characteristics to atleast 10 in my SVC4 .
谢谢, looking forward for your reply ASAP.
Hi rajucoolsuraj,
请尽量不要在论坛上重复你的问题。我在下面的论坛帖子中推动了对您问题的讨论:
https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/add-more-services-characteristics
谢谢, PM_DIalog