airgradienthq / arduino

Firmware of open-source hardware air quality monitors AirGradient ONE (indoor) and AirGradient Open Air (outdoor).
https://www.airgradient.com/documentation/
Other
220 stars 116 forks source link

Send PMS5003T firmware version to Ag Cloud #205

Closed pnt325 closed 3 months ago

pnt325 commented 4 months ago

Add JSON PMS5003T_FwVer on data send to cloud

nick-4711 commented 3 months ago

a)

maybe we should name the property

firmware

and prefix the value with PMS5003T, e.g.

{ "firwmare": "PMS5003T-2" }

the advantage is that we can then also use this with other sensors

b) what happen is a PMS5003 is plugged in?

pnt325 commented 3 months ago

b) what happen is a PMS5003 is plugged in?

It's only report the PMS5003T firmware if device detected is OpenAir.

nick-4711 commented 3 months ago

OK, this is fine, but we still have two models

PMS5003T PMS5003

What happens if PMS5003 is connected?

airgradienthq commented 3 months ago

@pnt325 As per latest documentation 5003 also has firmeware version:

PMS5003 series data manual English V1.3(1).pdf.(1).pdf

So please implement for all models (PMS5003 and PMS5003T)

pnt325 commented 3 months ago

@pnt325 As per latest documentation 5003 also has firmeware version:

PMS5003 series data manual English V1.3(1).pdf.(1).pdf

So please implement for all models (PMS5003 and PMS5003T)

Thank @airgradienthq Look the plantower has document to complex. I will add the firmware version for both follow the document.

pnt325 commented 3 months ago

OK, this is fine, but we still have to models

PMS5003T PMS5003

What happens if PMS5003 is connected?

@nick-4711

There are no special on data package to identify the PMS5003 or PMS5003T. I think it's the firmware version, but not sure because they are also programming newest firmware version for PMS5003 too.

pnt325 commented 3 months ago

@nick-4711

The report PMS firmware updated:

Single

PMS5003

{
  "pmsFirmware": "PMS5003-1"
}

PMS5003T

{
  "pmsFirmware": "PMS5003T-1"
}

Two channel

{
 "channel":
    "1":{
      "pmsFirmware": "PMS5003T-1"
    },
    "2":{
      "pmsFirmware": "PMS5003T-1"
    }
}
pnt325 commented 3 months ago

@nick-4711

The report PMS firmware updated:

Single

PMS5003

{
  "firmware": "PMS5003-1"
}

PMS5003T

{
  "firmware": "PMS5003T-1"
}

Two channel

{
 "channel":
    "1":{
      "firmware": "PMS5003T-1"
    },
    "2":{
      "firmware": "PMS5003T-1"
    }
}
nick-4711 commented 3 months ago

OK, this is fine, but we still have to models PMS5003T PMS5003 What happens if PMS5003 is connected?

@nick-4711

There are no special on data package to identify the PMS5003 or PMS5003T. I think it's the firmware version, but not sure because they are also programming newest firmware version for PMS5003 too.

I would expect that the T model gives you temp/hum and the other doesn't. Hence there should be a way to identify if we talk to a PMS5003T or PMS5003

nick-4711 commented 3 months ago

For completeness, can you post how the payload is now with the latest changes, thx.