tree: 8f4e9984edac5fcbe38aa3b3adfa7f4a9fbd2fce [path history] [tgz]
  1. .clang-tidy
  2. BUILD.gn
  3. README.md
  4. att/
  5. bt_host.bind
  6. build/
  7. common/
  8. driver.cc
  9. fidl/
  10. gap/
  11. gatt/
  12. gatt_remote_service_device.cc
  13. gatt_remote_service_device.h
  14. hci-spec/
  15. hci/
  16. host.cc
  17. host.h
  18. host_device.cc
  19. host_device.h
  20. l2cap/
  21. sco/
  22. sdp/
  23. sm/
  24. socket/
  25. testing/
  26. tests.json
  27. transport/
src/connectivity/bluetooth/core/bt-host/README.md

bt-host

Test

$ fx test //src/connectivity/bluetooth/core/bt-host

Inspect

bt-host uses the standard driver processes to expose its inspect hierarchy to the Fuchsia system.

Usage

To query the current state of the bt-host Inspect hierarchy through fx tooling, run

fx iquery show-file /dev/diagnostics/class/bt-host/000.inspect

Hierarchy

adapter:
    adapter_id
    hci_version
    bredr_max_num_packets
    bredr_max_data_length
    le_max_num_packets
    le_max_data_length
    lmp_features
    le_features
    low_energy_discovery_manager:
       state
       paused
       failed_count
       scan_interval_ms
       scan_window_ms
    metrics:
        bredr:
            open_l2cap_channel_requests
            outgoing_connection_requests
            pair_requests
            request_discoverable_events
            request_discovery_events
            set_connectable_false_events
            set_connectable_true_events
        le:
            outgoing_connection_requests
            pair_requests
            start_advertising_events
            start_discovery_events
            stop_advertising_events
    l2cap:
        logical_links:
          logical_link_0x0:
            handle
            link_type
            flush_timeout_ms
            channels:
              channel_0x0:
                local_id
                remote_id
                psm
        services:
          service_0x0:
            psm
    peer_cache:
        metrics:
            bredr:
                bond_failure_events
                bond_success_events
                connection_events
                disconnection_events
            le:
                bond_failure_events
                bond_success_events
                connection_events
                disconnection_events
        peer_0x0:
            peer_id
            technology
            address
            connectable
            temporary
            features
            hci_version
            manufacturer
            bredr_data:
                connection_state
                bonded
                services
            le_data:
                connection_state
                bonded
                features
    sdp_server:
        record_0x2:
            record
            // TODO(fxbug.dev/51995): Migrate this to UIntArray when support is better.
            registered_psms:
                psm_0x0:
                    psm
                psm_0x1:
                    psm
        record_0x3:
            record
            registered_psms:
                (none)
    low_energy_connection_manager:
        recent_connection_failures
        pending_requests:
            pending_request_0x0:
                peer_id
                callbacks
        outbound_connector:
            peer_id
            is_outbound
            connection_attempt
            state
        connections:
            connection_0x0:
                peer_id
                peer_address
                ref_count
    bredr_connection_manager:
        connection_requests:
            request_0x0:
                peer_id
                has_incoming
                callbacks
        connections:
            connection_0x0:
                peer_id
        last_disconnected:
            0:
                peer_id
                duration_s
                @time