![Cyndar Electronic Technology XD-TOF-25 Operating Instructions Manual Download Page 32](http://html1.mh-extra.com/html/cyndar-electronic-technology/xd-tof-25/xd-tof-25_operating-instructions-manual_2704637032.webp)
Sensing the world
·
Leading the change
31
<STX>sMN{SPC}Run<ETX>
02
73 4D 4E
20
52 75 6E
03
<STX>
02
sMN
73 4D 4E
20
Run
52 75 6E
<ETX>
03
When the radar is operating normally, you will receive:
<STX>sAN{SPC}Run{SPC}1<ETX>
02 73 41 4E 20 52 75 6E 20 31 03
byte[]logout={ 0x02, 0x73, 0x4D, 0x4E, 0x20, 0x52, 0x75, 0x6E, 0x03 }; //Store command
clientStream.Write(logout, 0, logout)
;
//Send login instruction to radar
if (clientStream.CanRead)
{
byte[] runanwser = new byte[1024]; //Open up cache
StringBuilder myCompleteMessage = new StringBuilder(); //
Receive result variable
int numberOfBytesRead = 0;
do
{
numberofBytesRead = clientStream.Read(runanwser, 0, runanwser.Length);
//
Read TCPIP communication receive buffer
myCompleteMessage.AppendFormat("{0}",Encoding.ASCII.GetString(runanwser, 0,
numberOfBytesRead));
//
Write all the information stack read by the network port to the receiving result variable
}
while (clientStream.Data
Av
ailable); //
If the data does not arrive, the loop is received
//You can continue to operate the acceptance information in myCompleteMessage to determine
further operations. The following continues to extract key instruction information, which
may contain ETX, STX, you need to further elaborate processing
STEP16
:Request data (single)
Instruction
Actual
sending
instruction
(Hex)
Header
Footer
Space
(
SPC
)
(Routine 8) Log out and run
STEP15: Log out and exit the current authority and run the radar according to the configuration