Apr-27-2021, 10:10 AM
Hi i am trying to retrieve data from an oscilloscope, it works well with windows using the provided software but i need to use it with ubuntu using the raw data directly. For the moment i came up with:
Best regards.
import serial from serial import Serial ser = serial.Serial('/dev/ttyACM0',115200, timeout=0) print ser.name packet = bytearray() packet.append(<byte1>) packet.append(<byte2>) packet.append(<byte3>) packet.append(<byte4>) ser.write(packet) print packet while ser.in_waiting: data=ser.read() print data print '\n' ser.close()but the while loop is not performed, and also how to set parameters like ReadIntervalTimeout, ReadTotalTimeoutMultiplier specific to win32 serial or is there a more suitable library than pyserial. I am sure about the <bytei> values, i figured them using a serial port sniffer.
Best regards.