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. Implementing serial communication using Bluetooth - please advise
Forum Updated to NodeBB v4.3 + New Features

Implementing serial communication using Bluetooth - please advise

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 592 Views 2 Watching
  • 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.
  • A Offline
    A Offline
    Anonymous_Banned275
    wrote on last edited by
    #1

    After few detours I now have working Bluetooth code.
    My next task is to actually pass simple serial data via serial port.

    I have the serial port code ready to do so.

    What I am missing is how to "link " the hardware - USB serial port to Bluetooth hardware.

    Would this class be a good start ?

    https://doc.qt.io/qt-5/qbluetoothsocket.html#details

    Are there any example code ?

    Since I am not using QT Bluetooth API I would like to stay away from "btchat" example.

    S 1 Reply Last reply
    0
    • A Anonymous_Banned275

      After few detours I now have working Bluetooth code.
      My next task is to actually pass simple serial data via serial port.

      I have the serial port code ready to do so.

      What I am missing is how to "link " the hardware - USB serial port to Bluetooth hardware.

      Would this class be a good start ?

      https://doc.qt.io/qt-5/qbluetoothsocket.html#details

      Are there any example code ?

      Since I am not using QT Bluetooth API I would like to stay away from "btchat" example.

      S Offline
      S Offline
      saeed
      wrote on last edited by
      #2

      @AnneRanch
      https://github.com/NicoLingg/Bluetooth-LE-Example

      raven-worxR 1 Reply Last reply
      0
      • S saeed

        @AnneRanch
        https://github.com/NicoLingg/Bluetooth-LE-Example

        raven-worxR Offline
        raven-worxR Offline
        raven-worx
        Moderators
        wrote on last edited by
        #3

        @saeed
        Bluetooth LE != Bluetooth Serial

        --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
        If you have a question please use the forum so others can benefit from the solution in the future

        A 1 Reply Last reply
        0
        • raven-worxR raven-worx

          @saeed
          Bluetooth LE != Bluetooth Serial

          A Offline
          A Offline
          Anonymous_Banned275
          wrote on last edited by Anonymous_Banned275
          #4

          @raven-worx Thanks for your comment.
          I have been searching for document DESCRIBING ALL parts of "bluetooth connection" as "I/O" .
          So far no luck - only bits and pieces.
          Most "tutorials " are "impressed with " and concentrate on "wireless communication".
          Somehow "serial I/O / USB / bluetooth / wireless " is too complicated to describe as "communication between devices ".
          Maybe I will eventual;y "roll my own ".
          Thanks

          Update
          I went back to "btchat" and slowly slugging my way thru the code.
          As I said before - it is not well documented code, but it is better than nothing.
          Worst part is inconsistency in terminology - local / remote / client /server/ serial / bluetooth / rfcomm - all mixed up...

          Still do not see how serial data communication ( baud rate / parity etc.) is implemented / coded. Perhaps it is under "service".

          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