完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好,我有一个带有MCP2515 CAN控制器的PICAN2板,我想取消基于CAN帧数据的一些CAN消息。我的第一个选择是模拟CRC错误,但是我读到CRC校验是由硬件做的,我不能修改它。有没有模拟帧错误的选项来取消先前接收到的消息?谢谢,I.
以上来自于百度翻译 以下为原文 Hi, I have a pican2 board with a mcp2515 CAN controller and I want to cancel some CAN messages based on the CAN frame data. My first option was to simulate a CRC error but I have read that the CRC check is made by hardware and I can't modify it. Is there any option to simulate a frame error which cancels a previous received message? Thanks, I. |
|
相关推荐
2个回答
|
|
你不能“取消消息”。MCP2515(实际上所有的CAN控制器)接收CAN消息、数据和校验和,然后在将数据提供给主CPU进行读取之前,将消息恢复。因此,当你读取数据时,取消任何东西都为时已晚。如果你确实设法从某种程度上得到错误指示,则CAN协议意味着另一端将重试消息。它不像RS-232。它不像以太网。它确实是它自己的东西,你在其他协议中的任何专业知识通常都会误导你。汤姆
以上来自于百度翻译 以下为原文 You can't "cancel a message". The MCP2515 (in fact all CAN controllers) receive the CAN message, data and checksum and then ACK the message before making the data available to the main CPU for reading. So by the time you read the data it is way too late to cancel anything. If you did manage to get an error indication out somehow, the CAN protocol means the other end will RETRY the message. CAN isn't like any other protocol. It isn't like RS-232. It isn't like Ethernet. It really is its own thing and any expertise you have in other protocols usually misleads. Tom |
|
|
|
|
|
|
|
只有小组成员才能发言,加入小组>>
5238 浏览 9 评论
2028 浏览 8 评论
1950 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3204 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2253 浏览 5 评论
777浏览 1评论
666浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
595浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
676浏览 0评论
576浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-23 02:56 , Processed in 1.209656 second(s), Total 48, Slave 42 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号