没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论





PCAN-LIN
RS-232 to LIN/CAN Interface
Protocol Definitions
Documentation
Document version 1.1.0 (2016-01-14)

PCAN-LIN – Protocol Definitions
2
Relevant products
Product name Firmware version
PCAN-LIN 01.02.xx
Product names mentioned in this manual may be the trademarks or registered trade-
marks of their respective companies. They are not explicitly marked by “™” and “®”.
© 2016 PEAK-System Technik GmbH
Duplication (copying, printing, or other forms) and the electronic distribution of this
document is only allowed with explicit permission of PEAK-System Technik GmbH.
PEAK-System Technik GmbH reserves the right to change technical data without
prior announcement. The general business conditions and the regulations of the
license agreement apply. All rights are reserved.
PEAK-System Technik GmbH
Otto-Roehm-Strasse 69
64293 Darmstadt
Germany
Phone: +49 (0)6151 8173-20
Fax: +49 (0)6151 8173-29
www.peak-system.com
info@peak-system.com
Document
version 1.1.0 (2016-01-14)

PCAN-LIN – Protocol Definitions
3
Contents
1 Communication with a PCAN-LIN Module 5
1.1 Serial Protocol 5
1.1.1 Data Transmission Host – Module 5
1.1.2 Data Transmission Module – Host 8
2 Interfaces 12
2.1 Notes about Interfaces and Commands 12
2.2 RS-232 Interface 13
2.2.1 Initialization Commands 13
2.2.2 Read Commands 14
2.2.3 Configuration Commands 17
2.2.4 Reset/Erase Commands 19
2.3 CAN Interface 21
2.3.1 Initialization and Write Commands 21
2.3.2 Read Commands 22
2.3.3 Configuration Commands 30
2.3.4 Reset/Erase Commands 36
2.4 LIN Interface 37
2.4.1 Initialization and Write Commands 37
2.4.2 Read Commands 38
2.4.3 Configuration Commands 59
2.4.4 Reset/Erase Commands 81
2.5 Module Interface 88
2.5.1 Initialization Commands 88
2.5.2 Read Commands 89
2.5.3 Configuration Commands 93
2.5.4 Reset/Erase Commands 93
2.6 Message Transmission and Reception 95
2.6.1 CAN 95
2.6.2 LIN 98

PCAN-LIN – Protocol Definitions
Serial Protocol
5
1 Communication with a PCAN-
LIN Module
The main communication with a PCAN-LIN module is done via the
RS-232 interface. It is divided in structures containing information
about the operation being done, the interface on the module being
affected, needed parameters, data transmitted by CAN and LIN
messages, or scheduler entries. Because the latter case requires
more data, “Write Data” and “Scheduler Entry” commands use a
more complex structure.
A total of eight different structures are used: two for the communi-
cation between host and module, two for reading and writing CAN
messages, two for reading and writing LIN messages, and two for
retrieving and setting entries of a LIN master scheduler.
1.1 Serial Protocol
1.1.1 Data Transmission Host – Module
Bit position Byte Description
7 6 5 4 3 2 1 0
1 STX 0 0 0 0 0 0 1 0
2 Sequence code X Sequence no. Parameter byte count
3 Control code Target
interface
Command code
4…n Parameters Number of parameters depends on the parameter
byte count part of the sequence code.
n+1 Checksum Bitwise exclusive-OR operation between all bytes
of this messages except the STX byte (first byte,
start byte).
剩余109页未读,继续阅读
资源评论

茂茂的蜗牛
- 粉丝: 0
- 资源: 16

上传资源 快速赚钱
我的内容管理 收起
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助

会员权益专享
安全验证
文档复制为VIP权益,开通VIP直接复制
