实例介绍
CAN总线标准ISO 11898-1 2015版本。 希望和大家分享,顺便赚点积分。
lso11898-1:2015[E Contents Page Foreword… Introduction VI Scope Conformance Normative references 2 4 Terms and definitions…… Symbols and abbreviated terms 面面面日面 Basic concepts of CAN 6.1 CAN properties 7 6.2F1 8 6.3 Bus access method 8 6. 4 Information routing 8 6.5 Network flexibility 8 6.6 Data consisten 8 6.7 Remote data request 8 6.8 Error detection 9 6.9 Error signalling and recovery time 6.10 ACK 6.11 Automatic retransmission 6.12 Fault confinement 6.13 Error-active 9999 6.14 Error-passive 615Bus-Off… 10 7 Layered architecture of caN 10 7.1 Reference to osi model 7.2 Protocol specification 7.3 Format description of services 7.3.1 Format description of service primitives 11 7.3.2 Types of service primitives 12 74 LLC interface 8 Description of LLC sub-layer .12 8.1 General 12 8.2 Services of llc sub-laver 13 8.2.1 Types of connectionless-mode transmission services 8.2.2 Service primiti fication 13 8.3 Functions of llC sub-layer …18 8.3.1G 18 8.3.2 Frame acceptance filtering 18 8.3.3 Overload notification 18 8.3.4 Recovery management 8. 4 Structure of llc frames 19 8.4.1 General 1面 19 8.4.2 Specifi fLLC DE 8.4.3 Specification of LLC RF 20 8.5 Limited LLC frames Interface between llc and mac .21 9.1 Services 21 9.2 Time and time triggering 21 9.2.1 Description 21 9.2.2 Time base 21 9.2.3 Time reference point 21 Copyright International Or @za8- hard Abh rights reserve for resale 11 10 017 18-46 49 mst, uiser-da 0. hou No repm Iction or networking permitted without license from IHs Iso11898-1:2015(E〕 9.2.4 Event generation 22 9,3 Disabling automatic retransmission 2 93.1 Retransmission of frames 22 9.4 Message time stamping 22 10 Description of MAC sub-layer 22 10.1 General 22 10.2 Services of MAC sub-layer 22 10.2.1 Service description 面国面面面a 22 10.2.2 Service primitives specification 23 10.3 Functional model of MAc sub-layer architecture 27 10.3. 1 Capability 27 10.3.2 Frame transmission .27 10.3.3 Frame reception 28 10.4 Structure of mac frames 1图面面面1面面E面面面面E面E围面面面面面面E面面面面面面E围B围面i面E面面 29 10.4.1 Description 29 10.4.2 Specification of MAC DF 29 10.4.3 Specification of MAC rF 34 10.4.4 Specification of EF 34 10.4.5 Specification of OF 35 10.4.6 Specification of inter-frame space 36 10.5 Frame coding 37 10.6 Frame acknowledgement 37 10.7 Frame validation 37 10.8 Order of bit transmission 38 10.9 Medium access method 39 10.9.1 General 面正 39 10.9.2 Multi-master 39 10.9.3 Bus access 40 10.9.4 Bus integration state 40 10.9.5 Protocol exception event. 40 10.9.6 Transmission of mac frames 40 109.7 Content-based arbitration 40 10.9.8 Frame priority .41 10.99 Collision resolution 41 10.9.10 Disabling of frame formats……… 41 10.10 MAC data consistency 41 10.11 Error detection 41 10.12 Error signalling 42 10.13 Overload signalling .43 10.14 Bus monitoring .44 10.15 Restricted operation 44 11 PL specification 面面面日 44 11.1 General and functional modelling …4 11.2 Services of Pl 44 11.2.1 Description 44 11.2.2 PCS_ Data Request 45 11.2.3 PCS Data Indicate 45 11.2.4 Pcs Status, Transmitter 1B面 ……45 1.2.5 PCS Status. Receiver 45 11.3 PCS specification 45 11.3.1 Bit encoding/decoding 45 1.3.2 Synchronization 面面面面 .50 11.3.3 Transmitter delay compensation .52 11.4 AUI specification 面E 54 1.4.1 54 11.4.2 PCS to PMA messages 55 11.4.3 PMA to PCs message 55 o ISO 2015-All rights reserve 97500 UIserba. zhou m tted without lic Not for RasalA. 01/11/2017 18: 46: 49 MST lso11898-1:2015[E 12 Description of supervisor FCe 55 12.1 Fault confinement 15 12.1.1 Obiectives 面aB面aa面a面面 180048088888840 55 12.1.2 Strategies 2.1.3 Fault confinement interface specification 56 12.1.4 Rules of fault confinement 58 12.1.5 Network start-up 60 12.2 Bus failure management …60 Annex A (informative) Additional Information 61 Bibliography .65 Copyright International Or @za8- hard Abh rights reserve 46306 0. hou No repm Iction or networking permitted without license from IHs Not for RasalA. 01/11/2017 Iso11898-1:2015(E〕 Foreword ISo (the International Organization for Standardization is a worldwide federation of national standards bodies (iso member bodies). The work of preparing International Standards is normally carried out o rough ISO technical committees. Each member body interested in a subject for which a technical committee has been established has the right to be represented on that committee. International organizations, governmental and non-governmental, in liaison with ISO, also take part in the work Iso collaborates closely with the International Electrotechnical Commission (IEC on all matters of electrotechnical standardization The procedures used to develop this document and those intended for its further maintenance are described in the ISo/IEC Directives, Part 1. In particular the different approval criteria needed for the different types of Iso documents should be noted. This document was drafted in accordance with the editorialrulesoftheIsO/ieCDirectives,Part2(seewww.iso.org/directives) Attention is drawn to the possibility that some of the elements of this document may he the subject of patent rights. ISO shall not be held responsible for identifying any or all such patent rights. Details of any patent rights identified during the development of the document will be in the Introduction and or ontheIsolistofpatentdeclarationsreceived(seewww.iso.org/patents) Any trade name used in this document is information given for the convenience of users and does not constitute an endorsement For an explanation on the meaning of Iso specific terms and expressions related to conformity assessment, as well as information about Isos adherence to the wto principles in the technical Barriers to Trade(tbt), see the following URL: Foreword- Supplementary information The committee responsible for this document is ISO/TC 22, Road vehicles, Subcommittee SC 31, Data communication This second edition cancels and replaces the first edition (Iso 11898-1: 2003), which has been technically revised. It also incorporates the Corrigendum ISo 11898-1: 2003/ Cor 1: 2006 ISo 11898 consists of the following parts, under the general title road vehicles Controller area network (CAN) Part 1: Data link layer and physical signalling Part 2: High-speed medium access unit 1) Part 3: Low-speed, fault-tolerant, medium-dependent interface Part 4: Time-triggered communication Part 5: High-speed medium access unit with low-power mode 1) Part 6: High-speed medium access unit with selective wake-up functionality 1) 1) Parts 2, 5, and 6 are being revised They will be merged under a new edition of Part 2 o ISO 2015-All rights reserve ds bodies 97500 UIserba. zhou m tted without lic Not for RasalA. 01/11/2017 18: 46: 49 MST lso11898-1:2015[E Introduction ISo 11898 was first published as one document in 1993. It covered the can data link layer, as well as the high-speed physical layer In the reviewed and restructured iso 11898 series Part 1 defines the data link layer including the logical link control (LlC) sub-layer and the medium access control (MAC) sub-layer, as well as the physical signalling(PHS)sub-layer Part 2 defines the high-speed physical medium attachment (Pma); Part 3 defines the low-speed fault-tolerant physical medium attachment(PMA); Part 4 defines the time-triggered communication; Part 5 defines the power modes of the high-speed physical medium attachment (PMa); Part 6 defines the selective wake-up functionality of the high-speed physical medium attachment 〔PMA) NOTE IS0 11898-2 is updated in parallel to the update of this part of iso 11898 to combine the functions described in ISo 11898-2, IS0 11898-5 and ISo 11898-6(The future edition of Iso 11898-2 will cancel and replace the current ISo 11898-2: 2003, IS0 11898-5: 2007 and Iso 11898-6: 2013) Figure 1 shows the relations between the oSi reference layers and the parts of the iso 11898 series OS CAN reference lavers Application ogic link control Presentation Media access control Scope of Session so11898 Physical coding Transport sub-layer AUl Network Physical media pe attachement Iso 11898-2 resp Data link Physical media MD||so11898-3 Physical dependent NOTE ISo 11898-2 refers to the future edition that will cancel and replace the current Iso 11898-2: 2003 ISO11898-5:2007 and iso11898-6:2013 Figure 1--can data link and physical sub-layers relation to the oSI model Copyright International Or @za8- hard Abh rights reserve for resale 11 10 017 18-46 49 mst, uiser-da 0. hou No repm Iction or networking permitted without license from IHs ds bodies Lic 0. hou m Not for RasalA. 01/11/2017 INTERNATIONAL STANDARD Iso11898-1:2015(E Road vehicles-- Controller area network ( CaN) Part 1 Data link layer and physical signalling 1 Scope This part of ISo 11898 specifies the characteristics of setting up an interchange of digital in formation between modules implementing the can data link layer. Controller area network is a serial communication protocol, which supports distributed real-time control and multiplexing for use within road vehicles and other control applications This part of ISo 11898 specifies the Classical CAN frame format and the newly introduced CAN Flexible Data Rate Frame format. The Classical Can frame format allows bit rates up to 1 Mbit/s and payloads up to 8 byte per frame. The Flexible data Rate frame format allows bit rates higher than 1 Mbit/s and payloads longer than 8 byte per frame This part of Iso 11898 describes the general architecture of CAN in terms of hierarchical layers according to the Iso reference model for open systems interconnection(oSi) according to ISO/IEC 7498- 1. The can data link layer is specified according to ISO/IEC 8802-2 and ISO/IEC 8802-3 This part of Iso 11898 contains detailed specifications of the following(see Figure 2) logical lin k control sub-layer, medium access control sub-layer hysical coding sub-layer There are three implementation options. They are the following: support of the Classical can frame format only, not tolerating the Flexible Data Rate frame format support of the classical Can frame format and tolerating the Flexible Data Rate frame format support of the Classical CAN frame format and the Flexible Data Rate frame format The last option is recommended to be implemented for new designs. NOtE Implementations of the first option can communicate with implementations of the third option only as long as the Flexible data rate frame format is not used; otherwise, Error frames are generated. There are opportunities to run implementations of the first option also in Can networks using the Flexible Data Rate frame format, but these are not in the scope of this part of ISo 11898 2 Conformance The data link layer conformance test plan is not in the scope of this part of Is0 11898. For an implementation to be compliant with this part of Iso 11898, the logical link control sub-layer and the medium access control sub-layer shall comply with all mandatory specifications and values given in this part of Iso 11898. If optional specifications and values are implemented, they shall comply, too Copyright International Or @za8- hard Abh rights reserve for resale 11 10 017 18-46 49 mst, uiser-da 0. hou No repm Iction or networking permitted without license from IHs Iso11898-1:2015(E〕 3 Normative references The following documents, in whole or in part, are normatively referenced in this document and are indispensable for its application. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments applies ISO/IEC 7498-1, Information technology-Open Systems Interconnection- Basic Reference Model: The Basic model- Part 1 ISO/EC/IEEE 8802-3: 2014, Standard for Ethernet- Part 3 4 Terms and definitions For the purpose of this part of ISo 11898, the following terms and definitions apply. 4.1 arbitration phase phase where the nominal bit time is used 4.2 bit stuffing frame coding method providing bus state changes required for periodic resynchronization when using an nrz bit representation Note 1 to entry: Whenever the transmitting logic encounters a certain number (stuff width of consecutive bits of equal value in the data, it automatically stuffs a bit of complementary value-a stuff bit-into the outgoing bit stream. Receivers de-stuff the data frames and the remote frames, i.e. the inverse procedure is carried out 4.3 bus topology of a communication network, where all nodes are reached by passive links which allow transmission in both directions 4.4 bus comparator electronic circuit converting physical signals used for transfer across the communication medium back into logical information or data signals 4.5 bus driver electronic circuit converting information or data signals into physical signals so that these signals can be transferred across the communication medium 4.6 bus state one of two complementary logical states: dominant or recessive Note 1 to entry: The dominant state represents the logical 0, and the recessive state represents the logical 1 During simultaneous transmission of dominant and recessive bits, the resulting bus state is dominant. When no transmission is in progress, the bus is idle. During idle time, it is in recessive state 47 Classical base frame format format for Data Frames or Remote Frames using an 11-bit identifier, which are transmitted with one single bit rate and up to and including 8 data by tes 48 Classical extended frame format format for Data Frames or Remote Frames using a 29-bit identifier, which are transmitted with one single bit rate and up to and including 8 data bytes o ISO 2015-All rights reserve ds bodies 97500 UIserba. zhou m tted without lic Not for RasalA. 01/11/2017 18: 46: 49 MST 【实例截图】
【核心代码】
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论