1、BSI Standards PublicationBS ISO 16845-2:2014Road vehicles Controllerarea network (CAN)conformance test planPart 2: High-speed medium access unit withselective wake-up functionalityBS ISO 16845-2:2014 BRITISH STANDARDNational forewordThis British Standard is the UK implementation of ISO 16845-2:2014.
2、The UK participation in its preparation was entrusted to TechnicalCommittee AUE/16, Electrical and electronic equipment.A list of organizations represented on this committee can beobtained on request to its secretary.This publication does not purport to include all the necessaryprovisions of a contr
3、act. Users are responsible for its correctapplication. The British Standards Institution 2014. Published by BSI StandardsLimited 2014ISBN 978 0 580 80552 3ICS 43.040.15Compliance with a British Standard cannot confer immunity fromlegal obligations.This British Standard was published under the author
4、ity of theStandards Policy and Strategy Committee on 30 November 2014.Amendments issued since publicationDate Text affectedBS ISO 16845-2:2014 ISO 2014Road vehicles Controller area network (CAN) conformance test plan Part 2: High-speed medium access unit with selective wake-up functionalityVhicules
5、routiers Gestionnaire de rseau de communication (CAN) plan dessai de conformit Partie 2: Unit daccs au mdium haute vitesse avec fonctionnalit de rveil slectifINTERNATIONAL STANDARDISO16845-2First edition2014-11-01Reference numberISO 16845-2:2014(E)BS ISO 16845-2:2014ISO 16845-2:2014(E)ii ISO 2014 Al
6、l rights reservedCOPYRIGHT PROTECTED DOCUMENT ISO 2014All rights reserved. Unless otherwise specified, no part of this publication may be reproduced or utilized otherwise in any form or by any means, electronic or mechanical, including photocopying, or posting on the internet or an intranet, without
7、 prior written permission. Permission can be requested from either ISO at the address below or ISOs member body in the country of the requester.ISO copyright officeCase postale 56 CH-1211 Geneva 20Tel. + 41 22 749 01 11Fax + 41 22 749 09 47E-mail copyrightiso.orgWeb www.iso.orgPublished in Switzerla
8、ndBS ISO 16845-2:2014ISO 16845-2:2014(E) ISO 2014 All rights reserved iiiContents PageForeword ivIntroduction v1 Scope . 12 Normative references 13 Terms and definitions . 14 Symbols and abbreviated terms . 25 OSI conformance test method . 36 Organization . 56.1 General organization 56.2 Test case o
9、rganization 66.3 Hierarchical structure of tests . 87 Test cases 97.1 Transceiver physical layer part 107.2 Normal CAN communication acceptance 357.3 Wake-up frame evaluation . 577.4 Frame error counter management . 777.5 Wake-up pattern class . 967.6 Low-power mode operation class 101Bibliography .
10、 105BS ISO 16845-2:2014ISO 16845-2:2014(E)ForewordISO (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 through ISO technical committees. Each member b
11、ody 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 Electro
12、technical 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 I
13、SO documents should be noted. This document was drafted in accordance with the editorial rules of the ISO/IEC Directives, Part 2 (see www.iso.org/directives).Attention is drawn to the possibility that some of the elements of this document may be the subject of patent rights. ISO shall not be held re
14、sponsible 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 on the ISO list of patent declarations received (see www.iso.org/patents).Any trade name used in this document is information giv
15、en 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 followin
16、g URL: Foreword - Supplementary informationThe committee responsible for this document is ISO/TC 22, Road vehicles, Subcommittee SC 3, Electrical and electronic equipment.ISO 16845 consists of the following parts, under the general title Road vehicles Controller area network (CAN) - Conformance test
17、 plan: Part 1: Overview1) Part 2: High-speed medium access unit with selective wake-up functionality1) Under preparation.iv ISO 2014 All rights reservedBS ISO 16845-2:2014ISO 16845-2:2014(E)IntroductionISO 16845 was first published in 2004 to provide the methodology and abstract test suite necessary
18、 for checking the conformance of any CAN implementation of the CAN specified in ISO 11898-1. The new restructured ISO 11898 contains ISO 11898-6, which defines the physical layer requirements for partial networking.ISO 16845-2 provides the methodology and abstract test suite necessary for checking t
19、he conformance of any CAN implementation specified in ISO 11898-6. ISO 2014 All rights reserved vBS ISO 16845-2:2014BS ISO 16845-2:2014Road vehicles Controller area network (CAN) conformance test plan Part 2: High-speed medium access unit with selective wake-up functionality1 ScopeThis part of ISO 1
20、6845 establishes test cases and test requirements to realize a test plan verifying if the CAN transceiver with implemented selective wake-up functions conform to the specified functionalities referenced in ISO 11898-6. The kind of testing defined in this part of ISO 16845 is named as conformance tes
21、ting.2 Normative referencesThe 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 a
22、mendments) applies.ISO/IEC 9646-1, Information technology Open Systems Interconnection Conformance testing methodology and framework Part 1: General conceptsISO/IEC 9646-2, Information technology Open Systems Interconnection Conformance testing methodology and framework Part 2: Abstract Test Suite s
23、pecificationISO 11898-1, Road vehicles Controller area network (CAN) Part 1: Data link layer and physical signallingISO 11898-2:2003, Road vehicles Controller area network (CAN) Part 2: High-speed medium access unitISO 11898-5:2007, Road vehicles Controller area network (CAN) Part 5: High-speed medi
24、um access unit with low-power modeISO 11898-6:2013, Road vehicles Controller area network (CAN) Part 6: High-speed medium access unit with selective wake-up functionality3 Terms and definitionsFor the purposes of this document, the terms and definitions given in ISO 11898-2:2003, ISO 11898-5:2007 an
25、d the following apply.3.1implementation under testIUTdevice (e.g. standalone transceiver, SBC) which will be tested according to this conformance test planNote 1 to entry: An IUT can be part of an SUT.INTERNATIONAL STANDARD ISO 16845-2:2014(E) ISO 2014 All rights reserved 1BS ISO 16845-2:2014ISO 168
26、45-2:2014(E)3.2lower testerLTpart of the test system which emulates the interfaces of the underlying OSI layer from sight of the IUT3.3system under testSUTsystem where the IUT is implemented if the IUT is part of a system or cannot operate as a standalone device3.4test systemTSsystem which fulfils a
27、ll requirements to perform the tests defined in ISO 16845-23.5upper testerUTpart of the test system which emulates the interfaces of the overlying OSI layer from sight of the IUT4 Symbols and abbreviated termsACK AcknowledgeASP Abstract service primitivesCAN Controller Area NetworkCRC Cyclic Redunda
28、ncy CheckDLC Data Length CodeEOF End of FrameID IdentifierMAC Medium Access ControlOSI Open System InterconnectionPCO Point of control and observationPHS Physical SignallingPL Physical LayerPMA Physical Medium AttachmentFEC Frame Error CounterSOF Start of FrameWUF Wake-up frameWUP Wake-up patternIMF
29、 Intermission field2 ISO 2014 All rights reservedBS ISO 16845-2:2014ISO 16845-2:2014(E)5 OSI conformance test methodOSI conformance testing was mainly introduced by the ISO 9646-1and 2, for the purpose of regulating and harmonizing impartial tests. In general information about the internal structure
30、 of the implementation as well as source code is not available to the party performing the tests. This explains why the preferred OSI conformance testing methodology is black box testing and consequently does not take into account any implementation details.Figure 1 depicts the OSI coordinated test
31、method.KeySUT System Under Test LT Lower TesterUT Upper Tester TCP Test Coordination ProcedureIUT Implementation Under Test TS Test SystemFigure 1 The OSI coordinated test methodOSI conformance testing proposes many test methods suitable for different sorts of Implementation Under Test (IUT), provid
32、ing different points of control and observation.The coordinated test method is the most suitable for CAN devices. It provides a simple interface to the Implementation Under Test, i.e. the CAN-Bus itself, and a flexible test coordination protocol using CAN messages between the Lower Tester (LT) as pa
33、rt of the Test System and the Upper Tester (UT) in the System Under Test. The Lower Tester controls and observes the Implementations Under Test lower service boundary indirectly via the underlying service provider, using the Abstract Service Primitives (ASPs) of the CAN protocol. The Upper Tester co
34、ntrols and observes the Implementations Under Test upper service boundary. The Test Coordination Procedures (TCPs) ensure the cooperation between the Lower Tester and the Upper Tester.In case of CAN Transceiver with partial networking functionalities, influencing variables from the upper tester side
35、 are the digital CAN signals (RxD and TxD), host interface signals and I/O signals like INH or ISO 2014 All rights reserved 3BS ISO 16845-2:2014ISO 16845-2:2014(E)Wake. The lower tester influencing variables are the analogue bus interface with the signals CAN_H and CAN_L and the supply power. Figure
36、 2 depicts the influencing variables on the IUT.Figure 2 Influencing variables on IUTTo realise all services stimulating the IUT and recording the responses of the IUT regarding all influencing variables, abstract logical devices are defined as followed.Figure 3 depicts abstract logical devices of u
37、pper and lower tester.4 ISO 2014 All rights reservedBS ISO 16845-2:2014ISO 16845-2:2014(E)Figure 3 Abstract logical devices of upper and lower testerThe OSI model divides a communication interface into seven logical layers which contain defined interfaces from / to the upper or lower layer. Followin
38、g the OSI coordinated test method the test system realises the upper layer with the help of the upper tester and the lower layer with the help of the lower tester. For transceivers without partial networking capability, the transceiver is implemented inside the logical layer 1 the physical layer wit
39、h the lower interface as the CAN bus and the upper interface to the 2nd layer, known as the data link- or protocol layer, with logical signals TxD and RxD. In case of a high speed CAN transceiver supporting partial networking the IUT itself contains functionalities appropriate to the data link layer
40、 (partial networking functionalities) and physical layer (typical transceiver functionalities). To follow the OSI coordinated test method this part of ISO 16845 is split into a physical layer part, verifying the transceiver characteristics appropriated to the OSI physical layer and a data link layer
41、 part, verifying the protocol implementation necessary for partial networking functionalities.6 Organization6.1 General organizationThe abstract test suites of the TS are independent to one another. Each abstract test suite checks the behaviour of the IUT for a particular parameter of the CAN protoc
42、ol specification as defined in ISO 11898-1. Each test case may be executed one after another in any order or alone. ISO 2014 All rights reserved 5BS ISO 16845-2:2014ISO 16845-2:2014(E)Test cases requiring variations of individual parameters have to be repeated for each value of the parameter. Each r
43、epetition is named elementary test. A test case including different elementary tests is valid only if all tests pass.The result of executing a test case on an IUT should be the same whenever it is performed. To realize such reproducibility of test results this part of ISO 16845 is designed in the wa
44、y to minimize the possibility that a test case produces different test outcomes on different occasions. Therefore, test requirements which have to be met and how the verdicts are to be assigned are defined in an unambiguous way.6.2 Test case organization6.2.1 OverviewEach elementary test is made of
45、three states: Setup state; Test state; Verification state.Before the first elementary test is started the IUT has to be initialised into the default state.6.2.2 Setup state6.2.2.1 GeneralThe setup state is a defined and explicitly entered and verified state in which the IUT has to be before entering
46、 the test state. A test starts with unpowered IUT. The first step is to set IUT power supply on. The IUT, unless otherwise specified, is configured with data as found in 6.2.4.2.6.2.2.2 Default setupFigure 4 describes the default setup for the test which shall be applied unless otherwise specified i
47、n setup of the test case description. Furthermore, the setup information of the related device documentation shall be followed.Figure 4 Default setup for test6.2.2.3 Default stateThe Default state is characterised by the following default value: IUT power supply on;6 ISO 2014 All rights reservedBS I
48、SO 16845-2:2014ISO 16845-2:2014(E) IUT configured to test bit rate; IUT set to Normal mode.After the end of each Elementary test, the default state must be re-applied.6.2.3 Test stateThe time between two frames on the bus shall be, unless otherwise specified, at least 2 bits of idle after IMF. The i
49、dle phase shall not be longer than tSILENCE(min).6.2.4 Test frame definition for protocol related test cases6.2.4.1 Elements of test framesIn the protocol related test cases the focus is on correct frame reception and handling. Therefore, test frames or test pattern will be sent to the IUT. The test frames with 11-bit identifiers are structured as depicted in Figure 5. The elements of the test frame are described below.Figure 5 11-bit CAN-ID format frame elementsFigure 6 depicts