Handling of parity and framing errors in embedded-io / embedded-io-async
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- rust
- 领域
- embedded-iot
调研方向
Start by reading the ErrorKind definitions and traits in the embedded-io and embedded-io-async crates, then compare the error cases exposed by embedded-hal-nb. The work is complete when driver implementations can report parity, framing, and break-signal errors through both blocking and async interfaces.
由索引模型根据 Issue 内容生成。
描述
Hello,
The current ErrorKind struct in the -io crates is very high-level. In contrast to embedded-hal-nb it does not expose the typical errors one might encounter (and want to handle) when working with serial ports.
As a concrete example - it is impossible to implement a generic, async or blocking, DMX512 receiver using the current traits - as that requires detecting a break signal. Protocols that make use of 9-bit signalling (often handled using „parity” errors) suffer from the same fate.
Would it be possible to extend the ErrorKind, so that driver implementations (such as embassy-rp) can expose these kinds of errors?
While one could overlook the embedded-io traits, as embedded-hal-nb is the alternative, there is no alternative for the async version.
- 主要语言
- Rust
- 星标
- 2.7k
- 派生
- 283
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
rust-embedded/embedded-hal 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
rust-embedded/embedded-hal#742 · 1 条评论 ·
-
难度 5/5 一周以上 新手友好度 30/100
rust-embedded/embedded-hal#747 · 5 条评论 · 1 个 reaction ·
-
难度 5/5 一周以上 新手友好度 35/100
rust-embedded/embedded-hal#746 · 2 条评论 · 1 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 48/100
rust-embedded/embedded-hal#745 · 1 个 reaction ·
-
难度 2/5 1-3 小时 新手友好度 55/100
rust-embedded/embedded-hal#744 · 1 条评论 ·
查看 rust-embedded/embedded-hal 的全部 Issue
相似的 Issue
-
难度 1/5 1-3 小时 新手友好度 86/100
维护者通常 1 天内回复
-
area:sim good first issue kind:feature
难度 2/5 1-3 小时 新手友好度 87/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
bitcoindevkit/bdk#2432 ·
维护者通常 3 天内回复
-
bug ui
难度 2/5 1-3 小时 新手友好度 83/100
userFRM/egui-charts#670 ·
维护者通常 1 天内回复
-
docs good first issue
难度 1/5 1-3 小时 新手友好度 84/100
Usenova-Labs/usenova-backend#35 ·
维护者通常 1 天内回复