Skip to content

ext/parport_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages