I'm new to pi and Python.
I have pi3 and a meter(Tes-1370),
I want to read the data from meter
and meter read data by RS232
but pi don't have RS232
so , I buy a RS232-USB adapter , USB connect to pi3
and I use Python3 and PySerial to read that
but get some problem this is my code
import serial port =serial.Serial( "/dev/ttyUSB0", baudrate=9600, parity=serial.PARITY_NONE, stopbits=serial.STOPBITS_ONE, bytesize=serial.EIGHTBITS, writeTimeout = 0, timeout = 10) print(port.isOpen()) print("Port opened...") while True: print("inside while") response=port.read(8) print(response) print ("Data Received")
but it print
I don't know what it is
can anyone help me??