Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CO2 value 65535.00
#1
Today I received the CO2 sensor (standard ndir without extra sensors, CM1102).

In the Chrome app I added a custom HTTP, but they value that is visible in the log, is at start 550, and thereafter always 65535.00
Device is restarted 3 times and it's running now for 45 minutes.

During the setup I have seen some other values (I think) than 550 and 65535, like 5*** and 8****.
When I put a different placeholder in the url, the returned value is always 65535.00.

How can I fix this?

Code:
Searching for v.Air Trying : COM4

.  . [ÈHìÈã¤$r[ùDzHÅ$û]
[…]
[Heap Heap at start: 34872]
[No I2C Devices found

vESPrino]

vESPrino found on : COM4
[OK
ready >]
[OK

vESPrino v1.16 build20160925]
[IP address: 0.0.0.0
Chip ID: 15B376]
[ready >.]
[OK
---vESPrinoCFG_start---
isMigrated=1
rf.CO2=136
rf.PM25=137
rf.PM10=138
rf.TEMP=140
rf.HUM=141
rf.PRES=142
rf.GEN=143
wifi.ssid=*******
wifi.p1=*********
send.interval=120
custom_url_arr0=http://192.168.178.32/HomeSeer_REST_API.aspx?function=setdevicevaluebyid&param1=1451&param2=%CO2%
---vESPrinoCFG_end---
ready >]
[.]
[.

--- Setup PLUGINS ---
Setup plugin: Neopixel
Setup plugin: TimerManager

--- Setup SENSORS ---
Setup sensor: TEST
Setup sensor: CO2]
[CO2 Sensor SW Ver: BS V3.029 0i
CM1102 Dual Beam NDIR sensor
CO2 now: 550
Setup sensor: SI7021
Setup sensor: BME280
Setup sensor: PM2005
Setup sensor: CDM7160

--- Setup DESTINATIONS ---
Setup Destination: CustomHTTP
Setup Destination: SerialDump
Setup Destination: MQTT
Setup Destination: RFX10
Heap At setup end: 32144
Waiting for WiFi ready >.]
[.]
[.]
[.]
[IP address: 192.168.178.34 in 13313 ms
GOT IP]
[fg: 20160925, fc: 0, bn:20160925
ready >
--- DestHanlder: sendValue ---]
[CustomHTTPDest::process
CustomHTTPDest::invoke = http://192.168.178.32/HomeSeer_REST_API.aspx?function=setdevicevaluebyid&param1=1451&param2=%CO2%]
[Response Code: 500
CLOSED]
[SerialDumpDest::process
MQTTDest::process
RFDest::process
ready >]
[--- DestHanlder: sendValue ---]
[--- DestHanlder: sendValue ---]
[--- DestHanlder: sendValue ---]
[OK
ready >]
[--- DestHanlder: sendValue ---]
[--- DestHanlder: sendValue ---]
[--- DestHanlder: sendValue ---]
[--- DestHanlder: sendValue ---]
[OK
ready >]
[--- DestHanlder: sendValue ---]
[CustomHTTPDest::process
CustomHTTPDest::invoke = http://192.168.178.32/HomeSeer_REST_API.aspx?function=setdevicevaluebyid&param1=1451&param2=65535.00]
[Response Code: 200
CLOSED]
[SerialDumpDest::process
CO2    : 65535.00
MQTTDest::process
RFDest::process
ready >]
[--- DestHanlder: sendValue ---]
[ready >]
[--- DestHanlder: sendValue ---]
[--- DestHanlder: sendValue ---]
[OK
ready >]
[--- DestHanlder: sendValue ---]
[--- DestHanlder: sendValue ---]
[--- DestHanlder: sendValue ---]
[--- DestHanlder: sendValue ---]
[OK
ready >]
[--- DestHanlder: sendValue ---
CustomHTTPDest::process
CustomHTTPDest::invoke = http://192.168.178.32/HomeSeer_REST_API.aspx?function=setdevicevaluebyid&param1=1451&param2=65535.00
Response Code: 200
CLOSED
SerialDumpDest::process
CO2    : 65535.00
MQTTDest::process
RFDest::process]
[--- DestHanlder: sendValue ---]
[--- DestHanlder: sendValue ---]
[--- DestHanlder: sendValue ---]
[OK
ready >]
Reply
#2
this is strange...
can you enable debug mode by sending the command
debug
from the input field below, and then please send again the output

Thanks!
Reply
#3
I restarted the device again, and still the wrong values...but after enabling debug mode, the values are better:



Code:
Searching for v.Air Trying : COM4

 .  . [ȤlÌÉ]
[ð]
[fR[ýxI$]
[ø]
[…]
[Heap Heap at start: 34872]
[No I2C Devices found

vESPrino]

vESPrino found on : COM4
[OK
ready >]
[OK

vESPrino v1.16 build20160925]
[IP address: 0.0.0.0
Chip ID: 15B376]
[ready >.]
[OK
---vESPrinoCFG_start---
isMigrated=1
rf.CO2=136
rf.PM25=137
rf.PM10=138
rf.TEMP=140
rf.HUM=141
rf.PRES=142
rf.GEN=143
wifi.ssid=*****
wifi.p1=*******
send.interval=20
custom_url_arr0=http://192.168.178.32/HomeSeer_REST_API.aspx?function=setdevicevaluebyid&param1=1451&param2=%CO2%
---vESPrinoCFG_end---
ready >]
[.]
[.

--- Setup PLUGINS ---
Setup plugin: Neopixel
Setup plugin: TimerManager

--- Setup SENSORS ---
Setup sensor: TEST
Setup sensor: CO2]
[CO2 Sensor SW Ver: BS V3.029 0i
CM1102 Dual Beam NDIR sensor
CO2 now: 550
Setup sensor: SI7021
Setup sensor: BME280
Setup sensor: PM2005
Setup sensor: CDM7160

--- Setup DESTINATIONS ---
Setup Destination: CustomHTTP
Setup Destination: SerialDump
Setup Destination: MQTT
Setup Destination: RFX10
Heap At setup end: 32144
Waiting for WiFi ready >.]
[.]
[.]
[.]
[IP address: 192.168.178.34 in 13311 ms
GOT IP]
[fg: 20160925, fc: 0, bn:20160925
ready >
--- DestHanlder: sendValue ---]
[CustomHTTPDest::process
CustomHTTPDest::invoke = http://192.168.178.32/HomeSeer_REST_API.aspx?function=setdevicevaluebyid&param1=1451&param2=%CO2%]
[Response Code: 500
CLOSED]
[SerialDumpDest::process
MQTTDest::process
RFDest::process
ready >]
[--- DestHanlder: sendValue ---]
[--- DestHanlder: sendValue ---]
[CustomHTTPDest::process
CustomHTTPDest::invoke = http://192.168.178.32/HomeSeer_REST_API.aspx?function=setdevicevaluebyid&param1=1451&param2=%CO2%]
[Response Code: 500
CLOSED]
[SerialDumpDest::process
MQTTDest::process
RFDest::process]
[--- DestHanlder: sendValue ---]
[--- DestHanlder: sendValue ---]
[CustomHTTPDest::process
CustomHTTPDest::invoke = http://192.168.178.32/HomeSeer_REST_API.aspx?function=setdevicevaluebyid&param1=1451&param2=%CO2%]
[Response Code: 500
CLOSED]
[SerialDumpDest::process
MQTTDest::process
RFDest::process]
[OK]
[Send Interval (s): 120
ready >]
[OK
ready >]
[OK
Debug is now: ENABLED
Executing: nop
PowerManager timeout: 0
PowerManager disabled
ready >]
[--- DestHanlder: sendValue ---
forceSend:0
16,5,1,2,26,0,0,BC,0,0,0,0,1,50,20,40,0,0,0,0,0,0,0,0,
sss:550
Heap : 31648]
[--- DestHanlder: sendValue ---
forceSend:0
16,5,1,2,26,0,0,BC,1,0,0,0,0,0,0,0,1,0,0,0,E5,E4,0,0,
sss:550
Heap : 31648]
[--- DestHanlder: sendValue ---
forceSend:0
16,5,1,2,26,0,0,BC,1,0,0,0,0,0,0,0,C,3B,FF,3F,C,3B,FF,3F,
sss:550
Heap : 31648]
[--- DestHanlder: sendValue ---
forceSend:0
16,5,1,2,26,0,0,BC,1,0,0,0,BC,41,FF,3F,1,0,0,0,AD,94,1,0,
sss:550
Heap : 31648]
[OK
Executing: nop
PowerManager timeout: 0
PowerManager disabled
Executing: nop
PowerManager timeout: 0
PowerManager disabled
ready >]
[--- DestHanlder: sendValue ---
forceSend:0
16,5,1,4,60,1,0,7F,0,0,0,0,FE,FF,FF,FF,90,0,0,0,FC,C6,FF,3F,
sss:1120
Heap : 31576
Executing: ledcolor green
ready >]
[--- DestHanlder: sendValue ---
forceSend:0
16,5,1,3,B6,1,0,2A,0,C2,FF,3F,22,0,0,0,B0,16,FF,3F,24,2,FF,3F,
sss:950
Heap : 31632]
[--- DestHanlder: sendValue ---
forceSend:0
16,5,1,3,8E,1,0,52,1,0,0,0,0,0,0,0,1,0,0,0,E5,E4,0,0,
sss:910
Heap : 31632
Executing: ledbrg 98
Executing: ledcolor black
ready >]
[--- DestHanlder: sendValue ---
forceSend:1
16,5,1,4,BA,1,0,25,E,0,0,0,FF,FF,FF,FF,BD,DD,21,40,2,0,0,0,
sss:1210
CustomHTTPDest::process
CustomHTTPDest::invoke = http://192.168.178.32/HomeSeer_REST_API.aspx?function=setdevicevaluebyid&param1=1451&param2=1060.00]
[Response Code: 200
Payload: [All_Success]
CLOSED]
[SerialDumpDest::process
CO2    : 1060.00
MQTTDest::process
RFDest::process
Heap : 31608]
[OK
Executing: nop
PowerManager timeout: 0
PowerManager disabled
Executing: nop
PowerManager timeout: 0
PowerManager disabled
ready >]
[--- DestHanlder: sendValue ---
forceSend:0
16,5,1,5,E6,1,0,F8,E,0,0,0,FF,FF,FF,FF,D3,DD,21,40,8,2,FF,3F,
sss:1510
Heap : 31632]
[--- DestHanlder: sendValue ---
forceSend:0
16,5,1,7,12,1,0,CA,0,0,0,0,FE,FF,FF,FF,FF,FF,FF,FF,FC,C6,FF,3F,
sss:1810
Heap : 31632]
[--- DestHanlder: sendValue ---
forceSend:0
16,5,1,8,2A,1,0,B1,1,0,0,0,1,0,0,0,1C,2E,FF,3F,1C,2E,FF,3F,
sss:2090
Heap : 31632]
[--- DestHanlder: sendValue ---
forceSend:0
16,5,1,9,56,1,0,84,1,0,0,0,0,0,0,0,1,0,0,0,54,6C,3,0,
sss:2390
Heap : 31632]
[OK
Executing: nop
PowerManager timeout: 0
PowerManager disabled
Executing: nop
PowerManager timeout: 0
PowerManager disabled
ready >]
[--- DestHanlder: sendValue ---
forceSend:0
16,5,1,A,82,1,0,57,1,0,0,0,BC,41,FF,3F,1,0,0,0,EC,A6,3,0,
sss:2690
Heap : 31632]
[--- DestHanlder: sendValue ---
forceSend:0
16,5,1,B,9A,1,0,3E,1,0,0,0,EC,3A,FF,3F,0,0,0,0,24,2,FF,3F,
sss:2970
Heap : 31632]
[--- DestHanlder: sendValue ---
forceSend:0
16,5,1,C,C6,1,0,11,0,0,0,0,FE,FF,FF,FF,90,0,0,0,FC,C6,FF,3F,
sss:3270
Heap : 31632]
[--- DestHanlder: sendValue ---
forceSend:1
16,5,1,D,DE,1,0,F8,1,0,0,0,0,0,0,0,1,0,0,0,B4,56,4,0,
sss:3550
CustomHTTPDest::process
CustomHTTPDest::invoke = http://192.168.178.32/HomeSeer_REST_API.aspx?function=setdevicevaluebyid&param1=1451&param2=3410.00]
[Response Code: 200
Payload: [All_Success]
CLOSED]
[SerialDumpDest::process
CO2    : 3410.00
MQTTDest::process
RFDest::process
Heap : 31608]
[OK
Executing: nop
PowerManager timeout: 0
PowerManager disabled
Executing: nop
PowerManager timeout: 0
PowerManager disabled
ready >]
[--- DestHanlder: sendValue ---
forceSend:0
16,5,1,F,1E,1,0,B6,1,0,0,0,0,0,0,0,1,0,0,0,2D,94,4,0,
sss:3870
Heap : 31632]
[--- DestHanlder: sendValue ---
forceSend:0
16,5,1,10,36,1,0,9D,1,0,0,0,3,0,0,0,6C,2E,FF,3F,6C,2E,FF,3F,
sss:4150
Heap : 31632]
[--- DestHanlder: sendValue ---
forceSend:0
16,5,1,11,62,1,0,70,1,0,0,0,0,0,0,0,1,0,0,0,5D,9,5,0,
sss:4450
Heap : 31632]
[--- DestHanlder: sendValue ---
forceSend:0
16,5,1,10,A4,1,0,2F,0,0,0,0,FE,FF,FF,FF,90,0,0,0,FC,C6,FF,3F,
sss:4260
Heap : 31632]
[OK
Executing: nop
PowerManager timeout: 0
PowerManager disabled
Executing: nop
PowerManager timeout: 0
PowerManager disabled
ready >]
[--- DestHanlder: sendValue ---
forceSend:0
16,5,1,F,78,1,0,5C,5,0,0,0,5,0,0,0,8C,2E,FF,3F,1,0,0,0,
sss:3960
Heap : 31632]
[--- DestHanlder: sendValue ---
forceSend:0
16,5,1,E,60,1,0,75,0,0,0,0,FE,FF,FF,FF,90,0,0,0,FC,C6,FF,3F,
sss:3680
Heap : 31632]
[--- DestHanlder: sendValue ---
forceSend:0
16,5,1,D,34,1,0,A2,3,0,0,0,2,0,0,0,9C,2E,FF,3F,9C,2E,FF,3F,
sss:3380
Heap : 31632]
[--- DestHanlder: sendValue ---
forceSend:1
16,5,1,C,8,1,0,CF,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,
sss:3080
CustomHTTPDest::process
CustomHTTPDest::invoke = http://192.168.178.32/HomeSeer_REST_API.aspx?function=setdevicevaluebyid&param1=1451&param2=3230.00]
[Response Code: 200
Payload: [All_Success]
CLOSED]
[SerialDumpDest::process
CO2    : 3230.00
MQTTDest::process
RFDest::process
Heap : 31608]
[OK
Executing: nop
PowerManager timeout: 0
PowerManager disabled
Executing: nop
PowerManager timeout: 0
PowerManager disabled
ready >]
[--- DestHanlder: sendValue ---
forceSend:0
16,5,1,A,DC,1,0,FD,1,0,0,0,EC,3A,FF,3F,0,0,0,0,24,2,FF,3F,
sss:2780
Heap : 31632]
[--- DestHanlder: sendValue ---
forceSend:0
16,5,1,9,B0,1,0,2A,10,18,FF,3F,5B,B2,5D,8,14,75,10,40,30,0,0,0,
sss:2480
Heap : 31632]
[--- DestHanlder: sendValue ---
forceSend:0
16,5,1,8,98,1,0,43,0,C2,FF,3F,22,0,0,0,B0,16,FF,3F,6C,2E,FF,3F,
sss:2200
Heap : 31632]
[--- DestHanlder: sendValue ---
forceSend:0
16,5,1,7,6C,1,0,70,0,0,0,0,FE,FF,FF,FF,2D,DE,21,40,30,0,0,0,
sss:1900
Heap : 31632]
[OK
Executing: nop
PowerManager timeout: 0
PowerManager disabled
Executing: nop
PowerManager timeout: 0
PowerManager disabled
ready >]
Reply
#4
hmm and if you turn off debug ?
just enter again debug
Reply
#5
(10-01-2016, 08:02 PM)admin Wrote: hmm and if you turn off debug ?
just enter again debug

This morning I disabled the debug mode.
Attached the logfile and chart from yesterday and last night:


Attached Files Thumbnail(s)
   

.zip   debug log 4.zip (Size: 69.07 KB / Downloads: 7)
Reply
#6
Thumbs Up 
Finally it's stabilized. the values are correct now, for now it's installed in the living, therefor also values of 5000 ppm, but when you open a door or window the value is decreasing very fast, so it's very sensative sensor.

Debug is off and the device is running standalone (not connected to pc).
With an interval of 120 seconds, you'll get nice charts.


Attached Files Thumbnail(s)
   
Reply
#7
I am sorry i still haven't had time to look into this in details.. will do in the comming week. i was too busy now fighting with the oscillation of the output of the other sensor - CDM7160
Reply
#8
Running fine for 6 weeks, and suddenly the 65535 value is back again (see attachment).
The device was running standalone, and after reattach the power, the values are still 65535. I'll attach it again via USB and run in debug mode and see what will happen.


Attached Files Thumbnail(s)
   
Reply
#9
and attached the debug log, that shows normal values in the beginning, and again the 65535 value.


Attached Files
.txt   debug log 5.txt (Size: 146.76 KB / Downloads: 1)
Reply
#10
hmmm... looks like a problem with the sensor..
in fact it responds correctly- so there is no communicatoin failure, yet returns 65535

i will send you a new one
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)