Tool/software: Code Composer Studio
Use a code (without adding other function) 1.50.00.71 simple_peripheral. Separately try to connect BT4.0 (Android mobile ) and BT5.0 (1.50.00.71 simple_central).
The connection and broadcast status as the following table:
|
BT4.0 Broadcast |
BT5.0 Broadcast |
Non connection status |
Tag can be turn off 1M Broadcast |
Tag can be turn off 500k broadcast |
BT4.0(Android mobile )connection |
Automatically turn off 1M Broadcast |
Can be turn off 500K Broadcast |
BT5.0(1.50.00.71 simple_central) connection |
Cannot be turn off 1M Broadcast |
Automatically turn off 500K Broadcast |
When central is in BT5.0 connection state, we must keep BT4.0 broadcast. If we try turn off BT4.0 broadcast, will triggers Hci_ble_hardware_error_event_code event.
The Error code is 0x83
Issue:
1. Can this hci_ble_hardware_error_event_code event be ignored?
2. If cannot be ignored, are there any ways to close BT4.0 broadcast? We have power consumption concern and must turn off 1M broadcast when 500K is in connection state.
#define GAPADV_PARAMS_LEGACY_SCANN_CONN { \
.eventProps = GAP_ADV_PROP_CONNECTABLE | GAP_ADV_PROP_SCANNABLE | \
GAP_ADV_PROP_LEGACY, \
.primIntMin = 160, \
.primIntMax = 160, \
.primChanMap = GAP_ADV_CHAN_ALL, \
.peerAddrType = ADDRTYPE_PUBLIC_OR_PUBLIC_ID, \
.peerAddr = { 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa }, \
.filterPolicy = GAP_ADV_WL_POLICY_ANY_REQ, \
.txPower = GAP_ADV_TX_POWER_NO_PREFERENCE, \
.primPhy = GAP_ADV_PRIM_PHY_1_MBPS, \
.secPhy = GAP_ADV_SEC_PHY_1_MBPS, \
.sid = 0 \
}
/**
* Default parameters for long range, connectable, advertising extension
*/
#define GAPADV_PARAMS_AE_LONG_RANGE_CONN { \
.eventProps = GAP_ADV_PROP_CONNECTABLE, \
.primIntMin = 160, \
.primIntMax = 160, \
.primChanMap = GAP_ADV_CHAN_ALL, \
.peerAddrType = ADDRTYPE_PUBLIC_OR_PUBLIC_ID, \
.peerAddr = { 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa }, \
.filterPolicy = GAP_ADV_WL_POLICY_ANY_REQ, \
.txPower = GAP_ADV_TX_POWER_NO_PREFERENCE, \
.primPhy = GAP_ADV_PRIM_PHY_CODED_S2, \
.secPhy = GAP_ADV_SEC_PHY_CODED_S2, \
.sid = 0 \
}