Hey Kwabena,
I reproduced this error. I’ve tried both uart.read and uart.readall(), and playing around with the parameters a bit. The code is simple as can be:
import time
from pyb import UART
uart = pyb.UART(3, 115200, timeout_char = 2000)
while(True):
print(“in the True loop”)
if uart.any():
print(“data on the uart:”)
print(uart.read(1000))
time.sleep(1000)
I’m sure it’s something dumb, but having trouble figuring out what. Anyways the behaviour I see is it will print “in the True loop” every second until data starts being received on the uart.
It will then usually hang and disconnect. If I try to reconnect, it doesn’t detect an OpenMV cam. Is this something you can reproduce on your end? What obvious thing am I missing?