Example Code for PC-Network and USB Control Relay

This tutorial will teach you how to configure and use RLY-8-POE Relay Controller.

Hardware Preparation

  • POE Relay x1
  • PC X1
  • USB to UART or ethernet cable
  • POE Ethernet switch or ordinary Ethernet switch

Software Preparation

Wiring Diagram

We have two ways for the connection, one is through the cable, the other is through the USB, of course, you can use them the same time.

DFR0289-CON1.png

If you choose directly connect to the computer. Then the computer have to be set to a fixed IP, you can set computer's IP as 192.168.1.8, netmask 255.255.255.0, gateway 192.168.1.1

PC Control POE Relay

Open the Software

DFR0290-EXE1.png

Enter control panel

Select the network, and then select the Network Control button, enter the network control interface

DFR0290-EXE2.png

Control the POE relay with USB

RLY-8 is using STM32 MCU, please install the driver first!

Reset and Restore Factory Settings

On the device has a Reset button, Keep holding, when the lights began to flash,Has been bright, said the resumption of factory success.

Control the POE relay with network

DFR0290-EXE3.png

DFR0290-EXE5.png

DFR0290-EXE4.png

Result

RLY-8-reasult.png
RLY-8-reasult1.jpg

It may take some time when the RlY-8 has just started to plug in the electric, please be patient waiting for the emergence of network list.

It is recommended to click the Get Status button to get the current state when you want to control the relay.

Was this article helpful?

TOP