UART read failed



  • uart.jpg

    Hello, I wanted to make a serial communication through the sipy board and a terminal, when using the command uart1.write ("Hello World \ r") it sends the data to the terminal correctly but when I want it to receive some data with the command uart1.read (5) message NONE appears

    Why can't I receive some data and print to the console?

    To make communication between the sipy module and the terminal I am using a max232 converting the TTL signal to Rs232.



  • @pabloIsrael16 uart.read() is not blocking. If there is no data in the input buffer, it returns None. You can use uart.any() for telling, whther there is data for reading. Or you can set a timeout. Then uart.read() will wait at least for that time.


Log in to reply
 

Pycom on Twitter