XBee Arduino API Broadcast

2,306 views
Skip to first unread message

Stefan F.

unread,
Jan 13, 2011, 7:55:17 AM1/13/11
to xbee-api
Hello,

How can I send a broadcast frame using the xbee-arduino library? I
tried
to sent a ZBTxRequest with XBeeAddress64 set to (0x00000000 0000FFFF).
But this didn't work.

Please help!

Stefan.

Alejandro Méndez A.

unread,
Jan 13, 2011, 10:43:35 AM1/13/11
to xbee...@googlegroups.com

Are you user the XBees are configured correctly?
Try this:


#include <XBee.h>


XBee xbee = XBee();

uint8_t payload[] = { 0, 0 };


XBeeAddress64 addr64 = XBeeAddress64(0x00000000, 0x0000ffff);
ZBTxRequest zbTx = ZBTxRequest(addr64, payload, sizeof(payload));
ZBTxStatusResponse txStatus = ZBTxStatusResponse();

void setup() { xbee.begin(9600); } void loop() { xbee.send(zbTx); delay(1000); }


--
You received this message because you are subscribed to the Google Groups "xbee-api" group.
To post to this group, send email to xbee...@googlegroups.com.
To unsubscribe from this group, send email to xbee-api+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/xbee-api?hl=en.




--
アレッカス

Stefan F.

unread,
Jan 17, 2011, 5:03:25 AM1/17/11
to xbee-api
Thank you for your answer!

I've tried it but it didn't work. Which settings do I need to get this
working?

On 13 jan, 16:43, Alejandro Méndez A. <twist...@gmail.com> wrote:
> Are you user the XBees are configured correctly?
>
> Try this:
>
> #include <XBee.h>
>
> XBee xbee = XBee();
>
> uint8_t payload[] = { 0, 0 };
>
> XBeeAddress64 addr64 = XBeeAddress64(0x00000000, 0x0000ffff);
> ZBTxRequest zbTx = ZBTxRequest(addr64, payload, sizeof(payload));
> ZBTxStatusResponse txStatus = ZBTxStatusResponse();
>
> void setup() { xbee.begin(9600); } void loop() { xbee.send(zbTx);
> delay(1000); }
>
> On Thu, Jan 13, 2011 at 1:55 PM, Stefan F. <stefan.feens...@gmail.com>wrote:
>
>
>
>
>
>
>
>
>
> > Hello,
>
> > How can I send a broadcast frame using the xbee-arduino library? I
> > tried
> > to sent a ZBTxRequest with XBeeAddress64 set to (0x00000000 0000FFFF).
> > But this didn't work.
>
> > Please help!
>
> > Stefan.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "xbee-api" group.
> > To post to this group, send email to xbee...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > xbee-api+u...@googlegroups.com<xbee-api%2Bunsubscribe@googlegroups.c om>
> > .

Alejandro Méndez A.

unread,
Jan 17, 2011, 7:35:48 AM1/17/11
to xbee...@googlegroups.com
You have to check that both XBee's have the same PAN ID, the same Channel, they have the correct baud rate and both configured with AP=2.

An easy way to do that would be using the XCTU to set them to default and change the baud rate and the AP to 2.



2011/1/17 Stefan F. <stefan....@gmail.com>
To unsubscribe from this group, send email to xbee-api+u...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/xbee-api?hl=en.




--
アレッカス

Stefan F.

unread,
Jan 17, 2011, 8:41:19 AM1/17/11
to xbee-api
The problem is solved now. We tried to broadcast also to the
coordinator of the XBee network but this isn't working with the normal
broadcast address.

For sending a broadcast message to the coordinator you use the
address: XBeeAddress64 addr64 = XBeeAddress64(0x00000000, 0x00000000);

Thank you for all the help!

On 17 jan, 13:35, Alejandro Méndez A. <twist...@gmail.com> wrote:
> You have to check that both XBee's have the same PAN ID, the same Channel,
> they have the correct baud rate and both configured with AP=2.
>
> An easy way to do that would be using the XCTU to set them to default and
> change the baud rate and the AP to 2.
>
> 2011/1/17 Stefan F. <stefan.feens...@gmail.com>
> > <xbee-api%2Bunsubscr...@googlegroups.c om>

Alejandro Méndez A.

unread,
Jan 17, 2011, 11:18:29 AM1/17/11
to xbee...@googlegroups.com
Well I'm glad you solved the problem, I never though of that solution because I'm using XBees with DigiMesh not ZigBee and since DM doesn't need Coordinators if you use the normal broadcast address all the nodes recieve the message.

To unsubscribe from this group, send email to xbee-api+u...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/xbee-api?hl=en.




--
アレッカス

Olivier ROUCHOUZE

unread,
Feb 12, 2014, 6:54:45 AM2/12/14
to xbee...@googlegroups.com
Hello Alex,

Could it be possible to send me the library for digimesh ?
I have try xbee-Library for arduino without problem with standart configuration, but in digimesh configuration, it doesn't work.
Could you help me ?

Best regards

Olivier

Ali Waqas

unread,
Jan 29, 2016, 9:23:00 AM1/29/16
to xbee-api
hello , did you find any library for digimesh arduino? 
Reply all
Reply to author
Forward
0 new messages