Skip to content

feat: add LIN frame types and ASC/BLF parsing support#369

Open
lixiaoxie wants to merge 2 commits into
masterfrom
pr/lin-parsing
Open

feat: add LIN frame types and ASC/BLF parsing support#369
lixiaoxie wants to merge 2 commits into
masterfrom
pr/lin-parsing

Conversation

@lixiaoxie

Copy link
Copy Markdown
Collaborator

Add LIN frame type definitions and parsing support for ASC/BLF file readers.

  • Define LIN-specific frame structures in trace file parser
  • Extend ASC reader to parse LIN frames
  • Extend BLF reader to parse LIN frames
  • LIN frames use channel offset +100 to distinguish from CAN channels

Stack: 1/4 — base PR

- Define ReplayLinFrame type and ReplayFrame discriminated union
- Add LIN message/error line parsing to ASC reader
- Add LIN object types (11-15, 57) and struct layouts to BLF reader
- Add busType field to ReplayChannelMap for CAN/LIN distinction
- LIN channels use offset 100+ to avoid collision with CAN channels
@lixiaoxie

Copy link
Copy Markdown
Collaborator Author

概述

新增 LIN 帧类型定义和 ASC/BLF 文件解析支持。

改动点

  • 在 trace 文件解析器中定义 LIN 帧结构
  • 扩展 ASC 读取器,支持解析 LIN 帧
  • 扩展 BLF 读取器,支持解析 LIN 帧
  • LIN 通道使用 +100 偏移与 CAN 通道区分(如 CAN CH1=1,LIN CH0=100)

堆叠 PR:1/4(基础 PR)

readFrame() now returns {type, frame} discriminated union.
Update ipc/uds.ts trace handler and replay tests to unwrap
the tagged union correctly.
@frankie-zeng

Copy link
Copy Markdown
Collaborator

解决typescript报错

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants