GitHunt
GI

giosil/comm

Library to exchange (RS232, TCP, HTTP, ...) LIS data (ASTM, XML, CVS, ...).

Comm

Library to exchange (RS232, TCP, HTTP, ...) LIS data (ASTM, XML, CVS, ...).

Example

IMessage msg = MessageFactory.getMessage("ASTM");
msg.addRecord(IRecord.Type.HEADER,      new String[]{"NG_LIS", "Host", "P", "1"});
msg.addRecord(IRecord.Type.QUERY,       new String[]{"ALL", null, null, null, "ALL", null, null, "R"});
msg.addRecord(IRecord.Type.TERMINATION, null);

IDriver driver = null;
try {
  driver = DriverFactory.getDriver("rs232", "COM5");
  
  IMessage res = driver.sendMessage(msg);
  
  System.out.println(res);
}
catch(Exception ex) {
  ex.printStackTrace();
}
finally {
  if(driver != null) driver.destroy();
}

Build

  • git clone https://github.com/giosil/comm.git
  • mvn clean install

Contributors

Languages

Java100.0%

Contributors

Apache License 2.0
Created December 5, 2019
Updated May 20, 2025
giosil/comm | GitHunt