Other Parts Discussed in Thread: CC2651R3SIPA
器件型号: CC2651R3
您好:
不同应用 SimpleLink CC13xx/CC26xx SDK 7.10.02.23 通信 多角色 示例:
C:\ti\simplelink_cc13xx_cc26xx_sdk_7_10_02_23\examples\rtos\LP_CC2651R3SIPA\ble5stack\multi_role
当连接了不同的器件时、我们将尝试读取 PHY (rxPhy 和 txPhy):
-
机器到智能手机 (M2Sp): 使用进行连接 1M PHY
-
机器对机器 (M2M): 使用进行连接 编码的 PHY
使用的代码:
大小写 GAP_LINK_RESIDEND_EVENT:
{
Uint16_t connHandle =((gapEstLinkReqEvent_t*) pMsg)->connectionHandle;
HCI_LE_ReadPhyCmd (connHandle);
休息;
}
案例 HCI_COMMAND_COMPLETE_EVENT_CODE:
{
hci Evt_Cmd 完成_ t * pMyMsg =(hci Evt_Cmd 完成_ t *) pMsg;
开关 (pMyMsg->cmdopode)
{
case HCI_LE_READ_PHY:
{
uint8_t *pData = pMyMsg->pReturnParam;
uint16_t connHandle = build_uint16 (pData[1]、pData[2]);
uint8_t txPhy = pData[3];
uint8_t rxPhy = pData[4];
休息;
}
}
}
观察结果:
当我检查调试器中的值时:
| 相匹配 | 呈指数衰减 | 观测 | 结果 |
|---|---|---|---|
| 机器 |
0x01 (1M PHY) | 0x01 | 没错 |
| 机器 |
0x04(编码 PHY) | 0x03 | 意料之外 |
根据 PHY 定义:
#define LL_PHY_1_Mbps 0x01
#define LL_PHY_2_Mbps 0x02
#define LL_PHY_CODEED 0x04
该值0x03与任何定义的 PHY 不匹配
问题:
为什么HCI_LE_ReadPhyCmdrxPhy = 0x030x04使用编码的 PHY 连接时返回、而不是返回?
这是预期行为还是表示混合 PHY 模式?
我随附了屏幕截图、其中显示了连接期间的变量值。 
谢谢你。
