pfmachado
FabulaTech Forum Newbie
Posts: 2
|
|
Problem with splitter and CTS
on: Aug 5th, 2014, 6:15pm |
Quote Modify
|
Hi. We are currently evaluating your product for installing in a customer. However he have a problem with the splitter that does not happen if we connect directly: The CTS flag is read differently if we use the spliiter. Here follows a java code snippet to illustrate the problem: <BEGIN CODE> import jssc.SerialPort; public class Test { public static void main(String[] args) throws Exception { SerialPort port = new SerialPort("COM1"); port.openPort(); port.setParams(SerialPort.BAUDRATE_9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); System.out.println("CTS: " + port.isCTS()); port.closePort(); } } <END CODE> Without the splitter running, this bit of code always prints "CTS: true" if a printer we have connected to COM1 is on. However, with the splitter runing, the code always prints "CTS: false" regardless of printer being on or off. Can you help us?
|