Modbus RTU IO 8CH
| ||
Overview
Electrical Safety Precautions
- This product should be operated and used by professional electricians or technical personnel. Please ensure electrical safety measures are in place, including protection against leakage and insulation.
- Before installing, maintaining, or replacing relay equipment, always turn off the power and unplug the plug.
- Do not attempt to dismantle relay equipment to avoid damaging the device or risking electric shock.
- Please properly install and place relay equipment. Avoid use in damp, overheated, or flammable environments to prevent accidents caused by improper installation or use.
This product is an industrial-grade RS485 interface controlled 8DI / 8DO digital isolated input-output module. It supports passive input/active input, utilizes Modbus RTU protocol, and includes built-in protection circuits such as power isolation, optocoupler isolation, self-resetting fuses and TVS.
Specification
Communication Interface | RS485 |
---|---|
Baud Rate | 4800, 9600, 19200, 38400, 57600 115200, 128000, 256000 |
Default Communication Format | 9600, N, 8, 1 |
Modbus Protocol | Standard Modbus RTU Protocol |
Power Supply | DC 7~36V |
Digital Input | 8DI, 5~36V, passive input/active input (NPN or PNP) Built-in bidirectional optocoupler |
Digital output | 8DO, 5~40V, open-drain output, output load 500mA/channel(MAX) |
Set the device address range | 1~255 (1 by default, corresponds to the hexadecimal value of 0x01 |
Basic Function
Supports reading digital input by sending Modbus RTU protocol commands via RS485 for digital output control.
Wiring Introduction
Hardware Wiring Introduction
Channel Label | Function | Channel Label | Function |
7~36V | Power Supply Positive | 485 A+ | RS485 Signal Wire A |
GND | Power Supply Negative | 485 B- | RS485 Signal Wire B |
NC | Not Connected | EARTH | RS485 shielding ground wire |
DGND | Signal Ground | DGND | Signal Ground |
DI1 | The input terminal of the first channel | DO1 | The output terminal of the first channel |
DI2 | The input terminal of the second channel | DO2 | The output terminal of the second channel |
DI3 | The input terminal of the third channel | DO3 | The output terminal of the third channel |
DI4 | The input terminal of the fourth channel | DO4 | The output terminal of the fourth channel |
DI5 | The input terminal of the fifth channel | DO5 | The output terminal of the fifth channel |
DI6 | The input terminal of the sixth channel | DO6 | The output terminal of the sixth channel |
DI7 | The input terminal of the seventh channel | DO7 | The output terminal of the seventh channel |
DI8 | The input terminal of the eighth channel | DO8 | The output terminal of the eighth channel |
DI COM[1] | the common terminal for input signals | DO COM[2] | the common terminal for output signals |
- ↑ DI COM serves as the common terminal for input signals, capable of being not connected or connected to either the positive or negative pole of the power supply. It can directly draw power from the power supply or have an independent power source.
- ↑ DO COM is the common terminal for output signals, connect to the positive pole of the output power.
Digital Input Wiring
The digital input wiring types: passive dry contact input, active wet contact NPN input, active wet contact PNP input.
Digital Input Wiring Diagram
- Passive dry contact input wiring diagram:
- Active wet contact NPN input wiring diagram:
- Active wet contact PNP input wiring diagram:
Digital Output Wiring
- Digital output wiring diagram:
Dimensions
Hardware Test
RS485 Test
- Connect the USB TO 485 to the target board through dupont line, connect "A-"->"A-" and "B-"->"B-" as shown below:
- Download SSCOM and open it on the computer, open the corresponding port number, and set the baud rate as 9600. Clicking on multiple strings will open multiple string sending window. Clicking on the corresponding function will send the corresponding command.
- If you need to send other commands then select HEX to send, plus check select ModbusCRC16 checksum, enter the first six bytes of the command, and click send then the CRC checksum will be added automatically.
- For detailed control commands, please see the development protocol.
Demo Test
Raspberry Pi
Open the Raspberry Pi terminal and input the following commands to enter the configuration interface.
sudo raspi-config Select Interfacing Options -> Serial Port, select Yes to open the hardware serial port
And then reboot the Raspberry Pi:
sudo reboot
Insert the RS485 CAN HAT into the Raspberry Pi, and connect the Modbus RTU Relay module to the RS485 CAN HAT through A and B.
If you are using other 485 devices, you need to make sure to connect A-A, B-B.
Run the following commands:
sudo apt-get install unzip wget https://files.waveshare.com/wiki/Modbus-RTU-IO-8CH/Modbus_RTU_IO_Code.zip unzip Modbus_RTU_IO_Code.zip cd Modbus_RTU_IO_Code/Python3 sudo python3 main.py
After the demo normally runs, each channel can be opened and closed in order, and the current input status is displayed.
STM32
The STM32 demo is based on the NUCLEO-F103RB and RS485 CAN Shield module.
Find the STM32 demo file directory and open the STM32 project. Please note that the keil5 software is installed before use, and download the demos to the development board.
After running normally, each channel can opened and closed in order. The serial port will output the commands to be sent and finally display the current input status.
Arduino
The Arduino demo is based on the UNO PLUS and RS485 CAN Shield module.
Use the Arduino IDE to open the demo, select the corresponding development board, and download the demos.
After running normally, each channel will open and close in order. The serial port will output the commands to be sent and finally display the current input status.
Development Protocol
Function Code Introduction
Function Code | Description |
---|---|
01 | Read output status |
02 | Read input status |
03 | Read the reserved register |
05 | Write a single output channel |
06 | Set a single register |
0F | Write multiple output channels |
10 | Set multiple registers |
Register Address Introduction
Address (HEX) | Address storage content | Register value | Permission | Modbus Function Code |
---|---|---|---|---|
0x0000 …… 0x0007 |
Output channel 1~8 address | 0xFF00: open; 0x0000: close 0x5500: flip |
Read/Write | 0x01,0x05,0x0F |
0x00FF | Control all registers | 0xFF00: open all output 0x0000: close all output 0x5500: flip all output |
Write | 0x05 |
0x0200 …… 0x0207 |
Output channel 1~8 flash on | Interval time: data*100ms Value: 0x0007, Interval time: 7*100MS = 700MS |
Write | 0x05 |
0x0400 …… 0x0407 |
Output channel 1~8 flash off | Interval time: data*100ms Value: 0x0007, Interval time: 7*100MS = 700MS |
Write | 0x05 |
1x0000 …… 1x0007 |
Input channel 1~8 address | Indicates 0~8 input channel status | Read | 0x02 |
4x1000 …… 4x1007 |
Ouput channel 1~8 control mode | 0x0000~0x0002 | Read/Write | 0x03, 0x06, 0x10 |
4x2000 | UART parameters | The high eight bits indicate the parity mode: 0x00~0x02 The low eight bits indicate the baud rate mode: 0x00~0x07 |
Write | 0x06 |
4x4000 | Device address | Directly store Modbus address Device Address: 0x0001-0x00FF |
Read/Write | 0x03, 0x06 |
4x8000 | Software version | Converting to decimal and then shifting the decimal point two places to the left will represent the software version 0x0064 = 100 = V1.00 |
Read | 0x03 |
Control Single Output Channel
Send code: 01 05 00 00 FF 00 8C 3A
Field | Description | Description |
---|---|---|
01 | Device address | 0x00 indicates the broadcast address; 0x01-0xFF indicates the device address |
05 | 05 Command | Write a single output channel |
00 00 | Address | The register address to control the output channels: 0x0000 - 0x0008 |
FF 00 | Command | 0xFF00: on; 0x0000: off; 0x5500: flip |
8C 3A | CRC16 | The CRC16 checksum of the first 6 bytes of data |
Return code: 01 05 00 00 FF 00 8C 3A
Field | Description | Note |
---|---|---|
01 | Device address | 0x00 indicates the broadcast address; 0x01-0xFF indicates the device address |
05 | 05 Commadn | Write a single output channel |
00 00 | Address | The register address to control the output channels: 0x0000-0x0008 |
FF 00 | Command | 0xFF00: on 0x0000: off 0x5500: flip |
8C 3A | CRC16 | The CRC16 checksum of the first 6 bytes of data |
For example:
[No.1 Address Device]:
Channel 0 output open: 01 05 00 00 FF 00 8C 3A
Channel 0 output closed: 01 05 00 00 00 00 CD CA
Channel 1 output open: 01 05 00 01 FF 00 DD FA
Channel 1 output closed: 01 05 00 01 00 00 9C 0A
Channel 2 output open: 01 05 00 02 FF 00 2D FA
Channel 2 output closed: 01 05 00 02 00 00 6C 0A
Channel 3 output open: 01 05 00 03 FF 00 7C 3A
Channel 3 output closed: 01 05 00 03 00 00 3D CA
Channel 0 output toggle: 01 05 00 00 55 00 F2 9A
Channel 1 output toggle: 01 05 00 01 55 00 A3 5A
Channel 2 output toggle: 01 05 00 02 55 00 53 5A
Channel 3 output toggle: 01 05 00 03 55 00 02 9A
All Output Channel Control
Sending code: 01 05 00 FF FF 00 BC 0A
Field | Description | Note |
---|---|---|
01 | Device Address | 0x00 indicates the broadcast address; 0x01-0xFF indicates the device address |
05 | 05 Command | Write a single output channel command |
00 FF | Address | Fixed 0x00FF |
FF 00 | Command | 0xFF00: on; 0x0000: off; 0x5500: flip |
BC 0A | CRC16 | The CRC16 checksum of the first 6 bytes of data |
Receive code: 01 05 00 FF FF 00 BC 0A
Field | Description | Note |
---|---|---|
01 | Device Address | 0x00 indicates the broadcast address; 0x01-0xFF indicates the device address |
05 | 05 Command | Write a single output channel command |
00 FF | Address | Fixed 0x00FF |
FF 00 | Command | 0xFF00: on; 0x0000: off 0x5500: flip |
BC 0A | CRC16 | The CRC16 checksum of the first 6 bytes of data |
For example:
[No.1 Address Device]:
Open all output channels: 01 05 00 FF FF 00 BC 0A
Close all output channels: 01 05 00 FF 00 00 FD FA
Flip all output channels: 01 05 00 FF 55 00 C2 AA
Read Output Channel Status
Sending code: 01 01 00 00 00 08 3D CC
Field | Description | Note |
---|---|---|
01 | Device Address | 0x00 indicates the broadcast address; 0x01-0xFF indicates the device address |
01 | 01 Command | Query the output channel status command |
00 00 | The initial address of the output channel | Fixed 0x0000 |
00 08 | Number of output channels | Fixed 0x0008 |
3D CC | CRC16 | The CRC16 checksum of the first 6 bytes of data |
Receive code: 01 01 01 00 51 88
Field | Description | Note |
---|---|---|
01 | Device Address | 0x00 indicates the broadcast address; 0x01-0xFF indicates the device address |
01 | 01 Command | Query the output channel status command |
01 | Bytes | Returns all bytes of the status message |
00 | Query status | Returned output channel status Bit0: the first output channel status Bit1: the second output channel status Bit2: the third output channel status …… Bit7: the eighth output channel status |
51 88 | CRC16 | The CRC16 checksum of the first 6 bytes of data |
For example:
[No.1 Address Device]
Send: 01 01 00 00 00 08 3D CC
Receive: 01 01 01 00 51 88 //Close all output channels
Send: 01 01 00 00 00 08 3D CC
Receive: 01 01 01 01 90 48 //Open output channel 0 and close other output channels
Send: 01 01 00 00 00 08 3D CC
Receive: 01 01 01 41 91 B8 //Open output channel 0 and output channel 6, close other output channels
Write the Output Channel Status
Send code: 01 0F 00 00 00 08 01 FF BE D5
Field | Description | Note |
---|---|---|
01 | Device Address | 0x00 indicates the broadcast address; 0x01-0xFF indicates the device address |
0F | 0F Command | Write the output channel status command |
00 00 | The initial address of the output channel | Fixed 0x0000 |
00 08 | Number of output channels | Fixed 0x0008 |
01 | Byte numbers | Fixed 0x01 |
FF | Output channel status | Bit0: control the first output channel Bit1: control the second output channel Bit2: control the third output channel …… Bit7: control the eighth output channel |
BE D5 | CRC16 | The CRC16 checksum of the first 6 bytes of data |
Receive code: 01 0F 00 00 00 01 94 0B
Field | Description | Note |
---|---|---|
01 | Device Address | 0x00 indicates the broadcast address; 0x01-0xFF indicates the device address |
0F | 0F Command | Control all registers command |
00 00 | Output channel address | Fixed 0x0000 |
00 08 | Number of output channels | Fixed 0x0008 |
54 0D | CRC16 | The CRC16 checksum of the first 6 bytes of data |
For example:
[No.1 Address Device]
Open all output channels: 01 0F 00 00 00 08 01 FF BE D5
Close all output channels: 01 0F 00 00 00 08 01 00 FE 95
0-1 on, 3-7 off: 01 0F 00 00 00 08 01 03 BE 94
Output Channel Flash ON/OFF Command
Send code: 01 05 02 00 00 07 8D B0
Field | Description | Note |
---|---|---|
01 | Device Address | 0x00 indicates the broadcast address; 0x01-0xFF indicates the device address |
05 | 05 Command | Single control command |
02 | Command | 02: Flash on, 04: Flash off |
00 | Output channel address | The output channel address to be controled: 0x00~0x08 |
00 07 | Interval time | Interval time=Data*100ms Value: 0x0007, interval time: 7*100MS = 700MS |
8D B0 | CRC16 | The CRC16 checksum of the first 6 bytes of data |
Receive code: 01 05 02 00 00 07 8D B0
Field | Description | Note |
---|---|---|
01 | Device Address | 0x00 indicates the broadcast address; 0x01-0xFF indicates the device address |
05 | 05 Command | Single control command |
02 | Command | 02: Flash on, 04: Flash off |
00 | Output channel address | The output channel address to be controled: 0x00~0x08 |
00 07 | Interval time | Interval time=Data*100ms Value: 0x0007, Interval time: 7*100MS = 700MS |
8D B0 | CRC16 | The CRC16 checksum of the first 6 bytes of data |
Note:
The maximum setting for the flash-on flash-off time is 0x7FFF.
For example:
[No.1 device address]
Channel 0 output flash on: 01 05 02 00 00 07 8D B0 //700MS = 7*100MS = 700MS
Channel 1 output flash on: 01 05 02 01 00 08 9C 74 //800MS
Channel 0 output flash off: 01 05 04 00 00 05 0C F9 //500MS
Channel 1 output flash off: 01 05 04 01 00 06 1D 38 //600MS
Read Input Channel Status
Send code: 01 02 00 00 00 08 79 CC
Field | Description | Note |
---|---|---|
01 | Device Address | 0x00 indicates the broadcast address; 0x01-0xFF indicates the device address |
02 | 02 Command | Read the input status command |
00 00 | The initial address of the input | Fixed 0x0000 |
00 08 | Number of Registers | Fixed 0x0008 |
79 CC | CRC16 | The CRC16 checksum of the first 6 bytes of data |
Receive code: 01 02 01 00 A1 88
Field | Description | Note |
---|---|---|
01 | Device Address | 0x00 indicates the broadcast address; 0x01-0xFF indicates the device address |
02 | 02 Command | Read the input status command |
01 | Byte number | Returns all bytes of the status message |
00 | Query status | Returned input channel status Bit0: the first channel input status; Bit1: the second input channel status Bit2: the third input channel status …… Bit7: the eighth input channel status |
A1 88 | CRC16 | The CRC16 checksum of the first 6 bytes of data |
For example:
[NO.1 address device]
Send: 01 02 00 00 00 08 79 CC
Receive: 01 02 01 00 A1 88 //Inputs are all untriggered
Send: 01 02 00 00 00 08 79 CC
Receive: 01 02 01 01 60 48 //Channel 1 input triggered, remaining channels not triggered
Send: 01 02 00 00 00 08 79 CC
Receive: 01 02 01 41 61 B8 //Channel 1, 7 input triggered, remaining channels not triggered
Read Output Channel Control Mode
Send code: 01 03 10 00 00 08 40 CC
Field | Description | Note |
---|---|---|
01 | Device Address | 0x00 indicates the broadcast address, 0x01-0xFF indicates the device address |
03 | 03 Command | Read the holding register |
10 00 | The initial address of the register | 0x1000 - 0x1007 corresponds to the channel 1~8 output |
00 08 | Number of Registers | Read the number of registers, up to 8 channels |
40 CC | CRC16 | The CRC16 checksum of the first 6 bytes of data |
Receive code: 01 03 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 E4 59
Field | Description | Note |
---|---|---|
01 | Device Address | 0x00 indicates the broadcast address, 0x01-0xFF indicates the device address |
03 | 03 Command | Read the holding register |
10 | Byte Numbers | Returns all bytes of the status message |
00 00 …… 00 00 |
Control Mode | Indicates channel 1~8 output control mode, 0x0000~0x0002 indicates three control modes 0x0000: Normal mode, the output channel is directly controlled by the command; 0x0001: Linkage mode, the state of the output channel is the same as the state of the corresponding input channel; 0x0002: Flip mode, Input channel input a pulse corresponding to the output channel state flipped once. |
E4 59 | CRC16 | The CRC16 checksum of the first 6 bytes of data |
For example:
[NO.1 address device]
Read channel 1-8 output channel control mode: 01 03 10 00 00 08 40 CC
Read channel 1 output control mode: 01 03 10 00 00 01 80 CA
Read channel 2 output control mode: 01 03 10 01 00 01 D1 0A
Read channel 3-5 output control mode: 01 03 10 02 00 03 A0 CB
Set Single Output Channel Control Mode
Send Code: 01 06 10 00 00 01 4C CA
Field | Description | Note |
---|---|---|
01 | Device Address | 0x00 indicates the broadcast address, 0x01-0xFF indicates the device address |
06 | 06 Command | Write a single register command |
10 00 | The initial address of the register | 0x1000 - 0x1007 corresponds to channel 1~8 output channel control mode |
00 01 | Control Mode | Indicates channel 1~8 output control mode, 0x0000~0x0002 indicates three control modes 0x0000: Normal mode, the output channel is directly controlled by the command; 0x0001: Linkage mode, the state of the output channel is the same as the state of the corresponding input channel; 0x0002: Flip mode, Input channel input a pulse corresponding to the output channel state flipped once. |
4C CA | CRC16 | The CRC16 checksum of the first 6 bytes of data |
Receive code: 01 06 10 00 00 01 4C CA
Field | Description | Note |
---|---|---|
01 | Device Address | 0x00 indicates the broadcast address, 0x01-0xFF indicates the device address |
06 | 06 Command | Write a single register command |
10 00 | The initial address of the register | 0x1000 - 0x1007 corresponds to channel 1~8 output control mode |
00 01 | Control Mode | Output channel control mode, 0x0000~0x0002 indicates three control modes |
4C CA | CRC16 | The CRC16 checksum of the first 6 bytes of data |
For example:
[NO.1 address device]
Set channel 1 output as the linkage mode: 01 06 10 00 00 01 4C CA
Set channel 2 output as the flip mode: 01 06 10 01 00 02 5D 0B
Set Multiple Output Channel Control Mode
Send code: 01 10 10 00 00 08 10 00 01 00 01 00 01 00 01 00 01 00 01 00 01 00 01 7C B1
Field | Description | Note |
---|---|---|
01 | Device Address | 0x00 indicates the broadcast address, 0x01-0xFF indicates the device address |
10 | 10 Command | Write multiple registers command |
10 00 | The initial address of the register | 0x1000 - 0x1007 corresponds to channel 1~8 output control mode |
00 08 | Number of Registers | Set the number of registers, up to 8 channels |
10 | Byte numbers | Sets the number of output bytes |
00 01 …… 00 01 |
Control Mode | Indicates channel 1~8 output control mode, 0x0000~0x0002 indicates three control modes 0x0000: Normal mode, the output channel is directly controlled by the command; 0x0001: Linkage mode, the state of the output channel is the same as the state of the corresponding input channel; 0x0002: flip mode, input channel input a pulse corresponding to the output channel state flipped once. |
7C B1 | CRC16 | The CRC16 checksum of the first 6 bytes of data |
Receive code: 01 10 10 00 00 08 C5 0F
Field | Description | Note |
---|---|---|
01 | Device Address | 0x00 indicates the broadcast address, 0x01-0xFF indicates the device address |
10 | 10 Command | Write multiple registers command |
10 00 | The initial address of the register | 0x1000 - 0x1007 corresponds to channel 1~8 output control mode |
00 08 | Number of registers | Set the number of registers, up to 8 channels |
C5 0F | CRC16 | The CRC16 checksum of the first 6 bytes of data |
For example:
[NO.1 address device]
Set channel 1-8 output as the linkage mode: 01 10 10 00 00 08 10 00 01 00 01 00 01 00 01 00 01 00 01 00 01 00 01 7C B1
Set channel 3-5 output as the flip mode: 01 10 10 02 00 03 06 00 02 00 02 00 02 4A 4B
Set Baud Rate Command
Send code: 00 06 20 00 00 05 43 D8
Field | Description | Note |
---|---|---|
00 | Device Address | 0x00 indicates the broadcast address, 0x01-0xFF indicates the device address |
06 | 06 Command | Set the baud rate and the device address |
20 00 | Command Register | 0x2000: set the baud rate, 0x4000L: set the device address, 0x8000: read the software version |
00 | Parity Method | 0x00: no parity, 0x01: even-parity, 0x02: odd-parity |
05 | Baud rate | Baud rate numerical corresponding 0x00: 4800 0x01: 9600 0x02: 19200 0x03: 38400 0x04: 57600 0x05: 115200 0x06: 128000 0x07: 256000 |
43 D8 | CRC16 | The CRC16 checksum of the first 6 bytes of data |
Receive code: 00 06 20 00 00 05 43 D8
Field | Description | Note |
---|---|---|
00 | Device Address | 0x00 indicates the broadcast address, 0x01-0xFF indicates the device address |
06 | 06 Command | Set the baud rate and the device address |
20 00 | Command Register | 0x2000: set the baud rate, 0x4000: set the device address, 0x8000: read the software version |
00 | Parity Method | 0x00: no parity, 0x01: even-parity, 0x02: odd-parity |
05 | Baud rate | Baud rate numerical corresponding 0x00: 4800 0x01: 9600 0x02: 19200 0x03: 38400 0x04: 57600 0x05: 115200 0x06: 128000 0x07: 256000 |
43 D8 | CRC16 | The CRC16 checksum of the first 6 bytes of data |
For example:
[NO.1 address device]
Set the baud rate as 4800: 00 06 20 00 00 00 83 DB
Set the baud rate as 9600: 00 06 20 00 00 01 42 1B
Set the baud rate as 115200: 00 06 20 00 00 05 43 D8
Set the Device Address Command
Send code: 00 06 40 00 00 01 5C 1B
Field | Description | Note |
---|---|---|
00 | Device Address | 0x00 indicates the broadcast address, 0x01-0xFF indicates the device address |
06 | 06 Command | Set the baud rate and the device address |
40 00 | Command Register | 0x2000: set the baud rate, 0x4000: set the device address, 0x8000: read the software version |
00 01 | Device Address | Set the device address: 0x0001-0x00FF |
5C 1B | CRC16 | The CRC16 checksum of the first 6 bytes of data |
Receive code: 00 06 40 00 00 01 5C 1B
Field | Description | Note |
---|---|---|
00 | Device Address | 0x00 indicates the broadcast address, 0x01-0xFF indicates the device address |
06 | 06 Command | Set the baud rate and the device address |
40 00 | Command Register | 0x2000: set the baud rate, 0x4000: set the device address, 0x8000: read the software version |
00 01 | Device Address | Set the device address: 0x0001-0x00FF |
5C 1B | CRC16 | The CRC16 checksum of the first 6 bytes of data |
For example:
[No.1 address device]
Set the device address as 0x01: 00 06 40 00 00 01 5C 1b
Set the device address as 0x02: 00 06 40 00 00 02 1C 1A
Set the device address as 0x03: 00 06 40 00 00 03 DD DA
Read the Device Address Command
Send code: 00 03 40 00 00 01 90 1B
Field | Description | Note |
---|---|---|
00 | Device Address | 0x00 indicates the broadcast address, 0x01-0xFF indicates the device address |
03 | 03 Command | Read the device address command |
40 00 | Command Register | 0x2000: set the baud rate, 0x4000: set the device address, 0x8000: read the software version |
00 01 | Byte Numbers | Fixed 0x0001 |
90 1B | CRC16 | The CRC16 checksum of the first 6 bytes of data |
Receive code: 01 03 02 00 01 79 84
Field | Description | Note |
---|---|---|
00 | Device Address | 0x00 indicates the broadcast address, 0x01-0xFF indicates the device address |
03 | 03 Command | Read the software version, read the device address command |
02 | Byte Numbers | Number of bytes returned |
00 01 | Device Address | Set the device address, 0x0001-0x00FF |
79 84 | CRC16 | The CRC16 checksum of the first 6 bytes of data |
For example:
[No.1 address device]
Send: 00 03 40 00 00 01 90 1B
Return: 01 03 02 00 01 79 84 //Address 0x01
[No.2 address device]
Send: 00 03 40 00 00 01 90 1B
Return: 02 03 02 00 02 7D 85 //Address 0x02
[No.3 address device]
Send: 00 03 40 00 00 01 90 1B
Return: 03 03 02 00 03 81 85 //Address 0x03
Read Software Version
Send code: 00 03 80 00 00 01 AC 1B
Field | Description | Note |
---|---|---|
01 | Device Address | 0x00 indicates the broadcast address, 0x01-0xFF indicates the device address |
03 | 03 Command | Read the software version and the device address |
80 00 | Command Register | 0x2000: set the baud rate, 0x4000: set the device address, 0x8000: read the software version |
00 01 | Byte Numbers | Fixed 0x0001 |
8F CA | CRC16 | The CRC16 checksum of the first 6 bytes of data |
Receive code: 01 03 02 00 64 B9 AF
Field | Description | Note |
---|---|---|
01 | Device Address | 0x00 indicates the broadcast address, 0x01-0xFF indicates the device address |
03 | 03 Command | Read the software version and the device address |
02 | Byte Numbers | Returned byte numbers |
00 64 | Software Version | Converting to decimal and shifting the decimal point two places to the left indicates the software version. 0x0064 = 100 = V1.00 |
F0 B8 | CRC16 | The CRC16 checksum of the first 6 bytes of data |
For example:
Send: 00 03 80 00 00 01 AC 1B
Receive: 03 03 02 00 C8 F1 00 //0x00C8 = 200 =V2.00
Resource
Program
Software
FAQ
{{{5}}}
Support
Technical Support
If you need technical support or have any feedback/review, please click the Submit Now button to submit a ticket, Our support team will check and reply to you within 1 to 2 working days. Please be patient as we make every effort to help you to resolve the issue.
Working Time: 9 AM - 6 PM GMT+8 (Monday to Friday)