Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 732
  • Last Modified:

Probleme with using of parallel port of PC

Am using WinPic programmer.It is software for programing PIC microcontrolers over Michrochip AN589 hardware. It works fine on my home PC but in office where PCs are controled ower the net from PC administrators it wont work. On the old PC with Windows 2000 I have resolved problem with:
UserPort (http://hem.passagen.se/tomasf/UserPort/)
But on newer PC with XP it does not help.
 So how can i resolve problem describet in text below (strong text):
Programming fails, and WinPic says "WARNING: Windows fooled around with the LPT port bits". What does that mean ?
This message means, that -for some strange reason- windows has reprogrammed one of the control registers of the serious ports. WinPic checks from time to time, if a value it has written into a certain register is still in there. If the register value seems to have changed by mysterious ways, it shows the warning mentioned above. The reason is usually some kind of driver which lurks in the background (of the windows driver system), and watches the parallel port. If "something" happens on the port, it tries to talk to a printer, a scanner, or whatever is usually connected to that port. So what to do:
make sure no printer driver, or scanner driver, etc, has occupied this port (though WinPic usually works even though a printer driver occupies the port !). I got a report from a user of Windows 2003 that on his system, the culprit was a scanner driver, and after shutting that thing down the strange error messages from WinPic disappeared.
0
pr2501
Asked:
pr2501
  • 13
  • 7
  • 3
2 Solutions
 
ThommyCommented:
Check if any system printer driver occupies your parallel port LPTx...
ports.JPG
0
 
pr2501Author Commented:
Checked:

It looks ok.


print.JPG
0
 
ThommyCommented:
Type in "NET USE" in command shell to check if lpt is connected to a network printer/printer share...
NetUse.JPG
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
ThommyCommented:
Which OS is your home PC???
0
 
ThommyCommented:
Have you already tried this...

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Parport\Parameters]

"DisableWarmPoll"=dword:00000001

PIC programmers for the parallel port
http://wxpic.free.fr/Help/LptPort.htm#lpt_port_trouble
0
 
pr2501Author Commented:
On my home i have XP profesional  like in office.

Thank you , i will now work on yours posts.
0
 
Don ThomsonCommented:
As it works on your Win 2000 machine (which I suspect in not  screaming new hardware) I imagine that the parallel port was associated with an IRQ (remeber those guys) - If you have moved data over from the old machine it may be referencing the IRQ on the old machine -

Check on the old MAchine in the Device manager to determin which IRQ is being used - Then find out which device on the new machine is using that IRQ  - Change it to something else that works on that device - freeing up the IRQ for you to use on your Printer port.
0
 
pr2501Author Commented:
Type in "NET USE"

The window disappere as son it shows on.  ?
0
 
pr2501Author Commented:
Wher to look?
reg.JPG
0
 
pr2501Author Commented:
Check on the old MAchine in the Device manager to determin which IRQ is being used

Pleas can You give me some ditails?
0
 
ThommyCommented:
Click "START -> RUN"

Type in "CMD"

Command shell appears

Type in "NET USE"
0
 
Don ThomsonCommented:
IRQ  - Right mouse on My Computer - Properties - Go to HArdware Tab -Device Manager

Go to you Ports click on+ sign - Right mouse on LPTx  and properties - you will find IRQ stuff there
0
 
pr2501Author Commented:
I will make pictures of my home IRQ. and compare it tomorrow at office:


For "CMD"  ok, i will check it also tomorrow
homepc.JPG
0
 
pr2501Author Commented:


Tommy how do i access to registry
to perform next:


If you have problems getting it to run with WinXP, as many seem to have, please try entering the following key to your registry:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Parport\Parameters]
 "DisableWarmPoll"=dword:00000001
0
 
pr2501Author Commented:
Sorry ii was there  ( picture in my previous post  ID: 34961258).

And what now?
0
 
pr2501Author Commented:
On my home PC the path is not as:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Parport\Parameters]

I must wait until tomorrow to test it i office.
portreg.JPG
0
 
ThommyCommented:
To enter registry:

Click "START -> RUN"

Type in "REGEDIT"

Go to [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Parport\Parameters]


Righ click "DisableWarmPoll" and change value...
0
 
pr2501Author Commented:
DisableWarmPoll

is missing ?
port.JPG
0
 
pr2501Author Commented:
Is there something that could make troubles?
net-use.JPG
0
 
pr2501Author Commented:
DisableWarmPoll I have add it by myselfe but still nothing.

Now next maybe will help:
Check on the old MAchine in the Device manager to determin which IRQ is being used - Then find out which device on the new machine is using that IRQ  - Change it to something else that works on that device - freeing up the IRQ for you to use on your Printer port.

What exatly do you mean with  IRQ stuff.
On the picture i have change settings from current configuration to
basic configuration 0000 because i have saw IRQ7 was set as  i have it on my PC.

But it do not want to accept it. Next time i open it  , it's like before.  ?


irq7.JPG
0
 
ThommyCommented:
No, net use doesn't show any LPT capturing...

If DisableWarmPoll is missing, then create it and try if it works.

If it wasn't successful you can delete it again afterwards...
0
 
Don ThomsonCommented:
It looks Like IRQ 7 is being used - the configuration 000 is just a reference -
If both the old and the new system are using IRQ 7 thaen there is something else wrong in your new setup

I havent't used it in a few years but a Program that may show you what's happening called Depends
I believe it's open source - You load it up then load up your program in it - You can step through it step by step if you want - put in breakpoints etc

Run it on the old one then the new one - see what you get
0
 
pr2501Author Commented:
Now it is ok. It works finally. My original settings were others (A settings).
The IRQ7 setting on my last picture were new one (B settings). So when clicked Yes on second window and i closed it and then reopened again i had back  A settings.
But after many tries to get  B settings  without success i tried luck and  programmer started to work even if resources window shows always settings from A settings.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

  • 13
  • 7
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now