Hello.
What is the most suitable way to transmit by Z-stack rather huge (about 1600 samples per second) flow of ADC data?
In the HomeAutomation folder of the stack distributive I've found mostly examples of transmitting commands.
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.
Hello.
What is the most suitable way to transmit by Z-stack rather huge (about 1600 samples per second) flow of ADC data?
In the HomeAutomation folder of the stack distributive I've found mostly examples of transmitting commands.
Thank you.
But is AF_DataRequest reliable? I.e. can I be sure that any data I send with this function will be received?
Or I have to use any other functionality of ZStack?
There is MAC ack and APS ack when you send message by AF_DataRequest. You can enable APS ack when using AF_DataRequest to send message. If you don't get APS ACK, you can resend the message again.
Thank you.
But I meant than I need to get the devices list of the coordinator by the code, running on the coordinator.
I tried code like this:
NLME_GetRequest( nwkNumNeighborTableEntries, 0, &maxItems ); for (index = 0; index<maxItems; index++) { aDevice = AssocFindDevice( index ); zclSampleSw_DstAddr.addrMode = afAddr16Bit; zclSampleSw_DstAddr.addr.shortAddr = aDevice->shortAddr; char theMessageData[] = "Hello!"; byte cnt = bdb_getZCLFrameCounter(); err = AF_DataRequest( &zclSampleSw_DstAddr, afFindEndPointDesc(0 ), ZCL_CLUSTER_ID_GEN_ON_OFF, (byte)osal_strlen( theMessageData ) + 1, (byte *)&theMessageData, &cnt, AF_DISCV_ROUTE, AF_DEFAULT_RADIUS ); }
but maxItems is always equal to zero.
Got it.
Thanks.
I used
maxItems = AssocCount( PARENT, CHILD_FFD_RX_IDLE );
and all worked.