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. Bluetooth low energy, data lost when switch btw applications
Forum Update on Monday, May 27th 2025

Bluetooth low energy, data lost when switch btw applications

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 2 Posters 297 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.
  • Pham HoangP Offline
    Pham HoangP Offline
    Pham Hoang
    wrote on last edited by
    #1

    Hi,
    i created a application to connect and get data stream from our device using BLE 4.1 using newest QT version.
    OS : MacOS 10.15
    it was working fine, no data lost. but when i opened/switched to Chrome (hide the app, it is still get data stream normaly). after that i showed my app , the data lost happened in some first seconds (from when i opened Chrome). i happened every time i do the test.

    i tested on older mac versions, 10.13.... it works fine.
    i would like to ask, is it a issue from QT or MAC OS updated something in 10.15?

    J.HilkJ 1 Reply Last reply
    0
    • Pham HoangP Offline
      Pham HoangP Offline
      Pham Hoang
      wrote on last edited by Pham Hoang
      #2

      and 1 more. seem, it happened with Chrome, Safary. i didn't see the issue while using Firefox and some other apps

      1 Reply Last reply
      0
      • Pham HoangP Pham Hoang

        Hi,
        i created a application to connect and get data stream from our device using BLE 4.1 using newest QT version.
        OS : MacOS 10.15
        it was working fine, no data lost. but when i opened/switched to Chrome (hide the app, it is still get data stream normaly). after that i showed my app , the data lost happened in some first seconds (from when i opened Chrome). i happened every time i do the test.

        i tested on older mac versions, 10.13.... it works fine.
        i would like to ask, is it a issue from QT or MAC OS updated something in 10.15?

        J.HilkJ Offline
        J.HilkJ Offline
        J.Hilk
        Moderators
        wrote on last edited by J.Hilk
        #3

        @Pham-Hoang

        how do you get the data? is it a ping-pong exchange or a continuous stream from the BTLE device?

        If the later than that's not unusual. If the OS is busy, you will miss data


        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
        0
        • Pham HoangP Offline
          Pham HoangP Offline
          Pham Hoang
          wrote on last edited by
          #4

          @J-Hilk it is data streaming.
          if it due to OS busy, it should be has a buffer and resend later, right?
          any what different with 10.15 and older versions?

          J.HilkJ 1 Reply Last reply
          0
          • Pham HoangP Pham Hoang

            @J-Hilk it is data streaming.
            if it due to OS busy, it should be has a buffer and resend later, right?
            any what different with 10.15 and older versions?

            J.HilkJ Offline
            J.HilkJ Offline
            J.Hilk
            Moderators
            wrote on last edited by J.Hilk
            #5

            @Pham-Hoang said in Bluetooth low energy, data lost when switch btw applications:

            if it due to OS busy, it should be has a buffer and resend later, right?

            Nope, once the EM-Wave passes by the receiver, it's gone. If it's not detected and recorded.

            any what different with 10.15 and older versions

            I Would assume so, lot's of stuff gets patched, but you would've to go through the patch notes and as those are for general Mac consumers, so the information in there is sparse


            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
            0

            • Login

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