Skip to content

Commit

Permalink
doc: services: device_mgmt: Add version field
Browse files Browse the repository at this point in the history
Adds the SMP version field to the diagram and description.

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
  • Loading branch information
nordicjm authored and carlescufi committed May 15, 2023
1 parent 1e1507f commit 794f3df
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion doc/services/device_mgmt/smp_protocol.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ one byte lone, and takes the following form:
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|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|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Res | OP | Flags | Data Length |
| Res |Ver| OP | Flags | Data Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Group ID | Sequence Num | Command ID |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Expand Down Expand Up @@ -57,6 +57,14 @@ Where meaning of fields is:
| ``Res`` | This is reserved, not-used field and should be |
| | always set to 0. |
+-------------------+---------------------------------------------------+
| ``Ver`` (Version) | This indicates the version of the protocol being |
| | used, this should be set to 0b01 to use the newer |
| | SMP transport where error codes are more detailed |
| | and returned in the map, otherwise left as 0b00 |
| | to use the legacy SMP protocol. Versions 0b10 and |
| | 0x11 are reserved for future use and should not |
| | be used. |
+-------------------+---------------------------------------------------+
| ``OP`` | :c:enum:`mcumgr_op_t`, determines whether |
| | information is written to a device or requested |
| | from it and whether a packet contains request to |
Expand Down

0 comments on commit 794f3df

Please sign in to comment.