Skip to main content
GBert
Associate II
September 11, 2019
Solved

Can't return from 2Mbps to 1Mbps

  • September 11, 2019
  • 1 reply
  • 774 views

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

This topic has been closed for replies.
Best answer by GBert

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;

1 reply

GBert
GBertAuthorAnswer
Associate II
September 11, 2019

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;