https://github.com/trychlos/serialcs
Talk with a serial port via a TCP daemon
https://github.com/trychlos/serialcs
Last synced: about 1 month ago
JSON representation
Talk with a serial port via a TCP daemon
- Host: GitHub
- URL: https://github.com/trychlos/serialcs
- Owner: trychlos
- Created: 2015-06-01T16:35:15.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-06-02T08:04:52.000Z (about 11 years ago)
- Last Synced: 2025-03-05T18:56:54.830Z (about 1 year ago)
- Language: Perl
- Size: 117 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
SerialCS - README
Summary
=======
SerialCS
Rationale
The server
The client
-----------------------------------------------------------------------
SerialCS
========
SerialCS is a client/server package which let the client talk with a
serial port through the server, without closing the serial connection
between each exchange.
This package is primarily available from
https://github.com/trychlos/serialcs.
-----------------------------------------------------------------------
Rationale
=========
When working on NanoWatchdog, I wanted talk with the Arduino board
from the PC, and I first test with the arduino-serial program [1].
But I soonly felt into the "auto-reset" feature of the Nano,
which reset the board each time the connection is opened.
So the idea here is to have the server keep the connection to the
serial bus opened, while the user interact with it through the client.
This work is based on client/server examples [2].
[1] https://github.com/todbot/arduino-serial
[2] http://xmodulo.com/how-to-write-simple-tcp-server-and-client-in-perl.html
-----------------------------------------------------------------------
The server
==========
The server manages two communication streams:
- with the client through a TCP socket:
- with the serial bus.
The principe is that commands sent by the client are redirected to
the constantly opened serial bus, and all that is read from the serial
bus is forwarded back to the client.
-----------------------------------------------------------------------
The client
==========
The client is a simple command-line application which takes commands
from its input, send them to the server, and displays on its output
all that is sent back by the server.
-----------------------------------------------------------------------
P. Wieser - Created on 2015, may 24th
Updated on 2015, june 1st