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. How to send OBEX messages (PBAP) with QBluetoothSocket?
Forum Updated to NodeBB v4.3 + New Features

How to send OBEX messages (PBAP) with QBluetoothSocket?

Scheduled Pinned Locked Moved Unsolved General and Desktop
bluetoothsocketqbluetoothpbapobex
3 Posts 2 Posters 1.9k 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.
  • L Offline
    L Offline
    lilimah
    wrote on last edited by
    #1

    Hi,
    i want to send OBEX messages from my laptop to my smartphone. The main goal is to get the contacts of my smartphone per PBAP (phonebook access profile).

    For this i created in QT a QBluetoothSocket which opens a RFCOMM connection to my smartphone and connected it to the PBAP service of my smartphone.

    Now i need to send a GET request and a message with headers and data. I know which header and belonging data i need, but i do not know how to send it to the socket.

    The socket expects a const char *data parameter. What i need to send:

    GET Request with Headers:

    Header ID: Connection Id
    Value: 1
    
    Header ID: Name
    Value: telecom/pb
    
    Header ID: Type
    Value: x-bt/vcard-listing
    

    Can someone please help me how to create this data message and send it through the socket to my smartphone?
    I use wireshark to check the data, but all i get is a malformed OBEX package or the laptop just sends an OBEX fragement, but no OBEX message.

    Thank you.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      That's a question you might want to bring to the interest mailing list. You'll find there Qt's developers/maintainers. This forum is more user oriented.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      L 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi and welcome to devnet,

        That's a question you might want to bring to the interest mailing list. You'll find there Qt's developers/maintainers. This forum is more user oriented.

        L Offline
        L Offline
        lilimah
        wrote on last edited by
        #3

        @SGaist Hey, thank you.
        I will try it there.

        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