2022-08-22 06:41 AM
I have two STM32 devices and both are identical, send and receive messages in frame formats. They both have UART, DMA, NVIC etc.
And I need a good strategy to setup a lossless communication between them. There is too much information online, but very little about which is good method. Also this project is configured with RTOS.
What I found online:
--> Interrupts is bad strategy.
--> DMA is the good one, DMA with circular buffer is also a good one.
--> byte format is not reliable, so use frame type.(identifier, address, data, crc)
can someone help me here? I'm actually overwhelmed by these concepts.
Solved! Go to Solution.
2022-08-22 11:12 PM
Honestly seem to be over thinking this. A simple interrupt method should work to prove the method. Then implement DMA TX, if that improves efficiency.
Does the packet form provide for synchronization or integrity checking?
Have you reviewed protocols like SLIP and XMODEM? Or say packet methods used by sensors or GNSS receivers.
2022-08-22 06:49 AM
There is no info because your question is still too vage, you still need to make some arquitecture design decisions.
Some examples:
2022-08-22 07:06 AM
2022-08-22 11:12 PM
Honestly seem to be over thinking this. A simple interrupt method should work to prove the method. Then implement DMA TX, if that improves efficiency.
Does the packet form provide for synchronization or integrity checking?
Have you reviewed protocols like SLIP and XMODEM? Or say packet methods used by sensors or GNSS receivers.
2022-08-23 04:33 AM
True, but this implementation will be used for many things. I want to have some references where I can properly implement this module.
I don't know SLIP but I looked at XMODEM.