Trucrux Inc

Testing WIFI

Checking WIFI node #

root@imx8mm-trux-q01:~# ifconfig -a

output

eth0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 metric 1
inet6 fe80::5c08:1f7:bc2d:602d prefixlen 64 scopeid 0x20<link>
ether 26:ed:62:51:7e:72 txqueuelen 1000 (Ethernet)
RX packets 2723 bytes 280933 (274.3 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 269 bytes 32020 (31.2 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

eth1: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 metric 1
ether 2a:ef:ee:39:29:6d txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 metric 1
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 82 bytes 6220 (6.0 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 82 bytes 6220 (6.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

wlan0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 metric 1
ether 20:50:e7:4b:f3:ac txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

Enable WIFI node #

root@imx8mm-trux-q01:~# ifconfig wlan0 up

Configure Wifi #

Check Available network #
root@imx8mm-trux-q01:~# nmcli dev wifi list

output

IN-USE  BSSID                          SSID                    MODE   CHAN  RATE            SIGNAL  BARS  SECURITY 
                14:EB:B6:8A:CA:E9   Trunexa-Tech   Infra        2          195 Mbit/s    100          ****      WPA2 
                14:EB:B6:8A:CA:E8   Trunexa-Tech   Infra        149       405 Mbit/s    95           ****      WPA2 
                34:60:F9:17:78:0C     Trunexa              Infra        11         270 Mbit/s    65           ***      WPA2 
                36:60:F9:17:78:0C     Trunexa-Guest Infra        11         270 Mbit/s    65           ***       WPA2 
                70:4F:57:8E:96:50     Trunexa-Lab     Infra        10        270 Mbit/s    60          ***       WPA2 
                34:60:F9:17:78:0B      Trunexa             Infra        36        135 Mbit/s     54           **         WPA2
Connect to A protected network #
root@imx8mm-trux-q01:~# nmcli dev wifi connect <SSID> password <password> ifname wlan0

output

Device 'wlan0' successfully activated with 'ce732b81-3d1a-46aa-98c9-4f63b2afdffb'.
Connect to a hidden network #
root@imx8mm-trux-q01:~# nmcli dev wifi connect <SSID> password <password> hidden yes ifname wlan0
Network connection status #
root@imx8mm-trux-q01:~# nmcli con show <SSID>
WIFI status #
root@imx8mm-trux-q01:~# nmcli dev show wlan0
Delete connection #
root@imx8mm-trux-q01:~# nmcli con delete <SSID>