Atmoserial is a Java "Websocket to Serial port" bridge using Atmosphere and jSerialComm. It features a small REST API to open/close serial ports and accept incoming messages, and uses atmosphere to broadcast serial port output.
- Import the JAR into your classpath
- Declare your atmosphere context, for instance using Spring Boot (c.f. sample project)
- From your web UI (using for instance atmosphere-js), invoke the REST API to query the list of available serial ports, and open a connection with appropriate parameters (transmission speed, timeout etc...).
- Send messages to the serial port / close it