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 abd Android
QtWS25 Last Chance

Bluetooth abd Android

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 353 Views
  • 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.
  • PollyP Offline
    PollyP Offline
    Polly
    wrote on last edited by
    #1

    I need to connect a Bluetooth device hc-05 to a samsung android galaxy a20 cellphone and i would like to know which classes would be more appropriate to use if those of qml or c ++? Since I tried to compile an application for the Samsung Galaxy with the example ones but it didn't seem to locate any devices. when I set hc05 as master the internal bluetooth of the Samsung you have identified it immediately.

    Pl45m4P 1 Reply Last reply
    0
    • PollyP Polly

      I need to connect a Bluetooth device hc-05 to a samsung android galaxy a20 cellphone and i would like to know which classes would be more appropriate to use if those of qml or c ++? Since I tried to compile an application for the Samsung Galaxy with the example ones but it didn't seem to locate any devices. when I set hc05 as master the internal bluetooth of the Samsung you have identified it immediately.

      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote on last edited by
      #2

      @Polly said in Bluetooth abd Android:

      qml or c ++

      Both ways work. Depends on what you want to do.

      • https://doc.qt.io/qt-5/qtbluetooth-index.html

      @Polly said in Bluetooth abd Android:

      Since I tried to compile an application for the Samsung Galaxy with the example ones but it didn't seem to locate any devices

      Does your app work at all (-> BluetoothDeviceDiscovery etc...)?

      Here is a good tutorial which, I think, is exactly showing what you are trying to achieve


      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      PollyP 1 Reply Last reply
      1
      • Pl45m4P Pl45m4

        @Polly said in Bluetooth abd Android:

        qml or c ++

        Both ways work. Depends on what you want to do.

        • https://doc.qt.io/qt-5/qtbluetooth-index.html

        @Polly said in Bluetooth abd Android:

        Since I tried to compile an application for the Samsung Galaxy with the example ones but it didn't seem to locate any devices

        Does your app work at all (-> BluetoothDeviceDiscovery etc...)?

        Here is a good tutorial which, I think, is exactly showing what you are trying to achieve

        PollyP Offline
        PollyP Offline
        Polly
        wrote on last edited by
        #3

        @Pl45m4
        Thank you very much for all

        1 Reply Last reply
        0
        • PollyP Offline
          PollyP Offline
          Polly
          wrote on last edited by
          #4

          I give an update of my tests.

          I tried using what was said in the video and documentation.
          And I first noticed that setting the Hc05 module in master mode is recognized by the device for which I forced the address but the software compiled on android 10 and 7 does not work, that is, it does not recognize it.
          So it's better to set it as a slave.
          At this point, using only qml code, the device is not detected by Android 7 or 10.
          On the other hand those that are written in C ++ are envied only by Android 7 while the 10 finds nothing. I also tried to compile with different versions such as 5.12,5.13,5.14,5.15 same result.

          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