Bonjour,
J’ai acheté une carte relais IO que je voudrais intégrer dans jeedom mais je ne trouve pas de plugin la faisan fonctionner. Est-ce que quelqu’un a déjà réussi à l’intégrer ?
Si quelqu’un pouvait m’aider, je vous remercies.
Fabien
WanRomJun Module De Relais De Qualité Industrielle 1 Pièces HHC-N8I8OP, Module De Relais Réseau DC7~24V 8 Canaux, Dispositif De Relais De Télécommande Ethernet vers RS485
HHC-N8I8OP Instructions
Electrical parameters
1.Power supply DC 7-24 volts, can choose DC seat or terminal input power supply, DC connector specifications 5.5-2.1MM (external diameter-internal diameter) with 5.5-2.5MM input will lead to poor contact. There will be no lights on and off, communication can not be connected.
2.The working temperature range of the board is - 40 to 85 degrees Celsius.
3.8 independent relay output, output without voltage. The DC rating of a single relay is 10A, the AC rating is 10A, the maximum AC rating is 250V, and the maximum DC rating is 30V. Do not exceed the rated value in the use process, and leave a margin in use. The relay has three contacts, which are normally open (NO on product screen printing) contacts, normally closed contacts (NC) and common contacts (COM) followed by the digital channel of the relay. (Relay wiring refers to the appendix at the end of this manual)
4.10 channels input independently. IN9 means full switching, IN9 has switching input, all relays are suction, IN10 means full switching, when IN10 has transmission, all relays are closed. IN1-IN8 is an eight-way input tool that users can configure to work in three different ways by configuring parameter tools. They can choose under the « input mode » of configuring tools. In order to acquire the input state, a command to read the input state should be sent to the device. « Trigger relay » mode, this mode has input, the corresponding relay state flips, IN1-IN8 control corresponding to 1-8 relay. « Active Upload » mode, which actively sends input status to the network connected to the device when the input changes.
5.The device has an RS485 interface. It can be controlled by RS485 equipment from other manufacturers. It is possible to achieve clear transmission of network data to RS485 data, and the baud rate 300-115200 can be configured. When parity checking is used, data bits must be allocated to 9 bits, and serial port parameters are configured through configuration tools.
6.The device has power-down saving function, which can save the status of the relay and can be configured by configuration tools.
7.Reset configuration. The position of RESET is the key to restore the factory settings. Restore the factory settings steps: first power off, then hold down the reset button, and then power the product, 10 seconds later release the button, and then re-power. The default IP is 192.168.0.105.
Parameter configuration
Open the configuration software, select the network card, and click the « Search » button. After searching for the device, the interface is as follows.
The image above searches for a device with an IP of 192.168.0.105, and double-clicks the IP to read device parameters. Then you can modify the device parameters.
Modify the parameters of the device and click the « SAVE » button. If the settings are successful, the device success dialog box will pop up. As shown in the following figure.
Configuration interface description
A complete configuration interface is shown in the following figure.
Network Card:The drop-down menu lists all the network cards of the computer.
Equipment list:It consists of device name and device IP. Searched devices are displayed here. Click the « CLEAR » button to clear the list of devices.
Mode**:**Devices can work in TCP server, TCP client, UDP server, UDP client and DNS. In DNS mode, the device interprets the domain name in the « domain name » box and gets the IP address. After the device connects the remote TCP server with the TCP client, the remote port is the port of the remote TCP server.
Local IP:Device IP.
Destination IP**:**The device works on the TCP client or UDP client and connects to the IP of the remote host. In other ways, this parameter is invalid.
Local Port**:**Port of device switching quantity (control relay output and read switching quantity input). The device is equipped with RS485 port (realizing transparent transmission from network to RS485). In order to facilitate data transmission, the network port of RS485 adds 1 to the device port value. For example, this port value is 5000. Then 5001 is the network port of RS485. The data sent to the 5001 port will come from RS485.
Destination Port**:**The device works on the port of the remote host connected to the TCP client or UDP client or DNS domain name mode. In other ways, this parameter is invalid. This port is the remote port of the switching quantity, and this value plus 1 is the remote port of the RS485 network.
Subnet Mask**:**The subnet mask of the device.
Gateway**:**Gateway of equipment.
Implementor name**:**The device name can be customized. It can be digitally or alphabetically or in Chinese.
Physical address**:**Default value 485300575500,The use of multiple devices is modified to be different, the first 48 should not be changed, other locations can be changed at will.
Input Mode**:**There are three input modes: Ordinary mode,trigger mode and Automatic mode. Ordinary mode is the input of IN1-IN8, which is a common acquisition input. In the Trigger mode, the IN1-IN8 input triggers the corresponding 8-way relay. In the Automatic mode, when the input state of IN1-IN8 changes, it will actively send the state to the connected network.
Domain name:In the case of interconnection, if the remote host IP binds the domain name, the domain name can be used to connect, and the « DNS » mode of operation is selected.
Automatic acquisition of IP**:**If this option is checked, the router should turn on the automatic IP allocation function, otherwise it will not be able to use because the device can not automatically get the correct IP.
Power-off Preservation**:**If this option is checked, the status of the relay will be saved after power failure. Power on will restore the state of the relay.
Serial port parameters **:**The baud rate range is 300-115200. There are three ways of checking: odd check, parity check and no check. When using checking, data bits should be added one bit, for example, the original 8-bit communication mode without checking is used. If using odd or even checking, the data bits should be set to 9 bits. Otherwise, it will lead to incorrect communication.
MODBUS TCP**:**When this option is checked, the transparent transmission from Ethernet to RS485 becomes the conversion from MODBUS TCP to MODBUS RTU.
Time Interval:The interval between circulating heartbeat packets in seconds.
Content**:**The content of the heartbeat package can be customized. The content can be a combination of numbers, letters, numbers and letters. The heartbeat packet is sent to all connected networks at the same time.
Detection time**:**Communication detection time, in seconds, (if set too small, will lead to cycle restart) If no data is received during the set heartbeat time, the device will be forced to restart. This function can cooperate with heartbeat packet to realize network detection. For example, set the heartbeat packet to 5 seconds and the communication detection to 1 minute. When the connected network receives the heartbeat packet, it responds to a valid command (such as read) to realize online detection. If this value is 0, this function is turned off.
Command interpretation
The above commands are sent and received in character form. No carriage return, no space after command. To send the hexadecimal system, the ASCII code table should be converted by itself.
Get device name
Send:name
Return: name = « HHC-N8I8OP »
HHC-N8I8OP is the device name and can be configured by configuration tools.
Turn o****n channel 1 relay
Send:on1
Return:on1
Turn o****ff channel 1 relay
Send:off1
Return:off1
The command format is on and off followed relay channel, 2-8 control is the same as above.
Control all relays at the same time
Send: all00000011
Return: relay 00000011
1 means turn on, 0 means turn off, the above instructions indicate that the channel l relay turn on with the channel 2 relay, and channel third-eighth relay is turn off. This instruction returns to the state of the relay after execution. The state return information of the relay is the same as that of the read instruction.
Time delay control
Send: on1:02
Return: on1
In the above instructions, the relay will be turn off after 2 seconds, on1: the relay to be controlled, followed by a delay time of 99 seconds. For example, on2:12 means that the channel 2 relay will be turn off after 12 seconds. The other 2-8 control is the same as above.
Read relay status
Send:read
Return: relay 00000001 (state of 8-channe relay, channel 1 relay turn on, Other channels turn off)
Read Switch Input
Send:input
Return: input00000001
Input followed by 00000001, 1 means switching input, 0 means no switching input, 8-way switching input state, the above instructions indicate that the first way has switching input, 2-8 channels have no switching input. The switching quantities of the 9th and 10th routes are used to control the full switching and full switching of the relay, which can not be read. The input is configured as Automatic mode. When the switch changes the input, the return information will be sent automatically.
MODE description
Test environment: computer system WINDOWS 10, 64 bit system, computer IP, 192.168.0.100, gateway 192.168.0.1, subnet mask 255.255.255.0
TCP Service
Connect the Port of device switching quantity and send on1 to turn on channel 1 relay.
Connect RS485 network port, because RS485 network port is the Port of device switching quantity plus 1, so from the figure above you can get RS485 network port is 5001.
Send ABCD to port 5001, and data ABCD comes out from port RS485.
TCP Client
The configuration parameters above show that the IP of the remote server is 192.168.0.100 and the remote port is 5000. Then we have to create two ports on IP’s 192.168.0.100 computer. 5000 and 5001.(the Port of device switching quantity and RS485 network port)
UDP Service
The device configuration parameters are shown in the following figure.
the Port of device switching quantity connection is shown in the following figure.
The connection mode of RS485 network port is shown in the following figure.
UDP Client
The device configuration parameters are shown in the following figure.
the Port of device switching quantity connection is shown in the following figure.
The connection mode of RS485 network port is shown in the following figure.
DNS
Fill in the domain name in the domain name input box, the device will interpret the actual IP of the domain name, and then the device works in the way of TCP client to connect the TCP server where the domain name is located. Refer to page 8 for how TCP works.
Wiring instructions
1.Keystroke input
2**.**5V input
3.1****2V input
**4.**Relay wiring