Solved

CommControl problem

Posted on 2001-06-22
2
149 Views
Last Modified: 2010-05-02

I am communicating with a computer using the com port (using hyper terminal, on a win nt os).  When the computer recieves what I send to it, it immediatly sends me back information.

Now, I am trying to do the same thing using visual basic using the Microsoft CommControl 6.0 component.  The setting are exactly the same as hyper terminal.  I tried using both the OnComm event to recieve data as well as just checking the buffers myself.  However, I NEVER recieve any data.

Could you tell me what might be causing this problem?  This computer sends the data IMMEDIATLY.  Could the problem be that vb or the component cannot keep up with the speed that the data is being sent back at?

Thanks..

Joshyy
0
Comment
Question by:Joshyy
2 Comments
 
LVL 43

Accepted Solution

by:
TimCottee earned 120 total points
ID: 6218535
It is most likely that the device uses either CTS/RTS which is not set by default on the MSComm control. You should experiment with the CTSEnable property (I think that is what it is from memory) and associated properties to see if this is the case. I have found this in the past with devices which work fine in Hyperterminal but not with the comm control.
0
 
LVL 1

Author Comment

by:Joshyy
ID: 6218597
Thanks ... that's what it was ... we've been fretting here for along time and finally solved it.
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

773 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