在好例子网,分享、交流、成长!
您当前所在位置:首页Others 开发实例一般编程问题 → 最新LIN2.2通讯协议

最新LIN2.2通讯协议

一般编程问题

下载此实例
  • 开发语言:Others
  • 实例大小:3.48M
  • 下载次数:7
  • 浏览次数:479
  • 发布时间:2020-07-13
  • 实例类别:一般编程问题
  • 发 布 人:robot666
  • 文件格式:.pdf
  • 所需积分:2
 

实例介绍

【实例简介】
最新LIN2.2通讯协议,开发LIN通讯必备的资料。请大家不要错过!
LIN Specification Package Revision 2.2 December 31, 2010; Page 3 LOCAL INTERCONNECT NETWORH TABLE OF CONTENTS Specification Package LIN 1.1.1 Scopθ… .10 1.1.2 Features and possibilities 10 1.1.3 Work flow concept 1.1.4 Node concept 1.1.5 Concept of operation 1.1.5.1 Master and slave 1.1.5.2 Frames∴3 1.1.5.3 Data transport.. 1.1.5.4scHeduletablewwwwwwwwwww.14 1.1.6 Document overview 14 1.1.7 History and background 14 1.1.7.1 Compatibility with LIN 1.3 15 1.1.7.2 Compatibility with LIN 2.0 16 1.1.7.3 Compatibility with LIN 2.1 aaa::aaaa日::a 16 1.1.7. 4 Changes between LIN 1.3 and Lin 2.0 1.1.7.5 Changes between LiN 2.0 and LiN 2.1 ■重 17 1.1.7.6 Changes between lin 2.1 and LIn 2.2 1.1.8 References 18 1.2 L| N Glossary……… Protocol Specification 2.1 Introduction 25 2.2 Signal Management 26 2.2.1 Signal types 26 2.2.2 Signal consistency 26 2.2.3 Signal packing………… 26 2.2.4 Signal reception and transmission.…………………27 2.3 Frame Transfer 29 2.3.1 Frame structure 29 2.3.1.1 Break field 30 2.3.1.2 Sync byte field 30 2.3.1.3 Protected identifier field …31 2.3.1.4Data.…31 2.3.1.5 Checksum..…………… 32 2.3.2 Frame length 32 2.3.3 Frame types. Websitewww.lin-subbus.org LIN Specification Package Revision 2.2 December 31, 2010; Page LOCAL INTERCONNECT NETWORH 2.3.3.1 Unconditional frame .33 2.3.3.2 Event triggered frame 34 2.3.3.3 Sporadic frame 36 2.3.3.4 Diagnostic frames .37 2.3. 3.5 Reserved frames .38 2.4 Schedule tables 39 2.4.1 Time definitⅰons 39 2.4.2 frame Slot 39 24.3 Schedule table handling… 40 2.5 Task Behavior model .41 2.5.1 Master task state machine 41 2.5.2 Slave task state machine 41 2.52.1 Break/sync field sequence detector. ...........................................41 2.52.2 Frame processor….......,.,…, 42 2.6 Network Management 45 2.6 slave communication state diagram 5 2.6.2 Wake up.. 16 2.6.3 Go to sleep... 47 Status Management.….……………………………49 2.7.1 Concept 2.7.2 Event triggered frames 49 2.7.3 Reporting to the cluster....... 49 2.74 Reporting within own node 50 2.8 Appendices 52 2.8.1 Table of numerical properties 52 2.8.2 Table of valid frame identifiers .SI. 53 2.8.3 EXample of checksum calculation 55 2.8.4 Syntax and mathematical symbols used in this standard 56 Trans port Layer Specification Introduction .wwwwwwawwW. 58 3.2 Transport laye 59 3.2.1 PDU structure 59 3.2.1.1 Overview 60 3.2.1.2NAD 60 3.2.1.3PC|. 3.2.1.4LEN …,61 3.2.1.5S|D 1D1日 61 3.2.1.6D1toD6 61 3.2.2 Communication 61 3.2.2.1 Single Frame Transmission 62 Websitewww.lin-subbus.org LIN Specification Package Revision 2.2 December 31, 2010; Page 5 LOCAL INTERCONNECT NETWORH 3.2.2.2 Multiple Frame Transmission ∴62 3.2.3 Error Handling 62 3.24 Defined requests 63 3.2.5 timing constraints Node configuration and Identification Specification 4.1 Introduction ,67 4.2 Node configuration and identification .. LIN product identification 68 4.2.1.1 Wildcards 68 4.2.2 Slave node model .69 4.2.2.1 Initial nad 70 4.2.3 PDU structure 71 4.2.3.1 Overview 72 4.2.3.2NAD 72 4.2.3.3 PC 4.2.3.4S|D 73 4.2.3.5RS|D 73 4.2.3.6D1toD5 73 4.2.4 lode configuration and identification….……,…74 4.2.5 Node configuration services…… 74 4.2.5.1 Assign NAD 74 4.2.5.2 Conditional change Nad .75 4.2.5.3 Data dump...... 76 4.2.5.4 Save Configuration 4.2.5.5 Assign frame id range 4.2.6 Identification 78 4.2.6. 1 Read by identifier 日::aaa:::..::::a::: 78 Diagnostic specification 5.1 ntroduction∴81 5.1.1 using the transport layer....….……… ∴81 5.1.2 Lin master ww..wwwwWww 82 5.1.3 slave nodes 82 5.2 Diagnostic classes 83 5.2.1 Diagnostic Class I 83 5.2.1.1 Transport protocol 83 5.2.1.2 Diagnostic services 83 5.2.2 Diagnostic Class I...……… 83 5.2.2.1 Transport protocol ::· .日::..:::::.:::日:::::E 83 5.2.2.2 Diagnostic services 84 Websitewww.lin-subbus.org LIN Specification Package Revision 2.2 December 31, 2010; Page 6 LOCAL INTERCONNECT NETWORH 5.2.3 Diagnostic ClassⅢl…… 84 5.2.3.1 Addressing 84 5.2.3.2 Transport protocol 84 5.2.3.3 Diagnostic services 85 5.2.4 Summary of slave node classes 85 5.2.5 Master node requirements 8 2.5.1 Transport protocol 6 5.2.5.2 Fault management, sensor reading, IO control........86 52.6 User detined diagnostics 87 5.3 Requirements for Signal based diagnostics 88 5.4 Transport Protocol handling in LIN-master 90 5.4.1 Diagnostic master request schedule..……,…,…!90 5.4.2 Diagnostic slave response schedule 91 54.3 Diagnostic schedule execution..........................92 5. 4.3.1 Diagnostics Interleaved Mode 93 5.4.3.2 Diagnostics Only Mode 95 5.4.4 Transmission handler requirements 97 5.441Masternodetransmissionhandlerwwwwwwwwww.98 Slave node transmission 5.6 Slave diagnostic timing requirements 107 Physical Layer Specification Introduction 6.2 Physical Layer Compatibility 111 Bⅰ t rate Tolerance∴. 112 6.4 Timing Requirements aaaa. n In日aa::aaa:“.aa::.a日a::: I5日aaa:aa::.a .114 6.4.1 Bit Timing Requirements 114 6.4.2 Synchronization Procedure ,114 64.3 Bit Sample Timing… .1144 6.5 Line driver/Receiver 17 6.5 General Configuration… …117 6.52 Definition of Supply Voltages for the Physical Interface.....117 6.53 Signal specification.................................119 6.54 Electrical DC parameters 120 6.5.4.1 Electrical AC Parameters ..122 6.55 Line characteristics ...................................................................124 6.56 Performance in non-operation supply voltage range......125 6.5.7 Performance during fault modes. .......... 125 6.5.7.1 Loss of supply voltage connection or ground connection... 125 6.5.7.2 Bus wiring short to battery or ground 126 6.5.8 ESD/EMI compliance .126 Websitewww.lin-subbus.org LIN Specification Package Revision 2.2 December 31, 2010; Page 7 LOCAL INTERCONNECT NETWORH Application Program Interface Specification 7.1 Introduction 128 7.1.0.1 LiN cluster generation 128 7.1.1 Concept of operation 128 7.1.1.1 LIN core APl .128 7.1.1.2 LiN node configuration and identification APl.......... 129 7.1.1.3 LIN transport layer API 129 7.2 Core APl 130 7.2.1 Driver and cluster management 130 7.2.1.1 sys init 130 7.2.2 Signal interaction 130 7.22.1 Signal types................131 7.2.2.2 Scalar signal read 131 7.2.2.3 Scalar signal write.…………131 7. 2. 2. 4 Byte array read 132 7.2.2.5 Byte array write 132 7.2.3 Notification 133 7.2.3.1 flg tst .133 7.2.3.2 flg clr 134 7.2.4 Schedule management..……,…,……………134 7.2.4.sch tick 134 7.2.4.2 sch set 135 7.2.5 Interface management 136 7.2.5.1 ifc init 136 7.2.5.2 fc_goto_slep…..,.,,,,,,…,137 7.2.5.3 ifc wake_up… 137 7.2.54 ifc ioctl …138 7.255 ifc rx 138 7.2.5.6 ifc tx .139 7.2.5.7 ifc aux .140 7.2.58 ifc read status∴…140 7.2.6 User provided call-outs 143 7.2.6.11_ sysIn_ disable.…… ……143 7.26.2 sys irg restore 144 Node configuration and identification 145 7.3.1 Node configuration 145 7.3.1. d is ready 重■11■面画D1D 1445 7.3.1.2 Id check response 146 7.3.1.3ld_ assign_ frame_ id range…………………………146 7.3. 1.4 Id assign NAD 7.3.1.5 Id save configuration .1447 Websitewww.lin-subbus.org LIN Specification Package Revision 2.2 December 31, 2010; Page 8 LOCAL INTERCONNECT NETWORH 7.3.1.6 Id read configuration 148 7.3.1.7 ld set configuration ■■重重,D重重 148 Id conditional change Nad 149 7.3.3 Identification 150 7.3.3.1 ld read by id 150 7.3.3.2 ld read by id callout................................151 74 Transport layer.. 152 7.4.1 Raw and Cooked apl 74.2 Initialization 152 74.3 Raw APl .153 7.4.3.1 Id put raw 153 74.3.2d_ get raw.……… 7.4.3.3 Id raw tx status ..154 7, 43. 4 d raw rx status .154 7,4,4 Cooked aPl 155 7.4.4.1 ld send message 155 74.4.2 Id receive message 156 74. d tx status 157 7.4.4.4drxstatuswwwwwwwwwwwwwwwwwwwwwwwww.157 7.5 Examples… ∴159 7.5.1 Master node example………… 159 7.5.2 Slave node example........... 161 Node Capability Language Specification 8.1 Introduction 165 8.1.1 Plug and play workflow ana:aaaa:1aaaaa::“aaa::aaaa:aaaaa:a.aaa:aa:aaaa::“aa 165 8.1.1.1 lin cluster Generation …165 8.1.1.2 LIN cluster design 166 8.1.1.3 Debugging 166 8.2 Node capability file definition ..167 8.2.1 Global definition …167 8.2.1.1 Node capability language version number definition......167 8.2.2 Node definition 167 8.2.3 General definition 167 8.2.3.1 LIN protocol version number definition 168 8.2.3.2 LIN Product ldentification 168 8.2. 3.3 Bit rate 168 8.2.34 Sends wake up signa|.....…..……68 8.24 Diagnostic definition …………168 82.5 Frame definition 169 8.2.5.1 Frame properties 170 Websitewww.lin-subbus.org LIN Specification Package Revision 2.2 December 31, 2010; Page 9 LOCAL INTERCONNECT NETWORH 8.2.5.2 Signal definition .170 8.2.5. 3 Signal encoding type definition 171 8.26 Status management 172 8.2.7 Free text definition ..172 8.3 Overview of Syntax 173 8.4 EXample file.… 174 Configuration Language Specification Introduction 176 9.2 LIN description file definition 177 9.2.1 Global definition .177 9. 2.1.1 LIN protocol version number definition .........................177 9.2.1.2 LIN language version number definition 9.2.1.3L| N speed definition..…,,…………………177 9.2.1.4 Channel postfix name definition……178 9.2.2 Node definition 178 9.2.2.1 Participating nodes 178 9.2.2.2 Node attributes wwm178 9.2. 2.3 Node composition definition 180 9.2.3 Signal definition………….…….181 9.2.3.1 Standard signals 181 9.2.3.2 Diagnostic signals 182 9.2.3. 3 Signal groups ..182 9.24 frame definition 183 9.2.4.1 Unconditional frames 183 924.2 Sporadic frames.,,……,…………184 9.24.3 Event triggered frames…….….… 184 9.2. 4.4 Diagnostic frames 185 9.2.5 Schedule table definition 186 9.26 Additional information 188 9.2.6.1 Signal encoding type definition.……………188 9.2.6.2 Signal representation definition ...........................................190 9.3 Overview of Syntax,… 191 94 Examples .192 9.4.1 Lin description file 192 Websitewww.lin-subbus.org LIN LIN Specification Package Revision 2.2 December 31, 2010; Page 10 LOCAL INTERCONNECT NETWORH 1.LIN LIN Local Interconnect Network) is a concept for low cost automotive networks, which complements the existing portfolio of automotive multiplex networks. LIN will be the enabling factor for the implementation of a hierarchical vehicle network in order to gain further quality enhancement and cost reduction of vehicles. The standardization will reduce the manifold of existing low-end multiplex solutions and will cut the cost of development, production, service, and logistics in vehicle electronics 1.1.1 SCOPE The Lin standard includes the specification of the transmission protocol, the transmis sion medium, the interface between development tools, and the interfaces for soft- ware programming. LIN promotes the interoperability of network nodes from the viewpoint of hardware and software and a predictable Emc behavior 1.1.2 FEATURES AND POSSIBILITIES The LiN is a serial communications protocol which efficiently supports the control of mechatronics nodes in distributed automotive applications The main properties of the lin bus are single master with multiple slaves concept low cost silicon implementation based on common UART/SCI interface hardware, an equivalent in software or as pure state machine self synchronization without a quartz or ceramics resonator in the slave nodes deterministic signal transmission with signal propagation time computable in advance low cost single-Wire implementation speed up to 20 kbit/s signal based application interaction predictable behavior reconfigurability transport layer and diagnostic support The intention of this specification is to achieve compatibility with any two LIN imple mentations with respect to the scope of the standard, i. e from the application inter- face, APl, all the way down to the physical layer Websitewww.lin-subbus.org 【实例截图】
【核心代码】

标签:

实例下载地址

最新LIN2.2通讯协议

不能下载?内容有错? 点击这里报错 + 投诉 + 提问

好例子网口号:伸出你的我的手 — 分享

网友评论

发表评论

(您的评论需要经过审核才能显示)

查看所有0条评论>>

小贴士

感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。

  • 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
  • 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
  • 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
  • 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。

关于好例子网

本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明

;
报警