Home
last modified time | relevance | path

Searched full:shell (Results 1 – 25 of 1449) sorted by relevance

12345678910>>...58

/Zephyr-Core-3.7.0/subsys/bluetooth/mesh/shell/
DKconfig1 # 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-Core-3.7.0/subsys/shell/
DKconfig1 # 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 "Override default shell thread priority"
31 Option to change the default value of shell thread priority.
[all …]
Dshell_ops.h10 #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 …]
Dshell_wildcard.h10 #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-Core-3.7.0/samples/subsys/shell/shell_module/
Dsample.yaml2 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 …]
DREADME.rst1 .. 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-Core-3.7.0/tests/subsys/shell/shell/
Dtestcase.yaml2 tags: shell
8 shell.core:
11 shell.min:
16 shell.min_cmds:
21 shell.min_cmds_all:
26 shell.min_cmds_resize:
31 shell.min_cmds_select:
36 shell.min_colors:
41 shell.min_help:
46 shell.min_help_all:
[all …]
/Zephyr-Core-3.7.0/tests/net/lib/lwm2m/interop/pytest/
Dtest_bootstrap.py20 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 …]
Dconftest.py20 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 …]
Dtest_lwm2m.py27 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-Core-3.7.0/subsys/mgmt/mcumgr/transport/
DKconfig.shell5 # 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-Core-3.7.0/tests/subsys/shell/shell/src/
Dmain.c8 * @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-Core-3.7.0/include/zephyr/shell/
Dshell_dummy.h2 * 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 …]
Dshell.h11 #include <zephyr/shell/shell_types.h>
12 #include <zephyr/shell/shell_history.h>
13 #include <zephyr/shell/shell_fprintf.h>
14 #include <zephyr/shell/shell_log_backend.h>
15 #include <zephyr/shell/shell_string_conv.h>
53 * By default, shell is parsing all arguments, treats all spaces as argument
74 * @brief Shell API
75 * @defgroup shell_api Shell API
85 * @brief Shell dynamic command descriptor.
92 * write to entry->syntax NULL value. This will indicate to the shell
[all …]
Dshell_history.h28 * @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 …]
Dshell_adsp_memory_window.h11 #include <zephyr/shell/shell.h>
21 /** Memwindow based shell transport. */
23 /** Handler function registered by shell. */
28 /** Context registered by shell. */
49 * @brief This function provides pointer to shell ADSP memory window backend instance.
51 * Function returns pointer to the shell ADSP memory window instance. This instance can be
54 * @returns Pointer to the shell instance.
56 const struct shell *shell_backend_adsp_memory_window_get_ptr(void);
/Zephyr-Core-3.7.0/subsys/shell/modules/
DKconfig1 # Shell configuration options
7 bool "Kernel shell"
14 This shell provides access to basic kernel data like version, uptime
18 int "Delay between reception of shell reboot command and reboot (ms)"
23 This delay allows time for the shell to successfully echo the reboot
25 external systems that interact with the shell and require the reboot
30 bool "Device shell"
33 This shell provides access to basic device data.
36 bool "Date shell"
40 This shell provides access to date and time based on Unix time.
[all …]
/Zephyr-Core-3.7.0/samples/sensor/sensor_shell/pytest/
Dtest_sensor_shell.py6 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-Core-3.7.0/scripts/pylib/pytest-twister-harness/tests/helpers/
Dshell_test.py6 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-Core-3.7.0/subsys/mgmt/mcumgr/grp/shell_mgmt/
DKconfig5 # 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-Core-3.7.0/doc/connectivity/bluetooth/api/
Dindex.rst29 audio/shell/bap.rst
30 audio/shell/bap_broadcast_assistant.rst
31 audio/shell/bap_scan_delegator.rst
32 audio/shell/cap.rst
33 audio/shell/ccp.rst
34 audio/shell/csip.rst
35 audio/shell/gmap.rst
36 audio/shell/mcp.rst
37 audio/shell/tmap.rst
38 audio/shell/pbp.rst
[all …]
/Zephyr-Core-3.7.0/samples/subsys/testsuite/pytest/shell/pytest/
Dtest_shell.py7 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-Core-3.7.0/scripts/tests/twister_blackbox/test_data/samples/pytest/shell/pytest/
Dtest_shell.py7 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-Core-3.7.0/tests/bluetooth/shell/
Dtestcase.yaml9 bluetooth.shell.main:
25 bluetooth.shell.power_control_request:
32 bluetooth.shell.cdc_acm:
49 bluetooth.shell.shell_br:
65 bluetooth.shell.no_privacy:
69 bluetooth.shell.log_defaults:
75 bluetooth.shell.audio:
79 bluetooth.shell.audio.no_vcs:
85 bluetooth.shell.audio.no_vocs:
92 bluetooth.shell.audio.no_aics:
[all …]
/Zephyr-Core-3.7.0/subsys/shell/backends/
DKconfig.backends1 # Shell backends configuration options
7 bool "Shell backends"
10 Enable shell backends.
15 DT_CHOSEN_Z_SHELL_UART := zephyr,shell-uart
41 Displayed prompt name for UART backend. If prompt is set, the shell will
50 bool "Asynchronous shell API"
54 This option enables asynchronous shell API.
93 bytes by shell. If shell input is coming from the keyboard then it is
114 CPU load is high and there is very high shell thread latency.
121 space that can hold RX data. It may be decreased if shell input is
[all …]

12345678910>>...58