LPT daemon
lpt daemon is intended to work
with this controller
Also may work directly with signal on lpt port
(there are 5 inputs, 4 outputs and 8 may be used or as inputs,
ether as outputs)
This program may provide logical operations (reactions) on states physical
ports of controller, and, set or read states over network (from external apps)
Program works directly with io ports using
inb() and outb(), so it works under Linux only
On start it creates two processes - main and network
(which waits for connections)
Main works directly with LPT, timers, and internal logic (rules)
network - waitsfro conn on tcp port 3344 and forks for every new connected client
It is ipv6 compatible, works under user
nobody
Internal logic: its input is "state" array consisting of
physical io registers (s0-s47), internal timers(t0-t47),
internal "flags" (f0-f347).
on startup it reads file /etc/lpt/rules.conf containing rules
how to react on combinations of one or more elements of "state"
Reactions may be set or clear timer, "flag", set physical port to 0 or 1
changes in state are checkes every (200msec)
other config file is /etc/lpt/timers.
It contains strings with timeouts for every timer. After setting timer to
1, after specified timeout, it switches back to 0
network interface: accepts connections on tcp port 3344.
following commands are accepted: