Groups | Search | Server Info | Login | Register
Groups > comp.lang.pascal.delphi.misc > #291
| Path | csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | "P E Schoen" <paul@peschoen.com> |
| Newsgroups | comp.lang.pascal.delphi.misc |
| Subject | Serial port component, ComDrv32 vs SerialNG |
| Date | Sat, 26 May 2012 20:27:24 -0400 |
| Organization | A noiseless patient Spider |
| Lines | 2 |
| Message-ID | <jprsdt$jlq$1@dont-email.me> (permalink) |
| Mime-Version | 1.0 |
| Content-Type | text/plain; format=flowed; charset="iso-8859-1"; reply-type=original |
| Content-Transfer-Encoding | quoted-printable |
| Injection-Date | Sun, 27 May 2012 00:27:42 +0000 (UTC) |
| Injection-Info | mx04.eternal-september.org; posting-host="nGGXvXLL6GwyB23nJ4M9mQ"; logging-data="20154"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/CWN52XxnW2Ky2ra3uwMRxFnE/K1Yo9H0=" |
| X-MimeOLE | Produced By Microsoft MimeOLE V15.4.3555.308 |
| X-Newsreader | Microsoft Windows Live Mail 15.4.3555.308 |
| Importance | Normal |
| Cancel-Lock | sha1:6XkKwKLCjZXPsnyqCqH8uSqllKA= |
| X-Priority | 3 |
| X-MSMail-Priority | Normal |
| Xref | csiph.com comp.lang.pascal.delphi.misc:291 |
Show key headers only | View raw
For a long time I have used the SerialNG component provided by Domis (http://www.torry.net/authorsmore.php?id=3670), and I was able to get it to work well for my application, but I had to do some tricky coding, such as setting a critical section, and saving incoming data to a separate buffer which was then used for error checking and data processing. It is an integral part of two of my products, and sometimes I still get errors, but they are more likely caused by the USB serial port driver. I'm using a Silicon Labs CP2103 USB device. Now I am working on another project, and I'm just reading a string of comma-separated text data with CRLF after each line. The line is about 30 characters and I'm transmitting at 9600 baud, 1 stop bit, no parity, and no flow control. These lines are transmitted every 300 mSec. I was able to use Hyperterm to verify that the data can be received and displayed accurately. Hyperterm is a problem on Win7 because you can't reload the HT files and must re-enter the communication parameters, but that's just an annoyance. But when I made a simple terminal program using D4 and the SerialNG component, I would get errors where it would miss characters and even entire sequences, and I was able to get some improvement (or break it completely) by fiddling with the cluster size and receive character timeouts. I was parsing the incoming data and using the memo.strings.add method to display each line when I detected a CRLF. So I thought maybe it was unsafe to do this from the receive cluster event processor. The demo seemed to work, but it is not a simple terminal and it also displays data as hex, with a date-time stamp. So, I downloaded and installed ComDrv32 (http://www.torry.net/pages.php?id=198), and confirmed that its terminal demo received and displayed the data properly, and I incorporated it in my program and it works perfectly well, without any "fiddling". I had a few problems installing the component and I had to restart D4, but then it seemed to compile and run fine. Does anyone have experience with either of these components? Or recommend another? I may try a new version of my Ortmaster application with the ComDrv32 component. If I can do it more simply, I will be happy. KISS is wonderful! Thanks, Paul
Back to comp.lang.pascal.delphi.misc | Previous | Next — Next in thread | Find similar
Serial port component, ComDrv32 vs SerialNG "P E Schoen" <paul@peschoen.com> - 2012-05-26 20:27 -0400
Re: Serial port component, ComDrv32 vs SerialNG Jamie <jamie_ka1lpa_not_valid_after_ka1lpa_@charter.net> - 2012-05-26 21:08 -0400
Re: Serial port component, ComDrv32 vs SerialNG "S.G" <S.G@none.special.ch> - 2012-05-27 12:44 +0300
Re: Serial port component, ComDrv32 vs SerialNG Marco van de Voort <marcov@turtle.stack.nl> - 2012-05-27 20:40 +0000
Re: Serial port component, ComDrv32 vs SerialNG "P E Schoen" <paul@peschoen.com> - 2012-05-27 22:29 -0400
Re: Serial port component, ComDrv32 vs SerialNG "S.G" <S.G@none.special.ch> - 2012-05-28 08:55 +0200
Re: Serial port component, ComDrv32 vs SerialNG Jamie <jamie_ka1lpa_not_valid_after_ka1lpa_@charter.net> - 2012-05-28 11:08 -0400
Re: Serial port component, ComDrv32 vs SerialNG "P E Schoen" <paul@peschoen.com> - 2012-05-29 00:31 -0400
Re: Serial port component, ComDrv32 vs SerialNG Marco van de Voort <marcov@toad.stack.nl> - 2012-05-29 07:34 +0000
Re: Serial port component, ComDrv32 vs SerialNG "S.G" <S.G@none.special.ch> - 2012-05-29 11:09 +0200
Re: Serial port component, ComDrv32 vs SerialNG "P E Schoen" <paul@peschoen.com> - 2012-05-29 06:20 -0400
Re: Serial port component, ComDrv32 vs SerialNG "P E Schoen" <paul@peschoen.com> - 2012-05-29 08:35 -0400
Re: Serial port component, ComDrv32 vs SerialNG Jamie <jamie_ka1lpa_not_valid_after_ka1lpa_@charter.net> - 2012-05-29 11:43 -0400
Re: Serial port component, ComDrv32 vs SerialNG "P E Schoen" <paul@peschoen.com> - 2012-05-30 03:10 -0400
Re: Serial port component, ComDrv32 vs SerialNG Jamie <jamie_ka1lpa_not_valid_after_ka1lpa_@charter.net> - 2012-05-30 11:01 -0400
Re: Serial port component, ComDrv32 vs SerialNG "P E Schoen" <paul@pstech-inc.com> - 2016-08-18 19:50 -0400
csiph-web