CompuServe Thread

CanDo and SerialManager

3 messages in this thread
#553From: Mark OlbertSep 16, 1990 6:20 PM
Well, I managed tto figure out what was going wrong with my little CanDo terminal program. Turns out TymNet sends out characters with ascii codes above 127 — if you don't strip out the 8th bit you end up with what looks like garbage. Does anyone know why this 'extra' bit is not set to 0 for simple text? Now I've got another situation — doing single character i/o over the modem via ARexx messages is really slow. What's a good way around that? Set the data buffer larger and deal with bigger chunks? I thought I might miss partially filled buffers that way (like the famous hanging "ENTER ID:"), but it seems like SerialManager empties the buffer every time you reset it with SetBufferSize. So setting SetBufferSize to the same size as it was previously gets you whatever data is in the buffer. Unfortunately, this isn't documented so I'm not sure if it works under all circumstances. Anybody got any other ideas they'd care to share? – mark
#658From: Martin MurraySep 18, 1990 11:35 PM
The method of SetBufferSize DOES give you back whatever is in the buffer. That is not documented, but if you are using it, we will be careful not to break it in the future. I'd suggest using a large buffer, and a timer could force SerialManager to return the buffer contents every so often. Would that work?
#855From: Mark OlbertSep 22, 1990 12:23 PM
In fact that's just what I'm doing…although I seem to have strange gaps in the data stream I get back (i.e., some lines that I KNOW tymnet sends me are missing). – Mark