Custom profile service getting truncated

2 posts / 0 new
Last post
JBaczuk
Offline
Last seen:1 year 5 months ago
Joined:2014-12-31 23:41
Custom profile service getting truncated

I recently increased the size of 3 characteristics from 2 bytes to 40 bytes (an array of values) each. Since, the last service of the profile is not showing up when I connect. Is there a way to debug this? (like using the status variable when attributes are added to the database). Is there some maximum size for this database? I have verified that the calculated total size parameters for the service are correct.

Device:
MT_dialog
Offline
Last seen:16 hours 17 min ago
Staff
Joined:2015-06-08 11:34
Hi JBaczuk,

Hi JBaczuk,

我不认为你当前的数据库大小是big enough to cause any trouble, the problem should be in the declaration of your custom profile, something must have gone wrong. Yes you can debug the database creation by looking at the status variable that the attmdb_functions (attmdb_add_attribute() etc) return. The size of the database is limited by the size of the DB_HEAP_SIZE. Please check the following post for more informations. You can try to modify the Tutorial files that support the AN-B-029 and change the default values to what you want.

http://support.dialog-semiconductor.com/increasing-dbheapsz

Thanks MT_dialog