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. Testing developed BLE App for Linux
QtWS25 Last Chance

Testing developed BLE App for Linux

Scheduled Pinned Locked Moved Unsolved General and Desktop
linuxbledeploydeployment
3 Posts 3 Posters 714 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 30 Aug 2020, 11:36 last edited by
    #1

    Hi there,

    I developed a Qt Desktop App which allows to connect to a Bluetooth Low Energy device and transfer Data and visualize the data woth QCustomPlot. For Windows 10, this works fine. Now I want to test my App on a Linux system, but I do not have device with Linux on it. Is there a solution like a virtuell maschine with linux, where I can deploy my App and test it? This virtual maschine need to support Bluetooth Low Energy. Or is the only solution to install Linux on my Laptop?

    Another question: With the app you can choose a directory and a file, then this file is created in the directory and the data is writting there. For opening the Dialog I have the follwing:

    directory = QFileDialog::getExistingDirectory(this, tr("Save transfered data"),
                                                                        "/home",
                                                                        QFileDialog::ShowDirsOnly
                                                                        | QFileDialog::DontResolveSymlinks);
    

    Does this also work with Linux, because I am not familiar with the file system of Linux, I have never worked with Linux before. Thank you!

    A 1 Reply Last reply 30 Aug 2020, 14:49
    0
    • S Offline
      S Offline
      stryga42
      wrote on 30 Aug 2020, 13:07 last edited by
      #2

      Your call to QFileDialog works fine on linux (why shouldn't it?) and yields something like '/home/jenkins' as a result.

      To your more tricky problem: On your Windows system, how is the BLE hardware connected to your system? The HAL is quite different on linux and Windows so the portability of your code depends strongly on how deep your dig.

      1 Reply Last reply
      1
      • T TUStudi
        30 Aug 2020, 11:36

        Hi there,

        I developed a Qt Desktop App which allows to connect to a Bluetooth Low Energy device and transfer Data and visualize the data woth QCustomPlot. For Windows 10, this works fine. Now I want to test my App on a Linux system, but I do not have device with Linux on it. Is there a solution like a virtuell maschine with linux, where I can deploy my App and test it? This virtual maschine need to support Bluetooth Low Energy. Or is the only solution to install Linux on my Laptop?

        Another question: With the app you can choose a directory and a file, then this file is created in the directory and the data is writting there. For opening the Dialog I have the follwing:

        directory = QFileDialog::getExistingDirectory(this, tr("Save transfered data"),
                                                                            "/home",
                                                                            QFileDialog::ShowDirsOnly
                                                                            | QFileDialog::DontResolveSymlinks);
        

        Does this also work with Linux, because I am not familiar with the file system of Linux, I have never worked with Linux before. Thank you!

        A Offline
        A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on 30 Aug 2020, 14:49 last edited by
        #3

        Hi @TUStudi,

        This virtual maschine need to support Bluetooth Low Energy.

        If you have an USB bluetooth dongle/adapter, than you can most likely inject this dongle into the virtual machine and use it there. Note that even bluetooth adapters built into your laptop may be an USB devices and could work that way.

        So I'd say it depends on a test.

        Regards

        Qt has to stay free or it will die.

        1 Reply Last reply
        1

        3/3

        30 Aug 2020, 14:49

        • Login

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