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. Bluetooth Low Energy (windows)
Forum Updated to NodeBB v4.3 + New Features

Bluetooth Low Energy (windows)

Scheduled Pinned Locked Moved Solved General and Desktop
10 Posts 4 Posters 7.1k Views 2 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.
  • G Offline
    G Offline
    Gege34
    wrote on last edited by
    #1

    Hi,

    On windows 10 I try to use Bluetooth Low Energy, so I install Qt 5.11 and clone/build the wip/win branch like descibe here:
    Re: Qt bluetooth wip/win branch for windows

    After I build the lowenergyscanner sample. The application start without error like before, but when I hit the "Search" button, I have the message "No Low Energy devices found..."
    Scanning BLE device with windows works.

    Any advice?
    Thank you

    1 Reply Last reply
    0
    • K Offline
      K Offline
      kuzulis
      Qt Champions 2020
      wrote on last edited by kuzulis
      #2
      1. You should to build and install (nmake && nmake install) the qtconnectivity from a wip/win branch (if you want to use win32 backend).
      2. You should to add your remote BLE device to Windows, using a 'standard' in-box 'Bluetooth' application from Windows.
      3. And next, to use an examples. I recommend to use this example instead of that lowenergyscanner.
      1 Reply Last reply
      3
      • G Offline
        G Offline
        Gege34
        wrote on last edited by
        #3

        Thank you the point 2 solve the problem.
        Is it possible to really scan BLE device with QT rather than only scan already pairred device?

        1 Reply Last reply
        0
        • K Offline
          K Offline
          kuzulis
          Qt Champions 2020
          wrote on last edited by
          #4

          Is it possible to really scan BLE device with QT rather than only scan already pairred device?

          It is not a Qt issue. It is a Windows limitations. The win32 API has not public functions to scan/pair/unpair of the BLE devices.

          1 Reply Last reply
          0
          • G Offline
            G Offline
            Gege34
            wrote on last edited by
            #5

            Ok thank you

            ekkescornerE 1 Reply Last reply
            0
            • G Gege34

              Ok thank you

              ekkescornerE Offline
              ekkescornerE Offline
              ekkescorner
              Qt Champions 2016
              wrote on last edited by
              #6

              @Gege34 starting with Qt 5.13 Alpha Qt supports BT LE Devices without Pairing, but ATM from binaries only for desktop builds - for UWP you must build Qt by yourself.
              I tested with MSVC2017-64 and devices are listed, can connect, read, write. On some devices Notify doesn't work, Disconnect never works.
              you can follow https://bugreports.qt.io/browse/QTBUG-74394

              ekke ... Qt Champion 2016 | 2024 ... mobile business apps
              5.15 --> 6.9 https://t1p.de/ekkeChecklist
              QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

              D 1 Reply Last reply
              3
              • ekkescornerE ekkescorner

                @Gege34 starting with Qt 5.13 Alpha Qt supports BT LE Devices without Pairing, but ATM from binaries only for desktop builds - for UWP you must build Qt by yourself.
                I tested with MSVC2017-64 and devices are listed, can connect, read, write. On some devices Notify doesn't work, Disconnect never works.
                you can follow https://bugreports.qt.io/browse/QTBUG-74394

                D Offline
                D Offline
                DiBosco
                wrote on last edited by DiBosco
                #7

                @ekkescorner May I ask for clarification please?

                What, exactly, does:

                "but ATM from binaries only for desktop builds "

                mean?

                Binaries of what? Qt? If Qt, where do we get these binaries freom please? If not, what do you mean please?

                What is UWP?

                Is the long and short of this that Qt simply isn't ready for writing an app to access a BLE device with v 5.12?

                Many thanks :)

                ekkescornerE 1 Reply Last reply
                0
                • D DiBosco

                  @ekkescorner May I ask for clarification please?

                  What, exactly, does:

                  "but ATM from binaries only for desktop builds "

                  mean?

                  Binaries of what? Qt? If Qt, where do we get these binaries freom please? If not, what do you mean please?

                  What is UWP?

                  Is the long and short of this that Qt simply isn't ready for writing an app to access a BLE device with v 5.12?

                  Many thanks :)

                  ekkescornerE Offline
                  ekkescornerE Offline
                  ekkescorner
                  Qt Champions 2016
                  wrote on last edited by
                  #8

                  @DiBosco desktop app === .exe, Qt download binaries for MSVC2017 per ex
                  UWP https://docs.microsoft.com/de-de/windows/uwp/get-started/universal-application-platform-guide

                  if you want to use Bluetooth LE devices paired to Windows - this is possible with Qt 5.12

                  if you want to use BLE devices without pairing (Beacons, Heartrate, ... or in my cases Addimat waiterlock or NFC-reader and just working on BLE SmartCard Reader) then you must use Qt 5.13 and better wait for 5.13 Beta2 because some bugs fixed.

                  ekke ... Qt Champion 2016 | 2024 ... mobile business apps
                  5.15 --> 6.9 https://t1p.de/ekkeChecklist
                  QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

                  D 1 Reply Last reply
                  4
                  • ekkescornerE ekkescorner

                    @DiBosco desktop app === .exe, Qt download binaries for MSVC2017 per ex
                    UWP https://docs.microsoft.com/de-de/windows/uwp/get-started/universal-application-platform-guide

                    if you want to use Bluetooth LE devices paired to Windows - this is possible with Qt 5.12

                    if you want to use BLE devices without pairing (Beacons, Heartrate, ... or in my cases Addimat waiterlock or NFC-reader and just working on BLE SmartCard Reader) then you must use Qt 5.13 and better wait for 5.13 Beta2 because some bugs fixed.

                    D Offline
                    D Offline
                    DiBosco
                    wrote on last edited by
                    #9

                    @ekkescorner said in Bluetooth Low Energy (windows):

                    if you want to use Bluetooth LE devices paired to Windows - this is possible with Qt 5.12

                    Got it, added a BT device with Windows bluetooth manager which enabled me to pair with my embedded device and I can pick up the available characteristic now. Thanks very much for the swift help, much appreciated.

                    ekkescornerE 1 Reply Last reply
                    1
                    • D DiBosco

                      @ekkescorner said in Bluetooth Low Energy (windows):

                      if you want to use Bluetooth LE devices paired to Windows - this is possible with Qt 5.12

                      Got it, added a BT device with Windows bluetooth manager which enabled me to pair with my embedded device and I can pick up the available characteristic now. Thanks very much for the swift help, much appreciated.

                      ekkescornerE Offline
                      ekkescornerE Offline
                      ekkescorner
                      Qt Champions 2016
                      wrote on last edited by
                      #10

                      @DiBosco BTW: just tested Qt 5.13 Beta 2 - now Connect / Disconnect / Notify works better and I can deliver apps with Windows10 and BLE Devices (see https://bugreports.qt.io/browse/QTBUG-74394)

                      ekke ... Qt Champion 2016 | 2024 ... mobile business apps
                      5.15 --> 6.9 https://t1p.de/ekkeChecklist
                      QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

                      1 Reply Last reply
                      4

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved