Want to set up Hardware profile to make COM1 available for a program to use

PC is a Sony VAIO laptop PCG R505B running XP SP2. I want to connect a data logger to COM1, but its program cannot read COM1. It works OK on a desktop. The problem seems to be that the internal modem on COM3 interferes with COM1. I have set up a hardware profile ('No Modem') which disables the modem, and disables the 'Telephony' service. Still no go. I have got it to work by disabling COM1 in the profile, starting the machine, (which then cannot grab COM1). I then enable COM1 and can run the data logger. But how do I find out what is grabbing COM1 so I can disable it to make this procedure more user friendly?
I wondered about using Security event logging, but cannot see how you can set auditing on a com port.
kmaynardAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

PUNKYCommented:
What kind of datalogger you are using? Agilent / HP Data aquisition data switch? If so, install data logger software from Agilent website, install and run. It will automatic configure and choose COM# for you.
0
shaynegCommented:
A program called Sisoft Sandra will tell you everything you need to know about your computer including full reports on com port usage etc :0)
0
kmaynardAuthor Commented:
Punky: it's a 9005 Multimeter with RS232 output.  I want to log current taken over time to assess where the household electricity is getting used, and whether it's at the cheap (night) rate. The meter comes with its own software which finds the right port when that port is free. It works fine on a desktop which has COM ports independent of each other.

Shayneq: unfortunately, Sandra doesn't want to come to the party, well not without being paid! But thanks for the suggestion.

Isn't there anything built-in to XP? Mr Gates seems to log almost everything else? The OS knows that something has a prior claim to the resource I want, but can it be made to tell me what? Is there some COM port logging function that could be enabled?
0
Top Threats of Q1 & How to Defend Against Them

WEBINAR: Join WatchGuard CTO and our Threat Research Team on Aug. 2nd to hear the findings from our Q1 Internet Security Report! Learn more about the top threats detected in the first quarter and how you can defend your business against them!

PUNKYCommented:
Uninstall and reinstall software again, technically when you run application first time to setup, it will search and detect COM# for you, sometime it will fail to detect. Use Hyper Terminal to test the COM ports first see if it working, then try run again.

The thing is, in bios, how do you set the COM? try different setting for them and pick one it works. OS has nothing to do with that, but if software is not supported by XP, then search for update that software from vendor.
0
kmaynardAuthor Commented:
The software lets you choose the port at run time. With COM1 enabled,  the software says 'no free port'. Hyper Terminal won't work in my cut-down h/w profile because Telephony (TAPI) isn't running. If I disable COM1 in the profile, and reboot, then enable it, it all works OK, presumably because whatever grabs COM1 does so at boot time, and gives up if it's disabled.

On this basis, I now have a potentilal workaround using DEVCON downloaded from Microsoft. This allows me to boot with COM1 disabled in this profile, then run a logon script with DEVCON ENABLE <port id>.  At the end I will need to do a DEVCON DISABLE probably in a shutdown script to prepare for next time.

Not very elegant, but it should work.

I am just surprised that there isn't a Windows feature to show how all the system resources are being used. The PSTools program PORTMON is no good in this case either, because it cannot connect to COM1, no doubt for the same reason.
0
PUNKYCommented:
Interesting! is that happening on other PC?
0
kmaynardAuthor Commented:
No. Desktop PC works OK. I suspect that the laptop has some complicated port sharing arrangement. Its internal modem appears as connected on COM3. Device manager shows only COM1 and LPT1, which corresponds to the 2 sockets on the back.  In normal profile, Hyperterminal can call via the modem, and if you connect to COM3, it responds to AT commands. I don't have an external modem to connect to COM1 to see if HT can talk to it.

This is the first time I have attempted to use its COM port under XP. I have run a standalone diagnostic program (Tufftest #1) on the laptop and the COM port works OK under test when a loopback plug is fitted. So XP is grabbing it at startup.
0
PUNKYCommented:
I think that is all you can get from that system (Sony VAIO laptop PCG R505B). Might be too many devices being shared IRQ resources and will not accept.

Good luck.
0
kmaynardAuthor Commented:
I don't think that I am going to find out how to stop XP grabbing the COM1 port. My workaround of disabling it in a Hardware profile, and enabling it just before running the program which uses it, is working fine. I am asking for this question to be closed.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Networking Hardware-Other

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.