Hello, I am working on the modified versions of hrs and hrs_c examples, on two NRF52832 with s132. I modified the apps so that when they connect the peripheral reads from a sensor (enabled data read using GPIO) and streams data in packets of 35 bytes to the central. The 35 bytes are to be sent every 20ms. With the setting I have the data is being packed and notified in the peripheral, and decoded and printed in the central quite well. Except I have two problems:
1. The last two bytes of my packet are being processed correctly in the peripheral, but the central always prints zero.
2. The second problem, and more troubling, is that periodically the data stops transmitting entirely and I am missing packets. When it happens, about 300ms of data are not sent at all.
I have attached a zip of my main and hrs files for both the peripheral and the central because I thought it better to show the entire process my boards are doing.
It may be useful to know that the data I'm acquiring is 7 bytes per sample at 250Hz.
Any help in making the code more efficient and solving the problems I mentioned is greatly appreciated. Thank you in advance for your time.