×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Help with client side I/O requests

Help with client side I/O requests

Help with client side I/O requests

(OP)
Using Perl I would like to:

1: log into a website(hosted from a 3rd party) from 2 locations (sender and reciever)
2: using that website I want to send a command to turn on or off a device on the other side
3: that command should be taken real time and send an I/O command to the parellel port

Can I even do this? I should be able to.. can anyone point me in the right direction?

RE: Help with client side I/O requests

Would the action of switching the device need to be immediate?
If so a permanent connection would be needed.

If a delay is acceptable
You could set the contents of a file to contain a flag.
On a windows box you could get the required status via a sceduled task operating at set intervals.

Keith

RE: Help with client side I/O requests

(OP)
A delay is ok.. but no more than 15 sec.

I would like to make it like a portable system. Meaning:
Having my main computer always connected to the site

1: be able to take the device to a coffee shop and plug it into the port so that after you log into the site, I can manipulate the divice from my home.

I guess I know how I can do it.. the main question is:

How do I send a signal to the Parallel port using perl in an XP environment via the webbrowser?

If I have to.. I will make it a program checking a online database insted.. but I am really trying to keep it just device and web based to be more compatible.

RE: Help with client side I/O requests

SEND - User initiates the operation of the device
=================================================
The perl prog resident on the web sets the contents of a text file to the appropriate value.

RECEIVE
=======
A scheduled task runs a every 15 seconds and runs a local program to check the value in the web based text file.
A local text file copied to LPT1 reflects this value on the parallel port.
You would of course need to put a switching device onto the parallel port to control any external device(s).

Keith

RE: Help with client side I/O requests

(OP)
Thank you so much peoples.. I will post when I get it all working.

Btw this (out of the all the ones I went to for help) was the best forum for responces. ^^v

RE: Help with client side I/O requests

(OP)
one question..

"A local text file copied to LPT1 reflects this value on the parallel port."

does this keep a constant signal to it or just 1 signal that stops?

Looking for constant signal, with out that I would have to work on the electronic side of it more and to tell you the truth.. im less of an electrician than a programmer >.>;

RE: Help with client side I/O requests

The parallel port module works on both Linux and Win32, have a look at the documentation specifics.
--Paul

Paul
------------------------------------
Spend an hour a week on CPAN, helps cure all known programming ailments winky smile

RE: Help with client side I/O requests

In a normal print, the code only appears at the output for a short time. If the electronics is a problem for you, you can buy an interface for the parallel port containing (usually 8) relays which change state depending on the address it receives. These can be bought either as kits or a completed unit.
I know of a supplier in the UK but you should be able to get one in most countries.

Keith

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close