@Test @Ignore public void testListCOM() { Enumeration<?> ports = CommPortIdentifier.getPortIdentifiers(); while (ports.hasMoreElements()) { CommPortIdentifier cpIdentifier = (CommPortIdentifier) ports.nextElement(); System.out.println(cpIdentifier.getName()); } }
@Override public String getName() { return this.aliasName; }
RS232 implements ProtocolEventHandler<RS232>, CommClient<RS232> { @Override public String getName() { return this.aliasName; } }
RS232 implements ProtocolEventHandler<RS232>, CommClient<RS232> { @Override public String getName() { return this.aliasName; } RS232(final Protocol<RS232> protocol, final MessageManager manager, String aliasName); }
RS232 implements ProtocolEventHandler<RS232>, CommClient<RS232> { @Override public String getName() { return this.aliasName; } RS232(final Protocol<RS232> protocol, final MessageManager manager, String aliasName); boolean connect(String portName, int baudrate, int dataBits, int stopBits, int parity); @Override boolean isConnected(); @Override void disconnect(); @Override Protocol<RS232> getProtocol(); @Override String getName(); @Override void registerCallin(MessageCallIn<RS232> callIn); @Override boolean send(final byte[] data); @Override boolean send(final byte[] data, int times); @Override byte[] send(final byte[] data, String txId, long timeout); @Override byte[] send(final byte[] data, String txId, long timeout, int retry); @Override boolean send(final byte[] data, final MessageCallOut callOut, long timeout); @Override boolean send(final byte[] data, final MessageCallOut callOut, long timeout, int retry); @Override void messageReceived(ProtocolMonitor<RS232> monitor, ProtocolEventArgs args); @Override void messageError(ProtocolMonitor<RS232> monitor, ProtocolEventArgs args); }
RS232 implements ProtocolEventHandler<RS232>, CommClient<RS232> { @Override public String getName() { return this.aliasName; } RS232(final Protocol<RS232> protocol, final MessageManager manager, String aliasName); boolean connect(String portName, int baudrate, int dataBits, int stopBits, int parity); @Override boolean isConnected(); @Override void disconnect(); @Override Protocol<RS232> getProtocol(); @Override String getName(); @Override void registerCallin(MessageCallIn<RS232> callIn); @Override boolean send(final byte[] data); @Override boolean send(final byte[] data, int times); @Override byte[] send(final byte[] data, String txId, long timeout); @Override byte[] send(final byte[] data, String txId, long timeout, int retry); @Override boolean send(final byte[] data, final MessageCallOut callOut, long timeout); @Override boolean send(final byte[] data, final MessageCallOut callOut, long timeout, int retry); @Override void messageReceived(ProtocolMonitor<RS232> monitor, ProtocolEventArgs args); @Override void messageError(ProtocolMonitor<RS232> monitor, ProtocolEventArgs args);  }