I would like to use a device with MRL that is serial and I cannot figure out how to set DTR and RTS. The device is optically isolated and steals power from the PC. It needs DTR (pin 4)to be high and RTS to be low (pin 7 on a 9 pin serial connector). The signals don’t need to cycle. Using a USB to serial cable and a terminal program (Mitty.exe) I can communicate with the device at 19200 baud. But in MRL, the rtscts and DTR lines below gives errors.
port = "COM6"
serial = Runtime.createAndStart("serial","Serial")
serial.connect("COM6",19200, 8, 1, 0)
Is there a way to set these pins in MRL?