Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] CM1102Sensor not detected since Dec Firmware update
#1
So I have one of the systems with a CM1102.  Since the 20th Dec I have not had any data.  I suspect it is the firmware update 20161217 that did it (and must have auto updated).

I have tried going back to the 20161024 firmware, but it updates as soon as I connect to configure it. Grrrrrrr

Log
--- Setup SENSORS ---
TEST
CO2
Trying : 13,12
Getting CO2 Sensor Software Version]
[B0,1,FF,3F,B0,1,FF,3F,0,0,0,0,7F,39,20,40,74,93,FE,3F,B0,1,FF,3F,
Trying : 12,13
Getting CO2 Sensor Software Version]
[B2,1,FF,3F,B0,1,FF,3F,0,0,0,0,7F,39,20,40,74,93,FE,3F,B0,1,FF,3F,
Trying : 14,5
Getting CO2 Sensor Software Version]
[B4,1,FF,3F,B0,1,FF,3F,0,0,0,0,7F,39,20,40,74,93,FE,3F,B0,1,FF,3F,
Trying : 5,14
Getting CO2 Sensor Software Version]
[B6,1,FF,3F,B0,1,FF,3F,0,0,0,0,7F,39,20,40,74,93,FE,3F,B0,1,FF,3F,
+]
[Trying : 13,12
Getting CO2 Sensor Software Version
B0,1,FF,3F,B0,1,FF,3F,0,0,0,0,7F,39,20,40,74,93,FE,3F,B0,1,FF,3F,
Trying : 12,13
Getting CO2 Sensor Software Version]
[B2,1,FF,3F,B0,1,FF,3F,0,0,0,0,7F,39,20,40,74,93,FE,3F,B0,1,FF,3F,
Trying : 14,5
Getting CO2 Sensor Software Version
B4,1,FF,3F,B0,1,FF,3F,0,0,0,0,7F,39,20,40,74,93,FE,3F,B0,1,FF,3F,
Trying : 5,14
Getting CO2 Sensor Software Version]
[B6,1,FF,3F,B0,1,FF,3F,0,0,0,0,7F,39,20,40,74,93,FE,3F,B0,1,FF,3F,
+]
[Trying : 13,12
Getting CO2 Sensor Software Version]
[B0,1,FF,3F,B0,1,FF,3F,0,0,0,0,7F,39,20,40,74,93,FE,3F,B0,1,FF,3F,
Trying : 12,13
Getting CO2 Sensor Software Version
B2,1,FF,3F,B0,1,FF,3F,0,0,0,0,7F,39,20,40,74,93,FE,3F,B0,1,FF,3F,
Trying : 14,5
Getting CO2 Sensor Software Version]
[B4,1,FF,3F,B0,1,FF,3F,0,0,0,0,7F,39,20,40,74,93,FE,3F,B0,1,FF,3F,
Trying : 5,14
Getting CO2 Sensor Software Version]
[B6,1,FF,3F,B0,1,FF,3F,0,0,0,0,7F,39,20,40,74,93,FE,3F,B0,1,FF,3F,
+]
[ERROR: Could not locate Cubic CO2 Sensor
SI7021
BME280
BMP085
PM2005
CDM7160
TSL2561
BH1750
APDS9960
APDS9960 - init failed!
Reply
#2
i i just disabled the firmware update on the server

now you should be able to downgrade w/o problems
sorry, i missed that point
Reply
#3
Successfully downgraded to 20161004 version and sensor is now detected so definitely a firmware issue.

--- Setup SENSORS ---
Setup sensor: TEST
Setup sensor: CO2]
[Trying : 13,12
Getting CO2 Sensor Software Version]
[16,C,1E,42,53,20,56,33,2E,30,32,39,20,30,69,40,54,95,FE,3F,78,6,FF,3F,
CO2 Sensor SW Ver: BS V3.029 0i
done
CM1102 Dual Beam NDIR sensor
CO2 now: 550
Setup sensor: SI7021]
[Setup sensor: BME280]
[BME280 - init failed!
Setup sensor: PM2005]
[Setup sensor: CDM7160]
[--- Setup DESTINATIONS ---
Reply
#4
Great Smile
I will check again the code in the evening
I also think my cm1102 is a bit modded and therefore i sidnt caught it
Reply
#5
can you just try again yo update with "otah"
and then do a factory reset.
i think i modified my device to be as the ones from the first batch, and it is still working.

anyway - another fellow sent his device back to me, as it was also not working - so i will check iwth it, hopefully i will be able to reproduce it
Reply
#6
i didn't test correctly Smile
now i managed to reproduce it and fix it.. the problem was that i spent a few weeks optimizing the firmware to boot faster, but the CM1102 needs some time to boot, and in the first versions of the device, it's booting is controlled by the firmware, and needs ~2 seconds.
So i had removed this delay and on newer devices that are wired differently it works, but on the older it desn't Smile
now if you update it should be working
Reply
#7
(02-03-2017, 07:20 PM)admin Wrote: i didn't test correctly Smile
now i managed to reproduce it and fix it.. the problem was that i spent a few weeks optimizing the firmware to boot faster, but the CM1102 needs some time to boot, and in the first versions of the device, it's booting is controlled by the firmware, and needs ~2 seconds.
So i had removed this delay and on newer devices that are wired differently it works, but on the older it desn't Smile
now if you update it should be working

It appears to find the sensor but now the MQTT does not work Sad
Reply
#8
do you get something useful in the logs?
Reply
#9
(02-03-2017, 08:13 PM)baz123 Wrote:
(02-03-2017, 07:20 PM)admin Wrote: i didn't test correctly Smile
now i managed to reproduce it and fix it.. the problem was that i spent a few weeks optimizing the firmware to boot faster, but the CM1102 needs some time to boot, and in the first versions of the device, it's booting is controlled by the firmware, and needs ~2 seconds.
So i had removed this delay and on newer devices that are wired differently it works, but on the older it desn't Smile
now if you update it should be working

It appears to find the sensor but now the MQTT does not work Sad
Ah Ok fixed MQTT - my bad.

That seems to solve it.  Thanks.
Reply
#10
The CO2 Monitor is still crashing after a few hours of running.

As I do not really need all the wiz bangs of your std firmware, do you have a simple package for reading this sensor and returning the data & status?  I'm happy to do the the bit around that for the network setting etc and pushing the data out via MQTT myself (in fact I prefer it).

I'd be really interested in how you put the device into deep sleep as well.

I've deciphered your code to an extent but cannot really see how you send it to sleep and then wake it back up  Smile

Cheers
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)