RemoTI 广播消息收不到
TI工程师,我用RemoTI中的BasicRomote和RNP 程序,在BasicRemote基础上进行修改,配对成功后,发送单播消息OK, 但改为Broastcast消息类型时,对方接收不到消息,请问是哪里有问题,还需要修改哪里?我的发送代码大概如下:
uint8 len = 3;
uint8 pData[5]; // Note that array size has to match maximum possible data length
//uint8 txOptions = RTI_TX_OPTION_ACKNOWLEDGED;
uint8 txOptions = RTI_TX_OPTION_BROADCAST;
uint8 profileId = RTI_PROFILE_CERC;
uint16 vendorId = RTI_VENDOR_TEXAS_INSTRUMENTS;
pData[0] = 0x11;
pData[1] = 0x22;
pData[2] = 0x33;
//
RTI_WriteItem(RTI_SA_ITEM_PT_CURRENT_ENTRY_INDEX, 1, &rsaDestIndex);
if (RTI_ReadItem(RTI_SA_ITEM_PT_CURRENT_ENTRY, sizeof(rsaPairingEntryBuf),
(uint8 *) &rsaPairingEntryBuf) == RTI_SUCCESS &&
rsaPairingEntryBuf.pairingRef != RTI_INVALID_PAIRING_REF &&
rsaPairingEntryBuf.securityKeyValid)
{
txOptions |= RTI_TX_OPTION_SECURITY;
}
//RCN_NlmeDiscoveryAbortReq();
RTI_SendDataReq( rsaDestIndex, profileId, vendorId, txOptions, len, pData);
空中抓包数据有书籍又发出来吗
我没有用Sniffer抓包,不过我已经解决了这个问题,广播消息时,不能加安全选项,否则对方收不到消息。Thanks all the same.