Solved

Error trying to use Serial Port connection

Posted on 2013-01-14
5
1,265 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In the modern office, employees tend to move around the workplace a lot more freely. Conferences, collaborative groups, flexible seating and working from home require a new level of mobility. Technology has not only changed the behavior and the expe…
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.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

707 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

17 Experts available now in Live!

Get 1:1 Help Now