https://github.com/ext/parport_server
https://github.com/ext/parport_server
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ext/parport_server
- Owner: ext
- Created: 2011-10-29T11:31:32.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2012-03-27T21:43:32.000Z (about 14 years ago)
- Last Synced: 2025-04-06T10:44:48.213Z (about 1 year ago)
- Language: C
- Homepage:
- Size: 109 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Parallel Port Interface Server
==============================
A simple parallel port server for controlling individual bits remotely. It features a simple protocol to set, toggle and strobe bits and can listen on both unix domain sockets and TCP connections.
It is useful when something is hooked to the parallel port and is going to be remotely controlled.
Usage
-----
**domain**
./parserver /dev/parport0
echo "strobe d0 300" | socat stdin UNIX-CONNECT:parserver.sock
**TCP**
./parserver -l -p 7613 /dev/parport0
echo "strobe d0 300" | nc localhost 7613
Protocol
--------
**SET PIN MODE**
Set PIN to MODE where PIN is d0-7 and MODE is HIGH, LOW or TOGGLE.
**STROBE PIN TIME**
Set PIN high for TIME milliseconds and then back to low.
Install
-------
Installation is a simple `make` and `make install`.
Gentoo users can use layman to add ext-devlibs where an ebuild is present which includes an init.d script.
Sample Hardware
---------------
At https://nitroxy.com/wiki/Kassal%C3%A5dor#Styrkort there is a schematic for a relay connected parallel port which works fine with this software. I am however not an electrical engineer so I take no responsibility for it; it is provided for reference only. The description is in swedish only thought but it isn'ty much useful anyway.