We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4ba7e0 commit d29109fCopy full SHA for d29109f
1 file changed
ShimmerDriverPC/src/main/java/com/shimmerresearch/pcSerialPort/SerialPortCommJssc.java
@@ -112,6 +112,16 @@ public void connect() throws ShimmerException {
112
} catch (SerialPortException e) {
113
consolePrintLn("MacOS: Warning - failed to purge buffers: " + e.getMessage());
114
}
115
+
116
+ // Explicitly set DTR and RTS signals after port configuration
117
+ // Setting them in setParams() may not be sufficient on MacOS
118
+ try {
119
+ mSerialPort.setRTS(true);
120
+ mSerialPort.setDTR(true);
121
+ consolePrintLn("MacOS: Explicitly set RTS=true and DTR=true");
122
+ } catch (SerialPortException e) {
123
+ consolePrintLn("MacOS: Warning - failed to set DTR/RTS: " + e.getMessage());
124
+ }
125
126
127
// On MacOS, serial ports need a brief settling time after opening
0 commit comments