Skip to content

Commit

Permalink
Ranging Service
Browse files Browse the repository at this point in the history
  • Loading branch information
zxzxwu committed Jan 22, 2025
1 parent 815f8c2 commit 6146c43
Show file tree
Hide file tree
Showing 5 changed files with 995 additions and 1 deletion.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
"subband",
"subbands",
"subevent",
"subevents",
"Subrating",
"substates",
"tobytes",
Expand Down
10 changes: 10 additions & 0 deletions bumble/gatt.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@
GATT_ELECTRONIC_SHELF_LABEL_SERVICE = UUID.from_16_bits(0X1857, 'Electronic Shelf Label')
GATT_GAMING_AUDIO_SERVICE = UUID.from_16_bits(0x1858, 'Gaming Audio')
GATT_MESH_PROXY_SOLICITATION_SERVICE = UUID.from_16_bits(0x1859, 'Mesh Audio Solicitation')
GATT_INDUSTRIAL_MEASUREMENT_DEVICE_SERVICE = UUID.from_16_bits(0x185A, 'Industrial Measurement Device Service')
GATT_RANGING_SERVICE = UUID.from_16_bits(0x185B, 'Ranging Service')

# Attribute Types
GATT_PRIMARY_SERVICE_ATTRIBUTE_TYPE = UUID.from_16_bits(0x2800, 'Primary Service')
Expand Down Expand Up @@ -298,6 +300,14 @@
GATT_ASHA_VOLUME_CHARACTERISTIC = UUID('00e4ca9e-ab14-41e4-8823-f9e70c7e91df', 'Volume')
GATT_ASHA_LE_PSM_OUT_CHARACTERISTIC = UUID('2d410339-82b6-42aa-b34e-e2e01df8cc1a', 'LE_PSM_OUT')

# Ranging Service
GATT_RAS_FEATURES_CHARACTERISTIC = UUID.from_16_bits(0x2C14, "RAS Features")
GATT_REAL_TIME_RANGING_DATA_CHARACTERISTIC = UUID.from_16_bits(0x2C15, "Real-time Ranging Data")
GATT_ON_DEMAND_RANGING_DATA_CHARACTERISTIC = UUID.from_16_bits(0x2C16, "On-demand Ranging Data")
GATT_RAS_CONTROL_POINT_CHARACTERISTIC = UUID.from_16_bits(0x2C17, "RAS Control Point")
GATT_RANGING_DATA_READY_CHARACTERISTIC = UUID.from_16_bits(0x2C18, "Ranging Data Ready")
GATT_RANGING_DATA_OVERWRITTEN_CHARACTERISTIC = UUID.from_16_bits(0x2C19, "Ranging Data Overwritten")

# Misc
GATT_DEVICE_NAME_CHARACTERISTIC = UUID.from_16_bits(0x2A00, 'Device Name')
GATT_APPEARANCE_CHARACTERISTIC = UUID.from_16_bits(0x2A01, 'Appearance')
Expand Down
Loading

0 comments on commit 6146c43

Please sign in to comment.