Re: Nordic Semi Bluetooth
Re: Nordic Semi Bluetooth
- Subject: Re: Nordic Semi Bluetooth
- From: Roland King <email@hidden>
- Date: Tue, 14 Apr 2015 09:43:59 +0800
Have you checked the return value from *all* softdevice API calls you’re making? Are you sure one of them isn’t returning an out-of-memory error?
The nordic softdevice (pre-version 8) reserves a certain amount of space for characteristics out of the fixed allocation of RAM it uses, the actual amount is in the documentation. Add more than that you run out of memory in the softdevice, get get an out of memory error from the API call which adds, or starts advertising or later, game over.
There exists an option to keep all registered characteristics in user memory and with the 8.0+ SDK you can ask the softdevice to reserve more memory - although it’s still limited. Once you get over a certain number of characteristics you’re better off using your own allocated memory for them.
> On 14 Apr 2015, at 09:36, Mahboud Zabetian <email@hidden> wrote:
>
> Hi. I am curious if anyone here has run into an issue where having too many characteristics (12) can cause a Nordic Semi Bluetooth chipset to stop acting as a peripheral. Our hardware team is reporting that they have issues with having all 12 characteristics and reducing to 2 seems to work. They recommend that we create a struct with 6 or so members and expose those two structs as 2 characteristics instead of exposing 12 characteristics.
>
> I’d rather not, since once you start adding structs, you’ll have to add versioning, while keeping them as separate characteristics can allow the freedom to modify the characteristics more freely, while supporting older characteristics…
>
> Is there an issue with having too many characteristics? How have you overcome them? If you are using a Nordic implementation and haven’t had this issue, I’d love to hear from you too.
>
> Thanks.
>
> Mahboud
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Bluetooth-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden