Skip to content

Commit

Permalink
Add Chip Over Bluez Implementation
Browse files Browse the repository at this point in the history
-- Implement CHIPBluezHelper based upon the Thread Bluez Gio code from
openthread.
-- Implement BLEManager and corresponding state machine and event
handling module.
-- Implement TestCHIPoBLEStackMgr test
-- Current code suport CHIPoBLE peripheral mode.
-- Validated via repeatedly creating BLE connection, CHIP BTP communication via characteristic C1
and C2

Fix #2025
  • Loading branch information
yunhanw-google committed Aug 19, 2020
1 parent 0561e68 commit 110cacd
Show file tree
Hide file tree
Showing 16 changed files with 25,438 additions and 78 deletions.
3 changes: 3 additions & 0 deletions src/ble/BLEEndPoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -765,6 +765,8 @@ BLE_ERROR BLEEndPoint::SendNextMessage()
VerifyOrExit(PrepareNextFragment(data, sentAck), err = BLE_ERROR_CHIPOBLE_PROTOCOL_ABORT);
data = NULL; // Ownership passed to fragmenter's tx buf on PrepareNextFragment success.

/*
// Todo: reenabled it after integrating fault injection
// Send first message fragment over the air.
CHIP_FAULT_INJECT(chip::FaultInjection::kFault_CHIPOBLESend, {
if (mRole == kBleRole_Central)
Expand All @@ -777,6 +779,7 @@ BLE_ERROR BLEEndPoint::SendNextMessage()
}
ExitNow();
});
*/
err = SendCharacteristic(mBtpEngine.TxPacket());
SuccessOrExit(err);

Expand Down
2 changes: 1 addition & 1 deletion src/include/platform/CHIPDeviceConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@
* Enable support for chip-over-BLE (CHIPoBLE).
*/
#ifndef CHIP_DEVICE_CONFIG_ENABLE_CHIPOBLE
#define CHIP_DEVICE_CONFIG_ENABLE_CHIPOBLE 1
#define CHIP_DEVICE_CONFIG_ENABLE_CHIPOBLE 0
#endif

/**
Expand Down
Loading

0 comments on commit 110cacd

Please sign in to comment.