Changes between Version 15 and Version 16 of wireless/wifi/mesh


Ignore:
Timestamp:
11/23/2020 11:45:45 PM (4 years ago)
Author:
Cale Collins
Comment:

added batman-adv section

Legend:

Unmodified
Added
Removed
Modified
  • wireless/wifi/mesh

    v15 v16  
    202202
    203203[http://dev.gateworks.com/fae/mesh-newpor54.img.gz Newport Mesh Pre-Built .img.gz]
     204
     205= B.A.T.M.A.N.
     206
     207Better Approach To Mobile Adhoc Networking is a routing protocol which enables the user to create a decentralized layer 2 network.  For more information see the [https://www.open-mesh.org/projects/batman-adv/wiki official BATMAN wiki]. 
     208
     209This example is directed at Ubuntu users, though BATMAN can be used with OpenWRT and Buildroot as well. 
     210
     211Before configuration make sure you have antennas or attenuators connected.  Then verify your wireless radio is capable of being used for mesh.  This can be checked using the command "iw list |grep mesh -i".
     212
     213To begin, flash two boards with the image linked below:
     214
     215http://dev.gateworks.com/newport/images/focal-newport.img.gz
     216
     217Boot them and install batman-adv:
     218
     219{{{#!bash
     220apt install batctl -y
     221}}}
     222
     223Edit /etc/modules add the line below:
     224{{{
     225batman-adv
     226}}}
     227'sync' then power cycle the boards, once you're back to the command prompt issue the following commands:
     228{{{#!bash
     229ip link set up dev wlan0
     230iw dev wlan0 del
     231iw phy phy0 interface add wlan0 type mesh
     232ip link set up mtu 1532 dev wlan0
     233iw dev wlan0 mesh join my-mesh-network
     234batctl if add wlan0
     235# Optional, use "batctl if" to see if your interface is active.
     236ip link set up dev bat0
     237batctl n
     238}}}
     239
     240With this is done on both boards "batctrl n" should display the MAC of the neighbor board:
     241{{{
     242root@focal-newport:~# batctl n
     243[B.A.T.M.A.N. adv 2019.4, MainIF/MAC: wlan0/04:f0:21:3e:59:55 (bat0/ae:23:a0:50:1c:27 BATMAN_IV)]
     244IF             Neighbor              last-seen
     245        wlan0  04:f0:21:3e:59:56    0.084s
     246}}}