Skip to content

Commit

Permalink
Update BLE manager to use correct type/remove unnecessary adv interva…
Browse files Browse the repository at this point in the history
…l in sysconfig (#22694)
  • Loading branch information
adabreuti authored Sep 16, 2022
1 parent 7862371 commit 0574c55
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 12 deletions.
2 changes: 0 additions & 2 deletions examples/all-clusters-app/cc13x2x7_26x2x7/chip.syscfg
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,6 @@ ble.connUpdateParamsPeripheral.reqMaxConnInt = 50;

ble.advSet1.$name = "ti_ble5stack_broadcaster_advertisement_set0";
ble.advSet1.advParam1.$name = "ti_ble5stack_broadcaster_advertisement_params0";
ble.advSet1.advParam1.primIntMin = 100;
ble.advSet1.advParam1.primIntMax = 200;

/* DMM */
dmm.project = "ti_thread_thermostat_remote_display";
Expand Down
2 changes: 0 additions & 2 deletions examples/all-clusters-minimal-app/cc13x2x7_26x2x7/chip.syscfg
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,6 @@ ble.connUpdateParamsPeripheral.reqMaxConnInt = 50;

ble.advSet1.$name = "ti_ble5stack_broadcaster_advertisement_set0";
ble.advSet1.advParam1.$name = "ti_ble5stack_broadcaster_advertisement_params0";
ble.advSet1.advParam1.primIntMin = 100;
ble.advSet1.advParam1.primIntMax = 200;

/* DMM */
dmm.project = "ti_thread_thermostat_remote_display";
Expand Down
2 changes: 0 additions & 2 deletions examples/lock-app/cc13x2x7_26x2x7/chip.syscfg
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,6 @@ ble.connUpdateParamsPeripheral.reqMaxConnInt = 50;

ble.advSet1.$name = "ti_ble5stack_broadcaster_advertisement_set0";
ble.advSet1.advParam1.$name = "ti_ble5stack_broadcaster_advertisement_params0";
ble.advSet1.advParam1.primIntMin = 100;
ble.advSet1.advParam1.primIntMax = 200;

/* DMM */
dmm.project = "ti_thread_thermostat_remote_display";
Expand Down
1 change: 0 additions & 1 deletion examples/pump-app/cc13x2x7_26x2x7/chip.syscfg
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ ble.connUpdateParamsPeripheral.reqMinConnInt = 30;
ble.connUpdateParamsPeripheral.reqMaxConnInt = 50;
ble.advSet1.$name = "ti_ble5stack_broadcaster_advertisement_set0";
ble.advSet1.advParam1.$name = "ti_ble5stack_broadcaster_advertisement_params0";
ble.advSet1.advParam1.primIntMax = 200;
ble.advSet1.advData1.$name = "ti_ble5stack_broadcaster_advertisement_data0";
ble.advSet1.scanRes1.$name = "ti_ble5stack_broadcaster_advertisement_data1";

Expand Down
1 change: 0 additions & 1 deletion examples/pump-controller-app/cc13x2x7_26x2x7/chip.syscfg
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ ble.connUpdateParamsPeripheral.reqMinConnInt = 30;
ble.connUpdateParamsPeripheral.reqMaxConnInt = 50;
ble.advSet1.$name = "ti_ble5stack_broadcaster_advertisement_set0";
ble.advSet1.advParam1.$name = "ti_ble5stack_broadcaster_advertisement_params0";
ble.advSet1.advParam1.primIntMax = 200;
ble.advSet1.advData1.$name = "ti_ble5stack_broadcaster_advertisement_data0";
ble.advSet1.scanRes1.$name = "ti_ble5stack_broadcaster_advertisement_data1";

Expand Down
2 changes: 0 additions & 2 deletions examples/shell/cc13x2x7_26x2x7/chip.syscfg
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,6 @@ ble.connUpdateParamsPeripheral.reqMaxConnInt = 50;

ble.advSet1.$name = "ti_ble5stack_broadcaster_advertisement_set0";
ble.advSet1.advParam1.$name = "ti_ble5stack_broadcaster_advertisement_params0";
ble.advSet1.advParam1.primIntMin = 100;
ble.advSet1.advParam1.primIntMax = 200;

/* DMM */
dmm.project = "ti_thread_thermostat_remote_display";
Expand Down
4 changes: 2 additions & 2 deletions src/platform/cc13x2_26x2/BLEManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ void BLEManagerImpl::ConfigureAdvertisements(void)

sInstance.mAdvDatachipOBle[advIndex++] = 0x02;
sInstance.mAdvDatachipOBle[advIndex++] = GAP_ADTYPE_FLAGS;
sInstance.mAdvDatachipOBle[advIndex++] = GAP_ADTYPE_FLAGS_BREDR_NOT_SUPPORTED | GAP_ADTYPE_FLAGS_LIMITED;
sInstance.mAdvDatachipOBle[advIndex++] = GAP_ADTYPE_FLAGS_BREDR_NOT_SUPPORTED | GAP_ADTYPE_FLAGS_GENERAL;
sInstance.mAdvDatachipOBle[advIndex++] = advLength;
sInstance.mAdvDatachipOBle[advIndex++] = GAP_ADTYPE_SERVICE_DATA;
sInstance.mAdvDatachipOBle[advIndex++] = static_cast<uint8_t>(LO_UINT16(CHIPOBLE_SERV_UUID));
Expand Down Expand Up @@ -792,7 +792,7 @@ void BLEManagerImpl::ProcessEvtHdrMsg(QueuedEvt_t * pMsg)
GapAdv_disable(sInstance.advHandleLegacy);
sInstance.mFlags.Clear(Flags::kAdvertising);

uint16_t newParamMax = 0, newParamMin = 0;
uint32_t newParamMax = 0, newParamMin = 0;
if (sInstance.mFlags.Has(Flags::kFastAdvertisingEnabled))
{
// Update advertising interval
Expand Down

0 comments on commit 0574c55

Please sign in to comment.