Home
last modified time | relevance | path

Searched +full:cli +full:- +full:mtd (Results 1 – 25 of 45) sorted by relevance

12

/external/openthread/examples/apps/cli/
Dmtd.cmake29 add_executable(ot-cli-mtd
34 target_include_directories(ot-cli-mtd PRIVATE ${COMMON_INCLUDES})
40 target_link_libraries(ot-cli-mtd PRIVATE
41 openthread-cli-mtd
43 openthread-mtd
45 openthread-cli-mtd
47 ot-config-mtd
48 ot-config
53 target_link_libraries(ot-cli-mtd PRIVATE -Wl,-map,ot-cli-mtd.map)
55 target_link_libraries(ot-cli-mtd PRIVATE -Wl,-Map=ot-cli-mtd.map)
[all …]
/external/openthread/src/cli/
Dmtd.cmake29 add_library(openthread-cli-mtd)
31 target_compile_definitions(openthread-cli-mtd
38 target_compile_options(openthread-cli-mtd PRIVATE
42 target_include_directories(openthread-cli-mtd PUBLIC ${OT_PUBLIC_INCLUDES} PRIVATE ${COMMON_INCLUDE…
44 target_sources(openthread-cli-mtd PRIVATE ${COMMON_SOURCES})
46 target_link_libraries(openthread-cli-mtd
48 openthread-mtd
51 ot-config-mtd
52 ot-config
56 target_link_libraries(openthread-cli-mtd PRIVATE ${OT_CLI_VENDOR_TARGET})
DBUILD.gn31 "cli.cpp",
32 "cli.hpp",
81 static_library("libopenthread-cli-ftd") {
83 public_deps = [ "../core:libopenthread-ftd" ]
88 static_library("libopenthread-cli-mtd") {
90 public_deps = [ "../core:libopenthread-mtd" ]
DCMakeLists.txt35 cli.cpp
59 set(OT_CLI_VENDOR_EXTENSION "" CACHE STRING "Path to CMake file to define and link cli vendor exten…
61 …(OT_CLI_VENDOR_TARGET "" CACHE STRING "Name of vendor extension CMake target to link with cli app")
63 target_compile_definitions(ot-config INTERFACE "OPENTHREAD_CONFIG_CLI_VENDOR_COMMANDS_ENABLE=1")
71 include(mtd.cmake)
Dcli_mesh_diag.cpp31 * This file implements the CLI interpreter for Mesh Diagnostics function.
38 #include "cli/cli.hpp"
39 #include "cli/cli_utils.hpp"
45 namespace Cli { namespace
55 * @cli meshdiag topology in Process()
58 * id:02 rloc16:0x0800 ext-addr:8aa57d2c603fe16c ver:4 - me - leader in Process()
59 * 3-links:{ 46 } in Process()
60 * id:46 rloc16:0xb800 ext-addr:fe109d277e0175cc ver:4 in Process()
61 * 3-links:{ 02 51 57 } in Process()
62 * id:33 rloc16:0x8400 ext-addr:d2e511a146b9e54d ver:4 in Process()
[all …]
/external/openthread/
DBUILD.gn69 group("libopenthread-ftd") {
71 deps = [ "src/core:libopenthread-ftd" ]
74 group("libopenthread-mtd") {
76 deps = [ "src/core:libopenthread-mtd" ]
79 group("libopenthread-radio") {
81 deps = [ "src/core:libopenthread-radio" ]
84 group("libopenthread-cli-ftd") {
86 deps = [ "src/cli:libopenthread-cli-ftd" ]
89 group("libopenthread-cli-mtd") {
91 deps = [ "src/cli:libopenthread-cli-mtd" ]
[all …]
D.gitignore32 ot-cli-ftd
33 ot-cli-mtd
34 ot-cli-radio
35 ot-ncp-ftd
36 ot-ncp-mtd
37 ot-rcp
42 cmake-build-*/**
50 ot-test-*
57 third_party/mbedtls/openthread-mbedtls-config.h
DCONTRIBUTING.md5 - [1 Code of Conduct](#code-of-conduct)
6 - [2 Bugs](#bugs)
7 - [3 New Features](#new-features)
8 - [4 Contributing Code](#contributing-code)
9 - [4.1 Initial Setup](#initial-setup)
10 - [4.2 Contributor License Agreement (CLA)](#contributor-license-agreement--cla-)
11 - [4.3 Submitting a Pull Request](#submitting-a-pull-request)
12 - [5 Contributing Documentation](#contributing-documentation)
20 …issue and step-by-step instructions for predictably reproducing the issue. Even better, you can [s…
28 - _Large feature_: first [submit a GitHub Issue](https://github.com/openthread/openthread/issues/ne…
[all …]
DCMakeLists.txt32 file(READ .default-version OT_DEFAULT_VERSION)
43 add_library(ot-config INTERFACE)
44 add_library(ot-config-ftd INTERFACE)
45 add_library(ot-config-mtd INTERFACE)
46 add_library(ot-config-radio INTERFACE)
54 target_include_directories(ot-config INTERFACE
64 target_compile_definitions(ot-config INTERFACE "BYTE_ORDER_BIG_ENDIAN=1")
71 # Check if this is a top-level CMake.
83 …option(OT_COMPILE_WARNING_AS_ERROR "whether to include -Werror -pedantic-errors with gcc-compatibl…
85 set(OT_CFLAGS -Werror -pedantic-errors)
[all …]
/external/openthread/script/
Dcheck-size30 set -euo pipefail
32 OT_TMP_DIR=/tmp/ot-size-report
35 OT_SHA_NEW=${GITHUB_SHA:-$(git rev-parse HEAD)}
38 OT_SHA_OLD="${OT_SHA_OLD:-$(git cat-file -p "${OT_SHA_NEW}" | grep 'parent ' | head -n1 | cut -d' '…
47 OT_REPORTER="${OT_SIZE_REPORTER-}"
52 if arm-none-eabi-gcc --version | grep -q 'Arm Embedded Processors 7'; then
57 …wget --tries 4 --no-check-certificate --quiet https://developer.arm.com/-/media/Files/downloads/gn…
58 && tar xjf gcc-arm-none-eabi-7-2018-q2-update-linux.tar.bz2)
59 export PATH=/tmp/gcc-arm-none-eabi-7-2018-q2-update/bin:$PATH
61 arm-none-eabi-gcc --version
[all …]
Dcmake-build35 # script/cmake-build ${platform}
39 # script/cmake-build ${platform} -D${option}=ON
43 # script/cmake-build ${platform} -D${option}=OFF
47 # OT_CMAKE_NINJA_TARGET="ot-cli-ftd" script/cmake-build ${platform}
48 # OT_CMAKE_NINJA_TARGET="ot-cli-ftd ot-cli-mtd" script/cmake-build ${platform}
52 # OT_CMAKE_BUILD_DIR="./build/temp" script/cmake-build ${platform}
56 # script/cmake-build simulation
58 # script/cmake-build simulation -DOT_FULL_LOGS=ON -DOT_CHANNEL_MANAGER=OFF
60 … OT_CMAKE_NINJA_TARGET="ot-cli-mtd" OT_CMAKE_BUILD_DIR="./build/temp" script/cmake-build simul…
63 set -euxo pipefail
[all …]
Dtest33 set -euo pipefail
35 OT_BUILDDIR="${OT_BUILDDIR:-${PWD}/build}"
53 OT_NODE_TYPE="${OT_NODE_TYPE:-cli}"
56 OT_NATIVE_IP="${OT_NATIVE_IP:-0}"
59 THREAD_VERSION="${THREAD_VERSION:-1.4}"
62 INTER_OP="${INTER_OP:-0}"
65 VERBOSE="${VERBOSE:-0}"
68 BORDER_ROUTING="${BORDER_ROUTING:-1}"
71 NAT64="${NAT64:-0}"
74 NAT64_SERVICE="${NAT64_SERVICE:-openthread}"
[all …]
/external/openthread/.github/workflows/
Dsimulation-1.1.yml33 branches-ignore:
34 - 'dependabot/**'
37 - 'main'
40 …group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.repository == 'opent…
41 cancel-in-progress: true
48 packet-verification:
49 runs-on: ubuntu-24.04
57 - name: Harden Runner
58 uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
60 egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
[all …]
/external/ot-br-posix/tests/scripts/expect/
D_common.exp1 #!/usr/bin/expect -f
38 -re $success {
41 -re $failure {
54 expect -re "\[\r\n \]($line)(?=\[\r\n>\])"
60 # 1. cli: The cli app. ot-cli-ftd or ot-cli-mtd
61 # 2. otbr: The otbr-agent.
64 # If type is 'cli', sim_app is the path of the cli app.
65 # If type is 'otbr', sim_app is the path of the coprocessor. It could be 'ot-rcp', 'ot-ncp-ftd'
66 # or 'ot-ncp-mtd'.
74 switch -regexp ${type} {
[all …]
/external/ot-br-posix/.github/workflows/
Dmeshcop.yml33 branches-ignore:
34 - 'dependabot/**'
37 - 'main'
40 …group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.repository == 'opent…
41 cancel-in-progress: true
46 runs-on: ubuntu-latest
48 fail-fast: false
52 - uses: actions/checkout@v4
55 - name: Bootstrap
60 - name: Build
[all …]
/external/openthread/tests/scripts/expect/
D_common.exp1 #!/usr/bin/expect -f
46 -re $success {
49 -re $failure {
62 expect -re "\[\r\n \]($line)(?=\[\r\n>\])"
75 set type "cli"
92 set radio_url "spinel+hdlc+uart://$ot_simulation_apps/ncp/ot-rcp?forkpty-arg=$id"
100 set gcov_prefix "ot-run/$argv0/ot-gcda.$id"
105 set radio_url "$radio_url&forkpty-arg=-L$ot_simulation_local_host"
110 switch -regexp ${type} {
111 {rcp|rcp-cli} {
[all …]
/external/openthread/tests/toranj/cli/
Dtest-035-context-id-change-addr-reg.py29 from cli import verify
30 from cli import verify_within
31 import cli
34 # -------------------------------------------------------------------------------------------------…
37 # This test validates the behavior of MTD children regarding the
39 # Specifically, it covers the scenario where SLAAC-based addresses
41 # corresponding on-mesh prefix in the Network Data changes. In this
42 # case, the MTD child should schedule an MLE Child Update Request
43 # exchange with its parent to re-register the addresses. This ensures
48 test_name = __file__[:-3] if __file__.endswith('.py') else __file__
[all …]
Dtest-027-slaac-address.py29 from cli import verify
30 from cli import verify_within
31 import cli
34 # -------------------------------------------------------------------------------------------------…
39 # r1 ---- r2
42 test_name = __file__[:-3] if __file__.endswith('.py') else __file__
43 print('-' * 120)
46 # -------------------------------------------------------------------------------------------------…
47 # Creating `cli.Node` instances
50 cli.Node.set_time_speedup_factor(speedup)
[all …]
/external/ot-br-posix/tests/scripts/
Dncp_mode29 # Test basic functionality of otbr-agent under NCP mode.
33 set -euxo pipefail
40 #---------------------------------------
42 #---------------------------------------
43 OT_CLI="${OT_CLI:-ot-cli-ftd}"
46 OT_NCP="${OT_NCP:-ot-ncp-ftd}"
49 OTBR_DOCKER_IMAGE="${OTBR_DOCKER_IMAGE:-otbr-ncp}"
52 ABS_TOP_BUILDDIR="$(cd "${top_builddir:-"${SCRIPT_DIR}"/../../}" && pwd)"
55 ABS_TOP_SRCDIR="$(cd "${top_srcdir:-"${SCRIPT_DIR}"/../../}" && pwd)"
73 readonly OTBR_VERBOSE="${OTBR_VERBOSE:-0}"
[all …]
/external/ot-br-posix/tests/rest/
Dtest-rest-server32 set -euxo pipefail
38 sudo killall otbr-agent || true
40 sudo killall ot-ctl || true
41 sudo killall ot-cli-ftd || true
42 sudo killall ot-cli-mtd || true
49 …o "${CMAKE_BINARY_DIR}"/src/agent/otbr-agent -d 7 -v -I wpan0 "spinel+hdlc+forkpty://$(command -v …
52 spawn ${CMAKE_BINARY_DIR}/third_party/openthread/repo/src/posix/ot-ctl
/external/openthread/tests/toranj/
DREADME_CLI.md1 # `toranj-cli`
3 `toranj-cli` is a test framework for OpenThread using its CLI interface.
7 - It is developed in Python.
8 - It can be used to simulate multiple nodes forming complex network topologies.
9 - It allows testing of network interactions between many nodes.
10 - `toranj` in CLI mode runs `ot-cli-ftd` on simulation platform (real-time).
19 Building OpenThread (NCP/CLI for FTD/MTD/RCP mode) with simulation platform using cmake
21 -- OpenThread Source Directory: /Users/abtink/GitHub/openthread
22 -- OpenThread CMake build type: Debug
23 -- Package Name: OPENTHREAD
[all …]
Dbuild.sh37 echo " all : Build OpenThread NCP, CLI, and RCP with simulation platform"
39 echo " ncp-15.4 : Build OpenThread NCP mode with simulation platform - 15.4 radio"
40 … echo " ncp-trel : Build OpenThread NCP mode with simulation platform - TREL radio "
41 …echo " ncp-15.4+trel : Build OpenThread NCP mode with simulation platform - multi radio (…
42 echo " cli : Build OpenThread CLI mode with simulation platform"
43 echo " cli-15.4 : Build OpenThread CLI mode with simulation platform - 15.4 radio"
44 … echo " cli-trel : Build OpenThread CLI mode with simulation platform - TREL radio "
45 …echo " cli-15.4+trel : Build OpenThread CLI mode with simulation platform - multi radio (…
48 echo " posix-15.4 : Build OpenThread POSIX - 15.4 radio"
49 echo " posix-trel : Build OpenThread POSIX - TREL radio "
[all …]
/external/ot-br-posix/tests/dbus/
Dtest-client32 set -euxo pipefail
34 OTBR_DBUS_SERVER_CONF=otbr-test-agent.conf
41 sudo systemctl stop test-otbr-agent || true
42 if [[ -v LEADER_PID ]]; then
45 if [[ -v CHILD_PID ]]; then
48 sudo killall dbus-monitor || true
49 sudo rm "/etc/dbus-1/system.d/${OTBR_DBUS_SERVER_CONF}" || true
51 sed -n "/$TEST_HELLO/,\$p" /var/log/syslog | grep 'ot-cli\|otbr'
58 sudo "${CMAKE_BINARY_DIR}"/third_party/openthread/repo/src/posix/ot-ctl "$@"
64 timeout 2 bash -c "while ! ot_ctl state; do sleep 1; done"
[all …]
/external/openthread/include/openthread/
Dthread_ftd.h2 * Copyright (c) 2016-2017, The OpenThread Authors.
47 * @addtogroup api-thread-router
67 …uint16_t mFrameErrorRate; ///< Frame error rate (0xffff->100%). Requires error tracking …
68 …uint16_t mMessageErrorRate; ///< (IPv6) msg error rate (0xffff->100%). Requires error trac…
72 bool mRxOnWhenIdle : 1; ///< rx-on-when-idle
88 OT_CACHE_ENTRY_STATE_CACHED = 0, // Entry is cached and in-use.
103 …bool mRampDown : 1; ///< Whether in ramp-down mode while in `OT_CACHE_ENTRY_STA…
104 …bool mValidLastTrans : 1; ///< Indicates whether last transaction time and ML-EID are…
107 … mTimeout; ///< Timeout in seconds (applicable if in snooped/query/retry-query states).
108 …uint16_t mRetryDelay; ///< Retry delay in seconds (applicable if in query-retry s…
[all …]
/external/flashrom/util/flashrom_tester/flashrom/src/
Dlib.rs58 pub fn from(s: &str) -> Result<FlashChip, &str> { in from()
64 pub fn to(fc: FlashChip) -> &'static str { in to()
71 pub fn to_split(fc: FlashChip) -> (&'static str, Option<&'static str>) { in to_split()
81 pub fn can_control_hw_wp(&self) -> bool { in can_control_hw_wp()
94 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt()
105 fn from(msg: T) -> Self { in from()
112 fn get_size(&self) -> Result<i64, FlashromError>; in get_size()
115 fn name(&self) -> Result<(String, String), FlashromError>; in name()
118 fn wp_range(&self, range: (i64, i64), wp_enable: bool) -> Result<bool, FlashromError>; in wp_range()
121 fn wp_list(&self) -> Result<String, FlashromError>; in wp_list()
[all …]

12