Solved

CommControl problem

Posted on 2001-06-22
2
147 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

706 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

15 Experts available now in Live!

Get 1:1 Help Now