Personal tools

Difference between revisions of "Connecting to WiFi network on VisionSOM-6ULL"

From SomLabs Wiki

Jump to: navigation, search
(Created page with "{{PageHeader|Connecting to WiFi network}} In order to connect to the WiFi network a proper configuration needs to be provided. This tutorial shows how to do this using the ''...")
 
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
  
 
In order to connect to the WiFi network a proper configuration needs to be provided. This tutorial shows how to do this using the ''wpa_supplicant'' tool.
 
In order to connect to the WiFi network a proper configuration needs to be provided. This tutorial shows how to do this using the ''wpa_supplicant'' tool.
 +
 +
'''In versions older than SoMLabs-VisionSOM-6ULL-Debian-2020-02''' - first copy the WiFi module firmware from the ''/etc'' directory to ''/lib'':
 +
 +
<pre>
 +
cp -r /etc/firmware/ /lib/
 +
</pre>
  
 
Create or open the /etc/wpa_supplicant.conf file (for example with the nano editor):
 
Create or open the /etc/wpa_supplicant.conf file (for example with the nano editor):

Latest revision as of 09:18, 10 May 2021

Connecting to WiFi network


In order to connect to the WiFi network a proper configuration needs to be provided. This tutorial shows how to do this using the wpa_supplicant tool.

In versions older than SoMLabs-VisionSOM-6ULL-Debian-2020-02 - first copy the WiFi module firmware from the /etc directory to /lib:

cp -r /etc/firmware/ /lib/

Create or open the /etc/wpa_supplicant.conf file (for example with the nano editor):

root@visionsom:~# nano /etc/wpa_supplicant.conf

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
update_config=1

network={

  ssid="<NETWORK_SSID>"
  psk="<NETWORK_PASSWORD>"
  key_mgmt=WPA-PSK
  proto=WPA2
  pairwise=CCMP TKIP
  group=CCMP TKIP
  scan_ssid=1
}

The network in the example is protected with the WPA2 standard and requires a password. The <NETWORK_SSID> and <NETWORK_PASSWORD> fields need to be changed according to the existing network configuration.

Create or open the /etc/network/interfaces.d/wlan0 file and enable the wlan0 interface and the DHCP client:

root@visionsom:~# nano /etc/network/interfaces.d/wlan0

allow-hotplug wlan0
iface wlan0 inet dhcp
        wireless_mode managed
        wireless_essid any
        wpa-driver nl80211
        wpa-conf /etc/wpa_supplicant.conf

The interface is configured for hotplug connection - the system will not wait for the connection at the boot time, but will connect when the network will be discovered. in order to connect to the network during boot, change the first line to:

auto wlan0

Reboot the system and check the available network interfaces. The wireless network (wlan0) should now be enabled and configured:

root@visionsom:~# ip a
...

5: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether dc:ef:ca:00:06:64 brd ff:ff:ff:ff:ff:ff
    inet 10.71.161.103/20 brd 10.71.175.255 scope global dynamic wlan0
       valid_lft 172779sec preferred_lft 172779sec
    inet6 fe80::deef:caff:fe00:664/64 scope link
       valid_lft forever preferred_lft forever
NXP Partner ST Partner Renesas Partner