Closed SERIDJ closed 3 years ago
Thank you for testing, it's extremely valuable to us. However, I kindly ask you to create one issue per bug.
sht4x error is not CRC-based. This is
i2cdev: Could not read from device [0x44 at 0]: 263
263 = ESP_ERR_TIMEOUT In other words, we just can't get correct response from device to the serial number request. It will be extremely helpful if you have a logic analyzer and use it to capture transactions between ESP and SHT.
SGP40 continuation: #211
@UncleRus oky , but i dont have hardware analyzer , i can print this response from Arduino code : https://github.com/adafruit/Adafruit_SHT4X/blob/master/examples/SHT4test/SHT4test.ino ... ??
this lib work good for me !
Try now, I added 10ms timeout to read serial command
@UncleRus ah good it work well now ,
(0) cpu_start: App cpu up.
I (249) heap_init: Initializing. RAM available for dynamic allocation:
I (256) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (262) heap_init: At 3FFB28E8 len 0002D718 (181 KiB): DRAM
I (269) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (275) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (281) heap_init: At 4008AF8C len 00015074 (84 KiB): IRAM
I (288) cpu_start: Pro cpu start user code
I (306) spi_flash: detected chip: gd
I (306) spi_flash: flash io: dio
W (306) spi_flash: Detected size(16384k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
I (316) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
sht4x Sensor: 23.47 °C, 36.61 %
sht4x Sensor: 23.45 °C, 36.62 %
sht4x Sensor: 23.47 °C, 36.57 %
sht4x Sensor: 23.46 °C, 36.59 %
sht4x Sensor: 23.44 °C, 36.61 %
sht4x Sensor: 23.46 °C, 36.62 %
sht4x Sensor: 23.45 °C, 36.61 %
sht4x Sensor: 23.45 °C, 36.63 %
sht4x Sensor: 23.44 °C, 36.63 %
sht4x Sensor: 23.44 °C, 36.63 %
@UncleRus i am not sure but i test sht3x and i think it have bug too ....
I (306) spi_flash: flash io: dio
W (306) spi_flash: Detected size(16384k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
I (316) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
E (362) i2cdev: Could not write to device [0x44 at 0]: 263
ESP_ERROR_CHECK failed: esp_err_t 0x107 (ESP_ERR_TIMEOUT) at 0x400848dc
file: "../main/main.c" line 149
func: app_main
expression: sht3x_init(&dev)
ELF file SHA256: ae8216d2911ca98b
Backtrace: 0x40084321:0x3ffb4710 0x400848df:0x3ffb4730 0x400d3d6d:0x3ffb4750 0x400d0d02:0x3ffb4780 0x4008591d:0x3ffb47a0
Rebooting...
ets Jul 29 2019 12:21:46
No, I don't think so: this is writing to device, not reading from it. An i2c write timeout means the slave device doesn't respond with an ACK.
Please create a new issue for this.
its work , not need to add an issue,
thanks ,
Device type:
Framework version:
Describe the bug:
hi, i try to test SHT4X and SGP40 it not work with this library ,bcs i tested it with arduino c++ code it work well.
DEVICE 1 SHT4x :
TERMINAL output :
-its not problem of resistor-pull-up and not speed clock i change it from 1Mhz to 100Khz, and i use short cable to connect device to esp32 <10cm
Patiently waiting for your input.
Thanks!