gi1mic / gmc320

CQ GMC3xx Radiation Monitor addon for homeassistant
GNU General Public License v3.0
7 stars 4 forks source link

gmc3xxx.cpm data are incorrect #6

Open ffries opened 1 year ago

ffries commented 1 year ago

Hello,

All values seem correct : voltage, x, y, z However, CPM is not correct: 63476

Hardware is a GMC320-4+ Timing is set to dynamic.

Kind regards, FFries

ffries commented 1 year ago

Only first CPM value is correct, others are not.

ffries commented 1 year ago

I was wrong, Gyroscope data are wrong (way too high).

pedro042 commented 4 months ago

Hi, I've similar issue. Time to time I get wrong reading: { "version" : "GMC-320Re 4.25", "serial" : "f48817f82f2b1", "cpm" : 25, "temp" : 29.1, "volt" : 4.0, "x" : 65535,"y" : 1792, "z" : 3839 } { "version" : "GMC", "serial" : "2d333230526520", "cpm" : 13358, "temp" : 29.1, "volt" : 4.0, "x" : 0,"y" : 1536, "z" : 4351 } { "version" : "GMC-320Re 4.25", "serial" : "f48817f82f2b1", "cpm" : 25, "temp" : 29.1, "volt" : 4.0, "x" : 0,"y" : 1536, "z" : 4351 }

Wrong serial number, wrong CPM, don't know why or how to fix it correctly. Temporary fix using jq for filtering rows with wrong serial, something as:

DATA=$(echo $DATA | jq -c ' select(.serial | contains("f48817f82f2b1"))')

It removes data with wrong device serial number (and corrupted data)