/Zephyr-latest/scripts/pylib/pytest-twister-harness/tests/fixtures/ |
D | mcumgr_fixture_test.py | 9 from twister_harness.helpers.mcumgr import MCUmgr, MCUmgrException 12 @pytest.fixture(name='mcumgr') 13 def fixture_mcumgr() -> MCUmgr: 14 return MCUmgr.create_for_serial('SERIAL_PORT') 17 @mock.patch('twister_harness.helpers.mcumgr.MCUmgr.run_command', return_value='') 19 patched_run_command: mock.Mock, mcumgr: MCUmgr argument 21 mcumgr.reset_device() 24 mcumgr.get_image_list() 27 mcumgr.image_upload('/path/to/image', timeout=100) 30 mcumgr.image_upload('/path/to/image', slot=2, timeout=100) [all …]
|
/Zephyr-latest/tests/boot/with_mcumgr/pytest/ |
D | test_upgrade.py | 10 from twister_harness import DeviceAdapter, MCUmgr, Shell 45 def test_upgrade_with_confirm(dut: DeviceAdapter, shell: Shell, mcumgr: MCUmgr): argument 50 3) Upload the application update to slot 1 using mcumgr 51 4) Flag the application update in slot 1 as 'pending' by using mcumgr 'test' 54 7) Confirm the image using mcumgr 62 logger.info('Upload image with mcumgr') 64 mcumgr.image_upload(image_to_test) 67 second_hash = mcumgr.get_hash_to_test() 68 mcumgr.image_test(second_hash) 70 mcumgr.reset_device() [all …]
|
D | test_downgrade_prevention.py | 10 from twister_harness import DeviceAdapter, MCUmgr, Shell 17 def test_downgrade_prevention(dut: DeviceAdapter, shell: Shell, mcumgr: MCUmgr): argument 24 3) Upload the application update to slot 1 using mcumgr 25 4) Flag the application update in slot 1 as 'pending' by using mcumgr 'test' 41 logger.info('Upload image with mcumgr') 43 mcumgr.image_upload(image_to_test) 46 second_hash = mcumgr.get_hash_to_test() 47 mcumgr.image_test(second_hash) 48 mcumgr.reset_device() 57 check_with_mcumgr_command(mcumgr, origin_version)
|
D | utils.py | 8 from twister_harness import MCUmgr, Shell 21 def check_with_mcumgr_command(mcumgr: MCUmgr, version: str) -> None: argument 22 image_list = mcumgr.get_image_list() 23 # version displayed by MCUmgr does not print +0 and changes + to '.' for non-zero values
|
/Zephyr-latest/subsys/mgmt/mcumgr/transport/ |
D | Kconfig | 5 # The Kconfig file is dedicated to transport subdirectory of MCUmgr 16 int "MCUmgr transport workqueue stack size" 19 Stack size of the MCUmgr for transport subsystem work queue. 22 int "MCUmgr transport workqueue thread priority" 25 Scheduling priority of the MCUmgr transport subsystem work queue. 33 int "Number of mcumgr buffers" 37 The number of net_bufs to allocate for mcumgr. These buffers are 41 int "Size of each mcumgr buffer" 45 The size, in bytes, of each mcumgr buffer. This value must satisfy 62 int "Size of mcumgr buffer user data" [all …]
|
D | Kconfig.dummy | 5 # The Kconfig file is dedicated to Dummy transport of MCUmgr 22 int "Size of receive buffer for dummy interface mcumgr fragments" 25 Specifies the size of the mcumgr dummy backend receive buffer, 27 line sent by an mcumgr client.
|
D | Kconfig.shell | 5 # The Kconfig file is dedicated to shell transport of MCUmgr 13 bool "Shell mcumgr SMP transport" 19 the shell to be use for both mcumgr commands and shell commands. 40 If enabled, will time out a partial or erroneous MCUmgr command 50 Time (in msec) after receiving a valid MCUmgr header on the serial
|
/Zephyr-latest/include/zephyr/drivers/console/ |
D | uart_mcumgr.h | 8 * @brief A driver for sending and receiving mcumgr packets over UART. 24 * @brief Contains an mcumgr fragment received over UART. 33 * @brief Function that gets called when an mcumgr packet is received. 35 * Function that gets called when an mcumgr packet is received. This function 39 * @param rx_buf A buffer containing the incoming mcumgr packet. 44 * @brief Sends an mcumgr packet over UART. 46 * @param data Buffer containing the mcumgr packet to send. 61 * @brief Registers an mcumgr UART receive handler. 63 * Configures the mcumgr UART driver to call the specified function when an 64 * mcumgr request packet is received. [all …]
|
/Zephyr-latest/subsys/mgmt/mcumgr/ |
D | Kconfig | 5 menuconfig MCUMGR config 6 bool "mcumgr Support" 10 This option enables the mcumgr management library. 12 if MCUMGR 14 module = MCUMGR 15 module-str = mcumgr 28 mcumgr acts with new behaviour and will only return rc is the result 53 endif # MCUMGR
|
/Zephyr-latest/doc/services/device_mgmt/ |
D | mcumgr_handlers.rst | 3 MCUmgr handlers 9 MCUmgr functions by having group handlers which identify a group of functions relating to a 20 MCUmgr handlers can be added externally by application code or by module code, they do not have 22 create the folder structure for it, the typical Zephyr MCUmgr group layout is as follows: 35 Note that the header files in upstream Zephyr MCUmgr handlers reside in the 36 ``zephyr/include/zephyr/mgmt/mcumgr/grp/<grp_name>_mgmt`` directory to allow the files to be 42 The purpose of the header file is to provide defines which can be used by the MCUmgr handler 46 .. literalinclude:: ../../../tests/subsys/mgmt/mcumgr/handler_demo/example_as_module/include/exampl… 62 The purpose of the header file is to provide defines which can be used by the MCUmgr handler 66 .. literalinclude:: ../../../tests/subsys/mgmt/mcumgr/handler_demo/example_as_module/include/exampl… [all …]
|
D | mcumgr_backporting.rst | 3 Fixing and backporting fixes to Zephyr v2.7 MCUmgr 6 The processes described in this document apply to both the zephyr repository itself and the MCUmgr … 15 The upstream MCUmgr repository is located `in this page <https://github.com/apache/mynewt-mcumgr>`_. 16 … used in version 2.7 and earlier is `located here <https://github.com/zephyrproject-rtos/mcumgr>`_. 17 … 2.7 use the MCUmgr library that is `part of the Zephyr code base <https://github.com/zephyrprojec… 23 to the upstream repository of MCUmgr and then bring it to Zephyr with snapshot updates. 27 …* The fix, done directly to the Zephyr held code of the MCUmgr library, is backported to the ``v2.… 39 Applying fixes to previous versions of MCUmgr 42 This section indicates how to apply fixes to previous versions of MCUmgr. 86 #. Update ``west.yml`` within Zephyr, creating a pull-request to update the MCUmgr library referenc… [all …]
|
/Zephyr-latest/tests/subsys/mgmt/mcumgr/os_mgmt_info/ |
D | testcase.yaml | 8 - mcumgr 20 mgmt.mcumgr.os.info: {} 21 mgmt.mcumgr.os.info.no_hooks: 25 mgmt.mcumgr.os.info.bt: 30 mgmt.mcumgr.os.info.net: 48 mgmt.mcumgr.os.info.build_date: 51 mgmt.mcumgr.os.info.limited_size:
|
/Zephyr-latest/include/zephyr/mgmt/mcumgr/mgmt/ |
D | handlers.h | 19 * @brief MCUmgr handler registration API 20 * @defgroup mcumgr_handler_api MCUmgr handler API 21 * @ingroup mcumgr 25 /** Type definition for a MCUmgr handler initialisation function */ 36 * @brief Define a MCUmgr handler to register. 38 * This adds a new entry to the iterable section linker list of MCUmgr handers. 40 * @param name Name of the MCUmgr handler to registger.
|
D | mgmt_defines.h | 2 * Copyright (c) 2018-2021 mcumgr authors 18 * @brief MCUmgr mgmt API 19 * @defgroup mcumgr_mgmt_api MCUmgr mgmt API 20 * @ingroup mcumgr 25 * Used at end of MCUmgr handlers to return an error if the message size limit was reached, 46 * MCUmgr groups. The first 64 groups are reserved for system level mcumgr 94 * MCUmgr error codes. 133 /** Requested SMP MCUmgr protocol version is not supported (too old) */ 136 /** Requested SMP MCUmgr protocol version is not supported (too new) */
|
/Zephyr-latest/samples/subsys/mgmt/mcumgr/smp_svr/ |
D | sample.yaml | 8 sample.mcumgr.smp_svr.bt: 20 sample.mcumgr.smp_svr.bt_static_svc: 32 sample.mcumgr.smp_svr.udp: 39 sample.mcumgr.smp_svr.cdc: 55 sample.mcumgr.smp_svr.serial: 95 sample.mcumgr.smp_svr.mcuboot_flags.direct_xip_withrevert: 105 sample.mcumgr.smp_svr.serial-console: 113 sample.mcumgr.smp_svr.shell: 152 sample.mcumgr.smp_svr.shell_mgmt: 160 sample.mcumgr.smp_svr.fs: [all …]
|
D | overlay-bt.conf | 10 # Enable the Bluetooth mcumgr transport (unauthenticated). 14 # Enable the Shell mcumgr transport. 21 # Enable the mcumgr Packet Reassembly feature over Bluetooth and its configuration dependencies. 22 # MCUmgr buffer size is optimized to fit one SMP packet divided into five Bluetooth Write Commands,
|
/Zephyr-latest/subsys/mgmt/mcumgr/grp/img_mgmt_client/ |
D | Kconfig | 5 # of MCUmgr client subsystem and provides Kconfig options to configure 15 bool "MCUmgr client handlers for image management" 19 Enables MCUmgr client handlers for image management. 24 int "MCUmgr upload data alignment size" 30 int "MCUmgr reset or upload command timeout"
|
/Zephyr-latest/include/zephyr/mgmt/mcumgr/transport/ |
D | serial.h | 26 * @brief Maintains state for an incoming mcumgr request packet. 29 /* Contains the partially- or fully-received mcumgr request. Data 49 * @brief Processes an mcumgr request fragment received over a serial 52 * Processes an mcumgr request fragment received over a serial transport. If 53 * the fragment is the end of a valid mcumgr request, this function returns a 72 * @brief Encodes and transmits an mcumgr packet over serial. 74 * @param data The mcumgr packet data to send. 75 * @param len The length of the unencoded mcumgr packet.
|
/Zephyr-latest/tests/subsys/mgmt/mcumgr/smp_version/ |
D | testcase.yaml | 7 mgmt.mcumgr.smp.version: 10 - mcumgr 18 mgmt.mcumgr.smp.version_no_legacy: 21 - mcumgr
|
/Zephyr-latest/subsys/mgmt/mcumgr/mgmt/ |
D | Kconfig | 5 # The Kconfig is dedicated to mgmt subsystem of MCUmgr. Kconfig options defined 6 # here affect behaviour of services provided by source code of mcumgr/mgmt/ 13 bool "MCUmgr notification hook support" 15 With this enabled, applications and parts of code can register for MCUmgr event 30 bool "MCUmgr mgmt handler user data support" 36 bool "MCUmgr custom payload"
|
/Zephyr-latest/tests/subsys/mgmt/mcumgr/fs_mgmt_hash_supported/ |
D | testcase.yaml | 9 - mcumgr 22 mgmt.mcumgr.fs.mgmt.hash.supported.crc32: 25 mgmt.mcumgr.fs.mgmt.hash.supported.sha256: 28 mgmt.mcumgr.fs.mgmt.hash.supported.all:
|
/Zephyr-latest/tests/subsys/mgmt/mcumgr/mcumgr_client/ |
D | testcase.yaml | 7 mgmt.mcumgr.mcumgr.client: 13 - mcumgr
|
/Zephyr-latest/tests/subsys/mgmt/mcumgr/handler_demo/ |
D | Kconfig | 4 # of MCUmgr subsystem and provides Kconfig options to configure 12 if MCUMGR 15 bool "MCUmgr handlers for example management (app)" 19 Enables MCUmgr handlers for example management. This demonstrates the
|
/Zephyr-latest/tests/subsys/mgmt/mcumgr/handler_demo/example_as_module/ |
D | Kconfig | 4 # of MCUmgr subsystem and provides Kconfig options to configure 12 if MCUMGR 15 bool "MCUmgr handlers for example management (module)" 19 Enables MCUmgr handlers for example management. This demonstrates the
|
/Zephyr-latest/scripts/pylib/pytest-twister-harness/src/twister_harness/ |
D | __init__.py | 8 from twister_harness.helpers.mcumgr import MCUmgr 11 __all__ = ['DeviceAdapter', 'MCUmgr', 'Shell']
|