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. Bluetooth experts... deviceConnected & deviceDisconnected work, pairFinished does not
Forum Updated to NodeBB v4.3 + New Features

Bluetooth experts... deviceConnected & deviceDisconnected work, pairFinished does not

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 221 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.
  • WalterWhiteW Offline
    WalterWhiteW Offline
    WalterWhite
    wrote on last edited by WalterWhite
    #1

    Below is the log out from my pair session with a phone.
    For some reason, I see device connect and disconnect, but
    not pair messages. :(

    Am I missing something?

    In my code, I do setup the signal / slots connecst:
    connect(m_pBluetoothDevice, &QBluetoothLocalDevice::pairingFinished, this, &CBluetoothServer::pairingDone, Qt::QueuedConnection);
    connect(m_pBluetoothDevice, &QBluetoothLocalDevice::deviceConnected, this, &CBluetoothServer::deviceConnected, Qt::QueuedConnection);
    connect(m_pBluetoothDevice, &QBluetoothLocalDevice::deviceDisconnected, this, &CBluetoothServer::deviceDisconnected, Qt::QueuedConnection);
    connect(m_pBluetoothDevice, &QBluetoothLocalDevice::error, this, &CBluetoothServer::pairingError);

    Console out. (my messages start with BT or BTS)
    BT Request Pair to : "SAMSUNG-SM-G930V"
    BT Address : "94:76:B7:60:27:F2"
    qt.bluetooth.bluez: Initiating direct pair to "94:76:B7:60:27:F2"
    qt.bluetooth.bluez: Sending pairing request to "94:76:B7:60:27:F2"
    qt.bluetooth.bluez: BluetoothManagement: Ignored event: 1a
    qt.bluetooth.bluez: BluetoothManagement: Ignored event: 13
    qt.bluetooth.bluez: BluetoothManagement: Ignored event: b
    BTS DeviceConnected: "94:76:B7:60:27:F2"
    (Phone form shows to accept pair)
    qt.bluetooth.bluez: BluetoothManagement: Ignored event: 9
    qt.bluetooth.bluez: BluetoothManagement: Ignored event: c
    ( I clicked accept on the phone )
    BTS DeviceDisconnected: "94:76:B7:60:27:F2"
    qt.bluetooth.bluez: BluetoothManagement: Ignored event: 13

    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