frightanic
New Member
Posts: 35
Raspberry Pi: Yes
Other Device: OurWeather (ESP8266), lots of ESP8266/ESP32 modules
|
Post by frightanic on Mar 4, 2018 14:21:40 GMT -8
My unit freezes randomly from time to time but very unpredictably. Sometimes it runs for a couple of hours, sometimes for less than 30min.
When it freezes it simply hangs in which ever state it happened to be at that moment. The blue power LED is still on and so is the RED LED on the RTC. If it freezes when the OLED display was showing content then this remains stuck there as well.
I would assume that if this were an issue with the power supply (i.e. not enough current or voltage) the unit would simply reboot rather than freeze, right? What else could cause this? Can the unit run without the RTC? I'd like to exclude it from the equation.
|
|
|
Post by SDL on Mar 5, 2018 14:25:26 GMT -8
Frightanic,
The ESP8266 does not reboot gracefully from power problems like and Arduino will (and most of the time a Raspberry Pi will). Yes, the unit will run fine without the RTC and that is a good thing to try.
Do you have the ability to bring up an Arduino IDE and plug in the included FTDI cable to look at what OurWeather is sending to the Serial port? Actually, you don't even need the Arduino IDE. You can just hook up the FTDI cable to OurWeather, plug it into a USB cable and then open a serial port to that line. I think it is running at 115200 baud.
BP
|
|
frightanic
New Member
Posts: 35
Raspberry Pi: Yes
Other Device: OurWeather (ESP8266), lots of ESP8266/ESP32 modules
|
Post by frightanic on Mar 6, 2018 12:43:04 GMT -8
The ESP8266 does not reboot gracefully from power problems Not gracefully but it would normally just reboot if power is too low. That doesn't happen in my case so it must be something else I reckon. Besides, since OurWeather is fed with 5V I suspect there's an LDO or a step-down converter somewhere on the PCB to turn this into 3.3V for the ESP8266. Anyway, with every test this looks weirder and weirder. I just had it inside without the RTC for the last 24h and all was well. Then, without unplugging, I put it in from of the window (leaving the window ajar) and within 30min it froze. Notes: - The system is in a waterproof enclosure. Hence, it is protected from physical and environmental "damage".
- The temperature difference between inside and outside is some 15°C; humidity is maybe 35% higher outside. It's unlikely to be relevant, though.
- In frozen state, the display hangs and requests against the API time out. BUT the wind & rain bucket LEDs still blink when the respective sensors are activated. Are those LEDs hardware controlled or software controlled?
More and more this sounds like a software issue to me.
Debugging with the FTDI cable is a bit cumbersome in my environment but I understand I may eventually have to bite the bullet.
|
|
|
Post by SDL on Mar 6, 2018 13:05:47 GMT -8
Well, depending on the power profile, it may just hang instead of reboot. Too make it more reliable, you would need to add a watchdog time and reapply power when the computer gets lost. That will work.
You could use a SwitchDoc Dual WatchDog board and a USB PowerControl Switch to do this.
The Rain buck and wind LEDs are driven by the sensors. So they are under hardware control.
I think the data from the FTDI plug is key to figuring out why the machine is hanging.
BTW, are you hitting the REST interface during the periods when you are looking for the hang? If you are, turn that off and see if the machine is still locking.
Another indication of a bad power supply would be if the system hangs when the WIFi is in use. The Wifi takes a whole lot more power than when the machine is just running About 3X.
BP
|
|
|
Post by eduardogodinez on Mar 8, 2018 9:07:09 GMT -8
Hi, I have exactly the same problem, try to remove the RTC and it always freeze. The light of the wind detector is normal (turn off/on). Any news about this problem? We bought 8 stations and 4 that I installed has the same problem, one works fine for 2 days but the problem appear, Before installing them I updated the firmware to version 27 Best Regards Eduardo Attachments:
|
|
|
Post by SDL on Mar 8, 2018 11:37:05 GMT -8
|
|
frightanic
New Member
Posts: 35
Raspberry Pi: Yes
Other Device: OurWeather (ESP8266), lots of ESP8266/ESP32 modules
|
Post by frightanic on Mar 8, 2018 22:20:26 GMT -8
RTC on or off (i.e. not connected) doesn't matter in my case. I only hit the REST interface once I saw that the device has locked up.
I also tested with different USB cables and different power adapters to rule out power supply issues.
When none of that made any difference I attached the FTDI connector and monitored the serial output. It doesn't give any further hints. No errors are reported and the system halts always at a different point; the serial log looks all good.
|
|
|
Post by SDL on Mar 9, 2018 8:20:01 GMT -8
Could you please show us the serial log from a lockup? We may see something. It might be before the lockup. Post a couple of hundred lines please.
RTC removal was just a single suggestion to a question, not a general question. This is probably some kind of a software problem.
Please let us know what version of software you are running. That is an important criteria.
We are releasing V028 today, but that just improves the reliability of the AM2315, and is not addressing lockup issues. Our test system is not locking up. We appreciate the help in figuring this out.
BP
|
|
|
Post by SDL on Mar 9, 2018 8:21:15 GMT -8
And please, answer the question whether you are using the REST interface from a browser or from a remote system.
This HAS caused lockups in the past (see the threads on browser lockups).
BP
|
|
|
Post by eduardogodinez on Mar 12, 2018 12:18:57 GMT -8
And please, answer the question whether you are using the REST interface from a browser or from a remote system. This HAS caused lockups in the past (see the threads on browser lockups). BP Hi, we bought 8 station kits, but all of them have been randomly blocking and I have done all the forum tests • Change the RTC • Test the equipment with and without RTC • Use the REST interface As you can see in the video (I Get it, but upload photos only), the block is complete Notes: • If you ping the station's IP address it response correctly • The use of the REST interface remains unanswered and error-free • All was "brand new" • I update the firmware to version 28 Attachments:Log.txt (400.3 KB)
|
|
|
Post by eduardogodinez on Mar 12, 2018 12:19:51 GMT -8
And please, answer the question whether you are using the REST interface from a browser or from a remote system. This HAS caused lockups in the past (see the threads on browser lockups). BP Hi, we bought 8 station kits, but all of them have been randomly blocking and I have done all the forum tests • Change the RTC • Test the equipment with and without RTC • Use the REST interface As you can see in the video (I Get it, but upload photos only), the block is complete Notes: • If you ping the station's IP address it response correctly • The use of the REST interface remains unanswered and error-free • All was "brand new" • I update the firmware to version 28
|
|
|
Post by eduardogodinez on Mar 12, 2018 12:47:32 GMT -8
Hi, we bought 8 station kits, but all of them have been randomly blocking and I have done all the forum tests • Change the RTC • Test the equipment with and without RTC • Use the REST interface As you can see in the video (I Get it, but upload photos only), the block is complete Notes: • If you ping the station's IP address it response correctly • The use of the REST interface remains unanswered and error-free • All was "brand new" • I update the firmware to version 28 Attachments:
|
|
|
Post by SDL on Mar 12, 2018 15:05:37 GMT -8
eduardo,
I'm not sure what you mean by this:
If you ping the station's IP address it response correctly.
You mean after it locks, it still responds to a Ping?
• The use of the REST interface remains unanswered and error-free
Are you using the REST interface or not? Not sure what you mean by this. Some browsers will cause the REST interface to lock up.
BP
|
|
|
Post by SDL on Mar 12, 2018 15:38:53 GMT -8
Eduardo, I was just looking through your pictures and I saw the attached. I don't even recognize this listing of numbers. Doesn't look right to me. Is this where it is hung? BP
|
|
|
Post by eduardogodinez on Mar 13, 2018 6:27:51 GMT -8
Hi BP: "If you ping the station's IP address it response correctly" Yes, when the station hang up, if you ping to the ip assigned it response. "The use of the REST interface remains unanswered and error-free"In mozilla or chrome, when you put the 192.168.1.235/FullDataString there is no response and the page does not return any errors but does not show data and try indefinitely load the page or waiting for response "I was just looking through your pictures and I saw the attached. I don't even recognize this listing of numbers. Doesn't look right to me. Is this where it is hung?"exactly, I connected the Serial to usb adapter and use Putty lo get the log, when the station hang up the last time, the response trough the serial communication was the number 31341, where this numbers come from... I Don't know, but as you can see in the serial log response this numbers come from the station I really will appreciate any help, I put in the farm the stations but can't continue until I resolve this issue Best Regards Eduardo
|
|