Solved

Error trying to use Serial Port connection

Posted on 2013-01-14
5
1,353 Views
Last Modified: 2013-01-14
I have a serial device that up until today was working fine.
This is a constant feed from a scale to a serial port on the back on the PC.
I am using Windows XP SP3

I can get the feed to work just fine through Terminal Operator, but not in the Application this feeds into.
--------------------
The Application it feeds into is a program written in VFP6
The error I am getting is :

Run-time error '8015':
Could not set comm state, there may be one or more invalid communications parameters.
--------------------------
I have searched online and some people thought it was a Printer Driver issue. I tried uninstalling ever Printer and Printer driver but that did not help.

I also did a full uninstall of the serial Comm Ports and then did a reboot to reinstall them but that did not work as well.

Any ideas what else I can try?
0
Comment
Question by:adam_daunhauer
  • 3
  • 2
5 Comments
 
LVL 4

Accepted Solution

by:
Levi Gwyn earned 500 total points
ID: 38775542
COM (serial Ports) are notorious for dying.  The old RS232 standard is not very tolerant of voltage spikes and static.  It may be that the COM port is dead.  If you can dig up an old serial mouse or some other serial device, test the port.  If it fails, you can buy add-on serial cards cheap to replace the port.

This is a total guess but always good to rule out hardware first.
0
 

Author Comment

by:adam_daunhauer
ID: 38775572
The port is not dead. I can see the scale feed coming through on Hyper Terminal so I know the scale is communicating with the port.
0
 
LVL 4

Expert Comment

by:Levi Gwyn
ID: 38775744
Okay.  Sometimes the addressing of the COM port can get jacked up.  You may have already looked at this but make sure your ports are set to the default values.  The following list is the defaults:

COM1 -  3F8  IRQ4
COM2 -  2F8  IRQ3
COM3 -  3E8  IRQ4
COM4 -  2E8  IRQ3

This article explains how to make those settings changes in XP:

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/devmgr_changing_port_settings.mspx?mfr=true
0
 

Author Closing Comment

by:adam_daunhauer
ID: 38775852
Replaced COM port and it is working now. I guess it was a bad COm port. Strange that there was a feed at all.
0
 
LVL 4

Expert Comment

by:Levi Gwyn
ID: 38775904
Glad I could help.  If this is a mission-critical system, you can run shielded cable and ground the end on the PC side to ensure a transient voltage spike doesn't kill your COM port.
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Great sound, comfort and fit, excellent build quality, versatility, compatibility. These are just some of the many reasons for choosing a headset from Sennheiser.
This paper addresses the security of Sennheiser DECT Contact Center and Office (CC&O) headsets. It describes the DECT security chain comprised of “Pairing”, “Per Call Authentication” and “Encryption”, which are all part of the standard DECT protocol.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

830 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