Solved

Using VB to make a terminal program (with a bit of a twist)

Posted on 2002-06-27
3
186 Views
Last Modified: 2010-08-05
Hello all,
I'm controling a modem with a microcontroller and I'm now using a terminal program called Creative Communication Terminal Emulator to display the data.

Here's what happens:
1.  The microcontrollers modem dials another modem and they connect.
2.  I type a "!" into the terminal.
3.  The microcontroller recieves this character and outputs a string.

Everything works fine in the terminal program.  I can see the return string.

However I made a program in VB and I can not see the return string.  The microcontroller does recv the ! and return a string but nothing is outputted in a vb text box.

Here is my code:
======================
Private Sub Command1_Click()
MSComm1.Output = "!"
End Sub

Private Sub Form_Load()
MSComm1.RThreshold = 4
MSComm1.CommPort = 1
MSComm1.OutBufferSize = 1
MSComm1.PortOpen = True
recvdata = False
End Sub

Private Sub MSComm1_OnComm()
If MSComm1.CommEvent = comEvReceive Then
Text1.Text = Text1.Text + MSComm1.Input
End If
End Sub

Private Sub Form_Unload(Cancel As Integer)
MSComm1.PortOpen = False
End Sub
=================

Why can I not see the string from the microcontroller from my program when I can see it from the terminal program??

Thanks in Advance,
Aaron Tufgar
0
Comment
Question by:Cide
[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
3 Comments
 

Author Comment

by:Cide
ID: 7115381
Actually I found the answer just had to enable CTS.  Found this answer in the archives.  :)
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7964615
Cide, an EE Moderator will handle this for you.
Moderator, my recommended disposition is:

    Refund points and save as a 0-pt PAQ.

DanRollins -- EE database cleanup volunteer
0
 
LVL 5

Accepted Solution

by:
Netminder earned 0 total points
ID: 8014841
Per recommendation, points refunded and question closed.

Netminder
EE Admin
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month9 days, 23 hours left to enroll

623 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