Thread: LPT Port Interfacing

  1. #1
    Registered User
    Join Date
    Apr 2005

    LPT Port Interfacing

    I know this has been posted many times before, but none of them have quite answered my question. The Windows Kernel and API seem to not send data to the LPT port (0x378) until some sort of signal has been sent. I think pin 13 needs to be powered (to tell the computer the printer is on) and as well as some other pins. I'm pretty sure that my programs are not to blame because when I run my programs on a computer that has a printer, the printer prints my message. So I am asking anyone with knowledge of this, how can I make Windows XP recognize that there is a device on LPT or get Plug and Play to realize something has been connected?

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    >> how can I make Windows XP...
    On what operating systems does your code work?

    Sounds like your code is DOS compatible, and not Windows NT compatible. If so, you'll have to port it.


  3. #3
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    You may be interested in a library that provides raw access to the LPT port. One such beast is WinIO.

  4. #4
    Registered User
    Join Date
    Apr 2005
    anonytmouse, thanks for that link. I have found a way to make my code work, the problem was with the wiring of the port.
    BTW, can WinIO be used with NICs for TCP header creation?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. problem interfacing in parallel port
    By tariq7868 in forum C Programming
    Replies: 4
    Last Post: 06-08-2009, 03:53 AM
  2. FTP program
    By jakemott in forum Linux Programming
    Replies: 14
    Last Post: 10-06-2008, 01:58 PM
  3. brace-enclosed error
    By jdc18 in forum C++ Programming
    Replies: 53
    Last Post: 05-03-2007, 05:49 PM
  4. LPT: Need help to READ and WRITE to port
    By jp_in_calif in forum C Programming
    Replies: 3
    Last Post: 02-24-2004, 11:17 AM
  5. LPT Port Bit States
    By Unregistered in forum C++ Programming
    Replies: 2
    Last Post: 01-21-2002, 02:50 PM