Solved

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

Posted on 2003-11-06
2
184 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
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Article by: SHIELD1
The 5 R's 1. Repair 2. Restore 3. Reinstall 4. Remote admin 5. Run away OK so I'm not the most skilled engineer around but I definitely have an abundance of experience: electronic repairs since I was 13 and PC and computer hardware repair…
Computer running slow? Taking forever to open a folder, documents, or any programs that you didn't have an issue with before? Here are a few steps to help speed it up. The programs mentioned below ALL have free versions, you can buy them if you w…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

706 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now