| 745918df |
client: Rename set-filter-transport to transport
All commands under scan submenu are related to set-filter so remove its
portion from it and make the command return the current value if no
parameters:
[bluetooth]# transport le
SetDiscoveryFilter success
[bluetooth]# transport
Transport: le |
Luiz Augusto von Dentz |
8 years ago |
1 file, +11, -8 |
| 5ed59502 |
client: Rename set-filter-pathloss to pathloss
All commands under scan submenu are related to set-filter so remove its
portion from it and make the command return the current value if no
parameters:
[bluetooth]# pathloss 0
SetDiscoveryFilter success
[bluetooth]# pathloss
Pathloss: 0 |
Luiz Augusto von Dentz |
8 years ago |
1 file, +11, -8 |
| 4a6a0556 |
client: Rename set-filter-rssi to rssi
All commands under scan submenu are related to set-filter so remove its
portion from it and make the command return the current value if no
parameters:
[bluetooth]# rssi 0
SetDiscoveryFilter success
[bluetooth]# rssi
RSSI: 0 |
Luiz Augusto von Dentz |
8 years ago |
1 file, +10, -8 |
| e1021f7e |
client: Rename set-filter-uuids to uuids
All commands under scan submenu are related to set-filter so remove its
portion from it and make the command return the current value if no
parameters:
[bluetooth]# uuids 0x1820
SetDiscoveryFilter success
[bluetooth]# uuids
UUID: Internet Protocol Support (0x1820)
Note that to filter all UUIDs user must now use "all" instead of empty
list. |
Luiz Augusto von Dentz |
8 years ago |
1 file, +41, -26 |
| 419cd859 |
shared/shell: Fix parsing of optional parameters
Optional parameters uses "[]" delimiters. |
Luiz Augusto von Dentz |
8 years ago |
1 file, +2, -2 |
| b548233f |
monitor: Detect string format
User may enter UUID in string format other then 128 bits. |
Luiz Augusto von Dentz |
8 years ago |
1 file, +18, -1 |
| b1cf1ca0 |
tools/btpclient: Add implemented GAP commands to supported commands
Those bits should be set so that remote BTP side knows which commands
are implemented by IUT. |
Szymon Janc |
8 years ago |
1 file, +4, -0 |
| 31c97a2a |
tools/btpclient: Add support for reseting adapter
For now this means only removing all bonded devices. |
Szymon Janc |
8 years ago |
1 file, +74, -0 |
| b285313d |
tools/btpclient: Store devices per adapter
This make it easier to handle devices from specified adapter. |
Szymon Janc |
8 years ago |
1 file, +45, -9 |
| 06433443 |
tools/btpclient: Add support for configuring adapter settings
This allows to configure Powered, Discoverable and Pairable options. |
Szymon Janc |
8 years ago |
1 file, +139, -0 |
| 59c5cbb6 |
tools/btpclient: Add support for tracking mutable adapter settings |
Szymon Janc |
8 years ago |
1 file, +81, -2 |
| 1dade008 |
tools/btpclient: Get initial values for adapter setttings |
Szymon Janc |
8 years ago |
1 file, +46, -0 |
| 10e3523e |
tools/btpclient: Add initial support for read controller info command |
Szymon Janc |
8 years ago |
1 file, +61, -0 |
| 05ef0292 |
tools/btpclient: Add initial support for GAP service
This allows to get list of supported commands and present adapters. |
Szymon Janc |
8 years ago |
1 file, +116, -0 |
| 68ca50a9 |
shared/btp: Add definitions for GAP service |
Szymon Janc |
8 years ago |
1 file, +225, -0 |
| f68235b2 |
tools/btpclient: Add initial code
This adds initial code for BTP client tool that allows for automated
(binary protocol ) control of BlueZ stack. Currently this tool depends
only on Embedded Linux Library and requires master branch of ELL.
When 0.3 is released dependencies will be bumped.
Initial code allows to connect D-Bus client, discover objects and keep
proxies for it. It also implements basics for BTP core service. |
Szymon Janc |
8 years ago |
4 files, +358, -0 |
| b8cd86c3 |
shared/btp: Add initial code for library
This allows to connect to BTP socket, process message one-by-one (next
message is processed only after reply to previous was sent), reply and
send notifications.
Currently it is very simple and push most of error checking to user.
Could be extended in future if needed. |
Szymon Janc |
8 years ago |
2 files, +478, -0 |
| 34553c1f |
client: Fix printing of array properties
ServiceData Key: 00001234-0000-1000-8000-00805f9b34fb
ServiceData Value:
"3D RSSI: -76
TxPower: -7 |
Szymon Janc |
8 years ago |
1 file, +5, -5 |
| 9d7d70ee |
mesh: Add description for submenus
This adds proper descriptions for each submenu. |
Luiz Augusto von Dentz |
8 years ago |
2 files, +2, -0 |
| 8c60a316 |
client: Add description for submenus
This adds proper descriptions for each submenu. |
Luiz Augusto von Dentz |
8 years ago |
1 file, +3, -0 |
| fb661f7a |
shared/shell: Add submenu description
This adds a field for submenu description. |
Luiz Augusto von Dentz |
8 years ago |
2 files, +3, -1 |
| 813b8e67 |
mesh: Segmentation fails in gatt.c:pipe_write()
If the first command output in a new connection exceeds 20 bytes,
mesh_gatt_write sets the SAR to FIRST as the write_mtu is initially 0
and the default is GATT_MTU-3 (20).
When pipe_write gets called, a new larger write_mtu has been set, but
the SAR is still set to FIRST. It's assumed that data->gatt_len >
max_len. However, it's not which causes lots of bogus output. |
Steve Brown |
8 years ago |
1 file, +18, -123 |
| 5deaad18 |
shell: Add exists callback
This adds a callback to check if the menu exists at runtime. |
Luiz Augusto von Dentz |
8 years ago |
2 files, +39, -23 |
| c7a7849c |
shared/shell: Fix auto-completion of invalid commands
bt_shell always complements the invalid commands, which are the menu/back
command. |
ERAMOTO Masaya |
8 years ago |
1 file, +1, -1 |
| 957d48af |
shared/shell: Create command_isskipped() |
ERAMOTO Masaya |
8 years ago |
1 file, +17, -10 |
| 4740e022 |
toosl/bluetooth-player: Remove extra commands
Removes the output of redundant commands in bluetooth-player since the
previous patch ("shared/shell: Fix hidden default menu if no submenu")
made bluetooth-player output the default menu. |
ERAMOTO Masaya |
8 years ago |
1 file, +0, -9 |
| 5b3a4b9f |
shared/shell: Fix hidden default menu if no submenu
Also fixes the output of the default menu in the help command of obexctl. |
ERAMOTO Masaya |
8 years ago |
1 file, +3, -2 |
| e199cd9b |
mesh: Fix crash while reading input parameters
read_input_parameters skips the command argument thus arg[0] shall be
considerer the fist argument. |
Luiz Augusto von Dentz |
8 years ago |
2 files, +8, -2 |
| d1f95446 |
mesh: Remove cmd_scan
cmd_scan is only used internally by discover-unprovisioned. |
Luiz Augusto von Dentz |
8 years ago |
1 file, +16, -29 |
| f11a25d4 |
mesh: Rework set_scan_filter_uuids parameters
set_scan_filter_uuids is not a command handler which means it doesn't
need to take argc and argv instead just pass the filter array. |
Luiz Augusto von Dentz |
8 years ago |
1 file, +6, -6 |
| 7c16c404 |
shell: Add bt_shell_opt
Make use of struct option and getopt_long to parse the options given. |
Luiz Augusto von Dentz |
8 years ago |
6 files, +111, -50 |
| ab41d6df |
client: Fix arguments of set-filter-clear
Commands with no arguments shall use NULL not empty string. |
Luiz Augusto von Dentz |
8 years ago |
1 file, +1, -1 |
| 5f06ec49 |
tools/bluetooth-player: Fix arg format for search command
Mandatory command should always be quoted with <>. |
Luiz Augusto von Dentz |
8 years ago |
1 file, +1, -1 |
| a469cdb8 |
tools/bluetooth-player: Use bt_shell helpers
This makes bluetooth-player use bt_shell to manage the menus and
command handling. |
Luiz Augusto von Dentz |
8 years ago |
2 files, +102, -401 |
| c235db80 |
tools/obexctl: Use bt_shell helpers
This makes obexctl use bt_shell to manage the menus and command
handling. |
Luiz Augusto von Dentz |
8 years ago |
2 files, +152, -531 |
| fc53175b |
mesh: Make meshctl use bt_shell helpers
This makes meshctl use bt_shell to manage the menus and command
handling. |
Luiz Augusto von Dentz |
8 years ago |
14 files, +360, -852 |
| 8edcc31f |
shared/shell: Don't remove command from arguments
Maintain the original argc and argv so the callback has a chance to
parse the command if it has to. |
Luiz Augusto von Dentz |
8 years ago |
4 files, +78, -78 |
| a6ef232a |
shared/shell: Omit menu command if there are no submenus
There is no need to show menu as a command if there are no submenus
to select. |
Luiz Augusto von Dentz |
8 years ago |
1 file, +5, -2 |
| 5e7ad41d |
shared/shell: Fix no version output with option
bluetoothctl does output the following error message with the option
-v/--version.
$ bluetoothctl --version
Unknown option --version |
ERAMOTO Masaya |
8 years ago |
4 files, +9, -21 |
| cb1c2622 |
mesh: meshctl add Node Identity option to connect command
This adds the option to connect via either Node Identity or Network ID
advertisements. Adding the node unicast address selects Node Identity.
See Mesh Profile Specification 7.2.2.2 for further details. |
Steve Brown |
8 years ago |
1 file, +14, -5 |
| 109b9fa5 |
gatt: Add all services as records
This uses services changes to trigger the addition/removal of the SDP
records. |
Luiz Augusto von Dentz |
8 years ago |
1 file, +45, -18 |
| c3a336d8 |
gatt: Use monitor code to decode service name
This makes the daemon reuse the code for decoding service names that
the monitor uses. |
Luiz Augusto von Dentz |
8 years ago |
2 files, +12, -7 |
| eb469ed2 |
gatt: Make database_add_record detect the UUID
gatt_db_attribute does carry the UUID so this make database_add_record
add it directly instead of taking as parameter. |
Luiz Augusto von Dentz |
8 years ago |
1 file, +19, -5 |
| c5da0666 |
tools/obexctl: Fix display of size/time during transfer
When obexctl is run after starting to transfer a file, the transferred
size and the remaining time will be extreme values first as below:
[NEW] Transfer /org/bluez/obex/server/session8/transfer6
[CHG] Transfer /org/bluez/obex/server/session8/transfer6 Transferred: 1670741 (@1670KB/s 03:52)
[CHG] Transfer /org/bluez/obex/server/session8/transfer6 Transferred: 1703502 (@32KB/s 197:14)
[CHG] Transfer /org/bluez/obex/server/session8/transfer6 Transferred: 1736263 (@32KB/s 197:13) |
ERAMOTO Masaya |
8 years ago |
1 file, +1, -1 |
| 5b4be5a0 |
mesh: Fix parsing composition data for custom models
Custom model ids consist of model id and vendor id. Instead, vendor id
was used twice to build model id. |
Michal Hobot |
8 years ago |
2 files, +2, -2 |
| 7bb73f09 |
plugins/sixaxis: Don't ignore previously setup devices
1. Setup PS3 controller through cable pairing
2. Remove device from BlueZ's database
3. Plug original PS3 controller back
As we don't change the master bdaddr on the device itself, the joypad
will likely be trying to connect to BlueZ, and fail to connect after a
small period of time. But the device will appear connected just long
enough for the cable pairing to say "hey, I already have this setup".
Ideally, we would test for whether the device is temporary, or already
trusted, but testing for whether we've setup its internal services *and*
it's connected, rather than *or*, is sufficient. |
Bastien Nocera |
8 years ago |
1 file, +7, -8 |
| 1f17efba |
mesh: Correct typo in config op defines |
Steve Brown |
8 years ago |
1 file, +1, -1 |
| d84bd775 |
obexd: Fix crash when canceling without agent
When obexd is started with the option auto-accept or the agent is killed
after starting to transfer a file, obexd crashes due to cancellation of
the transfer from a client as below:
Process terminating with default action of signal 11 (SIGSEGV)
Access not within mapped region at address 0x0
at 0x158A40: transfer_cancel (manager.c:272)
by 0x18A5D2: process_message.isra.4 (object.c:259)
by 0x18AE44: generic_message (object.c:1079)
by 0x5290FD2: ??? (in /lib/x86_64-linux-gnu/libdbus-1.so.3.14.13)
by 0x5282623: dbus_connection_dispatch (in /lib/x86_64-linux-gnu/libdbus-1.so.3.14.13)
by 0x184DBF: message_dispatch (mainloop.c:72)
by 0x5505E24: g_main_context_dispatch (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5400.1)
by 0x55061EF: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5400.1)
by 0x5506501: g_main_loop_run (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5400.1)
by 0x137902: main (main.c:322) |
ERAMOTO Masaya |
8 years ago |
1 file, +3, -0 |
| 5d71be8d |
gdbus: Force service to start if proxy is created while not connected
Because GetAll is no longer send right away the service may never be
started. |
Luiz Augusto von Dentz |
8 years ago |
1 file, +28, -1 |
| 84733715 |
shared/shell: Print usage when no argument generator is set
This prints the command and arguments if the command don't provide
a generator so one don't have to always resort to help for checking it. |
Luiz Augusto von Dentz |
8 years ago |
1 file, +6, -2 |