请问TI的工程师们,1.40.45版本的SDK可以将PHY层的速率更新到125kbps吗,因为想做远距离通信,但是我现在更新1Mbps和2Mbps都是成功的就是更新较低的速率根本就没有进入HCI完成的HCI_LE_EVENT_CODE事件中。代码如下:
// Which PHY is picked?
static uint8_t phy[] = {
HCI_PHY_1_MBPS, HCI_PHY_2_MBPS, HCI_PHY_CODED, HCI_PHY_CODED
};
if (*APPstate == GAPROLE_CONNECTED) //判断是否处于连接状态
{
switch(buffer[0])
{
case 0:
phyOptions = LL_PHY_OPT_NONE;
break;
case 1:
phyOptions = LL_PHY_OPT_NONE;
break;
case 2:
phyOptions = LL_PHY_OPT_S2;
break;
case 3:
phyOptions = LL_PHY_OPT_S8;
break;
default:
phyOptions = LL_PHY_OPT_NONE;
break; }
GAPRole_GetParameter(GAPROLE_CONNHANDLE, &connectionHandle);
HCI_LE_SetPhyCmd(connectionHandle, LL_PHY_USE_PHY_PARAM, phy[buffer[0]], phy[buffer[0]], phyOptions);
}
Viki Shi:
CC2640R2F 现已支持125kbps coded PHY模式,详情请看这边: e2e.ti.com/…/how-does-bluetooth-5-increase-the-achievable-range-of-a-bluetooth-low-energy-connection
Susan Yang:
建议您使用
SIMPLELINK-CC2640R2-BLE5-EVAL:
Bluetooth 5 LE software stack supporting Adv Extensions and Long Range Connections