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.
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
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.
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.
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.