?
Solved

CommControl problem

Posted on 2001-06-22
2
Medium Priority
?
153 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
[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
2 Comments
 
LVL 43

Accepted Solution

by:
TimCottee earned 480 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

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…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Suggested Courses
Course of the Month13 days, 18 hours left to enroll

800 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