HJ212-2017

Module Description

HJ212-2017 is mainly used to read data that supports the HJ212-2017 standard, this driver only supports active uploading of data by the device.

Parameter Configuration

Ethernet

ParameterDescription
timeoutTimeout for sending requests to the device
hostWhen neuron is used as a client, host means the ip of the remote device. When used as a server, it means the ip used by neuron locally, and 0.0.0.0 can be filled in by default
portWhen neuron is used as client, port means the tcp port of the remote device. When used as a server, it means the tcp port used by neuron locally.

Serial

ParameterDescription
deviceUse a serial device, e.g. /dev/ttyUSB0
stopstopbits, default 1
parityparity bit, default 2, which means even parity
baudbaudrate, default 9600
databytesize, default 8
timeoutTimeout for sending requests to the device

Data Type

  • 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 real-time 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