Implementation of device to device communication using zigbee

In the research we have completed till yet, we have learnt how to operate the software X-CTU and to configure the XBee radios. While communicating the XBee radios wirelessly we have found that in order to serially communicate two Arduino?s, we have to select the USB mode but when the XBee is selecte

2025-06-28 16:33:03 - Adil Khan

Project Title

Implementation of device to device communication using zigbee

Project Area of Specialization Internet of ThingsProject Summary

In the research we have completed till yet, we have learnt how to operate the software X-CTU and to configure the XBee radios. While communicating the XBee radios wirelessly we have found that in order to serially communicate two Arduino’s, we have to select the USB mode but when the XBee is selected, both XBee’s will read the code from the respective Arduino’s and then start to transmit wirelessly. 
With the start of this project, we were facing problems in our hardware connections. Then we explored that the software X-CTU will consider the 0 and 1 pins of the Arduino as RX and TX respectively whereas in the Arduino code we have used the library “SoftwareSerial” due to which the RX and Tx pins should be taken in such a way that they are other than pins 0 and 1 otherwise the data from the Arduino and XBee will coincide with each other. Due to this reason, we have soldered the pins 2 and 3 of the XBee shield and connected them with pins 2 and 3 of the Arduino’s.

Project Objectives

We aim to design a decision-making algorithm which can be implemented on XBee S2C radios using Arduino. The XBee can read the instructions mentioned in the program of Arduino and work accordingly. The instructions mentioned in the algorithm will guide the XBee router and end device to communicate directly with other or via the coordinator. Device-to-device communication using ZigBee has not achieved yet which motivate us to work on this project.

Project Implementation Method

Our first task as mentioned above was to serially communicate two XBee’s. For this, first we have set the baud rate and few specifications then configured both the XBee’s using the software tool X-CTU then we have set some parameters in both XBee’s. After configuration, when we opened the console of coordinator and typed +++, the module sent back the OK if it was ready to work. Then we sent any word from the coordinator. When we viewed the console of router, the same message which we transmitted from the coordinator was received at the receiver.
This was the second basic task which we wanted to accomplish before mid-year. In this task, the LED was glowing when we were pressing the push- button from the transmitter side. . When the push button was pressed, the XBee took code form Arduino using the XBee shield and wirelessly sent a signal to the receiver.
 The receiver received it and worked according to the respective Arduino code.
The LED was turned on.
While communicating the XBee wirelessly using the Arduino, we have noticed that we cannot view the serial monitor and the X-CTU console because the serial monitor of Arduino can be viewed only when we have selected the USB mode on the XBee shield. When we selected the XBee mode then we can view the console of XBee. 
The concept of designing the decision-making algorithm is similar to the hypothesis of 5G. If any mobile user is within the range of other mobile phone users, they can communicate directly but when they are apart from each other but are present within the range of the Base Station, then they can communicate via the Base Station. In the first scenario, there will no need of the Base Station due to which power will be saved. This will reduce the propagation delay and will also result in low power efficient cellular communication network. 
Our main task is to innovate an algorithm which can decide the route for communication which means  that when two devices are placed within a certain range (defined in algorithm), they can communicate directly with each other but if they are not placed within the range and if anyone of them is within the range of a specific ZigBee device or node ( more specifically coordinator), the devices should communicate via coordinator. We are using Arduino as a microcontroller in this project and X-CTU as a software platform for configuring the XBee’s. In order to achieve this task, our first milestone was to glow the LED wirelessly using XBee S2C radios

Benefits of the Project

This project can benefit the organization in the following ways:
*) The concept of mesh networking can be implemented for the designing of home automation system.
*) The idea can be used to design ZigBee based voice control smart home.
*) This concept can be used in 5G networking.

Technical Details of Final Deliverable

The first deliverable is the wireless transmission between two XBee’s which are interfaced using Arduino. The next deliverable will be the transmission between the ZigBee coordinator and other devices that should take place according to the instructions defined in the algorithm.

Final Deliverable of the Project HW/SW integrated systemCore Industry TelecommunicationOther Industries Others Core Technology Internet of Things (IoT)Other Technologies OthersSustainable Development Goals Industry, Innovation and InfrastructureRequired Resources
Item Name Type No. of Units Per Unit Cost (in Rs) Total (in Rs)
Total in (Rs) 19760
Xbee radios Equipment3450013500
Arduino Board Equipment38002400
Xbee Arduino Shield Equipment39002700
Jumpers Equipment1005500
Resistors Shields and LEDS Equipment965480
Data Cable Equipment360180

More Posts