Reputation: 459
I have a USB device that I need to control in Linux using Python
and serial commands, it works with ASCII commands.
In Windows it works fine after I install the vendor driver and in Device Manager I see it as a COM3 port and I communicate using pyserial
or pyvisa
modules.
In Linux I see it as /dev/ttyUSB1
but I cannot communicate with it using pyserial
or pyvisa
. The problem is that the vendor doesn't provide Linux drivers.
How am I able to get the device behave as a serial port in Linux?
Upvotes: 0
Views: 9316
Reputation: 9412
try python -m serial.tools.miniterm /dev/ttyUSB1
and read the issue on https://github.com/pyserial/pyserial/issues/67 especially the version of pyserial
if this issue is related to yours possibly this also works :
Managed to bypass this issue by passing
dsrdtr=True
andrtscts=True
to serial.Serial() ... as described here
your device is based on an FTDI chip, the inbuilt linux kernel module for this is ftdi_sio
and usb_serial
see http://www.ftdichip.com/Support/Documents/AppNotes/AN_220_FTDI_Drivers_Installation_Guide_for_Linux.pdf
Upvotes: 2