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. Implementing bluetooth - general questions - part 3 - trace bluetooth inquiry in Qt
Forum Updated to NodeBB v4.3 + New Features

Implementing bluetooth - general questions - part 3 - trace bluetooth inquiry in Qt

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 263 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.
  • A Offline
    A Offline
    Anonymous_Banned275
    wrote on last edited by
    #1

    I am implementing Qt example "btscanner" .
    I am having an issue with consistently detecting working / powered up nearby bluetooth devices. The key word is consistently.

    Scanning for nearby bluetooth device is standard function implemented in "blueZ' stack - sometime named "inquiry". Qt implements such scan via
    QBluetoothDeviceDiscoveryAgent class and it is physically started by
    "using" QBluetoothDeviceDiscoveryAgent WHAT (?) declared as

    public Q_SLOTS:
    void start();

    That is as far as tracing the Qt source code goes.

    SInce "Q_SLOTS " is #define Q_SLOTS I really do not know if
    void start() is a slot or function .

    Irrgadless of what it is - any suggestion HOW to trace "start" would be appreciated .

    IMHO it is a function , so how do I find the "start" actual code , as used in
    QBluetoothDeviceDiscoveryAgent class SOURCE CODE ?

    Or can I run my app in debug mode to see how "start" interact with "blueZ"?

    I am really looking for direct access to "blueZ" IF that is the underlining library used by Qt.
    I need to see pass the Qt "wrappers".

    Pablo J. RoginaP 1 Reply Last reply
    0
    • A Anonymous_Banned275

      I am implementing Qt example "btscanner" .
      I am having an issue with consistently detecting working / powered up nearby bluetooth devices. The key word is consistently.

      Scanning for nearby bluetooth device is standard function implemented in "blueZ' stack - sometime named "inquiry". Qt implements such scan via
      QBluetoothDeviceDiscoveryAgent class and it is physically started by
      "using" QBluetoothDeviceDiscoveryAgent WHAT (?) declared as

      public Q_SLOTS:
      void start();

      That is as far as tracing the Qt source code goes.

      SInce "Q_SLOTS " is #define Q_SLOTS I really do not know if
      void start() is a slot or function .

      Irrgadless of what it is - any suggestion HOW to trace "start" would be appreciated .

      IMHO it is a function , so how do I find the "start" actual code , as used in
      QBluetoothDeviceDiscoveryAgent class SOURCE CODE ?

      Or can I run my app in debug mode to see how "start" interact with "blueZ"?

      I am really looking for direct access to "blueZ" IF that is the underlining library used by Qt.
      I need to see pass the Qt "wrappers".

      Pablo J. RoginaP Offline
      Pablo J. RoginaP Offline
      Pablo J. Rogina
      wrote on last edited by
      #2

      @AnneRanch said in Implementing bluetooth - general questions - part 3 - trace bluetooth inquiry in Qt:

      any suggestion HOW to trace "start" would be appreciated .

      You may want to enable categorized logging and these are all the possible logging categories pertaining Bluetooth:

      qt.bluetooth
      qt.bluetooth.android
      qt.bluetooth.bluez
      qt.bluetooth.winrt
      qt.bluetooth.winrt.service.thread
      

      Upvote the answer(s) that helped you solve the issue
      Use "Topic Tools" button to mark your post as Solved
      Add screenshots via postimage.org
      Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

      A 1 Reply Last reply
      0
      • Pablo J. RoginaP Pablo J. Rogina

        @AnneRanch said in Implementing bluetooth - general questions - part 3 - trace bluetooth inquiry in Qt:

        any suggestion HOW to trace "start" would be appreciated .

        You may want to enable categorized logging and these are all the possible logging categories pertaining Bluetooth:

        qt.bluetooth
        qt.bluetooth.android
        qt.bluetooth.bluez
        qt.bluetooth.winrt
        qt.bluetooth.winrt.service.thread
        
        A Offline
        A Offline
        Anonymous_Banned275
        wrote on last edited by
        #3

        @Pablo-J-Rogina Thanks, I think this will do nicely and not only on bluetooth.
        Appreciate your post.

        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