Solved

How to prevent WinXP from sending non-zero bits to parallel port when loading Windows?

Posted on 2003-11-06
2
198 Views
Last Modified: 2010-04-26
Good day. I am having problem with my parallel port which is connected to a simple DIY alarm device. My alarm will sound whenever a "1" was send to pin 2 (or Data Port) of LPT1, and off when "0" bit was sent. The alarm is working properly using Visual Basic program I developed.

The problem is, when Windows is loading, it seems that XP is sending some non-zero bits to LPT1, causing my alarm to sound. Probably it's detecting the parallel port. Is there any way to prevent XP to do so so that my alarm won't sound everytime I start/restart my PC?

Thanks and hope to hear from you soon.
0
Comment
Question by:cwchan80
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 32

Accepted Solution

by:
jhance earned 20 total points
ID: 9693041
I suspect you'd find that the LPT device drivers in doing some sort of self-test or other hardware detection during the initialization of the driver.  Unfortunately, apart from removing the driver itself (which is possible) and writing your own LPT port driver (which is also possible but more complex than a VB program) you'll have to learn to work around this.

Two suggestion:

1) Generally data on the LPT port is only flagged to be valid when the STROBE (i.e. pin 1) is LOW.  So your external hardware should gate any action involving the data bits with pin 1 being active.  This may also require a change in your VB application in order to set/reset pin 1 but in the end you'll have a more robust setup.

2) Alternatively, you could use the state of TWO pins being in opposite states to signal your device.  This way you would not get triggered by the "all low" state of init but only by your VB app's setting of bit 0 to a "1" and bit 1 to a "0" at the same time.
0
 
LVL 7

Expert Comment

by:waffleironhead
ID: 10385818
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

accept jhance's comment as answer

Please leave any comments here within the next four days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

waffleironhead
EE Cleanup Volunteer
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Desktop PC Advice 20 64
Fan for HP TouchSmart 600-1265qd CTO Desktop PC 7 86
Does a test card exist for a randomly rebooting PC 14 97
DNS zone 3 59
Windows 7 does not have the best desktop search built in. This is something Windows 7 users have struggled with. You type something in, and your search results don’t always match what you are looking for, or it doesn’t actually work at all. There ar…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question