J
jyotish.bora
Hi ,
i m trying to send a message packet to a RS232 port. I have created the
handle and set the parameters. Now the general format of the packet is
<STX>command<ETX><LRC>
I have also written the code to calculate <LRC>.
now i dont understand how to make the packet string. should i call
writefile with STX, command , ETX and LRC characters differently or in
a single string. can anyone give me the exact string for a command say
z42. should it be something like "\2z42\3\lrc". Plss help, thanks in
advance
i m trying to send a message packet to a RS232 port. I have created the
handle and set the parameters. Now the general format of the packet is
<STX>command<ETX><LRC>
I have also written the code to calculate <LRC>.
now i dont understand how to make the packet string. should i call
writefile with STX, command , ETX and LRC characters differently or in
a single string. can anyone give me the exact string for a command say
z42. should it be something like "\2z42\3\lrc". Plss help, thanks in
advance