You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add Device Info to BLE specification
* Update src/ble.md
Change an to a
Co-authored-by: Paulus Schoutsen <[email protected]>
---------
Co-authored-by: Paulus Schoutsen <[email protected]>
Copy file name to clipboardExpand all lines: src/ble.md
+33-5Lines changed: 33 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,12 +26,15 @@ If the gadget is unable to connect an error is returned. If the gadget required
26
26
27
27

28
28
29
-
The client is able to send an `identify` command to the Improv service if it is in the states "Require Authorization" and "Authorized". When received, and enabled, the gadget will identify itself, like playing a sound or flashing a light. It is up to the gadget to decide if and what interaction to pick.
29
+
The client is able to send an `identify` to the Improv service if it is in the states "Require Authorization" and "Authorized". When received, and enabled, the gadget will identify itself, like playing a sound or flashing a light. It is up to the gadget to decide if and what interaction to pick.
30
+
31
+
The client is able to send a `device info` to the Improv service if it is in the states "Require Authorization" and "Authorized". When received, and supported, the gadget will return the device information in the RPC response characteristic.
|`0`| 1 if the device supports the identify command. |
50
+
|`1`| 1 if the device supports the device info command. |
51
+
52
+
So 0x01 means the device supports identify and 0x03 means the device supports identify and device info while 0x02 means the device supports identify only.
47
53
48
54
### Characteristic: Current State
49
55
@@ -132,6 +138,28 @@ Should only be sent if the capability characteristic indicates that identify is
132
138
133
139
This command has no RPC result.
134
140
141
+
#### RPC Command: Device Info
142
+
143
+
Sends a request for the device to send information about itself.
144
+
145
+
Command ID: `0x03`
146
+
147
+
Does not require the Improv service to be authorized.
148
+
149
+
Should only be sent if the capability characteristic indicates that device info is supported.
150
+
151
+
| Byte | Description |
152
+
|------| ---------------------- |
153
+
| 03 | command |
154
+
| 00 | 0 data bytes / no data |
155
+
| CS | checksum |
156
+
157
+
This command will generate an RPC result. There will be at least 4 entries in the list response.
158
+
159
+
Order of strings: Firmware name, firmware version, hardware chip/variant, device name.
0 commit comments