[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
FREESCO Support • View topic - Parallel port control
Page 1 of 1

Parallel port control

PostPosted: Fri Nov 13, 2009 11:19 am
by yelsewno
This is a pretty specific question regarding a specialized application, so here goes. Built a relay circuit a while back that interfaces with the parallel port and allows you to turn the relays on and off by setting the data bits on and off for the parallel port. I'm trying to use "parashell" to control the port from a script on my Freesco box, but it acts like it is missing a required library file or something. When I try to run the file I get the message "No such file or directory". This happens with ./parashell in the directory containing the file.

I assume it's probably looking for a gcc library file in the path, but I have no idea which one, or where I should put it. I know this is out in left field, but any help or insight would be appreciated.

The end goal is to use parashell in a script to monitor the internet connection, and power cycle the cable modem if it goes down, as an attempt to heal itself.

Thank you,
Wes

Re: Parallel port control

PostPosted: Fri Nov 13, 2009 1:13 pm
by dingetje

Re: Parallel port control

PostPosted: Fri Nov 13, 2009 1:23 pm
by dingetje

Re: Parallel port control

PostPosted: Fri Nov 13, 2009 1:37 pm
by dingetje
Well it compiled, but I haven't tested it with real hardware.
If you want it, you can download the non-package (you know how to unpack a tarball?) from my FREESCO box:

http://dingetje.homeip.net/packages/0.3 ... 2.2.tar.gz

or download the attached tarball.

The libc5 binaries for use on FREESCO are in the bin/Linux folder. Just place these in the /pkg/bin directory of your FREESCO and you're good to go.
The parashell command can be used to write to the parallel port, and the pin command can be used to read from it.

Re: Parallel port control

PostPosted: Fri Nov 13, 2009 2:35 pm
by yelsewno
Thank you very much, dingetje! It works great. You went above and beyond. I greatly appreciate it!

Thank you,
Wes