Error using the IR.EXE application

This is the JP1 beginners forum. There's no such thing as a stupid question in here, so post away, but this forum is just for JP1 users and people considering JP1, non-JP1 users please use the appropriate forum above!

Moderator: Moderators

Ghallo
Posts: 10
Joined: Fri Jan 02, 2004 2:56 pm

Error using the IR.EXE application

Post by Ghallo »

This is strange, I get the following error on 2 computers (but it works fine on 2 others).

Here is the error:
Unable to initialize drivers for any JP1 interface. Drivers for at least one interface must be able to load in order for IR to communicate with your remote.

Parallel/Serial Error:
Problem with NT port driver:
StartDriver: Unable to start service.
Access is denied. Please make sure you have admin rights.

USB Error:
Unable to find Delcom device driver.


Some background - I am certainly an admin on these computers (Running Win2k on all of them). But just for trouble-shooting I logged in as the actual admin account on both - and they had the same issue. This is without any cable attached at all - but my other 2 computers can launch IR.EXE before I connect my JP1 cable. (BTW, once connected it works fine).

As far as port addresses go - both problem computers have an address of 378, the working ones have the same address. They are all set as ECP Printer ports. I know I have a work around, but the issue is that the computers that DO work are 1) my girlfriends (I tried it out of frustration and was very happy that it worked!) and 2) my work computer (which is 15 miles from the equipment I want to control :? )

Any ideas?
gjarboni
Expert
Posts: 294
Joined: Sat Sep 20, 2003 4:55 pm
Location: Columbia, MD

Post by gjarboni »

Sometimes this error is related to trying to run IR.exe off of a network drive. If you are trying to run things off of a network drive you have to copy gw*.sys to %windows%\system32.
Ghallo
Posts: 10
Joined: Fri Jan 02, 2004 2:56 pm

Post by Ghallo »

Thanks for the quick response!

unfortunately, I do not have this on a network drive. However, I went ahead and copied the file to the system32 folder anyway - and I get the same error. Any other ideas?

Thanks!
Ghallo
Posts: 10
Joined: Fri Jan 02, 2004 2:56 pm

Post by Ghallo »

Ok, so I looked at my girlfriends computer - and I set up my computer to be exactly the same. Both computers are joined to a domain - so I use the same credentials from both of them (again, I don't think this is an admin issue). They are both set as ECP printers - and Win2k recognizes the drivers as the same as well. Both printers have the same memory address - 378, and DMA 3. I'd really love to do some JP1 programming - but she is "grumpy" :( about me using her computer. I see over 33 views on this :shock: - anyone have ANY ideas?
Mark Pierson
Expert
Posts: 3018
Joined: Sun Aug 03, 2003 12:13 am
Location: Connecticut, USA
Contact:

Post by Mark Pierson »

Ghallo wrote:she is "grumpy" about me using her computer
Maybe it's time for a new girlfriend who appreciates all this! :shock: :lol:

I think this may need the help of Mark Pauker, but he was relaxing on some beach in the Caribbean over the holidays and I'm not sure when he'll be back.

Obviously, you're using the latest available version... is your JP1 cable connected to the (bad) PC when you run IR? Do you have a printer connected to the port that might have a driver locking it? One of my PC's has an Epson printer that the driver insists on changing the port to be an Epson Printer Port, and the JP1 interface will NOT work on it (but I don't get the same errors from IR).

Another thing you may want to look at is the power saving stuff to see if your printer port is being affected by it.
Mark
Stosh
Posts: 11
Joined: Mon Dec 15, 2003 12:05 pm
Location: Orleans, MI

Post by Stosh »

I received this error once also, on a stand-alone XP box. I remember fixing it by ensuring all .rdf, .sys and .dll files were in the same directory as IR.exe. I don't remember which of these were missing (it was one of 'em), but I haven't had the problem since in MANY loads of IR.

Stosh
mpauker
Expert
Posts: 40
Joined: Sun Aug 03, 2003 5:30 pm

Post by mpauker »

The message you're getting indicates that IR is not able to start the driver that facilitates low-level access to the serial/parallel port. This has nothing to do with your port settings, so you don't need to be concerned with port addresses, ECP, etc.

The driver you're having trouble with is a file named GWIOPM.SYS. This file must be in the same directory as the IR executable, and you must have admin rights on your computer. I can infer from the error message you provided that GWIOPM.SYS is in the correct place because IR would have given you a different message if it couldn't find the file.

As Jason said, another cause of this error is if you're trying to run from a network drive. This is because the driver must reside on the local machine.

Beyond what I've said, I'm not aware of anything else that can cause this problem. What version of IR are you using? The current version is 4.01. If that's the one you're using then you might want to try 3.21 to see if something may have been broken betwen the two builds. If neither works then the next thing I'd suggest is that you download PortTalk from beyondlogic.org. That driver comes with a standalone program called allowio which can provide the low-level access that IR needs. (If the port has already been made accessible by allowio, then IR won't bother trying to load GWIOPM.) I seriously doubt that you'll be able to get that to work if neither 4.01 nor 3.21 will work on their own, but that would at least give us a bit more information.

If you are unable to get any of these things to work then we're back to the permissions issue. One thing that may not be clear is that IR requires that you have admin privileges every time it runs. Please verify that you are an admin at the time you are attempting to run the program.

I realize that it would be nice to have an install/uninstall facility (especially since most users now fall into the novice category), but I'm not sure if/when I'll get to that. With such a facility, people would only need to have admin rights during installation, and they could run the program off of a network drive (although the driver would still need to be installed on each machine).
Ghallo
Posts: 10
Joined: Fri Jan 02, 2004 2:56 pm

Post by Ghallo »

Mark,
Thanks for the response. I guess this calls for a little background here. My girlfriend's computer sits next to my home PC, and both are a member of the same domain (in which I am the domain admin). As soon as any computer is joined to my domain, I am automatically an admin (I run an e-mail server, FTP server, web server etc. - for fun). I used to work as a technical lead at Microsoft's ITG department. I do not use my parallel ports because I have a networked printer.
I was tempted to believe this is a permissions issue - so I created a testIR account and gave it local admin rights (net localgroup administrators /add testIR). I still get the same error. I would like to try IR 3.21 - but I could not find it under the files section. Do you have a link? I will try allowio and let you know how that works.

Thanks again for the help!
mpauker
Expert
Posts: 40
Joined: Sun Aug 03, 2003 5:30 pm

Post by mpauker »

Okay... You're forcing me to show my ignorance here... (Not too difficult a task, I might add...)

My computer is set up using a workgroup rather than a domain. When I log in, I have admin rights over my PC. As such I can install drivers, etc.

I'm not sure what it means to be an admin "when another computer is joined to your domain." My understanding is that a login controls access to network resources, but it also controls access to local resources. The local resource access should not be effected by other users, and that's what you need admin rights to.

I'm aware that network administrators can limit the rights that users have on their local machines, but I'm not too sure about the ins and outs of this. Is it possible that your local rights are limited in some way? Is it possible that the software is installed on your girlfriend's machine and not on your local machine? I haven't tested this, but it's also possible that it has to be installed on the same drive that the Windows system directory is on. Could this be an issue?

Regarding v3.21, I'd be happy to email it to you if you make your email address available. Of course, you don't need it if you try allowio and that doesn't work. (In that case, 3.21 wouldn't work either.)
Ghallo
Posts: 10
Joined: Fri Jan 02, 2004 2:56 pm

Post by Ghallo »

Mark,
Sorry - didn't mean to overwhelm you with details. The long and short of it is that I have full rights, and my rights/permissions are absolutely the same on both my machine and my girlfriends. I'll try the other application and get back to you.

Thanks!
Ghallo
Posts: 10
Joined: Fri Jan 02, 2004 2:56 pm

Post by Ghallo »

Ok, well Porttalk/ AllowIO did not work - gives me an unkown error, or again the access denied error. So - I guess the issue is not with IR.EXE - somehow, some way it is an issue with permissions. Very very strange. I just wish there was actually something different from one machine to the other - but they are both identical. I installed Win2k at the same time, they have all the same apps - and I did not customize the permissions in any way on either machine. This boggles my mind. I have even tried doing a runas. No luck. If anyone out there has any ideas - I am all ears.

Regards!
mpauker
Expert
Posts: 40
Joined: Sun Aug 03, 2003 5:30 pm

Post by mpauker »

Well, at least one of us is happy that the problem isn't related to IR. ;)

If you go into Control Panel and look at the User Accounts, what do you see? Is there more than one account? If so, is the Account Type of the one you're using set to "Computer administrator" or "Limited?"
Ghallo
Posts: 10
Joined: Fri Jan 02, 2004 2:56 pm

Post by Ghallo »

Since my machine is on a domain, it works a little differently. I have "Local Users and Groups" and then under users I have multiple accounts. The user account that I am logged into is a member of the administrators group though - which gives him total access.

Try this:
Start->Run
Type:cmd.exe<enter>
Type:net localgroup administrators<enter>

This will tell you which users on your machine have administrative rights.

Then try:
Type:net use<enter>

This will tell you which applications are using which ports -> this shows me no apps are using the LPT1 port. Of course, this adds to the congfusion, as applications do not like to share ports, so I would assume that I would get the access denied message because some other application is using the port - however, this does not appear to be the case. Back to the drawing board.
mpauker
Expert
Posts: 40
Joined: Sun Aug 03, 2003 5:30 pm

Post by mpauker »

Can you install other drivers on your machine?

This is very confusing for me... This stuff really isn't rocket science. Here's what's happening in the code:

1. I call the Service Control Manager with a call to OpenSCManager. That's succeeding, because if it failed it would give a different error.

2. I install the driver by calling CreateService. Again, that's succeeding because the error would be different if it were failing.

3. I start the driver by calling OpenService followed by StartService. Here, the call to OpenService succeeds, but the call to StartService fails because access is denied.

As you can see, this has nothing to do with ports, etc. It's simply trying to start a service. I have no idea what could cause this to fail if you have admin rights on your machine.

You're not using some obscure beta version of Longhorn by any chance, are you?
mpauker
Expert
Posts: 40
Joined: Sun Aug 03, 2003 5:30 pm

Post by mpauker »

Oh... One other thought...

Do you by any chance have some or all of your registry locked?
Post Reply