| /Zephyr-4.3.0/subsys/shell/ |
| D | shell_ops.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() 110 static inline bool z_flag_obscure_set(const struct shell *sh, bool val) in z_flag_obscure_set() [all …]
|
| /Zephyr-4.3.0/samples/sensor/sensor_shell/pytest/ |
| D | test_sensor_shell.py | 11 def test_sensor_shell_info(shell: Shell): 14 shell.wait_for_prompt() 15 lines = shell.exec_command('sensor info') 22 def test_sensor_shell_get(shell: Shell): 25 lines = shell.exec_command('sensor get sensor@0') 32 shell.wait_for_prompt() 33 lines = shell.exec_command(f'sensor get sensor@0 {channel}') 39 def test_sensor_shell_attr_get(shell: Shell): 42 shell.wait_for_prompt() 43 lines = shell.exec_command('sensor attr_get sensor@0 co2 sampling_frequency') [all …]
|
| /Zephyr-4.3.0/tests/net/lib/lwm2m/interop/pytest/ |
| D | test_bootstrap.py | 39 def test_LightweightM2M_1_1_int_1(shell: Shell, dut: DeviceAdapter, leshan: Leshan, endpoint_bootst… 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… 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]) 65 def test_LightweightM2M_1_1_int_6(shell: Shell, dut: DeviceAdapter, endpoint: Endpoint): [all …]
|
| D | conftest.py | 37 def __init__(self, name: str, shell: Shell, registered: bool = False, bootstrap: bool = False): 41 self.shell = shell 48 self.shell.exec_command('lwm2m update') 97 def endpoint_nosec(request, shell: Shell, dut: DeviceAdapter, leshan: Leshan) -> str: 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') 114 shell.exec_command('lwm2m write 0/0/10 -u16 1') [all …]
|
| D | test_lwm2m.py | 33 def test_LightweightM2M_1_1_int_102(shell: Shell, dut: DeviceAdapter, leshan: Leshan, endpoint: str… 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… 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… 60 shell.exec_command('lwm2m update') 66 def test_LightweightM2M_1_1_int_107(shell: Shell, dut: DeviceAdapter, leshan: Leshan, endpoint: str… 70 lines = shell.get_filtered_output(shell.exec_command('lwm2m read 1/0/1 -u32')) [all …]
|
| D | test_observe_attributes.py | 38 def test_attribute_step(shell: Shell, leshan: Leshan, endpoint: str): 48 shell.exec_command('lwm2m write /3/0/7/0 -u32 3000') 54 shell.exec_command('lwm2m write /3/0/7/0 -u32 3100') 61 shell.exec_command('lwm2m write /3/0/7/0 -u32 3500') 71 def test_attribute_greater_than(shell: Shell, leshan: Leshan, endpoint: str): 81 shell.exec_command('lwm2m write /3/0/7/0 -u32 3000') 87 shell.exec_command('lwm2m write /3/0/7/0 -u32 4100') 94 shell.exec_command('lwm2m write /3/0/7/0 -u32 4400') 100 shell.exec_command('lwm2m write /3/0/7/0 -u32 4300') 107 shell.exec_command('lwm2m write /3/0/7/0 -u32 4100') [all …]
|
| /Zephyr-4.3.0/tests/ztest/ztest_param/pytest/ |
| D | test_parameters.py | 7 def test_run_all_shuffled(shell: Shell): 8 lines = shell.exec_command('ztest shuffle -c 1 -s 1') 15 def test_run_testcase_once(shell: Shell): 16 lines = shell.exec_command('ztest run-testcase ztest_params::test_dummy') 22 lines = shell.exec_command('ztest run-testcase ztest_params::test_dummy -r 2') 28 def test_run_testsuite_twice(shell: Shell): 29 lines = shell.exec_command('ztest run-testsuite ztest_params -r 2') 35 def test_run_testsuite_once(shell: Shell): 36 lines = shell.exec_command('ztest run-testsuite ztest_params') 41 def test_run_testcase_with_int_parameter(shell: Shell): [all …]
|
| /Zephyr-4.3.0/subsys/bluetooth/mesh/shell/ |
| D | Kconfig | 1 # Bluetooth Mesh shell configuration options 7 bool "Bluetooth Mesh shell" 11 Activate shell module that provides Bluetooth Mesh commands to 17 bool "Support for provisioning shell commands" 21 This options enables support for provisioning shell commands. 24 bool "Support for shell provisioning context instance" 28 Bluetooth Mesh shell module together with several provisioning 34 bool "Support for CDB shell commands" 38 This options enables support for CDB shell commands. 41 bool "Support for Low Power node shell commands" [all …]
|
| /Zephyr-4.3.0/tests/bluetooth/classic/smp_io_cap/pytest/ |
| D | test_smp.py | 117 async def send_cmd_to_iut(shell, dut, cmd, parse=None): argument 118 shell.exec_command(cmd) 129 async def bumble_acl_connect(shell, dut, device, target_address): argument 274 async def sm_passkey_confirm(shell, dut, number, digits): argument 290 shell.exec_command("bt auth-passkey-confirm") 297 async def sm_io_cap_init(hci_port, shell, dut, address, snoop_file, dut_sec, dut_io_cap) -> None: argument 318 shell.exec_command(f"bt auth-passkey {number}") 325 result = await sm_passkey_confirm(shell, dut, number, digits) 371 await send_cmd_to_iut(shell, dut, "br clear all", None) 372 await send_cmd_to_iut(shell, dut, "bt clear all", None) [all …]
|
| /Zephyr-4.3.0/subsys/bluetooth/audio/shell/ |
| D | mpl.c | 31 int cmd_mpl_test_set_media_state(const struct shell *sh, size_t argc, in cmd_mpl_test_set_media_state() 56 int cmd_mpl_test_unset_parent_group(const struct shell *sh, size_t argc, in cmd_mpl_test_unset_parent_group() 67 int cmd_mpl_debug_dump_state(const struct shell *sh, size_t argc, in cmd_mpl_debug_dump_state() 76 int cmd_media_proxy_pl_init(const struct shell *sh, size_t argc, char *argv[]) in cmd_media_proxy_pl_init() 88 int cmd_mpl_test_player_name_cb(const struct shell *sh, size_t argc, in cmd_mpl_test_player_name_cb() 96 int cmd_mpl_test_player_icon_url_cb(const struct shell *sh, size_t argc, in cmd_mpl_test_player_icon_url_cb() 104 int cmd_mpl_test_track_changed_cb(const struct shell *sh, size_t argc, in cmd_mpl_test_track_changed_cb() 111 int cmd_mpl_test_title_changed_cb(const struct shell *sh, size_t argc, in cmd_mpl_test_title_changed_cb() 118 int cmd_mpl_test_duration_changed_cb(const struct shell *sh, size_t argc, in cmd_mpl_test_duration_changed_cb() 125 int cmd_mpl_test_position_changed_cb(const struct shell *sh, size_t argc, in cmd_mpl_test_position_changed_cb() [all …]
|
| /Zephyr-4.3.0/tests/bluetooth/classic/l2cap_c/pytest/ |
| D | test_l2cap_client.py | 35 async def l2cap_client_case_1(hci_port, shell, dut, address, snoop_file) -> None: argument 54 await send_cmd_to_iut(shell, dut, "br clear all", None) 57 connection = await bumble_acl_connect(shell, dut, device, target_address) 63 shell, 70 shell, 76 await bumble_acl_disconnect(shell, dut, device, connection) 79 async def l2cap_client_case_2(hci_port, shell, dut, address, snoop_file) -> None: argument 106 await send_cmd_to_iut(shell, dut, "br clear all", None) 109 connection = await bumble_acl_connect(shell, dut, device, target_address) 115 shell, [all …]
|
| /Zephyr-4.3.0/tests/bluetooth/classic/smp_general/pytest/ |
| D | test_smp.py | 184 async def send_cmd_to_iut(shell, dut, cmd, parse=None): argument 185 lines = shell.exec_command(cmd) 195 async def bumble_acl_connect(shell, dut, device, target_address): argument 325 async def sm_reset_board(shell, dut): argument 329 if not shell.wait_for_prompt(): 353 async def sm_passkey_confirm(shell, dut, number, digits): argument 369 shell.exec_command("bt auth-passkey-confirm") 393 hci_port, shell, dut, address, snoop_file, dut_sec, dut_io_cap, bumble_sec, bumble_io_cap argument 416 shell.exec_command(f"bt auth-passkey {number}") 423 result = await sm_passkey_confirm(shell, dut, number, digits) [all …]
|
| /Zephyr-4.3.0/tests/bluetooth/classic/smp_sc_only/pytest/ |
| D | test_smp.py | 104 async def send_cmd_to_iut(shell, dut, cmd, parse=None): argument 105 shell.exec_command(cmd) 116 async def bumble_acl_connect(shell, dut, device, target_address): argument 128 async def sm_passkey_confirm(shell, dut, number, digits): argument 144 shell.exec_command("bt auth-passkey-confirm") 151 async def sm_sc_only_init(hci_port, shell, dut, address, snoop_file, dut_sec) -> None: argument 168 result = await sm_passkey_confirm(shell, dut, number, digits) 201 await send_cmd_to_iut(shell, dut, "br clear all", None) 202 await send_cmd_to_iut(shell, dut, "bt clear all", None) 203 await send_cmd_to_iut(shell, dut, "bt auth none", None) [all …]
|
| /Zephyr-4.3.0/doc/connectivity/bluetooth/ |
| D | bluetooth-shell.rst | 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 21 shell/audio/mcp.rst 22 shell/audio/tbs.rst [all …]
|
| /Zephyr-4.3.0/tests/bluetooth/classic/smp_bonding/pytest/ |
| D | test_smp.py | 96 async def send_cmd_to_iut(shell, dut, cmd, parse=None): argument 97 shell.exec_command(cmd) 108 async def bumble_acl_connect(shell, dut, device, target_address): argument 119 async def sm_bonding_init_001(hci_port, shell, dut, address, snoop_file) -> None: argument 143 await send_cmd_to_iut(shell, dut, "bt clear all", None) 144 await send_cmd_to_iut(shell, dut, "br clear all", None) 145 await send_cmd_to_iut(shell, dut, "bt auth none", None) 146 await send_cmd_to_iut(shell, dut, "bt bondable off", None) 156 shell, dut, f"br connect {bumble_address}", f"Connected: {bumble_address}" 161 shell, dut, f"l2cap_br connect {format(l2cap_server_psm, 'x')} sec 2", None [all …]
|
| /Zephyr-4.3.0/subsys/bluetooth/controller/ll_sw/shell/ |
| D | ll.h | 16 int cmd_ll_addr_read(const struct shell *sh, size_t argc, char *argv[]); 18 int cmd_advx(const struct shell *sh, size_t argc, char *argv[]); 19 int cmd_scanx(const struct shell *sh, size_t argc, char *argv[]); 21 int cmd_test_tx(const struct shell *sh, size_t argc, char *argv[]); 22 int cmd_test_rx(const struct shell *sh, size_t argc, char *argv[]); 23 int cmd_test_end(const struct shell *sh, size_t argc, char *argv[]);
|
| /Zephyr-4.3.0/tests/bluetooth/classic/gap_s/pytest/ |
| D | test_gap_s.py | 60 shell, dut, cmd, response=None, expect_to_find_resp=True, max_wait_sec=20 argument 80 shell.exec_command(cmd) 128 async def tc_gap_s_1(hci_port, shell, dut, address) -> None: argument 152 await send_cmd_to_iut(shell, dut, "br pscan off") 153 await send_cmd_to_iut(shell, dut, "br iscan off") 158 await send_cmd_to_iut(shell, dut, "br pscan off") 161 await send_cmd_to_iut(shell, dut, "br iscan off") 197 async def tc_gap_s_2(hci_port, shell, dut, address) -> None: argument 221 await send_cmd_to_iut(shell, dut, "br pscan off") 222 await send_cmd_to_iut(shell, dut, "br iscan off") [all …]
|
| /Zephyr-4.3.0/include/zephyr/shell/ |
| D | shell_backend.h | 25 static inline const struct shell *shell_backend_get(uint32_t idx) in shell_backend_get() 27 const struct shell *backend; in shell_backend_get() 29 STRUCT_SECTION_GET(shell, idx, &backend); in shell_backend_get() 43 STRUCT_SECTION_COUNT(shell, &cnt); in shell_backend_count_get() 55 const struct shell *shell_backend_get_by_name(const char *backend_name);
|
| /Zephyr-4.3.0/tests/bluetooth/classic/smp_key_persist/pytest/ |
| D | test_smp.py | 89 async def send_cmd_to_iut(shell, dut, cmd, response=None, max_wait_sec=20): argument 92 exec_cmd_lines = shell.exec_command(cmd, timeout=20) 111 async def bumble_acl_connect(shell, dut, device, target_address): argument 122 async def sm_test_initial_connect(device, shell, dut, bumble_address, iut_address) -> None: argument 125 await send_cmd_to_iut(shell, dut, "br clear all") 126 await send_cmd_to_iut(shell, dut, "bt auth none") 127 await send_cmd_to_iut(shell, dut, "bt auth status") 128 connection = await bumble_acl_connect(shell, dut, device, iut_address) 159 async def sm_test_reboot(shell, dut) -> None: argument 174 await send_cmd_to_iut(shell, dut, "bt init", "Settings Loaded", max_wait_sec=30) [all …]
|
| /Zephyr-4.3.0/tests/bluetooth/classic/rfcomm_c/pytest/ |
| D | test_rfcomm_c.py | 70 shell, dut, cmd, response=None, expect_to_find_resp=True, max_wait_sec=20, shell_ret=False argument 93 shell_cmd_ret = shell.exec_command(cmd) 241 async def tc_rfcomm_c_1(hci_port, shell, dut, address, snoop_file) -> None: argument 268 await send_cmd_to_iut(shell, dut, "br pscan on") # set to connectable 269 await send_cmd_to_iut(shell, dut, "br iscan on") # set to general discoverable 270 await send_cmd_to_iut(shell, dut, "rfcomm_s register 9") # create RFCOMM server 271 await send_cmd_to_iut(shell, dut, "rfcomm_s register 7") # create RFCOMM server 296 await send_cmd_to_iut(shell, dut, "rfcomm_s connect 9", "connected") 297 await send_cmd_to_iut(shell, dut, "rfcomm_s connect 7", "connected") 324 await send_cmd_to_iut(shell, dut, "rfcomm_s send 9 1", "Unable to send", shell_ret=True) [all …]
|
| /Zephyr-4.3.0/tests/bluetooth/classic/gap_c/pytest/ |
| D | test_gap_c.py | 60 shell, dut, cmd, response=None, expect_to_find_resp=True, max_wait_sec=20 argument 80 shell.exec_command(cmd) 144 async def tc_gap_c_1(hci_port, shell, dut, address) -> None: argument 168 shell.exec_command("bt disconnect") 174 await send_cmd_to_iut(shell, dut, "br discovery on 8 limited", dongle_address, False) 175 await send_cmd_to_iut(shell, dut, "br discovery on", dongle_address) 181 await send_cmd_to_iut(shell, dut, f"br connect {dongle_address}", "Connected") 189 await send_cmd_to_iut(shell, dut, "bt disconnect", "Disconnected") 195 async def tc_gap_c_2(hci_port, shell, dut, address) -> None: argument 220 shell.exec_command("bt disconnect") [all …]
|
| /Zephyr-4.3.0/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-4.3.0/tests/drivers/stepper/shell/src/ |
| D | main.c | 36 const struct shell *sh = shell_backend_dummy_get_ptr(); in stepper_shell_setup() 49 const struct shell *sh = shell_backend_dummy_get_ptr(); in ZTEST() 58 const struct shell *sh = shell_backend_dummy_get_ptr(); in ZTEST() 67 const struct shell *sh = shell_backend_dummy_get_ptr(); in ZTEST() 76 const struct shell *sh = shell_backend_dummy_get_ptr(); in ZTEST() 88 const struct shell *sh = shell_backend_dummy_get_ptr(); in ZTEST() 99 const struct shell *sh = shell_backend_dummy_get_ptr(); in ZTEST() 107 const struct shell *sh = shell_backend_dummy_get_ptr(); in ZTEST() 116 const struct shell *sh = shell_backend_dummy_get_ptr(); in ZTEST() 128 const struct shell *sh = shell_backend_dummy_get_ptr(); in ZTEST() [all …]
|
| /Zephyr-4.3.0/subsys/shell/modules/ |
| D | Kconfig | 7 bool "Device shell" 10 This shell provides access to basic device data. 13 bool "Device shell init command" 17 Add an 'init' command to the device shell module in order 24 bool "Date shell" 27 This shell provides access to date and time based on Unix time. 30 bool "Devmem shell" 34 This shell command provides read/write access to physical memory. 37 bool "Application version information shell" 41 This shell command provides read access to application version information.
|
| /Zephyr-4.3.0/tests/bluetooth/classic/l2cap_s/pytest/ |
| D | test_l2cap_server.py | 34 async def l2cap_server_case_1(hci_port, shell, dut, address, snoop_file) -> None: argument 55 await send_cmd_to_iut(shell, dut, "br clear all", None) 58 connection = await bumble_acl_connect(shell, dut, device, target_address) 74 shell, 80 await bumble_acl_disconnect(shell, dut, device, connection) 83 async def l2cap_server_case_2(hci_port, shell, dut, address, snoop_file) -> None: argument 104 await send_cmd_to_iut(shell, dut, "br clear all", None) 107 connection = await bumble_acl_connect(shell, dut, device, target_address) 126 await bumble_acl_disconnect(shell, dut, device, connection) 129 async def l2cap_server_case_3(hci_port, shell, dut, address, snoop_file) -> None: argument [all …]
|