Can't add more than six services

⚠️
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.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
7 posts / 0 new
Last post
shimochan
Offline
Last seen:2 years 11 months ago
Joined:2014-08-22 12:04
Can't add more than six services

Hi,
I have a problem with adding more than six services.
The program build is ok, but when running it, a GAPM_DEVICE_IS_IND dose not come from BLE Stack.
So I can not start adding services.
When adding service is less than or equal to six, I can add all of services normally.
Is there any restrictions for adding more than six services?
Best regards.

Device:
STS_Dialog (not verified)
Hi shimochan,

Hi shimochan,

The GAPM_DEVICE_IS_IND message isn’t implemented in the code ,maybe you mean GAPM_DEVICE_READY_IND? In case you mean this, it occurs before the databases of your services are initialized. The mass of services that you can add is defined by the size of the heap.

BR,

STS_Dialog

shimochan
Offline
Last seen:2 years 11 months ago
Joined:2014-08-22 12:04
Hi STS_Dialog,

Hi STS_Dialog,

Thank you for your quick reply.
As you say, GAPM_DEVICE_IS_IND is mistake of GAP_DEVICE_READY_IND.
不管怎样,你能教我这堆size, I have to change specifically?
I have not changed SKD V5.0.4 about heap size.
What I want to do is to add seven services which are composed of six standard service one custom one.

Best regards.

STS_Dialog (not verified)
Hi,
shimochan
Offline
Last seen:2 years 11 months ago
Joined:2014-08-22 12:04
Hi STS_Dialog,

Hi STS_Dialog,

Thank you for your reply.
I read above two links, but I still can't resolve the problem.

My six services are:
diss, bass, wass, bcss, udss, and cust1.
These six services are added as a trigger of GAPM_DEVICE_READY_IND event from BLE stack.

My seven serives are:
diss, bass, wass, bcss, udss, cust1 and ctss.

In this case, GAPM_DEVICE_READY_IND event dosen't from BLE stack.

As I attache two memory map(one is for six services, and the other is for seven services),
would you check them if there are something wrong with memory heaps?

Best regards.

shimochan
Offline
Last seen:2 years 11 months ago
Joined:2014-08-22 12:04
Sorry I couldn't attach files

Sorry I couldn't attach files correctly.
So, I try again.

STS_Dialog (not verified)
Hi,

Hi,

The indication of the GAPM_DEVICE_READY_IND message happens after a stack reset, before the implementation of your services' databases. If you think it's something wrong with the heap please try to remove one by one your services and check it, but in case of a problem in the heap there will be happened a platform reset.

BR,

STS_Dialog.