Skip to content

feat: add SIMULATE_LIN virtual hardware driver#370

Open
lixiaoxie wants to merge 1 commit into
pr/lin-parsingfrom
pr/simulate-lin
Open

feat: add SIMULATE_LIN virtual hardware driver#370
lixiaoxie wants to merge 1 commit into
pr/lin-parsingfrom
pr/simulate-lin

Conversation

@lixiaoxie

Copy link
Copy Markdown
Collaborator

Add SIMULATE_LIN virtual driver for LIN protocol testing without physical hardware.

  • Implement simulated LIN master/slave communication
  • Register driver in device factory

Stack: 2/4 — depends on #369

@lixiaoxie

Copy link
Copy Markdown
Collaborator Author

概述

新增 SIMULATE_LIN 虚拟硬件驱动,用于无物理硬件时的 LIN 协议测试。

改动点

  • 实现模拟 LIN 主/从通信
  • 在设备工厂中注册该驱动

堆叠 PR:2/4,依赖 #369

@frankie-zeng

Copy link
Copy Markdown
Collaborator

lin driver 需要 重构,lin 分为 header+data, master 节点 发送 header, 可能master节点响应,也可能slave 节点响应。 36个虚拟设备,可以模拟 4-8个节点 接着1根线。

- Create SIMULATE_LIN class with 32 virtual LIN buses via EventEmitter
- Register SIMULATE_LIN in openLinDevice/getLinVersion/getLinDevices
- Add 'simulate' to LIN vendor list in hardware UI
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