You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tried to connect my SCD41 and I uploaded the example code to my ESP32-C3-DevKitM-1 and I got this error:
E (282) i2cdev: Could not write to device [0x62 at 0]: -1 (ESP_FAIL)
After some troubleshooting, I found out that the issue is in scd4x_wake_up function. So I checked the datasheet and section 3.10.4 has a description where it is mentioned that this command is not acknowledged by SCD4x:
Wake up the sensor from sleep mode into idle mode. Note that the SCD4x does not acknowledge the wake_up
command. The sensor idle state after wake up can be verified by reading out the serial number (Section 3.9.2).
I've checked the code for the wake up function and it's using i2c_dev_write function, which always enables ACK, which I think is why this function fails.
Which SDK are you using?
esp-idf
Which version of SDK are you using?
v5.1.1
Which build target have you used?
esp32
esp32s2
esp32s3
esp32c2
esp8266
other
Component causing the issue
scd4x
Anything in the logs that might be useful for us?
No response
Additional information or context
No response
Confirmation
This report is not a question nor a request for drivers.
The text was updated successfully, but these errors were encountered:
The issue
I have tried to connect my SCD41 and I uploaded the example code to my ESP32-C3-DevKitM-1 and I got this error:
After some troubleshooting, I found out that the issue is in
scd4x_wake_up
function. So I checked the datasheet and section 3.10.4 has a description where it is mentioned that this command is not acknowledged by SCD4x:I've checked the code for the wake up function and it's using
i2c_dev_write
function, which always enables ACK, which I think is why this function fails.Which SDK are you using?
esp-idf
Which version of SDK are you using?
v5.1.1
Which build target have you used?
Component causing the issue
scd4x
Anything in the logs that might be useful for us?
No response
Additional information or context
No response
Confirmation
The text was updated successfully, but these errors were encountered: