string needs to be unpacked
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 52/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- c
- 领域
- embedded-iot
调研方向
从 ethercatApp/src/ecAsyn.cpp 中的 receive_config_on_connect 开始,检查在调试 printf 调用之前 config_buffer 是如何填充的。检查扫描器的打包配置格式及其长度前缀字符串表示。完成的标准是:诊断输出显示接收到的配置文本,且不包含长度字节或其他打包数据。
由索引模型根据 Issue 内容生成。
描述
https://github.com/dls-controls/ethercat/blob/master/ethercatApp/src/ecAsyn.cpp
The method receive_config_on_connect has debugging messages that attempt to print the configuration received from the scanner.
printf is called on the config_buffer "raw". However the scanner sends the configuration packed and the message includes the length of the following string.
So the output is garbled. Example output from ioc running version 4-3
[Fri Nov 13 18:47:58 2015]getting config
[Fri Nov 13 18:47:58 2015]config-file size:111970
[Fri Nov 13 18:47:58 2015]^D
[Fri Nov 13 18:47:58 2015]************************
- 主要语言
- C
- 星标
- 34
- 派生
- 13
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
DiamondLightSource/ethercat 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 25/100
-
build instructions for patched etherlab可能重新可做 @ronaldomercado 于 1458 天前认领,目前没有进行中的 PR。 未关闭
DiamondLightSource/ethercat#6 · 5 条评论 · 已指派 1 人 ·
查看 DiamondLightSource/ethercat 的全部 Issue
相似的 Issue
-
tech-debt
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
-
难度 2/5 1-3 小时 新手友好度 82/100
antoxa2584x/nfsu2-sw#44 · 1 个 reaction ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
codepointerapp/codepointer#231 ·