Difference between revisions of "Mesh network"

From AMTech WikiDocs
Jump to: navigation, search
(Mesh Network autodiscovering)
 
(20 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Powerful way to route observations. Range is extended by allowing data to hop node to node and reliability is increased by “self healing,the ability to create alternate paths when one node fails or a connection is lost
+
Powerful way to route observations. Range is extended by allowing data to hop node to node and reliability is increased by “self healing”, the ability to create alternate paths when one node fails or a connection is lost. It has the following advantages:
*Network setup is simpler  
+
* Network setup is simpler
*More flexibility to expand the network  
+
* More flexibility to expand the network  
*Increased reliability in environments where routers may come and go due to interference or damage
+
* Increased reliability in environments where routers may come and go due to interference or damage
==Configuration==
+
==Digi XBee radio configuration==
*Digi XBee radio configuration
+
Below you will find the required configuration for the XBee radios used in the M2MBridge Mesh Network. Using [https://www.digi.com/products/xbee-rf-solutions/xctu-software/xctu Digi XCTU tool] you need to do the following:
using digi xctu tool
+
* Set the baud rate to 230400 [8]
https://www.digi.com/products/xbee-rf-solutions/xctu-software/xctu
+
* Set the API enable setting to API mode without Escapes [1]
*set baud rate to 230400 [8]
+
[[File:Digi-serial-configuration.png|850px|thumbnail|center|serial configuration]]
*set API enable to API mode without Escapes [1]
+
* Make sure that all bridges participating in the same mesh network share the same network identifier. Multiple mesh network can operate in the same zone as long they have different Network IDs.
*make sure that all the bridges participating in the same mesh network have the same network identifier
+
[[File:Mesh-networkid.png|850px|thumbnail|center|network identifier]]
**multiple mesh network can operate in the same zone as long they have different network id
+
 
*assumptions
+
=== Assumptions ===
#the XBee 900HP radio has been configure with digimesh firmware
+
# the XBee 900HP radio has been configure with digimesh firmware https://www.digi.com/support/productdetail?pid=5576&type=firmware
#the XBee 900HP radio must be connected to /dev/ttyUSB0 with the following configuration
+
# the XBee 900HP radio must be connected to /dev/ttyUSB0 with this configuration: 230400/8/N/1/N - API 1
*230400/8/N/1/N - API 1
+
 
 +
== M2MBridge Configuration ==
 +
 
 +
Once the initial configuration of the XBee device is done and the XBee is attached to the device that is running the M2MBridge service, a mesh network configuration needs to be set up. You can find more information about these configuration settings in [[Edge_Configuration|this page]]
 +
 
 +
== Mesh Network autodiscovering ==
 +
 
 +
The autodiscovering of nodes in a M2MBridge network of XBee devices starts in the bootstrap process of the M2MBridge service if a mesh network was configured. There are two different actors in a M2MBridge mesh network:
 +
* Master
 +
* Node
 +
 
 +
The master is in charge of organizing the discovering and distributing information about the known nodes in the network. They start listening for messages from other nodes and enrich the collection of known nodes. Then they broadcast this information so that every other node knows about all the available peers. This way, a P2P communication is established and each node in the network is capable of communicating with every other.
 +
 
 +
A node, on the other hand, starts broadcasting its information at bootstrap until there is a master ready for listening that replies back with a collection of known nodes where its information is contained. This way, it guarantees that the master knows of its existence and eventually, all the other nodes as well.
 +
 
 +
'''''There is no strict order for starting up nodes in a M2MBridge mesh network. No matter what role a node plays, it will always make its best effort guaranteeing that every other node knows of its existence.'''''

Latest revision as of 10:28, 4 June 2018

Powerful way to route observations. Range is extended by allowing data to hop node to node and reliability is increased by “self healing”, the ability to create alternate paths when one node fails or a connection is lost. It has the following advantages:

  • Network setup is simpler
  • More flexibility to expand the network
  • Increased reliability in environments where routers may come and go due to interference or damage

Digi XBee radio configuration

Below you will find the required configuration for the XBee radios used in the M2MBridge Mesh Network. Using Digi XCTU tool you need to do the following:

  • Set the baud rate to 230400 [8]
  • Set the API enable setting to API mode without Escapes [1]
serial configuration
  • Make sure that all bridges participating in the same mesh network share the same network identifier. Multiple mesh network can operate in the same zone as long they have different Network IDs.
network identifier

Assumptions

  1. the XBee 900HP radio has been configure with digimesh firmware https://www.digi.com/support/productdetail?pid=5576&type=firmware
  2. the XBee 900HP radio must be connected to /dev/ttyUSB0 with this configuration: 230400/8/N/1/N - API 1

M2MBridge Configuration

Once the initial configuration of the XBee device is done and the XBee is attached to the device that is running the M2MBridge service, a mesh network configuration needs to be set up. You can find more information about these configuration settings in this page

Mesh Network autodiscovering

The autodiscovering of nodes in a M2MBridge network of XBee devices starts in the bootstrap process of the M2MBridge service if a mesh network was configured. There are two different actors in a M2MBridge mesh network:

  • Master
  • Node

The master is in charge of organizing the discovering and distributing information about the known nodes in the network. They start listening for messages from other nodes and enrich the collection of known nodes. Then they broadcast this information so that every other node knows about all the available peers. This way, a P2P communication is established and each node in the network is capable of communicating with every other.

A node, on the other hand, starts broadcasting its information at bootstrap until there is a master ready for listening that replies back with a collection of known nodes where its information is contained. This way, it guarantees that the master knows of its existence and eventually, all the other nodes as well.

There is no strict order for starting up nodes in a M2MBridge mesh network. No matter what role a node plays, it will always make its best effort guaranteeing that every other node knows of its existence.