Hi all,
I’ve been building with MOS for a little while now and am mostly happy with how my device functions, so I wanted to detach from my computer and power via a 5v wall adaptor.
I’m using an ESP 32 dev board with an SPI screen attached.
I’ve noticed some strange behaviour that I was hoping someone might be able to help me solve:
-
When plugged in to my laptop with serial logging enabled I see my device has great up time and I’ve never really seen an unintended network disconnection or reboot. I always see it available on my network and I can get it do respond almost always instantly. The buttons I’ve wired in always work too.
-
Using the same USB cable with a USB2.0 header that I only pull power from (no data) I see my device becomes unresponsive to web requests (it drops off the network) after a few hours, but the screen still functions and it appears as though the device is still functioning. If I start to press the buttons on the device it seems OK for a few seconds then reboots.
First things that come to mind that I wanted to test/ask:
A. Is there anything I should be doing to disable logging or something if my device is never getting to write the logs? I’m thinking maybe like serial buffer overflow or something if the logs are not being read.
B. I might be running out of memory somehow? I’m monitoring free heap now and logging to the cloud, so hoping that might show something. Seems unlikely though.
C. I’m going to test that the USB2.0 header I’m using isn’t limiting the current the device can pull. It seems odd to me that the screen and device would still function, but I don’t really have any other ideas.
Any other suggestions for things I should look at/try?
Thanks.