I'm having a problem with a Tasmota device with high packet loss, causing it to reconnect to MQTT. The problem only occurs on one Tasmota device, the other (connected to another AP) doesn't have this issue. This is my /etc/config/wireless:
What tamota is saying about this?
You have artificially reduced power and no country in 2.5ghz
You need more logs, eg wnm sleep mode dares station to switch off transmitter for spec time, then with inaccurate clock it may legitimately miss the packet it is supposed to wake for.
Apparently some devices don't like a country code, if I set one they will also have problems with high packet loss.
Do you suggest turning off WNM sleep mode?
It's weird that it's only happening with this device, the other device doesn't have this issue and the config is the same for both APs
You tried it with another AP and it worked perfectly
You tried it with another AP and the same symptoms occurred
If the first, what were the configuration differences?
If the second, it's probably the ESP itself, or the power supply to it.
(I've had to bin a small number of ESP8266 boards over the years because they were unstable compared to others bought at the same time).
The ESP isn't sitting on a mains cable, by any chance? I recently had one that couldn't hold a connection because I'd foolishly tucked it behind a cable inside a heat pump without realising that it was a 240V supply to a rectifier!
Spoke too soon. It's frustrating that changing any setting NOT related to the 2.4GHz radio causes this issue to come back. It was working fine, then I changed the 5GHz channel and it started again.
Note to self: ESP8266 doesn't like 2.4GHz channel 1. Changed to 13 and no problems
Interesting. That's either a very slightly damaged antenna or DSP circuit feeding the microcontroller, or channel 1 is just really noisy and "polluted" with other nearby devices.
Remember that 2.4GHz WiFi has to coexist not just with other APs and clients outside your network, but also with Bluetooth and ZigBee devices & networks. And microwave ovens too.
There's another problem: Disabling WNM sleep mode makes my AC have high packet loss, enabling it makes Tasmota have high packet loss. Now I have to pick between my AC and Tasmota??
So it seems disabling WNM sleep mode and Time advertisement across all 4 radios fixed the issue (for now).
select the channel manually, neighbors may interfere
channel 1, 6, 11 do not overlap with other channels
and do not try to put the 13th channel, because there will be losses of packages
since the devices themselves are not friendly with channel 13 ))
The correct country code needs to be set, there's no way around that - if you transmit 802.11d or not is another question (although any client stumbling over 802.11d would be blatantly broken, as it's common place, even in OEM firmwares and required for contemporary wifi standards), but your router must be configured with the correct region.
High packet loss again after restarting the router. I think the problems lie somewhere else as the whole network is unstable, not just this device. After changing the channel to auto it started working again, it's really strange, like someone aimed a microwave antenna at my house...
Also, does OpenWRT take into account other sources of interference when choosing the Wi-Fi channel or just the other networks? It's kinda strange it chose channels 11 and 12 instead of 6 and 11