Hi all, I need some help here.
The error I got is "device reports readiness to read but return no data. (Device disconnected or multiple access on ports)
As I'm trying to get the following code working. Anyone know how to fix it?
This is the following code:
The error I got is "device reports readiness to read but return no data. (Device disconnected or multiple access on ports)
As I'm trying to get the following code working. Anyone know how to fix it?
This is the following code:
import serial ser = serial.Serial('/dev/ttyUSB0',9600,timeout=2) #may need to use .../dev/ttyACM0... ser.flushInput() while True: mystring = str(ser.readline()) mylist = mystring.split(",") if (len(mylist) >= 6) and (mylist[5]=="#"): print(mystring) # Should see something like this: 'Sender long address|*,"count",End Device 01,Router 02,Time: 03:04:05,#,#\r\n' print (mylist[2], " --> ", mylist[3]) # Should see something like this: End Device 01 --> Router 02