Solved

Trouble with MSCOMM

Posted on 2011-03-16
4
329 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Technically correct but very generalised answer
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

There is an easy way, in .NET, to centralize the treatment of all unexpected errors. First of all, instead of launching the application directly in a Form, you need first to write a Sub called Main, in a module. Then, set the Startup Object to th…
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…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
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.

744 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

11 Experts available now in Live!

Get 1:1 Help Now