[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

Parallel port control

Support section for FREESCO v0.3.x

Parallel port control

Postby yelsewno » Fri Nov 13, 2009 11:19 am

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
User avatar
yelsewno
Junior Member
 
Posts: 33
Joined: Sat Mar 29, 2008 10:05 am
Location: Michigan, USA

Re: Parallel port control

Postby dingetje » Fri Nov 13, 2009 1:13 pm

GreetZ
http://dingetje.hopto.org

"Software is like sex: it's better when it's free." - LINUS TORVALDS
User avatar
dingetje
FREESCO GURU !!
 
Posts: 1010
Joined: Wed Nov 14, 2001 12:13 pm
Location: The Netherlands

Re: Parallel port control

Postby dingetje » Fri Nov 13, 2009 1:23 pm

GreetZ
http://dingetje.hopto.org

"Software is like sex: it's better when it's free." - LINUS TORVALDS
User avatar
dingetje
FREESCO GURU !!
 
Posts: 1010
Joined: Wed Nov 14, 2001 12:13 pm
Location: The Netherlands

Re: Parallel port control

Postby dingetje » Fri Nov 13, 2009 1:37 pm

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.
You do not have the required permissions to view the files attached to this post.
Last edited by dingetje on Fri Nov 13, 2009 1:39 pm, edited 1 time in total.
Reason: added attachment
GreetZ
http://dingetje.hopto.org

"Software is like sex: it's better when it's free." - LINUS TORVALDS
User avatar
dingetje
FREESCO GURU !!
 
Posts: 1010
Joined: Wed Nov 14, 2001 12:13 pm
Location: The Netherlands

Re: Parallel port control

Postby yelsewno » Fri Nov 13, 2009 2:35 pm

Thank you very much, dingetje! It works great. You went above and beyond. I greatly appreciate it!

Thank you,
Wes
User avatar
yelsewno
Junior Member
 
Posts: 33
Joined: Sat Mar 29, 2008 10:05 am
Location: Michigan, USA


Return to FREESCO Support for v0.3.x

Who is online

Users browsing this forum: No registered users and 2 guests

cron