Solved

Error trying to use Serial Port connection

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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Thoroughly Clean Mac Pro Mid 2012 8 76
USB ports 4 26
tv error in depth 11 77
Problem to router 7 53
Monitor input from a computer is usually nothing special.  In this instance it prevented anyone from using the computer.  This was a preconfiguration that didn't work.
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 video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

770 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