summaryrefslogtreecommitdiff
path: root/Makefile.tools
Commit message (Collapse)AuthorAgeFilesLines
* client: Move common print_* functions to its own fileLuiz Augusto von Dentz2022-12-021-1/+3
| | | | | This move common print_* functions to its own file so they can be properly reused instead of duplicating the code.
* build: Deprecate meshctl toolInga Stotland2022-10-031-2/+5
| | | | | This marks meshctl tool as deprecated since it is not longer maintained.
* tools/ioctl-tester - Add ioctl-testerTedd Ho-Jeong An2022-09-211-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds ioctl-tester which tests the IOCTL commands. HCI Down Device List Device List - Invalid Param 1 Device Info Reset Stat Set Link Mode - ACCEPT Set Link Mode - MASTER Set Pkt Type - DM Set Pkt Type - DH Set Pkt Type - HV Set Pkt Type - 2-DH Set Pkt Type - 2-DH Set Pkt Type - ALL Set ACL MTU - 1 Set ACL MTU - 2 Set SCO MTU - 1 Set SCO MTU - 2 Block BDADDR - Success Block BDADDR - Fail Unblock BDADDR - Success Unblock BDADDR - Fail Connection List - No Conn Connection List Connection Info Connection Info - No Connection Connection Info - Wrong Type Authentication Info - No Connection Authentication Info
* tools: Add mesh-tester to test Kernel mesh supportBrian Gix2022-09-011-1/+11
| | | | Ever growing set of tests for Mesh kernel support
* isotest: Add documentationLuiz Augusto von Dentz2022-07-221-2/+2
| | | | | This adds isotest.rst which documents the modes and options of isotest(1) and is then converted isotest.1 manpage.
* tools: Add isotest toolLuiz Augusto von Dentz2022-07-221-1/+3
| | | | This adds isotest tool which can be used to test ISO sockets.
* tools: Add iso-testerLuiz Augusto von Dentz2022-07-221-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds iso-tester which tests BTPROTO_ISO socket: Basic Framework - Success Basic ISO Socket - Success Basic ISO Get Socket Option - Success Basic ISO Set Socket Option - Success ISO QoS 8_1_1 - Success ISO QoS 8_2_1 - Success ISO QoS 16_1_1 - Success ISO QoS 16_2_1 - Success ISO QoS 16_2_1 CIG 0x01 - Success ISO QoS 16_2_1 CIG 0x01 CIS 0x01 - Success ISO QoS 24_1_1 - Success ISO QoS 24_2_1 - Success ISO QoS 32_1_1 - Success ISO QoS 32_2_1 - Success ISO QoS 44_1_1 - Success ISO QoS 44_2_1 - Success ISO QoS 48_1_1 - Success ISO QoS 48_2_1 - Success ISO QoS 48_3_1 - Success ISO QoS 48_4_1 - Success ISO QoS 48_5_1 - Success ISO QoS 48_6_1 - Success ISO QoS 8_1_2 - Success ISO QoS 8_2_2 - Success ISO QoS 16_1_2 - Success ISO QoS 16_2_2 - Success ISO QoS 24_1_2 - Success ISO QoS 24_2_2 - Success ISO QoS 32_1_2 - Success ISO QoS 32_2_2 - Success ISO QoS 44_1_2 - Success ISO QoS 44_2_2 - Success ISO QoS 48_1_2 - Success ISO QoS 48_2_2 - Success ISO QoS 48_3_2 - Success ISO QoS 48_4_2 - Success ISO QoS 48_5_2 - Success ISO QoS 48_6_2 - Success ISO QoS - Invalid ISO Connect2 CIG 0x01 - Success ISO Send - Success ISO Receive - Success ISO Defer - Success ISO Defer Send - Success ISO Defer Receive - Success ISO Defer Reject - Success ISO Send and Receive - Success ISO Broadcaster - Success ISO Broadcaster BIG 0x01 - Success ISO Broadcaster BIG 0x01 BIS 0x01 - Success ISO Broadcaster Receiver - Success
* monitor/att: Decode attribute typeLuiz Augusto von Dentz2022-05-181-1/+4
| | | | | | | | | This attempt to decode the attribute type if its gatt_db can be loaded: < ACL Data TX: Handle 3585 flags 0x00 dlen 9 ATT: Write Request (0x12) len 4 Handle: 0x000b Type: Client Characteristic Configuration (0x2902) Data: 0200
* monitor: Move ATT decoding function into its own fileLuiz Augusto von Dentz2022-05-181-2/+4
| | | | This moves ATT decoding function from l2cap.c to att.c.
* client: Add support for player submenuLuiz Augusto von Dentz2022-03-301-3/+3
| | | | | This moves adds the functionality of bluetooth-player into bluetoothctl.
* Makefile.tools: remove duplicate link entryMichael Nosthoff2022-02-181-2/+1
|
* build: Replace use of g_memdup with util_memdupLuiz Augusto von Dentz2022-01-061-4/+7
| | | | | | | | | | | 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.
* emulator: Add support for vendor commandsLuiz Augusto von Dentz2022-01-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds support for vendor commands reserving a single opcode (0xfc10) so it can be extended using subcommands, similar to how MSFT works. The first subcommand (0x00) enables the emulator to generate arbitrary events using the commands parameters: > tools/hcitool cmd 3f 10 00 22 24 d0 d0 d0 d0 d0 d0 ff ff < HCI Command: Vendor (0x3f|0x0010) plen 11 00 22 24 d0 d0 d0 d0 d0 d0 ff ff ."$........ Bluetooth: hci0: Malformed HCI Event: 0x22 > HCI Event: Inquiry Result with R.. (0x22) plen 9 Num responses: 36 Page scan repetition mode: Reserved (0xff) Page period mode: Reserved (0xff) Class: 0xffffd0 Major class: Uncategorized, specific device code not specified Minor class: 0x34 Limited Discoverable Mode invalid service class Clock offset: 0x6368 RSSI: 105 dBm (0x69) > HCI Event: Command Complete (0x0e) plen 4 Vendor (0x3f|0x0010) ncmd 1 Status: Success (0x00)
* hciemu: Use vhci_open to instanciate a vhci btdevLuiz Augusto von Dentz2021-10-181-0/+8
| | | | | This makes use of vhci_open to isntanciate the vhci btdev since that has proper support for reading the index assigned to it.
* client: add admin submenu and allow commandYun-Hao Chung2021-08-111-1/+3
| | | | | | | This creates a menu - admin and add a commands to bluetoothctl - allow [clear/uuid1 uuid2 ...] Reviewed-by: Miao-chen Chou <mcchou@chromium.org>
* tools: Convert manpages to rst formatTedd Ho-Jeong An2021-05-041-2/+2
| | | | | This patch converts existing manpages in tools into the reStructuredText format.
* monitor: Convert manpage to rst formatTedd Ho-Jeong An2021-05-041-2/+2
| | | | | This patch adds support to convert reStructuredText formatted btmon manpage to manpage with rst2man tool.
* build: Fix manpage enable flagTedd Ho-Jeong An2021-05-041-13/+20
| | | | | | This patch fixes the manpages installation with --enable-manpages option so the manpages are not installed by default if the option is not set during the configuration.
* tools/mesh-cfgtest: Non-iteractive test for meshInga Stotland2021-04-101-0/+6
| | | | | | | This adds a non-interactive test to excercise different datapaths in bluetooth-meshd. The test cases utilize D-Bus based mesh APIs, e.g., to create a new network, import a node, import NetKey, import a remote node.
* monitor: Add skeleton for Microsoft HCI extensionMarcel Holtmann2021-03-191-0/+1
|
* tools: Remove legacy code for CSR controllersLuiz Augusto von Dentz2020-09-251-12/+5
| | | | | | This code has not been touched for ages and very unlikely that someone will be using this nowadays as most of these controller specific transports are handled by the kernel nowadays.
* build: Add SPDX License IdentifierTedd Ho-Jeong An2020-09-211-1/+1
| | | | | | | | | | | | | | | | | This patch adds SPDX License Identifier and removes the license text. ------------------------------------- License COUNT ------------------------------------- GPL-2.0-or-later : 6 License: GPL-2.0-or-later Makefile.am Makefile.mesh Makefile.obexd Makefile.plugins Makefile.tools configure.ac
* client: Implement basic interface of ADV monitor in bluetoothctlHoward Chung2020-09-161-0/+2
| | | | | | | | | | This patch implements some basic functions for ADV monitor in bluetoothctl [bluetooth]# show ... Advertisement Monitor Features: SupportedMonitorTypes: or_patterns
* tools/btpclientctl: Add btpclient test applicationTedd Ho-Jeong An2020-09-141-1/+5
| | | | | This patch adds a test application for btpclient, which exercises the BTP API.
* tools/mescfg-client: Use local routines for config writeInga Stotland2020-04-031-1/+0
| | | | | This removes dependencies on internal structures of mesh/mesh-config-json.c.
* tools/mesh-cfgclient: Add support for virtual labelsInga Stotland2020-02-261-1/+2
| | | | | | | | | | This adds commands to generate and use virtual addresses for configuring remote node's publication and subscription. New commands: virt-add - generate a new label and calculate virtual address group-list - displays group addresses that are in use and available virtual labels with corresponding virtual addresses
* tools/mesh: add initial support for config storageInga Stotland2019-11-041-2/+5
| | | | | | | This adds support for storing the state of a mesh network. The configuration is written out in JSON format. The initial configuration file is generated automatically upon the successful completion of "create" command form the main menu.
* tools/mesh: move remote node processing to a separate fileInga Stotland2019-11-041-0/+2
| | | | | This confines the functionality related to remote node housekeeping into a separate file remote.c
* tools: Add mesh-cfgclient toolInga Stotland2019-11-041-0/+11
| | | | | | | | | | | This adds a tool that allows to create mesh networks opreating over advertising (PB-ADV) provisioning bearer. The main commands are: create - Create new mesh network with one initial node discover-unprovisioned - Look for devices to provision list-unprovisioned - List unprovisioned devices provision - Initiate provisioning list-nodes - List remote mesh nodes
* tools/mesh: Move meshctl specific files to mesh-gattInga Stotland2019-11-041-13/+17
|
* monitor: Add support for reading over J-Link RTTAndrzej Kaczmarek2019-10-141-1/+2
| | | | | | | | | | | | | | | | | | | | | | This patch adds support for reading data over J-Link RTT. It can be used as replacement for TTY when reading from embedded devices since it's much faster and does block a UART. Data format is the same as for TTY. At the moment monitor over RTT is only supported by Apache Mynewt project. Reading data is done by polling RTT every 1 msec since there is no blocking API to read something from RTT buffer. To enable reading from RTT, J-Link configuration needs to be passed via command line (all parameters except <device> can be skipped to use default value): -J <device>,<serialno=0>,<interface=swd>,<speed=1000> -J nrf52,683649029 In some cases J-Link cannot locate RTT buffer in RAM. In such case RAM area and buffer name should be provided via command line: -R <address=0x0>,<area=0x1000>,<buffer=monitor> -R 0x20000000,0x10000
* build: install zsh completionsRonan Pigott2019-09-061-0/+5
|
* build: Add missing mesh & btpclient dependenciesBrian Gix2019-06-121-0/+1
| | | | | | | btpclient and bluetooth mesh fail to build on their own until certain ELL and generated header files have been built, which can cause a build to fail if derived objects are generated in wrong order.
* install: Fix installations to pkglibexecdirLudwig Nussel2019-06-041-1/+1
| | | | | | In 78bce4800 libexecdir was switched to pkglibexecdir. To use the matching installation script, use pkglibexec_Programs instead of libexec_Programs.
* test: Add unified test for mesh node example appInga Stotland2019-03-111-1/+1
| | | | | | | This adds one script, test-mesh, to replace three test-join, example-onoff-server and example-onoff-client. This is menu driven test that allows provisioning (join) and/or connecting existing (attach) nodes.
* build: Fix missing dependency for btpclientSzymon Janc2019-02-131-1/+1
| | | | | | | | | | | prog_DEPENDENCIES is computed by automake only if not supplied so we must provide all dependencies if provided manually. This resulted in random build failures: libtool: error: cannot find the library 'lib/libbluetooth-internal.la' or unhandled argument 'lib/libbluetooth-internal.la' make[1]: *** [Makefile:5436: tools/btpclient] Error 1
* core: Remove old code related to sd_notifyLuiz Augusto von Dentz2018-12-051-1/+1
| | | | This is no longer needed since mainloop instances can handle it now.
* build: Add support for internal and external ELL configurationMarcel Holtmann2018-12-041-2/+3
|
* build: Move $(UDEV_CFLAGS) to global $(AM_CFLAGS)Marcel Holtmann2018-12-031-4/+0
|
* build: add missing UDEV_CFLAGSJan Engelhardt2018-11-261-0/+4
| | | | | Some targets link UDEV_LIBS, which means they also need UDEV_CFLAGS in their (or the global) CPPFLAGS.
* build: -D/-I arguments go into CPPFLAGSJan Engelhardt2018-11-261-1/+1
| | | | | | | | | -D and -I are preprocessor directives, they are therefore to appear in CPPFLAGS, not CFLAGS. (It is unfortunate that pkg-config does not make the distinction / or it was misnamed, because only -D/-I make sense to be emitted by pkg-config in the first place — anything else (-f/-m) has the potential to mess up someone's compilation. So pkg-config's Cflags is actually used to convery Cppflags.)
* build: change @foo@ to $(foo) in automake makefilesJan Engelhardt2018-11-261-31/+31
| | | | | | When using automake, all AC_SUBSTed variables are made available as make variables, so that they can also be set at make time. Therefore, they need not use the @harcoded@ style.
* log: Use shared log codeLuiz Augusto von Dentz2018-11-201-2/+4
| | | | Use bt_log_* to send messages to the logging channel.
* tools: Move meshctl sources under tools/mesh directoryInga Stotland2018-07-061-14/+14
| | | | This is a temporary location until the unified mesh solution is provided
* tools: Move meshctl tool under tools directoryInga Stotland2018-07-061-24/+24
|
* tools: Add utitlity for analyzing Broadcom HCD firmware filesMarcel Holtmann2018-06-041-1/+1
|
* build: Fix issues with building dist packagesMarcel Holtmann2018-05-291-2/+1
|
* tools: Add initial code for btmon-loggerSzymon Janc2018-04-241-0/+17
| | | | | | This is intended for use for automated logging or unatrended systems. It doesn't contain any packet decoding functionality which results in much smaller binary.
* build: Include Mesh JSON files unconditionally in EXTRA_DISTJohan Hedberg2018-03-081-1/+1
| | | | | We always want the JSON files to be part of the generated tarball, and not just when --enable-mesh has been given.
* mesh: Add sample JSON files to EXTRA_DISTInga Stotland2018-03-061-0/+2
| | | | | This adds mesh/local_node.json and mesh/prov_db.json samples to be included with dist tarball.