python - Linux Virtual Serial Port for creating a device commuication -
python - Linux Virtual Serial Port for creating a device commuication -
i created vsp using socat below command:
socat -d -d pty,raw,echo=0 pty,raw,echo=0
where able create serial device (19200,n,8,1) , send , receive info using python.
so have same 1 more device config of (19200,even_aprity,hardware flow in python) when throwing below error:
traceback (most recent phone call last): file "py2.py", line 163, in <module> buffer += ser.read(1) # block until 1 more char or timeout file "/usr/lib/python2.6/dist-packages/serial/serialposix.py", line 311, in read if self.fd none: raise portnotopenerror serial.serialutil.serialexception: port not open exception systemerror: 'error homecoming without exception set' in <bound method breakhandler.__del__ of <sig_handler.breakhandler instance @ 0xb719338c>> ignored
guide me
python serial-port virtual virtual-serial-port socat
Comments
Post a Comment