A: There are two ways to modify the communication address and baud rate of JSY’s power metering module:
First, you can modify the software through the host computer provided by JSY Technology.
Second, it can be modified by sending instructions, the specific examples are as follows:
1 | address and baud rate | 0004 | Read/Write | Default value is 0106H:Default address is 01H, Default format is 8, N. 1, 9600bps Description. The high byte 8 bits are address, 1~255:0 is broadcast address: the high 2 bits of the low byte are data format bits, “00″ means 10 bits, i.e. “8N, 1″. The upper 2 bits of the low byte are data format bits, “00″ means 10 bits i.e. “8N, 1″, “01″ means 11 bits, even validity i.e. “8, E, 1″:10″ means 11 bits, odd validity i.e. “8, 0, 1″:8, 0, 1″. 1″: for “11″ means 1 bit, no parity, 2 stop bits, i.e. “8, N, 2″; the lower four bits of the low byte are the baud rate, 3-1200bps, 4-2400bps, -4800bps, 6-9600bps, 6-9600bps. 4800bps, 6-9600bps |
The baud rate and address can be changed by writing the command (10H) with the following command format: (take address 1 as an example)
1 | 10 | 0004 | 0001 | 02 | 03 | 05 | 67 27 |
current address | writing order | Address and Baud Rate Registers | 1pcs Registers | 2 bytes | Change of address to No. 3 | Change of Baud Rate to 4800bps | CRC16 check digit |
Description:
01 (actual address of current module), if there is only 1 module on the line, you can use the 00 broadcast address;
10 (write command), this byte value is constant;
00 04 (address and baud rate register), the value of these two bytes is constant;
00 01 (write 1 register), which is a constant value for both bytes;
02 (2 byte count), this byte value is constant;
03 (modified target address), modify this value as necessary;
05 (modified target baud rate), modify this value as needed, the meaning of this value is described in the above table baud rate;
67 27 (CRC16 check digit), the check digit calculated according to the data in the previous 9 bytes, the check digit calculated will be different if there is any data change, there are calculation tools on the Internet, and we can also provide them.
Post time: Feb-19-2024