Home
last modified time | relevance | path

Searched full:smp (Results 1 – 25 of 337) sorted by relevance

12345678910>>...14

/Zephyr-Core-3.5.0/subsys/bluetooth/host/
Dsmp.c2 * @file smp.c
40 #include "smp.h"
120 SMP_FLAG_TIMEOUT, /* if SMP timeout occurred */
142 /* SMP channel specific context */
147 /* Flags for SMP state machine */
219 #define DISPLAY_FIXED(smp) (IS_ENABLED(CONFIG_BT_FIXED_PASSKEY) && \ argument
221 (smp)->method == PASSKEY_DISPLAY)
251 /* SMP over BR/EDR channel specific context */
256 /* Flags for SMP state machine */
289 /* Pointer to internal data is used to mark that callbacks of given SMP channel are not initialized.
[all …]
Dsmp_null.c24 #include "smp.h"
83 struct bt_l2cap_le_chan *smp = &bt_smp_pool[i]; in bt_smp_accept() local
85 if (smp->chan.conn) { in bt_smp_accept()
89 smp->chan.ops = &ops; in bt_smp_accept()
91 *chan = &smp->chan; in bt_smp_accept()
96 LOG_ERR("No available SMP context for conn %p", conn); in bt_smp_accept()
/Zephyr-Core-3.5.0/subsys/mgmt/mcumgr/transport/
DKconfig.udp13 bool "UDP mcumgr SMP transport"
19 Enables handling of SMP commands received over UDP.
25 bool "UDP SMP using IPv4"
29 Enable SMP UDP using IPv4 addressing.
33 bool "UDP SMP using IPv6"
36 Enable SMP UDP using IPv6 addressing.
40 int "UDP SMP port"
43 UDP port that SMP server will listen for SMP commands on.
46 int "UDP SMP stack size"
49 Stack size of the SMP UDP listening thread
[all …]
DKconfig.bluetooth13 bool "Bluetooth mcumgr SMP transport"
17 Enables handling of SMP commands received over Bluetooth.
22 bool "Reassemble packets in Bluetooth SMP transport"
25 When enabled, the SMP BT transport will buffer and reassemble received
29 bool "Authenticated requirement for Bluetooth mcumgr SMP transport"
34 Bluetooth SMP transport.
37 bool "Request specific connection parameters for SMP packet exchange"
42 SMP commands are handled. This option allows to speed up the command
44 Its recommended to enable this if SMP is used for DFU.
49 int "Minimum connection interval for SMP packet exchange"
[all …]
DKconfig.shell13 bool "Shell mcumgr SMP transport"
17 Enables handling of SMP commands received over shell. This allows
23 int "Shell SMP MTU"
26 Maximum size of SMP frames sent and received over shell. This value
31 int "Shell SMP RX buffer count"
34 Number of buffers used for receiving SMP fragments over shell.
DKconfig.uart13 bool "UART mcumgr SMP transport"
18 Enables handling of SMP commands received over UART. This is a
55 int "UART SMP MTU"
58 Maximum size of SMP frames sent and received over UART, in bytes.
DKconfig.dummy13 bool "Dummy SMP backend"
16 Enables the dummy SMP backend which can be used for unit testing
17 SMP functionality without needing a real interface or driver.
/Zephyr-Core-3.5.0/include/zephyr/mgmt/mcumgr/smp/
Dsmp_client.h13 #include <zephyr/mgmt/mcumgr/smp/smp.h>
14 #include <zephyr/mgmt/mcumgr/transport/smp.h>
17 * @brief SMP client object
24 /** SMP transport object */
26 /** SMP SEQ */
35 * @brief Initialize a SMP client object.
38 * @param smp_type SMP transport type for discovering transport object
46 * @brief Response callback for SMP send.
57 * @brief SMP client response handler.
60 * @param res_hdr Parsed SMP header
[all …]
Dsmp.h10 * @brief SMP - Simple Management Protocol.
12 * SMP is a basic protocol that sits on top of the mgmt layer. SMP requests
18 * SMP request packets may contain multiple concatenated requests. Each
30 #include <zephyr/mgmt/mcumgr/transport/smp.h>
38 /** SMP MCUmgr protocol version, part of the SMP header */
81 * @brief Decodes, encodes, and transmits SMP packets.
94 * @brief Processes a single SMP request packet and sends all corresponding responses.
96 * Processes all SMP requests in an incoming packet. Requests are processed
102 * @param streamer The streamer providing the required SMP callbacks.
132 * @brief Translates a SMP version 2 error response to a legacy SMP version 1 error code.
[all …]
/Zephyr-Core-3.5.0/tests/subsys/mgmt/mcumgr/settings_mgmt/src/
Dmain.c124 /* Enable dummy SMP backend and ready for usage */ in ZTEST()
128 /* Send query command to dummy SMP backend */ in ZTEST()
141 zassert_equal(nb->len, TEST_RESPONSE_OK_LENGTH, "SMP response mismatch"); in ZTEST()
144 "SMP header length mismatch"); in ZTEST()
145 zassert_equal(header->nh_flags, 0, "SMP header flags mismatch"); in ZTEST()
146 zassert_equal(header->nh_op, MGMT_OP_WRITE_RSP, "SMP header operation mismatch"); in ZTEST()
148 "SMP header group mismatch"); in ZTEST()
149 zassert_equal(header->nh_seq, 1, "SMP header sequence number mismatch"); in ZTEST()
150 zassert_equal(header->nh_id, SETTINGS_MGMT_ID_COMMIT, "SMP header command ID mismatch"); in ZTEST()
151 zassert_equal(header->nh_version, 1, "SMP header version mismatch"); in ZTEST()
[all …]
/Zephyr-Core-3.5.0/include/zephyr/mgmt/mcumgr/transport/
Dsmp_shell.h8 * @brief Shell transport for the mcumgr SMP protocol.
22 /** @brief Data used by SMP shell */
31 * @brief Attempt to process received bytes as part of an SMP frame.
34 * part of SMP frame until frame or buffer ends.
36 * @param data SMP shell transfer data.
40 * @return number of bytes consumed by the SMP
46 * @brief Processes SMP data and executes command if full frame was received.
50 * @param data SMP shell transfer data.
55 * @brief Initializes SMP transport over shell.
57 * This function should be called before feeding SMP transport with received
Dsmp.h18 * @brief MCUmgr transport SMP API
19 * @defgroup mcumgr_transport_smp MCUmgr transport SMP API
29 * @brief SMP transmit callback for transport
40 * @brief SMP MTU query callback for transport
55 * @brief SMP copy user_data callback
71 * @brief SMP free user_data callback
84 * This function is used to check if queued SMP data is still valid e.g. on a remote device
95 * @brief Function pointers of SMP transport functions, if a handler is NULL then it is not
116 * @brief SMP transport object for sending SMP responses.
138 * @brief SMP transport type for client registration
[all …]
Dsmp_bt.h8 * @brief Bluetooth transport for the mcumgr SMP protocol.
22 * @brief Registers the SMP Bluetooth service. Should only be called if the Bluetooth
30 * @brief Unregisters the SMP Bluetooth service.
37 * @brief Transmits an SMP command/response over the specified Bluetooth connection as a
41 * @param data Pointer to SMP message.
Dsmp_dummy.h9 * @brief Dummy transport for the mcumgr SMP protocol for unit testing.
24 * @brief Clears internal dummy SMP state and resets semaphore
85 * @brief Enabled the dummy SMP module (will process sent/received data)
90 * @brief Disables the dummy SMP module (will not process sent/received data)
95 * @brief Returns status on if the dummy SMP system is active
97 * @retval true if dummy SMP is enabled, false otherwise
/Zephyr-Core-3.5.0/subsys/mgmt/mcumgr/smp_client/
DKconfig6 # Simple Management Protocol Client (SMP) processing source code provided
10 bool "SMP Client support"
12 This will enable SMP Request generation and response handling.
17 int "SMP command lifetime in seconds"
21 This define lifetime for SMP client send request. This configure is used if a request
25 int "SMP command re-send period in ms"
29 The time (in ms) which the SMP client will wait for a response before re-sending
33 int "SMP client max buffer count"
/Zephyr-Core-3.5.0/subsys/mgmt/mcumgr/smp/
DKconfig5 # The Kconfig file is dedicated to smp subdirectory of MCUmgr
7 # Simple Management Protocol (SMP) processing source code provided
11 # MCUMGR_SMP_ -- for general SMP options;
33 to be supported by zcbor decoding of SMP responses
69 int "Number of map/list encapsulations allowed for SMP decoding"
75 SMP commands/groups that provide no CBOR encoded payload
89 to be supported by zcbor encoding of SMP responses
125 int "Number of map/list encapsulations allowed for SMP encoding"
136 bool "SMP command status hooks"
139 This will enable SMP command status notification hooks for when an SMP message is
[all …]
/Zephyr-Core-3.5.0/tests/kernel/mp/
Dtestcase.yaml5 - smp
8 - smp
12 - smp
16 - smp
/Zephyr-Core-3.5.0/tests/kernel/smp/
Dtestcase.yaml2 kernel.multiprocessing.smp:
5 - smp
8 kernel.multiprocessing.smp.minimallibc:
11 - smp
/Zephyr-Core-3.5.0/tests/kernel/spinlock/
Dtestcase.yaml5 - smp
9 - smp
13 - smp
19 - smp
/Zephyr-Core-3.5.0/include/zephyr/mgmt/mcumgr/grp/os_mgmt/
Dos_mgmt_client.h11 #include <zephyr/mgmt/mcumgr/smp/smp_client.h>
21 /** SMP client object */
31 * @param smp_client SMP client object
37 * @brief Send SMP message for Echo command.
48 * @brief Send SMP Reset command.
/Zephyr-Core-3.5.0/doc/kernel/services/smp/
Dsmp.rst16 SMP configuration is controlled under the :kconfig:option:`CONFIG_SMP` kconfig
17 variable. This must be set to "y" to enable SMP features, otherwise
32 primitives all behave identically under an SMP kernel. For example
48 SMP systems provide a more constrained :c:func:`k_spin_lock` primitive
80 SMP systems with identical semantics to their legacy versions. They
90 impact, however. Unlike uniprocessor apps, SMP apps using
93 IRQ lock is global, means that code expecting to be run in an SMP
124 SMP Boot Process
127 A Zephyr SMP kernel begins boot identically to a uniprocessor kernel.
133 calls :c:func:`z_smp_init` to launch the SMP initialization process. This
[all …]
/Zephyr-Core-3.5.0/samples/arch/smp/pktqueue/
Dsample.yaml3 name: SMP Pktqueue
14 sample.smp.pktqueue:
19 - smp
/Zephyr-Core-3.5.0/boards/arm64/qemu_cortex_a53/
Dqemu_cortex_a53_smp_defconfig18 # icount does not work well with SMP
22 # (plus it is needed for SMP)
28 # SMP-related
/Zephyr-Core-3.5.0/subsys/mgmt/mcumgr/transport/src/
Dsmp_uart.c8 * @brief UART transport for the mcumgr SMP protocol.
17 #include <zephyr/mgmt/mcumgr/smp/smp.h>
18 #include <zephyr/mgmt/mcumgr/transport/smp.h>
54 /* If a complete packet has been received, pass it to SMP for in smp_uart_process_frag()
72 * Enqueues a received SMP fragment for later processing. This function
/Zephyr-Core-3.5.0/doc/services/device_mgmt/
Dsmp_protocol.rst3 SMP Protocol Specification
6 This is description of Simple Management Protocol, SMP, that is used by
9 SMP is an application layer protocol. The underlying transport layer is not
13 SMP in this context refers to SMP for MCUmgr (Simple Management Protocol),
14 it is unrelated to SMP in Bluetooth (Security Manager Protocol), but there
15 is an MCUmgr SMP transport for Bluetooth.
45 The original specification states that SMP should support receiving
67 | | SMP transport where error codes are more detailed |
69 | | to use the legacy SMP protocol. Versions 0b10 and |
76 | | an SMP server or response from it. |
[all …]

12345678910>>...14