Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QLowEnergyController Bluetooth software connection abort
Qt 6.11 is out! See what's new in the release blog

QLowEnergyController Bluetooth software connection abort

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 1.2k Views 1 Watching
  • 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.
  • V Offline
    V Offline
    vegtaa
    wrote on last edited by
    #1

    This is the error:

    qt.bluetooth.bluez: void QBluetoothSocketPrivate::_q_readNotify() 8 error: -1 "Software caused connection abort"

    What my app does:

    1 scan
    2 connect
    3 get services, and characteristics
    4 look for specific characteristic, and change the CCCD to enable notifications
    5 print characteristic value when i get notification

    My app runs fine for 2 to 3 minutes and then the above error shows up and my app disconnects from bluetooth device.

    Things i have tried:
    1 changed the bluetooth adapter on laptop...same error, same time frame. so not laptop hardware.
    2 If i connect a Nexus 7 to the bluetooth device i dont have any problems. so not external bluetooth device.

    Things i would like to know:
    1 is this a bug or did i mess something up?
    2 best way to reconnect...
    do i disconnect and connect again? that seems kind of messy.

    1 Reply Last reply
    0
    • V Offline
      V Offline
      vegtaa
      wrote on last edited by
      #2

      I was using Ubuntu 14.04 with bluez 5.28 installed and always had this error.

      I reinstalled bluez 4.101 and this problem went away....

      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