Solved

Error trying to use Serial Port connection

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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
robocopy 33 155
new laptop new users 8 91
hp laptop chargers 4 60
Building a computer for Graphic + Video editing 10 76
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.
Arrow Electronics was searching for a KVM  (Keyboard/Video/Mouse) switch that could display on one single monitor the current status of all units being tested on the rack.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

738 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