Home > Net >  A serial port ASCII 16 send problem
A serial port ASCII 16 send problem

Time:10-08

RS232 serial port communication
Below gives the manufacturer to send data communication format,
Send the format if it is a string, and what should I write BYTE form, especially there is 0




CodePudding user response:

Zero is zero! No need special attention.

But you wrote only 0 and 1 but here is not only a 0 to 1 which bytes are. What do you mean you didn't show.

If I see the above basic is

 
Var data=https://bbs.csdn.net/topics/new byte [5],0,0,0,0 {0}.

. Each byte array from the text box. Then the send (data);

But look at the following seem to have other check?

CodePudding user response:

You have five 30 instances of the format, can be understood as data corresponding to the above five instructions,
0 x30 is the meaning of the characters 0, character 1 is 0 x31, just replace it yourself,

  •  Tags:  
  • C#
  • Related