Skip to main content
RKavod
Associate II
October 3, 2022
Question

Communication problem between STM32L432KC to an Ebyte E32.

  • October 3, 2022
  • 2 replies
  • 891 views

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

This topic has been closed for replies.

2 replies

Piranha
Principal III
October 5, 2022

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

Tesla DeLorean
Guru
October 5, 2022

>>Did that or something similar happen to someone?

Yes, debugged it..

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