Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Unable to make BLE connect with iOS device



  • QT C++ v 5.14.0 | BLE Communication

    Linux (Central) HCI Version: 5.0 (0x9) | Apple IPhone(Peripheral) Latest


    I have two Problem:

    Problem 1: When I try to connect a Linux Machine (Client) with an Apple IPhone (Peripheral), through BLE using QT C++ api " ptr_LowEnergy_Controller->connectToDevice(); "

            (here: ptr_LowEnergy_Controller is a pointer of type QLowEnergyController).
    
    
    
            A Pop-up having prompt "Pair this Device" comes on Apple IPhone, to pair it with Linux Machine,
    
    
    
            So is this a correct behaviour in case of BLE Communication also ??
    

    Problem 2: After pairing my Linux Machine with Apple Iphone (like above steps), I try to write some data on exposed Characteristics,

           (we use fixed registered, UUIDs for Service and Characteristics) 
    
    
    
           Also, at the IPhone side, [writeWithoutResponse], [readable, writeable] properties are set for Characteristic.
    
    
    
           I get below Error, do they make any sense to anyone ??
    
    
    
          qt.bluetooth.bluez: Cannot initiate writing of "{00000001-0000-1000-8000-00805f9b34fb}" of service "{0d4aba2e-1aee-4c8b-bc7c-af8559186193}" "org.bluez.Error.NotPermitted" "Write not permitted"
    
    
    
          qt.bluetooth.bluez: Cannot initiate writing of "{00000002-0000-1000-8000-00805f9b34fb}" of service "{0d4aba2e-1aee-4c8b-bc7c-af8559186193}" "org.bluez.Error.NotPermitted" "Write not permitted" 
    

    IMP NOTE: My BLE code is running succesfully with an Android Mobile Device, above api is working fine in case of an Android Device.

    Please help me, or just tell me is it possible to connect a Linux Machine with IPHONE Device through BLE ??

    Thanks !!


Log in to reply