Tool/software:
For 802.15.4 beacon enabled mode point to point messaging can it be done at MAC and / or application levels?
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.
Tool/software:
For 802.15.4 beacon enabled mode point to point messaging can it be done at MAC and / or application levels?
Hi Gerard,
Using the API: TI-15.4 Stack API: api_mac.h File Reference
and the following diagrams, you can see how it can be achieved: https://dev.ti.com/tirex/explore/content/simplelink_cc13xx_cc26xx_sdk_8_31_00_11/docs/ti154stack/html/ti154stack/beacon-mode.html#data-exchange
For instance, in the indirect case diagram, you can see that we are addressing one particular device.
Regards,
Arthur
Hi Arthur,
I should have been more clear. I was looking for a way to send messages from one sensor directly to another sensor. What you pointed to seems to be messaging between the collector and a sensor.
Hi Gerard,
It is more clear now. Since the sensors do not know of each other's existence, you have to use broadcast messages.
If you implement that method in your sensor applicaiton, you may be able to send a broadcast message:
static void sendBroadcastMsg(Smsgs_cmdIds_t type, uint16_t len,
uint8_t *pData)
{
ApiMac_mcpsDataReq_t dataReq;
/* Current example is only implemented for FH mode */
if(!fhEnabled)
{
return;
}
/* Fill the data request field */
memset(&dataReq, 0, sizeof(ApiMac_mcpsDataReq_t));
dataReq.dstAddr.addrMode = ApiMac_addrType_none;
dataReq.srcAddrMode = ApiMac_addrType_short;
dataReq.dstPanId = devicePanId;
dataReq.msduHandle = getMsduHandle(type);
dataReq.txOptions.ack = false;
dataReq.txOptions.indirect = false;
dataReq.msdu.len = len;
dataReq.msdu.p = pData;
#ifdef FEATURE_MAC_SECURITY
/* Fill in the appropriate security fields */
Cllc_securityFill(&dataReq.sec);
#endif /* FEATURE_MAC_SECURITY */
/* Send the message */
ApiMac_mcpsDataReq(&dataReq);
} and then handle the broadcast answer in a data ind callback.
Regards,
Arthur