QLowEnergyController Bluetooth software connection abort



  • 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.



  • 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....


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.