Skip to content

HJ212-2017 ​

HJ212-2017 is an IoT standard outlining data transmission between pollution monitoring systems and environmental agencies.

For the generic steps, see Create a Southbound Driver and Groups and Tags.

The EMQX Neuron HJ212-2017 driver collects data from devices supporting this standard, with the current version supporting only active data uploads.

Add Driver ​

On Data Collection → South Devices, click Add Device.

  • Name: The name of this device node.
  • Driver: Select the HJ212-2017 driver.

Connection Parameters ​

Click the driver card to open the Device Configuration page and fill in:

ParameterDescription
Physical LinkChoose Serial or TCP connection mode.
Serial DeviceOnly for Serial mode, use a serial device, e.g. /dev/ttyUSB0
Stop BitsOnly for Serial mode, stop bits, default 1
ParityOnly for Serial mode, parity bit
Baud RateOnly for Serial mode, baud rate, default 9600
Data BitsOnly for Serial mode, byte size, default 8
IP AddressOnly for TCP mode.
When EMQX Neuron is used as a client, fill in the IP of the remote device.
When EMQX Neuron is used as a server, fill in the IP of EMQX Neuron locally, 0.0.0.0 can be filled in by default.
PortOnly for TCP mode.
When EMQX Neuron is used as a client, fill in the TCP port of the remote device.
When EMQX Neuron is used as a server, fill in the TCP port of EMQX Neuron.
PasswordPassword
MNDevice ID
STSystem code

Tag Configuration ​

The data types and address formats supported by this driver are listed below.

Data Types ​

  • STRING
  • DOUBLE
  • UINT8
  • INT8

Address Format ​

Pollutant Real-time Data ​

RT!xxxx-[Rtd][Flag][SampleTime][EFlag]

AddressTypeDescription
RT!w01018-Rtddoublew01018 real-time data
RT!w01018-Flagstringw01018 realtime data flag
RT!w01018-SampleTimestringw01018 real-time sampling time
RT!w01018-EFlagstringw01018 device flag
RT!w01018-ZsRtddoublew01018 real-time zs data

Pollutant Minute Data ​

MIN!xxxx-[Cou][Min][Avg][Max][Flag]

AddressTypeDescription
MIN!w01018-Coudoublew01018 cumulative value
MIN!w01018-Mindoublew01018 min value
MIN!w01018-Avgdoublew01018 average value
MIN!w01018-Maxdoublew01018 max value
MIN!w01018-Flagstringw01018 data flag
MIN!w01018-ZsMindoublew01018 min zs value
MIN!w01018-ZsAvgdoublew01018 average zs value
MIN!w01018-ZsMaxdoublew01018 max zs value

Pollutant Hour Data ​

HOUR!xxxx-[Cou][Min][Avg][Max][Flag]

AddressTypeDescription
HOUR!w01018-Coudoublew01018 cumulative value
HOUR!w01018-Mindoublew01018 min value
HOUR!w01018-Avgdoublew01018 average value
HOUR!w01018-Maxdoublew01018 max value
HOUR!w01018-Flagstringw01018 data flag
HOUR!w01018-ZsMindoublew01018 min zs value
HOUR!w01018-ZsAvgdoublew01018 average zs value
HOUR!w01018-ZsMaxdoublew01018 max zs value

Pollutant Day Data ​

DAY!xxxx-[Cou][Min][Avg][Max][Flag]

AddressTypeDescription
DAY!w01018-Coudoublew01018 cumulative value
DAY!w01018-Mindoublew01018 min value
DAY!w01018-Avgdoublew01018 average value
DAY!w01018-Maxdoublew01018 max value
DAY!w01018-Flagstringw01018 data flag
DAY!w01018-ZsMindoublew01018 min zs value
DAY!w01018-ZsAvgdoublew01018 average zs value
DAY!w01018-ZsMaxdoublew01018 max zs value