reading the parrallel port ?

This is a discussion on reading the parrallel port ? within the C Programming forums, part of the General Programming Boards category; I want to write a program that will monitor the parrallel port for signals, and when a signal is recieved, ...

  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    4

    Unhappy reading the parrallel port ?

    I want to write a program that will monitor the parrallel port for signals, and when a signal is recieved, it will be logged.
    What methods are there for me to do this ?
    (is there any code out there that i can examine ?)


    This will be part of a security system at home, so i expect that i will need to put only 5V into the parrallel port ?

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    (At least), operating system dependent.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  3. #3
    Registered User
    Join Date
    Jan 2002
    Posts
    4
    is that right
    hmmmpf

  4. #4
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    Yes. Under Windows you can get a handle to the parallel port using the CreateFile() API function - try that on a Linux box, or a UNIX box or a MAC and it won't work.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. HELP with storing serial port data into txt file
    By inmaterichard in forum C Programming
    Replies: 2
    Last Post: 04-02-2008, 03:20 AM
  2. my serial port data reading program isn't working
    By gnychis in forum C Programming
    Replies: 5
    Last Post: 06-02-2005, 09:40 AM
  3. Serial port reading
    By gargamel in forum C# Programming
    Replies: 1
    Last Post: 05-18-2005, 09:19 PM
  4. Using Sockets to post to port
    By WaterNut in forum Windows Programming
    Replies: 3
    Last Post: 04-15-2005, 05:10 PM
  5. Reading game port with a simple compiler like BuilderX?
    By MaxxMan-X in forum Game Programming
    Replies: 7
    Last Post: 02-27-2005, 11:15 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21