Home
last modified time | relevance | path

Searched +full:otbr +full:- +full:agent (Results 1 – 25 of 88) sorted by relevance

1234

/aosp_15_r20/external/ot-br-posix/src/agent/
H A DCMakeLists.txt2 # Copyright (c) 2020-2021, The OpenThread Authors.
29 add_executable(otbr-agent target
36 target_link_libraries(otbr-agent PRIVATE
37 $<$<BOOL:${OTBR_BORDER_AGENT}>:otbr-border-agent>
38 $<$<BOOL:${OTBR_BACKBONE_ROUTER}>:otbr-backbone-router>
39 $<$<BOOL:${OTBR_DBUS}>:otbr-dbus-server>
40 $<$<BOOL:${OTBR_MDNS}>:otbr-mdns>
41 $<$<BOOL:${OTBR_OPENWRT}>:otbr-ubus>
42 $<$<BOOL:${OTBR_REST}>:otbr-rest>
43 openthread-cli-ftd
[all …]
H A Dotbr-agent.init.in29 # Provides: otbr-agent
30 # Required-Start:
31 # Required-Stop:
32 # Should-Start:
33 # Should-Stop:
34 # Default-Start: 2 3 4 5
35 # Default-Stop: 0 1 6
36 # Short-Description: thread border agent
37 # Description: otbr-agent provides services to access thread device attached to border router
40 set -e
[all …]
H A Dapplication.hpp31 * This file includes definition for OTBR Agent.
37 #include "openthread-br/config.h"
61 #include "agent/vendor.hpp"
65 namespace otbr { namespace
76 * @addtogroup border-router-agent
79 * This module includes definition for OTBR application.
85 * This class implements OTBR application management.
113 * This method de-initializes the Application instance.
146 * Get the border agent the application is using.
148 * @returns The border agent.
[all …]
H A Dotbr-agent.service.in2 Description=OpenThread Border Router Agent
3 ConditionPathExists=@CMAKE_INSTALL_FULL_SBINDIR@/otbr-agent
8 EnvironmentFile=-@CMAKE_INSTALL_FULL_SYSCONFDIR@/default/otbr-agent
9 @EXEC_START_PRE@ExecStart=@CMAKE_INSTALL_FULL_SBINDIR@/otbr-agent $OTBR_AGENT_OPTS
11 Restart=on-failure
16 WantedBy=multi-user.target
17 Alias=otbr-agent.service
/aosp_15_r20/external/ot-br-posix/etc/openwrt/openthread-br/
H A DREADME.md12 echo src-link openthread "$(pwd)/etc/openwrt" >> ${OPENWRT_TOP_SRCDIR}/feeds.conf
15 ./scripts/feeds install openthread-br
20 OpenThread is not selected by default, so use menuconfig to select openthread-br (OpenThread Border…
29 2. Enable _openthread-br_ by moving the cursor to it and pressing **Y**.
35 make package/openthread-br/compile
41 make -j1 V=sc package/openthread-br/compile
49 opkg install openthread-br-1.0*.ipk
54 - `openthread-br` requires `ipset` and `iptables-mod-extra` packages if the firewall feature is ena…
55 - `openthread-br` requires `libavahi-client` and `avahi-daemon` package if the MDNS feature is enab…
61 Start otbr-agent manually:
[all …]
/aosp_15_r20/external/ot-br-posix/script/
H A D_otbr30 OTBR_TOP_BUILDDIR="${BUILD_DIR}/otbr"
33 OTBR_OPTIONS="${OTBR_OPTIONS-}"
36 REFERENCE_DEVICE="${REFERENCE_DEVICE:-0}"
42 sudo systemctl stop otbr-web || true
43 sudo systemctl stop otbr-agent || true
44 sudo systemctl disable otbr-web || true
45 sudo systemctl disable otbr-agent || true
46 ! sudo systemctl is-enabled otbr-web
47 ! sudo systemctl is-enabled otbr-agent
49 sudo killall otbr-web otbr-agent || true
[all …]
H A Dconsole40 TUN="${TUN:-wpan0}"
43 RADIO_URL="${RADIO_URL:-spinel+hdlc+uart:///dev/ttyUSB0}"
49 sudo killall otbr-agent otbr-web || true
64 sudo systemctl stop otbr-web otbr-agent || true
72 echo "otbr-agent -I $TUN -B ${INFRA_IF_NAME} -d 7 -v '${RADIO_URL}' &"
73 without WEB_GUI || echo "otbr-web -I $TUN &"
75 } | sudo sh -s
/aosp_15_r20/external/ot-br-posix/
H A D.gitignore32 # Build bi-products.
33 .local-version
37 stamp-h1
38 .stamp-h1
51 include/otbr-config.h
52 include/otbr-config.h.in
56 [._]*.s[a-w][a-z]
57 [._]s[a-w][a-z]
60 # Border router agent
61 src/agent/otbr-agent
[all …]
/aosp_15_r20/external/ot-br-posix/src/openwrt/
H A DCMakeLists.txt31 configure_file(otbr-agent.init.in otbr-agent.init)
32 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/otbr-agent.init
34 RENAME otbr-agent)
36 configure_file(otbr-agent.uci-config.in otbr-agent.uci-config)
37 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/otbr-agent.uci-config
39 RENAME otbr-agent)
43 configure_file(otbr-firewall.init.in otbr-firewall.init)
44 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/otbr-firewall.init
46 RENAME otbr-firewall)
H A Dotbr-agent.init.in36 local uci_thread_if_name=$(uci -q get otbr-agent.service.thread_if_name)
37 local uci_infra_if_name=$(uci -q get otbr-agent.service.infra_if_name)
38 local uci_uart_device=$(uci -q get otbr-agent.service.uart_device)
39 local uci_uart_baudrate=$(uci -q get otbr-agent.service.uart_baudrate)
42 …CMAKE_INSTALL_FULL_SBINDIR@/otbr-agent -I $uci_thread_if_name -B $uci_infra_if_name spinel+hdlc+ua…
/aosp_15_r20/external/openthread/tools/harness-simulation/posix/etc/
H A Dserver.patch1 --- script/server 2022-08-15 11:41:53.915673348 +0800
2 +++ script/server2 2022-08-15 11:43:12.387100651 +0800
3 @@ -50,6 +50,7 @@
4 …systemctl is-active avahi-daemon || sudo systemctl start avahi-daemon || die 'Failed to start avah…
5 …without WEB_GUI || systemctl is-active otbr-web || sudo systemctl start otbr-web || die 'Failed to…
6 …systemctl is-active otbr-agent || sudo systemctl start otbr-agent || die 'Failed to start otbr-age…
7 + systemctl is-active commissionerd || sudo systemctl start commissionerd || die 'Failed to …
11 @@ -58,6 +59,7 @@
12 …sudo service avahi-daemon status || sudo service avahi-daemon start || die 'Failed to start avahi!'
13 …sudo service otbr-agent status || sudo service otbr-agent start || die 'Failed to start otbr-agent
[all …]
/aosp_15_r20/external/ot-br-posix/tests/scripts/
H A Dauto-attach29 set -euxo pipefail
34 ABS_TOP_BUILDDIR="$(cd "${top_builddir:-"${SCRIPT_DIR}"/../../}" && pwd)"
37 OTBR_AGENT="${ABS_TOP_BUILDDIR}/src/agent/otbr-agent"
40 OT_CTL="${ABS_TOP_BUILDDIR}/third_party/openthread/repo/src/posix/ot-ctl"
43 OT_RCP=$(command -v ot-rcp)
50 sudo killall otbr-agent || true
57 sudo "${OTBR_AGENT}" -I wpan0 -v -d 6 "spinel+hdlc+forkpty://${OT_RCP}?forkpty-arg=1" --auto-attach…
58 sudo "${OTBR_AGENT}" -I wpan0 -v -d 6 "spinel+hdlc+forkpty://${OT_RCP}?forkpty-arg=1" --auto-attach…
59 sudo "${OTBR_AGENT}" -I wpan0 -v -d 6 "spinel+hdlc+forkpty://${OT_RCP}?forkpty-arg=1" --auto-attach…
61 sudo cp "${ABS_TOP_BUILDDIR}/src/agent/otbr-agent.conf" /etc/dbus-1/system.d/
[all …]
H A Dcheck-scripts30 set -eux
34 sudo dbus-send --system \
35 --dest=org.freedesktop.DBus \
36 --type=method_call \
37 --print-reply \
39 org.freedesktop.DBus.ListNames | grep -q '"io.openthread.BorderRouter.wpan0"'
45 …UPSTART_JOB=otbr-agent sudo -E otbr-agent -d7 -v "spinel+hdlc+forkpty://$(command -v ot-rcp)?forkp…
49 if [[ "$(ps --no-headers -o s "${UPSTART_JOB_PID}")" != T ]]; then
50 echo 'otbr-agent is not in Stopped state'
54 echo 'Continue otbr-agent'
[all …]
H A Dmeshcop35 set -euxo pipefail
38 # - commissioning
39 # - mdns_service
40 TEST_CASE="${TEST_CASE:-commissioning}"
50 #---------------------------------------
52 #---------------------------------------
53 OT_RCP="ot-rcp"
56 OT_CLI="${OT_CLI:-ot-cli-ftd}"
59 ABS_TOP_BUILDDIR="$(cd "${top_builddir:-"${SCRIPT_DIR}"/../../}" && pwd)"
62 ABS_TOP_SRCDIR="$(cd "${top_srcdir:-"${SCRIPT_DIR}"/../../}" && pwd)"
[all …]
H A 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 ABS_TOP_BUILDDIR="$(cd "${top_builddir:-"${SCRIPT_DIR}"/../../}" && pwd)"
52 ABS_TOP_SRCDIR="$(cd "${top_srcdir:-"${SCRIPT_DIR}"/../../}" && pwd)"
70 readonly OTBR_VERBOSE="${OTBR_VERBOSE:-0}"
72 #----------------------------------------
[all …]
H A Dinfra-link-selector29 set -euxo pipefail
34 ABS_TOP_BUILDDIR="$(cd "${top_builddir:-"${SCRIPT_DIR}"/../../}" && pwd)"
37 OTBR_AGENT="${ABS_TOP_BUILDDIR}/src/agent/otbr-agent"
40 OT_RCP=$(command -v ot-rcp)
47 sudo killall otbr-agent || true
58 sudo cp "${ABS_TOP_BUILDDIR}/src/agent/otbr-agent.conf" /etc/dbus-1/system.d/
59 sudo chmod +r /etc/dbus-1/system.d/otbr-agent.conf
86 sudo "${OTBR_AGENT}" -I wpan0 -v -d7 -B ilstest0 -B ilstest1 -B ilstest2 "spinel+hdlc+forkpty://${O…
90 grep "\-ILS\-\-\-\-\-: Infra link \(selected\|unchanged\|switched\)" output | tail -1
95 if pgrep otbr-agent; then
[all …]
/aosp_15_r20/external/ot-br-posix/tests/dbus/
H A Dtest-client29 # Test build and run otbr dbus server
32 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 "$@"
[all …]
/aosp_15_r20/external/ot-br-posix/src/proto/
H A Dthread_telemetry.proto35 // ---------------------------------------------------------------------------
37 // | [1 - 500) | Primary fields logged from OTBR-agent/OpenThread.
38 // | [500-600) | OTBR vendor fields logged from OTBR-agent/OpenThread.
40 // ---------------------------------------------------------------------------
45 // Signed seconds of the span of time. Must be from -315,576,000,000
53 // of one second or more, a non-zero value for the `nanos` field must be
54 // of the same sign as the `seconds` field. Must be from -999,999,999
194 // The number of Router Advertisement packets received by otbr-agent on the
199 // otbr-agent on the infra link.
203 // otbr-agent on the infra link.
[all …]
H A Dthreadnetwork_atoms.proto143 // The number of Router Advertisement packets received by otbr-agent on the
148 // otbr-agent on the infra link.
152 // otbr-agent on the infra link.
155 // The number of Router Solicitation packets received by otbr-agent on the
160 // otbr-agent on the infra link.
164 // otbr-agent on the infra link.
420 // The number of ePSKc activation failures caused by invalid border agent
459 // The border agent counters
482 // Information about the Border Agent
557 …// 0~15: uint16_t frame_error_rate. Frame error rate (0xffff->100%). Requires error tracking featu…
[all …]
/aosp_15_r20/external/openthread/tools/harness-simulation/harness/Thread_Harness/THCI/
H A DOpenThread_BR_Sim.py94 stdin, stdout, stderr = self.__handle.exec_command('docker exec %s bash -c %s' %
104 if i < retry - 1:
140 'cmd-start-otbr-agent': 'service otbr-agent start',
141 'cmd-stop-otbr-agent': 'service otbr-agent stop',
142 'cmd-restart-otbr-agent': 'service otbr-agent restart',
143 'cmd-restart-radvd': 'service radvd stop; service radvd start',
/aosp_15_r20/external/openthread/tools/harness-thci/
H A DOpenThread_BR.py49 LOGX = re.compile(r'.*Under-voltage detected!')
52 assert LOGX.match('[57522.618196] Under-voltage detected! (0x00050005)')
54 OTBR_AGENT_SYSLOG_PATTERN = re.compile(r'raspberrypi otbr-agent\[\d+\]: (.*)')
56 …'Jun 23 05:21:22 raspberrypi otbr-agent[323]: =========[[THCI] direction=send | type=JOIN_FIN.req …
110 if i < retry - 1:
120 print('%s - %s - %s' % (self.port, time.strftime('%b %d %H:%M:%S'), msg))
173 print('%s - %s - %s' % (self.port, time.strftime('%b %d %H:%M:%S'), msg))
328 self.bash('ip -6 addr del 910b::1 dev %s || true' % self.backboneNetif)
329 self.bash('ip -6 addr del fd00:7d03:7d03:7d03::1 dev %s || true' % self.backboneNetif)
355 cmd = 'nohup ~/repo/openthread/tests/scripts/thread-cert/mcast6.py wpan0 %s' % sAddr
[all …]
/aosp_15_r20/frameworks/proto_logging/stats/atoms/threadnetwork/
H A Dthreadnetwork_atoms.proto8 * http://www.apache.org/licenses/LICENSE-2.0
133 // The number of Router Advertisement packets received by otbr-agent on the
138 // otbr-agent on the infra link.
142 // otbr-agent on the infra link.
145 // The number of Router Solicitation packets received by otbr-agent on the
150 // otbr-agent on the infra link.
154 // otbr-agent on the infra link.
410 // The number of ePSKc activation failures caused by invalid border agent
449 // The border agent counters
472 // Information about the Border Agent
[all …]
/aosp_15_r20/external/ot-br-posix/src/border_agent/
H A Dborder_agent.hpp31 * This file includes definition for Thread border agent.
37 #include "openthread-br/config.h"
64 namespace otbr { namespace
67 * @addtogroup border-router-border-agent
70 * This module includes definition for Thread border agent
76 * This class implements Thread border agent functionality.
85 * The constructor to initialize the Thread border agent.
90 BorderAgent(otbr::Ncp::RcpHost &aHost, Mdns::Publisher &aPublisher);
106 …* @param[in] aNonStandardTxtEntries Non-standard (vendor-specific) TXT entries whose key MUST sta…
119 * This method enables/disables the Border Agent.
[all …]
/aosp_15_r20/external/ot-br-posix/tests/scripts/expect/
H A Dncp_join_leave.exp1 #!/usr/bin/expect -f
48 # Step 2. Start otbr-agent with a NCP and join the network by dbus join method
49 spawn_node 2 otbr $::env(EXP_OT_NCP_PATH)
52 spawn dbus-send --system --dest=io.openthread.BorderRouter.wpan0 --type=method_call --print-reply /…
55 # Step 3. Wait 10 seconds, check if the otbr-agent has attached successfully
57 spawn dbus-send --system --dest=io.openthread.BorderRouter.wpan0 --print-reply --reply-timeout=1000…
58 expect -re {router|child} {
65 # Step 4. Use dbus leave method to let otbr-agent leave the network
66 spawn dbus-send --system --dest=io.openthread.BorderRouter.wpan0 --type=method_call --print-reply /…
69 # Step 5. Verify the state of otbr-agent is 'disabled'
[all …]
/aosp_15_r20/external/ot-br-posix/src/dbus/server/
H A Ddbus_agent.hpp31 * This file includes definitions for d-bus agent.
37 #include "openthread-br/config.h"
53 namespace otbr { namespace
60 * The constructor of dbus agent.
65 DBusAgent(otbr::Ncp::ThreadHost &aHost, Mdns::Publisher &aPublisher);
68 * This method initializes the dbus agent.
70 void Init(otbr::BorderAgent &aBorderAgent);
90 otbr::Ncp::ThreadHost &mHost;
94 * This map is used to track DBusWatch-es.
100 } // namespace otbr

1234