Category Archives: mesh

Howto setup Rasbian Buster with BATMAN Mesh networking | raspberry pi 3 rasbian mesh batman network

I wrote this article a while ago about setting up BATMAN mesh networking with Rasbian Jesse on a Raspberry Pi 3.

This worked well, but stopped working with the newer versions of Rasbian, since there have been changes to the operating system.

After testing for several days, I found adding one command into the original script gets it to work just fine.

How to below.

After a fresh install of Rasbian Buster, connect to the system via ssh and run the following command to install BATMAN.

Lets create the mesh startup script.

The script will contain the instructions for bring up the interfaces and get  mesh, just change the IP address at the bottom on the next hosts, increment by one. Copy and past the following into the mesh.sh file.

Now let make the script executable.

And add to crontab so that its executed at every reboot

Add the following

Reboot and mesh should be up and running.

Test by executing the following command.

Should see something like this.

 

Powerbank endurance test for Raspberry Pi 3. | testing how long a raspberry pi can be powered via a powerpank

Iv like to test and know how much uptime can be achieved by different powerbank.

I purchased this powerbank case on ebay and then purchased the 18650 3.7v batteries separately.

I have built two powerbank with identical cases but different batteries. 

  • Powerbank – $5.35
  • Batteries 18650 9600mha – $24.80
  • Batteries 18650 6000mha – $22.49

The results?

  • Batteries 18650 9600mha – 23 Hours
  • Batteries 18650 6000mha – 18 Hours

It should also be noted that the Raspberry Pi is online via wifi during the whole test while getting pinged every minute.

Howto setup Raspberry Pi 3 with Mesh wireless networking using B.A.T.M.A.N. | raspberry pi 3 wifi mesh networking batman howto

For around two years I have been trying to get Mesh networking going on the raspberry pi’s. I have used different Pi’s and bought a heap of USB Wifi dongles which also did not work.

I tried again the other day using an out of the box raspberry pi 3 with the standard Jesse Lite os, this worked.

I have been testing the setup lately and I’m really impressed. I have been able to have connectivity throughout my house and into the backyard, this is around 50+ meters of connectivity through brick walls. I will continue testing of the range and application features.

Here is the howto.

FIrst, we install a few packages we might need.

We download the BATMAN source, and install it.

Here we’ll create the script which we just to establish the wifi network and mesh networking. Save it to /root/mesh.sh. Make sure you change the IP address at the last like and increment upward for each device you setup.

Make the script executable.

Add an entry into the crontab to run it at startup by typing “crontab -e” and adding the following line.

Reboot the Pi and it should be operational, to test type “ifconfig” it should look like this.

Note: the bat0 is the mesh network and the eth0 is the hardwired network connection.

Once you have all the devices online, you can ping to see if they’re online or type this to see if batman can see them

Should look like this.

In this example you can see three other Pi’s online.