ehatool 6.0.0.dev0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ehatool/VERSION +1 -0
- ehatool/__init__.py +4 -0
- ehatool/acceptance.py +92 -0
- ehatool/brt27.py +105 -0
- ehatool/brt27_sim.py +114 -0
- ehatool/calibration.py +111 -0
- ehatool/can_sniff.py +162 -0
- ehatool/cia402.py +31 -0
- ehatool/cli.py +541 -0
- ehatool/console.py +31 -0
- ehatool/device/__init__.py +4 -0
- ehatool/device/can.py +201 -0
- ehatool/device/can_discovery.py +387 -0
- ehatool/device/can_discovery.toml +19 -0
- ehatool/device/io.py +20 -0
- ehatool/devices.py +187 -0
- ehatool/diagnostics.py +58 -0
- ehatool/diagnostics.toml +208 -0
- ehatool/discovery.py +95 -0
- ehatool/display.toml +127 -0
- ehatool/ecat.py +520 -0
- ehatool/ecat.toml +17 -0
- ehatool/ecat_probe.py +401 -0
- ehatool/ecat_probe.toml +14 -0
- ehatool/eha_od.json +5871 -0
- ehatool/experiment.py +576 -0
- ehatool/image.py +70 -0
- ehatool/info.py +121 -0
- ehatool/info.toml +41 -0
- ehatool/install_host.py +243 -0
- ehatool/install_host.toml +27 -0
- ehatool/link.py +811 -0
- ehatool/link.toml +18 -0
- ehatool/live.py +112 -0
- ehatool/motor.py +86 -0
- ehatool/od.py +200 -0
- ehatool/odrive.py +450 -0
- ehatool/output.py +208 -0
- ehatool/ram_load.py +62 -0
- ehatool/scope.py +50 -0
- ehatool/sil.py +260 -0
- ehatool/update.py +320 -0
- ehatool/usb_discovery.py +164 -0
- ehatool/usb_discovery.toml +16 -0
- ehatool/web/__init__.py +28 -0
- ehatool/web/brt_sim.py +130 -0
- ehatool/web/canbus.py +95 -0
- ehatool/web/devices.py +216 -0
- ehatool/web/experiments.py +226 -0
- ehatool/web/job_params.py +208 -0
- ehatool/web/layout.toml +61 -0
- ehatool/web/longrun.py +430 -0
- ehatool/web/polling.py +41 -0
- ehatool/web/recipes/bench.toml +18 -0
- ehatool/web/records.py +333 -0
- ehatool/web/requests.py +254 -0
- ehatool/web/server.py +1051 -0
- ehatool/web/session.py +1552 -0
- ehatool/web/static/THIRD_PARTY_LICENSES.txt +133 -0
- ehatool/web/static/assets/ehapower-logo-Cr84XeX3.png +0 -0
- ehatool/web/static/assets/ehapower-mark-Con0OjPM.png +0 -0
- ehatool/web/static/assets/index-CdLvwKa-.css +1 -0
- ehatool/web/static/assets/index-DiLUQD1i.js +134 -0
- ehatool/web/static/index.html +16 -0
- ehatool/web/streams.py +64 -0
- ehatool/web/workspaces.py +124 -0
- ehatool/workflows/__init__.py +4 -0
- ehatool/workflows/cancheck.py +394 -0
- ehatool/workflows/cancheck.toml +9 -0
- ehatool/workflows/checks.py +43 -0
- ehatool/workflows/usbcheck.py +212 -0
- ehatool-6.0.0.dev0.dist-info/METADATA +38 -0
- ehatool-6.0.0.dev0.dist-info/RECORD +77 -0
- ehatool-6.0.0.dev0.dist-info/WHEEL +5 -0
- ehatool-6.0.0.dev0.dist-info/entry_points.txt +2 -0
- ehatool-6.0.0.dev0.dist-info/licenses/LICENSE +21 -0
- ehatool-6.0.0.dev0.dist-info/top_level.txt +1 -0
ehatool/devices.py
ADDED
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
# Copyright The eha-firmware Contributors
|
|
2
|
+
|
|
3
|
+
## @file
|
|
4
|
+
## @brief 型号绑定与设备描述的读取与检查:生成器(scripts/gen_devices.py、scripts/gen_od.py)与主机工具
|
|
5
|
+
## (`ehatool odrive` 的装配设置)共用同一份解析,事实只在 devices.toml 与设备描述中写一次。
|
|
6
|
+
##
|
|
7
|
+
## 路径相对仓库根目录;从 pip 安装运行时这些文件不在,读到即报错。
|
|
8
|
+
|
|
9
|
+
import pathlib
|
|
10
|
+
import re
|
|
11
|
+
import tomllib
|
|
12
|
+
|
|
13
|
+
ROOT = pathlib.Path(__file__).resolve().parents[2]
|
|
14
|
+
|
|
15
|
+
KINDS = ("encoder", "pressure", "displacement", "temperature", "drive")
|
|
16
|
+
DEVICE_KEYS = {"kind", "model", "adapter", "source", "observation", "addressing", "raw_unit", "geometry",
|
|
17
|
+
"spec", "roles", "settings", "state_map", "fault_words", "watchdog_fault", "autonomous_stop", "output",
|
|
18
|
+
"measurement", "conversion_max_ms", "spi", "position", "registers", "diagnostic_bits",
|
|
19
|
+
"emulates", "sim"}
|
|
20
|
+
## @brief 仿真版本专属的键:只描述"这个器件在仿真世界里怎样表现",不含故障注入(那由宿主程序或测试直接调用)。
|
|
21
|
+
SIM_KEYS = {"temperature_c", "report_period_us", "reply_delay_us"}
|
|
22
|
+
## @brief 型号绑定 [sim] 段的键:选仿真世界的模型。仿真世界参数在宿主侧由 eha_sil --model 覆盖。
|
|
23
|
+
WORLD_KEYS = {"model"}
|
|
24
|
+
WORLD_MODELS = ("hydraulic",)
|
|
25
|
+
## @brief 地址域:node 为 ID 就是节点地址(只占一个 ID),node_shifted 为 ID = 节点左移 id_shift 位加命令号。
|
|
26
|
+
ADDRESSING_KEYS = {"mode", "frame", "id_shift", "command_count"}
|
|
27
|
+
ADDRESS_MODES = ("node", "node_shifted")
|
|
28
|
+
## @brief 帧类别允许的最大 ID;接收作用域按此上界检查。
|
|
29
|
+
FRAME_MAX_ID = {"classic_standard": 0x7FF, "extended": 0x1FFFFFFF, "fd": 0x7FF}
|
|
30
|
+
# 总线只写板上的端口名:速率与帧型是这块板的总线事实,在 board.toml 的 [bus.<端口>] 中写一次。
|
|
31
|
+
BUS_KEYS = {"board_port"}
|
|
32
|
+
INSTANCE_KEYS = {"device", "sim_device", "bus", "port", "node", "settings", "query", "purpose"}
|
|
33
|
+
KIND_INSTANCE_KEYS = {
|
|
34
|
+
"displacement": {"counts_per_rev", "full_scale_um"},
|
|
35
|
+
"pressure": {"stall_timeout_ms", "range_mpa"},
|
|
36
|
+
"temperature": {"resolution_bits"},
|
|
37
|
+
}
|
|
38
|
+
NEED_NODE = ("drive", "displacement")
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
## @brief 表中有白名单以外的键时抛出 ValueError。
|
|
42
|
+
def check_keys(where, table, allowed):
|
|
43
|
+
unknown = sorted(set(table) - allowed)
|
|
44
|
+
if unknown:
|
|
45
|
+
raise ValueError(f"{where} 有未知的键 {'、'.join(unknown)}")
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
## @brief 读取设备描述并检查:kind 在五类之内且与所在目录一致,键在白名单内。
|
|
49
|
+
## 带 emulates 的是虚拟设备(sim.toml):继承被替代的真实描述,只覆盖与仿真有关的项,电气窗口与错误字仍只有一处。
|
|
50
|
+
def load_device(path):
|
|
51
|
+
full = ROOT / path
|
|
52
|
+
if not full.is_file():
|
|
53
|
+
raise ValueError(f"设备描述 {path} 不存在")
|
|
54
|
+
with open(full, "rb") as f:
|
|
55
|
+
device = tomllib.load(f)
|
|
56
|
+
check_keys(path, device, DEVICE_KEYS)
|
|
57
|
+
if "sim" in device and "emulates" not in device:
|
|
58
|
+
raise ValueError(f"{path} 的 [sim] 只用于虚拟设备(须同时给出 emulates)")
|
|
59
|
+
if "emulates" in device:
|
|
60
|
+
check_keys(f"{path} [sim]", device.get("sim", {}), SIM_KEYS)
|
|
61
|
+
base = load_device(device["emulates"])
|
|
62
|
+
if base["kind"] != device.get("kind"):
|
|
63
|
+
raise ValueError(f"{path} 的 kind {device.get('kind')!r} 与被替代的 {device['emulates']} 的 "
|
|
64
|
+
f"{base['kind']!r} 不一致")
|
|
65
|
+
device = {**base, **device}
|
|
66
|
+
for key in ("kind", "model", "adapter"):
|
|
67
|
+
if key not in device:
|
|
68
|
+
raise ValueError(f"{path} 缺少 {key}")
|
|
69
|
+
if device["kind"] not in KINDS:
|
|
70
|
+
raise ValueError(f"{path} 的 kind {device['kind']!r} 不在 {'、'.join(KINDS)} 之内")
|
|
71
|
+
if full.parent.parent.name != device["kind"]:
|
|
72
|
+
raise ValueError(f"{path} 的 kind {device['kind']!r} 与所在目录 {full.parent.parent.name!r} 不一致")
|
|
73
|
+
# 挂在总线上按 ID 收帧的设备必须写明地址域:生成器据此算接收作用域并检查冲突。
|
|
74
|
+
if "addressing" not in device:
|
|
75
|
+
if device["kind"] in NEED_NODE:
|
|
76
|
+
raise ValueError(f"{path} 缺少 [addressing]")
|
|
77
|
+
return device
|
|
78
|
+
addressing = device["addressing"]
|
|
79
|
+
where = f"{path} [addressing]"
|
|
80
|
+
check_keys(where, addressing, ADDRESSING_KEYS)
|
|
81
|
+
if addressing.get("mode") not in ADDRESS_MODES:
|
|
82
|
+
raise ValueError(f"{where} 的 mode 须为 {'、'.join(ADDRESS_MODES)} 之一")
|
|
83
|
+
if addressing.get("frame") not in FRAME_MAX_ID:
|
|
84
|
+
raise ValueError(f"{where} 的 frame 须为 {'、'.join(FRAME_MAX_ID)} 之一")
|
|
85
|
+
if addressing["mode"] == "node_shifted":
|
|
86
|
+
for key in ("id_shift", "command_count"):
|
|
87
|
+
if type(addressing.get(key)) is not int:
|
|
88
|
+
raise ValueError(f"{where} 的 {key} 须为整数")
|
|
89
|
+
if not 0 <= addressing["id_shift"] <= 15 or addressing["command_count"] < 1:
|
|
90
|
+
raise ValueError(f"{where} 的 id_shift 须在 0–15、command_count 须为正")
|
|
91
|
+
return device
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
## @brief 一个实例在总线上的接收作用域 (首个 ID, ID 个数)。ID 按设备描述的 [addressing] 与实例的 node 算出;超出帧类别的 ID 上界即报错。
|
|
95
|
+
def receive_scope(device, node, where):
|
|
96
|
+
addressing = device["addressing"]
|
|
97
|
+
limit = FRAME_MAX_ID[addressing["frame"]]
|
|
98
|
+
if type(node) is not int or node < 1:
|
|
99
|
+
raise ValueError(f"{where} 的 node 须为正整数")
|
|
100
|
+
if addressing["mode"] == "node":
|
|
101
|
+
first, count = node, 1
|
|
102
|
+
else:
|
|
103
|
+
first, count = node << addressing["id_shift"], addressing["command_count"]
|
|
104
|
+
if first + count - 1 > limit:
|
|
105
|
+
raise ValueError(f"{where} 的接收作用域 0x{first:03X}–0x{first + count - 1:03X} 超出 {addressing['frame']} 的 ID 上界 0x{limit:X}")
|
|
106
|
+
return first, count
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
## @brief 读取板级文件 board.toml;没有时返回空表(不作板级检查)。
|
|
110
|
+
def load_board(path):
|
|
111
|
+
if path is None:
|
|
112
|
+
return {}
|
|
113
|
+
with open(path, "rb") as f:
|
|
114
|
+
return tomllib.load(f)
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
## @brief 把总线补全为 {板端口名, 速率, 数据段速率}:devices.toml 只给端口,速率取 board.toml 的 [bus.<端口>]。
|
|
118
|
+
## @exception ValueError 板级文件里没有该端口的总线定义。
|
|
119
|
+
def resolve_bus(where, bus, board):
|
|
120
|
+
port = bus["board_port"]
|
|
121
|
+
busses = board.get("bus", {})
|
|
122
|
+
if port not in busses:
|
|
123
|
+
raise ValueError(f"{where} 的板端口 {port!r} 在 board.toml 的 [bus.{port}] 中没有总线定义")
|
|
124
|
+
spec = busses[port]
|
|
125
|
+
return {"board_port": port, "bitrate_bps": int(spec["bitrate_bps"]),
|
|
126
|
+
"data_bitrate_bps": int(spec.get("data_bitrate_bps", 0))}
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
## @brief 型号的板名:取型号的 product.cmake(EHA_BOARD)。
|
|
130
|
+
## @exception ValueError product.cmake 中没有 EHA_BOARD。
|
|
131
|
+
def product_board(product_dir):
|
|
132
|
+
text = (pathlib.Path(product_dir) / "product.cmake").read_text(encoding="utf-8")
|
|
133
|
+
match = re.search(r"^\s*set\(EHA_BOARD\s+([^\s)]+)\s*\)", text, re.MULTILINE)
|
|
134
|
+
if match is None:
|
|
135
|
+
raise ValueError(f"{product_dir}/product.cmake 中没有 EHA_BOARD")
|
|
136
|
+
return match.group(1)
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
## @brief 型号所用的板级文件 firmware/boards/<板>/board.toml。
|
|
140
|
+
def product_board_file(product_dir):
|
|
141
|
+
return ROOT / "firmware/boards" / product_board(product_dir) / "board.toml"
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
## @brief 读取并检查产品绑定,返回 (总线, 实例名到 (实例, 设备描述) 的表)。出错时抛出 ValueError。
|
|
145
|
+
## simulation 为真时,给了 sim_device 的实例按虚拟设备生成;[sim] 段只在仿真构建中读取。
|
|
146
|
+
## board 为板级文件 board.toml 的内容:总线的速率与帧型从它取,devices.toml 只写端口名。
|
|
147
|
+
def load_binding(path, simulation=False, board=None):
|
|
148
|
+
with open(path, "rb") as f:
|
|
149
|
+
binding = tomllib.load(f)
|
|
150
|
+
check_keys("devices.toml 顶层", binding, {"bus", "instance", "sim"})
|
|
151
|
+
buses = binding.get("bus", {})
|
|
152
|
+
board = board or {}
|
|
153
|
+
for name, bus in buses.items():
|
|
154
|
+
check_keys(f"[bus.{name}]", bus, BUS_KEYS)
|
|
155
|
+
if "board_port" not in bus:
|
|
156
|
+
raise ValueError(f"[bus.{name}] 缺少 board_port")
|
|
157
|
+
buses[name] = resolve_bus(f"[bus.{name}]", bus, board)
|
|
158
|
+
world = binding.get("sim")
|
|
159
|
+
if world is not None:
|
|
160
|
+
check_keys("[sim]", world, WORLD_KEYS)
|
|
161
|
+
if world.get("model") not in WORLD_MODELS:
|
|
162
|
+
raise ValueError(f"[sim] 的 model 须为 {'、'.join(WORLD_MODELS)} 之一")
|
|
163
|
+
instances = {}
|
|
164
|
+
for name, instance in binding.get("instance", {}).items():
|
|
165
|
+
where = f"[instance.{name}]"
|
|
166
|
+
device = load_device(instance.get("device", ""))
|
|
167
|
+
sim = load_device(instance["sim_device"]) if "sim_device" in instance else None
|
|
168
|
+
if sim is not None:
|
|
169
|
+
if sim["kind"] != device["kind"]:
|
|
170
|
+
raise ValueError(f"{where} 的 sim_device 与 device 不是同一类设备")
|
|
171
|
+
if sim.get("emulates") != instance["device"]:
|
|
172
|
+
raise ValueError(f"{where} 的 sim_device 须用 emulates 指向本实例的 device"
|
|
173
|
+
f"({instance['device']}),否则电气窗口与错误字会写两份")
|
|
174
|
+
if simulation:
|
|
175
|
+
device = sim
|
|
176
|
+
check_keys(where, instance, INSTANCE_KEYS | KIND_INSTANCE_KEYS.get(device["kind"], set()))
|
|
177
|
+
if ("bus" in instance) == ("port" in instance):
|
|
178
|
+
raise ValueError(f"{where} 须在 bus 与 port 中给出且只给出一个")
|
|
179
|
+
if "bus" in instance and instance["bus"] not in buses:
|
|
180
|
+
raise ValueError(f"{where} 引用的总线 {instance['bus']!r} 不存在")
|
|
181
|
+
if device["kind"] in NEED_NODE and "node" not in instance:
|
|
182
|
+
raise ValueError(f"{where} 缺少 node")
|
|
183
|
+
for key in KIND_INSTANCE_KEYS.get(device["kind"], set()) - {"resolution_bits"}:
|
|
184
|
+
if key not in instance:
|
|
185
|
+
raise ValueError(f"{where} 缺少 {key}")
|
|
186
|
+
instances[name] = (instance, device)
|
|
187
|
+
return buses, instances
|
ehatool/diagnostics.py
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# Copyright The eha-firmware Contributors
|
|
2
|
+
|
|
3
|
+
## @file
|
|
4
|
+
## @brief 解码设备故障与 SDO 中止,结构化记录供 JSON 与终端共用。
|
|
5
|
+
|
|
6
|
+
import pathlib
|
|
7
|
+
import tomllib
|
|
8
|
+
|
|
9
|
+
with (pathlib.Path(__file__).resolve().parent / "diagnostics.toml").open("rb") as source:
|
|
10
|
+
_TEXT = tomllib.load(source)
|
|
11
|
+
|
|
12
|
+
# 保留以原始码索引的协议表,名称与码值依据 CANopenNode CO_SDO_abortCode_t。
|
|
13
|
+
SDO_ABORTS = {entry["code"]: entry for entry in _TEXT["sdo_abort"]}
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## @brief 解码 32 位 SDO 中止码;未知码保留数值,并以空名称表达未收录。
|
|
17
|
+
def decode_sdo_abort(code):
|
|
18
|
+
entry = SDO_ABORTS.get(code, _TEXT["sdo_unknown"])
|
|
19
|
+
return {
|
|
20
|
+
"kind": "sdo_abort",
|
|
21
|
+
"code": code,
|
|
22
|
+
"name": entry.get("name"),
|
|
23
|
+
"description_zh": entry["description_zh"],
|
|
24
|
+
"meaning_zh": entry["meaning_zh"],
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
## @brief 解码一次读到的 0x603F;故障名称、原意和反应类别取自对象字典。
|
|
29
|
+
def decode_error_code(od, code):
|
|
30
|
+
if code == 0:
|
|
31
|
+
return {"kind": "device_error", "code": code, "reaction": None, **_TEXT["device_zero"]}
|
|
32
|
+
|
|
33
|
+
fault = next((entry for entry in od.errors if entry["code"] == code), None)
|
|
34
|
+
if fault is None:
|
|
35
|
+
# 固件将 Core 1 故障子码放在 MOTOR 的低四位,单独命名的组合优先使用。
|
|
36
|
+
fault = next((entry for entry in od.errors
|
|
37
|
+
if entry["name"] == "MOTOR" and entry["code"] == (code & ~0xF)), None)
|
|
38
|
+
if fault is None:
|
|
39
|
+
return {"kind": "device_error", "code": code, "name": None,
|
|
40
|
+
"reaction": None, **_TEXT["device_unknown"]}
|
|
41
|
+
|
|
42
|
+
result = {
|
|
43
|
+
"kind": "device_error",
|
|
44
|
+
"code": code,
|
|
45
|
+
"name": fault["name"],
|
|
46
|
+
"description_zh": fault["desc"],
|
|
47
|
+
"reaction": fault["reaction"],
|
|
48
|
+
"meaning_zh": _TEXT["reaction_meanings"][fault["reaction"]],
|
|
49
|
+
}
|
|
50
|
+
if fault["code"] != code:
|
|
51
|
+
result["motor_subcode"] = code & 0xF
|
|
52
|
+
return result
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
## @brief 按结构化 SDO 记录渲染中止原因的文字。
|
|
56
|
+
def format_sdo_abort(code):
|
|
57
|
+
from .output import render_diagnostic
|
|
58
|
+
return render_diagnostic(decode_sdo_abort(code))
|
ehatool/diagnostics.toml
ADDED
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
# Copyright The eha-firmware Contributors
|
|
2
|
+
# 主机诊断中文文案。设备故障名称和原意仍以 eha_od.toml 为唯一来源。
|
|
3
|
+
# SDO 名称和数值对齐 CANopenNode 301/CO_SDOserver.h 的 CO_SDO_abortCode_t。
|
|
4
|
+
|
|
5
|
+
[device_zero]
|
|
6
|
+
name = "NONE"
|
|
7
|
+
description_zh = "无故障码"
|
|
8
|
+
meaning_zh = "本次读取 0x603F 为零,当前没有上报故障或锁存的保护码。"
|
|
9
|
+
|
|
10
|
+
[device_unknown]
|
|
11
|
+
description_zh = "当前对象字典未收录此码。"
|
|
12
|
+
meaning_zh = "保留设备返回的原始码,具体原因和反应未知。"
|
|
13
|
+
|
|
14
|
+
[sdo_unknown]
|
|
15
|
+
description_zh = "此版本主机工具未收录此中止码"
|
|
16
|
+
meaning_zh = "无法确定具体含义,请保留原始码并核对设备与协议资料。"
|
|
17
|
+
|
|
18
|
+
[reaction_meanings]
|
|
19
|
+
hold = "运行中触发时会快停并零速保持。保护仍锁存时,若在未通电状态请求使能会进入 Fault。当前状态见 0x6041。"
|
|
20
|
+
fault = "该条件触发驱动故障,按故障反应关断功率级。"
|
|
21
|
+
enable = "使能条件未满足,驱动拒绝进入运行并进入 Fault。"
|
|
22
|
+
host = "失联后的反应取决于 0x6007。请结合其配置值和状态字 0x6041 判断。"
|
|
23
|
+
|
|
24
|
+
[[sdo_abort]]
|
|
25
|
+
code = 0x05030000
|
|
26
|
+
name = "CO_SDO_AB_TOGGLE_BIT"
|
|
27
|
+
description_zh = "翻转位未交替变化"
|
|
28
|
+
meaning_zh = "分段传输的翻转位与协议要求不符,本次传输中止。"
|
|
29
|
+
|
|
30
|
+
[[sdo_abort]]
|
|
31
|
+
code = 0x05040000
|
|
32
|
+
name = "CO_SDO_AB_TIMEOUT"
|
|
33
|
+
description_zh = "SDO 协议超时"
|
|
34
|
+
meaning_zh = "应答方报告传输超时;写入是否已生效需另行确认,不应自动重发。"
|
|
35
|
+
|
|
36
|
+
[[sdo_abort]]
|
|
37
|
+
code = 0x05040001
|
|
38
|
+
name = "CO_SDO_AB_CMD"
|
|
39
|
+
description_zh = "命令说明符无效或未知"
|
|
40
|
+
meaning_zh = "请求使用了应答方无法识别或当前传输不接受的 SDO 命令。"
|
|
41
|
+
|
|
42
|
+
[[sdo_abort]]
|
|
43
|
+
code = 0x05040002
|
|
44
|
+
name = "CO_SDO_AB_BLOCK_SIZE"
|
|
45
|
+
description_zh = "块传输的块大小无效"
|
|
46
|
+
meaning_zh = "块传输请求中的块大小不符合协议要求。"
|
|
47
|
+
|
|
48
|
+
[[sdo_abort]]
|
|
49
|
+
code = 0x05040003
|
|
50
|
+
name = "CO_SDO_AB_SEQ_NUM"
|
|
51
|
+
description_zh = "块传输的序号无效"
|
|
52
|
+
meaning_zh = "块传输中的数据段序号不符合协议要求。"
|
|
53
|
+
|
|
54
|
+
[[sdo_abort]]
|
|
55
|
+
code = 0x05040004
|
|
56
|
+
name = "CO_SDO_AB_CRC"
|
|
57
|
+
description_zh = "块传输 CRC 错误"
|
|
58
|
+
meaning_zh = "块传输数据的 CRC 校验失败,本次传输中止。"
|
|
59
|
+
|
|
60
|
+
[[sdo_abort]]
|
|
61
|
+
code = 0x05040005
|
|
62
|
+
name = "CO_SDO_AB_OUT_OF_MEM"
|
|
63
|
+
description_zh = "内存不足"
|
|
64
|
+
meaning_zh = "应答方没有足够内存处理本次传输。"
|
|
65
|
+
|
|
66
|
+
[[sdo_abort]]
|
|
67
|
+
code = 0x06010000
|
|
68
|
+
name = "CO_SDO_AB_UNSUPPORTED_ACCESS"
|
|
69
|
+
description_zh = "不支持对该对象的访问"
|
|
70
|
+
meaning_zh = "对象不支持本次请求的访问方式。"
|
|
71
|
+
|
|
72
|
+
[[sdo_abort]]
|
|
73
|
+
code = 0x06010001
|
|
74
|
+
name = "CO_SDO_AB_WRITEONLY"
|
|
75
|
+
description_zh = "尝试读取只写对象"
|
|
76
|
+
meaning_zh = "该对象只接受写入,本次读取被拒绝。"
|
|
77
|
+
|
|
78
|
+
[[sdo_abort]]
|
|
79
|
+
code = 0x06010002
|
|
80
|
+
name = "CO_SDO_AB_READONLY"
|
|
81
|
+
description_zh = "尝试写入只读对象"
|
|
82
|
+
meaning_zh = "该对象只允许读取,本次写入被拒绝。"
|
|
83
|
+
|
|
84
|
+
[[sdo_abort]]
|
|
85
|
+
code = 0x06020000
|
|
86
|
+
name = "CO_SDO_AB_NOT_EXIST"
|
|
87
|
+
description_zh = "对象字典中不存在该对象"
|
|
88
|
+
meaning_zh = "设备未提供请求索引对应的对象,请核对对象地址与设备版本。"
|
|
89
|
+
|
|
90
|
+
[[sdo_abort]]
|
|
91
|
+
code = 0x06040041
|
|
92
|
+
name = "CO_SDO_AB_NO_MAP"
|
|
93
|
+
description_zh = "对象不能映射到 PDO"
|
|
94
|
+
meaning_zh = "标准用于 PDO 映射失败;EHA 还用它表示对象引用指向不存在的对象,需结合当前请求核对。"
|
|
95
|
+
|
|
96
|
+
[[sdo_abort]]
|
|
97
|
+
code = 0x06040042
|
|
98
|
+
name = "CO_SDO_AB_MAP_LEN"
|
|
99
|
+
description_zh = "映射对象的数量和长度超过 PDO 长度"
|
|
100
|
+
meaning_zh = "请求的映射超出 PDO 容量,请核对映射项数与总位数。"
|
|
101
|
+
|
|
102
|
+
[[sdo_abort]]
|
|
103
|
+
code = 0x06040043
|
|
104
|
+
name = "CO_SDO_AB_PRAM_INCOMPAT"
|
|
105
|
+
description_zh = "一般参数不兼容"
|
|
106
|
+
meaning_zh = "参数组合不兼容,单凭此码无法确定具体冲突的参数。"
|
|
107
|
+
|
|
108
|
+
[[sdo_abort]]
|
|
109
|
+
code = 0x06040047
|
|
110
|
+
name = "CO_SDO_AB_DEVICE_INCOMPAT"
|
|
111
|
+
description_zh = "设备内部一般不兼容"
|
|
112
|
+
meaning_zh = "设备报告内部不兼容,单凭此码无法确定具体组件或原因。"
|
|
113
|
+
|
|
114
|
+
[[sdo_abort]]
|
|
115
|
+
code = 0x06060000
|
|
116
|
+
name = "CO_SDO_AB_HW"
|
|
117
|
+
description_zh = "因硬件错误而访问失败"
|
|
118
|
+
meaning_zh = "应答方报告硬件错误,单凭此码无法确定具体故障部件。"
|
|
119
|
+
|
|
120
|
+
[[sdo_abort]]
|
|
121
|
+
code = 0x06070010
|
|
122
|
+
name = "CO_SDO_AB_TYPE_MISMATCH"
|
|
123
|
+
description_zh = "数据类型或服务参数长度不匹配"
|
|
124
|
+
meaning_zh = "请求的数据类型或字节数与对象要求不符。"
|
|
125
|
+
|
|
126
|
+
[[sdo_abort]]
|
|
127
|
+
code = 0x06070012
|
|
128
|
+
name = "CO_SDO_AB_DATA_LONG"
|
|
129
|
+
description_zh = "数据类型不匹配,服务参数长度过长"
|
|
130
|
+
meaning_zh = "请求携带的数据字节数超过对象要求。"
|
|
131
|
+
|
|
132
|
+
[[sdo_abort]]
|
|
133
|
+
code = 0x06070013
|
|
134
|
+
name = "CO_SDO_AB_DATA_SHORT"
|
|
135
|
+
description_zh = "数据类型不匹配,服务参数长度过短"
|
|
136
|
+
meaning_zh = "请求携带的数据字节数少于对象要求。"
|
|
137
|
+
|
|
138
|
+
[[sdo_abort]]
|
|
139
|
+
code = 0x06090011
|
|
140
|
+
name = "CO_SDO_AB_SUB_UNKNOWN"
|
|
141
|
+
description_zh = "子索引不存在"
|
|
142
|
+
meaning_zh = "设备未提供该索引下请求的子索引。"
|
|
143
|
+
|
|
144
|
+
[[sdo_abort]]
|
|
145
|
+
code = 0x06090030
|
|
146
|
+
name = "CO_SDO_AB_INVALID_VALUE"
|
|
147
|
+
description_zh = "参数值无效(仅写入)"
|
|
148
|
+
meaning_zh = "写入值不被接受,请核对范围、枚举值及参数约束。"
|
|
149
|
+
|
|
150
|
+
[[sdo_abort]]
|
|
151
|
+
code = 0x06090031
|
|
152
|
+
name = "CO_SDO_AB_VALUE_HIGH"
|
|
153
|
+
description_zh = "写入参数值高于允许范围"
|
|
154
|
+
meaning_zh = "写入值超过对象允许的上限。"
|
|
155
|
+
|
|
156
|
+
[[sdo_abort]]
|
|
157
|
+
code = 0x06090032
|
|
158
|
+
name = "CO_SDO_AB_VALUE_LOW"
|
|
159
|
+
description_zh = "写入参数值低于允许范围"
|
|
160
|
+
meaning_zh = "写入值低于对象允许的下限。"
|
|
161
|
+
|
|
162
|
+
[[sdo_abort]]
|
|
163
|
+
code = 0x06090036
|
|
164
|
+
name = "CO_SDO_AB_MAX_LESS_MIN"
|
|
165
|
+
description_zh = "最大值小于最小值"
|
|
166
|
+
meaning_zh = "参数上下限关系不成立,请核对相关上下限设置。"
|
|
167
|
+
|
|
168
|
+
[[sdo_abort]]
|
|
169
|
+
code = 0x060A0023
|
|
170
|
+
name = "CO_SDO_AB_NO_RESOURCE"
|
|
171
|
+
description_zh = "SDO 连接资源不可用"
|
|
172
|
+
meaning_zh = "应答方没有可用于本次请求的 SDO 连接资源。"
|
|
173
|
+
|
|
174
|
+
[[sdo_abort]]
|
|
175
|
+
code = 0x08000000
|
|
176
|
+
name = "CO_SDO_AB_GENERAL"
|
|
177
|
+
description_zh = "一般错误"
|
|
178
|
+
meaning_zh = "应答方报告未细分的错误,单凭此码无法确定具体原因。"
|
|
179
|
+
|
|
180
|
+
[[sdo_abort]]
|
|
181
|
+
code = 0x08000020
|
|
182
|
+
name = "CO_SDO_AB_DATA_TRANSF"
|
|
183
|
+
description_zh = "数据无法传送到应用或存储到应用"
|
|
184
|
+
meaning_zh = "应用未能接收或存储本次数据,单凭此码无法确定具体原因。"
|
|
185
|
+
|
|
186
|
+
[[sdo_abort]]
|
|
187
|
+
code = 0x08000021
|
|
188
|
+
name = "CO_SDO_AB_DATA_LOC_CTRL"
|
|
189
|
+
description_zh = "因本地控制,数据无法传送到应用或存储到应用"
|
|
190
|
+
meaning_zh = "设备报告本地控制限制,本次应用数据访问未完成。"
|
|
191
|
+
|
|
192
|
+
[[sdo_abort]]
|
|
193
|
+
code = 0x08000022
|
|
194
|
+
name = "CO_SDO_AB_DATA_DEV_STATE"
|
|
195
|
+
description_zh = "因当前设备状态,数据无法传送到应用或存储到应用"
|
|
196
|
+
meaning_zh = "当前状态不允许此操作;在 EHA 中可能涉及使能状态、开发者模式或控制权,需结合设备反馈判断。"
|
|
197
|
+
|
|
198
|
+
[[sdo_abort]]
|
|
199
|
+
code = 0x08000023
|
|
200
|
+
name = "CO_SDO_AB_DATA_OD"
|
|
201
|
+
description_zh = "对象字典不存在或动态生成失败"
|
|
202
|
+
meaning_zh = "应答方无法提供可用的对象字典。"
|
|
203
|
+
|
|
204
|
+
[[sdo_abort]]
|
|
205
|
+
code = 0x08000024
|
|
206
|
+
name = "CO_SDO_AB_NO_DATA"
|
|
207
|
+
description_zh = "无可用数据"
|
|
208
|
+
meaning_zh = "应答方当前没有可供本次请求使用的数据。"
|
ehatool/discovery.py
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
# Copyright The eha-firmware Contributors
|
|
2
|
+
|
|
3
|
+
## @file
|
|
4
|
+
## @brief 汇总各通道实际观察到的设备、接口与局部失败,保留每条访问路径。
|
|
5
|
+
|
|
6
|
+
import shlex
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
def _selection(row):
|
|
10
|
+
if row.get("state") in {"down", "excluded", "unavailable", "permission", "busy", "other_product", "unverified"}:
|
|
11
|
+
return None
|
|
12
|
+
via = row["via"]
|
|
13
|
+
if via == "usb" and row.get("port"):
|
|
14
|
+
command = ["ehatool", "--port", row["port"]]
|
|
15
|
+
elif via == "can" and row.get("interface") and row.get("channel") is not None:
|
|
16
|
+
if row["interface"] != "socketcan" and row.get("bitrate") is None:
|
|
17
|
+
return None
|
|
18
|
+
command = ["ehatool", "--can", f'{row["interface"]}:{row["channel"]}']
|
|
19
|
+
if row.get("node") is not None:
|
|
20
|
+
command += ["--node", str(row["node"])]
|
|
21
|
+
if row.get("bitrate"):
|
|
22
|
+
command += ["--bitrate", str(row["bitrate"])]
|
|
23
|
+
if row.get("data_bitrate") is not None:
|
|
24
|
+
command += ["--data-bitrate", str(row["data_bitrate"])]
|
|
25
|
+
elif via == "ecat" and row.get("ifname"):
|
|
26
|
+
command = ["ehatool", "--via", via]
|
|
27
|
+
if row.get("state") == "identified" and row.get("serial"):
|
|
28
|
+
command += ["--serial", row["serial"]]
|
|
29
|
+
return shlex.join([*command, "devices", "--ifname", row["ifname"], "--identify"])
|
|
30
|
+
return shlex.join([*command, "devices", "--ifname", row["ifname"], "--probe"])
|
|
31
|
+
else:
|
|
32
|
+
return None
|
|
33
|
+
if row.get("state") == "identified" and row.get("serial"):
|
|
34
|
+
return shlex.join([*command, "--serial", row["serial"], "info"])
|
|
35
|
+
return shlex.join([*command, "devices", "--identify"])
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
def _same_scope(row, issue):
|
|
39
|
+
if row["via"] != issue["via"]:
|
|
40
|
+
return False
|
|
41
|
+
return all(row.get(key) == issue[key] for key in
|
|
42
|
+
("port", "ifname", "interface", "channel", "node", "slave") if issue.get(key) is not None)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
def _status(devices, issues, mode, explicit):
|
|
46
|
+
meaningful = [row for row in devices if row.get("state") not in
|
|
47
|
+
{"excluded", "down", "unavailable", "permission", "unobserved"}]
|
|
48
|
+
blocking = [issue for issue in issues if issue.get("blocking", True)]
|
|
49
|
+
if not blocking:
|
|
50
|
+
return "partial" if meaningful and issues else "ok" if meaningful else "empty"
|
|
51
|
+
failures = {"unavailable", "permission", "denied", "busy"}
|
|
52
|
+
usable_states = {"identified", "other_product", "scanned"} if mode == "identify" else {"responded"}
|
|
53
|
+
usable = [row for row in meaningful if (mode == "list" or row["state"] in usable_states)
|
|
54
|
+
and not any(issue["state"] in failures and _same_scope(row, issue) for issue in blocking)]
|
|
55
|
+
if (explicit or not meaningful) and not usable and all(issue["state"] in failures for issue in blocking):
|
|
56
|
+
return "busy" if all(issue["state"] == "busy" for issue in blocking) else "unavailable"
|
|
57
|
+
if not usable and all(issue["state"] == "empty" for issue in blocking):
|
|
58
|
+
return "empty"
|
|
59
|
+
return "partial"
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
def scan_devices(args):
|
|
63
|
+
"""按用户指定的范围扫描。单个后端不可用时保留其余后端的结果。"""
|
|
64
|
+
mode = "identify" if args.identify else "probe" if args.probe else "list"
|
|
65
|
+
via = args.via
|
|
66
|
+
if via is None:
|
|
67
|
+
if args.port:
|
|
68
|
+
via = "usb"
|
|
69
|
+
elif args.can or any(value is not None for value in (args.node, args.bitrate, args.data_bitrate)):
|
|
70
|
+
via = "can"
|
|
71
|
+
elif args.ifname:
|
|
72
|
+
via = "ecat"
|
|
73
|
+
devices, issues = [], []
|
|
74
|
+
for channel in ((via,) if via else ("usb", "can", "ecat")):
|
|
75
|
+
try:
|
|
76
|
+
if channel == "usb":
|
|
77
|
+
from .usb_discovery import scan_usb
|
|
78
|
+
found, problems = scan_usb(identify=args.identify, port=args.port, serial=args.serial)
|
|
79
|
+
elif channel == "can":
|
|
80
|
+
from .device.can_discovery import scan_can
|
|
81
|
+
found, problems = scan_can(identify=args.identify, adapter=args.can, node=args.node,
|
|
82
|
+
bitrate=args.bitrate, data_bitrate=args.data_bitrate, serial=args.serial)
|
|
83
|
+
else:
|
|
84
|
+
from .ecat import scan_ecat
|
|
85
|
+
found, problems = scan_ecat(probe=args.probe, identify=args.identify, ifname=args.ifname,
|
|
86
|
+
serial=args.serial)
|
|
87
|
+
except (OSError, ImportError, RuntimeError) as error:
|
|
88
|
+
found = []
|
|
89
|
+
problems = [{"via": channel, "state": "unavailable", "message": str(error)}]
|
|
90
|
+
for row in found:
|
|
91
|
+
row["selection"] = _selection(row)
|
|
92
|
+
devices.extend(found)
|
|
93
|
+
issues.extend(problems)
|
|
94
|
+
status = _status(devices, issues, mode, via is not None)
|
|
95
|
+
return {"mode": mode, "status": status, "devices": devices, "issues": issues}
|
ehatool/display.toml
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
# 主机工具的展示标签;设备对象与故障说明由 eha_od.toml 提供。
|
|
2
|
+
[labels]
|
|
3
|
+
address = "地址"
|
|
4
|
+
name = "名称"
|
|
5
|
+
unit = "单位"
|
|
6
|
+
attributes = "属性"
|
|
7
|
+
description = "说明"
|
|
8
|
+
type = "类型"
|
|
9
|
+
default = "字典默认值"
|
|
10
|
+
values = "合法值"
|
|
11
|
+
min = "字典下限"
|
|
12
|
+
max = "字典上限"
|
|
13
|
+
code = "原始码"
|
|
14
|
+
reaction = "反应类别"
|
|
15
|
+
original_zh = "中文原意"
|
|
16
|
+
meaning_zh = "中文含义"
|
|
17
|
+
device_error = "设备故障/保护码"
|
|
18
|
+
sdo_abort = "SDO 中止"
|
|
19
|
+
decimal = "十进制"
|
|
20
|
+
unknown_name = "未知"
|
|
21
|
+
motor_subcode = "Core 1 子码"
|
|
22
|
+
request = "请求"
|
|
23
|
+
read = "读取"
|
|
24
|
+
write = "写入"
|
|
25
|
+
|
|
26
|
+
[attributes]
|
|
27
|
+
rw = "rw 可读写"
|
|
28
|
+
ro = "ro 只读"
|
|
29
|
+
rx = "RxPDO"
|
|
30
|
+
tx = "TxPDO"
|
|
31
|
+
disabled_only = "停机可写"
|
|
32
|
+
developer = "开发者模式"
|
|
33
|
+
persist = "可持久化"
|
|
34
|
+
object_ref = "对象引用"
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
[cli]
|
|
38
|
+
json_help = "以一个 JSON 文档输出查询结果或错误(info、get、set、devices)"
|
|
39
|
+
json_commands = "--json 支持 info、get、set 和 devices"
|
|
40
|
+
extra_arguments = "离线查询不接受额外的对象或写入值"
|
|
41
|
+
object_required = "请指定对象名称或地址,用 --list 查看可选对象"
|
|
42
|
+
model_required = "离线列出或查看对象需要型号:用 --model 指定({models})"
|
|
43
|
+
explain_only = "--explain 用于读取故障/保护码 error_code(0x603F),其他对象的说明请用 --describe"
|
|
44
|
+
value_required = "写入需要提供新值"
|
|
45
|
+
no_match = "没有匹配的应用对象:{query}"
|
|
46
|
+
no_writable_match = "没有匹配的可写应用对象:{query}"
|
|
47
|
+
object_not_in_model = "设备的型号 {model} 没有对象 {name},未发送请求"
|
|
48
|
+
invalid_value = "参数或数据不合法:{reason}"
|
|
49
|
+
interrupted = "已中断"
|
|
50
|
+
owner_read_failed = "未能读取控制属主({reason})"
|
|
51
|
+
object_hint = "{name}:{desc}({attributes})"
|
|
52
|
+
close_failed = "关闭设备连接失败:{reason}"
|
|
53
|
+
devices_help = "自动列出 USB、CAN 和 EtherCAT 连接"
|
|
54
|
+
discovery_unavailable = "指定范围内没有可访问的设备接口"
|
|
55
|
+
discovery_busy = "指定范围内的设备通道或 EtherCAT 网段正在被使用"
|
|
56
|
+
identity_mismatch = "设备身份与 EHA 对象字典不符"
|
|
57
|
+
slave_range = "--slave 不能为负数,ecat auto 的单从站索引只能为 0"
|
|
58
|
+
probe_help = "在台架上自动定位 EtherCAT 网口,读 ESC 类型并统计响应数"
|
|
59
|
+
identify_help = "在独占台架读取完整身份;EtherCAT 会重新初始化选中的整个网段"
|
|
60
|
+
ifname_help = "限定接 ECAT IN 的网卡,例如 macOS 的 enN、Linux 的 ethN"
|
|
61
|
+
via_help = "选择 usb、can 或 ecat 通道;devices 默认列出三路"
|
|
62
|
+
serial_help = "以 8 位十六进制 EHA 设备序列号限定目标"
|
|
63
|
+
serial_invalid = "--serial 需要 8 位十六进制设备序列号"
|
|
64
|
+
serial_zero = "--serial 不能为 0"
|
|
65
|
+
port_can_conflict = "--port 与 --can 不能同时使用"
|
|
66
|
+
can_format = "--can 需要 接口:通道,例如 socketcan:can0"
|
|
67
|
+
node_range = "--node 必须在 1–127 内"
|
|
68
|
+
bitrate_positive = "--bitrate 必须大于 0"
|
|
69
|
+
data_bitrate_nonnegative = "--data-bitrate 不能小于 0"
|
|
70
|
+
selector_conflict = "指定的接口和通道选择条件冲突"
|
|
71
|
+
selector_unsupported = "{command} 不接受 EHA 设备选择条件"
|
|
72
|
+
ecat_only = "ecat 只接受 EtherCAT 选择条件"
|
|
73
|
+
ifname_only = "--ifname 只能用于 EtherCAT"
|
|
74
|
+
probe_only = "--probe 只能用于 EtherCAT 网口定位"
|
|
75
|
+
can_selector_conflict = "CAN 速率或节点选择条件与通道冲突"
|
|
76
|
+
ecat_command = "EtherCAT 设备操作请使用 ecat 子命令"
|
|
77
|
+
can_options_require = "CAN 速率或节点选择条件需要 --can 或 --via can"
|
|
78
|
+
usb_only = "{command} 需要主机链路(USB 或串口)"
|
|
79
|
+
can_only = "can-check 需要 --can 或 --via can"
|
|
80
|
+
upgrade_serial_zero = "设备序列号无效,无法在升级后核对目标"
|
|
81
|
+
upgrade_slot_invalid = "当前运行槽值 {slot} 无效"
|
|
82
|
+
upgrade_running = "设备已从槽 {slot} 运行,{state}"
|
|
83
|
+
upgrade_confirmed = "镜像已确认"
|
|
84
|
+
upgrade_trial = "镜像仍在试运行"
|
|
85
|
+
upgrade_confirmation_unknown = "未读到镜像确认状态"
|
|
86
|
+
reset_ack = "设备已应答复位请求,启动结果尚未核对"
|
|
87
|
+
reset_unknown = "复位未收到设备应答,执行结果未知"
|
|
88
|
+
upgrade_written = "槽 {slot} 已写入并校验,版本 0x{version:06X}"
|
|
89
|
+
|
|
90
|
+
[discovery]
|
|
91
|
+
route = "访问路径"
|
|
92
|
+
name = "名称"
|
|
93
|
+
serial = "设备序列号"
|
|
94
|
+
state = "观察结果"
|
|
95
|
+
node = "节点"
|
|
96
|
+
slave = "从站"
|
|
97
|
+
responses = "响应数"
|
|
98
|
+
empty = "在本次范围内没有列出设备或接口。"
|
|
99
|
+
adapter_serial = "转接器序列号"
|
|
100
|
+
usb_descriptor = "USB 描述符"
|
|
101
|
+
sdo = "SDO 身份"
|
|
102
|
+
coe = "CoE 身份"
|
|
103
|
+
coverage = "{route} · 已扫描 {scanned} 个节点,未扫描 {pending} 个,身份未确认 {unresolved} 个"
|
|
104
|
+
hidden_interfaces = "另有 {count} 个停用或排除的接口,详情见 --json。"
|
|
105
|
+
bitrate_required = "{route} · 主动识别需要指定 --bitrate,可同时指定 --data-bitrate。"
|
|
106
|
+
identify_command = "独占台架身份识别 · {command}"
|
|
107
|
+
ecat_identify_command = "重新初始化整个专用 EtherCAT 网段并读取身份 · {command}"
|
|
108
|
+
|
|
109
|
+
[discovery_states]
|
|
110
|
+
candidate = "候选"
|
|
111
|
+
identified = "身份已核对"
|
|
112
|
+
observed = "已观察到流量"
|
|
113
|
+
responded = "收到探针响应"
|
|
114
|
+
quiet = "监听窗口内无流量"
|
|
115
|
+
down = "接口未启用"
|
|
116
|
+
unknown = "身份未确认"
|
|
117
|
+
other_product = "其它产品"
|
|
118
|
+
scanned = "已扫描"
|
|
119
|
+
partial = "仅部分结果"
|
|
120
|
+
unavailable = "不可访问"
|
|
121
|
+
busy = "占用中"
|
|
122
|
+
skipped = "未探测"
|
|
123
|
+
excluded = "已排除"
|
|
124
|
+
specified = "显式路径尚未核对"
|
|
125
|
+
unverified = "身份未确认"
|
|
126
|
+
unobserved = "尚未观察"
|
|
127
|
+
permission = "权限不足"
|