Skip to main content
GBert
Associate II
Sep 11, 2019 8:58 AM UTC
Solved

Can't return from 2Mbps to 1Mbps

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.
GBert
GBertBest answer
Associate II
Sep 11, 2019 9:45 AM UTC

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
GBertAuthorBest answer
Associate II
Sep 11, 2019 9:45 AM UTC

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;