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. Creating BLE & Bluetooth Classic in a single app with live plot?

Creating BLE & Bluetooth Classic in a single app with live plot?

Scheduled Pinned Locked Moved Solved General and Desktop
bluetoothbluetooth low e
4 Posts 2 Posters 759 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.
  • T Offline
    T Offline
    TUStudi
    wrote on last edited by
    #1

    Hello guys,
    I want to start a project and I try to evaluate software, which can help me, so I came across Qt.

    Is it possible to develop a desktop application with Qt which is able to transmits data and plots this data in real time using either Bluetooth or Bluetooth Low Energy (the user can choose)? So for example in the GUI the user can choose between Bluetooth or Bluetooth low energy (one single application, not 2), than after selecting, the App starts to discover devices, then connecting to a device and starts to transfer (and save) the data and plot it in real time?
    I know that there are examples in which you can search and search for Bluetooth low energy devices and build a connection. But my project goes a few steps further.

    Thank you,
    Hassan

    Pl45m4P 1 Reply Last reply
    0
    • T TUStudi

      Hello guys,
      I want to start a project and I try to evaluate software, which can help me, so I came across Qt.

      Is it possible to develop a desktop application with Qt which is able to transmits data and plots this data in real time using either Bluetooth or Bluetooth Low Energy (the user can choose)? So for example in the GUI the user can choose between Bluetooth or Bluetooth low energy (one single application, not 2), than after selecting, the App starts to discover devices, then connecting to a device and starts to transfer (and save) the data and plot it in real time?
      I know that there are examples in which you can search and search for Bluetooth low energy devices and build a connection. But my project goes a few steps further.

      Thank you,
      Hassan

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

      Hi and welcome @TUStudi

      Yes should be possible. Do you have any experience in Qt or is it your first project?

      @TUStudi said in Creating BLE & Bluetooth Classic in a single app with live plot?:

      So for example in the GUI the user can choose between Bluetooth or Bluetooth low energy (one single application, not 2), than after selecting, the App starts to discover devices, then connecting to a device and starts to transfer

      This is included in Qts several QBluetooth...-classes.
      You can choose between 'normal' and low energy profiles. (radiobuttons or something like that to switch BT modes in GUI)

      "All you need to do" is integrating your bluetooth connection stuff to your GUI logic (menus, buttons whatever you want to do) and pass the data you recieve via bluetooth to a QChart (or you even use QCustomPlot, see here, or QWT. Depends on the type of data you recieve and how you want to visualize it)

      Qt & BT examples / Tutorials
      Qt BT LE
      QChart

      @TUStudi said in Creating BLE & Bluetooth Classic in a single app with live plot?:

      But my project goes a few steps further.

      In which way? If you build an app from scratch, you can do whatever you want


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

      ~E. W. Dijkstra

      T 1 Reply Last reply
      0
      • Pl45m4P Pl45m4

        Hi and welcome @TUStudi

        Yes should be possible. Do you have any experience in Qt or is it your first project?

        @TUStudi said in Creating BLE & Bluetooth Classic in a single app with live plot?:

        So for example in the GUI the user can choose between Bluetooth or Bluetooth low energy (one single application, not 2), than after selecting, the App starts to discover devices, then connecting to a device and starts to transfer

        This is included in Qts several QBluetooth...-classes.
        You can choose between 'normal' and low energy profiles. (radiobuttons or something like that to switch BT modes in GUI)

        "All you need to do" is integrating your bluetooth connection stuff to your GUI logic (menus, buttons whatever you want to do) and pass the data you recieve via bluetooth to a QChart (or you even use QCustomPlot, see here, or QWT. Depends on the type of data you recieve and how you want to visualize it)

        Qt & BT examples / Tutorials
        Qt BT LE
        QChart

        @TUStudi said in Creating BLE & Bluetooth Classic in a single app with live plot?:

        But my project goes a few steps further.

        In which way? If you build an app from scratch, you can do whatever you want

        T Offline
        T Offline
        TUStudi
        wrote on last edited by
        #3

        @Pl45m4 Thank you very much for your respond.
        Yes, I want to build my App from Scratch, but I’ll use a few examples as inspiration because I don’t have any experience with Qt.
        As you said, I will use a radio Button for the UI to switch between BLE and Bluetooth Classic, so I am very happy that this is possible with Qt.

        Do you know if it is possible to export data to a file (i.e. excel)? Because I want to give the user the possibility to chosse a local directory to export the data to his local maschine.

        Pl45m4P 1 Reply Last reply
        0
        • T TUStudi

          @Pl45m4 Thank you very much for your respond.
          Yes, I want to build my App from Scratch, but I’ll use a few examples as inspiration because I don’t have any experience with Qt.
          As you said, I will use a radio Button for the UI to switch between BLE and Bluetooth Classic, so I am very happy that this is possible with Qt.

          Do you know if it is possible to export data to a file (i.e. excel)? Because I want to give the user the possibility to chosse a local directory to export the data to his local maschine.

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

          @TUStudi

          AFAIK writing an MS Excel file is not possible with Qt directly. You need some additional stuff.
          But writing to a file in general (raw textfile, JSON, XML... etc) is quite easy.


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

          ~E. W. Dijkstra

          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