Hi everyone,
Am working on Zstack and want to send Multicast messages to a group on a particular endpoint , how to i define the group and how to i send a data request
Thank you
Bosco
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi everyone,
Am working on Zstack and want to send Multicast messages to a group on a particular endpoint , how to i define the group and how to i send a data request
Thank you
Bosco
Hi bosco, try to look at the SampleApp in TI's example.
Here is the path for the LM9B96 in 2.4.0
C:\Texas Instruments\ZStack-LM9B96-2.4.0-1.4.0\Projects\zstack\Samples\SampleApp\Source\SampleApp.c
Look for the following code:
where a global afAddrType_t is configured:
// Setup for the flash command's destination address - Group 1
SampleApp_Flash_DstAddr.addrMode = (afAddrMode_t)afAddrGroup;
SampleApp_Flash_DstAddr.endPoint = SAMPLEAPP_ENDPOINT;
SampleApp_Flash_DstAddr.addr.shortAddr = SAMPLEAPP_FLASH_GROUP;
Where the device add itself to the group.
// By default, all devices start out in Group 1
SampleApp_Group.ID = 0x0001;
osal_memcpy( SampleApp_Group.name, "Group 1", 7 );
aps_AddGroup( SAMPLEAPP_ENDPOINT, &SampleApp_Group );
Where the device send something to the group.
if ( AF_DataRequest( &SampleApp_Flash_DstAddr, &SampleApp_epDesc,
SAMPLEAPP_FLASH_CLUSTERID,
3,
buffer,
&SampleApp_TransID,
AF_DISCV_ROUTE,
AF_DEFAULT_RADIUS ) == afStatus_SUCCESS )
Hi bosco,
I wanna do unicasting, multicasting and broadcasting using z stack. I have five zigbees and I will be sending data from the one end point than in middle there are three zigbees and after these there is one zigbee (destination point). In the first case only one zigbee out of the three will acts as router (unicasting) in the second case two of them will act as router (multicasting) and in the final all three will receive and transmit data (broadcasting).
I read in Developers guide that There is some thing like NLME_RouteDiscovery_Request command and which has some id's and if we change the IDs it could do the require thing i.e unicasting multicasting broadcasting...
But when I saw that the command is in Monitor test.c....I thought without z tool I can not do the multicasting , unicasting , broadcasting.
So what do you think ??..
Is it possible without Z tool.
As my Z tool is not detecting the device.
Thanks
Reply soon !
with regards
Sumit