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. How to create bluetooth server in QT c++
Forum Updated to NodeBB v4.3 + New Features

How to create bluetooth server in QT c++

Scheduled Pinned Locked Moved Unsolved General and Desktop
9 Posts 2 Posters 1.4k Views 1 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.
  • H Offline
    H Offline
    Harshana Srimal
    wrote on last edited by
    #1

    I wanted to create Bluetooth connection between my laptop and the mobile phone.

    the laptop has QT application and mobile has React-Native application. (laptop needs to act like a smart TV)

    I need to host a Bluetooth server on the laptop and pair it using my mobile. How can I handle this? anybody who can help me, please?

    J.HilkJ 1 Reply Last reply
    0
    • H Harshana Srimal

      I wanted to create Bluetooth connection between my laptop and the mobile phone.

      the laptop has QT application and mobile has React-Native application. (laptop needs to act like a smart TV)

      I need to host a Bluetooth server on the laptop and pair it using my mobile. How can I handle this? anybody who can help me, please?

      J.HilkJ Online
      J.HilkJ Online
      J.Hilk
      Moderators
      wrote on last edited by
      #2

      Hi @Harshana-Srimal and welcome

      take a look at the examples:
      https://doc.qt.io/qt-5/qtbluetooth-pingpong-example.html


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      1 Reply Last reply
      1
      • H Offline
        H Offline
        Harshana Srimal
        wrote on last edited by
        #3

        Thank you so much for the reference. I tried it and failed to host the discoverable BT server. any simple guidelines, please?

        J.HilkJ 1 Reply Last reply
        0
        • H Harshana Srimal

          Thank you so much for the reference. I tried it and failed to host the discoverable BT server. any simple guidelines, please?

          J.HilkJ Online
          J.HilkJ Online
          J.Hilk
          Moderators
          wrote on last edited by
          #4

          @Harshana-Srimal said in How to create bluetooth server in QT c++:

          any simple guidelines, please?

          No. That's as basic as the documentation offers (for a bluetooth server).
          To the best of my knowledge


          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          H 1 Reply Last reply
          0
          • J.HilkJ J.Hilk

            @Harshana-Srimal said in How to create bluetooth server in QT c++:

            any simple guidelines, please?

            No. That's as basic as the documentation offers (for a bluetooth server).
            To the best of my knowledge

            H Offline
            H Offline
            Harshana Srimal
            wrote on last edited by
            #5

            @J.Hilk I downloaded the complete project and executed. but it doesn't host a server

            J.HilkJ 1 Reply Last reply
            0
            • H Harshana Srimal

              @J.Hilk I downloaded the complete project and executed. but it doesn't host a server

              J.HilkJ Online
              J.HilkJ Online
              J.Hilk
              Moderators
              wrote on last edited by
              #6

              @Harshana-Srimal
              I'm going a hunch here, because you don't give us much information.

              You're on windows and using mingw ?
              That doesn't work, that Bluetooth backend is a dummy one

              qt.bluetooth: Dummy backend running. Qt Bluetooth module is non-functional.

              you will have to use MSVC


              Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


              Q: What's that?
              A: It's blue light.
              Q: What does it do?
              A: It turns blue.

              H 1 Reply Last reply
              0
              • J.HilkJ J.Hilk

                @Harshana-Srimal
                I'm going a hunch here, because you don't give us much information.

                You're on windows and using mingw ?
                That doesn't work, that Bluetooth backend is a dummy one

                qt.bluetooth: Dummy backend running. Qt Bluetooth module is non-functional.

                you will have to use MSVC

                H Offline
                H Offline
                Harshana Srimal
                wrote on last edited by
                #7

                @J.Hilk Oh excuse me. I forgot to mention that. I wanted to run the application in Raspberry (Yokto) but now I'm implementing the code in Kali Linux (Debian)

                J.HilkJ 1 Reply Last reply
                0
                • H Harshana Srimal

                  @J.Hilk Oh excuse me. I forgot to mention that. I wanted to run the application in Raspberry (Yokto) but now I'm implementing the code in Kali Linux (Debian)

                  J.HilkJ Online
                  J.HilkJ Online
                  J.Hilk
                  Moderators
                  wrote on last edited by J.Hilk
                  #8

                  @Harshana-Srimal

                  ok, I don't have much experience with raspberry pi, so someone else will have to jump in.

                  But you're still not giving us much to go on here.

                  Some more questions, that will be of important either way.

                  • How did you install Qt on your pi? Compiled it yourself, cross compile, download precompiled...
                  • What Qt version exactly
                  • What pi model exactly
                  • Is your bluetooth on the pi correctly set up?
                    • Can you communicate with any Bluetooth device outside of Qt already ?

                  Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                  Q: What's that?
                  A: It's blue light.
                  Q: What does it do?
                  A: It turns blue.

                  H 1 Reply Last reply
                  1
                  • J.HilkJ J.Hilk

                    @Harshana-Srimal

                    ok, I don't have much experience with raspberry pi, so someone else will have to jump in.

                    But you're still not giving us much to go on here.

                    Some more questions, that will be of important either way.

                    • How did you install Qt on your pi? Compiled it yourself, cross compile, download precompiled...
                    • What Qt version exactly
                    • What pi model exactly
                    • Is your bluetooth on the pi correctly set up?
                      • Can you communicate with any Bluetooth device outside of Qt already ?
                    H Offline
                    H Offline
                    Harshana Srimal
                    wrote on last edited by
                    #9

                    @J.Hilk Excuse for the delay. here is the details

                    1. I work on my Kali Linux System and planned to cross compile on raspberry
                    2. Its QT creator 5.12.1
                    3. Raspberry Pi3 B+
                    4. yes
                    5. yes I can

                    And also yesterday I tried to run some Qt Examples in my Kali box and Ubuntu box also. But I failed.

                    Thanks

                    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