Skip to content

Commit

Permalink
Note some new UUIDs present in the Dokit app
Browse files Browse the repository at this point in the history
  • Loading branch information
pcolby committed Oct 18, 2024
1 parent bc3b0db commit c7a1a89
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 deletions.
10 changes: 10 additions & 0 deletions doc/src/internal/notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ Additionally, the Pokit Meter includes the following undocumented service:

* `831d0001-e98e-1fed-e73e-4bb7596f776e` - no idea.

Also, the Pokit app contains references to the following UUIDs; these may or may not be BLE services.

* `581a9e6a-d2f6-4d7b-b0d0-5bc3ed9b842e`
* `5f330a08-8e76-4d5a-97fb-22e1807b1888`
* `6e7a7953-3b41-4be5-8052-c93129fa1f35`
* `b4a19bce-96cf-4915-9ba4-a19f4a042c8e`
* `c999d155-c00a-4e8f-a056-cd9523ce39de`
* `ef1b0821-b107-4cae-b17c-df1e99b1667a`
* `f2259466-ac2a-40a9-bf23-f47666ae2b15`

## Qt Versions

QtPokit requires Qt's support Bluetooth Low Energy, in Central mode.
Expand Down
14 changes: 7 additions & 7 deletions include/qtpokit/deviceinfoservice.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,33 +26,33 @@ class QTPOKIT_EXPORT DeviceInfoService : public AbstractPokitService
public:
/// UUID of the "Device Info" service.
static inline const QBluetoothUuid serviceUuid
{ QBluetoothUuid::ServiceClassUuid::DeviceInformation };
{ QBluetoothUuid::ServiceClassUuid::DeviceInformation }; // 0x180a

/// Characteristics available via the `Device Info` service.
struct QTPOKIT_EXPORT CharacteristicUuids {
/// UUID of the `Device Info` service's `Manufacturer Name String` characterstic.
static inline const QBluetoothUuid manufacturerName
{ QBluetoothUuid::CharacteristicType::ManufacturerNameString };
{ QBluetoothUuid::CharacteristicType::ManufacturerNameString }; // 0x2a29

/// UUID of the `Device Info` service's `Model Number String` characterstic.
static inline const QBluetoothUuid modelNumber
{ QBluetoothUuid::CharacteristicType::ModelNumberString };
{ QBluetoothUuid::CharacteristicType::ModelNumberString }; // 0x2a24

/// UUID of the `Device Info` service's `Firmware Revision String` characterstic.
static inline const QBluetoothUuid firmwareRevision
{ QBluetoothUuid::CharacteristicType::FirmwareRevisionString };
{ QBluetoothUuid::CharacteristicType::FirmwareRevisionString }; // 0x2a26

/// UUID of the `Device Info` service's `Hardware Revision String` characterstic.
static inline const QBluetoothUuid hardwareRevision
{ QBluetoothUuid::CharacteristicType::HardwareRevisionString };
{ QBluetoothUuid::CharacteristicType::HardwareRevisionString }; // 0x2a27

/// UUID of the `Device Info` service's `Software Revision String` characterstic.
static inline const QBluetoothUuid softwareRevision
{ QBluetoothUuid::CharacteristicType::SoftwareRevisionString };
{ QBluetoothUuid::CharacteristicType::SoftwareRevisionString }; // 0x2a28

/// UUID of the `Device Info` service's `Serial Number String` characterstic.
static inline const QBluetoothUuid serialNumber
{ QBluetoothUuid::CharacteristicType::SerialNumberString };
{ QBluetoothUuid::CharacteristicType::SerialNumberString }; // 0x2a25
};

DeviceInfoService(QLowEnergyController * const pokitDevice, QObject * parent = nullptr);
Expand Down
4 changes: 2 additions & 2 deletions src/lib/abstractpokitservice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ bool AbstractPokitServicePrivate::enableCharacteristicNotificatons(const QBlueto
}

QLowEnergyDescriptor descriptor = characteristic.descriptor(
QBluetoothUuid::DescriptorType::ClientCharacteristicConfiguration);
QBluetoothUuid::DescriptorType::ClientCharacteristicConfiguration); // 0x2902
if (!descriptor.isValid()) {
qCWarning(lc).noquote() << tr(R"(Characteristic %1 "%2" has no client configuration descriptor.)")
.arg(uuid.toString(), PokitDevice::charcteristicToString(uuid));
Expand Down Expand Up @@ -372,7 +372,7 @@ bool AbstractPokitServicePrivate::disableCharacteristicNotificatons(const QBluet
}

QLowEnergyDescriptor descriptor = characteristic.descriptor(
QBluetoothUuid::DescriptorType::ClientCharacteristicConfiguration);
QBluetoothUuid::DescriptorType::ClientCharacteristicConfiguration); // 0x2902
if (!descriptor.isValid()) {
qCWarning(lc).noquote() << tr(R"(Characteristic %1 "%2" has no client configuration descriptor.)")
.arg(uuid.toString(), PokitDevice::charcteristicToString(uuid));
Expand Down

0 comments on commit c7a1a89

Please sign in to comment.