EmbLogic's Blog

parallel port usage

To test parallel port we can do the following step:

  • Create a node by  mknod /dev/parlelport c 61 0
  • The module can now be installed, parlelport. You can check that it is effectively reserving the input/output port addresses 0x378 with the command:

cat /proc/ioports

  • To turn on the LEDs and check that the system is working, execute the command

echo -n A >/dev/parlelport

This should turn on LED zero and six, leaving all of the others off.

  • You can check the state of the parallel port issuing the command:

cat /dev/parlelport

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>