cancel
Showing results for 
Search instead for 
Did you mean: 

Can't return from 2Mbps to 1Mbps

GBert
Associate II

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

1 ACCEPTED SOLUTION

Accepted Solutions
GBert
Associate II

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;

View solution in original post

1 REPLY 1
GBert
Associate II

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;