Timeout while reading input data!

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
themanfrommoon
Normal user
Posts: 48
Joined: 23 May 2017, 21:38
Location: Malente / Germany

Timeout while reading input data!

#1 Post by themanfrommoon » 24 Jun 2017, 19:47

Hello,

what can be the reason for the timeout?
sensor timeout.PNG
sensor timeout.PNG (20.78 KiB) Viewed 6277 times

Installed Firmware is ESPEasy_v2.0.0-dev10_normal_4096.bin

I have only connected one DS18b20 to the ESP12F
The Data Acquisition Delay from this sensor is set to 60 sec
Advanced Settings -> Controller Settings -> Message Delay is set to 0 ms
This is recommend in the Wiki when using Deep Sleep option. (Actually I'm not using it, but this is planned for the future, so I adjusted this setting already from 1000 ms to 0 ms)

Any idea why this error occurs?

Thanks and best regards,
Chris

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Timeout while reading input data!

#2 Post by Shardan » 24 Jun 2017, 23:45

Hello,

without knowing your hardware setup:

Which GPIO did you use? Not all GPIO are just GPIO only, this might confuse the DS18B20.
Is the DS18B20 on a long wire?

Sometimes it helps to put a 10 KOhm resistor from 3,3V to the data pin of the DS18B20.

Regards
Shardan
Regards
Shardan

themanfrommoon
Normal user
Posts: 48
Joined: 23 May 2017, 21:38
Location: Malente / Germany

Re: Timeout while reading input data!

#3 Post by themanfrommoon » 25 Jun 2017, 08:20

Hello Sharda,

thanks for your answer!

I suppose this is no issue related to the hardware.
There is only one DS18b20 connected to GPIO-4 (D2) with less than 1m cable on this ESP12-F. (I have 2 of these units running, both assembled yesterday, both with the same settings and both with this same error in the logs).
The data line of the DS18b20 is connected with 3k9 to 3,3V.
My goal is to use these units as mobile battery powered temperature sensors, reporting the temperature values via WLAN to a volkszähler application.
It is running fine (temperature values arrives at the volkszähler application), but has this timeout error.
I have another nodeMCU with much longer cables and 12 pieces DS18b20 connected without any issue.

When you calculate the difference of the timestamps between the timeout Errors you get a value around 60s.
When you calculate the difference of the timestamps between the DS temperature values you also get a value around 60s.
When you calculate the difference of the timestamps of the values which has been sent to the database you also get a value around 60s.

So I think all retrieved values are correct sent to the database.
This means everything is running fine.

Except the timeout error.

So I think this is related to a setting in ESPEasy.

Any idea how to solve this?

Thanks and best regards,
Chris

Martinus

Re: Timeout while reading input data!

#4 Post by Martinus » 25 Jun 2017, 10:36

This time out message comes from a function that waits for a webserver reply, so it's not related to a local gpio or the DS sensor.

themanfrommoon
Normal user
Posts: 48
Joined: 23 May 2017, 21:38
Location: Malente / Germany

Re: Timeout while reading input data!

#5 Post by themanfrommoon » 25 Jun 2017, 10:53

Hello Martinus,

Thanks for your answer!

This means there is a webserver configured, which is not existing or which does nothing?

Where can I find this?
Where is this configured?

Thanks and best regards,
Chris

Martinus

Re: Timeout while reading input data!

#6 Post by Martinus » 25 Jun 2017, 11:01

Or likely the webserver sends something that the ESP does not understand or expect...
You can try setting the loglevel to 4 (serial or web) and see what comes back from the webserver.

themanfrommoon
Normal user
Posts: 48
Joined: 23 May 2017, 21:38
Location: Malente / Germany

Re: Timeout while reading input data!

#7 Post by themanfrommoon » 25 Jun 2017, 11:28

Okay, I set the log Level to 4.

This is the result:
ESPlog.PNG
ESPlog.PNG (14.46 KiB) Viewed 6235 times

What is the problem and how to solve it?

For your understanding, I have another ESP with ESPEasy R147 which sends the values of 12 pieces DS18b20 to the same database without any issue.
So there must be a difference between R147 and ESPEasy 2.0 dev 10 ?!?!

Thanks a lot and best regards,
Chris

Post Reply

Who is online

Users browsing this forum: No registered users and 63 guests