Home
People
Publications
Events
Teaching
Projects
Resources
Contact
Community
Blog







Tutorials
Software
Docs

:: Research Group Embedded Interaction :: Media Informatics :: Ludwig-Maximilians-University Munich


Web Server for Serial Line Communication

We are convinced that developing applications using Smart-Its or any other sensor technology can be simplified and accelerated having an HTML interface. Therefore we built a small web server that listens for input on the serial line and provides this input to any standard web browser or script. We provide versions for Windows and Linux.

Windows Binary:

Windows Source Code:

Under Windows operating systems you start the server with the following command line:

SerialServer port [speed] [DisplayMode] [Separator] [Echo] [logfilename]

port ::= com1 | com2 | com3 | com4 | ...
speed::= 300 | 4800 | 9600 | 19200 | 38400 | 57600 | 115200 | 230400
DisplayMode::= ascii | hex | decimal
Separator::= empty | space | newline | tab
Echo::= no | yes
logfile::= <anyname> (if not provided no log is written)

Example (using standard options): SerialServer com1 19200 ascii empty no

By default, you should be able to query serial line input at http://localhost:80. If port 80 is not accessible, the program searches for the next available one.

Currently, there are two parameters that can be appended to the http request URL.

timestamps (or timestamp or ts) if specified, each line is appended with the current date and time
buffersize=XXX if specified, a maximum number of XXX bytes are displayed

For example, http://localhost:80?buffersize=1024&ts will add date and time to each line and show one kilobyte of data.

For enquires please contact paul @ hcilab.org