| 98258d28 |
doc/gatt-api: Add encryption flags
This add encryption flags which can be used when registering a service to
require encryption when accessing a characteristic. |
Luiz Augusto von Dentz |
10 years ago |
1 file, +4, -0 |
| d68ff945 |
client: main: add support for SetDiscoveryFilter
This patch adds set-scan-filter-* commands to sample DBus client that
might be used to modify discovery filter.
set-scan-filter-uuids - sets filter uuids field
set-scan-filter-rssi - sets filter rssi and clears pathloss
set-scan-filter-pathloss - sets filter pathloss and clears rssi
set-scan-filter-transport - sets filter transport
set-scan-filter-clear - clears filter
Sample output:
[bluetooth]# power on
Changing power on succeeded
[bluetooth]# set-scan-filter-uuids babe
SetDiscoveryFilter success
[bluetooth]# set-scan-filter-transport le
SetDiscoveryFilter success
[bluetooth]# set-scan-filter-rssi -69
SetDiscoveryFilter success
[bluetooth]# scan on
Discovery started
[CHG] Controller 00:1A:7D:DA:71:13 Discovering: yes
[CHG] Device 44:89:1C:C5:67:94 RSSI: -66
[CHG] Device 44:89:1C:C5:67:94 TxPower: -21
[CHG] Device 44:89:1C:C5:67:94 RSSI: -65
[CHG] Device 44:89:1C:C5:67:94 RSSI: -58
[CHG] Device 44:89:1C:C5:67:94 RSSI: -64
[CHG] Device 44:89:1C:C5:67:94 RSSI: -59
[CHG] Device 44:89:1C:C5:67:94 RSSI: -65
[CHG] Device 44:89:1C:C5:67:94 RSSI: -59
[CHG] Device 44:89:1C:C5:67:94 RSSI: -64
[bluetooth]# set-scan-filter-rssi -90
SetDiscoveryFilter success
[CHG] Device 44:89:1C:C5:67:94 RSSI: -76
[CHG] Device 44:89:1C:C5:67:94 RSSI: -82
[CHG] Device 44:89:1C:C5:67:94 RSSI: -75
[CHG] Device 44:89:1C:C5:67:94 RSSI: -81
[CHG] Device 44:89:1C:C5:67:94 RSSI: -76
[CHG] Device 44:89:1C:C5:67:94 RSSI: -76
[CHG] Device 44:89:1C:C5:67:94 RSSI: -81
[CHG] Device 44:89:1C:C5:67:94 RSSI: -75
[CHG] Device 44:89:1C:C5:67:94 RSSI: -82
[CHG] Device 44:89:1C:C5:67:94 RSSI: -82
[bluetooth]# scan off
[CHG] Device 44:89:1C:C5:67:94 TxPower is nil
[CHG] Device 44:89:1C:C5:67:94 RSSI is nil
Discovery stopped
[CHG] Controller 00:1A:7D:DA:71:13 Discovering: no |
Jakub Pawlowski |
10 years ago |
1 file, +227, -0 |
| b669604f |
src/profile: Set service to connecting in ext_connect
For the profile connection initiated by remote device,
ext_connect() function is triggered without advance the state
of device's service to BTD_SERVICE_STATE_CONNECTING.
This is causing a problems when the later 'NewConnection'
dbus method call is made to registered application. If
the remote device gets disconnected during the period of
time waiting for the reply of 'NewConnection' method, the
btd_service_disconnect() call will fail at the service state
check and never handle the profile disconnection due to that
state was incorrectly left as BTD_SERVICE_STATE_DISCONNECTED.
Fix the problem by use service_accept() call in ext_connect()
to assure the service state has changed. Also modify the logic
of service state check in btd_service_connecting_complete()
to prevent the problem when the 'NewConnect' reply changes
service state to BTD_SERVICE_STATE_CONNECTED while the device
has already disconnected before it arrives. |
Hsin-Yu Chao |
10 years ago |
2 files, +11, -6 |
| 75b0bf3d |
test/example-advertisement: Use IncludeTxPower
This patch changes the example-advertisement script to use
IncludeTxPower rather than IncludeTXPower. |
Arman Uguray |
10 years ago |
1 file, +1, -1 |
| 3106df8a |
core/advertising: Rename IncludeTXPower
This patch renames IncludeTXPower to IncludeTxpower to keep consistency
across D-Bus interfaces. |
Arman Uguray |
10 years ago |
1 file, +2, -2 |
| fbe15798 |
doc/advertising-api.txt: Rename IncludeTXPower
This patch renames IncludeTXPower to IncludeTxPower to keep consistency
across D-Bus interfaces. |
Arman Uguray |
10 years ago |
1 file, +3, -3 |
| e1bc7c9c |
client: Make command info print TxPower and RSSI
This makes command info to also print TxPower and RSSI if available. |
Jakub Pawlowski |
10 years ago |
1 file, +2, -0 |
| c22de288 |
core: Add implementation of TxPower
This adds 'TxPower' property to Device interface. |
Jakub Pawlowski |
10 years ago |
3 files, +53, -2 |
| 7ba34ac7 |
doc/device-api: Add TxPower
This adds TxPower from advertisement data. |
Jakub Pawlowski |
10 years ago |
1 file, +5, -0 |
| 9cec25ab |
monitor: Add support for decoding bnep DestOnly pkt
BNEP: Compressed Ethernet DestOnly (0x04|0)
dst 00:00:00:00:00:00 [proto 0x0000]
00 00 00 00 00 00 61 62 63 64 65 66 30 31 32 33
34 35 36 37 38 39 5f 62 6e 65 70 5f 74 65 73 74 |
Gowtham Anandha Babu |
10 years ago |
1 file, +22, -1 |
| b196e76f |
monitor: Add support for decoding bnep SrcOnly pkt
BNEP: Compressed Ethernet SrcOnly (0x03|0)
src 00:00:00:00:00:00 [proto 0x0300]
3c 3b 3a 39 38 37 36 35 34 33 32 31 30 2f 2e 2d
2c 2b 2a 29 28 27 26 25 24 23 22 21 20 1f 1e 1d |
Gowtham Anandha Babu |
10 years ago |
1 file, +22, -1 |
| f83bca62 |
monitor: Add support for decoding bnep Compressed pkt
BNEP: Compressed Ethernet (0x02|0)
[proto 0x0300]
3c 3b 3a 39 38 37 36 35 34 33 32 31 30 2f 2e 2d
2c 2b 2a 29 28 27 26 25 24 23 22 21 20 1f 1e 1d |
Gowtham Anandha Babu |
10 years ago |
1 file, +15, -1 |
| 6939f973 |
monitor: Add support for decoding bnep Control pkt
BNEP: Control (0x01|0)
Filter MultAddr Set (0x05)
00 30 ff ff ff ff ff ff ff ff ff ff ff ff 33 33
00 00 00 01 33 33 00 00 00 01 01 00 5e 00 00 01 |
Gowtham Anandha Babu |
10 years ago |
1 file, +48, -1 |
| 97591b03 |
monitor: Add support for decoding bnep General pkt
BNEP: General Ethernet (0x00|0)
dst 00:00:00:00:00:00 src 00:00:00:00:00:00 [proto 0x0300]
3c 3b 3a 39 38 37 36 35 34 33 32 31 30 2f 2e 2d
2c 2b 2a 29 28 27 26 25 24 23 22 21 20 1f 1e 1d |
Gowtham Anandha Babu |
10 years ago |
1 file, +66, -10 |
| b311b1fc |
monitor: Add support for AVRCP GeneralReject
Support for AVRCP GeneralReject added to btmon. |
Bharat Panda |
10 years ago |
1 file, +27, -0 |
| 50ed625e |
monitor: Add support for AVRCP Search
Support for AVRCP Search item added to btmon.
Channel: 65 len 17 ctrl 0x0000 [PSM 27 mode 3] {chan 1}
I-frame: Unsegmented TxSeq 0 ReqSeq 0
AVCTP Browsing: Command: type 0x00 label 0 PID 0x110e
AVRCP: Search: len 0x0007
CharsetID: 0x006a (UTF-8)
Length: 0x0003 (3)
String: New |
Bharat Panda |
10 years ago |
1 file, +69, -0 |
| a3a07c74 |
monitor: Add Support for AVRCP GetItemAttributes
Support for decoding AVRCP GetItemAttributes added to btmon.
Channel: 65 len 26 ctrl 0x0102 [PSM 27 mode 3] {chan 1}
I-frame: Unsegmented TxSeq 1 ReqSeq 1
AVCTP Browsing: Command: type 0x00 label 0 PID 0x110e
AVRCP: GetItemAttributes: len 0x0010
Scope: 0x01 (Media Player Virtual Filesystem)
UID: 0x0000000000000001 (1)
UIDCounter: 0x0000 (0)
AttributeCount: 0x01 (1)
AttributeID: 0x00000001 (Title) |
Bharat Panda |
10 years ago |
1 file, +77, -0 |
| 4edb7bfb |
monitor: Add AVRCP ChangePath support
Add support for decoding AVRCP ChangePath in bluetooth monitor.
Channel: 65 len 21 ctrl 0x0000 [PSM 27 mode 3] {chan 1}
I-frame: Unsegmented TxSeq 0 ReqSeq 0
AVCTP Browsing: Command: type 0x00 label 0 PID 0x110e
AVRCP: ChangePath: len 0x000b
UIDCounter: 0x0000 (0)
Direction: 0x01 (Folder Down)
FolderUID: 0x 1 (1) |
Bharat Panda |
10 years ago |
1 file, +71, -0 |
| 23fe4301 |
unit/test-gdbus-client: Fix hanging if D-Bus fails to launch
In case D-Bus fails to launch make the test fails so it does not hang
other tests. |
Luiz Augusto von Dentz |
10 years ago |
1 file, +1, -0 |
| dbcbfa99 |
unit/test-eir: Add ad/uri-beacon test
This adds test for uir-beacon define bellow:
https://github.com/google/uribeacon/blob/master/specification/AdvertisingMode.md |
Luiz Augusto von Dentz |
10 years ago |
1 file, +27, -1 |
| aa79627c |
monitor: Add MediaElementItem for GetFolderItems
Add support for decoding GetFolderItems(MediaElementItem) for avrcp in
bluetooth monitor.
Channel: 65 len 20 ctrl 0x0000 [PSM 27 mode 3] {chan 1}
I-frame: Unsegmented TxSeq 0 ReqSeq 0
AVCTP Browsing: Command: type 0x00 label 0 PID 0x110e
AVRCP: GetFolderItems: len 0x000a
Scope: 0x01 (Media Player Virtual Filesystem)
StartItem: 0x00000000 (0)
EndItem: 0x0000000a (10)
AttributeCount: 0xff (255)
AttributeID: 0x0000326e (Reserved) |
Bharat Panda |
10 years ago |
1 file, +111, -0 |
| f1c6c3a7 |
monitor: Add FolderItem support for GetFolderItems
Add support for decoding GetFolderItems(FolderItem) for avrcp in
bluetooth monitor.
Channel: 65 len 20 ctrl 0x0000 [PSM 27 mode 3] {chan 1}
I-frame: Unsegmented TxSeq 0 ReqSeq 0
AVCTP Browsing: Command: type 0x00 label 0 PID 0x110e
AVRCP: GetFolderItems: len 0x000a
Scope: 0x01 (Media Player Virtual Filesystem)
StartItem: 0x00000000 (0)
EndItem: 0x0000000a (10)
AttributeCount: 0xff (255)
AttributeID: 0x0000326e (Reserved) |
Bharat Panda |
10 years ago |
1 file, +79, -0 |
| aff80675 |
monitor: Add MediaPlayerItem for GetFolderItems
Add support for decoding GetFolderItems(MediaPlayerItem) for avrcp
in bluetooth monitor.
Channel: 65 len 20 ctrl 0x0306 [PSM 27 mode 3] {chan 1}
I-frame: Unsegmented TxSeq 3 ReqSeq 3
AVCTP Browsing: Command: type 0x00 label 0 PID 0x110e
AVRCP: GetFolderItems: len 0x000a
Scope: 0x00 (Media Player List)
StartItem: 0x00000000 (0)
EndItem: 0x00000064 (100)
AttributeCount: 0x00 (0) |
Bharat Panda |
10 years ago |
2 files, +132, -0 |
| ddb01ec6 |
monitor: Add AVRCP GetFolderItems Support
Support for decoding AVRCP GetFolderItems added in btmon.
Channel: 65 len 20 ctrl 0x0000 [PSM 27 mode 3] {chan 1}
I-frame: Unsegmented TxSeq 0 ReqSeq 0
AVCTP Browsing: Command: type 0x00 label 0 PID 0x110e
AVRCP: GetFolderItems: len 0x000a
Scope: 0x01 (Media Player Virtual Filesystem)
StartItem: 0x00000000 (0)
EndItem: 0x0000000a (10)
AttributeCount: 0xff (255)
AttributeID: 0x0000326e (Reserved) |
Bharat Panda |
10 years ago |
1 file, +110, -2 |
| 45e762c4 |
doc/test-coverage: Update test-gatt count |
Gowtham Anandha Babu |
10 years ago |
1 file, +2, -2 |
| 2737bf7e |
unit/gatt: Add TP/GAW/CL/BI-19-C test
Verify Generic Attribute Profile client behavior when the Characteristic
Value Reliable Write procedure fails due to insufficient encryption
key size. |
Gowtham Anandha Babu |
10 years ago |
1 file, +16, -0 |
| 19bc2d93 |
unit/gatt: Add TP/GAW/CL/BI-18-C test
Verify Generic Attribute Profile client behavior when the Characteristic
Value Reliable Write procedure fails due to insufficient authentication. |
Gowtham Anandha Babu |
10 years ago |
1 file, +16, -0 |
| 6de60cb9 |
unit/gatt: Add TP/GAW/CL/BI-17-C test
Verify Generic Attribute Profile client behavior when the Characteristic
Value Reliable Write procedure fails due to insufficient authorization. |
Gowtham Anandha Babu |
10 years ago |
1 file, +16, -0 |
| 10340ab3 |
unit/gatt: Add TP/GAW/CL/BI-15-C test
Verify Generic Attribute Profile client behavior when the Characteristic
Value Reliable Write procedure fails due to write not permitted. |
Gowtham Anandha Babu |
10 years ago |
1 file, +16, -0 |
| cf846305 |
unit/gatt: Add TP/GAW/CL/BI-14-C test
Verify Generic Attribute Profile client behavior when the Characteristic
Value Reliable Write procedure fails due to invalid handle. |
Gowtham Anandha Babu |
10 years ago |
1 file, +16, -0 |
| 82eff76b |
unit/gatt: Add TP/GAW/CL/BV-06-C test
Verify that a Generic Attribute Profile client can reliably write
a characteristic selected by handle. |
Gowtham Anandha Babu |
10 years ago |
1 file, +39, -0 |
| dce0b7df |
core/adapter: Create device even if not-connectable
If the device is in fact discoverable it should be no problem to create
a D-Bus object for it as the object is required in order to attach the
advertisement data in case a broadcaster/beacons come in range. |
Luiz Augusto von Dentz |
10 years ago |
1 file, +6, -4 |
| e3f36f58 |
core/eir: Fix service data parsing
The UUID type was not being set correctly. |
Luiz Augusto von Dentz |
10 years ago |
1 file, +4, -0 |
| 09000e29 |
client: Make command info print ServiceData
This makes command info to also print ServiceData if available. |
Luiz Augusto von Dentz |
10 years ago |
1 file, +1, -0 |
| b7caed7b |
core: Add implementation of ServiceData
This adds 'ServiceData' property to Device interface. |
Luiz Augusto von Dentz |
10 years ago |
3 files, +69, -0 |
| 3004552c |
shared/ad: Add bt_ad_has_service_data
This adds bt_ad_has_service_data function that can be used to
verify if data exists or in case of NULL if any data has been added. |
Luiz Augusto von Dentz |
10 years ago |
2 files, +34, -0 |
| 2196a1a8 |
shared/ad: Add bt_ad_foreach_service_data
This adds bt_ad_foreach_service_data function that can be used
list entries added as service data. |
Luiz Augusto von Dentz |
10 years ago |
2 files, +25, -13 |
| a926593b |
client: Make command info print ManufacturerData
This makes command info to also print ManufacturerData if available. |
Luiz Augusto von Dentz |
10 years ago |
1 file, +1, -0 |
| 9797b12a |
client: Fix no handling dict properly
D-Bus dict may contain keys that are not of string type. |
Luiz Augusto von Dentz |
10 years ago |
1 file, +8, -2 |
| 4a7e909f |
core: Add implementation of ManufacturerData
This adds 'ManufacturerData' property to Device interface. |
Luiz Augusto von Dentz |
10 years ago |
3 files, +76, -1 |
| 54a3f7b2 |
core/dbus-common: Add dict helpers for basic keys
The specification allows any basic type to be key:
'A DICT_ENTRY works exactly like a struct, but rather than parentheses
it uses curly braces, and it has more restrictions. The restrictions
are: it occurs only as an array element type; it has exactly two
single complete types inside the curly braces; the first single
complete type (the "key") must be a basic type rather than a
container type...' |
Luiz Augusto von Dentz |
10 years ago |
2 files, +26, -6 |
| 5e418c30 |
shared/ad: Add bt_ad_has_manufacturer_data
This adds bt_ad_has_manufacturer_data function that can be used to
verify if data exists or in case of NULL if any data has been added. |
Luiz Augusto von Dentz |
10 years ago |
2 files, +34, -0 |
| 57226616 |
shared/ad: Add bt_ad_foreach_manufacturer_data
This adds bt_ad_foreach_manufacturer_data function that can be used
list entries added to manufacturer data. |
Luiz Augusto von Dentz |
10 years ago |
2 files, +27, -13 |
| 93ff31d8 |
doc/device-api: Add ServiceData and ManufacturerData
This adds ServiceData and ManufacturerData from advertisement data. |
Luiz Augusto von Dentz |
10 years ago |
1 file, +11, -0 |
| 7dd0f020 |
android/tester: Fix compilation with GCC 5
Value in bt_property_t as defined in Android HAL is not const pointer.
This fix following build error with GCC 5:
CC android/android_android_tester-tester-bluetooth.o
android/tester-bluetooth.c:38:9: error: initialization discards ‘const’
qualifier from pointer target type
[-Werror=discarded-array-qualifiers]
.val = &emu_bdname_val,
^ |
Szymon Janc |
10 years ago |
1 file, +4, -4 |
| 99292329 |
core/advertising: improve errors for add advertising
Use the error string and check the size of the response when we get
response from the add advertising command. |
Michael Janssen |
10 years ago |
1 file, +7, -1 |
| 5bea3780 |
test: add IncludeTXPower to example-advertisement |
Michael Janssen |
10 years ago |
1 file, +4, -0 |
| 13e2a65e |
core/advertising: Support more than one advertisement.
Use the Read Advertising Features response to determine the maximum
number of advertisements, and limit the number of advertisements based
on this. |
Michael Janssen |
10 years ago |
1 file, +9, -5 |
| 3182329b |
core/advertising: Parse IncludeTXPower
Parse the IncludeTXPower property of the advertisement object, and
pass the appropriate flag to MGMT if it is set.
Uses MGMT Read Advertising Features Command to determine the maximum
length allowed. |
Michael Janssen |
10 years ago |
1 file, +86, -5 |
| ca3753c3 |
doc: Add IncludeTXPower to LE Advertising API |
Michael Janssen |
10 years ago |
1 file, +5, -0 |