On this page
CJ/T 188
CJ/T 188 Urban construction industry measurement protocol collection driver
Compatible devices and models
| Device series / model examples | Connection requirements |
|---|---|
| Water, heat and gas meters supporting CJ/T 188 | Match meter type, address, data identifier and serial settings. Available operations depend on meter type and protocol. |
Set the meter address and read a DI
Use the meter vendor’s tool to obtain communication address, instrument type, DI and serial settings. Wire RS-485 polarity correctly; TCP converters must transparently carry CJ/T 188.
- Enter the full 14-character address, for example
00000000000001, preserving zeros. This is not a 12-digit 645 address.s=00000000000002;90-1Foverrides it. - Instrument type is a protocol byte, default decimal
16(0x10), not a model or meter number. - Preamble defaults on and sends two FE bytes. Response-address matching defaults on; keep it enabled on a multi-meter bus.
- Add a read-only scalar Double using a supported DI such as
90-1F. Leave address override blank to use the device address. A matching-length DI is not automatically valid for every meter type.
Each variable represents one DI item; do not configure more than one array element. Conversion skips DI, decodes four low-byte-first BCD bytes, divides by 100 and applies recognized unit scaling. Value bytes 45 23 01 00 with unit multiplier 1 become 123.45; do not swap or divide again. Double/Decimal preserve cumulative fractions better than integers.
Writes encode a non-negative scalar with at most two decimal places and maximum 999999.99, only to a writable DI. Numeric arrays are not batch meter configuration. Compare the same address, DI, type and unit in the vendor tool. See Collection Configuration for common run fields.
Open the plugin
Enter “Development Configuration → Collection Configuration”, create a device and select “CJ/T 188” in “Device Plugin”.
Supported channels and data types
| Channel type | Pre-configuration check |
|---|---|
| TCP Client | Confirm network reachability of the device IP, port, and gateway to the device. |
| TCP server | Confirm that the local listening address and port are available, and allow on-site devices to actively connect to the gateway. |
| Serial Port | Confirm that the serial port is not occupied by other programs and maintains the same baud rate, data bits, stop bits and parity bits as the device. |
Optional data types: Boolean, Byte, Int16, UInt16, Int32, UInt32, Int64, UInt64, Float, Double, String, Decimal
This list describes types allowed by the plugin editor. Address width, arrays, string length and read/write restrictions still follow this page; it does not mean that every address supports every type.
Plugin properties
Protocol parameters
| Setting | Description |
|---|---|
| Default address | Default: 00000000000001; fill in: text input. Set the default station number used when the station number is not specified separately in the variable address. |
| Instrument type | Default: 16; fill in: text input. Set the instrument type used for protocol communication. |
| Enable leading characters | Default: Yes; fill in: switch. Controls whether the “Enable Leader” feature is enabled. |
| Match response address | Default: Yes; fill in: switch. Controls whether the “match response address” feature is enabled. |
Connection configuration
| Setting | Description |
|---|---|
| DTU ID | Fill in: text input. Sets the identifier used to identify the current device connection through the DTU service. |
Address rules
- Data identification uses two or three bytes, for example 90-1F; available s = fourteen-digit address field; prefix specifies the instrument.
Device debug
Enter “Development Configuration → Collection Configuration”, select the current device then open “Protocol Debug” at the top of the workspace.


Functions
| Function | Purpose |
|---|---|
| Read and write | Read a confirmed point and write only to an approved test point. |
| Messages | View sent and received frames, protocol fields, and error details. |
Verify the configuration
Read the same data identifier with an instrument tool and compare the decoded BCD value and unit multiplier; the first byte alone is not the accumulated quantity.
Troubleshooting
- The address field has 14 digits, unlike DL/T 645. The data identifier and meter type must come from the same device protocol table.
- The serial port device does not respond: Confirm that the serial port is not occupied, and check the baud rate, data bits, stop bits and parity bits.
Related links
- Collection configuration: View channel, device and common variable configuration.
- Plugin Index: Find other collection or data-forward plugins.