Before reading through this article, to build and install GNU/Linux on embedded board, read through this link.
To bring WiFi client feature on your embedded board, read through this link.
----
Follow these simple steps below to bring your board as AP.
To bring WiFi client feature on your embedded board, read through this link.
----
Follow these simple steps below to bring your board as AP.
-
Install necessary tools
Install hostapd and dnsmasq necessary for an Access Point.# apt-get install hostapd dnsmasq --no-install-recommends
-
Configure network interface
Add or modify /etc/network/interface to contain the following.# cat /etc/network/interface auto lo wlan0 iface lo inet loopback allow-hotplug eth0 iface eth0 inet dhcp iface wlan0 inet static address 192.168.1.1 network 192.168.1.0 netmask 255.255.255.0 allow-hotplug wlan0
The above file says how our system get connected through eth0, wlan0 and lo. Check man page of interfaces for more details. -
Configure hostapd
# cat /etc/default/hostapd DAEMON_CONF="/etc/hostapd/hostapd.conf" DAEMON_OPTS="-dd"
# cat /etc/hostapd/hostapd.conf interface=wlan0 driver=nl80211 ssid=zilogic channel=1
-
Configure dnsmasq with Client IP range
# cat /etc/dnsmasq.conf interface=wlan0 dhcp-range=192.168.1.10,192.168.1.100,12h dhcp-option=3,192.168.1.1
-
Start hostapd and dnsmasq services.
# service hostapd start # service dnsmasq start
Note: Now, you can try Raspberry Pi 3 that comes with WiFi and Bluetooth on-board for IoT applications.
More Reading
-
What is the significance of firmware-atheros package?
-
What is the significance of wireless-tools utility?
-
What is iw and iwconfig? How do they differ?
-
What is wpa_supplicant? How to connect to an encrypted connection?
-
What is Wireless Extensions(WE)?
-
What are nl80211 and cfg80211 and how do they differ from WE?
- What is Bridging in network connections?
No comments:
Post a Comment
Comment will be published after moderation only. Do not advertise here.