Socket CAN(二) socketcan的整体工作流程

Socket CAN整体工作流程

It would register itself with the network stack, and the network stack will expect to send and receive packets. The CAN driver then needs to send these packets to the chip over a SPI bus. So it uses the SPI infrastructure to send these packets to the actual MCP2510. Every system has different SPI devices, so this way, the MCP2510 driver doesn't have to know how the actual SPI layer works, it just knows it needs to use the SPI protocol to talk to the MCP2510. From userspace, you would use the socket API to send you data to whatever device you're communicating with via CAN. So the whole thing should go together something like this: user space talks to socket API network driver talks to CAN driver CAN driver talks to SPI driver SPI driver talks to SPI hardware messages go over the SPI bus to MCP2510 MCP2510 sends messages over the CAN bus to the actual device

 http://freakrobot.blogbus.com/logs/99523985.html

相关文章:

socketcan 的使用(一) can raw write: No buffer space available   http://www.cnblogs.com/fly-fish/archive/2011/05/24/2055879.html

Socket CAN(二) socketcan的整体工作流程                                 http://www.cnblogs.com/fly-fish/archive/2011/06/28/2092455.html

socketcan 的使用(三) atmel9260上Linux socketcan MCP2515调试笔记 http://www.cnblogs.com/fly-fish/archive/2011/09/01/2162351.html

Socketcan的使用(四) Low Level CAN Framework Application Programmers Interface

项目主页:http://developer.berlios.de/account/setlang.php

             http://en.wikipedia.org/wiki/SocketCAN

邮件列表的订阅

https://lists.berlios.de/mailman/listinfo/socketcan-core

转载于:https://www.cnblogs.com/fly-fish/archive/2011/06/28/2092455.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值