Closed sistik closed 4 years ago
This has been corrected with the latest check-in, and will be available in the next release v2.5.4. The only API change is that setRs485ModeParameters(boolean useRS485Mode, int delayBeforeSendMicroseconds, int delayAfterSendMicroseconds)
has been changed to setRs485ModeParameters(boolean useRS485Mode, boolean rs485RtsActiveHigh, int delayBeforeSendMicroseconds, int delayAfterSendMicroseconds)
to allow the user to enable RTS active high or RTS active low. Thanks for opening the issue!
There is missing parameter to setup logical levels of drive enable signal. This parameters can be set as flags in configuration. Flag names: SER_RS485_RTS_ON_SEND, SER_RS485_RTS_AFTER_SEND
You can add something like this to SerialPort_Posix.c (function Java_com_fazecast_jSerialComm_SerialPort_configPort):