Closed NeoMod closed 11 months ago
Thanks for the report but I dont have access to the PCB or the D1 mini v4 so I cant really reproduce the issues here. What would be helpful is if you can do the following tests to narrow down what could be the cause of this:
Update! I actually found a v4 D1 mini in my stash to test with..
How do you flash the device ? I first tried using brewflasher 1.5 but that created a corrupt installation (flashing actually failed). I then tried using web.brewflasher.com and that worked. I managed to get a device up and running without issues after that.
On the wifi side, you can also check these suggestions when using esp8266 boards:
After looking into the specifications from espressif on the esp8266 these are some of the hardware/software limitations regarding wifi:
From my own experiences:
Source: https://www.espressif.com/sites/default/files/esp8266_wi-fi_channel_selection_guidelines.pdf
I will add this information to the troubleshooting guide.
Added information to the documentation around wifi
@mp-se thank you very much for all the help and the documentation.
Sorry for my delay, got a a bit tangled with work and couldn't get back as soon as I wished.
So, as for the first set of questions:
- Do you have a spare D1 mini that you can try the software on without connecting any hardware ?
- Can you try to access the GUI from a mobile device android or ios ?
- Can you connect the device to your computer and collect the serial logs ? Dont forget to remove the battery when doing this.
1) I tried with another D1 Mini and the results where prettìy much the same. 2) I tried accessing the GUY from my Android phone and I've got mixed results: at first it seemed to be much more fluid and fast, but moving around the menu/tabs quickly caused the same issues I was noticing. 3) I haven't but I'll try asap. I tested a couple of other things and actually forgot to dump the logs. my bad "-.- I know...
Update! I actually found a v4 D1 mini in my stash to test with..
How do you flash the device ? I first tried using brewflasher 1.5 but that created a corrupt installation (flashing actually failed). I then tried using web.brewflasher.com and that worked. I managed to get a device up and running without issues after that.
I am glad I wasn't the only one having trouble with it! I thought I was incapable of using that program: I only had one successful flash attempt, using the desktop version. The web flasher failed many times (corrupt flash) and some other times refused to download the firmware altogether.
I cloned the GIT locally (thanks for that!) and I moved into VSCode: compiling and flashing was as simple as selecting the right COM port and pushing the button.
(Incidentally, I have seen the same errors with BrewFlasher on another board with different ESP)
On the wifi side, you can also check these suggestions when using esp8266 boards:
And finally I discovered pretty much the same thing! The WiFi Network itself was at fault: apparently UniFi - Ubiquiti hardware really don't play nice with ESP boards if left with default settings on gateway/AP side.
I created a dedicated network on a UNIFI UAP-AC and followed both the suggestions I found on unifi forum where there was a niche discussion about setting up gateways to allow ESP (and similar) devices to seamlessly work with standard high-usage networks in mixed environments.
I have now applied also the suggestions you stated above, and the stability issues are gone. UI still remains a bit slow, but I'm guessing this is totally normal and expected since using and ESP8266 instead of the recommended ESP32.
On that note, I have ordered an ESP32 board and will move to it for the future tests...I definitely want to have a successful brew using a PCB loaded with gravitymon. ;)
Describe the bug Testing the firmware on a D1 Mini v4 from LOLIN (WeMoS) mounted on "The Jeffrey 2.69" PCB highlighted what appears to be a hig unreliability with WiFi connection.
To Reproduce Steps to reproduce the behavior:
Expected behavior A stable wifi connection giving the ability to properly configure and test the device.
Screenshots
![image](https://github.com/mp-se/gravitymon/assets/13747261/f3e867b4-6988-4ea5-8893-192afec1647c)
Software:
Additional context The 3rd screenshot shows an error log even after what seemed to be a successful calibration attempt, with saved values been shown inside the configuration tab.