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)

Sources: http://www.vtornik.com/books/lpt-0.80.26.tar.bz2

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:
?fXXX read flag XXX
?tXX read timer XX
?sXX read physical port XX
?s* read all physical ports
?* read all state
sfXXX=Y set flag XXX to Y(0 or 1)
stXX=Y set or clear XX
ssXX=Y set physical output port XX to Y
q disconnect session
kill kill service


Новое сообщение

  В начало
       Фильтр Regex sendmail
            Пример фильтра
       Зарегистрироваться
       Видео клипы
       Книга жалоб/предложенй
       Экономика просто
            Амортизация
            НДС
       spamassassin-milter
       Всякая фигня
       Конвертер юникод
       Сбор данных
       SRS в sendmail
       my soft
            lpt daemon (RUS)
            lpt daemon (ENG)
       Из LJ
            О детях
                 Основы ГВ
                 Прикорм
                 Игрушки. Родственники
                 Гардероб(1)
                 Гардероб(2)
                 Гардероб(3)