I ran into a weird issue, and I'm curious for any insight.
I'm writing Win32 software to monitor two serial lines. I was 100% sure I got it right. The thread code is here:
(You can get to the other code by backing up the tree--I think everyone has seen ViewVC.)
I used a laptop running HyperTerminal (was on the computer) to send characters. I would type a character on the laptop and expect my program (running on my desktop) to display it.
I would get the effect that:
a)As long as I would type a different character than the last one I typed, no issue.
b)If I would continue to type the same character (such as "k" repeatedly) I would get an alternating pattern of "k" and a strange symbol that probably had a code above 127. The same applied for most of the other characters.
The effect is illustrated here:
where you can see the funny characters (click on the thumbnail to get the full-res image).
I was very suspicious, because my program uses communication timeouts and I thought maybe I had done something wrong. But I couldn't find any problem in my program.
So, I decided to download and install RealTerm
RealTerm works fine as a sender of characters. There are no issues with RealTerm.
Why the difference between HyperTerminal and RealTerm?
Why only when I type the same character over and over again?
Is this encoding or some sort of software error.
Any other explanations?
Thanks, The Lizard