Every time I open a serial port, it appears jSerialComm is toggling the DTR pin. This is causing my serial device to reboot. Is there a way to open a COM port without toggling the DTR pin?
from com.fazecast.jSerialComm import SerialPort
ports = list(SerialPort.getCommPorts())
for x in ports:
x.clearDTR()
output = 'Hello World' + '\n'
system.serial.configureSerialPort(
port="COM4",
bitRate = system.serial.BIT_RATE_115200,
dataBits = system.serial.DATA_BITS_8,
hardwareFlowControl = False,
handshake = system.serial.HANDSHAKE_NONE,
parity = system.serial.PARITY_NONE,
stopBits=system.serial.STOP_BITS_1)
# Open serial port
system.serial.openSerialPort( "COM4" )
#serial device reboots here!
system.serial.write( "COM4" , output)