ESP8266 (Wemos D1 ESP12) wifi -> GSM via wifi disturbance #10117
-
I have a home application (all micropython) that works like a charm: ESP12 (Wemos D1) connected to a Pico, both 'very close' to my Wifi-router. The Pico is a logger for radiological data + a home intrusion security system. The system sends all info to a MQTT broker and to IFTTT for immediate alerts. So far so good. It is operational more than a year now. Since many months I get response from mobile callers that somethimes I dissapear for a short time and that they almost don't hear me for a short while. I came to the conclusion, having excluded my iPhone as the cause, that very probably my home application is consuming a lot of wifi bandwidth, when both GSM and application are in the same wifi channel. I also assume that very strong Wifi signals are getting priority in my Wifi-router. I measured the wifi power from my ESP appl, this is at about -50dBm. Question: Meanwhile I'll continue testing this phenomena by switching my appl OFF during long phone calls and GSM call tests via 4G as well. |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 2 replies
-
I'm very surprised to hear of WiFi affecting GSM. My understanding is that they use entirely different radio frequencies. I've run a number of long term tests with MicroPython targets running MQTT. Most MQTT applications use minimal bandwidth. I never detected any interference with other WiFi applications, still less with GSM. Are you sure it's your app that's causing the dropouts and not something completely different? |
Beta Was this translation helpful? Give feedback.
-
Thanks Peter for your feedback, much appreciated! indeed this is a tricky problem which I face for many months now. I realy would like to solve it and I will not give up, The iPhone is renewed and all kinds of tests on my wifi-router are succesful. I even looked for a testing application that shows the real-time wifi channel load, but these things are pretty complex to setup. When I call via my local wifi network, I do have that problem. E.g. calling via Whatsapp which is using wifi as a bridge, VoIP. Just only yesterday by coincidence I was calling close to my home system and the called person suddenly could not hear me. So I am pretty sure, there is a wifi jam on one of the wifi channels. That is why I would like to reduce Wifi power without succes so far. I'll keep you posted of any progress of the tests |
Beta Was this translation helpful? Give feedback.
-
Thanks davefes, good point my plan of attack can be extended now and will be as follows:
I'll keep you'll posted of any progress of the tests |
Beta Was this translation helpful? Give feedback.
-
I am still testing why I can't phone via wifi close to my ESP8266 application with micropython. I also noticed something strange: my application is in STA_IF mode, still the device presents itself as a Wifi-network 'MicroPython-dd268a'. I would not expect this in STA_IP mode, only in AP mode. Maybe my iPhone selects the strongest wifi network automatically and is fooled by the ESP8266 wifi? Question: Thanks for your reply |
Beta Was this translation helpful? Give feedback.
-
Thx robert-hh, |
Beta Was this translation helpful? Give feedback.
-
Solved: GSM via wifi disturbance In my script, I included #: I suggest therefore to INCLUDE the # force Access Point OFF instruction in STA mode. Thx for your suport in this (long lasting) issue |
Beta Was this translation helpful? Give feedback.
Solved: GSM via wifi disturbance
I veryfied the comment of robert-hh and indeed, the esp8266 was in AP mode even when the script did NOT set the AP mode. I tested this further by changing the script and forcing AP mode and then back to STA, indeed the esp8266 still created a MicroPython-xxxx network.
In my script, I included #:
...
wlan.connect(wifi_ssid, wifi_password)
network.WLAN(network.AP_IF).active(False) # force Access Point OFF
...
The MicroPython-xxx wifi network disappeard and smartphone gsm comm via wifi is now flawless.
I checked with the smartphone app AirPort and found that my Home wifi network and MicroPython had about the same dB strength which support my assumption now th…