Hi Everyone
what are the common patterns for implementing UART on zephyr rtos-based system using the mesh stack?
I use uart async APIs, here my implementation...
step 1 - Use an interrupt handler to push received bytes to a message queue
step 2 - then processed by a separate task responsible for message framing, CRC validation,
step 3 - Once a message is validated, it is pushed to a separate message queue for processing to another int order to publish it over the ble mesh.
About step 3, I wonder if I should use the system workq to push the message or use a distinct thread as a publisher.
I would like to confirm that this implementation follows the best practices for UART data framing and message validation in a zephyr-based BLE MESH. Additionally, I would appreciate any feedback or suggestions on how we can further improve this implementation.
Thanks
Cedric