![Cyndar Electronic Technology XD-TOF-25 Operating Instructions Manual Download Page 19](http://html1.mh-extra.com/html/cyndar-electronic-technology/xd-tof-25/xd-tof-25_operating-instructions-manual_2704637019.webp)
Sensing the world
·
Leading the change
18
02
73 4D 4E
20
53 65 74 41 63 63 65 73 73 4D 6F 64 65
20
30
33
20
46 34 37 32 34 37 34 34
03
<STX>
02
sMN
73 4D 4E
20
SetAccessMode
53 65 74 41 63 63 65 73 73 4D 6F 64 65
20
30 33
20
46 34 37 32 34 37 34 34
<ETX>
03
If the command is successfully sent and the login is successful, you will receive the following feedback from the radar:
<STX>sAN(SPC)SetAccessMode(SPC)1<ETX>
02 73 41 4E 20 53 65 74 41 63 63 65 73 73 4D 6F 64 65 20 31 03
If the login command fails to be sent successfully, you will receive the following feedback:
<STX>sAN(SPC)SetAccessMode(SPC)0<ETX>
02 73 41 4E 20 53 65 74 41 63 63 65 73 73 4D 6F 64 65 20 30 03
byte[] loginlidar ={ 0x02, 0x73, 0x4D, 0x4E, 0x20, 0x53, 0x65, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73,
0x73, 0x4D, 0x6F, 0x64, 0x65, 0x20, 0x30, 0x33, 0x20, 0x46, 0x34, 0x37, 0x32, 0x34, 0x37, 0x34,
0x34, 0x03 }; //Radar login instruction
clientStream.Write(loginlidar, 0, loginlidar.Length)
;
//Send login instruction to radar
if (clientStream.CanRead)
{
byte[] loginanswer = new byte[1024]; //Open up cache
StringBuilder myCompleteMessage = new StringBuilder(); //
Receive result variable
int numberOfBytesRead = 0;
do
{
numberofBytesRead = clientStream.Read(loginanswer, 0, loginanswer.Length);
//
myCompleteMessage.AppendFormat("{0}",Encoding.ASCII.GetString(myReadBuffer, 0,
numberOfBytesRead));
//
Write all the information stack read by the network port to the receiving result variable
Header
Actual sending
instruction (Hex)
Data content
Footer
Space
(
SPC
)
Space
(
SPC
)
Space
(
SPC
)
03 (Client login
status bit)
F4724744 (Client
login password)
(Routine 2) Log in to the device
Read TCPIP communication receive buffer