Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to determine Bluetooth end of transmission

How to determine Bluetooth end of transmission

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
bluetooth rfcomandroid
1 Posts 1 Posters 287 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.
  • O Offline
    O Offline
    ouscn
    wrote on last edited by ouscn
    #1

    I am trying to make a host socket for Bluetooth/rfcomm that will receive serialized .json packets. Problem is I do not know the size of these packets. Documentation mentions read and read line functionality. Additionally we can determine how many bytes are waiting to be read. However I don't understand how to parse data that are unknown size and have no specific end character.

    Do I have to wait for some time that data is not received to read the complete .json packet? Does rfcomm or Bluetooth even provide any functionality to determine end of the transmission? What happens when these .json packets arrive back to back?

    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