2025-08-19 2:07 AM
Hello,
I am developing a Sleepy End-Device based on STM32WB5MMG which should read and transmit sensor data periodically. The board is mounted to a PCB with the recommended layout for optimal antenna gain. The sensor readings are transmitted with a custom cluster consisting of two string attributes. Furthermore a time cluster is present. The device makes a time read request to the coordinator and receives its reporting configuration (10s) for the string attributes directly after establishing connection. Connection and reporting work very well. APS security and fragmentation flags are set.
Actual behavior: the devices loose connection at an arbitrary point in time (sometimes a few minutes after connection, sometimes after several hours), despite being close (1-2m) and having direct line of sight to the coordinator.
Expected behavior: the devices shall infinitely long keep up the connection and report their sensor readings.
What i have tried:
config.capability &= ~(MCP_ASSOC_CAP_RXONIDLE | MCP_ASSOC_CAP_DEV_TYPE);
config.endDeviceTimeout=0xFF;
I appreciate any suggestions on why this happens.
Best regards