Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-44622

BLE code works on bluez 4.101, not working on bluez 5.28

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 5.4.0
    • None
    • ubuntu 14.04 64 bit, Qt 5.4, gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2

    Description

      I am using the bluetooth low energy api's for my app.

      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 (i do nothing but print update) and then the above error shows up and my app disconnects from bluetooth device.

      The Fix:
      I was using Bluez 5.28 and always had this problem. Tried my app on different computer with Bluez 5.25 had this problem. Reinstalled Bluez 4.101 on original computer and no error. So something subtle changed after 4.101 ...

      To Recreate:
      Maybe try the heart rate monitor example with bluez 5.28 and sit and watch it for 3 minutes and see if it crashes...

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              ablasche Alex Blasche
              vegtaa co
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes