src.bluetooth_sig.gatt.characteristics.device_time_feature¶
Device Time Feature characteristic (0x2B8E).
- Per DTS v1.0 Table 3.2, the characteristic contains:
E2E_CRC (uint16, conditional) + DT_Features (uint16, mandatory).
The DT_Features field is 2 octets (uint16). Bits 0-12 are defined in Table 3.3. Bits 13-15 are Reserved for Future Use.
References
Bluetooth SIG Device Time Service v1.0, Table 3.2, Table 3.3
Classes¶
Name | Description |
|---|---|
Device Time Feature characteristic (0x2B8E). |
|
DT_Features bitfield — DTS v1.0 Table 3.3. |
Module Contents¶
- class src.bluetooth_sig.gatt.characteristics.device_time_feature.DeviceTimeFeatureCharacteristic(info: src.bluetooth_sig.types.CharacteristicInfo | None = None, validation: src.bluetooth_sig.gatt.characteristics.characteristic_meta.ValidationConfig | None = None)¶
Bases:
src.bluetooth_sig.gatt.characteristics.base.BaseCharacteristic[DeviceTimeFeatureFlags]Device Time Feature characteristic (0x2B8E).
org.bluetooth.characteristic.device_time_feature
Describes the features supported by the Device Time Service. The DT_Features field is 2 octets (uint16). When the E2E-CRC feature is not supported, the characteristic contains only DT_Features (2 octets).
- class src.bluetooth_sig.gatt.characteristics.device_time_feature.DeviceTimeFeatureFlags¶
Bases:
enum.IntFlagDT_Features bitfield — DTS v1.0 Table 3.3.
Each bit indicates whether the corresponding service feature is supported. Bits 13-15 are Reserved for Future Use.
- AUTHORIZATION_REQUIRED = 128¶
- BASE_TIME_SECOND_FRACTIONS = 4¶
- DISPLAYED_FORMATS = 16¶
- DISPLAYED_FORMATS_CHANGEABLE = 32¶
- E2E_CRC = 1¶
- EPOCH_YEAR_1900 = 512¶
- EPOCH_YEAR_2000 = 1024¶
- PROPOSE_NON_LOGGED_TIME_ADJUSTMENT_LIMIT = 2048¶
- RETRIEVE_ACTIVE_TIME_ADJUSTMENTS = 4096¶
- RTC_DRIFT_TRACKING = 256¶
- SEPARATE_USER_TIMELINE = 64¶
- TIME_CHANGE_LOGGING = 2¶
- TIME_OR_DATE_DISPLAYED_TO_USER = 8¶