This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Efficient way of using characteristics

Hello,

I am working on optimizing my BLE transfer algorithm. Therefore I am searching for an efficient way of using the characteristics. Example: At the moment I have 2 characteristics called “longitude” and “latitude” in a service. Size of both is 2 byte (int16_t). Is it more efficient to merge them together into one characteristic called “coordinates” with a length of 4 byte? What about the difference in stack usage of the softdevice (S120) in this two cases?

Thanks in advance

BR BTprogrammer

Parents
  • Hi,

    It's better to group the 2 characteristic into one, you will save a lot of overhead. Also there is another limitation on the number of packet per connection interval. Some central only allow 1 packet per connection interval, by grouping the 2 characteristics you can send more data. The maximum payload size of a packet is 20 bytes.

Reply
  • Hi,

    It's better to group the 2 characteristic into one, you will save a lot of overhead. Also there is another limitation on the number of packet per connection interval. Some central only allow 1 packet per connection interval, by grouping the 2 characteristics you can send more data. The maximum payload size of a packet is 20 bytes.

Children
Related