| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
| |
This moves adds the functionality of bluetooth-player into
bluetoothctl.
|
|
|
|
|
| |
This adds support for entering the transport directly as an scan
argument rather than having to first set it scan.transport.
|
|
|
|
|
|
|
|
|
|
|
| |
This replaces the uses of g_memdup with util_memdup since the former has
been deprecated:
warning: ‘g_memdup’ is deprecated: Use 'g_memdup2' instead
[-Wdeprecated-declarations]
g_memdup2 requires bumping glib version which would likely have its
own problems thus why util_memdup was introduced.
|
|
|
|
|
| |
g_dbus_emit_property_changed was not working properly in the WriteValue
for the descriptor because the Characteristic interface was being used.
|
|
|
|
|
| |
This patch fixes the uninitiailzed varialble(CWE-457) reported by
the Coverity scan.
|
|
|
|
|
|
| |
atoi doesn't support values entered in hexadecimal (0x...) which is
likely the prefered format for the likes of handles, etc, so this
replaces the uses of atoi with strtol.
|
|
|
|
|
|
|
|
|
| |
The following steps were performed.
- Issuing repeated commands to connect the same BLE device.
- Verifying the print in bluetoothctl console
Reviewed-by: Alain Michaud <alainm@chromium.org>
Reviewed-by: Howard Chung <howardchung@google.com>
|
|
|
|
| |
This prints the MTU of the characteristic when available.
|
|
|
|
|
|
| |
Use "parent" to describe dbus hierarchy.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
|
|
|
|
|
|
|
|
| |
Thid adds support to show command to print ExperimentalFeatures property:
[bluetooth]# show
Controller ...
Experimental: BlueZ Experimental LL p.. (15c0a148-c273-11ea-b3de-0242ac130004)
|
|
|
|
|
|
|
|
|
|
| |
This prints property AffectedByPolicy in device info if
org.bluez.AdminPolicyStatus1 exists.
This also rename find_battery_by_path to find_proxies_by_path to reuse
the function.
Reviewed-by: Miao-chen Chou <mcchou@chromium.org>
|
|
|
|
|
|
|
| |
This creates a menu - admin and add a commands to bluetoothctl
- allow [clear/uuid1 uuid2 ...]
Reviewed-by: Miao-chen Chou <mcchou@chromium.org>
|
|
|
|
|
|
| |
When setting a advertising.name other than on/off it shall also disable
local-name flag from Includes as that would cause an error when parsed
by the daemon.
|
|
|
|
|
| |
When advertising with type broadcast it cannot be discoverable as that
would require setting flags which is not allowed by the spec.
|
|
|
|
| |
This adds support for setting MinInterval/MaxInterval.
|
|
|
|
|
|
|
|
|
|
|
| |
This change adds SupportedFeatures to be shown in "show" option of
bluetoothctl. It was tested with and without kernel support for features
to verify that they are shown or not shown correctly.
Change was tested by verifying SupportedFeatures were populated
correctly in bluetoothctl on hatch and kukui chromebooks
Reviewed-by: Miao-chen Chou <mcchou@chromium.org>
|
|
|
|
|
| |
Using the new opcode MGMT_OP_ADD_ADV_PATTERNS_MONITOR_RSSI to
monitor advertisement according to some RSSI criteria.
|
|
|
|
|
|
|
| |
Bluetoothctl uses "/" as the app root path. So, use the same
app root path while invoking RegisterMonitor method. This will
also ensure that InterfacesAdded/InterfacesRemoved signals are
emitted on the correct app root path.
|
|
|
|
|
|
| |
In order to avoid requiring higher version of GLib, replace
g_steal_pointer() with explicitly setting the pointer value
to NULL.
|
|
|
|
|
|
|
|
| |
This patch adds the new "SupportedCapabilities" property to the
bluetoothctl "show" view.
The change is tested by verifying bluetoothctl shows the desired
properties.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch adds SPDX License Identifier and removes the license text.
-------------------------------------
License COUNT
-------------------------------------
GPL-2.0-or-later : 11
License: GPL-2.0-or-later
client/adv_monitor.c
client/adv_monitor.h
client/advertising.h
client/display.c
client/main.c
client/display.h
client/agent.h
client/gatt.c
client/agent.c
client/advertising.c
client/gatt.h
|
|
|
|
|
| |
This adds logic to expose user-defined advertisement monitor to dbus and
also implements methods for exposed objects.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch creates a submenu in bluetoothctl and implements several
commands.
new commands:
[bluetooth]# menu monitor
[bluetooth]# add-or-pattern 1 2 ab0011
Advertisement Monitor 0 added
[bluetooth]# add-or-pattern-rssi -80, ,5 1 2 aa 3 4 ff
Advertisement Monitor 1 added
[bluetooth]# get-pattern all
Advertisement Monitor 0
path: /org/bluez/adv_monitor_app/0
type: or_patterns
pattern 1:
start position: 1
AD data type: 2
content: ab0011
Advertisement Monitor 1
path: /org/bluez/adv_monitor_app/1
type: or_patterns
rssi:
high threshold: -50
high threshold timer: 5
low threshold: -80
low threshold timer: 5
pattern 1:
start position: 1
AD data type: 2
content: aa
pattern 2:
start position: 3
AD data type: 4
content: ff
[bluetooth]# get-supported-info
Supported Features:
Supported Moniter Types: or_patterns
[bluetooth]# remove-pattern 0
Monitor 0 deleted
|
|
|
|
|
|
|
|
|
|
| |
This patch implements some basic functions for ADV monitor in
bluetoothctl
[bluetooth]# show
...
Advertisement Monitor Features:
SupportedMonitorTypes: or_patterns
|
| |
|
|
|
|
|
| |
This adds cancel-pairing command which can be used to cancel the ongoing
pairing.
|
|
|
|
|
|
|
|
|
|
|
| |
This adds support for reading the Roles property through bluetootctl's
show option.
[bluetooth]# show
...
Roles: central
Roles: peripheral
Roles: central-peripheral
|
|
|
|
|
| |
Display whether the device is configured as wake allowed when queried
with cmd_info.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This adds the Battery Percentage to the info command based on
org.bluez.Battery1 API. Example usage:
[bluetooth]# info XX:XX:XX:XX:XX:XX
Device XX:XX:XX:XX:XX:XX (random)
Name: ...
Alias: ...
...
Modalias: ...
Battery Percentage: 0x64 (100)
|
|
|
|
| |
This patch adds invalid offset handlers to write callbacks of attributes.
|
|
|
|
|
|
|
| |
DBUS_TYPE_BOOLEAN is 'int', which does not have to be the same size as
'bool'.
On architecture where bool is smaller than in, getting prepare-authorize
will corrupt the stack
|
|
|
|
|
| |
The more common case is that advertisements are discoverable not the
other way around.
|
|
|
|
|
|
|
|
|
|
|
| |
This uses the new Pattern filter:
[bluetooth]# scan.pattern Living
[bluetooth]# scan on
SetDiscoveryFilter success
Discovery started
[CHG] Controller XX:XX:XX:XX:XX:XX Discovering: yes
[NEW] Device XX:XX:XX:XX:XX:XX Living Room TV
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This option exists to facilitate external completion of commands that
have specially defined arguments. It effectively adds two new commands
to bluetoothctl with the following output:
$ bluetoothctl agent help
on
off
DisplayOnly
DisplayYesNo
KeyboardDisplay
KeyboardOnly
NoInputNoOutput
$ bluetoothctl advertise help
on
off
peripheral
broadcast
Shell completion scripts can then parse this output to provide
completions for those commands.
|
|
|
|
|
| |
When selecting attributes by UUID the code was not checking attributes
that are not a children of the current selected attribute.
|
|
|
|
| |
This allow passing UUIDs on 16 bits format.
|
|
|
|
| |
DBUS_TYPE_BOOLEAN expect a pointer to dbus_bool_t not bool.
|
|
|
|
|
|
|
| |
This fixes the following error when building with older version of
D-Bus:
client/gatt.c:2973: undefined reference to `dbus_message_iter_get_element_count'
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This outputs the AdvertisingManager properties command 'show':
bluetoothctl> show
...
Advertising Features:
ActiveInstances: 0x00
SupportedInstances: 0x05
SupportedIncludes: tx-power
SupportedIncludes: appearance
SupportedIncludes: local-name
|
|
|
|
|
| |
This adds advertose.secondary command which can be used to set a
secondary channel to advertise.
|
|
|
|
|
| |
trusted should be initialized with false since the property may not be
available.
|
|
|
|
|
| |
This prints the UUID along with attribute path and also print the
hexdump when payload is available.
|
|
|
|
|
| |
Notifications come in a form of 'Value' property changes thus this
copies the values to the local attribute so they are in sync.
|
|
|
|
|
| |
This unregister the cloned services if the proxy is removed since they
would no longer be accessible.
|
|
|
|
|
| |
This uses the proxies created by clone command to forward the
subscriptions to the cloned services.
|
|
|
|
|
| |
This uses the proxies created by clone command to forward the requests
to the cloned services.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This adds clone command to gatt submenu which can be use to clone
services as follow:
Clone all services from the connected device:
> gatt.clone
Clone a given service
> gatt.select-attribute <attribute/uuid>
> gatt.clone
In either case there is a prompt to confirm since this may add a lot of
service the user must confim before proceding.
Then finally:
> gatt.register-application
|
|
|
|
|
|
|
|
|
|
|
| |
This enables setting the write type as optional third parameter:
write <data=xx xx ...> [offset] [type]
The type can be used to force a specific procedure to be used, for
example to force reliable writes one can enter:
> write 00 0 reliable
|
|
|
|
|
|
|
|
|
|
| |
Instead use the position in the list to create a unique path:
[bluetooth]# register-service 0x1820
[NEW] Primary Service (Handle 0x0000)
/org/bluez/app/service0
0x1820
Internet Protocol Support
|