Creating more Characteristics

⚠️
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
moritz.schnaufer
Offline
Last seen:2 years 2 months ago
加入:2018-12-04 07:06
Creating more Characteristics

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

问候,

Device:
PM_Dialog
Offline
Last seen:2 days 18 hours ago
工作人员
加入:2018-02-08 11:03
Hi moritz.schnaufer,

Hi moritz.schnaufer,

你可以在的数量特征a service and the amount of services t is limited by the amount of the heap allocated for the database. So, as you mentioned in your post, you should increase the size of DB_HEAP_SZ according to your implementation. Did you try to run your code in debug mode and the code didn’t crash anywhere when as soon as you added the 24th and 23rd characteristic? Could you please make sure that your device still advertises? You could use the power profiler of the SmartSnippets toolbox in order to make sure that the device advertises.

Thanks, PM_Dialog

moritz.schnaufer
Offline
Last seen:2 years 2 months ago
加入:2018-12-04 07:06
Hey,

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 inASSERT_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.

问候

LC_Dialog
Offline
Last seen:3 weeks 2 days ago
工作人员
加入:2016-09-19 23:20
Hi moritz.schnaufer,

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

moritz.schnaufer
Offline
Last seen:2 years 2 months ago
加入:2018-12-04 07:06
Hey,

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?

问候,

LC_Dialog
Offline
Last seen:3 weeks 2 days ago
工作人员
加入:2016-09-19 23:20
Hi moritz.schnaufer,

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

rajucoolsuraj
Offline
Last seen:7 months 5 days ago
加入:2018-12-12 16:09
Hello 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. On adding the characteristic "Value" - the device does not advertise (based on power profiler) though the program runs in Debug mode.

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 .

Thanks, looking forward for your reply ASAP.

PM_Dialog
Offline
Last seen:2 days 18 hours ago
工作人员
加入:2018-02-08 11:03
Hi rajucoolsuraj,

Hi rajucoolsuraj,

Please try to not duplicate your questions on the forum. I have driven the discussion for your issue in the below forum thread:

https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/add-more-services-characteristics

Thanks, PM_DIalog