我可以使用 SocketCAN 读取 CRC 和 ACK 位吗? [英] Can I Read CRC and ACK bits using SocketCAN?

查看:54
本文介绍了我可以使用 SocketCAN 读取 CRC 和 ACK 位吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种方法,通过 PiCan2 将消息从一个 Raspberry Pi 发送到另一个并接收回以读取 CRC 和 ACK 位.我搜索了文档,但找不到这样的选项,我是否遗漏了什么?

I'm looking for a way to send messages from one Raspberry Pi via PiCan2 to another and receive back to read CRC and ACK bits. I searched the documentation but couldn't find such an option, could I have missed something?

推荐答案

你不直接处理CRCACK,但是当此类事件发生时你可以得到通知.所有相关信息都可以在 Linux SocketCAN 文档中找到.

You do not deal directly with CRC and ACK, but you can be notified when such events happen. All relevant info can be found in Linux SocketCAN documentation.

如果您想了解实施详情,请访问 此链接 你可以找到我的 hlcanerrdump 工具,它可以解析和显示 CAN 总线上的所有错误,以及 hlcanerrsim 工具,用于模拟各种 CAN 总线错误.研究源代码,你就会明白如何实现你想要的.

If you want implementation details, at this link you can find my hlcanerrdump tool which can parse and show all errors on CAN bus, and hlcanerrsim tool for simulating all kinds of CAN bus errors. Study the source code and you will understand how to achieve what you want.

这篇关于我可以使用 SocketCAN 读取 CRC 和 ACK 位吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆