Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Problem Bluetooth - Arduino - Android

    Mobile and Embedded
    2
    5
    1527
    Loading More Posts
    • 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.
    • Z
      zTony last edited by zTony

      Hi,

      (Sorry for my English, I'm french).

      I have a problem : I want to create an application Android, which uses the Bluetooth, to have a connection with an Arduino, but I don't find a class for that.

      Indeed, those classes : http://doc.qt.io/qt-5/qtbluetooth-overview.html are incapable to send letters from an Arduino.

      I look for for two weeks, and I hope that you can help me !

      Bye

      zTony

      1 Reply Last reply Reply Quote 0
      • M
        mostefa last edited by

        Hello zTony,

        Arduino card use BLueTooth RedBear (it is a LOW Energy Bluetooth),

        For more information you can read this page :

        http://redbearlab.com/getting-started-bleshield/

        In this case you can try to use Bluetooth Low Energy API of Qt:

        http://doc.qt.io/qt-5/qtbluetooth-le-overview.html

        Buf if the developped api is not suitable , to red bear Low Energy Arduino you have to:

        -Reimplement BLE RED BEAR Low Energy on Java(Android), Source is available just above:

        https://github.com/RedBearLab

        -To use Qt Notifier ,which will allow you to call you Java functions on Qt,More examples of QtNOtifier are available just above:

        http://doc.qt.io/qt-5/qtandroidextras-notification-example.html

        I think that you all the elements that you need now,

        I hope that this can help you,

        Good Luck,

        Bon courage ;)

        1 Reply Last reply Reply Quote 1
        • Z
          zTony last edited by

          Hello,

          Thank you for your fast reply !

          I use a module Bluetooth HC-06 which not uses the Bluetooth low Energy (I tested to see devices with examples http://doc.qt.io/qt-5/bluetooth-examples.html but only the classic bluetooth works).

          (I would like to clarify that I use the C++ language with Qt).

          Thank you anyway for your assistance, but I still look for help.

          Bye !

          zTony

          1 Reply Last reply Reply Quote 0
          • Z
            zTony last edited by zTony

            Hi

            With Microsoft Windows, I used QtSerialPort but I can't use that with Android.

            Bye

            1 Reply Last reply Reply Quote 0
            • Z
              zTony last edited by

              no body to help me :(

              1 Reply Last reply Reply Quote 0
              • First post
                Last post