You are on page 1of 6

Analysis of a Zigbee Mesh Network Based on the

IEEE 802.15.4 Standard for the


Operation of a Drone
Andrés Pazmiño
Universidad de las Fuerzas Armadas-ESPE
Sangolquí, Ecuador
ampazmino2@espe.edu.ec

Abstract— This research develops a network of mesh topology consumption, which can form a network topology in mesh of
in order to increase range in the coverage area through the use of easy integration, known as ZigBee, which is a the specification
secondary and redundant links. In the application the Xbee S2 of A set of high-level wireless communication protocols based
Wire, which has embedded the ZigBee protocol, is used to send a on the IEEE 802.15.4 standard. ZigBee technology allows for
signal generated in an RF control to the controller card CC3D for greater coverage by attaching more nodes to the network at a
the handling of a DRON. Protocol checking is performed by the very low cost compared to a higher power RF equipment, and
API frame, in which a subframe containing the RF control allows a more versatile deployment due to its reduced size and
information is embedded, which is verified by a process in the the strong security of the standard [4] [5] [6].
receiver. In order to mitigate the effect of the inverse square law,
several tests with different network configurations are performed
on two types of soils (grass and cement) by checking the quality II. STATE OF ART
parameter LQI generated by the X-CTU program of the similar Sensor networks and robots have evolved rapidly to
Xbee modules To the RSSI parameter (signal strength indicator
received).
generate a symbiosis between these two fields. Data collection
from sensors can be a time-consuming task, but it is a process
Keywords-ZigBee; LQI, DRON, API frame, Coverage area. that can be automated through wireless communication
between sensors. This is described in [7] [8], where it is
I. INTRODUCTION proposed to take advantage of wireless sensor networks in the
remote manipulation environment that can send signals at far
The Latin American countries, being located in the distances using mesh technology, transferring data wirelessly
Cordillera de los Andes, present a very irregular geography, to low power consumption. Two nodes are used, the first to
making difficult or denying the access to telecommunications sense temperature using an Arduino and a Xbee wireless
services to certain points of the country [1], making the communication module based on the IEEE 802.15.4 standard,
deployment of any type of communication by a wired way too while the second one located in the robot has a FPGA board as
costly and prolonging development time. There is also no a processing unit connected to a module Xbee with Rs-232 to
exception of damage to existing infrastructures due to natural control positioning. A simple custom package was designed to
disasters such as floods, fires, volcanic eruptions, etc. In maintain uniformity while collecting sensor data while the
addition to these high risk plights, dangerous situations can robot is in motion, thus avoiding problems at the remote
arise in daily life such as transit accidents, broken pipes, terminal. The ZigBee coordinator is connected to a remote
effects caused by deforestation, theft of equipment and terminal through a USB port where the GUI is executed to
stations, etc. These kinds of situations requires an immediate monitor the sensor readings and the position of the robot.
response time in order to generate a containment of the
problem. In [9] [10] is exposed a remotely controlled robot capable
of examining disaster situations or acting as a security
The use of DRONES for the year 2015 has had an countermeasure. It employs a stationary network of nodes with
exponential growth according to the General Directorate of passive infrared sensors interconnected through a multi-hop
Civil Aviation of Ecuador, reason for which has been ZigBee network. Sensors are sensitive to movement and can
generated a regulation for the operation of systems of aircraft locate survivors or intruders depending on the situation.
piloted to distance (RPAS) [2]. Due to the great reception of
the DRONES, they are being included in different sectors such In the works [11] [12] show a remote control system
as: commercial, tourist, scientific and security [3]. designed and implemented to position a mobile robot. The
system consists of the robot, the PC as a positioning controller,
In order to solve the disadvantage of energy the camera as a robot sensor and the wireless communication
consumption by increasing the distance, technologies have device based on ZigBee. The developed image processing
been created that allow the digital broadcasting of low energy
algorithms (Matlab) determine the position and orientation of
the robot. Based on these data, the implemented system b) Wireless RX Module
controls the position of the robot. The control signals are sent The module design consists of an Xbee S2 and an Arduino.
through the wireless communication modules. The The information sent from the wireless Rx module arrives at
experimental results confirm the robustness and effectiveness the Xbee S2, to be processed by the Arduino card and generate
of the proposed control system. the control signals that are sent to the control module.
The problem with radio signals for real-time applications
is their robustness. In the papers [13] [14] the propagation of c) Control Module
radio waves in interiors is studied using devices of low power The module design consists of a CC3D flight control card.
taking advantage of the specifications of ZigBee and The signals generated by the wireless module Rx are
Bluetooth. Results of experiments with two robots equipped processed by the CC3D and this commands the motors when
with radio signal devices enabled to monitor and locate a target and at what speed to rotate.
autonomously in an interior corridor are presented. It is shown
that simulated RSSI measurements using existing signal
models and experimentally obtained RSSI measurements B. XBee Modules
closely coincide, suggesting that for robotic applications There are three functions that an XBee module can fulfill
requiring predicted RSSI, low power radio signal devices are a (Coordinator, Router and Final Device), for the configuration
viable option. of a ZigBee network, there must be a coordinating node and a
router node or final device node. In the project, 4 devices are
III. DESING AND IMPLEMENTATION configured and can be increased if desired. The configuration
of the 4 devices mentioned above is shown in Fig. 2. The
A. Design of the DRON control interface Communication is established between the devices of the
The control interface of the DRON is shown in Fig. 1, it is same PANID (unique identifier of the area network personal)
composed of three modules: wireless TX, wireless RX and the coordinator node is hardly turned on and then the router
control, defined by the API for ZigBee. nodes.

Figure 2. XBee Modules Attachments

C. API communication mode

The API mode refers to the interface that uses (application


programming interface), whose main characteristic is to allow
Figure 1. Design of the DRON control interface its programming through an application. API is a set of
standards - interfaces that make it possible the interaction of
one program with another allowing efficient communication
a) Wireless TX Module between electronic devices since this mode was not designed
to interact directly with the human as the AT transparent mode.
The design of the module consists of a FLYSKY FS-i6
aeromodelling control, a FLYSKY FS-iA6 radio frequency
The API mode also manages its own protocol which is the
receiver, Xbee S2 and an Arduino card. The control signals are
XBee API Protocol, which is nothing more than a series of
received by the FS-iA6 device and processed by the Arduino
headers appended to the information to be sent.
card to send the information generated by the Xbee S2.
The basic structure of the API plot can perform different The network design is based on the principle of scalability,
functions, hence the need to assign a hexadecimal number in to allow a growth of the network if necessary, so that the final
the Frame Type field that is located in the Frame Information device node that was on the DRON is removed from the
field. network, Turning it into a router node. By definition the final
device node has two essential differences that are: a) can enter
sleep mode b) can not route packets, something that does not
D. Arduino IDE Applications
allow scalability, hence the main reason to turn it into a router
node. Taking into account that a final device node can enter
For the deployment of the network there are two sketches sleep mode, the router node should also be able to access this
developed for Arduino. For the Arduino card in the radio mode in order to supply this node in a suitable way, so, if one
frequency receiver, it is necessary to verify the information enters the configuration profile of the router node, You can see
that the radio frequency module sends to the Arduino. An that by default, sleep mode is disabled, but you can activate it
oscilloscope verifies that the signal is a square wave with in one of the 5 allowed modes.
frequency of 50 Hz normally used in signals to move servos.
Due to this it was necessary to know how many microseconds
existed between the rising and falling edge of the four signals
used for the communication between the DRON and the radio
frequency control, this is achieved with the pulseIn () function,
the range of values obtained from each of the signals is
between 1000 microseconds to 2000 microseconds. Once the
duration of the pulse in microseconds of the four signals has
been obtained, a subframe "lch1ich2ich3ich4p" is constructed
as shown in table 1, ch being the channel of each signal.

TABLE I. Structure of the Subframe

Figure 3. Network Design

a.
Subframe constructed
To generate the communication in the network, three XBee
modules are configured as routers nodes and one as a
coordinating node as shown in Fig 3. Each of them has a
For the opposite part of the wireless communication is unique network address and MAC address. The routers with
carried out the verification arriving the complete subframe and drop-node position are those that can be varied according to the
in the order that it must be, since each channel controls a configuration of the mesh topology at the time of deployment
specific engine and if they are interchanged between them
collapses the system, because each engine is predefined to
IV. SYSTEM EVALUATION
allow movement in the different axes (y, x, z). In order to
avoid this, the creation of the subframe that is embedded in the A. Development of test protocol
API frame that the XBee handles is defined, the method that The variables that have a great impact on the performance
uses the algorithm to detect if the subframe is complete and in of the DRON are the reach generated by the XBee modules
order is through the function findUntil (), this function revises with the ZigBee network and the autonomy of the equipments
the Data that arrives at its serial port and analyzes it according provided by the batteries. Given the communication
to the arguments that are entered, in this case the arguments characteristic that is used (real time), high signal strength
are "l" and "p" this means to look in the serial port a match of parameters must be handled to avoid large delays in the signal
"l" and from that character Look for the character "p", once being sent. DIGI the manufacturer of the modules XBee
found the two all the content is admitted, otherwise it is presents a description of the minimum and maximum
discarded and it looks for the two characters. parameters to classify a signal as very strong, strong, moderate
and weak as shown in table 2; Based on a parameter called
For the accepted data, it must be discriminated that it is a LQI (Link Quality Indication), which is an integer between
number and that it is a character, with the function 256 and 0.
Serial.parseInt (), this function analyzes all the information
that passes finUntil () discriminating it to later with the library
of Arduino Servo to send to the Motors a PWM signal in
microseconds of 50 Hz.
TABLE II. Signal Quality Parameters

E. Design and configuration of the network ZigBee Mesh


information between the nodes and creating redundant routes.
In this scene realized in grass it is seen in Fig. 5b - sample
number 14 a sudden reduction of the quality of the signal, this
happens due to a gust of wind that impacts to the nodes
affecting its performance.

The second node positioning shown in Figure 4b presents a


b. redundant scenario with disconnection, where a triangle is
Quality of the signal
formed with the NRD, NRB and NC nodes separated between
them 30m and the NDO node in the center of the triangle. The
B. Pilot Tests particularity of this scenario is the disconnection of the NRD
For the pilot tests, 4 different positions on grass and cement node, to observe how the redundant links maintain the
are used, in which the quality of the signal in each of them is connection, as shown in Fig. 6 and Fig. 7 for cement and grass
verified. In Fig. 4 it is possible to observe 3 different colors of respectively.
lines representing:

 _____: Connection greater than 195 LQI


 ……...: Disconnection
 --------: Connection less than 195 LQI

Figure 6. Redundancy test with Cement Disconnection

Figure 4. Distribution of Test Nodes


NC: Node Coordinator, NRD: Node Router Disconnect, NDO: Dron Node,
NRB: Base Router Node

For the first positioning of nodes as shown in figure 4a


presents a scenario with redundancy, where a triangle is
formed with the nodes NRD, NRB and NC separated between
them 30m and the node NDO in the center of the triangle.

Figure 7. Redundancy Test with Grass Disconnection

In Fig. 6a and Fig. 7a the disconnection moment can be


seen, in sample number 7 and number 14 a connection is
generated again, but in Fig. 6b and Fig. 7b does not change
state in sample number 7, this is due to persistent values in the
network when trying to generate a reconnection. A clear
example of persistent values and reconnection attempts is
observed in Fig. 9 and Fig. 10 respectively.

Figure 5. Redundancy Test For the third node positioning presented in Fig. 4c shows a
a) Cemen b) Grass scenario without redundancy and disconnection, where the
four nodes form a diamond, separated between them 30m in
As can be seen in Fig. 5a and Fig. 5b all the links present which the signal between the node NDO and NRB degrades
values of minimum LQI (195), both in grass and cement, thus below the parameters LQI allowed
allowing the viability of these links for the transmission of
.

Figure 11. Maximum Reach Cement

Figure 9. Redundancy with Cement Disconnection

Figure 12. Maximum Reach Grass

Figure 10. Redundancy with Grass Disconnection


In this scenario we use the results of the NDO node to be
found at one end and the NRD node to be found between the
In Fig. 9b and Fig. 10b it is observed that the link between
ends. What is observed in this scenario is that the node of the
the NDO and NRB node drops to 150 LQI, which indicates
NDO end maintains two links greater than 195 LQI with the
that the link is not suitable for transporting the information
node NRD (adjacent) and NC (next jump) in cement as shown
that is handled but the other links exceed the 195 LQI,
in figure 11, whereas in grass only maintains a link Greater
allowing transport of the information. In these graphs, the
than 195 LQI with the NRD (adjacent) node as shown in Fig.
moment of disconnection is also observed in case of Figure 9a
12a.
occurs in sample number 11 and is re-connected in number 20,
in this time in Fig. 9b in sample number 11 is disconnected but With respect to the NRD node it maintains a greater
in the number 12 is again switched on again to be connection to 195 LQI with all its links due to its more central
disconnected in sample number 13, and thus flashes to sample position in the distribution of the nodes, as shown in Fig. 11b
number 20. and Fig. 12b.

This is due to persistent values in the network when


attempting to generate a connection until it is achieved in V. CONCLUSIONS
sample number 20 This phenomenon is also shown in Fig. 10.

Finally we have the positioning as shown in Fig. 4d for the In test scenarios designed to measure the maximum range
maximum range scenario, in this scenario each of the nodes between the coordinating node and a router node, it was
are separated 30m along a straight line. determined that this value does not exceed 30 meters, this type
of scheme affects the performance of the services that the
DRON can offer in an area Of coverage compared to a mesh
network, because the quality parameter (LQI) is affected at the
nominal value; Being less than the preset minimum (195 LQI)
for a connection.
When implementing the network through mesh architecture card which process the connection parameters of the designed
in linear configuration, the length of coverage can be extended network
to 90 meters, without losing the minimum quality parameters
(LQI) thus eliminating the effect of the law of inverse square. REFERENCES
[1] Instituto Geografico Militar (IGM), IGM, Febrero 2015. [En línea].
The real-time connection is checked: using the LibrePilot Available: http://www.igm.gob.ec/work.
software, which allows real-time visualization as well as [2] Dirección General de Aviación Civil (DGAC) , DGAC, Febrero 2015.
monitoring the signals between the DRON control and the [En línea]. Available: http://www.aviacioncivil.gob.ec/?p=5052.
CC3D card in charge of DRON engine management; And, by [3] G.-H. Kim, J.-C. Nam y I. Mahmud, Multi-drone control and network
self-recovery for flying Ad Hoc Networks, 2016 Eighth International
means of the serial terminals connected to the Arduino cards, Conference on Ubiquitous and Future Networks (ICUFN), 2016.
performing a subframe check, structured: by a start character ZigBee Alliance, ZIGBEE FOR DEVELOPERS, Febrero 2015. [En
[4]
"l", a chx data channel for each of the four channels and línea]. Available: http://www.zigbee.org/zigbee-for-
separators between them "I" and an end character of subframe developers/applicationstandards/zigbee-remote-control.
"p"; designed to check the connection on the receiver. [5] D. F.-Š. P. Jans Jeļinskis, ZigBee performance evaluation for smart grid
dual physical media communications in Riga city, Advances in Wireless
and Optical Communications (RTUWO), 2016.
Due to the processing limitations of the Arduino One card, U. B. S. Akshay D. Deshmukh, A low cost environment monitoring
[6]
the API frame can not be formed and the sample of the signal system using raspberry Pi and arduino with Zigbee, Inventive
sent by the DRON control can be sampled; to solve it, only the Computation Technologies (ICICT), 2016.
control signal is sampled by converting it to type "string", [7] R. N. P. Sharul Agrawal, Implementation of WSN which can
forming the receiver subframe of the receiver and configuring simultaneously monitor temperature conditions and control robot for
positional accuracy, Green Computing Communication and Electrical
a node in format AT commands that performs the conversion Engineering (ICGCCEE), 2014.
of this subframe to API format, of the card. [8] M. L. Joni Jamsa, Advanced Car Navigation - Future Vehicle
Instrumentation for Situation-Aware Services, Mobile Data Management
Due to climatic and geographic effects, there is a decrease (MDM), 2011.
in LQI, due to wind gusts that were recorded in the grid [9] V. R. P. Siddhartha Kumar, Fast Response Search and Rescue Robot,
Assisted Low Power WSN Net for Navigation and Detection, India
redundancy test scenario, where values fluctuated between Educators' Conference (TIIEC), 2013.
255 and 194 LQI, presenting problems to support a Real-time [10] S. S. Hemraj Sharma, A review of sensor networks: Technologies and
connection at a distance greater than 30 meters. applications, Engineering and Computational Sciences (RAECS), 2014.
[11] N. K. D. Kemal Lutvica, Remote position control of mobile robot based
When the disconnection of a node within the network on visual feedback and ZigBee communication, ELMAR, 2011.
occurs, the remaining nodes register false positives in their [12] T. L. S. Guo, QoS-enabled Video Streaming in Wireless Sensor
Networks, Network Computing and Applications (NCA), 2010.
samples, giving intervals of fictitious connectivity, this is due
to the search for reconnection with the disconnected node. [13] N. M. K. Jonathan Fink, Experimental characterization of radio signal
propagation in indoor environments with application to estimation and
To integrate the DRON into the ZigBee mesh network, the control, Intelligent Robots and Systems, 2010.
RX receiver module, the peripheral module of the CC3D card, [14] R. R. P. Kamol Kaemarungsi, Study of received signal strength
is replaced, which allows connection to the RF-frequency knob indication in ZigBee location cluster for indoor localization, Electrical
Engineering/Electronics, Computer, Telecommunications and
FS-i6 of the DRON; By a ZigBee module and an Arduino Uno Information Technology, 2013.

You might also like