-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESP32 + DHT + SAUL reading two endpoints causes freeze. #12057
Comments
Sorry, it is my bad. I connected to sensor to wrong pin. However, freezing problem is a big deal. Maybe a timeout can be beneficial for saul_reg_read. |
I had to re-open this issue because during the sensor reading if a sensor is somehow lose wiring connection from any pin or it is forgotten to be wired this causes somehow freeze in the chip at the " saul_reg_read " function called. Update: Moreover, during open terminal with "cutecom" it also causes to freeze when open/close device. |
@mmaxus35 The question is, whether it is really a problem of ESP32/ESP8266 or rather a problem caused by the driver. The platform shouldn't be the problem if basic functionalities like GPIOs and Interrrupts are working stable what they seem to do. So it sounds for me rather a problem of the driver. Are you able to check it with RIOT on another platform, e.g., Arduino? As I remember, you were starting your work with some Arduino sketch. |
@gschorcht I managed to run Arduino example in the Riot examples folder. I will edit my code and give feedback about it. Update: I tried it in the Arduino platform and reproduced the same problem. It freezes where saul read operation is made.
|
@mmaxus35 Which pins did you use ? |
I recall the that DHT driver didn't had a timeout for unsuccessful reads at some point in time. Likely this in combination with a cabling / configuration issue cause this. Anyway, the DHT driver does now reliably report back communication issues rather than freezing and without further input from the reporter, we cannot provide further assistance. Thus, I'm closing this now. @mmaxus35: If you want to give this another spin, I would gladly help out you run into issues again. |
BOARD=ESP32
Related features: esp32, saul, dht sensor.
I have a definitions as follows:
Using SAUL i try to gather temperature and humidity values. However, in dht there are two and points and i tried to gather both of them. Using saul_reg_find_type(SAUL_SENSE_HUM); i can switch to gathering humidity but this time i cannot acquire temperature. So, i tried to do following logic. However, then i try to read two values at " **HERE ** " chip stops running and led never blinks. I couldn't understand why and if there is a way to acquire both temperature and humidity values using one saul_reg_read( ) function. Because if you have more than one for one device for two endpoints it freeze the chip, i think.
The text was updated successfully, but these errors were encountered: