Skip to content

Commit 794f3df

Browse files
nordicjmcarlescufi
authored andcommitted
doc: services: device_mgmt: Add version field
Adds the SMP version field to the diagram and description. Signed-off-by: Jamie McCrae <[email protected]>
1 parent 1e1507f commit 794f3df

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

doc/services/device_mgmt/smp_protocol.rst

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ one byte lone, and takes the following form:
2828
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
2929
|7|6|5|4|3|2|1|0|7|6|5|4|3|2|1|0|7|6|5|4|3|2|1|0|7|6|5|4|3|2|1|0|
3030
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
31-
| Res | OP | Flags | Data Length |
31+
| Res |Ver| OP | Flags | Data Length |
3232
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
3333
| Group ID | Sequence Num | Command ID |
3434
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
@@ -57,6 +57,14 @@ Where meaning of fields is:
5757
| ``Res`` | This is reserved, not-used field and should be |
5858
| | always set to 0. |
5959
+-------------------+---------------------------------------------------+
60+
| ``Ver`` (Version) | This indicates the version of the protocol being |
61+
| | used, this should be set to 0b01 to use the newer |
62+
| | SMP transport where error codes are more detailed |
63+
| | and returned in the map, otherwise left as 0b00 |
64+
| | to use the legacy SMP protocol. Versions 0b10 and |
65+
| | 0x11 are reserved for future use and should not |
66+
| | be used. |
67+
+-------------------+---------------------------------------------------+
6068
| ``OP`` | :c:enum:`mcumgr_op_t`, determines whether |
6169
| | information is written to a device or requested |
6270
| | from it and whether a packet contains request to |

0 commit comments

Comments
 (0)