|
-
Dec 5th, 1999, 02:27 AM
#1
Thread Starter
Addicted Member
Hello, I have built an external device that transmits ASCII characters 0,1,2,3,4,5,6,7,8,9, and * via a serial connection. Using hyperterminal, I can connect to my device and indeed my device is transfering the characters correctly. I need MSComm to fire EACH time one character has been recieved.
Now, I have a MSComm Control, here is the settings I have used:
With comKeypad
.CommPort = CInt(sSetting)
.Settings = "9600N,8,1"
.InputLen = 1
.DTREnable =False
.EOFEnable = False
.RTSEnable = False
.Handshaking = comNone
.RThreshold = 1
.SThreshold = 0
End With
Now, since my device used NO handshaking signals, OnCOMM should fire everytime one single character is recived. Inside of OnCOMM(), I'm incrementing a variable and printing it to the debug window so I can keep track of how many times OnCOMM fires. Unfortunately, OnCOMM is firing 4-7 times per character. It correctly sends the one character to, say a text box, but still, the event fired way too many times. This is a big problem for me. I need to have it either fire only once, or fire a consistant number of times for each character.
So what could be the deal? Or maybe did I set the connection up wrong?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|