[fpc-pascal] com port using prolific driver
luca at ventoso.org
Sun Mar 20 21:27:37 CET 2011
Al 20/03/11 19:47, En/na johnelee1944 at googlemail.com ha escrit:
> Paul and other responders, thanks. Think I'm a bit clearer how to do it now.
> q1) My com device is an energy monitor that sends a block of xml data, 1000 bytes or so, every 6 secs. Guess this means I might be better 'using getbuf or whatever it's called in synaser, rather than single char at a time? Any examples of using this welcome.
If each line of xml has a terminator (say, crlf), you can use RecvTerminated
to read line by line.
Or, you can use RecvBufferEx, RecvBufferString, RecvPacket.
All methods are documented in synaser source.
> q2) does synaser work on win98/me?
No idea. I works under xp.
More information about the fpc-pascal