wireless_mesh
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
wireless_mesh [2014/10/18 12:19] – created samer | wireless_mesh [2014/10/19 22:01] – [4- Configuring the Wireless Nodes with B.A.T.M.A.N] samer | ||
---|---|---|---|
Line 5: | Line 5: | ||
===== -- Hardware Requirements ===== | ===== -- Hardware Requirements ===== | ||
+ | Mesh networking performance is directly related to the number of available radio channels. Particularly, | ||
+ | |||
+ | In order to overcome this problem, we implement in this project low cost multi-channel mesh devices consisting of a wireless router with an additional WLAN adapter. A typical equipment list that can be used for implementing the project is presented in the following: | ||
* TP-Link [[http:// | * TP-Link [[http:// | ||
* USB WLAN adapter based on the [[http:// | * USB WLAN adapter based on the [[http:// | ||
* Raspberry Pi [[http:// | * Raspberry Pi [[http:// | ||
- | ===== -- Software Requirements | + | ===== -- Installing the Wireless Nodes ===== |
+ | |||
+ | Make sure you have the [[http:// | ||
+ | |||
+ | Start by updating the package list and installing the necessary packages for the USB WLAN adapter. | ||
+ | |||
+ | <code bash> | ||
+ | root@MeshNode: | ||
+ | root@MeshNode: | ||
+ | </ | ||
- | http:// | + | [{{ :mr3020-wifi-adapter.jpg? |
- | opkg update | + | |
- | opkg install kmod-rt2800-lib kmod-rt2800-usb kmod-rt2x00-lib kmod-rt2x00-usb | + | |
- | root@OpenWrt:/# wifi detect | + | Plug the WLAN adapter on the USB port of your routeur and verify that is detected: |
+ | <code bash> | ||
+ | root@MeshNode:~# wifi detect | ||
config wifi-device | config wifi-device | ||
option type | option type | ||
Line 35: | Line 47: | ||
option ssid | option ssid | ||
option encryption none | option encryption none | ||
- | + | </code> | |
- | wifi detect | + | |
- | root@OpenWrt:/# | + | |
+ | Now, copy the detected WiFi modules into the wireless configuration of your MR3020. | ||
+ | <code bash> | ||
+ | root@MeshNode: | ||
+ | </ | ||
+ | |||
+ | Your wireless configuration file should be similar to the following: | ||
+ | |||
+ | <file autoconf / | ||
config wifi-device | config wifi-device | ||
option type | option type | ||
Line 74: | Line 92: | ||
option ssid | option ssid | ||
option encryption none | option encryption none | ||
+ | </ | ||
- | root@OpenWrt:/# wifi up | + | Check that both antennas are working: |
+ | <code bash> | ||
+ | root@MeshNode:~# wifi up | ||
Configuration file: / | Configuration file: / | ||
Using interface wlan0 with hwaddr f8: | Using interface wlan0 with hwaddr f8: | ||
Configuration file: / | Configuration file: / | ||
Using interface wlan1 with hwaddr 00: | Using interface wlan1 with hwaddr 00: | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | The USB WLAN adapter does not seem to be supported in the latest Barrier Breaker relaease of OpenWRT. Additional packages are installed correctly but the adapter is not detected as a WLAN module. | ||
+ | </ | ||
+ | |||
+ | ===== -- Configuring the Wireless Nodes with B.A.T.M.A.N===== | ||
+ | Start by installing the B.A.T.M.A.N package on your router: | ||
+ | <code bash> | ||
+ | root@MeshNode: | ||
+ | </ | ||
+ | |||
+ | Modify your wireless configuration to activate a mesh interface in ad-hoc mode on radio0, an interface in AP mode on radio1, as in the following: | ||
+ | |||
+ | <file autoconf / | ||
+ | config wifi-device ' | ||
+ | option type ' | ||
+ | option macaddr ' | ||
+ | option hwmode ' | ||
+ | option htmode ' | ||
+ | list ht_capab ' | ||
+ | list ht_capab ' | ||
+ | list ht_capab ' | ||
+ | list ht_capab ' | ||
+ | option txpower ' | ||
+ | option country ' | ||
+ | option channel ' | ||
+ | |||
+ | config wifi-iface ' | ||
+ | option device ' | ||
+ | option mode ' | ||
+ | option ssid ' | ||
+ | option encryption ' | ||
+ | option network ' | ||
+ | option ifname ' | ||
+ | option bssid ' | ||
+ | | ||
+ | config wifi-device ' | ||
+ | option type ' | ||
+ | option channel ' | ||
+ | option macaddr ' | ||
+ | option hwmode ' | ||
+ | option htmode ' | ||
+ | list ht_capab ' | ||
+ | list ht_capab ' | ||
+ | list ht_capab ' | ||
+ | list ht_capab ' | ||
+ | |||
+ | config wifi-iface | ||
+ | option device ' | ||
+ | option mode ' | ||
+ | option ssid ' | ||
+ | option encryption ' | ||
+ | option network ' | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | Very few USB WLAN adapters work in ad-hoc mode, thus it is preferable to configure the corresponding radio interface in AP mode and the internal chipset of the MR3020 router in ad-hoc mode. | ||
+ | </ | ||
+ | Use the following network configuration: | ||
+ | |||
+ | <file autoconf / | ||
+ | config interface ' | ||
+ | option ifname ' | ||
+ | option proto ' | ||
+ | option ipaddr ' | ||
+ | option netmask ' | ||
+ | |||
+ | config interface ' | ||
+ | option type ' | ||
+ | option proto ' | ||
+ | option ipaddr ' | ||
+ | option netmask ' | ||
+ | option gateway ' | ||
+ | list dns ' | ||
+ | list dns ' | ||
+ | option _orig_ifname 'eth0 wlan0 wlan1' | ||
+ | option _orig_bridge ' | ||
+ | option ifname ' | ||
+ | |||
+ | config interface ' | ||
+ | option ifname ' | ||
+ | option mtu ' | ||
+ | option proto ' | ||
+ | option mesh ' | ||
+ | |||
+ | config interface tinet | ||
+ | option ifname | ||
+ | option type | ||
+ | option proto static | ||
+ | option ipaddr | ||
+ | option netmask | ||
+ | </ | ||
+ | |||
+ | Make sure that '' | ||
+ | <file autoconf / | ||
+ | config ' | ||
+ | option ' | ||
+ | option ' | ||
+ | option ' | ||
+ | option ' | ||
+ | option ' | ||
+ | option ' | ||
+ | option ' | ||
+ | option ' | ||
+ | option ' | ||
+ | option ' | ||
+ | option ' | ||
+ | option ' | ||
+ | </ | ||
+ | |||
+ | Activate the DHCP server on you acces point interface '' | ||
+ | <code bash> | ||
+ | config dhcp | ||
+ | option start ' | ||
+ | option leasetime ' | ||
+ | option limit ' | ||
+ | option interface ' | ||
+ | </ | ||
+ | Reboot your router, ... | ||
+ |
wireless_mesh.txt · Last modified: 2014/10/19 22:03 by samer