Search found 3 matches

by Logician
Wed May 13, 2020 9:30 pm
Forum: General Discussion and Questions
Topic: UART lost bytes / buffer overflow issue
Replies: 4
Views: 728

Re: UART lost bytes / buffer overflow issue

Thanks for this post!

I spend hours (and hours) trying to figure out why I was only ever getting 15 bytes in my rx buffer. Turns out that's the default limit when not specified in the UART instantiation.
by Logician
Wed May 13, 2020 9:02 pm
Forum: ESP8266 boards
Topic: UART rx buffer losing bytes
Replies: 0
Views: 295

UART rx buffer losing bytes

I'm running MP 1.12 stable on a NodeMCU v3 (ESP8266). I've established communication with a peripheral, but no matter what I do, I only ever get 15 bytes in my rx buffer. I've disabled repl on USB, I've swapped UART0 to pins 15/13, and I've verified with a scope that more bytes are being sent (in th...
by Logician
Mon May 11, 2020 10:59 am
Forum: ESP8266 boards
Topic: How can i use machine.UART?
Replies: 4
Views: 658

Re: How can i use machine.UART?

If you have the UART assigned to REPL/console, you can use sys.stdout.write() to send and sys.stdin.read(), sys.stdin.readline(), ... to read data from the port, without using machine.UART. If you want to use machine.UART, you have to detach the UARt from the console first, with; import uos uos.dup...