?
Solved

Error trying to use Serial Port connection

Posted on 2013-01-14
5
Medium Priority
?
1,466 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 4

Accepted Solution

by:
Levi Gwyn earned 1500 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

Four New Appliances. Same Industry-leading Speeds.

But don't take it from us.  The Firebox M370 is Miercom tested and Miercom approved, outperforming its competitors for stateless and stateful traffic throughput scenarios.  Learn more about the M370, M470, M570 and M670 and find the right solution for your organization today!

Question has a verified solution.

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

What do we know about Legacy Video Conferencing? - Full IT support needed! - Complicated systems at outrageous prices! - Intense training required! Highfive believes we need to embrace a new alternative.
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

752 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