/atmosphere-serial

A Java Websocket to Serial port bridge using Atmosphere and jSerialComm

Primary LanguageJavaGNU General Public License v3.0GPL-3.0

Atmosphere Serial (a.k.a atmoserial)

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.

How to use it ?

  1. Import the JAR into your classpath
  2. Declare your atmosphere context, for instance using Spring Boot (c.f. sample project)
  3. 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...).
  4. Send messages to the serial port / close it