# How to perform Drone Swarm through XBee module?

**URL:** <https://forums.digi.com/t/how-to-perform-drone-swarm-through-xbee-module/33989>\
**Category:** XBee - DigiMesh\
**Tags:** xbee-api-mode, transparent-mode, xbee3\
**Created:** [January 15, 2025, 9:16am UTC](https://forums.digi.com/t/how-to-perform-drone-swarm-through-xbee-module/33989 "2025-01-15T09:16:44Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![lenting](https://avatars.discourse-cdn.com/v4/letter/l/5fc32e/32.png) [@lenting](https://forums.digi.com/u/lenting)\
**Post date:** [January 15, 2025, 9:16am UTC](https://forums.digi.com/t/how-to-perform-drone-swarm-through-xbee-module/33989/1 "2025-01-15T09:16:44Z")

</div>

**Drone Swarm**  
Hi guys, has anyone tried using the XBee module for a drone swarm? I’m using the **XB3-24Z8ST** XBee module. Initially, I set them to work in **transparent mode** , but I encountered some problems. The **coordinator** is connected to my computer, and three **routers** are connected to the UAVs. When I tried to connect them through **Mission Planner** , the connection was successful, but the system got stuck — it took more than **30 minutes** to fully connect. I guess the problem was caused by the fact that all three UAVs were **sending data back to the coordinator simultaneously**.

I’ve only configured a few parameters related to **addressing** to make them work on the same network, and I used the **IR parameter** to adjust the data transmission frequency. I’ve read that switching to **API mode** might solve this problem, but I’d appreciate any suggestions to help solve it more effectively. Thanks!

---

<div class="post-metadata">

**Author:** ![mvut](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/mvut/32/31_2.png) [@mvut](https://forums.digi.com/u/mvut)\
**Post date:** [January 15, 2025, 12:51pm UTC](https://forums.digi.com/t/how-to-perform-drone-swarm-through-xbee-module/33989/2 "2025-01-15T12:51:04Z")

</div>

May I suggest using the 802.15.4 protocol instead. A mesh protocol should only be used in this kind of application if nodes are going to be out of range of your master.

---

<div class="post-metadata">

**Author:** ![michaelt](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/michaelt/32/92_2.png) [@michaelt](https://forums.digi.com/u/michaelt)\
**Post date:** [January 16, 2025, 3:13pm UTC](https://forums.digi.com/t/how-to-perform-drone-swarm-through-xbee-module/33989/3 "2025-01-16T15:13:47Z")

</div>

What about a 900MHz module? That would give it more range, not sure if there’s downsides (power draw, etc.) though.

---

<div class="post-metadata">

**Author:** ![mvut](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/mvut/32/31_2.png) [@mvut](https://forums.digi.com/u/mvut)\
**Post date:** [January 16, 2025, 4:07pm UTC](https://forums.digi.com/t/how-to-perform-drone-swarm-through-xbee-module/33989/4 "2025-01-16T16:07:13Z")

</div>

The XBee XR product offers the same options as the 2.4 GHz products. The Pro version or 19dB version of the module will draw about 110mA at 3.3V. This will be higher than the 2.4 GHz versions of the product which is around 60mW.

---

<div class="post-metadata">

**Author:** ![sanjaysparker27](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/sanjaysparker27/32/6725_2.png) [@sanjaysparker27](https://forums.digi.com/u/sanjaysparker27)\
**Post date:** [January 18, 2025, 12:24pm UTC](https://forums.digi.com/t/how-to-perform-drone-swarm-through-xbee-module/33989/5 "2025-01-18T12:24:11Z")

</div>

could you share your work or image, i hd worked on the xbee swarm , it will be helpful for you

---

<div class="post-metadata">

**Author:** ![mvut](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/mvut/32/31_2.png) [@mvut](https://forums.digi.com/u/mvut)\
**Post date:** [January 21, 2025, 2:43pm UTC](https://forums.digi.com/t/how-to-perform-drone-swarm-through-xbee-module/33989/6 "2025-01-21T14:43:03Z")

</div>

As indicated, I would suggest using the Multi-point code and Not the Mesh firmware for creating a swarm of drones. Mesh firmware options should only be used when the master is out of range of the farthest point. Doing it with the point to point,multi-point code, you will find that you can do what you want without additional delays.

---

<div class="post-metadata">

**Author:** ![sanjaysparker27](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/sanjaysparker27/32/6725_2.png) [@sanjaysparker27](https://forums.digi.com/u/sanjaysparker27)\
**Post date:** [January 22, 2025, 5:48am UTC](https://forums.digi.com/t/how-to-perform-drone-swarm-through-xbee-module/33989/7 "2025-01-22T05:48:29Z")

</div>

Did u made any github repositories of your code and work  
We could help if possible

---

<div class="post-metadata">

**Author:** ![lenting](https://avatars.discourse-cdn.com/v4/letter/l/5fc32e/32.png) [@lenting](https://forums.digi.com/u/lenting)\
**Post date:** [January 22, 2025, 10:48am UTC](https://forums.digi.com/t/how-to-perform-drone-swarm-through-xbee-module/33989/8 "2025-01-22T10:48:22Z")

</div>

First of all, thank you to everyone who replied earlier. I’ve tried using 802.15.4 instead of mesh, and it’s indeed faster than before. However, the problem still persists. When connecting Mission Planner with three drones, it takes 6-7 minutes to establish a connection. I’m not sure if this is normal or not.

@sanjaysparker27 Sorry for the delayed response. Currently, we’re in the process of selecting a module for telemetry instead of WiFi or LTE, and we’re uncertain if XBee is a good choice. At this stage, we’re focusing on testing hardware feasibility, so we haven’t started coding yet. In the future, we plan to develop a tool using MAVLink to observe flight data or change flight modes, replacing Mission Planner.

Here are a few questions I hope you can help me with:

1. Do you use Mission Planner for drone swarming? If yes, did you modify any parameters on the flight control boards? We suspect that the delay might be caused by Mission Planner transmitting too many unused parameters.
2. How do you configure XBee to ensure stability and avoid delays? Which mode do you use: API mode or transparent mode? What firmware version do you use: 802.15.4 or mesh? Are there any specific XBee parameters you’ve adjusted?
3. What roles do you assign to the XBee modules? Is the computer acting as the coordinator and the drones as endpoints?
4. Have you tested the maximum number of drones that can be supported in a swarm using XBee?

By the way, I’ve only changed parameters related to addressing to allow successful communication in the console window.

We’re beginners when it comes to XBee, so we still have many questions and are not as experienced as others here. I apologize for the delayed response and appreciate any insights you can provide. Thank you!

Special thanks to @mvut and @\michaelt for helping me resolve some earlier issues.

---

<div class="post-metadata">

**Author:** ![mvut](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/mvut/32/31_2.png) [@mvut](https://forums.digi.com/u/mvut)\
**Post date:** [January 22, 2025, 12:53pm UTC](https://forums.digi.com/t/how-to-perform-drone-swarm-through-xbee-module/33989/9 "2025-01-22T12:53:53Z")

</div>

I would suggest leaving the CE and SM commands at default. Then set the modules addressing for standard Point to multi-point. You may want to use a combination of 16 bit and 64 bit for this. I would suggest setting the Master (PC side) to a 16 bit address of 1. Then set the remotes to use the destination address of 1. This will make it so that you don’t have to determine the address of each radio to assign by using the radios 64 bit address. Also all of your remotes will talk directly to the master.

As for the delays of up to 6 min, that is really something you may need to contact the software of the Drone Swarm you are working with. They would be the best ones to know if that is normal or not.

---

<div class="post-metadata">

**Author:** ![sanjaysparker27](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/sanjaysparker27/32/6725_2.png) [@sanjaysparker27](https://forums.digi.com/u/sanjaysparker27)\
**Post date:** [January 22, 2025, 2:29pm UTC](https://forums.digi.com/t/how-to-perform-drone-swarm-through-xbee-module/33989/10 "2025-01-22T14:29:19Z")

</div>

@lenting You gave a clear explanation about your objective and progress , If possible post the picture of your hardware setup to [sanjaysparker27@gmail.com](mailto:sanjaysparker27@gmail.com) and we have tested a 4 drone architecture using SX 868 module for 870 Mhz and we did channel mask of 7F800 and network id 425 with broadcast transmits for 3 and Every drone will act as a Router in API mode

---

<div class="post-metadata">

**Author:** ![lenting](https://avatars.discourse-cdn.com/v4/letter/l/5fc32e/32.png) [@lenting](https://forums.digi.com/u/lenting)\
**Post date:** [January 23, 2025, 7:36am UTC](https://forums.digi.com/t/how-to-perform-drone-swarm-through-xbee-module/33989/11 "2025-01-23T07:36:51Z")

</div>

@sanjaysparker27 May I make sure what kinds of hardware setup you need? How I connect Xbee to drone? Xbee parameter lists? How I connect to mission Planner?

---

<div class="post-metadata">

**Author:** ![sanjaysparker27](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/sanjaysparker27/32/6725_2.png) [@sanjaysparker27](https://forums.digi.com/u/sanjaysparker27)\
**Post date:** [January 23, 2025, 7:23pm UTC](https://forums.digi.com/t/how-to-perform-drone-swarm-through-xbee-module/33989/12 "2025-01-23T19:23:21Z")

</div>

Yeh that’s exactly i asked  
Bcoz i have used swarm in router mode and yours is different  
So it will be useful if we share our knowledge regarding these  
Send me your hardware setups and lets discuss this in detail
