2019-09-11 01:58 AM
Hi
The connection starts up in 1Mbps and when connected, I change it to 2Mbps. This all goes well, but I can't return to 1Mbps anymore if I do this. Any ideas ?
thx in advance :D
Solved! Go to Solution.
2019-09-11 02:45 AM
fixed it, the PHY_options( Not Supported by STM32WB) was the key . Am I wrong to say that the bluetooth stack is not well documentated ?
for people with the same problem:
case 1: //1Mbps
LOG_TRM("status: %d",PU8(hci_le_set_phy(BleApplicationContext.BleApplicationContext_legacy.connectionHandle,0x00,0x01,0x01,0x01)));
LOG_TRM("TX speed: %d",PU8(get_TX()));
break;
case 2: //2Mbps
LOG_TRM("status: %d",PU8(hci_le_set_phy(BleApplicationContext.BleApplicationContext_legacy.connectionHandle,0x00,0x02,0x02,0x02)));
LOG_TRM("TX speed: %d",PU8(get_TX()));
break;
2019-09-11 02:45 AM
fixed it, the PHY_options( Not Supported by STM32WB) was the key . Am I wrong to say that the bluetooth stack is not well documentated ?
for people with the same problem:
case 1: //1Mbps
LOG_TRM("status: %d",PU8(hci_le_set_phy(BleApplicationContext.BleApplicationContext_legacy.connectionHandle,0x00,0x01,0x01,0x01)));
LOG_TRM("TX speed: %d",PU8(get_TX()));
break;
case 2: //2Mbps
LOG_TRM("status: %d",PU8(hci_le_set_phy(BleApplicationContext.BleApplicationContext_legacy.connectionHandle,0x00,0x02,0x02,0x02)));
LOG_TRM("TX speed: %d",PU8(get_TX()));
break;