# Node-Red and Xbee S2C

**URL:** https://discourse.nodered.org/t/node-red-and-xbee-s2c/42023
**Category:** General
**Created:** [4 March 2021 15:19 UTC](https://discourse.nodered.org/t/node-red-and-xbee-s2c/42023 "2021-03-04T15:19:08Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Rezcue](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@Rezcue](https://discourse.nodered.org/u/Rezcue)
#### Post date: [4 March 2021 15:19 UTC](https://discourse.nodered.org/t/node-red-and-xbee-s2c/42023/1 "2021-03-04T15:19:08Z")

</div>

Hello guys

Does anyone have some experience with xbees connected to Node-Red?  
I got a Xbee S2C that i want to use as Coordinator. Its Connected to my Rasp Pi Via USB.  
My Plan is to read the data from my other Xbee (enddevice) and make a flow using the data.

Does anyone have some experience with node-red-contrib-xbee.

Can i just plug my Coordinator (Xbee S2C) via USB to my Pi and work with it?

But im not sure how to start.  
I got the the xbee-node and the xbee-api already.  
Any tipps for making my life easiert?

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [4 March 2021 15:27 UTC](https://discourse.nodered.org/t/node-red-and-xbee-s2c/42023/2 "2021-03-04T15:27:44Z")

</div>

> [@Rezcue](#):
>
> Any tipps for making my life easiert?

Yes. Use [zigbee2mqtt](https://www.zigbee2mqtt.io/devices/XBee.html) and everything is simple MQTT operations.

---

<div class="post-metadata">

### Author: ![Rezcue](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@Rezcue](https://discourse.nodered.org/u/Rezcue)
#### Post date: [4 March 2021 15:31 UTC](https://discourse.nodered.org/t/node-red-and-xbee-s2c/42023/3 "2021-03-04T15:31:40Z")

</div>

Do i need the CC2531 for zigbee2mqtt? Or can i use the Xbee device instead?

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [4 March 2021 15:40 UTC](https://discourse.nodered.org/t/node-red-and-xbee-s2c/42023/4 "2021-03-04T15:40:54Z")

</div>

I know it works with CC2531 (I have one) but did you click that link? I get the impression from that page it works with Xbee

---

<div class="post-metadata">

### Author: ![Rezcue](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@Rezcue](https://discourse.nodered.org/u/Rezcue)
#### Post date: [4 March 2021 15:43 UTC](https://discourse.nodered.org/t/node-red-and-xbee-s2c/42023/5 "2021-03-04T15:43:21Z")

</div>

Yeah i saw the link.  
I once tried to do zigbee2mqtt with the Xbee as coor. But somehow i did not work.  
I will try again maybe i can bring it to work.

---

<div class="post-metadata">

### Author: ![Rezcue](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@Rezcue](https://discourse.nodered.org/u/Rezcue)
#### Post date: [5 March 2021 04:13 UTC](https://discourse.nodered.org/t/node-red-and-xbee-s2c/42023/6 "2021-03-05T04:13:14Z")

</div>

> **[node-red-contrib-xbee](https://flows.nodered.org/node/node-red-contrib-xbee)**
>
> Node-RED module for the Xbee radio modules

can someone explain to me how i can do that? Im complete new to this.

- Build the following JSON object
- Copy it to the `msg.payload`  
What does this mean?

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [5 March 2021 08:07 UTC](https://discourse.nodered.org/t/node-red-and-xbee-s2c/42023/7 "2021-03-05T08:07:16Z")

</div>

> [@Rezcue](#):
>
> What does this mean?

As the help in that document says...

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/3/43d2f6b700f68b4f570dc23e138f781072ca1f65.png)

Alternatively, use a change node to build this object.  
set msg.payload to JSON then copy/paste that code in

This is about as basic as node-red gets. If you dont understand that then you need to spend a little time playing and learning. I strongly recommend watching this playlist: [Node-RED Essentials](https://www.youtube.com/playlist?list=PLyNBB9VCLmo1hyO-4fIZ08gqFcXBkHy-6). The videos are done by the developers of node-red. They're nice & short and to the point. You will understand a whole lot more in about 1 hour. A small investment for a lot of gain.

* * *

PS, this node looks FAR more difficult than zigbee2mqtt - there is none of this to do when you get zigbee2mqtt running.

---

<div class="post-metadata">

### Author: ![Rezcue](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@Rezcue](https://discourse.nodered.org/u/Rezcue)
#### Post date: [5 March 2021 11:20 UTC](https://discourse.nodered.org/t/node-red-and-xbee-s2c/42023/8 "2021-03-05T11:20:06Z")

</div>

Well i got my stuff running that way (Xbee S2C as coor).  
ITs now connected to MQTT via xbmq (Xbee Mqtt Gateway) and i can read stuff thats happening on the Xbee.

Its not possible to pair a Xbee S2C with CC2531 and u cant use it as coordiantor in zigbee2mqtt too.  
Many tried and they failed too. Digi-Forum says so too.  
I saw somewhere that u can pair a Xbee 3 with zigbee2qtt as a router/device.

And thank u very much. For ur help.

---

<div class="post-metadata">

### Author: ![Rezcue](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@Rezcue](https://discourse.nodered.org/u/Rezcue)
#### Post date: [9 March 2021 00:05 UTC](https://discourse.nodered.org/t/node-red-and-xbee-s2c/42023/10 "2021-03-09T00:05:04Z")

</div>

Well yeah. If any of u guys are interested in that just use the xbee-node and xbee-api-node. MQTT is overkill and makes the stuff way harder then it should be.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [23 March 2021 00:05 UTC](https://discourse.nodered.org/t/node-red-and-xbee-s2c/42023/11 "2021-03-23T00:05:49Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
