DHT22/DHT11 problems in Devices - R039

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
spants
New user
Posts: 7
Joined: 01 Nov 2015, 20:45

DHT22/DHT11 problems in Devices - R039

#1 Post by spants » 01 Nov 2015, 20:48

Hi
I problem I observed as a new user
When choosing these items, the screen does not refresh back to the devices page - it seems to get stuck...

Backbone
Normal user
Posts: 106
Joined: 06 Oct 2015, 22:12

Re: DHT22/DHT11 problems in Devices - R039

#2 Post by Backbone » 02 Nov 2015, 06:48

Same here,
Some times it does, sometimes not.
But that is for more selections made in the tool.
Refresh of the browser is your escape.

Paco

CoolWombat
Normal user
Posts: 30
Joined: 31 Oct 2015, 08:00

Re: DHT22/DHT11 problems in Devices - R039

#3 Post by CoolWombat » 14 Nov 2015, 10:51

Interesting, I just hit the same problem. It seems like there is some sort of corruption. I've just done a reset from the serial port and started all over again. I then tried going straight to the devices screen and adding a Temperature & Humidity - DHT device and straight away, blank screen. Doesn't reset wipe all the configs?

Backbone
Normal user
Posts: 106
Joined: 06 Oct 2015, 22:12

Re: DHT22/DHT11 problems in Devices - R039

#4 Post by Backbone » 14 Nov 2015, 16:13

Coolwombat,

Which GPIO port did you assigend to it?

Paco

CoolWombat
Normal user
Posts: 30
Joined: 31 Oct 2015, 08:00

Re: DHT22/DHT11 problems in Devices - R039

#5 Post by CoolWombat » 14 Nov 2015, 23:54

Paco

I originally assigned GPIO-12. But like I said earlier, after doing a reset which is supposed to have cleared all then settings I then went and add a new DHT11 sensor. Once I have selected the sensor and even before I press the "Submit" button, the page would have gone blank. So, I actually don't get to enter the GPIO.

Backbone
Normal user
Posts: 106
Joined: 06 Oct 2015, 22:12

Re: DHT22/DHT11 problems in Devices - R039

#6 Post by Backbone » 15 Nov 2015, 07:41

What do you mean by reset by serial port?
Was the port still assigned to GPIO-12 after the reset before you could hit submit?

Paco

CoolWombat
Normal user
Posts: 30
Joined: 31 Oct 2015, 08:00

Re: DHT22/DHT11 problems in Devices - R039

#7 Post by CoolWombat » 15 Nov 2015, 12:46

Paco

I still have my device connected to the PC via the USB/Serial interface which I use to program it using Arduino IDE. From the serial console, I typed the command "reset" which is supposed to reset the device and put it back to the default settings. See the bottom of this page - http://www.esp8266.nu/index.php/ESPEasy

Once I have reset it, I have to then go back in via the serial console to set up the wifi using the wifissid, wifikey and then wificonnect. After that I could then connect to it via a web browser. As I have to do it so many times, I found that it was easier that way than to connect to the device as a AP, setup the wifi and then reconnect back to my own wifi and then finally connect to it via a browser.

Back to your question below. When I first go to the devices screen after the reset, there will be no devices defined as expected. I then click on the "Edit" button on task 1 which then allows me to select the type of devices I want from the drop down menu. As soon as I select the DHT11, the screen goes blank. So, I don't get to select the GPIO.

Martinus

Re: DHT22/DHT11 problems in Devices - R039

#8 Post by Martinus » 15 Nov 2015, 12:51

@coolwombat:
How much free memory does your unit report?
Which version of the board manager package did you use in Arduino?

CoolWombat
Normal user
Posts: 30
Joined: 31 Oct 2015, 08:00

Re: DHT22/DHT11 problems in Devices - R039

#9 Post by CoolWombat » 18 Nov 2015, 10:48

Hi Martinus

I'm using Arduino 1.6.5 and esp8266 by ESP8266 Community version 1.6.5-947-g39819f0. Free memory is 17528.

I think I might have fixed it. As you asked about the version of board manager, I thought maybe something has got corrupted, so I've uninstalled the board manager and re-installed it. So, far I've been successful in adding the DHT11 and configuring it. Very happy!

Now I can start to play with my setup consisting of OpenHAB running on a Raspberry Pi plus 4 esp8266 with DHT11 & one DHT22 and one esp8266 driving my garage door opener plus a reed switch as a sensor. So far everything has been working well except for this newest esp8266 which I was having problem configuring with a DHT11. If anyone is interested, I can post some of my learnings setting up with esp8266 with ESPEasy connecting to the OpenHAB platform via MQTT. The esp8266 with DHT11 reports back temperature, humidity and also the status of the battery every 2.5 minutes. I'm waiting for some MCP1700-3302E which hopefully will help with battery life as I'm only getting about 1 week of life out of my current setup even with the esp8266 going to sleep after sending the data.

pppp33
Normal user
Posts: 71
Joined: 25 Oct 2015, 17:53

Re: DHT22/DHT11 problems in Devices - R039

#10 Post by pppp33 » 21 Nov 2015, 12:34

hi there,
I'm in a very similar situation:
After i create the device in the "devices" page, i can't access the dht entry for editing or deleting.
I get a ERR_CONTENT_LENGTH_MISMATCH error in the browser (chrome).
edit: I raised the log level and got this msg in the serial console:
No heap available, failed to malloc 4520
No heap available, failed to malloc 4504
No heap available, failed to malloc 4504
No heap available, failed to malloc 4472
No heap available, failed to malloc 4496
Somebody got same results ?
Any idea ?
Many thanks...
paolo
Last edited by pppp33 on 21 Nov 2015, 16:10, edited 2 times in total.

Martinus

Re: DHT22/DHT11 problems in Devices - R039

#11 Post by Martinus » 21 Nov 2015, 13:56

CoolWombat wrote: I'm using Arduino 1.6.5 and esp8266 by ESP8266 Community version 1.6.5-947-g39819f0. Free memory is 17528.
Actually, the used ESP core is the wrong version and 17528 free mem is critical low.
Please use the version from our wiki tutorial (1084). It should give you at least 25k free RAM.
Webgui issues mainly result from lack of memory, resulting in returning only part of the webpage to your browser.

CoolWombat
Normal user
Posts: 30
Joined: 31 Oct 2015, 08:00

Re: DHT22/DHT11 problems in Devices - R039

#12 Post by CoolWombat » 22 Nov 2015, 00:33

Thanks Martinus!

I've gone back and updated my Arduino IDE using the board manager mentioned in the wiki - http://www.esp8266.nu/index.php/Tutoria ... are_Upload

I'm now 1.6.5-1084-ga39ce29 and I'm getting 28184 free memory. Looking very good now.

Now back to my new journey trying out Domoticz. I was previously on OpenHAB.

neuros
New user
Posts: 3
Joined: 30 Nov 2015, 20:33

Re: DHT22/DHT11 problems in Devices - R039

#13 Post by neuros » 30 Nov 2015, 20:39

I'm having the same problem in R047 with dht11 and also with a sdd1306 oled.
I cant edit a device. In chrome I get a 'ERR_CONTENT_LENGTH_MISMATCH' error.
In the serial log: 'No heap available, failed to malloc 4960'
My free mem is : 16520

What's the cause and are there any solutions?

neuros
New user
Posts: 3
Joined: 30 Nov 2015, 20:33

Re: DHT22/DHT11 problems in Devices - R039

#14 Post by neuros » 01 Dec 2015, 20:37

neuros wrote:I'm having the same problem in R047 with dht11 and also with a sdd1306 oled.
I cant edit a device. In chrome I get a 'ERR_CONTENT_LENGTH_MISMATCH' error.
In the serial log: 'No heap available, failed to malloc 4960'
My free mem is : 16520

What's the cause and are there any solutions?
I found the solution myself!
Update to arduino ESP core 2.0.0

See also post http://www.esp8266.nu/forum/viewtopic.p ... core#p2001

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests