-
wpostma committed revision 12621 to the JEDI VCL for Delphi SVN repository, changing 1 files.
2009-12-21 19:41:39 UTC in JEDI VCL for Delphi
-
Do NOT use ShortString unless you are sure you won't hit the length limit on ShortString.
AnsiString and Bytes types are safe, byte size, and have no length limit.
2009-12-14 16:09:06 UTC in ComPort Library
-
wpostma committed revision 12619 to the JEDI VCL for Delphi SVN repository, changing 1 files.
2009-12-11 19:09:47 UTC in JEDI VCL for Delphi
-
wpostma committed revision 12618 to the JEDI VCL for Delphi SVN repository, changing 1 files.
2009-12-11 16:25:13 UTC in JEDI VCL for Delphi
-
That is kind of cool. :-)
I used to do railroads.
W.
2009-11-24 12:25:00 UTC in ComPort Library
-
Wow? How will you know if you got one rsponse, or two, and if you got the whole response or not? Shouldn't you read, and look for the nonvisible control characters that indicate the end of the line?
n := Length(Str);
if (n>MinimumLength) and ( Str[n]=Chr(13)) then
HandleReceivedData(Str);
W.
2009-11-24 02:24:53 UTC in ComPort Library
-
The illegible characters are called "carriage return" (CR) and "linefeed" (LF), I'm guessing.
They are part of a standard called ASCII. The letters and numbers you see are also part of that standard.
These are all "A B C" beginner things that you will not find so daunting once you have taken a little time to understand what an ASCII serial protocol is.
You read the bytes (in two reads...
2009-11-24 00:55:45 UTC in ComPort Library
-
So what you want to do is get rid of the terminal component, and just read and write from the com port yourself.
You don't need to emulate "how the terminal component works". You just need to read and write bytes (characters) from the com port.
ComPort.Read....
W.
2009-11-23 18:32:26 UTC in ComPort Library
-
Or are you asking, how does it work, internally? The thing receiving the information is notified (by an internal "callback"). This is similar to how data aware controls receive their data, from datasets. Callbacks (events) are a key part of component design.
2009-11-23 15:57:27 UTC in ComPort Library
-
Did you try ComTerminal.WriteStr('String') ?
W.
2009-11-23 15:56:30 UTC in ComPort Library