Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(259)

Issue 2101283003: arc: bluetooth: Implement Gatt server request to read/write (Closed)

Created:
4 years, 5 months ago by puthik_chromium
Modified:
4 years, 5 months ago
CC:
chromium-reviews, elijahtaylor+arcwatch_chromium.org, hidehiko+watch_chromium.org, lhchavez+watch_chromium.org, yusukes+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@gs2
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

arc: bluetooth: Implement Gatt server request to read/write Implement the following functionality - Request to read/write Gatt characteristic/descriptor. - Send response message back for the request read/write. - Send reply back that response message is sent. BUG=629210 TEST=manual test using step below 1. Create custom Gatt server in nrF connect app. 2. Connect minnie to ryu via chrome interface. 3. Ryu can correctly see minnie's Gatt server object. 4. Ryu can correctly read / write Gatt server object. Committed: https://crrev.com/8dcc59fa56cb65f1f4cd48bb0e11eb1633c9ccf8 Cr-Commit-Position: refs/heads/master@{#407587}

Patch Set 1 #

Total comments: 10

Patch Set 2 : rebase #

Patch Set 3 : Add GattServerCallbacks type to store the callbacks #

Total comments: 2

Patch Set 4 : Fix bug / More descriptive type name for template #

Total comments: 5

Patch Set 5 : Fix code comment #

Patch Set 6 : GattObjectT -> GattAttribute #

Patch Set 7 : run error_callback if offset < 0 #

Total comments: 11

Patch Set 8 : Rebase / Address lhchavez comment #

Patch Set 9 : fix trybot error #

Patch Set 10 : remove sendResponse #

Patch Set 11 : fix comment in #10 #

Patch Set 12 : Remove unused methods #

Patch Set 13 : Remove unneeded Callback struct #

Total comments: 2

Patch Set 14 : More thread check, auto deduce template #

Patch Set 15 : rebase #

Total comments: 9

Patch Set 16 : rebase #

Patch Set 17 : Check maximum read/write offset #

Total comments: 2

Patch Set 18 : Change variable name #

Patch Set 19 : Rebase to head #

Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -8 lines) Patch
M components/arc/bluetooth/arc_bluetooth_bridge.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +20 lines, -2 lines 0 comments Download
M components/arc/bluetooth/arc_bluetooth_bridge.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 8 chunks +98 lines, -6 lines 0 comments Download

Messages

Total messages: 91 (59 generated)
puthik_chromium
WIP cl. Head up early to make sure that I use Gatt Server API correctly.
4 years, 5 months ago (2016-06-28 18:41:17 UTC) #2
Eric Caruso
https://codereview.chromium.org/2101283003/diff/1/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/2101283003/diff/1/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode309 components/arc/bluetooth/arc_bluetooth_bridge.cc:309: std::pair<ValueCallback, ErrorCallback>(successCallback, errorCallback)); Instead of using std::pair here and ...
4 years, 5 months ago (2016-06-30 23:46:20 UTC) #4
rkc
https://codereview.chromium.org/2101283003/diff/1/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/2101283003/diff/1/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode301 components/arc/bluetooth/arc_bluetooth_bridge.cc:301: // We will use odd transaction_id for read and ...
4 years, 5 months ago (2016-07-01 22:51:32 UTC) #5
puthik_chromium
https://codereview.chromium.org/2101283003/diff/1/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/2101283003/diff/1/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode301 components/arc/bluetooth/arc_bluetooth_bridge.cc:301: // We will use odd transaction_id for read and ...
4 years, 5 months ago (2016-07-01 22:56:09 UTC) #6
rkc
https://codereview.chromium.org/2101283003/diff/1/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/2101283003/diff/1/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode301 components/arc/bluetooth/arc_bluetooth_bridge.cc:301: // We will use odd transaction_id for read and ...
4 years, 5 months ago (2016-07-01 23:04:02 UTC) #7
puthik_chromium
https://codereview.chromium.org/2101283003/diff/1/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/2101283003/diff/1/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode301 components/arc/bluetooth/arc_bluetooth_bridge.cc:301: // We will use odd transaction_id for read and ...
4 years, 5 months ago (2016-07-14 22:45:12 UTC) #8
rkc
lgtm % comment https://codereview.chromium.org/2101283003/diff/40001/components/arc/bluetooth/arc_bluetooth_bridge.h File components/arc/bluetooth/arc_bluetooth_bridge.h (right): https://codereview.chromium.org/2101283003/diff/40001/components/arc/bluetooth/arc_bluetooth_bridge.h#newcode44 components/arc/bluetooth/arc_bluetooth_bridge.h:44: template <class T> Use more descriptive ...
4 years, 5 months ago (2016-07-14 23:28:12 UTC) #9
puthik_chromium
https://codereview.chromium.org/2101283003/diff/40001/components/arc/bluetooth/arc_bluetooth_bridge.h File components/arc/bluetooth/arc_bluetooth_bridge.h (right): https://codereview.chromium.org/2101283003/diff/40001/components/arc/bluetooth/arc_bluetooth_bridge.h#newcode44 components/arc/bluetooth/arc_bluetooth_bridge.h:44: template <class T> On 2016/07/14 23:28:12, rkc wrote: > ...
4 years, 5 months ago (2016-07-15 21:49:59 UTC) #11
palmer
(drive-by review) https://codereview.chromium.org/2101283003/diff/60001/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/2101283003/diff/60001/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode330 components/arc/bluetooth/arc_bluetooth_bridge.cc:330: gatt_handle_[gatt_obj->GetIdentifier()], offset, false /*is_long */); Is there ...
4 years, 5 months ago (2016-07-16 00:48:26 UTC) #13
puthik_chromium
https://codereview.chromium.org/2101283003/diff/60001/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/2101283003/diff/60001/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode330 components/arc/bluetooth/arc_bluetooth_bridge.cc:330: gatt_handle_[gatt_obj->GetIdentifier()], offset, false /*is_long */); On 2016/07/16 00:48:26, palmer ...
4 years, 5 months ago (2016-07-18 21:30:32 UTC) #14
puthik_chromium
Rebase to latest version of previous patch
4 years, 5 months ago (2016-07-18 22:46:44 UTC) #16
puthik_chromium
https://codereview.chromium.org/2101283003/diff/60001/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/2101283003/diff/60001/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode330 components/arc/bluetooth/arc_bluetooth_bridge.cc:330: gatt_handle_[gatt_obj->GetIdentifier()], offset, false /*is_long */); On 2016/07/18 21:30:32, puthik_chromium ...
4 years, 5 months ago (2016-07-19 01:03:16 UTC) #17
Luis Héctor Chávez
I found at least one compile error (probably not on the compiler you're using, but ...
4 years, 5 months ago (2016-07-19 01:49:17 UTC) #18
puthik_chromium
https://codereview.chromium.org/2101283003/diff/120001/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/2101283003/diff/120001/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode330 components/arc/bluetooth/arc_bluetooth_bridge.cc:330: gatt_handle_[gatt_obj->GetIdentifier()], offset, false /*is_long */); On 2016/07/19 01:49:17, Luis ...
4 years, 5 months ago (2016-07-19 22:21:47 UTC) #25
Luis Héctor Chávez
https://codereview.chromium.org/2101283003/diff/120001/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/2101283003/diff/120001/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode348 components/arc/bluetooth/arc_bluetooth_bridge.cc:348: arc_bridge_service()->bluetooth()->instance()->RequestGattWrite( On 2016/07/19 22:21:47, puthik_chromium wrote: > On 2016/07/19 ...
4 years, 5 months ago (2016-07-19 22:38:00 UTC) #26
puthik_chromium
https://codereview.chromium.org/2101283003/diff/120001/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/2101283003/diff/120001/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode348 components/arc/bluetooth/arc_bluetooth_bridge.cc:348: arc_bridge_service()->bluetooth()->instance()->RequestGattWrite( On 2016/07/19 22:38:00, Luis Héctor Chávez wrote: > ...
4 years, 5 months ago (2016-07-19 23:05:43 UTC) #31
puthik_chromium
https://codereview.chromium.org/2101283003/diff/120001/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/2101283003/diff/120001/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode348 components/arc/bluetooth/arc_bluetooth_bridge.cc:348: arc_bridge_service()->bluetooth()->instance()->RequestGattWrite( On 2016/07/19 23:05:43, puthik_chromium wrote: > On 2016/07/19 ...
4 years, 5 months ago (2016-07-20 01:42:09 UTC) #40
puthik_chromium
friendly ping.
4 years, 5 months ago (2016-07-20 22:48:57 UTC) #47
Luis Héctor Chávez
this looks much better :) components/arc/ lgtm (but please wait for security review) https://codereview.chromium.org/2101283003/diff/240001/components/arc/bluetooth/arc_bluetooth_bridge.cc File ...
4 years, 5 months ago (2016-07-20 23:09:31 UTC) #48
puthik_chromium
https://codereview.chromium.org/2101283003/diff/240001/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/2101283003/diff/240001/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode418 components/arc/bluetooth/arc_bluetooth_bridge.cc:418: gatt_handle_[gatt_obj->GetIdentifier()], offset, false /*is_long */, On 2016/07/20 23:09:31, Luis ...
4 years, 5 months ago (2016-07-21 00:05:11 UTC) #51
palmer
https://codereview.chromium.org/2101283003/diff/280001/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/2101283003/diff/280001/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode410 components/arc/bluetooth/arc_bluetooth_bridge.cc:410: !CheckBluetoothInstanceVersion(kMinGattServerVersion) || offset < 0) { Is there an ...
4 years, 5 months ago (2016-07-22 01:46:10 UTC) #58
puthik_chromium
https://codereview.chromium.org/2101283003/diff/280001/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/2101283003/diff/280001/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode410 components/arc/bluetooth/arc_bluetooth_bridge.cc:410: !CheckBluetoothInstanceVersion(kMinGattServerVersion) || offset < 0) { On 2016/07/22 01:46:10, ...
4 years, 5 months ago (2016-07-22 02:12:33 UTC) #59
palmer
https://codereview.chromium.org/2101283003/diff/280001/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/2101283003/diff/280001/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode410 components/arc/bluetooth/arc_bluetooth_bridge.cc:410: !CheckBluetoothInstanceVersion(kMinGattServerVersion) || offset < 0) { > The upper ...
4 years, 5 months ago (2016-07-22 21:49:11 UTC) #62
puthik_chromium
https://codereview.chromium.org/2101283003/diff/280001/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/2101283003/diff/280001/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode410 components/arc/bluetooth/arc_bluetooth_bridge.cc:410: !CheckBluetoothInstanceVersion(kMinGattServerVersion) || offset < 0) { On 2016/07/22 21:49:11, ...
4 years, 5 months ago (2016-07-22 22:41:05 UTC) #66
palmer
LGTM % nits. https://codereview.chromium.org/2101283003/diff/320001/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/2101283003/diff/320001/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode416 components/arc/bluetooth/arc_bluetooth_bridge.cc:416: const LocalGattAttribute* gatt_obj, Nit: Might be ...
4 years, 5 months ago (2016-07-22 23:17:01 UTC) #68
puthik_chromium
https://codereview.chromium.org/2101283003/diff/320001/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/2101283003/diff/320001/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode416 components/arc/bluetooth/arc_bluetooth_bridge.cc:416: const LocalGattAttribute* gatt_obj, On 2016/07/22 23:17:01, palmer (OOO through ...
4 years, 5 months ago (2016-07-23 00:20:28 UTC) #74
commit-bot: I haz the power
This CL has an open dependency (Issue 2104043002 Patch 200001). Please resolve the dependency and ...
4 years, 5 months ago (2016-07-25 18:40:29 UTC) #80
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2101283003/340001
4 years, 5 months ago (2016-07-25 20:38:07 UTC) #82
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/40911) ios-device-gn on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 5 months ago (2016-07-25 20:40:23 UTC) #84
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2101283003/360001
4 years, 5 months ago (2016-07-25 20:59:33 UTC) #87
commit-bot: I haz the power
Committed patchset #19 (id:360001)
4 years, 5 months ago (2016-07-25 21:35:36 UTC) #89
commit-bot: I haz the power
4 years, 5 months ago (2016-07-25 21:37:11 UTC) #91
Message was sent while issue was closed.
Patchset 19 (id:??) landed as
https://crrev.com/8dcc59fa56cb65f1f4cd48bb0e11eb1633c9ccf8
Cr-Commit-Position: refs/heads/master@{#407587}

Powered by Google App Engine
This is Rietveld 408576698