Posts: 219
Threads: 28
Joined: Jul 2020
Reputation:
10
I think the title says it all. If the network settings is set to "On board", any ESP32 device can see the network and connect to it.
However, if it's on "AP + Station", the network worn't be found by ESP32 (for example using SensESP libraries).
I don't know if this is intended or not, or how can I fix it, but it's quite annoying, because i like to be connected to the marina's wifi, and setting to "On board" won't allow me so.
Any help will be much appreciated, thanks!
Posts: 219
Threads: 28
Joined: Jul 2020
Reputation:
10
I must add that the phone can connect to Rpi's hotspot always, the only problem is with ESP32.
Also, this only happens on Rpi 4B running OpenPlotter3, but it works on Rpi5 running the beta of OpenPlotter4
Posts: 219
Threads: 28
Joined: Jul 2020
Reputation:
10
Thanks Sailabout, but I already erased the flash to test. Even tested different ESP32 devices, but the problem seems quite consistent among them.
Posts: 1,179
Threads: 98
Joined: Mar 2016
Reputation:
70
Can't help but have similar results. Seemed to be OK with a separate USB wifi dongle to connect to a network, sharing just one adaptor to be both a station and connect to a network on a RPI is known to be not very stable. Now just enable it when needing to update.
Posts: 219
Threads: 28
Joined: Jul 2020
Reputation:
10
Thanks PaddyB, that seems like a good alternative. I think i'm gonna go with the wifi dongle and setup the network in OP as "On board".
Posts: 158
Threads: 13
Joined: Nov 2020
Reputation:
16
2024-01-03, 02:32 PM
(This post was last modified: 2024-01-03, 03:03 PM by Boatingbaileys.
Edit Reason: typo
)
I have the same issue, as i connect to a phone Hotspot, I just forget or disconnect when I'm about to start the engine which my esp is attached to.
I have a feeling its something to do with the Bonjour protocol for discovery and therefore the ESP can't find SignalK, If i remember correctly they still connect to the SSID (or have i made that up??). Its possible to specify the location of the SignalK server IP and port in the code which might make it connect.
Scratch that, i dont think the SSID is visible. The ESP is 2.4ghz only and in this mode I think both the connected network and devices connected to the pi have to be on the same band. The network you are connecting to is that 5ghz? I know you can select this in the software but I wonder if its not selected and you connect to something, and get pushed to the 5ghz band (which is quite common) that would stop the esp connecting. Doesn't seem to be much info on exactly how the wifi card does this.
I think im going down a rabbit hole here -
Personal Hotspot uses a 5GHz connection by default. On iPhone 12 or later, you can turn on Maximize Compatibility for Personal Hotspot to use a 2.4GHz connection. Turning on Maximize Compatibility might reduce internet performance and Wi-Fi security for devices connected to the hotspot.
I'll have to try that next time, i think that's the reason why my ESP can't connect when the Pi is connected to my phone as I've automatically switched over to 5ghz.
Posts: 219
Threads: 28
Joined: Jul 2020
Reputation:
10
Well that's weird. I just received a new Rpi4B 8GB and I tried at home with the headless image. It can connect to home's wifi, and also ESP32 can connect to openplotter AP :S
Gonna take it to the boat and see if the same happens with the marina network. If so, it might be a hardware issue. Will tell you the results.
Posts: 219
Threads: 28
Joined: Jul 2020
Reputation:
10
This is indeed quite weird. I tried with the clean image, and it DOES work. The ESP32 can connect to the Rpi without issue, while the Rpi is connected to marina's network.
However, I put the "good SSD" (the one with everything configured), and again the AP is not visible from ESP. So it must be software related.