Closed DavidSichau closed 1 year ago
Crash on scd40 too.
Hello, I'm working on investigating this. In the meantime, please revert to 1.0.4.
Please provide the platform in use (atmega, esp32, etc.). Additionally, please post the output from running with debug enabled (uncomment mySensor.enableDebugging()
), that will help narrow things down.
Thanks!
Using ESP8266 Debug output:
SCD40::begin: got serial number 0x6EE557073B66
SCD40::getSensorType: Word 1: 6EE5
SCD40::getSensorType: Word 2: 5707
SCD40::getSensorType: Word 3: 3B66
SCD40::extractMaskedSensorType: i: 0
SCD40::extractMaskedSensorType: serialNumberArray[i]: 6EE5
SCD40::extractMaskedSensorType: masks[i]: 3F
SCD40::extractMaskedSensorType: maskedValues[i]: 25
SCD40::extractMaskedSensorType: i: 1
SCD40::extractMaskedSensorType: serialNumberArray[i]: 5707
SCD40::extractMaskedSensorType: masks[i]: FF00
SCD40::extractMaskedSensorType: maskedValues[i]: 5700
SCD40::extractMaskedSensorType: Combined Value: 2557
SCD40::extractMaskedSensorType: Something's seriously wrong here...
--------------- CUT HERE FOR EXCEPTION DECODER ---------------
Exception (29):
epc1=0x40202df5 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000
>>>stack>>>
ctx: cont
sp: 3ffffde0 end: 3fffffd0 offset: 0150
3fffff30: 57076ee5 00003b66 3ffeeb80 402048b0
3fffff40: 00000000 00000001 3ffee99c 402033b5
3fffff50: 35454536 37303735 36364233 3ffee900
3fffff60: 00000001 3ffee9fc 3ffeeb80 402016c8
3fffff70: 3ffe55f4 3ffee9fc 3ffeea40 3ffee9bc
3fffff80: 3ffeea28 3ffee99c 3ffeeb80 4020110a
3fffff90: feefeffe feefeffe feefeffe feefeffe
3fffffa0: feefeffe feefeffe feefeffe 3ffeec00
3fffffb0: 3fffdad0 00000000 3ffeebd4 40205108
3fffffc0: feefeffe feefeffe 3fffdab0 40101001
<<<stack<<<
--------------- CUT HERE FOR EXCEPTION DECODER ---------------
ets Jan 8 2013,rst cause:2, boot mode:(3,6)
load 0x4010f000, len 3424, room 16
tail 0
chksum 0x2e
load 0x3fff20b8, len 40, room 8
tail 0
chksum 0x2b
csum 0x2b
v00048c30
~ld
Thanks for the debug log @kharar! Which SCD are you working with? I tried my code with a few dozen sensors, but your serial number is leading me to believe my solution for determining the sensor from the serial number might be flawed.
SCD41 (afaik - bought it from ebay)
On Thu, Jun 8, 2023, 19:45 Alex Brudner @.***> wrote:
Thanks for the debug log @kharar https://github.com/kharar! Which SCD are you working with? I tried my code with a few dozen sensors, but your serial number is leading me to believe my solution for determining the sensor from the serial number might be flawed.
— Reply to this email directly, view it on GitHub https://github.com/sparkfun/SparkFun_SCD4x_Arduino_Library/issues/6#issuecomment-1583083867, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKU4BQO2IT4LXHXS7SCZVLXKIFSPANCNFSM6AAAAAAYZCZR3Q . You are receiving this because you were mentioned.Message ID: @.***>
Please try now. It worked with the atmega, but failed with the esp32. It now works with the ESP32.
I am using this with RP2040 and it is also crashing, does 1.1.1 has resolved the issue?
Cannot find SCD41 on ESP8266 with library 1.1.1
On Tue, Jun 13, 2023, 13:11 Vaibhav Jadhav @.***> wrote:
I am using this with RP2040 and it is also crashing, does 1.1.1 has resolved the issue?
— Reply to this email directly, view it on GitHub https://github.com/sparkfun/SparkFun_SCD4x_Arduino_Library/issues/6#issuecomment-1589086569, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKU4BXBBI6FDOGGGTL2N73XLBDG7ANCNFSM6AAAAAAYZCZR3Q . You are receiving this because you were mentioned.Message ID: @.***>
1.1.1 should solve the crashing issue. I've been in contact with Sensirion about the sensor type. I'm testing a solution now. For now, you can just set the 4th input argument to begin to 'false' to have the functionality from 1.0.4.
v1.1.2 was just published. Please give a few hours to allow it to propagate through to the Arduino libraries. This should finally resolve the issues introduced by 1.1.0. I'm closing this, if there are further issues, please open a new issue.
I have the same program, which run perfectly with 1.0.4 and now crashes with version 1.1.0
Code: