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. Unable to get QBluetoothLocalDevice on Linux Embedded system using Uart Bluetooth device.
QtWS25 Last Chance

Unable to get QBluetoothLocalDevice on Linux Embedded system using Uart Bluetooth device.

Scheduled Pinned Locked Moved Mobile and Embedded
bluez4bluetoothqbluetoothlocalembedded linuxqt 5.3.2
2 Posts 2 Posters 1.7k 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.
  • P Offline
    P Offline
    Peter B
    wrote on last edited by
    #1

    Hi,

    I have a Linux embedded device using Linux kernel 3.17 and a WiLink 8 wireless module as Bluetooth device (uses UART) (see Gumstix AirStorm-y). Also, I have Qt 5.3.2 and Bluez 4.101 installed on it.

    My problem is when I execute my Qt app, I can't get information on my bluetooth device using QBluetoothLocalDevice. For example, QBluetoothLocalDevice::allDevices() always returns an empty list and QBluetoothLocalDevice::address() always returns "00:00:00:00:00:00". If I try to execute the chat example, I get the 'Cannot bind chat server to "00:00:00:00:00:00"' error.

    I'm sure my bluetooth device is up and running:
    hci0: Type: BR/EDR Bus: UART
    BD Address: 5C:31:3E:CE:C3:CE ACL MTU: 1021:6 SCO MTU: 180:4
    UP RUNNING PSCAN
    RX bytes:657 acl:0 sco:0 events:37 errors:0
    TX bytes:979 acl:0 sco:0 commands:37 errors:0
    I can also do scan using hcitools.
    Dbus is also running correctly, when I do "dbus-send --system --dest=org.bluez --print-reply / org.bluez.Manager.DefaultAdapter" I get:
    method return sender=:1.5 -> dest=:1.12 reply_serial=2
    object path "/org/bluez/1743/hci0"

    In my app, everything else seems to work just fine (I a have a QTCPserver and file manager with QFileSystemWatcher), it's only the BLuetooth part I can't manage to make it worked.

    I hope that someone has an idea why it doesn't work, or better yet, a solution to my problem,
    any help would be much appreciated,
    Thank you in advance

    PB

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

      Hi and welcome to devnet,

      If possible, you should upgrade to 5.5, IIRC, there's been a lot of work done in the bluetooth module for it.

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

      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