nymea / nymea-networkmanager

This daemon allows to set up the wireless network using a Bluetooth LE connection.
GNU General Public License v3.0
55 stars 16 forks source link

Wireless networks duplicated #44

Open uselessgames opened 3 years ago

uselessgames commented 3 years ago

I have noticed some but not all wireless networks are being duplicated on the available networks screen. The issue can be recreated with berrylan app. When I check with other devices for wifi I can see there are no duplicate networks

This is installed on a rpi4.

I tried looking through the daemon.log but couldn't see that it saves any of the network information. Tried debug option also with no success to try help provide useful log.

Happy to share logs if you tell me which one is of good use to you.

Thank you

t-mon commented 3 years ago

Hey @uselessgames

the logs can be watched live using journalctl -f -u nymea-networkmanager or you can find them in the journalctl -b -u nymea-networkmanager to get them since booted/rotated or in the /var/log/syslog.

Logs would be indeed very helpful to understand why there are duplicated networks.

uselessgames commented 3 years ago

I did monitor journalctl and saw Start streaming response data but cannot see actual data.

Attached is syslog.

syslog.log

To recreate this syslog I had additional issue with showing correct ble name. At first it showed the device name, then close berrylan, wait, and re-open it showed setup.

FYI - as mentioned in issue 43 I have secondary service that runs after nymea sets network. I have tested by disabling my service and duplicate network display persists.

t-mon commented 3 years ago

Does nmcli d wifi show duplicated networks too?

I remember we had the issue that if there are multiple wifi's with the same ssid, but different hotspots (mac addresses) we show them duplicated, so the client application can pick the one with the best signal strength.

I have to add the debug category so the ingoing and outgoing traffic can be printed optional for such situations.

PS: you should delete line 930 from that logfile.

uselessgames commented 3 years ago

nmcli does show duplicate networks too. And only the ones that have multiple hotspots, I had not thought of this, and makes sense.

PS: you should delete line 930 from that logfile.

I thought i did that.. done now.

I suppose there is no new bug that you didn't already know of.

t-mon commented 3 years ago

The way to go would be: filter on the app side duplicated networks ssid s and show only the one with the best signal strength. That slipped trough in the community edition of the app, on the other hand gives you more control.

t-mon commented 3 years ago

Keeping the issue open as a reminder:

uselessgames commented 3 years ago

The way to go would be: filter on the app side duplicated networks ssid s and show only the one with the best signal strength.

I was just doing this! :)

thank you for prompt response