/Zephyr-latest/subsys/bluetooth/mesh/shell/ |
D | Kconfig | 1 # Bluetooth Mesh shell configuration options 7 bool "Bluetooth Mesh shell" 8 select SHELL 10 Activate shell module that provides Bluetooth Mesh commands to 16 bool "Support for provisioning shell commands" 20 This options enables support for provisioning shell commands. 23 bool "Support for shell provisioning context instance" 27 Bluetooth Mesh shell module together with several provisioning 33 bool "Support for CDB shell commands" 37 This options enables support for CDB shell commands. [all …]
|
/Zephyr-latest/subsys/shell/ |
D | Kconfig | 1 # Shell configuration options 8 menuconfig SHELL config 9 bool "Shell" 13 if SHELL 15 module = SHELL 16 module-str = Shell 18 source "subsys/shell/backends/Kconfig.backends" 24 and memory requirements of the shell. Enabling it will choose Kconfig 29 bool "Shell device helpers" 34 bool "Override default shell thread priority" [all …]
|
D | shell_ops.h | 10 #include <zephyr/shell/shell.h> 53 static inline bool z_flag_insert_mode_get(const struct shell *sh) in z_flag_insert_mode_get() 58 static inline bool z_flag_insert_mode_set(const struct shell *sh, bool val) in z_flag_insert_mode_set() 66 static inline bool z_flag_use_colors_get(const struct shell *sh) in z_flag_use_colors_get() 71 static inline bool z_flag_use_colors_set(const struct shell *sh, bool val) in z_flag_use_colors_set() 79 static inline bool z_flag_use_vt100_get(const struct shell *sh) in z_flag_use_vt100_get() 84 static inline bool z_flag_use_vt100_set(const struct shell *sh, bool val) in z_flag_use_vt100_set() 92 static inline bool z_flag_echo_get(const struct shell *sh) in z_flag_echo_get() 97 static inline bool z_flag_echo_set(const struct shell *sh, bool val) in z_flag_echo_set() 105 static inline bool z_flag_obscure_get(const struct shell *sh) in z_flag_obscure_get() [all …]
|
D | shell_wildcard.h | 10 #include <zephyr/shell/shell.h> 21 * @param[in] shell Pointer to the shell instance. 23 void z_shell_wildcard_prepare(const struct shell *sh); 34 /* Function expands wildcards in the shell temporary buffer 43 * @param[in] shell Pointer to the shell instance. 47 enum shell_wildcard_status z_shell_wildcard_process(const struct shell *sh, 53 * @param[in] shell Pointer to the shell instance. 55 void z_shell_wildcard_finalize(const struct shell *sh);
|
/Zephyr-latest/samples/subsys/shell/shell_module/ |
D | sample.yaml | 2 name: Shell Sample 9 sample.shell.shell_module: 10 filter: CONFIG_SERIAL and dt_chosen_enabled("zephyr,shell-uart") 11 tags: shell 17 sample.shell.shell_module.usb: 20 - shell 29 sample.shell.shell_module.minimal: 30 filter: CONFIG_SERIAL and dt_chosen_enabled("zephyr,shell-uart") 31 tags: shell 36 sample.shell.shell_module.getopt: [all …]
|
D | README.rst | 1 .. zephyr:code-sample:: shell-module 2 :name: Custom Shell module 5 Register shell commands using the Shell API 11 using the :ref:`Shell API <shell_api>`: 21 See ``dynamic`` command and :zephyr_file:`samples/subsys/shell/shell_module/src/dynamic_cmd.c` 40 * A target configured with the shell interface, exposed through any of 46 This sample can be found under :zephyr_file:`samples/subsys/shell/shell_module` 58 :zephyr-app: samples/subsys/shell/shell_module 64 After running the application, the console displays the shell interface, and 65 shows the shell prompt, at which point the user may start the interaction. [all …]
|
/Zephyr-latest/tests/ztest/ztest_param/pytest/ |
D | test_parameters.py | 5 from twister_harness import Shell 7 def test_run_all_shuffled(shell: Shell): argument 8 lines = shell.exec_command('ztest shuffle -c 1 -s 1') 15 def test_run_testcase_once(shell: Shell): argument 16 lines = shell.exec_command('ztest run-testcase ztest_params::test_dummy') 21 # def test_run_testcase_twice(shell: Shell): 22 lines = shell.exec_command('ztest run-testcase ztest_params::test_dummy -r 2') 28 def test_run_testsuite_twice(shell: Shell): argument 29 lines = shell.exec_command('ztest run-testsuite ztest_params -r 2') 35 def test_run_testsuite_once(shell: Shell): argument [all …]
|
/Zephyr-latest/tests/net/lib/lwm2m/interop/pytest/ |
D | test_bootstrap.py | 20 from twister_harness import Shell 39 def test_LightweightM2M_1_1_int_1(shell: Shell, dut: DeviceAdapter, leshan: Leshan, endpoint_bootst… argument 42 verify_LightweightM2M_1_1_int_101(shell, dut, leshan, endpoint_bootstrap) 43 verify_LightweightM2M_1_1_int_401(shell, leshan, endpoint_bootstrap) 45 def test_LightweightM2M_1_1_int_4(shell: Shell, dut: DeviceAdapter, leshan: Leshan, endpoint: Endpo… argument 47 shell.exec_command('lwm2m create 1/2') 48 shell.exec_command('lwm2m read 1/2/0') 49 retval = int(shell.get_filtered_output(shell.exec_command('retval'))[0]) 53 shell.exec_command('lwm2m read 1/2/0') 54 retval = int(shell.get_filtered_output(shell.exec_command('retval'))[0]) [all …]
|
D | conftest.py | 20 from twister_harness import Shell 37 def __init__(self, name: str, shell: Shell, registered: bool = False, bootstrap: bool = False): argument 41 self.shell = shell 48 self.shell.exec_command('lwm2m update') 97 def endpoint_nosec(request, shell: Shell, dut: DeviceAdapter, leshan: Leshan) -> str: argument 109 shell.exec_command(f'lwm2m write 0/0/0 -s coap://{addr}:{COAP_PORT}') 110 shell.exec_command('lwm2m write 0/0/1 -b 0') 111 shell.exec_command('lwm2m write 0/0/2 -u8 3') 112 shell.exec_command(f'lwm2m write 0/0/3 -s {ep}') 113 shell.exec_command('lwm2m create 1/0') [all …]
|
D | test_lwm2m.py | 27 from twister_harness import Shell 33 def test_LightweightM2M_1_1_int_102(shell: Shell, dut: DeviceAdapter, leshan: Leshan, endpoint: str… argument 35 lines = shell.get_filtered_output(shell.exec_command('lwm2m read 1/0/1 -u32')) 45 shell.exec_command('lwm2m write 1/0/1 -u32 86400') 47 def test_LightweightM2M_1_1_int_103(shell: Shell, dut: DeviceAdapter, leshan: Leshan, endpoint: str… argument 53 shell.exec_command('lwm2m stop') 55 shell.exec_command(f'lwm2m start {endpoint}') 58 def test_LightweightM2M_1_1_int_104(shell: Shell, dut: DeviceAdapter, leshan: Leshan, endpoint: str… argument 60 shell.exec_command('lwm2m update') 66 def test_LightweightM2M_1_1_int_107(shell: Shell, dut: DeviceAdapter, leshan: Leshan, endpoint: str… argument [all …]
|
/Zephyr-latest/subsys/mgmt/mcumgr/transport/ |
D | Kconfig.shell | 5 # The Kconfig file is dedicated to shell transport of MCUmgr 13 bool "Shell mcumgr SMP transport" 14 depends on SHELL 18 Enables handling of SMP commands received over shell. This allows 19 the shell to be use for both mcumgr commands and shell commands. 24 int "Shell SMP MTU" 27 Maximum size of SMP frames sent and received over shell. This value 32 int "Shell SMP RX buffer count" 35 Number of buffers used for receiving SMP fragments over shell. 38 bool "Shell input expiration" [all …]
|
/Zephyr-latest/tests/subsys/shell/shell/src/ |
D | main.c | 8 * @brief Interactive shell test suite 15 #include <zephyr/shell/shell.h> 16 #include <zephyr/shell/shell_dummy.h> 26 const struct shell *sh = shell_backend_dummy_get_ptr(); in test_shell_execute_cmd() 57 test_shell_execute_cmd("shell -h", 1); in ZTEST() 58 test_shell_execute_cmd("shell --help", 1); in ZTEST() 59 test_shell_execute_cmd("shell dummy", 1); in ZTEST() 60 test_shell_execute_cmd("shell dummy dummy", 1); in ZTEST() 63 test_shell_execute_cmd("shell backspace_mode -h", 1); in ZTEST() 64 test_shell_execute_cmd("shell backspace_mode --help", 1); in ZTEST() [all …]
|
/Zephyr-latest/include/zephyr/shell/ |
D | shell_dummy.h | 2 * Shell backend used for testing 12 #include <zephyr/shell/shell.h> 26 /** output buffer to collect shell output */ 38 * @brief This function shall not be used directly. It provides pointer to shell 41 * Function returns pointer to the shell dummy instance. This instance can be 44 * @returns Pointer to the shell instance. 46 const struct shell *shell_backend_dummy_get_ptr(void); 49 * @brief Returns the buffered output in the shell and resets the pointer 53 * @param sh Shell pointer 54 * @param sizep Returns size of data in shell buffer [all …]
|
D | shell_history.h | 28 * @brief Create shell history instance. 31 * @param _size Memory dedicated for shell history. 47 * @brief Initialize shell history module. 49 * @param history Shell history instance. 54 * @brief Purge shell history. 56 * Function clears whole shell command history. 58 * @param history Shell history instance. 66 * @param history Shell history instance. 71 * @brief Get next entry in shell command history. 75 * @param[in] history Shell history instance. [all …]
|
/Zephyr-latest/tests/subsys/shell/shell/ |
D | testcase.yaml | 2 tags: shell 4 shell.core: 11 shell.min: 18 shell.min_cmds: 25 shell.min_cmds_all: 32 shell.min_cmds_resize: 39 shell.min_cmds_select: 46 shell.min_colors: 53 shell.min_help: 60 shell.min_help_all: [all …]
|
/Zephyr-latest/samples/sensor/sensor_shell/pytest/ |
D | test_sensor_shell.py | 6 from twister_harness import Shell 11 def test_sensor_shell_info(shell: Shell): argument 14 lines = shell.exec_command('sensor info') 21 def test_sensor_shell_get(shell: Shell): argument 24 lines = shell.exec_command('sensor get sensor@0 voltage') 27 lines = shell.exec_command('sensor get sensor@1 53') 32 lines = shell.exec_command('sensor get sensor@0 gauge_desired_charging_current') 38 def test_sensor_shell_attr_get(shell: Shell): argument 41 lines = shell.exec_command('sensor attr_get sensor@0 co2 sampling_frequency') 44 lines = shell.exec_command('sensor attr_get sensor@1 53 3') [all …]
|
/Zephyr-latest/doc/connectivity/bluetooth/ |
D | bluetooth-shell.rst | 3 Shell chapter 6 The Bluetooth Shell is an application based on the :ref:`shell_api` module. It offer a collection of 9 For specific Bluetooth functionality see also the following shell documentation 14 shell/audio/bap.rst 15 shell/audio/bap_broadcast_assistant.rst 16 shell/audio/bap_scan_delegator.rst 17 shell/audio/cap.rst 18 shell/audio/ccp.rst 19 shell/audio/csip.rst 20 shell/audio/gmap.rst [all …]
|
/Zephyr-latest/tests/bluetooth/shell/ |
D | testcase.yaml | 8 bluetooth.shell.main: 22 bluetooth.shell.power_control_request: 27 bluetooth.shell.path_loss_monitoring: 32 bluetooth.shell.subrating: 37 bluetooth.shell.channel_sounding: 43 bluetooth.shell.cdc_acm: 56 bluetooth.shell.shell_br: 68 bluetooth.shell.no_privacy: 72 bluetooth.shell.log_defaults: 76 bluetooth.shell.bt_ctrl_dtm: [all …]
|
/Zephyr-latest/scripts/pylib/pytest-twister-harness/tests/helpers/ |
D | shell_test.py | 6 from twister_harness.helpers.shell import Shell 10 """Run shell_simulator.py program, send "zen" command via shell helper and verify output.""" 11 shell = Shell(shell_simulator_adapter, timeout=5.0) 12 assert shell.wait_for_prompt() 13 lines = shell.exec_command('zen')
|
/Zephyr-latest/subsys/shell/modules/ |
D | Kconfig | 1 # Shell configuration options 7 bool "Device shell" 10 This shell provides access to basic device data. 13 bool "Date shell" 17 This shell provides access to date and time based on Unix time. 20 bool "Devmem shell" 24 This shell command provides read/write access to physical memory.
|
/Zephyr-latest/subsys/mgmt/mcumgr/grp/shell_mgmt/ |
D | Kconfig | 5 # The Kconfig file is dedicated to Shell management group of 16 bool "Mcumgr handlers for shell management" 17 depends on SHELL 21 Enables MCUmgr handlers for shell management. The handler will utilize 22 the dummy backend to execute shell commands and capture the output to 25 It is possible to use additional shell backends in coordination 30 Note that maximum length of shell command accepted is regulated by 38 # Show dummy shell buffer size here, will show help text of original prompt so 41 int "Shell output buffer size (Size of dummy buffer size)" 44 bool "Legacy behaviour: Use rc field for shell function return code" [all …]
|
/Zephyr-latest/scripts/tests/twister_blackbox/test_data/samples/pytest/shell/pytest/ |
D | test_shell.py | 7 from twister_harness import Shell 12 def test_shell_print_help(shell: Shell): argument 14 lines = shell.exec_command('help') 19 def test_shell_print_version(shell: Shell): argument 21 lines = shell.exec_command('kernel version')
|
/Zephyr-latest/samples/subsys/testsuite/pytest/shell/pytest/ |
D | test_shell.py | 7 from twister_harness import Shell 12 def test_shell_print_help(shell: Shell): argument 14 lines = shell.exec_command('help') 19 def test_shell_print_version(shell: Shell): argument 21 lines = shell.exec_command('kernel version')
|
/Zephyr-latest/samples/net/wifi/shell/ |
D | README.rst | 1 .. zephyr:code-sample:: wifi-shell 2 :name: Wi-Fi shell 5 Test Wi-Fi functionality using the Wi-Fi shell module. 11 enabling the Wi-Fi shell module that provides a set of commands: 23 :zephyr-app: samples/net/wifi/shell 33 shell> wifi scan 35 shell> 44 shell> wifi connect "gksu" 4 SecretStuff 46 shell> 48 shell>
|
/Zephyr-latest/tests/drivers/stepper/shell/src/ |
D | main.c | 12 #include <zephyr/shell/shell.h> 13 #include <zephyr/shell/shell_dummy.h> 25 zassert_ok(retval, "failed to execute shell command (err %d)", retval); \ 32 const struct shell *sh = shell_backend_dummy_get_ptr(); in stepper_shell_setup() 34 /* Wait for the initialization of the shell dummy backend. */ in stepper_shell_setup() 36 zassert_true(shell_ready(sh), "timed out waiting for dummy shell backend"); in stepper_shell_setup() 45 const struct shell *sh = shell_backend_dummy_get_ptr(); in ZTEST() 60 const struct shell *sh = shell_backend_dummy_get_ptr(); in ZTEST() 69 const struct shell *sh = shell_backend_dummy_get_ptr(); in ZTEST() 78 const struct shell *sh = shell_backend_dummy_get_ptr(); in ZTEST() [all …]
|