Menu

#7 AS511 under windows XP

open
nobody
None
5
2008-02-07
2008-02-07
No

Hi, I try to use AS511 protocol but I see that libnodave openport with wrong setup.
Mainly:
Parity, stopbits, handshake.

Also I will be happy if I can use DTR and RTS signals for as power lines for convertor (this mean, I can set one stable level).

There is shor workaround to solve this isue:

if FProtocol=daveProtoAS511 then begin
GetCommState(DaveFDS.rfd,dcb);
dcb.Flags:=1;
dcb.StopBits:=ONESTOPBIT;
dcb.Parity:=EVENPARITY;
SetCommState(DaveFDS.rfd,dcb);
SetComLines;
sleep(200);
PurgeComm(DaveFDS.rfd,PURGE_RXCLEAR);
end;

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.