src.bluetooth_sig.gatt.characteristics.device_time_parameters¶
Device Time Parameters characteristic (0x2B8F).
Per DTS v1.0 Table 3.4, the DT Parameters characteristic is 2-12 octets depending on which optional features are supported:
Field Condition Type Octets Unit E2E_CRC C.1 uint16 0 or 2 None RTC_Resolution M uint16 2 1/65,536 Second Max_RTC_Drift_Limit C.2 uint16 0 or 2 Seconds Max_Days_Until_Sync_Loss C.2 uint16 0 or 2 Days Non_Logged_Time_Adjustment_Limit C.3 uint16 0 or 2 Seconds Displayed_Formats C.4 uint16 0 or 2 N/A
- (C.1=E2E-CRC feature; C.2=RTC Drift Tracking feature;
C.3=Time Change Logging feature; C.4=Displayed Formats feature)
References
Bluetooth SIG Device Time Service v1.0, Table 3.4
Classes¶
Name | Description |
|---|---|
Device Time Parameters characteristic (0x2B8F). |
|
Parsed data from Device Time Parameters characteristic. |
Module Contents¶
- class src.bluetooth_sig.gatt.characteristics.device_time_parameters.DeviceTimeParametersCharacteristic¶
Bases:
src.bluetooth_sig.gatt.characteristics.base.BaseCharacteristic[DeviceTimeParametersData]Device Time Parameters characteristic (0x2B8F).
org.bluetooth.characteristic.device_time_parameters
Reveals the Server’s capabilities and behavioural thresholds for the Device Time Service. The characteristic is 2-12 octets in length depending on which optional features are supported.
- allow_variable_length = True¶
- min_length = 2¶
- class src.bluetooth_sig.gatt.characteristics.device_time_parameters.DeviceTimeParametersData¶
Bases:
msgspec.StructParsed data from Device Time Parameters characteristic.
- rtc_resolution¶
RTC resolution in 1/65,536-second units (0=unknown).
- max_rtc_drift_limit¶
Max drift before sync loss, in seconds (optional).
- max_days_until_sync_loss¶
Max days without sync before loss (optional).
- non_logged_time_adjustment_limit¶
Non-logged adjustment limit in seconds; below this value Base_Time changes are not logged (optional).
- displayed_formats¶
Device displayed date/time format encoding (optional).