ecb-typescript
Write TypeScript code for EcuBus-Pro (ECB) automotive diagnostics. Provides API reference for UDS, CAN, LIN, DoIP, SOME/IP, CRC, Crypto, SerialPort, and test framework. Use when writing ECB scripts, working with automotive protocols, or developing diagnostic services.
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
ECB TypeScript Development
API Reference
Read the type definitions from node_modules/@types/ECB/ to get accurate API information and code examples.
Type Definition Files
| File | Content |
|---|---|
index.d.ts |
Main exports, global Util instance |
uds.d.ts |
UDS services (DiagRequest, DiagResponse), CAN/LIN/DoIP/SOMEIP types, test framework, signals, variables, SerialPort |
crc.d.ts |
CRC class and built-in CRC algorithms |
cryptoExt.d.ts |
CMAC function |
secureAccess.d.ts |
SecureAccessDll class for security key generation |
utli.d.ts |
HexMemoryMap and S19MemoryMap classes |
Workflow
- Read the relevant
.d.tsfiles to understand available APIs and see JSDoc examples - Write code based on the type definitions
- Import from
'ECB'module
Key Points
- Use
Util.Init(fn)for initialization code - Use
Util.End(fn)for cleanup code - Use
Util.Register(jobName, fn)to register job handlers - Use
Util.On*()methods for event handling (CAN, LIN, Signal, Key, Var) -
process.env.PROJECT_ROOTprovides the ECB project root path - Service/Job names follow
TesterName.ServiceNameformat
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-03-11
- 索引更新时间
- 2026-03-11
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!