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 13 Mar 2019, 05:25 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 1 Reply Last reply 13 Mar 2019, 05:54
    0
    • H Harshana Srimal
      13 Mar 2019, 05:25

      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 Offline
      J Offline
      J.Hilk
      Moderators
      wrote on 13 Mar 2019, 05:54 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 13 Mar 2019, 05:57 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 1 Reply Last reply 13 Mar 2019, 06:07
        0
        • H Harshana Srimal
          13 Mar 2019, 05:57

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

          J Offline
          J Offline
          J.Hilk
          Moderators
          wrote on 13 Mar 2019, 06:07 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 13 Mar 2019, 11:22
          0
          • J J.Hilk
            13 Mar 2019, 06:07

            @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 13 Mar 2019, 11:22 last edited by
            #5

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

            J 1 Reply Last reply 13 Mar 2019, 11:49
            0
            • H Harshana Srimal
              13 Mar 2019, 11:22

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

              J Offline
              J Offline
              J.Hilk
              Moderators
              wrote on 13 Mar 2019, 11:49 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 14 Mar 2019, 04:55
              0
              • J J.Hilk
                13 Mar 2019, 11:49

                @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 14 Mar 2019, 04:55 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 1 Reply Last reply 14 Mar 2019, 05:47
                0
                • H Harshana Srimal
                  14 Mar 2019, 04:55

                  @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 Offline
                  J Offline
                  J.Hilk
                  Moderators
                  wrote on 14 Mar 2019, 05:47 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 19 Mar 2019, 05:18
                  1
                  • J J.Hilk
                    14 Mar 2019, 05:47

                    @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 19 Mar 2019, 05:18 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

                    1/9

                    13 Mar 2019, 05:25

                    • Login

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