visualapproach / WiFi-remote-for-Bestway-Lay-Z-SPA

Hack - ESP8266 as WiFi remote control for Bestway Lay-Z spa Helsinki
GNU General Public License v3.0
297 stars 74 forks source link

Can't connect to D1 Mini v3 WiFi after installing firmware & filesystem image #779

Open redfusion83 opened 1 month ago

redfusion83 commented 1 month ago

Hardware (please complete the following information):

Software (please complete the following information):

I followed the instructions, compiled and uploaded the firmware and filesystem image. After rebooting I can see the wifi network I need to connect to. However, all attempts to do so have failed (tried with Android and iPhone). Now, I've had problems with faulty chips in the past, so maybe this is the same problem. However, maybe there is something I can do to diagnose the cause and get it working?

visualapproach commented 1 month ago

Did you go to http://192.168.4.2?

redfusion83 commented 1 month ago

Did you go to http://192.168.4.2?

Not possible, since I cannot connect to the access point ("Connection failed").

n3xus1 commented 1 month ago

Did you go to http://192.168.4.2?

Not possible, since I cannot connect to the access point ("Connection failed").

Did you enter the AP password that's in the manual when connecting and make sure it was spelled correctly? I'd try deleting aka forgetting the AP and reconnecting. Then make sure you are connecting to the AP using only http and not https

redfusion83 commented 1 month ago

Yep, password is correct (otherwise the connection is rejected and there is a message that authentification has failed). The connections to the AP is very unstable, it connects and disconnects all the time, making it impossible to open the configuration page in the browser. I tried it on different chips (d1 mini v2, d1 mini v3, nodemcu 1.0) and with different phones (Android & iPhone), so it seems unlikely that there is something wrong with the hardware. Still strange that it seems like I'm the only one with this problem...

However, I was able to configure the esp by using a laptop. The connection was still kind of weak, but strong enough to set everything up.

Feno2000 commented 4 weeks ago

getting the same issue with the d1 mini pro. finds the AP but the password from the manual just doesn't work, tried copying and pasting it from the manual and from the source code and it just doesn't connect. I have the d1 mini and it works fine, although the wifi range on the mini is crap hence going with the pro and external aerial.

n3xus1 commented 3 weeks ago

I'd try connecting to the D1 using no wires connected or soldered to the board and power it via USB near your AP. If you have more than one AP make sure to connect to it and use it near the one that it will always use. There is issues with roaming between multiply AP with the same SSID, currently the software doesn't look for the strongest signal then connect it always connects to the same AP and channel

visualapproach commented 3 weeks ago

It works on the d1_mini board. Cannot try the PRO since I don't have it. Does it work if you change the board to d1_mini_pro?

visualapproach commented 3 weeks ago

Try the latest dev branch! Turns out that in some cases the ESP tries to reconnect all the time and by doing so it switches wifi channels and since the AP uses the same antenna it will behave badly. So I modified the code to only try to reconnect to station every minute. This made the AP much more stable. It will take up to 2 minutes though to reconnect to station after you've set the credentials.

Feno2000 commented 3 weeks ago

amazing. ive ordered some more d1 mini boards. as the pro one ive been working on just wont flash now. not sure how ive bricked it, but trying to reflash and get it sorted i must have killed the board. but what you are saying seems to match what i was seeing with the AP, it was there and then just kept vanishing after authentication and then having to start again. hopefully when the new boards come it should resolve. thanks for taking the time to respond.

visualapproach commented 3 weeks ago

@Feno2000 If your 'bricked' minis have ch340 usb chip, and you are using windows, the windows drivers doesn't work. Google 'ch340 driver' and download from 'wemos.cc' and install.

Feno2000 commented 3 weeks ago

i do have that one, the device goes to "Windows has stopped this device because it has reported problems. (Code 43)". ive bought a usb to ttl bypass and even that doesn't help, cant get tot he board to reflash. i just cant get to a point where the device shows on the com ports. it did originally obviously as i did get it flashed but has since been downhill. i think its best to start with a fresh board and see how i get on as i cant confirm any solid findings now.