KW21 - Zigbee Receive Broadcast Message Callback

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

KW21 - Zigbee Receive Broadcast Message Callback

818 Views
cguarneri
NXP Employee
NXP Employee

We are trying to validate our system’s ability to handle broadcast messages in ZigBee.

We believe we have the stack configured properly and are looking at the proper callback for where we expect a broadcast message to be received from.

The question is how do we receive broadcast messages in the application?

We are using the KW21 with Beestack 4.0.1.

Here are more details :

When testing the OTA Notify Image cluster command message, we run into an issue when receiving a command that has been broadcast to all networks.

We will receive the message and echo it across the network, but it is not sending the message to the application layer to be checked.

The router device does receive the message because it is echoing said message over the air.

Testing Message:

OTA Image Notify,

Destination address = 0xFFFF,

Destination endpoint = 0xFF

Labels (1)
0 Kudos
1 Reply

533 Views
EarlOrlando
Senior Contributor II

Hello Christopher,

I think that the best way to handle a broadcast message is in the Data Indication Callback where you should have a pointer to an structure of the type zbApsdeDataIndication_t which has a field with a flag to indicate if the received message was broadcast or not (fWasBroadcast).

For example, if you run a beekit example application you'll find the function BeeAppDataIndication in BeeApp.c and the function AppBroadcastMsgCallBack in the file BeeAppInit.c where you can intercept those messages.

I hope this information is useful.

Best regards,

Earl.

0 Kudos