Verifying QtBluetooth with Bluez5
asked 2017-11-10 12:21:25 +0200
This post is a wiki. Anyone with karma >75 is welcome to improve it.
Hey all,
I have made a request to add the QtBluetooth to the Harbour allowed APIs: https://github.com/sailfishos/sdk-harbour-rpmvalidator/issues/99
@Joona Petrell told that they would accept help from the community in the form of validation of the following:
QBluetoothLocalDevice test information queries, powering on/off, pairing/unpairing
QBluetoothDeviceDiscoveryAgent discover nearby devices, check that correct device info is exposed
QBluetoothServer can be used to communicate with Bluetooth device
QBluetoothServiceDiscoveryAgent returns valid services and service info
QBluetoothTransferManager can be used to transfer data to another device
I would like to help with it, so I have been thinking about the following: - Create an application in Qt which utilizes the QtBluetooth library and write a frontend for both Sailfish and Android. Backend, features should be the same just the frontend shall be adopted to the two platforms. - This application shall be able to perform the following tasks: * Scan nearby devices log them * Read the services/service info from a specific device - The users should be able to upload the service reports to a central server identified by the Bluetooth device's MAC address.
For validation the same device should be discovered with the app from Android and Sailfish by the validation users. Sailfish related malfunctions will be identified by the non matching results.
I feel that this idea is a bit overkill and rise some privacy contents, so feel free to comment on this.
I would also be curious about @Joona Petrell 's opinion on this topic.
Thanks in advance!
Not sure how mature Qt Bluetooth is on Android. Just writing and running code for Sailfish OS which exercises the methods in the listed APIs and lists failures would go far.
Joona Petrell ( 2017-11-10 14:45:17 +0200 )editThanks Joona for the answer! I will move forward with implementing such an app and publish to openrepos.
martonmiklos ( 2017-11-10 15:00:35 +0200 )edit@martonmiklos, I'd be pleased to help with this if I can. I've been developing code to use QBluetoothServiceDiscoveryAgent and your BLE Scanner app has been a big help. My experience has been mixed. For example, it returns valid address and service info, but the device is cached (and returned by a scan) for a long time after it already stopped advertising. This appears to be an underlying implementation issue due to the way qtconnectivity interacts with bluez5. Nevertheless, I'd like to encourage any improved focus on BLE for Sailfish. I'd like to help adapt BLE Scanner to help with this validation; DM me if I can help.
flypig ( 2018-05-10 11:49:48 +0200 )edit