cancel
Showing results for 
Search instead for 
Did you mean: 

Communication problem between STM32L432KC to an Ebyte E32.

RKavod
Associate II

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

2 REPLIES 2
Piranha
Chief II

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:

https://github.com/MaJerle/stm32-usart-uart-dma-rx-tx

>>Did that or something similar happen to someone?

Yes, debugged it..

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..