Parallel port Question 
Author Message
 Parallel port Question

How can I write a binary value to the parallel port ounder Linux?

Tech-Rat



Wed, 18 Jun 1902 08:00:00 GMT  
 Parallel port Question

Quote:

> How can I write a binary value to the parallel port ounder Linux?

I don't have any idea why you are posting this question here.  After 2
or 3 minutes of research, I found http://www.torque.net/parport/ which
seems like a better place to look than c.l.p.m.  If there really is a
Perl question buried here, perhaps 'perldoc -q serial' (yes, I know)
would be a good place to start.

Jon
--
Knowledge is that which remains when what is
learned is forgotten. - Mr. King



Wed, 18 Jun 1902 08:00:00 GMT  
 Parallel port Question

Quote:
>How can I write a binary value to the parallel port ounder Linux?

open(LP,">/dev/lp0") || die "Can't open lp0: $!";
select(LP); $| = 1; select(STDOUT);
print LP "\033some useful escape sequence";
close LP;

--

http://www.autox.chicago.il.us/  http://www.berniesfloral.net/
http://hammer.prohosting.com/~cgi-wiz/  http://cgi-help.virtualave.net/



Wed, 18 Jun 1902 08:00:00 GMT  
 Parallel port Question

Quote:
> How can I write a binary value to the parallel port ounder Linux?

Why have you started a new thread ?  

What have you tried and what happened ?  You will probably want to ask
in some Linux group about this but you will need to use ioctl and the
constants defined in /usr/include/linux/parport.h (if you have run h2ph
properly you should have 'linux/parport.ph' which you can use in a Perl
program.)

I have nothing attached to my Parallel port so I cant test anything so
I wont give you any code.

If you go to a Linux group and ask them how you would do it in a general
sense then when you have a problem implementing this in Perl you might
come back and ask here.

/J\
--
Getting out of jury duty is easy. The trick is to say you're prejudiced
against all races.
--
fortune oscar homer



Wed, 18 Jun 1902 08:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Interfacing The Parallel Port

2. parallel port

3. Voltage level change in PC Parallel port to make a file run

4. Interfacing The Parallel Port

5. Communicating with parallel port

6. Accessing Parallel Port Data

7. parallel port modle

8. parallel port access?

9. Interfacing The Parallel Port

10. Interfacing With Parallel Port in PERL

11. I/O to parallel port

12. HELP w/ Perl & PC Parallel Port

 

 
Powered by phpBB® Forum Software