2022-10-03 02:18 AM
Hello,
I have a project that sends a signal between master (stm32 and Ebyte+antenna) and a slave (another stm32 and Ebyte+antenna) using UART (baudrate 9600) (The communication between the Ebyte and the antenna is fine).
My code is fine, it is not complicated and if I use it directly (wired, not wireless) it works perfect, but in wireless communication it misses a lot of data (most of the data) so if I send burst of data its communicating in random delays. Means the data is correct, but most of it go to waste.
NOTE: I use a good antenna, my last project worked great with the same antenna and Ebyte so I don't think the problem is the antenna. I think that the problem is between the Ebyte and the stm32 somehow.
Did that or somthing similar happend to someone?
Thanks,
Raam
2022-10-05 10:05 AM
UART is a stream based interface, not a message based. That means it guarantees the order of bytes, but does not guarantee any time intervals or lack of pauses between the bytes. Therefore your code is not fine and you must implement it properly:
2022-10-05 10:20 AM
>>Did that or something similar happen to someone?
Yes, debugged it..