Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

CommControl problem

Posted on 2001-06-22
2
Medium Priority
?
155 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

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

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…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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 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…
Suggested Courses

596 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