Milesight D2D Settings
Milesight D2D protocol is developed by Milesight and used for setting up transmission among Milesight devices without a gateway. When the Milesight D2D setting is enabled, UC100 can work as a Milesight D2D controller to send control commands to other devices or work as a Milesight D2D agent to receive commands to trigger a reboot or message to the network server.
1. Enable Milesight D2D feature and define a unique D2D key that is the
same as Milesight D2D controller or agent devices. (Default D2D key:
5572404C696E6B4C6F52613230313823)


2. Configure the RX2 datarate and RX2 frequency.

Note: It is
suggested to change the default values if there are many LoRaWAN® devices
around.

3. Go to Command page to add D2D Commands. For more details refer to IF-THEN command.

- Milesight D2D Controller: Set the IF condition as any option and the Then
as
Send a D2D control command. When the IF condition triggers, UC100 can work as Milesight D2D controller to send a control command to control the Milesight D2D agent device. The command should be a 2-byte hexadecimal number.

- Milesight D2D Agent: Set the IF condition as
Received a D2D control commandand the Then as any action. When UC100 receives a Milesight D2D command, it can work as a Milesight D2D agent to restart the device, send a server message, send a Milesight D2D control command, send a command via the RS485 interface or upload a data packet.
