Home > Net >  Some doubt in communication data frame
Some doubt in communication data frame

Time:09-20

1. The communication frame in a certain field of 1 byte, bit7 to bit0 followed by 10000000, how to convert a byte?

String a='10000000', byte b=the Convert. ToByte (a, 2)

This is the field of data?

Table 2. The LEN field is the data length, 2 bytes, if the field is 7 bytes, direct transfer int byte is ok?

CodePudding user response:

1, it should be you send, operating a line directly, need not String;
2, 7 bytes is what mean?

CodePudding user response:

Use BitConverter conversion to each other

CodePudding user response:

Fieldoffset, direct deposit int, and then directly into the byte
  •  Tags:  
  • C#
  • Related