热搜关键词: 电路基础ADC数字信号处理封装库PLC

pdf

linux socket can学习资料,包含广播例子

  • 1星
  • 2021-06-23
  • 1.77MB
  • 需要1积分
  • 3次下载
标签: 嵌入式

嵌入式

can

can

socket can

socket can

广播

广播

linux  socket  can学习资料,包含广播例子

The CAN Subsystem of the Linux Kernel
A
Linux CAN driver
swiss army knife for automotive use-cases
Presentation for Automotive Grade Linux F2F, 2017-04-04, Microchip (Karlsruhe)
SocketCAN – concepts & usage
Controller Area Network simplified for nerds
• Media access by CSMA/CR
• Structure of a CAN frame:
S
O
F
CAN-ID
(11/29 Bit)
R I r
T D e
R E s
DLC
(4 Bit)
(0-8 Byte)
DATA
Checksum
(15 Bit)
D
E
L
A
C
K
D
E
L
EOF
(7 Bit)
Arbitration
Control
Data
Check
Acknowledge
• Simplified:
[CAN Identifier]
[Data length]
[Data 0..8]
• Content addressing (by CAN Identifier & CAN Bus)
• No MAC / Node addresses / ARP / Routing – just plain OSI Layer 2
• Incompatible Upgrade CAN FD (ISO 11898-1:2015), explained later
Oliver Hartkopp
SocketCAN – concepts & usage
Application areas for the Controller Area Network
Industrial control applications (e.g. using the CANopen protocol)
Food processing (e.g. on fish trawlers)
Vehicles (Passenger
Cars,
Trucks, Fork lifters, etc.)
Research (e.g. Nuclear physics)
Spacecrafts, Marina
Oil platforms
Wind energy plants
Measurement / Sensors
Special Effects
Oliver Hartkopp
SocketCAN – concepts & usage
Usage of the CAN bus in a vehicle
• Simple CAN broadcast messages
• Cyclic sent CAN messages
(for failure detection)
• Multiplex CAN messages
(containing an index for different data payload)
• Transport protocols
(virtual point-to-point connection via CAN, e.g. ISO-TP: ISO 15765-2)
Oliver Hartkopp
SocketCAN – concepts & usage
The former concepts for CAN access
application
protocol
• Only one application can use the CAN bus at a time
• There was no standard Linux CAN driver model
• Every CAN hardware vendor sells his own driver
bundled to his CAN hardware
The change to a different CAN hardware vendor
urges the adaptation of the CAN application(!)
=> Vendor Lock-In
• CAN application protocols and intelligent content
filters need to be implemented in userspace
Operating system
CAN controller
Oliver Hartkopp
CAN driver
展开预览

猜您喜欢

评论

登录/注册

意见反馈

求资源

回顶部

推荐内容

热门活动

热门器件

随便看看

 
EEWorld订阅号

 
EEWorld服务号

 
汽车开发圈

电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号 Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved
×