Search found 6 matches

by Wander
Thu Sep 12, 2019 12:41 am
Forum: ESP32 boards
Topic: UART answer in 2ms
Replies: 11
Views: 5755

Re: UART answer in 2ms

Yes!!! It works!! :D
Thank you!
by Wander
Wed Sep 11, 2019 7:15 pm
Forum: ESP32 boards
Topic: UART answer in 2ms
Replies: 11
Views: 5755

Re: UART answer in 2ms

Ok...
I can't test right now, but tonight I'll test all the possibilities.
Thank you for test read.any()
by Wander
Wed Sep 11, 2019 6:31 pm
Forum: ESP32 boards
Topic: UART answer in 2ms
Replies: 11
Views: 5755

Re: UART answer in 2ms

No, I'll try to use the different options for read and write to see if the timing changes.
by Wander
Wed Sep 11, 2019 6:03 pm
Forum: ESP32 boards
Topic: UART answer in 2ms
Replies: 11
Views: 5755

Re: UART answer in 2ms

[quote=Roberthh post_id=39326 time=1568188453 user_id=601] Since the delay depends on the baud rate, it looks like a timeout behavior in the receive. Looking at the documentation of the UART irq handler, that might not help much, because that is definitely waits for a timeout, however only of one ch...
by Wander
Wed Sep 11, 2019 5:54 pm
Forum: ESP32 boards
Topic: UART answer in 2ms
Replies: 11
Views: 5755

Re: UART answer in 2ms

Are you using UART.irq to detect the incoming data? No, I'm doing this way: uart1 = UART(1, baudrate = 9600, bits = 8, parity = 0, # 0 = even / 1 = odd stop = 1, tx = 4, rx = 5, txbuf = 1024, rxbuf = 1024) wr1 = uart1.write rd1 = uart1.read def send(msg): snd_msgs = ('RESET', b'\x82\x96\x06\x01\x32...
by Wander
Wed Sep 11, 2019 1:46 am
Forum: ESP32 boards
Topic: UART answer in 2ms
Replies: 11
Views: 5755

UART answer in 2ms

Hi, I'm trying to get UART to respond within 2ms after receiving something. But the fastest I could get was 8ms, responding immediately after any data received without processing. Apparently the answer is scheduled rather than sent immediately. Measuring the time between receiving something from UAR...