Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FEATURE REQUEST UART[n].flush
#1
I have currently developed an board  with an ESP32 module and a TI MSPFR5994 processor , with which I communicate in C through their respective UARTs.
I'm interested in python on esp32, but uart.flush does not exist on the current python port.

This function would make it possible to guarantee that the transmission frame has been completely sent to the other processor. 
From there, we can generate on an ESP32 pin an EOF signal that can trigger an event (interruption)to warn the other processor. so that he can come and read the received message.
In order to avoid polling loop .
The function could be added?


Attached Files Thumbnail(s)
   
Reply
#2
It should be easy to implement, thanks for the suggestion.

As a workaround you can use uart.init() with no arguments.
Uart.init() flushes the transmit fifo, then changes any uart parameter given. With no arguments it will only flush the fifo.
Reply
#3
(01-19-2019, 10:26 AM)lobo Wrote: It should be easy to implement, thanks for the suggestion.

As a workaround you can use uart.init() with no arguments.
Uart.init() flushes the transmit fifo, then changes any uart parameter given. With no arguments it will only flush the fifo.

Thank you very much for your quick and efficient response!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)