I am trying to cancel the development of a serial port device using hdlc for its packet format. Based on the documentation, the package should contain a bitwise reference to the command (the first 4 bytes), which in this case "HELO", Monitoring the serial port using the source program shows what the bitwise inversion should be:
HELO -> b7 ba b3 b0
READ -> ad ba be bb
The problem is that I do not get the value even remotely.
public object checksum
{
get
{
var cmdDec = (int)Char.GetNumericValue((char)this.cmd);
return (cmdDec ^ 0xffffffff);
}
}
source
share