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

nRF8001 meaning of ACI_DYNAMIC_DATA_SIZE

We are using an nRF8001 with bonding. We are trying to figure out how big the dynamic data is that we need to store (since we are used a fixed-size storage in flash memory).

The file services.h generated by nRFgo Studio defines the constant ACI_DYNAMIC_DATA_SIZE.

The dynamic data is organized into packets consisting of a sequence number, a length byte, and up to 26 bytes of payload.

If I'm understandig the documentation correctly, the size of a packet is considered to be (length byte + payload) = 27.

So how many packets do we need to expect at maximum? Is it (ACI_DYNAMIC_DATA_SIZE / 27), rounded up?

PS: it would be helpful if nRFgo Studio would generate a constant such as ACI_DYNAMIC_DATA_MAX_PACKET_NUMBER.

Parents
  • The ACI_DYNAMIC_DATA_SIZE is the maximum size the dynamic data could have. This is clearer if you look a the ublue_setup.gen.out.txt file. But I would divide this by 26 and then round up (so you don't divide over the length byte).

Reply
  • The ACI_DYNAMIC_DATA_SIZE is the maximum size the dynamic data could have. This is clearer if you look a the ublue_setup.gen.out.txt file. But I would divide this by 26 and then round up (so you don't divide over the length byte).

Children
No Data
Related