Commit Graph

239 Commits

Author SHA1 Message Date
Johan Hedberg
1cbe46134f monitor: Introduce support for extended TTY header
Add support for packet drops and 32-bit timestamps.
2016-05-04 10:35:22 +03:00
John Keeping
1b9e48f4c2 tools/btattach: install during "make install"
btattach provides access to some line disciplines that are supported by
hciattach, so allow it to be installed and not reserved for developer
use.  For now it is still considered an experimental feature.
2015-12-10 21:25:48 +02:00
Andrzej Kaczmarek
be310fa80d monitor/a2dp: Decode SBC capabilities
> ACL Data RX: Handle 256 flags 0x02 dlen 20                                                                                                                    [hci0] 9.242155
      Channel: 66 len 16 [PSM 25 mode 0] {chan 2}
      AVDTP: Get Capabilities (0x02) Response Accept (0x02) type 0x00 label 1 nosp 0
        Service Category: Media Transport (0x01)
        Service Category: Media Codec (0x07)
          Media Type: Audio (0x00)
          Media Codec: SBC (0x00)
            Frequency: 0x30
              44100
              48000
            Channel Mode: 0x0f
              Mono
              Dual Channel
              Stereo
              Joint Channel
            Block Length: 0xf0
              4
              8
              12
              16
            Subbands: 0x0c
              4
              8
            Allocation Method: 0x03
              SNR
              Loudness
            Minimum Bitpool: 2
            Maximum Bitpool: 53
        Service Category: Content Protection (0x04)
          Content Protection Type: SCMS-T (0x0002)

< ACL Data TX: Handle 256 flags 0x00 dlen 18                                                                                                                    [hci0] 9.272120
      Channel: 258 len 14 [PSM 25 mode 0] {chan 2}
      AVDTP: Set Configuration (0x03) Command (0x00) type 0x00 label 5 nosp 0
        ACP SEID: 1
        INT SEID: 3
        Service Category: Media Transport (0x01)
        Service Category: Media Codec (0x07)
          Media Type: Audio (0x00)
          Media Codec: SBC (0x00)
            Frequency: 44100 (0x20)
            Channel Mode: Joint Channel (0x01)
            Block Length: 16 (0x10)
            Subbands: 8 (0x04)
            Allocation Method: Loudness (0x01)
            Minimum Bitpool: 2
            Maximum Bitpool: 53
2015-12-01 10:42:29 +02:00
Andrzej Kaczmarek
4f25dba180 monitor/avdtp: Add basic decoding of AVDTP signalling
< ACL Data TX: Handle 256 flags 0x00 dlen 6
      Channel: 258 len 2 [PSM 25 mode 0] {chan 2}
      AVDTP: Discover (0x01) Command (0x00) type 0x00 label 0 nosp 0
> ACL Data RX: Handle 256 flags 0x02 dlen 14
      Channel: 66 len 10 [PSM 25 mode 0] {chan 2}
      AVDTP: Discover (0x01) Response Accept (0x02) type 0x00 label 0 nosp 0
        04 08 14 08 0c 08 08 08                          ........
2015-12-01 10:42:25 +02:00
John Keeping
431c44e5ad build: Link mcaptest with -lrt
profiles/health/mcap.c uses clock_gettime(3) so it needs to be linked
with -lrt on some systems.
2015-11-22 16:09:22 +03:00
Marcel Holtmann
cba48786c0 monitor: Add support for decoding Intel LMP / LL traces 2015-10-09 13:41:52 -07:00
Marcel Holtmann
90799f6da9 monitor: Add support for Broadcom diagnostic channel decoding 2015-10-07 22:42:29 +02:00
Luiz Augusto von Dentz
f2d17bea8d test: Add test-gatt-profile
test-gatt-profile can be used to register a GATT based profile using
GattManager1 interface.
2015-09-03 17:00:54 +03:00
Johan Hedberg
e4f0c5582f Makefile.tools: Move btmgmt to common READLINE section 2015-07-29 20:51:22 +03:00
Alexis Ballier
789be3cb2f Fix build with experimental enabled but no readline.
btmgmt requires readline. Protect it under if READLINE.
2015-07-29 20:49:50 +03:00
Marcel Holtmann
b16ae734a2 tools: Add testing utility for Eddystone beacons 2015-07-23 00:17:50 +02:00
Szymon Janc
e66c163290 tools: Add initial HCI User Channel tester
This adds basic tests only.
2015-05-18 22:02:19 +02:00
Marcel Holtmann
aa93fed410 peripheral: Add initial code for btsensor application 2015-04-28 09:19:12 -07:00
Marcel Holtmann
b4b016e904 tools: Add utility for analyzing Nokia firmware files 2015-04-10 23:21:47 +02:00
Gowtham Anandha Babu
639fa90c07 monitor: Add initial support for BNEP
> ACL Data RX: Handle 71 flags 0x02 dlen 11
      Channel: 64 len 7 [PSM 15 mode 0] {chan 0}
      BNEP: Control (0x01|0)
        01 02 11 16 11 15                                ......

> ACL Data RX: Handle 71 flags 0x01 dlen 35
      Channel: 64 len 1532 [PSM 15 mode 0] {chan 0}
      BNEP: General Ethernet (0x00|1)
        00 00 00 00 00 00 00 00 00 00 00 00 08 00 00 0f  ................
        05 00 0c 03 00 00 20 00 00 03 00 00 20 00 00 3c  ...... ..... ..<

> ACL Data RX: Handle 71 flags 0x01 dlen 12
      Channel: 64 len 1509 [PSM 15 mode 0] {chan 0}
      BNEP: Compressed Ethernet Dest Only (0x04|0)
        00 00 00 00 00 00 08 00 3c 3b 3a 39 38 37 36 35  ........<;:98765
        34 33 32 31 30 2f 2e 2d 2c 2b 2a 29 28 27 26 25  43210/.-,+*)('&%
2015-04-10 17:19:57 +03:00
Marcel Holtmann
913e56dc11 tools: Add skeleton for BNEP kernel testing utility 2015-04-04 14:00:17 -07:00
Marcel Holtmann
fa3be045a6 tools: Add simple utility for creating CPIO / initramfs images 2015-04-02 00:03:47 -07:00
Arman Uguray
82f8a71a45 build: Include test/example-gatt-client
Added test/example-gatt-client to Makefile.tools.
2015-04-01 18:01:26 -07:00
Arman Uguray
156df086a3 build: Rename LE test scripts in Makefile.tools
Renamed test/advertisement-example to test/example-advertisement and
also added test/example-gatt-server to Makefile.tools
2015-04-01 17:57:52 -07:00
Marcel Holtmann
55dc79820f build: Add test utility for checking kernel selftest results 2015-04-01 13:07:46 -07:00
Marcel Holtmann
e622e623de build: Add test-runner utility for virtual machine execution 2015-04-01 01:43:13 -07:00
Marcel Holtmann
f5b75ed215 build: Move advertisement-example script into test directory 2015-03-28 19:12:53 -07:00
Grzegorz Kolodziejczyk
07861ffd10 tools/bneptest: Add initial support for bneptest tool
This tool should be designed to help testing bnep on BlueZ.
2015-03-13 15:03:48 +01:00
Johan Hedberg
28fd1d53f7 tools/btmgmt: Add initial readline support 2015-02-11 21:04:18 +02:00
Luiz Augusto von Dentz
aab6835b0a client: Add support for GattService1
This add support for GattService1 interface detection and prints when
they are added or removed
2015-02-10 13:15:57 +02:00
Marcel Holtmann
3e95defad9 tools: Add testing utility for OOB pairing via mgmt API 2015-01-30 23:18:50 -08:00
Marcel Holtmann
35bc544622 build: Actually install hex2hcd utility when tools are build 2015-01-23 21:32:38 -08:00
Marcel Holtmann
2aec81f1fa build: Move mcaptest to experimental tools and not installed tools 2014-12-28 22:30:31 +01:00
Marcel Holtmann
d6c1d96051 emulator: Add skeleton for virtual PHY handling 2014-12-14 01:04:59 +01:00
Arman Uguray
46da8d07a7 tools/btgatt-server: Introduce btgatt-server.
This patch introduces tools/btgatt-server, which is a command-line tool
for testing and debugging shared/gatt-server.
2014-11-17 11:29:27 +02:00
Gowtham Anandha Babu
3d92c0289c monitor/rfcomm: Add RFCOMM support to btmon
Changes made to add initial code to support RFCOMM frame in btmon

btmon logs:

      RFCOMM: Set Async Balance Mode (SABM) (0x2f)
        01 1c                                            ..

      RFCOMM: Unnumbered Ack (UA)(0x63)
        01 d7                                            ..

      RFCOMM: Unnumbered Info with Header Check (UIH)(0xef)
        15 81 11 20 e0 27 00 9a 02 00 07 aa              ... .'......

      RFCOMM: Disconnect (DISC)(0x43)
        01 fd
2014-11-10 11:01:44 +02:00
Ravi kumar Veeramally
ee83025c5e mcaptest: Move it from android to tools 2014-10-02 16:09:52 +03:00
Marcel Holtmann
508e129d75 build: Move hciemu.c and hciemu.h into emulator directory 2014-09-25 14:39:10 +02:00
Marcel Holtmann
9b912ea925 build: Use internal libshared-glib and libshared-mainloop libraries 2014-09-25 13:01:43 +02:00
Marcel Holtmann
1abfd19300 build: Move btgatt-client to list of experimental binaries for now 2014-08-30 18:51:43 +02:00
Arman Uguray
ec1b8421b4 tools/btgatt-client: Introduce tools/btgatt-client
This is the initial commit for tools/btgatt-client.c, a command line tool to
interactively test and debug shared/gatt-client.
2014-08-30 18:42:44 +02:00
Luiz Augusto von Dentz
dfd54b9eaa build: Remove mpris-proxy from experimental
This makes mpris-proxy tool to be compiled without --enable-experimental
2014-08-05 16:31:14 +03:00
Luiz Augusto von Dentz
f8dc3c2293 tools/mpris-player: Rename to mpris-proxy 2014-08-05 16:31:13 +03:00
Vikrampal Yadav
5f43216313 monitor: Add AVCTP support to btmon
Support for decoding AVCTP packets added in Bluetooth monitor.
2014-07-31 15:35:04 +03:00
Marcel Holtmann
a18440c23b tools: Use mainloop handling for btattach utility 2014-07-12 16:42:11 +02:00
Marcel Holtmann
096799fd52 emulator: Add support for providing a pseudo terminal 2014-07-12 15:53:16 +02:00
Lukasz Rymanowski
514e224641 android/gatt: Fix signed write command encoding
As per spec (BT spec 4.1 Vol[3], Part F, chapter 3.4.5.4) we need to
take opcode, handle and parameters to generate signature.
In order to support it signing is moved to att.c, place where pdu is
encoded
2014-05-30 13:26:14 +03:00
Marcel Holtmann
08b96e69c4 build: Add support for building hex2hcd utility 2014-05-10 18:57:45 -07:00
Luiz Augusto von Dentz
7641572bde tools: Remove simple-service
simple-service no longer works since the API it uses no longer exists and
Profile API already has a similar tool.
2014-04-22 10:44:44 +03:00
Loic Poulain
8366eae6d7 tools: add bcm43xx specific init in hciattach
Add a bcm43xx specific init sequence in hciattach
in order to initialize bcm43xx controllers.
2014-04-04 20:10:08 +03:00
Marcel Holtmann
1122fdefdb build: Add ringbuf source files to HCI user channel users 2014-04-04 00:53:48 -07:00
Marcel Holtmann
1e19efd1b9 tools: Remove device name cache feature from hcitool 2014-03-30 16:29:27 -07:00
Lukasz Rymanowski
f1f2ad6046 emulator: Use timeout for sending inquiry results
With this patch btdev uses timeout to schedule inquiry results
It also allows btdev to receive hci commands during inquiry.
Previously btdev was blocked since all the inquiry result were sent in
single loop
2014-03-20 14:11:25 +02:00
Johan Hedberg
8203def286 tools/ibeacon: Convert to using shared/timeout.h 2014-03-20 09:36:29 +02:00
Johan Hedberg
7d6bc43bca tools/btinfo: Convert to using shared/timeout.h 2014-03-20 09:36:14 +02:00