Solved

Trouble with MSCOMM

Posted on 2011-03-16
4
352 Views
Last Modified: 2012-05-11
Hello,

I have inherited a project where a system of buttons can be pressed by users and when the buttons are pressed they are sent by RF to a tranceiver which is connected to a PC via RS232. There is a program in place written in VB6 which communicates this by use of MSCOMM but it doesn't appear to work as it times out when I run it on my system. I have no contact with the original developer.

I am attempting to re-write the software but am having trouble communicating with the tranceiver. I have checked the obvious... it's powered, it's connected correctly etc. I then downloaded software which is meant to send and receive data to serial devices for testing and that seems to work, so the hardware is working.

Can anyone think of anything I may be doing wrong? Any common mistakes etc? I'd prefer not to post the code I have been given as it is not my IP but can post portions if required.
0
Comment
Question by:daz84
  • 2
4 Comments
 
LVL 14

Accepted Solution

by:
VBClassicGuy earned 500 total points
ID: 35147366
Common mistakes could include baud rate, data bits, etc...the stuff you can set in Port Settings in the Device Manager. Maybe you could play around with those.
0
 

Expert Comment

by:dazfish
ID: 35161045
Thanks for the response. After making contact with the original developer it has been tracked down to a hardware issue. Parts are arriving tomorrow which should solve the problem.
0
 
LVL 2

Author Comment

by:daz84
ID: 35161051
Oops that message by 'Dazfish' was me, not sure how I've ended up with two accounts!
0
 
LVL 2

Author Closing Comment

by:daz84
ID: 35161067
Technically correct but very generalised answer
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Windows Script Host (WSH) has been part of Windows since Windows NT4. Windows Script Host provides architecture for building dynamic scripts that consist of a core object model, scripting hosts, and scripting engines. The key components of Window…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

828 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