Hi there,
I’m writing here as the last resort after months of tests without any results.
Here is the actual situation:
- HAOS deployed (using Balenaetcher) on an Intel NUC - NET i - 2I382DW, 2 USB - WiFi adapters -TP Link Archer T4U.
- The main purpose of the system is SUN2000 10KTL-M1 solar system integration, since everything is in the garrage, I need to use WiFi communication, no LAN available. I tried MOD-Bus TCP, direct RS485 communication, no success. The only working solution is wifi communication so far.
- First WiFi adapter is a client for SUN2000 internal WiFi access point - 192.168.200.x IP class, the second one is also a client for the home main router - 192.168.0.x IP class.
WiFi connections can be setup easily using nmcli commands and everything is working well and stable . The main problem is when for some reasons the system is restarted or one of the access points (either SUN2000 or the main router), the connections are not comming back again, either one USB network adapter connects to SUN2000 AP and the second one (which sould connect to main router) stays disabled, or viceversa.
I tried everything I could find on google using nmcli commands, the network communication is not persistent in case something is restarted. After restart the system connects randomly to only one WiFi ssid, sometimes I unplug the inactive USB dongle and plug it back again and both WiFi adapters are connecting to the same ssid, everything seems like in case of something is restarted the system takes over the network config and dicedes by itself.
Tried ssh into etc/ networkmanager.conf file but only dhcp=internal is shown in there.
So now the big question, maybe missed something, is there any way to force link a speciffic device to a speciffic connection: For instance:
Device: wlp0s29u1u1 to allways connect to MyHomeRouter Ap
Device: wlp0s29u1u3 to allways connect to SUN2000 Ap
So far commands like:
nmcli con add type wifi con-name SUN2000 ifname wlp0s29u1u3 ssid SUN2000
nmcli con mod SUN2000 wifi-sec.key-mgmt wpa-psk
nmcli con mod SUN2000 wifi-sec.psk MYSECRETPASSWORD
nmcli con mod SUN2000 802-11-wireless.hidden no
nmcli con up SUN2000
iptables-save
…for SUN2000 Access point
and the same for home router does the trick …until I restart the system …after restart the home assistant server disables one network adapter and the other one connects either to SUN2000 or to home router.
Offcourse there are many other thing I’ve tried, deleting all stored connections (nmcli con del xxxxxx), creating network directory inside config folder and speciffy in a network file all the necessary data for both connections, etc, etc, etc. After restart the system decides that is the best for him to use only one inerface and the second one disables it.
Any ideas fellas? I’m completly out of ideas, any help will be highly apreciated.