-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwalkolution-odometer.gatt
More file actions
44 lines (35 loc) · 1.86 KB
/
walkolution-odometer.gatt
File metadata and controls
44 lines (35 loc) · 1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// Walkolution Odometer GATT Service Definition
PRIMARY_SERVICE, GAP_SERVICE
CHARACTERISTIC, GAP_DEVICE_NAME, READ, "Walkolution Odo"
// Odometer Service
// Service UUID: 12345678-1234-5678-1234-56789ABCDEF0
PRIMARY_SERVICE, 12345678-1234-5678-1234-56789ABCDEF0
// Odometer Data Characteristic
// Characteristic UUID: 12345678-1234-5678-1234-56789ABCDEF1
// Sends 28-byte packets with session/total rotations, time, and speeds
CHARACTERISTIC, 12345678-1234-5678-1234-56789ABCDEF1, READ | NOTIFY | DYNAMIC,
// Sessions List Characteristic
// Characteristic UUID: 12345678-1234-5678-1234-56789ABCDEF2
// Returns array of unreported session records (20 bytes each)
CHARACTERISTIC, 12345678-1234-5678-1234-56789ABCDEF2, READ | NOTIFY | DYNAMIC,
// Mark Session Reported Characteristic
// Characteristic UUID: 12345678-1234-5678-1234-56789ABCDEF3
// Write 4-byte session_id to mark as reported
CHARACTERISTIC, 12345678-1234-5678-1234-56789ABCDEF3, WRITE | DYNAMIC,
// Time Sync Characteristic
// Characteristic UUID: 12345678-1234-5678-1234-56789ABCDEF4
// Write 4-byte Unix timestamp to sync device time
CHARACTERISTIC, 12345678-1234-5678-1234-56789ABCDEF4, WRITE | DYNAMIC,
// User Settings Characteristic
// Characteristic UUID: 12345678-1234-5678-1234-56789ABCDEF5
// READ: Returns current settings (1 byte: metric only)
// WRITE: Updates settings
CHARACTERISTIC, 12345678-1234-5678-1234-56789ABCDEF5, READ | WRITE | DYNAMIC,
// Set Lifetime Totals Characteristic
// Characteristic UUID: 12345678-1234-5678-1234-56789ABCDEF7
// WRITE: 8 bytes (4 bytes hours as float + 4 bytes distance as float)
CHARACTERISTIC, 12345678-1234-5678-1234-56789ABCDEF7, WRITE | DYNAMIC,
// Logs Characteristic
// Characteristic UUID: 12345678-1234-5678-1234-56789ABCDEF8
// READ: Returns new log data since last read (variable length, up to MTU size)
CHARACTERISTIC, 12345678-1234-5678-1234-56789ABCDEF8, READ | DYNAMIC,