Hi Guys,
I need to send Hex bytes down a serial port. e.g. 01 23, 50, FE, 0A
Possibly with a 500ms pause between each.
What is the best way to do this please?
Regards & TIA,
Ian
We'd recommend to write hex values as bytes via vacomm.WriteBuf()
i.e.
b: byte;
b := $01;
vacomm.WriteBuf(b,1);
// wait 500ms
b := $23;
vacomm.WriteBuf(b,1);
// wait 500ms
b := $50;
vacomm.WriteBuf(b,1);
// wait 500ms
b := $FE;
vacomm.WriteBuf(b,1);
// wait 500ms
b := $0A;
vacomm.WriteBuf(b,1);
Excellent! Thanks Bruno.
Regards,
ian
It seems that this is not working anymore.
tried it on several ways, but it seems that only from $00 - $7F is send (or received)
Want to send $83, but receive $3
Regards
Arnold