Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt Bluetooth query when running on Linux with BlueZ

Qt Bluetooth query when running on Linux with BlueZ

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 1.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ankurtyagi
    wrote on last edited by
    #1

    Hi,

    I am using Qt5.4.1 on Linux with BlueZ4.101

    When trying to connect to another slave device, I have following queries:

    1. How does pairing happen ? I don't have agent running but still requestPairing(QBluetoothAddress(address), QBluetoothLocalDevice::AuthorizedPaired) succeeds.
    2. I get following log during pairing:
      qt.bluetooth.bluez: OrgBluezDeviceInterface* getDevice(const QBluetoothAddress&, QBluetoothLocalDevicePrivate*) reply failed QDBusError("org.bluez.Error.DoesNotExist", "Does Not Exist")

    I enabled logging in my app and here are the logs:

    qt.bluetooth.bluez: Bluez 4 detected.
    name: "test-bt" address: "78:A5:04:26:13:86" mode: 2
    qt.bluetooth.bluez: OrgBluezDeviceInterface* getDevice(const QBluetoothAddress&, QBluetoothLocalDevicePrivate*) reply failed QDBusError("org.bluez.Error.DoesNotExist", "Does Not Exist")
    [0627/052831:FATAL:at_exit.cc(53)] Check failed: false. Tried to RegisterCallback without an AtExitManager

    qt.bluetooth.bluez: void QBluetoothLocalDevicePrivate::Release()
    BT slave device: "00:02:72:E3:0F:7F" Paired
    qt.bluetooth: Starting discovery
    qt.bluetooth: UUID filter ("{00001101-0000-1000-8000-00805f9b34fb}")
    qt.bluetooth.bluez: Discovery on: "00:02:72:E3:0F:7F" Mode: 1
    qt.bluetooth.bluez: void QBluetoothServiceDiscoveryAgentPrivate::_q_createdDevice(QDBusPendingCallWatcher*) created "00:02:72:E3:0F:7F"
    qt.bluetooth.bluez: Discovered BLE-only device. Normal service discovery skipped.
    qt.bluetooth.bluez: Discovered service "{00001101-0000-1000-8000-00805f9b34fb}" 1
    (1) Sequence
    (1) uuid 1101
    (4) Sequence
    (4) Sequence
    (4) uuid 0100
    (4) Sequence
    (4) uuid 0007
    (256) string Serial Port Profile
    qt.bluetooth: FOUND SERVICE!
    qt.bluetooth: Could not find port/psm for potential remote service
    qt.bluetooth: Socket discovery finished
    qt.bluetooth: Didn't find any
    qt.bluetooth.bluez: "Method "GetProperties" with signature "" on interface "org.bluez.Device" doesn't exist

    Can someone please explain whats happening here ?

    thanks
    Ankur

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved