Skip to Content
On this page

CJ/T 188

CJ/T 188 Urban construction industry measurement protocol collection driver

Compatible devices and models

Device series / model examplesConnection requirements
Water, heat and gas meters supporting CJ/T 188Match 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.

  1. Enter the full 14-character address, for example 00000000000001, preserving zeros. This is not a 12-digit 645 address. s=00000000000002;90-1F overrides it.
  2. Instrument type is a protocol byte, default decimal 16 (0x10), not a model or meter number.
  3. Preamble defaults on and sends two FE bytes. Response-address matching defaults on; keep it enabled on a multi-meter bus.
  4. 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 typePre-configuration check
TCP ClientConfirm network reachability of the device IP, port, and gateway to the device.
TCP serverConfirm that the local listening address and port are available, and allow on-site devices to actively connect to the gateway.
Serial PortConfirm 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

SettingDescription
Default addressDefault: 00000000000001; fill in: text input. Set the default station number used when the station number is not specified separately in the variable address.
Instrument typeDefault: 16; fill in: text input. Set the instrument type used for protocol communication.
Enable leading charactersDefault: Yes; fill in: switch. Controls whether the “Enable Leader” feature is enabled.
Match response addressDefault: Yes; fill in: switch. Controls whether the “match response address” feature is enabled.

Connection configuration

SettingDescription
DTU IDFill 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.

CJ/T 188: Read/Write

CJ/T 188: Messages

Functions

FunctionPurpose
Read and writeRead a confirmed point and write only to an approved test point.
MessagesView 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.