feat: add SIMULATE_LIN virtual hardware driver#370
Open
lixiaoxie wants to merge 1 commit into
Open
Conversation
Collaborator
Author
概述新增 SIMULATE_LIN 虚拟硬件驱动,用于无物理硬件时的 LIN 协议测试。 改动点
堆叠 PR:2/4,依赖 #369 |
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
a6d4023 to
a938815
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add SIMULATE_LIN virtual driver for LIN protocol testing without physical hardware.
Stack: 2/4 — depends on #369