ARXplorer
轻量级 AUTOSAR ARXML 浏览器 —— 在 VS Code 里直接浏览 ECU 配置与通信矩阵,无需为读一个文件去打开 DaVinci Configurator。
A lightweight AUTOSAR ARXML browser — explore ECU configuration and the communication matrix directly inside VS Code, without opening DaVinci Configurator just to read a file.
它能做什么 What It Does
- 语义树 —— 以 AUTOSAR 对象模型(包、SWC、端口、ECUC 模块/容器/参数)浏览 ARXML,而不是看原始 XML。结构的包装层自动折叠,树与对象图一致,读起来直观。
Semantic tree — Browse ARXML by the AUTOSAR object model (packages, SWCs, ports, ECUC modules/containers/parameters) instead of raw XML. Wrapper layers of the structure fold away automatically, so the tree matches the object graph and reads intuitively.
- 原始 XML 视图 —— 需要时切换到字面标签层级。
Raw XML view — Switch to the literal tag hierarchy when needed.
- 跳转源码 —— 点击任意节点,跳到它在编辑器里
SHORT-NAME 所在的位置。
Jump to source — Click any node to jump to its SHORT-NAME location in the editor.
- 项目索引 —— 加载 Project,索引整个工程,回答跨文件的问题。
Project index — Load a project, index the whole project, and answer cross-file questions.
- 双向引用 —— 选中任意元素,既看整个项目里谁指向它,也看它自己指向谁;未解析的目标标灰警告,已解析的可点击直接跟到目标视图。这是单文件树回答不了的查询。
Bidirectional references — Select any element to see both who points at it across the project and what it points at; unresolved targets are greyed with a warning, and resolved ones can be followed straight to their target view. This is a query a single-file tree cannot answer.
- ECUC 模块配置页 —— 加载项目后,以配置页形式打开任意 BSW 模块(CanIf、Com、Os……):它的容器、实例,以及每个实例的参数和引用。当前只读,是未来编辑器的雏形。树按层加载,几万节点的模块也能立即打开、不卡顿。
ECUC module configuration page — After loading a project, open any BSW module (CanIf, Com, Os…) as a configuration page: its containers, instances, and each instance's parameters and references. Read-only for now, a precursor to a future editor. The tree loads per level, so even modules with tens of thousands of nodes open instantly without stalling.
- 宽组的表格视图 —— 实例数量很多的组会提供 Table 按钮,把所有实例按参数铺成行列,方便横向对比;多值参数会在单元格里保留全部取值。
Table view for wide groups — Groups with many instances offer a Table button that lays every instance out in rows and columns for side-by-side comparison; multi-valued parameters keep all their values in a cell.
- 展平列表 —— 顶部工具栏可一键把所有容器展平为一个列表,快速扫完整个模块有哪些容器。
Flat list — The top toolbar can flatten every container into a single list, letting you quickly scan which containers a module has.
- 配置搜索 —— 按名称、容器名、参数值搜索;点结果即可进入详情。
Configuration search — Search by name, container, or parameter value; click a result to enter its detail.
- 全工程搜索 —— 点侧边栏标题栏的搜索图标,或让树聚焦后按
Ctrl+Alt+F,打开实时搜索框,按 SHORT-NAME 跨文件查找任意元素;结果带上类型与 文件:行,点击后自动落到最合适的视图(面板或源码)。搜索框里的过滤器按钮可在元素类型间循环切换,适合只知道名字、不知道文件在哪里的场景。
Project-wide search — Click the search icon in the sidebar title bar, or press Ctrl+Alt+F with the tree focused, to open a live search box that finds any element by SHORT-NAME across the indexed files; each result shows its kind and file:line, and picking one lands on the most suitable view (panel or source). The filter button in the search box cycles through element kinds, which helps when you know the name but not the file.
- 通信网络视图 —— 侧边栏新增 Communication Network 根节点,按 CAN / LIN / Ethernet 分组列出 Cluster(其他归入 Other);展开 Cluster 可看 Frames / PDUs / Signals,打开后按 Channel 分层展示。点 Frame / PDU 看成员与引用它的位置,点 Signal 看整条链路。
Communication network view — A new Communication Network root in the sidebar groups clusters by CAN / LIN / Ethernet (anything else under Other); expanding a cluster shows its Frames / PDUs / Signals, and opening it lays them out by Channel. Click a frame or PDU for its members and reference sites, or a signal for its whole route.
- 信号链路追踪 —— 从一个 Signal 出发,串起承载它的 PDU、Frame、调度它的 Triggering,以及引用它的 SWC 端口;缺失的环节以虚线占位(no PDU / no frame / no triggering)标出,一眼看出链路断在哪。
Signal route tracing — Starting from a signal, follow the PDU and frame that carry it, the triggering that schedules the frame, and the SWC ports that reference it; missing links are drawn as dashed placeholders (no PDU / no frame / no triggering), so a broken route is obvious at a glance.
- 断链检查 —— 索引完成后可列出所有解析不到的引用,并跳到引用所在的文件行;换 AUTOSAR 版本、改 schema 或重命名漏改时,用它定位残留的无效链接。
Broken-reference check — After indexing, list every reference that resolves to nothing and jump to the file:line that carries it; useful after an AUTOSAR version switch, a schema change, or a rename that missed a reference.
快速开始 Quick Start
- 命令面板运行 ARXplorer: Load Project,选择工程描述文件,索引整个工程。
Run ARXplorer: Load Project from the command palette, pick the project description file, and index the whole project.
- 在侧边栏模块列表里选一个 BSW 模块,打开其配置页。
Select a BSW module from the sidebar module list and open its configuration page.
- 在树里逐层展开容器与实例;点实例查看它的全部参数与嵌套容器。
Expand containers and instances layer by layer in the tree; click an instance to see all its parameters and nested containers.
- 用顶部搜索框按名称/值搜索,点结果进入对应配置详情。
Use the search box to search by name/value, then click a result to open the corresponding configuration detail.
- 要横向对比多行数据时,点组标题旁的 Table 用表格查看。
To compare many rows side by side, click Table next to a group title.
- 展开侧边栏的 Communication Network,选一个 Cluster 打开通信视图;点 Signal 查看端到端链路。
Expand Communication Network in the sidebar, open a cluster, and click a signal to see its end-to-end route.
- 在 ARXplorer 树里按
Ctrl+Alt+F 全工程按名称搜索;用搜索框里的过滤器按钮按类型缩小范围。
With the ARXplorer tree focused, press Ctrl+Alt+F to search the whole project by name; use the filter button in the search box to narrow by kind.
命令 Commands
| 命令 Command |
中文说明 |
English |
ARXplorer: Load Project |
索引整个 DaVinci 工程 |
Index the whole DaVinci project |
ARXplorer: Unload Project Index |
释放索引、释放内存 |
Release the index and free memory |
ARXplorer: Open Module Configuration |
打开一个 BSW 模块的配置页 |
Open a BSW module's configuration page |
ARXplorer: Show ECUC Modules |
切换到模块列表(Ctrl+Alt+M) |
Switch to the module list (Ctrl+Alt+M) |
ARXplorer: Show File Tree |
从模块列表回到文件树 |
Return to the file tree from the module list |
ARXplorer: Back to Module Configuration |
回到配置面板(Ctrl+Alt+Left) |
Return to the configuration panel (Ctrl+Alt+Left) |
ARXplorer: Open ARXML File |
把树固定到某个具体文件 |
Pin the tree to a specific file |
ARXplorer: Search All Elements |
全工程按名称搜索元素(Ctrl+Alt+F) |
Search elements by name across the project (Ctrl+Alt+F) |
ARXplorer: Show Broken References |
列出无法解析的引用并跳到源头 |
List unresolved references and jump to their source |
ARXplorer: Find References |
查看双向引用(谁指向这里 / 这里指向谁) |
Inspect references both ways (who points here / what this points at) |
ARXplorer: Go to Reference Target |
跳到 ECUC 引用的目标 |
Jump to an ECUC reference's target |
ARXplorer: Back to File Tree |
离开引用视图 |
Leave the references view |
ARXplorer: Open Communication View |
打开 Cluster 的通信视图 |
Open a cluster's communication view |
ARXplorer: Trace Signal Route |
打开信号端到端链路 |
Open a signal's end-to-end route |
ARXplorer: Toggle Semantic / Raw XML View |
切换树式(语义/原始) |
Switch tree mode (semantic / raw) |
ARXplorer: Reveal in Source |
在编辑器中跳转到元素 |
Jump to an element in the editor |
ARXplorer: Copy AR-PATH |
复制节点的 AR-PATH |
Copy a node's AR-PATH |
ARXplorer: Refresh |
重新解析当前文件 |
Re-parse the current file |
ARXplorer: Expand All / Collapse All |
树导航 |
Tree navigation |
搜索结果与引用行被点击时,会自动路由到最合适的视图(SWC / 模块 / 通信面板或源码),无需记住具体命令。
Clicking a search result or reference row routes to the most suitable view automatically (SWC / module / communication panel or source), so you don't need to remember specific command names.
设置 Settings
| 设置 Setting |
默认 Default |
中文含义 |
English |
arxplorer.parser.mode |
semantic |
树模式:semantic(语义)或 raw(原始) |
Tree mode: semantic or raw |
arxplorer.parser.maxNodes |
100000 |
单文档节点数上限 |
Node cap for a single document |
arxplorer.index.maxNodes |
500000 |
整个工程索引的节点数上限 |
Node cap for the whole project index |
版本对比 Basic vs Pro
ARXplorer 分 基础版(Basic,缺省、无需授权)与 高级版(Pro,需 License Key 激活)。基础版覆盖日常浏览;达到上限的功能会提示升级,激活后自动放开。
ARXplorer is available in two editions: Basic (default, free to use) and Pro (requires a License Key). Basic covers day-to-day browsing; features that hit a cap prompt you to upgrade, and a Pro license lifts those caps automatically.
| 功能 Feature |
基础版 Basic |
高级版 Pro |
| 语义树 / 原始 XML 浏览 Semantic tree / Raw XML browse |
✔ 全功能 Full |
✔ 全功能 Full |
| 跳转源码 Jump to source |
✔ |
✔ |
| 双向引用 Bidirectional references |
✔ |
✔ |
| 全工程搜索 Project-wide search |
✔ |
✔ |
| 断链检查 Broken-reference check |
✔ |
✔ |
| ECUC 模块配置页 ECUC module configuration |
✔ |
✔ |
| 配置搜索 Configuration search |
✔ |
✔ |
| 通信网络视图 Communication network view |
✔ |
✔ |
| 信号链路追踪 Signal route tracing |
✔ |
✔ |
| SWC视图 SWC View |
✔ |
✔ |
| 单文件解析上限 Single-file parse cap |
100,000 nodes |
2,500,000 nodes |
| 工程索引上限 Project index cap |
500,000 nodes |
4,000,000 nodes |
| 导出表格 CSV/HTML Export table(模块 / 通信 / 信号链路) |
⛔ 需 Pro 授权 Pro required |
✔ |
节点上限 对应 arxplorer.parser.maxNodes(单文件)与 arxplorer.index.maxNodes(整个工程)。文件/工程超过基础版上限时,会显示提示并保留一个可持续可见的「已截断」标记;激活 Pro 并重新加载后即可索引完整内容。
Node caps map to arxplorer.parser.maxNodes (single file) and arxplorer.index.maxNodes (whole project). When a file/project exceeds the Basic cap, ARXplorer shows a prompt and keeps a persistent "truncated" marker; activating Pro and reloading indexes the full content.
提示:上限提示由实际生效的配置变量驱动。你在设置里调低 arxplorer.index.maxNodes,提示中的数字会随之变化。
Note: the cap shown in prompts is driven by the effective configuration variable. Lower arxplorer.index.maxNodes in settings and the number in the prompt follows.
License 使用方式 How to Activate Pro
License 绑定到「机器指纹」(Windows 使用注册表 MachineGuid,macOS 使用 IOPlatformUUID,Linux 使用 /etc/machine-id),因此一个 Key 只能用于一台机器;把 Key 复制到别的机器会失效。
The Pro license is bound to a machine fingerprint (Windows registry MachineGuid, macOS IOPlatformUUID, Linux /etc/machine-id), so a Key works on one machine only; copying it to another machine won't validate.
激活步骤 Activation steps
- 命令面板运行 ARXplorer: Show Activation Code。
Run ARXplorer: Show Activation Code from the command palette.
- 插件把你的激活码(Activation Code)与机器码(Machine ID)复制到剪贴板,并弹出 License 获取页面入口。
The extension copies your Activation Code and Machine ID to the clipboard and offers the license page.
- 将激活码与机器码发送给授权方(点击跳转到获取页面),换取该机器的 License Key(形如
ARXP-XXXXXXXX)。
Send the Activation Code and Machine ID to your license provider(Click to jump) to get a License Key for that machine (of the form ARXP-XXXXXXXX).
- 命令面板运行 ARXplorer: Enter License Key,粘贴 Key 完成激活。
Run ARXplorer: Enter License Key and paste the Key to finish activation.
- 激活成功后,License 保存在
~/.ARXplorer/license.json,下次启动自动校验,无需重复输入。
On success the license is stored at ~/.ARXplorer/license.json and validated automatically on next launch.
在受限制的功能(如导出表格、超大文件/工程)触发时,插件也会弹出提示,可直接从提示进入「获取激活码 / 输 Key」流程。
When a restricted feature (e.g. export table, oversized file/project) is triggered, the extension also shows a prompt that leads straight into the "Get Activation Code / Enter License Key" flow.
激活「工程索引」后需重新加载工程(再次运行 ARXplorer: Load Project),上限才会按高级版放开。
After activating, reload the project (run ARXplorer: Load Project again) for the Pro cap to take effect on the project index.
用法提示 Usage Tips
- 界面语言自动适配 —— 界面文案(按键、提示、空态等)会跟随 VSCode 界面语言自动在中文和英文间切换;把鼠标悬停在展开箭头等关键控件上可看到功能说明。
Interface language adapts automatically — The UI text (buttons, tooltips, empty states, etc.) switches between Chinese and English automatically to follow the VS Code interface language; hover over key controls such as the expand arrow to see a tooltip explaining what they do.
- 配置搜索是入口,不是终点 —— 搜到结果后点进去,即可在搜索流程内看到该容器/实例的完整配置与兄弟参数,无需回到树里手动找。
Configuration search is an entry point, not the destination — After finding a result, click into it to see that container/instance's full configuration and sibling parameters within the search flow, without going back to the tree to find them manually.
- 全工程搜索适合“只记得名字” —— 树一次只显示一个文件,在树里按
Ctrl+Alt+F 打开实时搜索框,跨文件查找;结果列表带类型和 文件:行。结果有数量上限,关键词太短时先用过滤器选定类型可减少噪声。
Project-wide search is for when you only remember the name — The tree shows one file at a time, so press Ctrl+Alt+F with the tree focused for a live cross-file search; results carry the kind and file:line. Results are capped, so when a short keyword is too noisy, narrow it with the kind filter first.
- 点 Signal 看整条链路 —— 通信视图或树里的 Signal 会打开 Signal → PDU → Frame → Triggering 链路;缺失环节显示为虚线占位(no PDU / no frame / no triggering),下方分组再列出端口、SWC 与来源文件。
Click a signal for the whole route — A signal in the communication view or tree opens the Signal → PDU → Frame → Triggering chain; missing links show as dashed placeholders (no PDU / no frame / no triggering), and the groups below list the ports, SWCs and source files involved.
- 改完引用先看断链 —— 换 AUTOSAR 版本、改 schema 或批量重命名后,运行
ARXplorer: Show Broken References,按文件行逐个清理。
Check broken links after refactors — After an AUTOSAR version switch, a schema change, or a bulk rename, run ARXplorer: Show Broken References and clean up the reported file:line one by one.
- 宽组用表格、整模块用展平列表 —— 实例很少的组用树浏览最自然;实例很多的组用 Table 对比最省事;想扫全模块的容器名用顶部 Flat list。
Tables for wide groups, flat lists for whole modules — Groups with few instances are most natural to browse as a tree; groups with many instances are best compared with Table; to scan a module's container names, use the Flat list at the top.
- 跳源码 —— 配置上的跳转按钮(↗)直接把对应行定位到源文件。
Jump to source — The jump button (↗) on a configuration row locates the corresponding line directly in the source file.
关于 ARXML 解析 About ARXML Parsing
- AR-PATH 由
SHORT-NAME 链构建,而非 XML 标签链。
AR-PATHs are built from the SHORT-NAME chain, not the XML tag chain.
- 引用在全部文件索引完成后统一解析,因为 ARXML 文件之间会双向引用;目标按多种写法匹配,最具体的路径胜出。
References are resolved only after the whole set of files is indexed, because ARXML files reference each other in both directions; targets are matched against several spelling variants and the most specific path wins.
- ECUC 参数节点以其
DEFINITION-REF 的叶节点为键,因为参数本身没有 SHORT-NAME。
ECUC parameter nodes are keyed by the leaf of their DEFINITION-REF, because a parameter has no SHORT-NAME of its own.
- 通信视图按
Cluster → Channel → Frame / PDU → Signal 分层;Frame 到 PDU、PDU 到 Signal 的成员关系取自 *-MAPPING 子节点上的引用,而不是包的目录结构。
The communication view layers Cluster → Channel → Frame / PDU → Signal; frame→PDU and PDU→signal membership comes from references on the *-MAPPING children, not from package nesting.
- 信号链路用反向索引向上回溯:Signal ← mapping ← PDU ← frame ← triggering,再并上引用该信号的 SWC 端口;缺失的目标以 unresolved 呈现,而不是静默丢弃。
Signal routes are traced upward through the reverse index — signal ← mapping ← PDU ← frame ← triggering — together with the SWC ports that reference the signal; missing targets are shown as unresolved rather than silently dropped.
- 全工程搜索对
SHORT-NAME 做子串匹配,可按元素类型过滤;它查询的是索引,不是当前打开的文件。
Project-wide search does substring matching on SHORT-NAME with an optional kind filter, and queries the index rather than the currently open file.
| |