Home
User Manual CANoe
Contents
1. The mean transmit frequencies of messages are displayed as line spectra above the identifier axis in this window As an option the user can toggle over to mean transmit spacing The window can be zoomed for detailed evaluations Preselected data segments of messages can be displayed here Graphic representation of signal time responses which are displayed in a X Y diagram above the time axis After the end of measurement a measurement cursor and a difference cursor are provided with which you can examine the coordinates of all measurement points or differences between two measurement points precisely The State Monitor is an analysis window that shows bit values and states It is particularly suitable for displaying digital inputs outputs as well as status information like terminal states or network management states Vector Informatik GmbH Version 7 5 57 Applications Write window Statistics Monitor window User Manual Important information on the progress of the measurement can be output here e g triggering of logging function Furthermore all outputs that the user places with the write command in CAPL programs are written to this window Hardware related information such as number of data and remote frames error frames and bus load are omo son displayed here Availability of this information depends oa on the CAN PC card being
2. User Manual Info The data flow in the measurement setup is always directional It runs from the left starting at the connection symbol connection to the simulation setup to the evaluation windows on the right Info Data flow and functions in online and offline modes only differ in the data source and in the transmit block Refer to chapter 5 8 2 for a description of offline mode Besides such functions as loading and saving configurations or associating CAN databases which you call directly from items in the main menu the data flow diagram and the function blocks in the measurement setup window are used primarily in the configuration of CANoe You configure the measurement setup or its blocks with is shortcut menu On this way new function blocks such as filters or generator blocks can be inserted at the black rectangular insertion points hot spots in the data flow If you wish to exclude a function block from the measurement you can deactivate it before the measurement with the spacebar or with Block active in the shortcut menu This is especially helpful if you have already configured a block and only want to disable it for certain measurements without deleting it Deactivated blocks are shown as a different shape to differentiate them from active blocks A node can be reactivated by pressing the spacebar again or by selecting the same shortcut menu item Block active again The measurement setup can be displayed i
3. Vector Informatik GmbH Version 7 5 45 CANoe Tour Configure the trigger conditions Start the measurement Open the log file User Manual Besides the file icon you can also specify trigger conditions for file logging in the logging block This is often advisable since frequently it is not the data traffic on the can bus over the entire measurement period that is of interest but rather only certain time intervals e g when there are implausible signal values or when error frames occur Open the configuration dialog with the Trigger block s shortcut menu item Configuration To log the entire measurement it is sufficient to change the mode from Single Trigger to Entire Measurement in the trigger configuration dialog Start after the configuration of the log file and the trigge condition the measurement which you stop again after 20 seconds Now with a double click on the log file icon you can open the logged ASCII file Besides the logged messages you can see that statistical information was also logged These lines correspond exactly to the information that is displayed in the Bus Statistics window during a measurement 4 11 Evaluating a log file Play back recorded data Unit 6 Activate the Offline mode Choose the data source Deactivate the logging branch Play back the log file Analysis in Offline mode SAGE Log files in ASCII format can indeed be viewed with text editors but often it is
4. a Initialize the process data 6 Connect the process data with environment variables if you want to change the values of the process data or if you want to display the data in a panel 7 Start the measurement Use the Task Controller to read value from the process data dictionary or to change values and write them into the process data dictionary Reference A detailed description of the used CAPL functions to execute the steps explained above you can found in chapter Option IS011783 15011783 CAPL Process data API of the online help Note The sample configuration System Demo shows how you can use the process data dictionary of an ECU Version 7 5 Vector Informatik GmbH User Manual 16 CANopen In this chapter you find the following information 16 1 Extended features of option CANopen Trace window CANopen generator block CANopen Scanner Bus configuration Add ons 16 2 Databases 16 3 Generate CANopen simulations 16 4 Generate tests Device test Application test 16 5 Control center ProCANopen 16 6 Sample configurations Vector Informatik GmbH Version 7 5 CANopen page 152 page 154 page 155 page 156 page 160 page 160 151 CANopen User Manual 16 1 Extended features of option CANopen General Product components Activation ek Silent installation 152 EE The option CANoe CANopen lets you analyze simulate and automatically test CANopen devices and sy
5. Design of the test functionality system simulation Implementation of test functionality in an ECU remaining bus simulation Specification Integration Regression tests Analysis of real ECU communication Perform diagnostics of ECUs with integrated tester functionality dk dk Ak AA Error search Version 7 5 Vector Informatik GmbH User Manual Applications 5 9 1 Test Feature Set TSF Test procedure CANoe supports testing of controllers and networks by special test functionalities that are called Test Feature Set These can be used to create tests verify individual tests test prototypes or perform regression and conformity tests CAPL Sequential test procedures can be described in CAPL or defined in XML and may be executed at any time during a measurement CAPL recognizes special functions used to formulate tests and can wait for specific events such as the receipt of a message XML Within XML files you can build and parameterize tests with help of predefined test pattern Parallel to test execution defined conditions can be monitored e g conformance to cycle times Test report The results of a performed test are captured in a test report The report is written to a XML file but is also available in HTML format Much of this report is user configurable Perform tests You have the opportunity to implement existing test scenarios that are usually sequential with a linear flow in CAPL or you can use predefined test sequences
6. Remedy Incorrect checksum 1368 Incorrect card type 8 Remedy No access to IMP 12 No reply from CAN controller 106 No messages in RX buffer 1 No message received 7 Command from driver not supported 6 11 1528 RX buffer overrun 101 Remedy 78 Error messages related to communication between CANoe and the CAN PC card as well as errors on the CAN bus or in the CAN card firmware appear in this list In each case a clear text and an assigned error number are given Some of these messages are hardware specific and therefore do not occur with all card types The last transmit request was not executed by the CAN controller This may be due to the error state of the controller or due to the accumulation of to many higher priority messages An attempt was made to access a nonexistent CAN controller Most CAN cards supported by CANoe have two controllers But there are also cards with just one controller Look for a message CANn in the CAPL programs where n is greater than the number of existing controllers This must be replaced by a correct number The CAN controller detected a faulty CRC checksum CANoe card driver and hardware are not compatible The correct CANoe version should be started or another CAN card should be installed The firmware hasn t received access to the interface management processor of the Full CAN Chips 82526 The firmware could not establish a connection to the CA
7. Send Node Engine Message N EngineDatalEEE Message L 8 A E Message Flags Data Yes The following configured items are passed through Message Filter CAN1 0x345 CAN2 0x200 0x400 0x66 Node Filter CAN 1 Dashboard Event Filter Figure 49 Filter configuration dialog for CAN filter block With pass filters PE and stop filters SE for environment variables you can selectively reduce the volume of data in the measurement setup Only the selected environment variables will be passed through or blocked respectively Info In keeping with its function a pass filter which is not configured empty does not pass any messages and so blocks all message traffic 7 6 Channel filter Filter messages of a channel Vector Informatik GmbH It is possible to completely block all messages on a channel or to let them pass with a channel filter CAN 1 mw fam CAN 2 Figure 50 Channel filter in the data flow plan Version 7 5 103 Blocks and Filter User Manual Info A channel filter which has not been configured can be used in the data flow plan to simply show the number of channels being used 7 7 CAPL nodes in the simulation setup Network node A CAPL node is a universal function block whose characteristics the user defines by writing a CAPL program CAPL nodes in the simulation setup are called network nodes Together with the real nodes they define the functionality of the overall system A fun
8. You can use the Spin control to adjust a value within a defined value range A value may be entered directly in a text box by keyboard input or it may be set by left click the increment or decrement button to increment decrement the value stepwise by the configured step width With moving the slider you can edit numerical values within a specified value range Info Modification of the global options from a configuration dialog affects data repre sentation invall syetem windows and dialogs Vector Informatik GmbH Version 7 5 25 Basics User Manual 3 3 Overview of the programs Overview The following executable programs are part of CANoe gt With the CANdb Editor you create or modify databases DBC which contain the symbolic information for CANoe This includes network nodes and symbolic names for messages and signals as well as environment variables gt Inthe CAPL Browser you create CAPL programs for the measurement and simulation setups Instead of using message identifiers and data bytes with the help of the database you can also work with message and signal names gt The CANoe main program is used to measure and simulate CAN systems You can associate one or more databases to any configuration from File Database gt Inthe Panel Designer Panel Editor you create the control panels that are later loaded in CANoe Panels represent the I O interface between the user and the simulated netwo
9. SCHANNEL S myframe FR_ChannelMask 1 send only on A myframe FR_ Flags 0x00 flags FRSetPayloadLengthiInByte myframe 16 register FlexRay frame for sending FRSetSendFrame myframe on key 2 gGear SGearBoxInfo Gear if gGear gt 1 amp amp gGear lt 6 gGear 1 amp amp SABSInfo CarSpeed lt 5 gCearr myframe Gear gGear FRUpdateStatFrame myframe Now save and recompile your CAPL program and start the measurement again With keys lt 1 gt and lt 2 gt you can now increment and decrement the signal s value Info If the frame that you want to send is a dynamic frame then you have to use the function FRSendDynFrame instead of FRUpdateStatFrame If you have to send PDUs then use the function FRUpdatePDU 13 7 3 Using the FlexRay Frame Panel or FlexRay PDU Panel D 1 Insert the FlexRay Frame Panel or the FlexRay PDU Panel into the simulation TE setup and open it by double click 2 To update the signals of a FlexRay frame PDU simple press Add Row and insert a FlexRay frame PDU before measurement 3 During the measurement you can now interactive manipulate this frame s payload area using edit boxes in the bottom half of the dialog 13 7 4 Using panels D You can also create your own panels using the Panel Designer File Open Panel g Designer which can also be started from the main toolbar ee Here is an example 1 Drag and
10. User Manual Si including Notes on Installation and all Options d fi Version 7 5 A English vector Imprint Vector Informatik GmbH Ingersheimer Stra e 24 D 70499 Stuttgart The information and data given in this user manual can be changed without prior notice No part of this manual may be reproduced in any form or by any means without the written permission of the publisher regardless of which method or which instruments electronic or mechanical are used All technical information drafts etc are liable to law of copyright protection Copyright 2010 Vector Informatik GmbH Printed in Germany All rights reserved 80419 User Manual Table of contents 2 1 2 2 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 10 2 11 3 1 3 2 3 3 3 4 3 5 4 1 4 2 4 3 4 4 4 5 4 6 4 7 4 8 4 9 Introduction About this user manual 1 1 1 Access helps and conventions 1 1 2 Certification 1 1 3 Warranty 1 1 4 Support 1 1 5 Registered trademarks Installation General System requirements Installation requirements Installation procedure Notes on activating a software based license Vector USB dongle MOST 2 7 1 MOST25 Use with Optolyzer Box 2 7 2 MOST 150 Use with Optolyzer G2 31500 2 7 3 MOST50 Use with Optolyzer G2 3050e Further CANoe options Switching language versions Running the test Troubleshooting 2 11 1 Software specific error messages 2 11 2 Hardware specific error messages B
11. get the attribute Rx and a time stamp from the card s clock when they are received Afterwards they are passed to CANoe via the card driver and finally they are shown in the evaluation windows The time stamp and Rx message attribute can be seen in the Trace window time stamp Trace Window 3 2000 sec f a O CAN Bus tine can ident dic dats Bla B3 3 2000 1 d 3 29 1098 a 4 Figure 32 Receiving messages After successful transmission the message is returned with the actual time of transmission and the attribute Tx so that the transmit messages can be displayed and or logged in the Trace window CANoe transmit branch A time stamp Trace Window 2 7000 sec A UNL WI mm gt 2 7400 sec CAN Bus Figure 33 Transmission of messages Vector Informatik GmbH Version 7 5 59 Applications Attribute TxRq Latency time User Manual The messages to be transmitted are passed from the simulation setup via the card driver to the CAN PC card If your hardware supports the card and driver option Activate TxRq in the Options item of the PC card icon s shortcut menu and you have activated this the driver returns the time of the transmit request assigned to the CAN microcontroller to you In the Trace window for example you would see the message to be transmitted with the attribute TxRq The TxRq display permits measurements of the difference between the time of the transmit request and the time
12. 17 1 1 Check installation Security advice for using CANoe IP 17 2 1 Exclusive use of an Ethernet interface Use cases 17 3 1 Analyze Ethernet networks 17 3 2 Filter Ethernet data 17 3 3 Stimulate Ethernet packets 17 3 4 Simulate Ethernet nodes 17 3 5 Run Remote CAN analysis Quick start 17 4 1 Analyze network traffic 17 4 2 Evaluate signals 17 4 3 Run Remote CAN analysis 17 4 4 Sample configurations J1587 Introduction Prerequisites 18 2 1 Configure J1708 channels 18 2 2 Define J1587 parameters in CANdb Editor Functionality 18 3 1 Parameter Monitor 18 3 2 Diagnostics Monitor 18 3 3 Trace window 18 3 4 Data and graphic window 18 3 5 Interactive Generator Block 18 3 6 Filter 18 3 7 CAPL CANaero Scope of delivery Basics Database Concept Vector Informatik GmbH Version 7 5 Table of contents 151 152 153 153 154 154 154 154 155 156 156 157 158 160 160 Table of contents User Manual 19 4 Extensions 175 19 4 1 Trace window 175 19 4 2 Data window 175 19 4 3 Interactive Generator Block 175 20 Appendix A Support 177 21 Appendix B Address table 178 22 Index 181 VI Version 7 5 Vector Informatik GmbH User Manual Introduction 1 Introduction In this chapter you find the following information 1 1 About this user manual page 8 Access helps and conventions Certification Warranty Support Registered trademarks Vector Informatik GmbH Version 7 5 7 Introduct
13. test pattern that are set up with XML files The former purely event oriented execution paradigm has been expanded to include a sequential execution model for test modules The test procedures of the individual test modules are executed in parallel while the flow within each test module is executed sequentially Test module The test module has a beginning start of the test sequence and an end end of the test sequence Outside of these times the test module is not running Le it processes neither the test sequence nor existing event procedures During a measurement a test module can be executed consecutive several times The previously event procedures that inform a CAPL node about the start and end of the measurement on preStart on start on end are unnecessary in test modules and are also unavailable At the beginning of the test module the variables are set to their initial states The contents of a variable cannot by definition be transferred from one test procedure to another By default the test module is assigned to all buses coreresponds with a gateway node that has connection to all buses If necessary the test module can be assigned to one ore more to specific buses via the shortcut menu Test modules in XML If XML test modules are created the XML file contains the test parameters The XML file consists essentially of the specification of the test parameters Programming of the procedures is not necessary since the tests
14. 4 gt Processor type and speed e g Pentium III 1 GHz gt Memory e g 256 MB RAM If you have problems with PCMCIA cards in a desktop PC Detailed description of the PCMCIA drive used What problems occurred Which configuration did these problems occur with Are you getting error messages in the software e g in the Write window Company company address First name last name Department ak kk AAA kb dh Telephone number fax number e mail address Vector Informatik GmbH Version 7 5 177 Appendix B Address table 21 Appendix B Address table Vector Informatik GmbH Vector CANtech Inc Vector France SAS Vector GB Ltd 178 Vector Informatik GmbH Ingersheimer Str 24 70499 Stuttgart Germany Phone 49 711 80670 0 Fax 49 711 80670 111 mailto info de vector com http www vector informatik com Vector CANtech Inc Suite 550 39500 Orchard Hill Place Novi Mi 48375 USA Phone 1 248 449 9290 Fax 1 248 449 9704 mailto info us vector com http Awww vector cantech com Vector France SAS 168 Boulevard Cam linat 92240 Malakoff France Phone 33 1 4231 4000 Fax 33 1 4231 4009 mailto information fr vector com http www vector france com Vector GB Ltd Rhodium Central Boulevard Blythe Valley Park Solihull Birmingham West Midlands B90 8AS United Kingdom Phone 44 121 50 681 50 Fax 44 121 50 681 66 mailto info uk vector com http www vector gb c
15. 5 Vector Informatik GmbH User Manual Applications 5 5 2 Resolving ambiguities Resolve ambiguities With the use of multiple databases it is essentially possible to have ambiguities in the use of symbolic names which must be resolved by the program Conflict Messages coming from the bus and are registered by the program over one of the two CAN controllers may have two different symbolic names in two databases Solution Ambiguities of this type can be resolved by the order in which the databases were specified in the list of the Database dialog You also have the option of assigning a prioritized database to each of the two CAN controllers For messages that are received by this controller this database will then have the highest priority for symbol assignment Only if no symbolic name is found there will the program search through all additional databases specified in the database drop down dialog in the order that is specified there Conflict The user may wish to configure function blocks or measurement windows with different messages which have the same name in different databases Solution The search sequence of the database list is also utilized to resolve name conflicts when configuring measurement windows and function blocks In this case the database uppermost in the list is assigned to the name However you also have the option of resolving ambiguities of this type by qualifying the symbolic name 5 5 3 Checking for consistency
16. Byte Uet 9 0x601 0x606 Ox64 Oxt4 0x65 OxFC 0x518 G E DiagRequest_Motor E DiagResponse_Motor E EngineData CJ EngineDatalEEE EngineStatus E GeaBoxInfo E NM Engine EJ NM_Geteway_PowerTrain CAN Standard CAN Standard CAN Standard CAN Standard CAN Standard gt Figure 22 Overall View window of the CANdb Editor Double click the Messages object type in the area on the left side of the Overall View window The subordinate structural level is then also shown in this area and the area on the right shows the available messages with their system parameters e g sym bolic name identifier etc Version 7 5 Vector Informatik GmbH User Manual CANoe Tour First toggle the numbering format from decimal to hexadecimal in the Options Settings menu item We can deduce from the symbolic names of the messages that the system under consideration involves a description of communications in a rudimentary engine area system Click the message EngineData in the left area of the Overall View window The system parameters of signals transmitted in this message are shown in the area on the right side of the Overall View window The temperature EngTemp for example is a 7 bit signal To obtain the physical value in degrees celsius the bit value must be multiplied by the factor 2 and the offset 50 must be subtracted from the result The idle switch signal Idle Running in the last bit of the third data byte is a
17. Designer The open panels are displayed on separate tabs in the working area You can create a new panel via Menu File New Panel After that you can assign controls and symbols to the panel Version 7 5 Vector Informatik GmbH User Manual Panel Designer To facilitate alignment of the controls guide lines on which controls can be aligned appear when you start the assignment process In addition to the guide lines the Edit and Layout menus feature additional edit options e g copying controls SystemUnderTest xvp Controlxvp Engine xvp Central Locking System Open on crash even if engine is not running Do not track crash state on velosity change Toolbox All available controls are displayed in the toolbox You can assign the controls from the toolbox to the panel in various ways gt Using drag amp drop gt By double clicking gt By clicking with the left mouse button to select the required control and then clicking again with the left mouse button on the panel Symbol Explorer In the Symbol Explorer you select the symbol you wish to assign to a control All in the database available symbols are displayed The Symbol Explorer supports several options for accessing the same symbol For example you can select a symbol directly from the symbol or message list or find the corresponding symbol via a specific node Select the required symbol in the tree view and drag amp drop to assign it to a control or the
18. LIN configuration by following the steps described in chapter 11 3 2 Select a network node e g DWF_Left in the simulation setup View Simulation Setup and choose Configuration from the shortcut menu 3 Enter a file name for your CAPL program and then press Edit to start the CAPL Browser 4 Nowuse the appropriate signal object to manipulate a LIN signal that is defined in the assigned LDF database Here is a simple example assuming the LDF database e g door Idf defines a signal DWFL_WinPos Om eem Vary int val val DWFL WinPos reading signal SDWFL_ WinPos valt 1l writing signal 5 Now save and compile the CAPL program e g by pressing lt F9 gt and start the measurement 6 Open the Trace window View Trace and and expand the corresponding LIN frame e g DWFL_WinPos On pressing the key lt gt the signal should now increase its value by one Vector Informatik GmbH Version 7 5 121 LIN User Manual 11 8 2 Using the CAPL function output Update multiple frame signals You can update signals using the CAPL function output Using this method you can update multiple frame signals simultaneously To try out this method add a new event handler for the key lt gt to your CAPL program created in 11 5 2 with the following code Om ley Yo linmessage DWFL WinPos myframe eng Velly val myframe FWL WinPos myframe FWL WinPos val 1 output myframe Now save a
19. Measurement and Simulation Setup window are directly configured with context sensitive menus For example you can insert new function blocks such as filters or generator blocks in the data flow or configure the PC card with the bus icon on the right of the simulation setup A brief look at the measurement and simulation setup gives you an overview of the configuration options provided by CANoe and shows how your actual measurement configuration appears Version 7 5 Vector Informatik GmbH User Manual Main menu bar Toolbar Status bar Simulation setup Measurement setup Trace window Statistics window Data window Graphics window State Monitor Window Applications Element Description Used to select basic functions Used for quick selection of important commands and also contains status indicators for the number system being used and to display of keyboard entries made during the ongoing measurement The names of the active configuration file and the database being used are displayed here In the simulation setup window the overall system is setup displayed graphically with the CAN bus and all network nodes The measurement setup displays the program s data flow All options are set in this window for parameterizing a measurement or evaluation Bus activities are recorded here The user can scroll in this window after a measurement has been completed DA
20. Once the software has been installed start the Activation Wizard from the product s start menu entry sometimes may also be located in the Tools subfolder and make your selections there At one point you are asked to enter the Activation ID Enter the Activation ID exactly as printed on the sticker found on the CD DVD cover After the license has been activated successfully you can start working with your application Info Some prod uct installers may automatically start the Activation Wizard once the installation is complete Further help on activating a license is available by pressing the Help button in the Activation Wizard If you need further assistance with activating a license e g when you do not have Internet access from your machine to activate the license online please direct your questions to activation vector worldwide com 2 6 Vector USB dongle Application areas How to install the USB dongle 14 The USB dongle is required gt for the MOST option Exception When using hardware from the XL product family gt after upgrading from CANoe to CANoe MOST with XL products unless the license was not subsequently defined on the card gt for Optolyzer Integration Package OIP for the operation for MOST150 and MOSTS50 Note The USB dongle must not be connected during the installation Procedure 1 Run the setup file haspdinst exe The file is in the drivers VectorDriverDi
21. SWITCH that is displayed on the opened panel s top left The second panel has a small simple lamp as an indicating element Open a new panel with the menu item File New Panel and select the file name LIGHT XVP Select a Switch from the Toolbox of the Panel Designer and place it on the panel e g via drag amp drop Configure the Switch in the Properties grid under Settings State Count as a display element with 2 states Assign the Switch in the Properties grid under Settings Image the image file MLEDRED_ 2 BMP from CANoe s demo directory DEMO _ADDON BITMAP LIBRARY GLOBAL INDICATOR _2STATES Assign the the environment variable evLight to the Switch via drag amp drop from the Symbol Explorer Label the switch by selecting the Static Text A display element from the Toolbox and place it on the panel to the right of the Switch Enter the label in the Properties grid of the Static Text under Appearance Text Save the panel under the name LIGHT XVP The panel gets the name LIGHT that is displayed on the opened panel s top left You complete this step of this unit by integrating the created panels into the CANoe configuration with the amp button of the toolbar Fa SWITCH ak Figure 29 Panels in CANoe Version 7 5 Vector Informatik GmbH User Manual Save the configuration CANoe Tour Before creating the network node models you should save the configuration you just created by pressing t
22. The CAPL program reacts to both messages on the CAN bus and to your keyboard inputs responding with certain CAN messages according to the event registered It is entirely up to you to determine which actions are performed in response to which events Another possible application of CAPL is to program a gateway that is a connecting element between two buses to exchange data between different CAN buses and moreover to correct erroneous data occurring in this exchange Version 7 5 Vector Informatik GmbH User Manual Trigger a Logging block Insert CAPL nodes Compile CAPL programs Symbolic names in CAPL programs Advantage CAPL Last but not least the Logging block can also be triggered by a CAPL program Conditions of any desired complexity can be formulated for triggering Triggering is initiated by a call of the intrinsic function trigger A CAPL program can be inserted in the measurement setup at all hot spots and also directly at the bus symbol in CANoe s simulation setup To do this select the menu item Insert CAPL node from the hot spot s shortcut menu and enter the name of the CAPL program file you wish to assign to this node in the configuration dialog If you want to create a new CAPL program you can enter the name of a file that does not exist here yet This file is then automatically created when editing Please note that a CAPL program may react completely differently depending on the point at which yo
23. Vector hardware USB dongle or as a license key is required The Optolyzer G2 is accessed via the following ethernet port numbers This access must not be blocked by any installed firewall Spy 27998 Node 27999 On PC side the port numbers are allocated automatically If you need certain port numbers you have to adjust the file CAN ini For Optolyzer G2 31500 MOST150 at channel 1 you ll have to edit the following section OptolyzerG2 1 MyPortNode MyPortspy 2 Choose the speedgrade MOST150 and the HW type OptoLyzer OL3150o for the MOST channel in the CANoe hardware configuration dialog Configuration Network Hardware 3 Enter the IP address of the Optolyzer on the Interface page If the Optolyzer is already connected you can determine its IP address at the push of a button 4 Onthe Setup page also select the network adapter to which the Optolyzer is connected 2 7 3 MOST50 Use with Optolyzer G2 3050e Installation 16 1 Install the Optolyzer G2 3050e or Optolyzer G2 3050e Production corresponding to the Optolyzer user manual Remarks Note that a license for the Optolyzer Integration Package OIP of Vector on a Vector hardware USB dongle or as a license key is required The Optolyzer G2 is accessed via the following ethernet port numbers This access must not be blocked by any installed firewall Spy 27998 Node 27999 On PC side the port numbers are allocated automatically If you need cer
24. accessibility It can be used with CAN 2 0A and 2 0B 11 bit and 29 bit identifier and any bus rate data In order to simplify the initial steps of CANoe and the option CANaero sample configurations are included to demonstrate the use of various functions of your application You can start the sample configurations directly via the Windows start menu 19 3 Database Concept General 174 CANoe intensively uses a database driven concept That means all blocks and windows are connected to a database The delivery of the option CANaero includes a database for CANaerospace already If you use this database and assign it to the bus in your configuration different extensions are active Version 7 5 Vector Informatik GmbH User Manual CANaero CANaerospace The database entries for CANaerospace contains message descriptions signal database descriptions and data type definitions All pre defined messages e g EED Emergency Event Data Service Requests or NOD Normal Operation Data from the CANaerospace specification V1 7 are represented in the delivered database e Note Whenever a new configuration is build one of these databases or a derived i one has to be assigned to that configuration Reference Please refer to the appropriate chapter of this manual for a description of database usage and how to assign a database 19 4 Extensions 19 4 1 Trace window Overview The trace window displays the CAN messa
25. are defined by a query of parameterized and predefined test patterns Test parameter in Examples of ways to input test parameters in CAPL test modules CAPL test modules gt Fixed coding of parameter in CAPL gt Read in of a file at the beginning of the test module gt Parameterization by means of environment variables Vector Informatik GmbH Version 7 5 71 Applications Procedure of a test module Create and manage test environments Edit the test environment Save the test environment Insert a test modul in the test setup Execute a test module 72 User Manual A test module may be started either automatically with the measurement start or interactively by the user User inputs may be requested and processed during execution of a test module User interaction is helpful if for example gt the test sequence SUT should be influenced by the user or gt manually obtained observations by the user are to be incorporated into the test Once a test module has been started it terminates normally at the end of the test sequence or is terminated by force at the end of the measurement The user can activate deactivate a test module before the beginning of the measurement recognizable with the corresponding check box in the test setup During the measurement a deactivated test module can not be started as well the automatic start function is out of order Execution of the test module generates a test report The t
26. are provided by individual controllers and are sent on the bus with the help of CAN messages To describe this information symbolically CANoe provides you with the database format DBC and a database editor with which you can read create and modify CAN databases Further Information Please refer to the CANdb manual and the CANdb online help included with the CANoe product for further information on the CANdb Editor At this point we would like to use the database POWERTRAIN DBC which you have already associated to the active CANoe configuration This database will be used to interpret the data bytes of the messages generated by the generator blocks in the simulation setup To do this first open the database using the uf button on the toolbar The CANdb Editor is opened and the contents of the database POWERTRAIN DBC is shown in the Overall View window of the CANdb Editor Vector CANdb Editor Powerlrain dbc Overall View gmat as AN Networks ID B ECUs X Environment variables z Network nodes pe CJ A8Sdata 0xC9 E DisgRequest Motor Ox6t CJ DiagResponse_Motor Deg E EngineDate 0x64 EngSpeed EngTemo IdeRunning EnoForce EngPower ZA PetroLevel CJ EngneDatalEEE 0x66 gt E EngineStetus 0x65 E CJ GearBoxInfo 0x3FC gt E NM Engine 0518 zs CI NM_Gateway_PowerTrain 1D Format CAN Standard 6 CAN Standard 8 CAN Standard 8 CAN Standard 6 D 1 1 DLC
27. be used Assure that the bus channel A is connected to the channel A of the bus hardware interface The same applies for channel B If both channels are exchanged then any received frame will be interpreted with a wrong CRC and therefore it will be rejected or interpreted as an erroneous frame Info When a bus interface channel is used it must be connected to the correct bus channel But a network interface channel need not to be connected to a real bus channel A cross connection of the bus interface channel A to the bus interface channel B is not allowed If all prerequisites are fulfilled the bus interface of CANoe can synchronize to the real FlexRay bus when pressing measurement start The Trace window not only displays valid FlexRay frames but all types of FlexRay bus events and errors By expanding a FlexRay frame you can view its signals as defined in the FIBEX file associated to this FlexRay channel Additional FlexRay specific columns can be added to the Trace Window using its configuration dialog Further Information For a full list of FlexRay events and errors please see the online CAPL help for FlexRay To view the FlexRay bus statistics open the Bus Statistics window via double click on the Bus Statistics block in the measurement setup or via the menu View Bus Statistics Info For remaining bus simulations simply connect real FlexRay nodes to your FlexRay interface and deactivate the simulated version of these nod
28. binary signal one bit which can assume the value 0 or 1 4 7 Analysis of signal values in the Data window Display of momentary signal values Unit 3 Add signals in the Data window Besides the use of symbolic message names the associated database can also be used to analyze signal values The purpose of the Data window is to assist in the study of momentary signal values This explains why the Data window is initially empty in a new configuration The signal values to be displayed are exclusively dependent upon information from the database You as the user must decide which signal values should be displayed Configure the Data window to display the signal val ues of the message EngineData ID 64 hex that is generated in the simulation setup For the display of signal values in the Data window you have to add signals 1 Open with the Data window s shortcut menu item Add signals the Symbol Selection dialog The tree view of the dialog allows you to search for a specific signal Each database gets one branch each for signals messages and nodes 2 Choose the EngineData message and select and accept all signals of this message Vector Informatik GmbH Version 7 5 41 CANoe Tour Display in the Data window 42 User Manual Selection of signals _ Name Message Name Start bit Comment AU Bus statistic signals AL PowerTrain Signals Messages a 6I ABSdata E DiagRequest_Motor e Wiaghes
29. change the signal s value using the Trackbar Version 7 5 Vector Informatik GmbH User Manual 12 MOST In this chapter you find the following information 12 1 Preliminary note 12 2 MOST database Function catalog 12 3 How to create a CANoe MOST configuration 12 4 How to analyze a MOST network 12 5 How to stimulate a MOST system 12 6 How to log and replay MOST data traffic 12 7 Using CAPL Program controlled sending Program controlled receiving Vector Informatik GmbH Version 7 5 MOST page 124 page 124 page 124 page 125 page 126 page 126 page 127 123 MOST User Manual 12 1 Preliminary note Introduction p MOST Media Oriented Systems Transport is used to transmit audio video and control data via fiber optic cables CANoe MOST supports the speedgrades MOST25 MOST50 and MOST150 This getting started guide will help you create your first CANoe MOST configuration Through a series of how tos you will also be guided through the most commonly needed MOST features Further Information Please see the online help for further information about CANoe MOST features and topics Configuration examples for MOST demonstrating most of CANoe MOST s features can be found in the demo sub directory DEMO MOT CH 12 2 MOST database Function catalog Function catalogs p We highly recommend that you use a MOST function catalog for development analysis and testing of MOST network
30. configuration dialog for the log file When the file is played back in ofline mode this information is then displayed again in the Bus Statistics window 94 Version 7 5 Vector Informatik GmbH User Manual Windows 6 12 Diagnostics Console Working with The Diagnostics console makes it possible to send diagnostics requests directly to an diagnostics requests ECU and receives and analyzes the corresponding response messages To send diagnostics requests to an ECU the respective database in CANdela file format cdd must exist After loading the diagnostics descriptions the Diagnostics console is opened in CANoe automatically if the CDD has been assigned to a bus or a bus node Divisition of The Diagnostics console is divided up in three parts Diagnostics console gt In left area the diagnostics services are displayed With the button Execute a chosen response will be sent The response values can be displayed in symbolic or hexadecimal form gt In upper area transmit services can be parameterized e g input of a serial number gt Inthe part below the results of the responses are displayed E Any_ECU_example Diagnostics Console E BR Symbolic v COMMON_DIAGNOSTICS Any _ECU_example IDENTIFICATION Serial_ Number Wite v Execute gt Start Session A Identification ECU Identification Read Development Data Read B Serial Number Write SI Serial Number Read Dynamic Data Stored Data Variant
31. connection cable CANcable with two bus termination resistors of 120 Q each For a low speed interface you will simply need a 3 conductor cable to interconnect the pins of the two controllers that are assigned to the bus lines CAN high CAN low and ground PC Board Figure 7 PC card with connection cable Consequently the CAN bus that you use during this tour will consist of a short 2 conductor or 3 conductor cable that connects the two CAN controllers of the CAN card to one another This is necessary as a minimal configuration since the CAN protocol requires in addition to a sender at least one receiver that confirms the correct receipt of messages with an acknowledge Define the bus Up to this point we have not considered definitions of bus parameters Transmission parameters speed sampling point etc which must be set for each of the two participating con trollers TR 1 Todo this from the View menu bring the simulation setup to the foreground and TLE click the right mouse button on the square that represents the bus system Bus CAN CAN 1 km Network Hardware v Network active Rename Assign channel Figure 8 Shortcut menu of the bus symbol 2 Choose the shortcut menu item Network Hardware and open the Network Hardware Configuration dialog 32 Version 7 5 Vector Informatik GmbH User Manual CANoe Tour Network Hardware Configuration Channel CAN Setup 1 CAN1 Baudrate 100 0
32. description le 118 LIN Masters scheduler 119 LIN Walen 119 LIN E le 121 lt BCEE 120 Ee Ela a EPE PE E a ea ad aiid 143 L gging Wiggers srair deaa uaaa 68 M Macro Recorder A 76 Main Menu accede ee eod a tee 24 Measurement cesses ceeeeeeeeeaeeeeeeeeeeees 55 61 Measurement les 67 Measurement setup snassesnensseeserrrrensreerrern nen 61 Measurement Setup window ssssssesieenseesseeeenn e 84 Message aitributes ce eeeceeeeeteeeeeeeteeeeeeeee 59 MOST oiscceti tein f latelesl iad eked abel atheist 123 MOST configuration s e 124 MOST function Catalog eeeeeeeeeeeeeeeeees 124 MOST pnetwork 125 Multiple channels e eceeeeeeeeeeeeeseeeeeees 65 Multiple databases snnsnnnnne nenene eenrne neeese 64 N Netlsolator 2 mian e a 163 NMEA 2000 ue 138 O Offline mode 67 Online mode 66 Option CANaerospace sseessesseeeeeeerrrerrereseene 173 IntrodUCti N irian e e 174 Sample configurations cceeeeeeeeeeee 174 Option CANopen 151 le EE 154 Introduction cccececceeeeeeeeceeeeeeeeeeeeteeenteaeees 152 QUICK Start teh aki E 152 Sample configurations cccceeeeeeeeeees 160 Ulee ege deeg ect ms 155 156 160 Option Jess Ste eats 161 Installation c ccceceeeeeseeseceeeeeeeeeeeeeeseeaeees 162 liNtFOGUGHON TEE 162 QUICK Start iec accede 165 Vector Informatik GmbH User Manual Index Sample configurations 0 ceeeeees 166 Option CANopn
33. eegene 156 E EEN 165 Test modules sorire eE 71 POPs estat eae Eek ede 143 ZE A Replay Hoch ccsssssssssssesessssssesssssserseesseseestseeen 102 e Mio eaea Ve Test Setup window 96 S Tes ee EE 73 Sample configurations Text input bOX sential etid Mule nara hah ahaa 25 Option CANaeroepace reren 174 Vector Informatik GmbH Version 7 5 183 Index Tips for using CANoe 24 Toggle Ne e 69 Trace window 87 132 153 164 170 175 Trigger block 102 143 Troubleshooting eee eeeeeee cece eeeeeteteeeeeeeaeeeeeeaas 77 EN 55 71 KEE 55 73 U UME Tie ccc eee ena deed el a tte cided Jee 33 Ea A T E E T E 37 UnitiS aA E AT T 41 WIN E EE E S E E E 43 CE Taea E feet 45 Unit EE 46 184 Version 7 5 User Manual MTN geed eeben AT EA A PNE 47 URIS OEE E EE aad 49 V Virtual Termal esmaga then 148 WwW Warranty i E NE 9 Window management 82 WLAN to CAN cece A EA 165 Working with databases AA 62 Working with multiple channels ceeee 65 Write window 91 X SM ee 71 Vector Informatik GmbH Get more Information Visit our Website for gt News gt Products gt Demo Software gt Support gt Training Classes gt Addresses www vector com vector
34. extend CANoe FlexRay by a specific protocol API or an Interaction Layer for FlexRay that defines a specific sending behavior of the remaining bus simulation Sometimes a complete remaining bus simulation is not possible because the bus interface does not support enough TX buffers In this case you can configure a partial remaining bus simulation PRBS in the context menu of the bus in the simulation setup Using the PRBS configuration dialog it is possible to only send frames received by a ECU system under test Version 7 5 Vector Informatik GmbH User Manual 14 J1939 and NMEA 2000 In this chapter you find the following information 14 1 Introduction 14 2 Quick start Create a J1939 database Create a J1939 configuration Create communication relationships Sample configurations 14 3 Use cases Analyze J1939 networks Diagnose J1939 networks Simulate J1939 networks Test J1939 networks Log and trigger J1939 data Trigger and filter J1939 data Modify J1939 signals Analyze GNSS data Simulate a GNSS receiver Play back GNSS protocol files Vector Informatik GmbH Version 7 5 J1939 and NMEA 2000 page 138 page 138 page 140 137 J1939 and NMEA 2000 User Manual 14 1 Introduction Introduction J1939 NMEA 2000 gt The option J1939 contains spezific extension for J1939 and NMEA 2000 SAE J1939 is a CAN based communication protocol for data exchange between electronic control units ECUs in t
35. file offline use the offline mode main menu Mode Offline and configure the block in measurement setup using shortcut menu option Configuration to use your logging file Alternatively you replay a log file by inserting and configuring a LIN Replay block in the simulation setup View Simulation Setup Further Information Please see the ElectricMirrorBus of the LIN system demo for an example of how to configure the LIN Replay block Version 7 5 Vector Informatik GmbH User Manual LIN 11 7 How to view LIN signals Data window Graphics window Panels To view frame signals numerically either open an existing Data window View Data or create a new one in the measurement setup View Measurement Setup You can add signals to this window in one of the following ways gt Via context menu shortcut Add signals gt Per drag amp drop from the Symbol Explorer View Symbol Explorer gt Per drag amp drop from the Trace Window View Trace To view frame signals graphically either open an existing Graphic window View Graphics or create a new one in the measurement setup View Measurement Setup You can add signals in the same way as for the Data window Signals can also be viewed by creating your own panels using the Panel Designer utility File Open Panel Designer For more information on how to create panels see chapter 11 8 4 11 8 How to manipulate LIN signals 11 8 1 Using CAPL Signal API 1 Create a
36. files 5 8 1 Triggers 5 8 2 Data analysis 5 8 3 Data export and conversion Test functionality in CANoe 5 9 1 Test Feature Set TSF 5 9 2 Test Service Library TSL Diagnostics functionality in CANoe 5 10 1 Diagnostic Feature Set DFS CANoe Realtime Standalone Mode Macro Recorder Step Sequencer COM Server Troubleshooting List of error messages to the CAN interface Windows Desktop concept Window management Simulation Setup window Measurement Setup window Trace window Version 7 5 User Manual 45 46 47 49 50 51 53 Vector Informatik GmbH User Manual 6 6 Graphics window 6 7 State Monitor window 6 8 Write window 6 9 Data window 6 10 Statistics window 6 11 Statistics Monitor window 6 12 Diagnostics Console 6 13 Fault Memory window 6 14 Test Setup window 7 Blocks and Filter 7 1 Overview 7 2 Interactive Generator Block IG 7 3 Replay block 7 4 Trigger block 7 5 Filter and environment variable filter 7 6 Channel filter 7 7 CAPL nodes in the simulation setup 7 8 CAPL nodes in the measurement setup 8 Panel Designer 8 1 Overview 9 CAPL 9 1 CAPL basics 9 2 CAPL Browser 10 CAN 10 1 Overview 11 LIN 11 1 Preliminary note 11 2 How to create a LIN description file 11 3 How to create a CANoe LIN configuration 11 4 How to simulate and analyze a LIN network 11 5 How to control a LIN Master s scheduler 11 5 1 Using the Interactive Master 11 5 2 Using CAPL 11 6 How to
37. first schedule defined in the LDF will be started 5 Start the measurement and change the schedules as desired interactively Vector Informatik GmbH Version 7 5 119 LIN User Manual 11 5 2 Using CAPL 1 Create a LIN configuration by following the steps described in chapter 11 3 2 Select the Master network node in the simulation setup View Simulation Setup and choose Configuration from the context menu 3 Enter a file name for your CAPL program and then press Edit to start the CAPL Browser 4 Now use the CAPL function LINChangeSchedTab1e to determine when a schedule table change should take place For example to change to the second schedule table in the LDF on pressing key lt 2 gt insert the following on key 2 LINChangeSchedTable 1 Index starts with zero 5 Now compile the CAPL program e g by pressing lt F9 gt and start the measurement 6 On pressing the key lt 2 gt the Master s scheduler should change to the second schedule defined in your LDF e g Table1 in LDF example door 1df Info If the Interactive Master is active it will automatically filter any schedule table commands called by CAPL 11 6 How to log and replay LIN traffic Log Analyze Replay p 120 You can log LIN traffic by activating the connection to the Logging block in the measurement setup View Measurement Setup Double click this block to open its configuration dialog To analyze a logging
38. i true 0x1 Di true Di Door contact front nght defect 0x0 Ox Ox1 true Di 0x1 false Ox0 C Cyclic update C Environment data C SAE codes 600 e fs Delete all Leg DTC s Figure 46 Fault Memory window 6 14 Test Setup window Working with test environments 96 As soon as at least one test environment is opened in CANoe the Test Setup window can be displayed Here the individual test environments are displayed in a tree structure Each root directory represents an independent test environment file As soon as the Test Setup window is present it inserts itself into the normal window management and can be opened or brought into the foreground at any time using the View menu the View icon or the Window menu With the Test Setup window all actions such as loading and saving or recreating test environments can be executed For this click the right mouse button on a free area of the window and select the appropriate action from the shortcut menu Version 7 5 Vector Informatik GmbH User Manual Windows H Test Setup B M Test Environment Testumgebung tse TI Ste V ng Engine Tester ng XML Tester New Test Environment Open Test Environment Save all Figure 47 Test Setup window Vector Informatik GmbH Version 7 5 97 User Manual Blocks and Filter 7 Blocks and Filter In this chapter you find the following information 7 1 Overview page 100 7 2 Interactive Generator
39. is installed and pre configured in accordance with your order hardware platform language version and bus type Custom gt With a Custom installation you can install hardware connections for alternately available hardware platforms German or English language versions and sample configurations 2 5 Notes on activating a software based license Products The following products and versions support software based license protection gt CANoe CANalyzer 2 7 1 gt Test Automation Editor 2 1 1 Licensing The software product you are about to install requires a license The license protection method depends on the product gt Hardware based license protection License becomes available when USB dongle or bus interface hardware is inserted plugged gt Software based license protection An Activation ID is delivered with your product and must be activated before usage The respective license protection is chosen when ordering the product Vector Informatik GmbH Version 7 5 13 Installation Activation ID Activating a license Help amp support User Manual If the product is delivered with a software based license protection you will find a sticker on the CD DVD cover which shows an Activation ID of one of the following formats examples given gt A 1A2B3C4D5F6G7 1A2B3C4D5F6G7 gt AcT 0000012345 000012 123456 After installing the software you will need this Activation ID to activate the license on your PC
40. known as event procedures The program code that you define in event procedures is executed when the event occurs For example you can send a message on the bus in response to a key press on key track the occurrence of messages on the bus on message or execute certain actions cyclically on timer on message 100 Bus event gt AA 100 on key ai Key board event gt write a pressed d on timer Uhr 1 Time event gt wite Clock elapsed Figure 51 Examples of CAPL event procedures Besides keyboard events in CANoe you can with event procedures of the type on envvar also react to actions that you perform yourself on user defined control panels Program parts A CAPL program consists of two parts gt Declare and define global variables gt Declare and define user defined functions and event procedures 9 2 CAPL Browser Overview CAPL program files are ASCII files as well as C or PASCAL program files So you can edit them with each ASCII text editor of your choice A special Browser is integrated in CANoe for the user friendly creation and modification of CAPL programs This Browser shows you the variables event procedures and functions of a CAPL program in structured form CAPL compiler The CAPL compiler is started from Browser s main menu or toolbar Compilation time is very short even for larger programs When an error is detected the faulty program section is
41. log and replay LIN traffic 11 7 How to view LIN signals 11 8 How to manipulate LIN signals 11 8 1 Using CAPL Signal API 11 8 2 Using the CAPL function output 11 8 3 Using the Interactive Generator Block 11 8 4 Using panels 12 MOST Vector Informatik GmbH Version 7 5 Table of contents 88 90 91 91 92 94 95 96 96 99 100 101 102 102 103 103 104 104 105 106 109 110 112 115 116 117 118 118 118 119 119 119 120 120 121 121 121 122 122 122 123 Table of contents 12 1 12 2 12 3 12 4 12 5 12 6 12 7 13 13 1 13 2 13 3 13 4 13 5 13 6 13 7 13 8 14 14 1 14 2 14 3 15 15 1 15 2 15 3 DV User Manual Preliminary note 124 MOST database Function catalog 124 How to create a CANoe MOST configuration 124 How to analyze a MOST network 125 How to stimulate a MOST system 126 How to log and replay MOST data traffic 126 Using CAPL 127 12 7 1 Program controlled sending 127 12 7 2 Program controlled receiving 128 FlexRay 129 Preliminary note 130 How to create a FlexRay database 130 How to create a CANoe FlexRay configuration 131 How to simulate and analyze a FlexRay network 131 How to log and replay FlexRay traffic 132 How to view FlexRay signals 133 How to manipulate FlexRay signals 133 13 7 1 Using signals 133 13 7 2 Using CAPL functions FRUpdateStatFrame FRSendDynFrame FRUpdatePDU 134 13 7 3 Using the FlexRay Frame Panel or FlexRay PDU Panel 135
42. more sensible to utilize the capabilities that CANoe provides for offline analysis of log files Play back the log file recorded for the last task in offline mode and observe the signal E POOE tthe Claehits window To solve this task first switch CANoe to offline mode In the main Mode menu you will find two entries for this To Offline and To Offline Copy Since you can use the Graphics window configuration you prepared in online mode here too it is advisable to copy all configuration options of the analysis branch to offline mode with To Offline Copy Now shown as the data source in the measurement setup instead of the bus sym bol is a file icon Otherwise all of measurement setup options of online mode have been assumed Select the log file of the last task via the Configuration shortcut menu item of the file icon at the left of the measurement setup Also you have to separate the logging block You can do this by double clicking the hot spot symbol in front left of the Logging block or with the popup menu of this hot spot You can now play back the measurement with the lt F9 gt key In contrast to online mode here CANoe also offers you the option of replaying the measurement in slow motion Start Animate menu item or lt F gt 8 or in Single Step mode Start Step menu item or lt F7 gt The same analysis functions are available to you in offline mode as in online mode That is the logged data are d
43. mouse pointer is located above the measurement cursor it changes its form to a horizontal double arrow If the mouse button is pressed at a point not located above the measurement cursor a rectangle is dragged open when the mouse is dragged The content of this rectangle is then displayed magnified when the mouse button is released zoom While the mouse button is held down a small square is visible which highlights the next closest measurement value The measurement time signal name and value are shown in the upper legend for this measurement point In the legend with signal names the signal values of all signals are displayed for this particular time point The measurement cursor considers single signal or multisignal mode In single signal mode the small box only jumps to measurement points of the active signal in multisignal mode the box jumps to the next closest measurement point of all signals Version 7 5 Vector Informatik GmbH User Manual Difference markers Window layout Fit all Zoom in Zoom out Fit Colors Export signals Windows To evaluate the in measurement value differences between two points in time you use the difference measurement mode The measurement cursor and a difference cursor vertical lines in the window are displayed If difference mode is enabled the cursors are shown at their active positions if they lie within the visible screen area Otherwise they are moved to the viewing area By clic
44. node on the left reacts by sending out a message on the CAN bus The bus node in the middle receives this message and sets the discrete environment variable Light to 1 This causes the small lamp in the middle control panel to light up ei KI CAN messages effect B environment Variables i wo interface LO interface VO interface H K application application application l d e bus nodes bus interface bus interface bus interface H bus signals I I Figure 2 Components of the simulation system Analogously the user can also adjust the potentiometer in the middle control panel whereby the value of the continuous environment variable Potentiometer is modified This causes the middle network node to place a message on the bus with the new data This message is received by the network node on the right There a new value is calculated from the signal contents for the environment variable Engine RPM Finally this causes the display of engine speed to be updated on the right control panel The behavior presented in the previous sections can be described very easily with functions available in CAPL By this method it is possible to implement a simulation of complex systems with relatively little effort 3 2 Tips for using CANoe Operating CANoe during measurement Main menu Shortcut menu 24 Essentially CANoe can be operated by both mouse and keyboard All of the windows o
45. of symbolic data Consistency check In CANoe s symbolic mode the CAN messages are addressed using symbolic names from an associated database Therefore CANoe checks the consistency of the database and the active configuration in the following situations gt Atthe program start gt When a new database is associated gt When CANoe is restarted after a change to the database Procedure In this consistency check the symbolic names of all CAN messages used in the measurement and simulation setups are compared to names in the database If the message name has been changed in the database an automatic adaptation is made to this name and an appropriate message appears on the screen If CANoe could find neither the name nor the message ID in the database the user receives an error message In this case the measurement cannot be started until the particular message is removed from the configuration 5 6 Working with multiple channels Channel definition The number of CAN channels you wish to use is configured in the channel definition dialog CANoe supports up to 32 virtual and real channels In addition to affecting the measurement itself the channel definition also affects the inputs that are possible in the various configuration dialogs Only defined channels are offered for selection The channels are allocated to the CAN chips registered in the CAN hardware configuration of your computer s control panel Chip allocation is only meaningful
46. of the NMEA 2000 protocol or the J1939 protocol With the following steps you can perform a simple simulation 1 Insert a GNSS Simulator in the simulation setup via the context menu 2 Before starting the measurement open the dialog Settings with B 3 Select the model which will be traversed during the simulation and set the parameters appropriately 4 Ifthe simulation should start together with the measurement set this with the checkbox Start on measurement 5 Now start measurement and simulation The GNSS Simulators starts to calculate the positions and to transmit the selected parameter groups cyclically 6 Watch the simulation in the graphic window Note The sample configuration GNSS Simulator demonstrates the usage of the More flexibility in defining the simulated path offers the GNSS node layer With CAPL functions you can perform a simulation with waypoints models a course or by replaying a protocol file An overview of the available CAPL functions and its descriptions are contained in the online help Note The sample configuration GNSS Monitor demonstrates the usage of the GNSS node layer and panels Version 7 5 Vector Informatik GmbH User Manual J1939 and NMEA 2000 14 3 10 Play back GNSS protocol files General In addition to perform a simulation with models you can do this with protocol files Such protocol files you can create with the GNSS Monitor by logging the data during a simulati
47. or multisignal mode the export either applies to the currently active signal or to all signals This function is only available if data exist for the active signal Vector Informatik GmbH Version 7 5 89 Windows User Manual 6 7 State Monitor window Display states Screenshot Display and arrangement Configuration Visualization Navigation 90 The State Monitor is an analysis window that shows bit values and states It is particularly suitable for displaying digital inputs outputs as well as status information like terminal states or network management states ES state Monitor feet EA le la Wilkin a p w i Simple Trigger gt s 7 6 8 8 4 8 8 3 2 E 10 10 4 10 8 11 2 11 6 12 12 4 12 8 Name go sBin_2_wt Inactive Active Inactive Active l Inactive TS sBin_6_wt off sBin_2_wt On off On Off as TS sBin_7_wt Inact 7 99 Active delta t 3 01 TS hBin_1_wt F E E Wm E ofl Mo U Ws oe L A se eins zwei RunnableA Suspended Running Activated Running RunnableB Activated Suspended 5 Suspended Terminated Runnablec o 5 Terminated Activated Terminated RunnableD o Terminated Activated 4 amp Runnable Activated Terminated Activated 5 Activated Running A RunnableF Terminat
48. self created J1939 database Next press Weiter 4 Add nodes of the list Available nodes to the list Assigned nodes Press Weiter 5 Select the CAN channel from list Available channels and add it to the list Assigned channel Press Weiter 6 With Fertigstellen you can finish the creation of the configuration The configuration wizard has now added nodes to the network assigned the database to the appropriate CAN channel and configured the communication as defined in the database Additionally the trace window is configured for J1939 and the measurement setup contains a J1939 Network Scanner and a J1939 Diagnostic Monitor 14 2 3 Create communication relationships General To create communication relationships you have to assign transmit and receive messages to a node In the overview window of the CANdb Editor you can flexible define communication relationships between the nodes Easier and pre configured for J1939 specific demands you can do this also with the J1939 communication matrix window Communication In the J1939 communication matrix the relationships between J1939 parameter matrix groups and network nodes are displayed in the table A cross marks the connection between a transmit node and a receive node CANdb Editor Here you can create communication relationships between nodes easily by drag and view drop of the messages to the relevant nodes or by copying the messages and pasting them into the node V
49. significant configuration effort Displays the current status of the MOST Ring and the main MOST Status settings of the connected hardware interface MOST System Displays the monitored structure of the MOST ring and allows a Viewer ring scan when the bypass is open Displays the current assignment of the synchronous channels MOST Audio Through selection of a connection label followed by demute Routing normal audio channels can be listened to with headphones at the MOST interface Displays the content of the registry based on the monitored ring MOST Registry scans MOST FBlock Displays all properties of the applications transmitted via the bus Monitor Vector Informatik GmbH Version 7 5 125 MOST p User Manual Info If these windows do not show any communication or information regarding the connected MOST system use the status window to check the following gt Whether the ring is operating Flight on gt Whether the ring is in a stable condition amp lock If little is known about the system structure you can also initiate a ring scan via the context menu of the Status window While this has an active effect on your system the subsequent communication usually ensures that the analysis windows will be filled Info If some functions of the windows such as Scan or Get Property are deactivated or do not produce any results check whether the node mode of the MOST interface is active in the sta
50. specific columns Column Description MID The message is sent with this MID Receiver MID of the receiver This column is enabled for proprietary messages only Priority The message is sent with this priority Vector Informatik GmbH Version 7 5 171 J1587 18 3 6 Filter Overview 18 3 7 CAPL Overview p 172 User Manual With the filter it is possible to pass or block a specific PID The default setting is to filter every message with the specified PID not considering the MID If the PID should be filtered only for a specific MID the MID can be entered in the column Source on the tab page J1587 With CAPL J1708 messages and J1587 parameters can be received and transmitted You can do this by using the variable type J1587Param and J1587Message in CAPL Variables of this type can be transmitted with output To receive a J1587 parameter a handler named onJ1587Param and onJ1587Message must be present in the CAPL program Reference For more information about the CAPL programming with J1587 is available in the online help at Option J1587 CAPL Version 7 5 Vector Informatik GmbH User Manual CANaero 19 CANaero In this chapter you find the following information 19 1 Scope of delivery page 174 19 2 Basics page 174 19 3 Database Concept page 174 19 4 Extensions page 175 Trace window Data window Interactive Generator Block Vector Informatik GmbH Version 7 5 173 CANaero User
51. speed response could be viewed in units of RPM or the temperature pattern over time could be viewed in degrees Celsius Graphic DEAR kb E Sna Qe Name HR CaSpeed nen bk BR EngPower kw kk m EngSpeed ipm Ba BAAI MAAA MASAA SAAAA LASAS LALA LA TT PETT YTE TITTY TT T TT rrr rrr TTT erry Tree ye 2 6496s 38 711s H 6 P 10 12 14 16 P 2 2 24 26 28 xX 32 x 36 E 2s Drv Is Figure 40 Graphics window Signal time responses are displayed graphically in the Graphics window They are displayed in a X Y diagram above the time axis The measurement data remain in the Graphics window after a measurement stop and can be examined using special measurement cursors The Graphics window has a legend in which the selected signals are shown with their value ranges and colors It also has a toolbar from which you can easily call the most important measurement functions Both the legend and toolbar can be configured in the window s shortcut menu and can be enabled or disabled from there Info Besides displaying signals the Graphics window also offers the option of viewing the time responses of environment variables and diagnostics parameter All of the statements made below regarding signals also apply in principle to environment variables and diagnostics parameter In point measurement mode a measurement cursor vertical line in the window is displayed which you can position by clicking and holding down the left mouse button If the
52. that arrive in CANoe s measurement setup to a file first activate the logging branch Also remove the break that separates the logging block of a new configuration from the data source You can do this by double clicking the break symbol or with the shortcut menu item Remove break of the break With the shortcut menu item Logging file configuration of the file icon located at the far right of the logging branch you can open the configuration dialog Here you can enter the file name for the measurement log as well as its format Select ASCII format here amp Logging File Configuration File File D JMExec32 CNOEO asc File format Ascii file format ASC asc Increment logging file name automatically Options At each start of measurement C Warn on overwrite file C After each trigger block Show data lost message box C Extended Incrementation Extended Model Please define which events and in which format the events shall be written to the logging file Log intemal events Log internal trigger events Message Format Log statistic and watermark events Absolute time format Relative time format C Log values of environment variables symbolic Write FlexRiay Figure 27 Configuration dialog in the Logging branch Logs in binary format take up less space on your hard drive but they cannot be read by normal text editors The program s offline mode offers you the same evaluation options for logs in both formats
53. window In the transmit list you can select individual messages and configure them Assigned to each message is a signal list in which signal values can be configured Tagoero Cycle Tee ire g Meciage Niras Serd non PoweTsan Engrej ON2 8 lt Omo JC Specter ll Dupe Vat Trei vais Figure 48 Configuration of the Interactive Generator block In addition to already existing messages signals new generated signals can be transmitted too The following generator types are available Toggle switch Range of values Ramps and pulses Random Sine Environment variable d KEE User defined The trigger condition is in contrast to the traditional Generator block entered separately for each message You can choose between manual interactive triggering key press and interval driven repetition Additionally you can configure the number of messages to be sent at the time of triggering The IG additionally offers a gateway function With this function you can transfer information from one bus to another Necessary inputs you have to do in the IG configuration dialog Therefore CANoe offers two modes Version 7 5 101 Blocks and Filter User Manual Transfer of chosen signals Vv Activate first the register All columns of the dialog s upper list Choose the desired signal with the New button afterwards gt Transfer of the whole bus communication gt If you choose the
54. window and may be minimized gt Windows of the docking window type may be anchored anywhere on the frame of the program window gt They are always in the foreground Version 7 5 Vector Informatik GmbH User Manual Windows Floating windows Floating windows are created by the docking window type gt gt gt Vv Standard windows Vv When you drag a docking window from the program window to the windows desktop the window automatically becomes a floating window If you drag a floating window to the program window it is automatically converted to a docking window You can avoid this behavior by keeping the lt Shift gt button pressed while dragging the window Windows of the floating window type may be moved by mouse anywhere on the windows desktop independent of the program window and they always appear in the foreground When the program window is minimized the associated floating windows of the application are also minimized Floating windows cannot be addressed by the lt Alt gt lt Tab gt key combination Panels of the standard window type may be moved by mouse anywhere on the windows desktop independent of the program window An active program window may overlap panels that are in this state Additional characteristics include the appearance of the windows desktop on the task bar and control by the lt Alt gt lt Tab gt key combination When the program window is minimized panels of
55. you can find the Toolbox and the Symbol Explorer on the left hand side of the main window Frome there you can place controls and symbols via drag and drop on an open panel On the right hand side the properties of the selected objects are displayed in a table format In the middle you can see the working area where you can create your panels This division of the main window makes the process to configure the panel and its controls virtually dialog free Panel Designer SystemUnderTest xvp File Edit Layout Settings Window Help 2 OG i Se alot EECHER Vector Standard Controls gt lt Pointen gt Central Locking System Analog Gauge Open on crash even if engine is not running BackColor _ Control Gb Button Font Microsoft Sans Seril V Check Box ForeColor E ControlText Combo Box Text Description Group Box Text4lign MiddleLeft el Hexadecimal Editor H Settings 3 Numeric Up Down Switch Value 1 Switch Value 0 Layout Location 66 85 Size 104 17 B Control Name CheckBoxContra B Symbol Symbol CT Symbol Filter Signal Symbol Explorer q Filtered by Signals I Display details A Signals Active CarSpeed data N data Signal Environment Variable System Variable Appearance Eh D CANwin Demo_CAN_CN CANSystemDemo SystemUnderTest xvp2st xvp You can create and edtit Panels in the working area You can open multiple panels at the same time in the Panel
56. 13 7 4 Using panels 135 How to implement specific behavior for a remaining bus simulation 136 J1939 and NMEA 2000 137 Introduction 138 Quick start 138 14 2 1 Create a J1939 database 138 14 2 2 Create a J1939 configuration 139 14 2 3 Create communication relationships 139 14 2 4 Sample configurations 140 Use cases 140 14 3 1 Analyze J1939 networks 140 14 3 2 Diagnose J1939 networks 140 14 3 3 Simulate J1939 networks 141 14 3 4 Test J1939 networks 142 14 3 5 Log and trigger J1939 data 143 14 3 6 Trigger and filter J1939 data 143 14 3 7 Modify J1939 signals 143 14 3 8 Analyze GNSS data 143 14 3 9 Simulate a GNSS receiver 144 14 3 10 Play back GNSS protocol files 145 1S011783 147 Introduction 148 Quick start 148 Use cases 148 15 3 1 Simulate Virtual Terminals 148 15 3 2 Access process data 149 15 3 3 Simulate a process data dictionary 149 Version 7 5 Vector Informatik GmbH User Manual 16 16 1 16 2 16 3 16 4 16 5 16 6 17 17 1 17 2 17 3 17 4 18 18 1 18 2 18 3 19 19 1 19 2 19 3 CANopen Extended features of option CANopen 16 1 1 Trace window 16 1 2 CANopen generator block 16 1 3 CANopen Scanner 16 1 4 Bus configuration 16 1 5 Add ons Databases Generate CANopen simulations Generate tests 16 4 1 Device test 16 4 2 Application test 16 4 2 1 Stimulate PDOS 16 4 2 2 Run the signal based SDO transfer Control center ProCANopen Sample configurations IP Extensions of the IP option
57. 156 EDS files describe the functional features of a CANopen device These device descriptions form the foundation for implementing the simulation and creating test specifications Device tests can be derived directly from the device descriptions For example a test might be used to check the access types of all objects in the object dictionary by SDO and record the results Application tests however cannot be created based on the EDS files since additional knowledge of the application is needed to create these tests But it is possible to generate a test framework For example transmission of the digital input of an I O device may be stimulated to then compare the signal value at the receiver s output Both tests can be applied easily to the simulated total system As soon as the system design has been created it is possible to subcontract development of individual components the tests that have already been created can be applied to the real total system at later time You can create tests easily and conveniently using the Test configurator supplied in ProCANopen The test configuration is assembled from a number of prepared functional templates Project specific information such as node numbers or object indices are available in relevant selection boxes and they support you in creating test sequences Based on the test configuration a generator creates a test sequence that is immediately available for execution in CANoe
58. 39 TSL offers several functions test patterns and checks to test J1939 specific mechanisms such as request parameter groups network management and transport protocols You can use the J1939 TSL with CAPL and XML test modules CAPL offers you more extensive possibilities to modify tests So it is more useful to incorporate complex tests in a CAPL library and to specify simple tests in XML The J1939 Test Module Manager makes it easier to create J1939 XML tests You can start it from the CANdb Editor and create an XML test modules using a database An assistant helps you getting started and creates a basic configuration in form of a XML test module by evaluating the transmit messages and receive messages of a node Furthermore you can generate J1939 82 Compliance tests too Based on this generated test module you can create application specific tests or manually adapt and extend this test module Version 7 5 Vector Informatik GmbH User Manual J1939 and NMEA 2000 14 3 5 Log and trigger J1939 data Logging J1939 parameter groups are recorded as normal CAN messages There is only a special feature when transport protocol parameter groups are recorded in an ASC logging file The assembled parameter groups with a DLC gt 8 are written as J1939 parameter groups in the logging file You can distinguish these lines from other CAN messages by the identifier J1939 Replay CAN messages with an extended CAN identifier from the logging fil
59. 6 1 6 2 6 3 6 4 6 5 6 6 6 7 6 8 6 9 6 10 6 11 6 12 6 13 6 14 Vector Informatik GmbH Desktop concept Window management Simulation Setup window Measurement Setup window Trace window Graphics window State Monitor window Write window Data window Statistics window Statistics Monitor window Diagnostics Console Fault Memory window Test Setup window Version 7 5 Windows page 82 page 82 page 83 page 84 page 87 page 88 page 90 page 91 page 91 page 92 page 94 page 95 page 96 page 96 81 Windows User Manual 6 1 Desktop concept Organize windows on different desktops Window definitions Place windows The purpose of desktops is to organize windows for better clarity and comprehension You can distribute your opened windows to any desired number of desktops and sort information for work processes and other information by topic gt Each desktop may provide any desired amount of information for viewing gt Itis possible to display identical information identical windows on different desktops simultaneously To achieve a better understanding of desktops window management and their appli cations it is necessary to define certain concepts gt There are windows that are represented in the form of blocks in the measurement setup Each block defines the properties of its associated window with regard to configuration position size and the desktop on which it is opened Double clicki
60. ANopen IG symbol in the simulation setup Vector Informatik GmbH Version 7 5 153 CANopen User Manual 16 1 3 CANopen Scanner General The CANopen Scanner evaluates the CAN messages and displays the active CANopen nodes in a list Additional information is also shown such as state device name or master properties Network nodes can be detected easily and quickly using the CANopen Scanner when they communicate with one another SDO or Error Control This does not have any effects on the bus traffic D Follow these steps to add a CANopen Scanner to your configuration ah 1 Open the context menu of a function block in the measurement setup by right Clicking it Choose the menu item Insert CANopen Scanner Open the CANopen Scanner by double clicking the new CO Scanner symbol in the measurement setup 16 1 4 Bus configuration General In the Network Hardware Configuration dialog you can select one of the baud rates defined under CANopen The baud rate and associated values for the bus timing registers are then set automatically D 1 In CANoe choose the menu command Configuration Network Hardware 2 Select the item CAN 1 CANopen settings in the tree view 3 Set the desired baud rate and close the dialog with OK 16 1 5 Add ons Additional For option CANopen additional installation setups are available in the download installations center of the Vector homepage The setups contain a database and if available a sampl
61. All test results are automatically recorded in a report file Version 7 5 Vector Informatik GmbH User Manual CANopen j N Generation process ProCANopen we gear LIC Test Test configuration report EE A Oooo amp o LE Executable test sequence Figure 55 Generation of a test sequence CANopen Test Using the CANopen Test Assistant to create test sequences is even easier and Assistant considerably more effective You can generate entire test sequences from a number of prepared generation templates Individual test functions are automatically combined into a test sequence and parameterized The EDS DCF files for the devices form the basis for generation The following generation templates are available Check of the object dictionary values Check the object dictionary access Check for hidden objects Check the device Check the transmit PDO TPDO Check the receive PDO RPDO Check SDO Server download Check SDO Server upload VVVVVVV A 16 4 2 Application test General The application behavior of the devices cannot be written to the EDS files Therefore the CANoe CANopen option lets you generate a test framework that simplifies creation of application tests immensely In the test sequences the simulated devices can be remote controlled by environment variables On the one hand PDOs can be triggered and on the other hand reading or writing of an object value by SDO can be initiated b
62. Block IG page 101 7 3 Replay block page 102 7 4 Trigger block page 102 7 5 Filter and environment variable filter page 103 7 6 Channel filter page 103 7 7 CAPL nodes in the simulation setup page 104 7 8 CAPL nodes in the measurement setup page 104 Vector Informatik GmbH Version 7 5 99 Blocks and Filter 7 1 Hot spots Function blocks in measurement setup Configure and delete function blocks Function blocks in simulation setup Insert function blocks in the dataflow 100 User Manual Overview In the measurement setup there are square points hot spots between the basic function blocks at which additional function blocks can be inserted or the data flow can be blocked The hot spots themselves allow all data to pass unhindered or block the complete information flow Function blocks can be recognized by their appearance or by their labels in the data flow chart All blocks have shortcut menus which you can use to configure or delete them By deleting the node you can remove the block from the data flow plan All configuration information is lost in the process However the CAPL source files of the CAPL node and the log file of the Replay block are not deleted In the simulation setup the user can insert function blocks directly by means of the bus image When you click the bus image with the right mouse button or select it with cursor keys followed by lt F10 gt a shortcut menu appears with the follo
63. Coding Argument Type Length Designator Serial Number Unsigned 4Byte Senal_Number Name Value 004 17 11 33 Tx IDENTIFICATION ECU_Identification Read 005 17 11 33 Ax Positive Response Ident Number Digit 7 6 9876 Ident Number Digit 5 4 5432 Ident Number Digit 3 2 1000 Ident Number Digi 1 0 9939 Diagnostic Identification dump 0x01 006 17 11 37 Tx IDENTIFICATION AS enal_Number Read 007 17 11 37 Ax Positve Response Serial Number 3141528 EZE Cea vce Figure 45 Diagnostics console Vector Informatik GmbH Version 7 5 95 Windows User Manual 6 13 Fault Memory window Working with fault memories Read out fault memory list With the Fault Memory window you can read the fault memory list of an ECU directly You can also delete single entries in the fault memory list DTC Diagnostic Trouble Code To read out the fault memory list of an ECU the respective database in CANdela file format cdd must exist After loading the diagnostics descriptions the Fault Memory window is opened in CANoe automatically if the CDD has been assigned to a bus or a bus node After opening the Fault Memory Window the fault memory list of the ECU is read out via the Update button Fx Any_ECU_example Fault Memory Symbolic v ERROR No response message received Description Status VoRage too low 0x1 0x0 0x0 true 0x0 Di false vi Door contact front left defect 0x0 0x1 D
64. Drop the Trackbar from the Toolbox to an opened panel 2 Select a FlexRay signal to be manipulated via Symbol in the Properties window 3 Now save your panel File Save Panel Vector Informatik GmbH Version 7 5 135 FlexRay 4 User Manual With the button of the toolbar you can add the created panel to your CANoe configuration After that the panel will be displayed on the currently active desktop After measurement start it is now possible to change the signal s value using the Trackbar 13 8 How to implement specific behavior for a remaining bus simulation Requirements Add on packages Tx buffer 136 A remaining bus simulation often requires gt gt gt communication with a Network Management protocol data exchange via a Transport Protocol e g for diagnostics automatic sending of frames cyclically with periods that possibly cannot be modeled by FlexRay s cycle multiplexing feature e g frame PDU period is 200 ms and FlexRay cycle is 5 ms setting of the Update Bit of a PDU automatically with a specified period sending of signal values according to a global system state e g if clamp 15 is off then send invalid signal values otherwise send current valid signal values from sensors automatic update of message counters and CRC signals inside of frames or PDUs For these use cases various Sometimes OEM specific add on packages for CANoe FlexRay exist Those add on packages
65. Manual 19 1 Scope of delivery Extensions 19 2 Basics Overview CANaerospace Sample configurations The option CANaero contains the following CANoe extensions gt Extensions of the standard components trace window data window CAPL interactive generator block gt Standard database gt Example configurations demonstrating some of the provided features Note The possibilities that are specifically presented by these extensions and how they can be used are described in detail in the further course of this user manual or in the online help system Since years aerospace technology successfully is using several bus systems for connecting avionics and supplemental electronics One of those bus systems is CAN Higher layer protocols shall help getting more and more interoperability between sub systems and for reducing the efforts of integration of electronic components Examples for such protocols are CANaerospace ARINC 810 ARINC 812 and ARINC 825 The option CANaero extends the Vector standard tool CANoe with support for CAN based aerospace protocols currently this is CANaerospace The company Michael Stock Flight Systems developed the interface standard CANaerospace after having gained profound experiences from multiple projects in the field of aerospace technology The protocol considers the special demands of aerospace technology regarding security capability of certifications simple application and easy
66. N controller This is an indication of a defective CAN card No data are currently being received by the card CANoe has sent a command to the card driver which it or the firmware does not recognize Example A bus statistics request to a card without the appropriate logic The receive buffer could not accept any more received messages There are several methods for remedying this situation gt Insert breaks in branches of the data flow plan which are not needed In an extreme case the statistics block data block and trace block can be disconnected by breaks The measurement is recorded with the logging block and afterwards is evaluated offline gt For Basic CAN controllers a reduction in the data stream can be achieved by acceptance filtering Except in special applications the second controller in particular may be completely disconnected by this method Version 7 5 Vector Informatik GmbH User Manual RX register overrun 105 Remedy Timeout 1080 Timeout while accessing card 4 232 Remedy Timeout during card initialization 0 No reply from the card 1400 TX buffer full Tx request rejected 2 Vector Informatik GmbH Applications gt For Full CAN controllers data reduction can be accomplished by striking messages in the message setup in conjunction with filter blocks gt Switching off the statistics report or other unnecessary options The Basic CAN 82C200 controller has only two inte
67. Noe simul node 2 virtual total system Phase 2 CANoe hysical S simulated bus be e T Nq t 4 real time real partial system Ki virtual partial system Phase 3 Wan CANoe UL IL ANN Leg foot real N J node 2 N j physical i software bus Bus T T N e real time real real NS node 1 node 3 M mM T MT 7 real total system Figure 1 Phase model of the development process Environment The behavior of network nodes with regard to input and output signals is described variables with the help of environment variables CANoe differentiates between discrete and continuous variables Switch positions can be represented as discrete environment variables With continuous environment variables dimensions such as temperature or engine RPM can be described Panels The control panels provide a user friendly interface to the environment variables The user can create the panels independently with the help of the Panel Designer During the simulation values of environment variables can be displayed lamps counters and interactively modified switches potentiometers Vector Informatik GmbH Version 7 5 23 Basics Components of the simulation system User Manual The example in Figure 2 is intended to clarify the functions which CANoe provides for simulation and testing of CAN bus systems By pressing the pushbutton on the left control panel the discrete environment variable Pushbutton is set to the value 1 The bus
68. P L lee E 99 104 Fault Memory window 96 Channel filter risainia 103 IEN 130 Channels in offline mode 67 PGP eecs eeneg 99 103 143 172 Channels in online mode 66 Filter DlOCK tee atte et 103 Channels in simulation mode sssssseeeneeeeee en 66 Vector Informatik GmbH Version 7 5 181 Index FIGXRAY oi 4th a vfegt eddi d en Ee ebed it 129 FlexRay database AA 130 FlexRay Frame Panel 135 FlexRay network c ccccceeseeeeeeeeteeeeeeeneeeeeeeaas 131 FlexRay PDU Panel 135 FlexRay Signals aeska irek gegekuege eege eegen 133 FlexRay reif orin i aR 132 G GNSS Mito i eaten 144 GNSS Simulator 0 0 cceceececeeeeeeeeeeeeeeteeeeees 144 Graphic WiINdOW c cssscsesseeeseseeeeeeeees 164 171 Graphics window sososoeoeneneneneeeeenn 88 121 133 H RUE EE 163 168 lee EES 100 l Interactive Generator Block 101 122 171 175 Interactive Master 119 Interactive Task Controller eenen 149 Introduction to CANOE sssssssesseeseeereneseesrrrnreen 22 ER EG 164 IP Security AAVICE cirian atiii 163 J J1587 Diagnostics Monitor eceeeeeees 170 J1587 Parameter Monitor sessseenenseeeerne 169 I1939 WEE 138 J1939 CAPL Generator 149 J1939 Communication matrix eeee 139 J1939 Interaction Layer 141 J1939 Node FMEN irti eene Eed 143 L LID Fi Geheit E E 118 LDF Explorer 118 WIGCMSING EE 13 Biel ET 28 EIN WEE 117 182 Version 7 5 User Manual LIN
69. Preview synchronization edge ECH s Fie Options Bus Timing Register 1 14 nominal bt imin bus J1939 Settings 2 CAN 2 Hardware Sync Bus Timing Register0 49 synchronized bit We internal V Acknowledge on Clock Samples 1 Prescaler 2 BTRO BTR 1 Samping point BTL cycles SW Ku 0x34 75 00 0x49 68 0x00 0x58 62 00 0x67 56 00 0x76 50 0x14 75 0x23 62 29 any Figure 9 Network Hardware Configuration dialog 3 After then select and Setup from the configuration dialog for the first controller CAN 1 and type in the value for the baudrate 100kBaud This makes sense for both high speed and low speed buses CANoe recommends default values for the controller registers which you accept with OK When you do this besides the transmission speed of 100 kBaud you also implicitly define other controller parameters Sampling point BTL cycles and synchronization jump width For the overall system to function properly the same exact values must be assumed for the second controller CAN 2 When you exit the dialog accept the values with OK Real channnels With the Driver button you can open the Vector Hardware Config dialog There application channels you can assign the application channels to the real channels 4 4 Transmitting data Set up a data source Your current test setup still does not have a data source So set up a data source which places information on the bus cyclically Unit 1 Configure CANo
70. Specific events determins start and stop of the logging gt Entire Measurement The entire measurement is logged Example Time window for the trigger in Single Trigger mode top and in Toggle Trigger mode bottom i Pretrig Tog Post Trig lt lt i i _ Time axis i Pretrig Tigger n Be Trigger a 4 Post Trig U U Time axis re Log file In the Single Trigger trigger mode all those data occurring before and after a specific trigger is logged You can enter the necessary settings for pretrigger and post trigger times and the number of triggers you wish to log in the Time section Version 7 5 Vector Informatik GmbH User Manual Toggle Trigger Logging of an entire measurement Trigger conditions Applications In Toggle Trigger trigger mode the time window is described by two successive triggers start of block and end of block triggers The first trigger activated during measurement is the start of block trigger and the second is the end of block trigger Afterwards another start of block trigger follows etc The pre trigger time in toggle trigger mode is referenced to the start of block trigger and the post trigger time is referenced to the end of block trigger With the check box Use combined toggle mode you define that for start of block and end of block trigger the same trigger conditions are valid Example Log file with 2 trigger blocks Pre trigger 50ms post trigger 100ms Trig
71. a database is assigned to the selected channel statistics can also be evaluated individually for each available node Columns The Current Last column shows the current or most recently derived statistical value The Min Max and Avg columns show the corresponding minimum maximum and average statistical values a Screenshot i CAN Stetistics i CAN Channel CAN 2 PowerTrain s lz z Statistic Current Last Min Max Avg 2 Busload 14 09 0 00 14 09 12 61 el Min Send Dist ms s 0 000 0 000 0 000 0 000 E Engine 0 000 0 000 0 000 0 000 Gateway 2 112 0 000 9 228 2 851 i NM_Tester Ka a Unknown 3 a Max Burst Time ms s 5 628 0 000 6 564 5 162 BH Engine 4 824 0 000 5 760 4 409 DI Gateway 0 804 0 000 1 824 0 753 D MM Teater 0 000 0 000 0 000 0 000 Unknown 0 000 0 000 0 000 0 000 Max Frames per Burst fir s 5 000 0 000 6 000 4 638 Std Data ffr s 134 0 135 122 Std Data ftotal 7188 3 Ext Data bel 0 0 0 0 Ext Data ftotal 0 Std Remote Brel 0 0 0 0 Std Remote ftotal 0 Ext Remote ffr s 0 0 0 0 Ext Remote total 0 Erorframes ffr s 0 0 0 0 Erorframes total 0 Chip State Acti BE 0 0 0 Figure 44 CAN Statistics Monitor window Log bus statistics Bus statistics information is also recorded in logging see chapter 5 8 To include this information information in logging activate the Log internal events check box in the
72. ame or a PDU with valid frame update bit that contains this signal Before you can send a FlexRay frame PDU you sometimes have to reserve a buffer inside the communication controller Info You must assure according to the FlexRay standard that a frame in a specific I slot of the static segment is either sent only by CANoe or one other external node A static frame of a specific slot must not be sent from CANoe and another external node gek Further Information Whether your bus interface hardware requires reserving send buffers and how this can be achieved please refer to the online help for the FRSetSendFrame FRSetSendPDU function in CAPL or the dialog of Configuration Network Hardware FlexRay Send Buffer if not available then it is not required for the selected hardware type Defining a frame PDU in the Frame Panel or PDU Panel automatically modifies the TX buffer of the FlexRay hardware 13 7 1 Using signals D 1 Create a FlexRay configuration by following the steps described in chapter 13 3 2 Select a network node e g GearBox in the simulation setup and choose Configuration of the shortcut menu 3 Enter a file name for your CAPL program and then press Edit to start the CAPL Browser 4 Now use the appropriate signal to manipulate a FlexRay signal that is defined in the attached FIBEX database Here is a simple example using the event handler for the key lt 1 gt assuming the FIBEX database defines a frame Ge
73. and Power Train both contain the network node Gateway and are assigned to the buses Comfort and Power Train in the simulation setup These nodes are interpreted as gateway definitions To meet this rule there must be a CAPL block in the simulation setup that has to be assigned to a database node and has to be included as a gateway It does not meet this rule when a CAPL block is included as a node in one of the buses while no database is assigned to this bus All gateways that are defined in the databases must be included as gateways in the assigned buses within the simulation setup Example This rule is slightly different to the 2nd rule It does not meet to include a gate way that is defined in the databases in the available buses of the simulation setup The concerned CAPL block must be included as a gateway in the buses to which the databases are assigned to Version 7 5 Vector Informatik GmbH User Manual Applications 5 3 Measurement Measurement setup How to start a The measurement is started by measurement gt pressing the lt F9 gt key gt by choosing Start Start in the main menu or gt by activating the start button S on the toolbar In online mode data can now be received and evaluated from the bus or can be sent out onto the bus The data flow diagram shows you which analysis and transmit blocks are active during the particular measurement At the start of an Online measurement first the CAN boa
74. annel destination MAC address length packet data HERE SEET EE il OxilZsasG W llegro Vector Informatik GmbH Version 7 5 127 MOST User Manual 12 7 2 Program controlled receiving A Is 128 Example Receiving a AMS message on mostAMSMessage NetBlock DevicelInfo Get report message variable mostAmsMessage NetBlock DeviceInfo Status msg initialize report message e g with source address of the sender of DeviceInfo Get mostPrepareReport this msg user specific code to fill parameters of the message send message output msg Example Receiving a MOST Package MDP OnMostPkt long pktdatalen Ile ageet o MostPktGetData buffer pktdatalen user specific code to analyze parameters of the packet Uy Example Receiving a MOST Ethernet Package MEP only available with MOST150 OnMostEthPkt long pktDataLen Iesele MostEthPktGetData buffer pktdatalen user specific code to analyze parameters of the ethernet packet La Version 7 5 Vector Informatik GmbH User Manual 13 FlexRay In this chapter you find the following information 13 1 Preliminary note 13 2 How to create a FlexRay database 13 3 How to create a CANoe FlexRay configuration 13 4 How to simulate and analyze a FlexRay network 13 5 How to log and replay FlexRay traffic 13 6 How to view FlexRay signals 13 7 How to
75. ant error message Double click the message or select the line and execute the command Go to from the Messages window to position the cursor at the location where the error occurred After you have corrected it and saved the program file again you recompile the program If the program compiles without errors the status compiled appears in the status bar at the bottom of Browser s main window Version 7 5 113 User Manual CAN 10 CAN In this chapter you find the following information 10 1 Overview page 116 Vector Informatik GmbH Version 7 5 115 CAN User Manual 10 1 Overview CAN specific The CANoe Tour and various examples in this manual are based on the CAN bus features system Further Information Please refer to the online help for further details 116 Version 7 5 Vector Informatik GmbH User Manual 11 LIN In this chapter you find the following information 11 1 Preliminary note 11 2 How to create a LIN description file 11 3 How to create a CANoe LIN configuration 11 4 How to simulate and analyze a LIN network 11 5 How to control a LIN Master s scheduler Using the Interactive Master Using CAPL 11 6 How to log and replay LIN traffic 11 7 How to view LIN signals 11 8 How to manipulate LIN signals Using CAPL Signal API Using the CAPL function output Using the Interactive Generator Block Using panels Vector Informatik GmbH Version 7 5 LIN page 118 page 118 page 118 pa
76. arBoxInfo that contains a signal Gear Vector Informatik GmbH Version 7 5 133 FlexRay User Manual variables int gGear 1 0 reverse 1 neutral 2 6 forward On EES register FlexRay frame for sending FRSetSendFrame GearBoxInfo 0 flags on key Il gGear GearBoxInfo Gear reading Signal if gGear gt 0 amp amp gGear lt 6 gGear 0 amp amp SABSInfo CarSpeed lt 5 gGeartt GearShiftText gGear SGearBoxInfo Gear gGear writing signal Now save and compile the CAPL program e g by pressing lt F9 gt and start the measurement Open the Trace window via the main menu View Trace and expand the FlexRay frame GearBoxinfo On pressing the key lt 1 gt your signal should now increase its value by one until it reaches 6 13 7 2 Using CAPL functions FRUpdateStatFrame FRSendDynFrame FRUpdatePDU Update multiple frame signals 134 You can also update signals using the CAPL functions FRUpdateStatFrame FRSendDynFrame FRUpdatePDU Using these methods you can update multiple frame signals simultaneously To try out this method add a new event handler for the key lt 2 gt to your CAPL program with the following code variables int gGear 1 0 reverse 1 neutral 2 6 forward FRFrame GearBoxInfo myframe Version 7 5 Vector Informatik GmbH User Manual FlexRay On KES babe myframe MsgChannel
77. asics Introduction to CANoe Tips for using CANoe Overview of the programs CANoe architecture Particularities of the demo version CANoe Tour Overview Preparations Setting up the bus Transmitting data Evaluation windows Working with symbolic data Analysis of signal values in the Data window Analysis of signal responses in the Graphics window Use of the database in transmitting messages Vector Informatik GmbH Version 7 5 Table of contents OO OO OO N Table of contents 4 10 4 11 4 12 4 13 5 1 5 2 5 3 5 4 5 5 5 6 5 7 5 8 5 9 5 10 5 11 5 12 5 13 5 14 5 15 5 16 5 17 6 1 6 2 6 3 6 4 6 5 Logging a measurement Evaluating a log file Creating a CAPL program Simulation of distributed systems in CANoe 4 13 1 Creating the database 4 13 2 Creating panels 4 13 3 Creating network node models Applications Overview of the important elements Simulation Simulation setup 5 2 1 Working in the simulation setup 5 2 2 Simulation mode 5 2 3 Message attributes 5 2 4 System verification Measurement Measurement setup Working with configurations Working with databases 5 5 1 Use of multiple databases 5 5 2 Resolving ambiguities 5 5 3 Checking for consistency of symbolic data Working with multiple channels 5 6 1 Channels in online mode 5 6 2 Channels in simulation mode 5 6 3 Channels in offline mode Working with panels and symbols Logging and evaluation of measurement
78. atabase 50 cant aspects of the system gt The exchange of information between the two network nodes via the communi cation medium i e the CAN bus and gt The I O interface to the periphery i e the wiring between each node and its input and output units The database message and signal objects are available for describing the exchange of information over the CAN bus The simple functionality of the example can be handled by a 1 bit signal which describes the state of the switch at the first node This signal is packed in a CAN message and is only transmitted if the switch state changes spontaneous transmission Therefore you create a new database with the CANdb Editor and in the database you create a message e g with the name Msg 1 and identifier 100 which is to be transmitted by the first node Create the signal bsSwitch to describe the switch position and link it to the message Msg In this case a signal length of one bit is suffi cient since only two states need to be transmitted On 1 and Off 0 The database provides you with environment variables for describing the I O interface between the nodes and their peripheries Each peripheral element Switch indicator lamp slider etc is wired to an environment variable i e it is connected to the CAPL program for the network node In this example there are exactly two peripheral elements A switch at the first node and an indicator lamp at the second node Th
79. ation setup and connect them to the simulated or real bus The status of all nodes can be switched over simultaneously using one of the two menu commands Switch all nodes to real time mode or Switch all nodes to simulation Besides network nodes you can also insert Generator blocks and Replay blocks in the simulation setup To remove a network node from the simulation setup choose the command Delete in the node s shortcut menu or select the node in the simulation setup using the cursor keys and then press the lt Del gt button The assigned CAPL program is not deleted by this action Simulated network nodes are shown with red connection lines to the simulated bus in the simulation setup During a measurement their functionality is simulated by the assigned CAPL program In this case the network node s bus behavior does not differ from that of a real controller with the same functionality In contrast real nodes are shown with black connection lines to the real bus The network node models of real nodes do not have any effects on the measurement To switch over the status of the currently active node in the simulation setup simply press the spacebar Each time the spacebar is pressed the node status changes from active simulation to inactive real time mode and back again 6 4 Measurement Setup window Overview Graphical view of a measurement setup Data source Evaluation branch Evaluation blocks 84 A brief look at
80. blem specific analysis of data traffic with CAPL or you can program a gateway a connecting element between two buses to exchange data between different CAN buses CAPL nodes are inserted in the data flow plan as function blocks Event procedures serve as inputs in CAPL These procedures can react to external events e g the occurrence of specific messages You send messages by calling the function output These language tools and symbolic access to the various variables in the database make it possible to create simple prototypical models of nodes The event procedures can be edited in the user friendly Browser Info You can find a detailed description of all CAPL functions in the online help CAPL programs have an input through which messages pass as events into the block Appearing at the output are all messages that either pass through the program or are generated by it Furthermore the program block can react to keyboard inputs Key time events Timer and with CANoe to changes in environment variables such as switches or slider positions Messages Program Message Block Therefore you can utilize a CAPL program to develop monitoring and testing for your special problem task The CAPL program reacts to messages that CANoe registers on the CAN bus and afterwards you can call your own analysis and test functions You can also use a CAPL program to emulate the system environment for a controller
81. block CANoe also offers two additional block types as data sources gt With a replay block you can play back data on the bus that were logged with CANoe s logging function gt A program block allows you to integrate your own transmit functionalities which may be quite complex into CANoe with the CAPL programming language 4 5 Evaluation windows Data analysis Trace window Configuration of the Trace window Evaluation windows are used to analyze data generated by the generator blocks in the simulation setup You have already learned about the Trace window Data that reach the trace block of the measurement setup are displayed here as CAN messages in bus oriented format Besides the time stamp this includes the number of the CAN controller the identifier an attribute for differentiating transmitted and received messages and the data bytes of the CAN message You can configure the Trace window like all other analysis windows from the popup menu that is accessed by clicking the right mouse button on the window or on the appropriate block Furthermore the four buttons on the right of the toolbar can be used to configure the Trace window For example with zt you can toggle from stationary mode to the scroll mode in which each message arriving at the trace block is written to a new line Vector Informatik GmbH Version 7 5 37 CANoe Tour Statistics window Statistics report Activate the statistics repo
82. can use the Packet API of the Ethernet Interaction Layer to create and send Ethernet packets You can access the protocol fields of the packets and read modify the values Some fields e g the checksum you can automatically calculate 164 Version 7 5 Vector Informatik GmbH User Manual IP Socket API With the Socket API of the Ethernet Interaction Layer you can realize End to End communication The protocols TCP and UDP are supported for the server and the client socket 17 3 5 Run Remote CAN analysis General With CANoe IP you can access a CAN network with remote access via a CAN W LAN gateway using the complete functionality as if the CAN network is locally connected You have to create and configure a CAN network in CANoe and a CAN W LAN gateway which is used to access the remote CAN network in the Vector Hardware Config dialog Windows Control Panel Vector Hardware You can use several CAN W LAN gateways the configuration depends on the module itself For details see the manual of the module Note Due the WLAN connection time delays during the packet transmission are possible The time stamps are generated on the CAN W LAN gateway directly _ 17 4 Quick start 17 4 1 Analyze network traffic Analyze network To analyze an Ethernet network do the following steps to create a configuration and traffic use it D 1 Start CANoe IP TE 2 Create a new configuration with File New 3 Use the template Et
83. cess data is possible now and with buttons you can read out process data or write modified process data to the process data dictionary With the J1939 CAPL Generator you can generate source code for use with a Virtual Terminal To do this only an device description file xml is required 15 3 3 Simulate a process data dictionary If you don t have a real ECU you can simulate one with the option 15011783 An extension to the node layer administrates a device description file according to IS011783 10 and creates a process data dictionary This is automatically sent to the Task Controller as if you have a real ECU Now you can access to the process data with several commands read value write value Vector Informatik GmbH Version 7 5 149 1ISO11783 150 ER User Manual XML eee Device description simulated nodes Task file Farm gt gt Task Implement A Management a a Controller Process data dictionary Implement B Process data dictionary System Reply file Log data Process data message Figure 53 Process data with 15011783 To simulate a process data dictionary and access it follow the next steps 1 Add a net node to the simulation setup of CANoe which will simulate the ECU 2 Configure this node so that it will use the node layer 3 Create the ECU in CAPL 4 Create a process data dictionary for this device and specify the name of the device description file
84. ch form the basis for simulation and test generation see Device test section generally do not exist yet for the devices in development The EDS editor CANeds that is integrated in ProCANopen lets you create EDS files easily and quickly From a list of available objects you can assemble an object dictionary by drag and drop operation First the resulting EDS file forms the basis for model generation and test creation Second the created EDS file can be delivered with the finished end product Reference For further information on using ProCANopen and CANeds please refer f to the relevant manual or online help 16 6 Sample configurations Samples With the option CANopen for CANoe you get several sample configurations to get used with the option CANopen and its various functions You can start these sample configurations directly via the Windows start menu Reference You can find more detailed information how to use the sample E configurations in the online help and in the configuration comments in CANoe 160 Version 7 5 Vector Informatik GmbH User Manual 17 IP In this chapter you find the following information 17 1 Extensions of the IP option Check installation 17 2 Security advice for using CANoe IP Exclusive use of an Ethernet interface 17 3 Use cases Analyze Ethernet networks Filter Ethernet data Stimulate Ethernet packets Simulate Ethernet nodes Run Remote CAN analysis 17 4 Quick star
85. create an IS011783 database and a configuration is already described in chapter Option J1939 of this manual The procedure is identical to 15011783 so that you can easily orient on this In order to simplify the initial steps of the option 1ISO11783 a few sample configurations are included These samples should demonstrate the use of various functions of the option You can start the samples directly via the Windows start menu 15 3 Use cases i Note Some typical use cases are already described in chapter J1939 of this user manual The option IS011783 offers additional extensions that are described more detailed in the further course of this chapter 15 3 1 Simulate Virtual Terminals Virtual Terminal 148 A virtual terminal VT is an electronic control unit consisting of a graphical display and input functions connected to an IS011783 network that provides the capability for an ECU an implement or a group of implements to interact with the user The layout of the graphic user interface is defined by an object pool It defines colors shapes pictures input an output fields that the VT will show on screen Values and screen positions are also defined Version 7 5 Vector Informatik GmbH User Manual VT Window VT Panel J1939 CAPL Generator 1ISO11783 If you don t have a real VT you can simulate one with the VT window of the option 15011783 Insert this window via the context menu in the sim
86. cs window provides an overview of bus window data traffic Displayed here are the total frequencies of data remote error and over load frames bus loading and CAN controller status Since in our case one message is sent every 100 ms and the second message every 200ms the total frequency of all messages is 15 frames per second With an average data length of about 70 bits per frame approx 15 70 1000 bits are placed on the bus in one second At a baud rate of 100 kBit sec the bus load in our example would be on the order of magnitude of one percent z Bus Statistics Busload Peakload Tac Std Data Fris Std Data total Ext Data frs Ext Data total Std Remote Fr s Std Remote total Ext Remote Iris Ext Remote total Errorframe Fr s Errorframes total Chip state lt OH CO 0 0 0 0 0 0 0 0 A Figure 21 Bus Statistics window Vector Informatik GmbH Version 7 5 39 CANoe Tour User Manual 4 6 Working with symbolic data Symbolic description of data Interpretation of the data bytes 40 Before we discuss the remaining windows in detail let us have a look at the capabilities offered by CANoe for the symbolic description of data Of primary interest in the analysis of CAN systems besides bus related information such as messages error frames and message frequencies is information on useful data i e signals such as RPM temperature and engine load which
87. ctional description of a network node includes the node s behavior with regard to input and output variables as well as messages to be received and transmitted The event driven procedural language CAPL is provided in CANoe for modeling network nodes Start delay The Start delay can influence the behavior of the network node before the start of the measurement The button switches this influence to active which causes the node to remain inactive for the set time period after the start of the measurement Messages are neither sent nor received during this time nor do they react to external conditions such as environment variables or key presses Drift Jitter To simulate the timer inaccuracy of real network nodes you can influence the timer of the simulated network nodes by Drift and Jitter When this is the case you can toggle between fixed deviation and an equally distributed fluctuation Info When a CAPL node is removed from the simulation setup the CAPL source file is not deleted 7 8 CAPL nodes in the measurement setup Applications Important applications of program blocks in the measurement setup include e g activation of triggers or data reduction or monitoring in the measurement setup Program blocks appear in the data flow plan as small blocks with the label P Info A CAPL node in a data flow branch blocks all messages that are not explicitly H output in the program with output A program that is transparent for all messages
88. d might be viewed in RPM or temperature in degrees celsius Raw Value CarSpeed D EngSpeed Gear EngTemp 30 Starterkey 1 IdleRunning Running WindowPos_Left 0 0 WindowPos Right E T E e l Figure 41 Data window By default the display shows the signal name physical value units raw value and progress indicator Bar for the physical value You can configure the displayed columns from the table header s shortcut menu Vector Informatik GmbH Version 7 5 91 Windows il Display of signal value s changes Min and max signal value User Manual Info Besides displaying signals the Graphics window also offers the option of viewing values of environment variables and diagnostics parameter All of the statements made below regarding signals also apply in principle to environment variables and diagnostics parameter The signal values received in the data block of the last message remain visible in the data window until they are overwritten by new values If a message is logged with an unchanged signal value the activity indicator moves in the first column If the indicator does not move then the displayed signal value is not current since the associated message was not received It is easy to miss minima and maxima if signal values are changing very quickly Therefore Min and Max columns may be added from the table header s shortcut menu The minimum and maximum values over the entire duration of the m
89. d maximum for the recorded transmit interval Stop the measurement and activate the statistics report in the configuration dialog of the statistics block measurement setup Statistic Window Configuration Averaging time 2 000 OK Expanded statistical functions oe i s Cancel Statistics report and histogram evaluations Options Activate E Help C Automatic output of statistics report Figure 19 Activate the statisticsl report Version 7 5 Vector Informatik GmbH User Manual CANoe Tour Display of the If the Activate check box of the expanded statistical functions is selected a statistics statistics report in the report is generated for at least one acquisition range during the measurement After Write window the end of the measurement this can be output to the Write window by the Display statistics report command in the Statistics block s shortcut menu GC Source Message Systen Statistics report AROOO7 05 02 36 pm System Statistics for transmit spacing of messages in ms System System N Aver StdDev MIN MAX Syster Syster 64 68 99 347 5 5118 55 23 101 61 CAN 1 Syster 64 68 99 347 5 5143 55 21 101 61 CAN 2 Syster 3c 34 199 99 0 80476 198 40 201 53 CAN 1l System 3f 34 199 99 0 80448 198 41 201 52 CAN 2 Syster Systen End of measurement 05 02 43 pm rr Lat K System Cap Inspect Call stack Figure 20 Statistics report in the Write window Bus Statistics Another bus related window the Bus Statisti
90. d write access environment variables Controlling Control can either be realized by COM ready script environments ActiveX Scripting VBScript JScript Perl or by stand alone applications which can be written with RAD development environments Visual Basic Delphi or in C C 76 Version 7 5 Vector Informatik GmbH User Manual Applications 5 16 Troubleshooting CANoe will not start CANoe runs too slowly Card cannot be initialized Timeout Error message Error in transmission gt CFG file destroyed Often it is helpful to delete the active configuration file MYCONFIG CFG First the file should be backed up under a different name so that its contents are not lost After the problem has been cleared up it can be renamed back to MYCONFIG CFG Power managers which are particularly common on notebook computers may not be installed for CANoe operation Among other things the power manager deprives the application of CPU for long periods of time Therefore transmit times are incorrect and messages can be lost when a power manager is installed To remove the power manager from your system please compare the instructions in the installation guide of your hardware For less powerful computers it may also be advisable to reduce the resolution of the system clock The time stamps for messages may then be less accurate but fewer demands are placed on computer CPU To do this enter the following line in
91. dentifier Signal values can also be edited directly in the transmit list now Select the first line of the transmit list and then activate the Signal button In the values dialog you can now enter the signal values directly It will also be apparent to you once again that the byte values D8 D6 37 and 0 from the first line correspond to the signal val ues EngSpeed 55000 rpm EngTemp 60 degrees Celsius and IdleRunnning 0 EngineData 1 PetrolLevel 0 EngPower 0 3 D Pai IdleRunning Running WE 0 E ee mam Figure 26 Values dialog in the generator block Version 7 5 Vector Informatik GmbH User Manual CANoe Tour If you now set for example the value of EngSpeed to 1000 rpm the generator block automatically uses the database information to compute the corresponding data bytes 10 27 37 and 0 4 10 Logging a measurement Data logging Unit 5 Activate the logging branch Configure the logging file CANoe has extensive logging functions for data logging In the standard measurement setup the logging branch is shown at the very bottom of the screen You can easily recognize it by the file icon that symbolizes the log file The log file is filled with CAN data during the measurement Log in ASCII format all CAN data traffic that is generated in a short measurement approx 20 sec by the generator blocks in the simulation setup To log the data
92. display too Statistic window With the option J1939 you can change the unit of the X axis of the statistic window You can choose the ID range the PN range or the range of the sender addresses J1939 Network The J1939 Network Scanner displays all active nodes of the network Network Scanner management parameter groups and others are evaluated So the active nodes and their states are clearly displayed For selected nodes you can get more detailed information e g the J1939 device name You can also send requests for special parameter groups 14 3 2 Diagnose J1939 networks Diagnostic The option J1939 supports you with diagnostic in you network with the J1939 Diagnostic Monitor and the J1939 Memory Access window J1939 Diagnostic With the J1939 Diagnostic Monitor in the measurement setup you can evaluate the Monitor diagnostic messages specified in SAE J1939 73 of the network Diagnostic lamps indicate the state of the entire network and the individual nodes as well The active error codes and their course are displayed for each node 140 Version 7 5 Vector Informatik GmbH User Manual J1939 Memory Access window J1939 OBD I M Monitor J1939 and NMEA 2000 Furthermore you can request additional diagnostic messages which help with the diagnostic of your network Additionally you can copy the displayed data to the the clipboard for further processing or archiving With the J1939 Memory Access window in the simulatio
93. do not transmit messages to which an undefined channel is assigned Version 7 5 Vector Informatik GmbH User Manual Applications 5 6 3 Channels in offline mode Working with logged In offline mode the channels correspond to those channels on which the played in data messages were logged Consequently each message is played in on the channel on which it was logged The channels in offline mode correspond to the channels used during logging to the log file Therefore you should define the number of channels such that it corresponds to the number of channels that were configured for logging to the log file Behavior with If you use undefined channels CANoe behaves as follows in offline mode inconsistence gt The channel configuration does not cause any filtering of messages in the data flow plan gt If messages are played in which are assigned to an undefined channel these messages are passed through the measurement setup gt When transmitting from a Generator block or Replay block in the measurement setup to an undefined channel the transmit request is passed through gt CAPL blocks do not send out messages to which no defined channel is allocated 5 7 Working with panels and symbols Create your own To permit working with simulated network nodes in CANoe the network node models user control in the simulation setup created in CAPL must be able to react to external events e g interfaces activation of a switch CANoe a
94. e a FIBEX file you can easily create one using Vector s design tool DaVinci Network Designer FlexRay FIBEX database files are XML files that also can be edited although this is not recommended using a general XML or ASCII editor or with the FIBEX Explorer that is coming along with CANoe FlexRay The FIBEX Explorer is also very useful in order to display all information stored in the database in a very convenient way Further Information An example FIBEX file can be found in the FlexRay demo p subdirectory Demo FlexRay CN FlexRaySystemDemo FIBEX CHI If no FIBEX file is available then optionally a CHI file can be imported that describes the TDMA parameters for the FlexRay communication controller But remember that CHI files are hardware dependent That means you need an appropriate file depending on your bus interface For observing the network startup of a FlexRay cluster or when configuration files are not available then the bus interfaces can be set into the so called asynchronous mode In this mode no frames can be sent 130 Version 7 5 Vector Informatik GmbH User Manual FlexRay 13 3 How to create a CANoe FlexRay configuration D To create a FlexRay configuration using a FIBEX file simply follow these steps 1 Create a new configuration using File New Configuration 2 Select the FlexRay template and activate the checkbox Use Wizard 3 Now press the button Database ope
95. e are replayed as parameter groups J1939 parameter groups with a DLC gt 8 contained in the logging file are ignored when replaying Only the transport protocol parameter groups are evaluated and from that a combined parameter group is generated 14 3 6 Trigger and filter J1939 data Trigger With the trigger block you can define trigger conditions for parameter groups These conditions you can insert as symbolic messages If you select a parameter group from a J1939 database you can set the sender and receiver address as well as the priority As an alternative you can insert a raw message and activate the checkbox J1939 J1939 Message With the extended message filter you can filter messages by their PG or nodes by Filter their J1939 address J1939 Node Filter With the J1939 Node Filter in the measurement setup you can filter PGs that are sent and or received by specific nodes Thereby you can choose between a pass through filter and block filter 14 3 7 Modify J1939 signals Interactive Generator With the interactive generator block IG you have J1939 specific columns in addition Block to the standard columns You can insert a parameter groups in the interactive generator block by selecting the parameter groups in the database As an alternative you can enter a 29 bit CAN ID in the column Identifier and add a x e g F00100x To identify the number as a parameter group number add a p e g FOO1p CAPL Panels You can change si
96. e configuration as well as further modules For the following application profiles add ons are available for download Application profile for building door control CiA416 Application profile for Lift Control Systems CiA417 Device profile for Battery Modules CiA418 Device profile for Battery Chargers CiA419 Application profile for Special purpose Car Add on Devices CiA447 FireCAN dk kk kA db 16 2 Databases General In CANopen standardized messages such as SDO Heartbeat or Emergency messages are contained the standard CANopen database This database is included with the product and is stored in the Exec32 subdirectory of the installation directory 154 Version 7 5 Vector Informatik GmbH User Manual Li CANopen The database does not contain any PDO descriptions since they are created as part of the network creation process using ProCANopen To create a project specific database describing all messages existing in the system follow these steps 1 Create the network structure using ProCANopen gt Add network nodes gt Assign EDS files to the network nodes Configure the PDOs e g via graphic linking Save the project Note When saving ProCANopen automatically creates a database PRJDB dbc in the project directory A configuration file is also created for each device may choose either DCF or XCD format 16 3 Generate CANopen simulations General Generation process Simulation of ne
97. e identifier 100 in your database The use of the symbolic database makes your program essentially independent of information that only relates to the CAN protocol but has no meaning for the applications Let us assume for example that during the development phase you determine that certain CAN identifiers in your system should be reassigned to change message priorities and that in your system the message EngineData should now get the higher priority identifier 10 instead of the identifier 100 In this case let us assume that you have already developed test configurations and CAPL programs for your system which are exclusively based on the symbolic information which do not use the identifier 100 anywhere but rather always refer to the name EngineData After modifying the identifiers in the database you can incorpo rate the new information in the configuration by recompiling the CAPL programs It is not necessary to adapt the CAPL programs to the new identifiers since you only used symbolic names e g EngineData and not CAN identifiers previously ID 100 now ID 10 Therefore it is advisable to manage all information relating only to the CAN bus in the database and to use application relevant symbolic information in CANoe exclusively Vector Informatik GmbH Version 7 5 111 CAPL User Manual Event procedures CAPL is a procedural language whereby the execution of program blocks is controlled by events These program blocks are
98. e real time computer during the simulation or measurement 5 12 Standalone Mode Standalone Mode In standalone mode the realtime specific portions of a configuration is executed on an external device e g VN8900 and CANoe RT Server without a connection to the user PC You can set up the device so that measurement begins as soon as it is switched on You can also interact using a keypad attached directly to the device to stop and start measurement Evaluation specific portions of the configuration in particular any blocks defined in the measurement setup are not included in measurements carried out in standalone mode You can manage standalone mode either via a dialog in CANoe or via the Standalone Manager Vector Informatik GmbH Version 7 5 75 Applications User Manual Standalone Manager The Standalone Manager is an accessory included with CANoe that you can install on any other PC You can use it to control standalone mode on any VN8900 devices connected to that PC 5 13 Macro Recorder Working with macros Macros permit reproducible and automated testing With the help of the macro recorder in CANoe macros can be made to record and replay user actions on panels and diagnostic consoles Environment variable changes are also recorded while recording user actions on panels If the actions of Diagnostics console and the Fault Memory window are recorded then diagnostics data sent to the controller are included in the recordi
99. e so that after the measurement start a CAN message with identifier 64 hex is send on the bus every 100 milliseconds In this case the message should contain exactly four data bytes with the values D8 hex D6 hex 37 hex and 0 Insert a generator You can solve this task by inserting a generator block in CANoe s simulation setup block which generates the message to be transmitted 1 This is done by clicking with the right mouse button on the bus lines in the TE simulation setup and from the shortcut menu inserting a generator block CAN on the bus Vector Informatik GmbH Version 7 5 33 CANoe Tour 34 User Manual Bus CAN Insert network node Insert test module Insert test module XML Insert generator block CAN Insert interactive generator block Insert replay block CAN Insert GNSS Simulator Insert 11939 Diagnostics Memory Access Insert Switch all blocks to simulation Switch all blocks to real time mode Figure 10 Bus symbol insimulation setup with shortcut menu of the bus lines Afterwards this appears in the simulation setup as a rectangular block that is con nected to the simulated bus red line Open the Generator sendlist with the generator block s shortcut menu item Configuration of transmit list First fill out the transmit list You enter 64 as the identifier Check to see whether the numbering format is set to Hex using the Options button Then enter the value 4 i
100. e start button in the main toolbar to observe the LIN traffic in the Trace window main menu View Trace either using a simulated or real bus hardware see main toolbar combo box The Trace window not only displays valid LIN frames but all types of LIN bus events and errors Further Information For a full list of LIN events and errors please see the online CAPL help for LIN By expanding a LIN frame you can view its signals as defined in the LDF associated to this LIN channel Additional LIN specific columns can be added to the Trace window using its configuration dialog To view the LIN statistics open the LIN Statistics Monitor via double click on the LIN Statistics Monitor in the measurement setup or via the menu View LIN Statistics Monitor Info For remaining bus simulations simply connect real LIN nodes to your LIN interface and deactivate the simulated version of these nodes in the Simulation Setup View Simulation Setup e g using the space bar or context menu shortcut 11 5 Howto control a LIN Master s scheduler 11 5 1 Using the Interactive Master 1 Create a LIN configuration by following the steps described in chapter 11 3 2 Inthe simulation setup View Simulation Setup insert an Interactive Master using the context menu shortcut Open the Interactive Master block e g per double click 4 Configure per context menu which schedule the Interactive Master should start on measurement start Per default the
101. e trace window can be extended with these columns gt Interpretation shows protocol information in text form gt Transfer data shows the net data and gt Error displays protocol errors D To activate these columns in the trace window perform these steps 1 Inthe trace window open the context menu by right clicking in the window and choose the Configuration menu command Select the Columns page in the Trace Window Configuration dialog Select the CANopen entry in the combination box Available fields 4 Press the Take over std columns button and close the dialog with OK Highlight CANopen You can highlight CANopen messages depending on different categories e g PDO messages and SDO This allows a fast overview of the current messages on the bus 16 1 2 CANopen generator block General The CANopen generator block lets you create message sequences conveniently From a list of CANopen specific message templates you can select and configure messages and combine them into a sequence If the CANoe configuration already has a database assignment you can select messages described there Now you can send the created message sequence either once or periodically D Use the following steps to add a CANopen generator block 1 Right click the bus line in the simulation setup to open its context menu 2 Choose item Insert interactive generator block CANopen 3 Open the CANopen generator block by double clicking the new C
102. e upper left is the Browser tree which contains the CAN event types as drop down nodes These nodes each contain procedures that can be assigned to the CAN event types The upper part of the text editor to the right of the Browser tree shows the global variables for the CAPL program the lower part shows the procedure text for the procedure selected in the Procedures List The text editor can also be configured so that global variables and procedures can be edited in a common editing window Along the lower border is the Messages window used to display compiler messages for the CAPL program You can access the most important functions for each of the panes from the shortcut menu by pressing the right mouse button In the editor panes you have access via the shortcut menu to the intrinsic CAPL functions and to the objects defined in the database Furthermore you can copy text to the Clipboard from the shortcut menu and from there you can paste it in your program CAPL programs which are not available in Browser specific file format are displayed in unstructured format in a normal text window and can be edited there As in the editors of the Browser window the program text can be edited via the menu command Edit or from the shortcut menu All messages during the compilation process are output in the Message window If errors or warnings occur during the compilation process the Message window automatically jumps to the foreground with the relev
103. easurement are displayed by default To make brief peaks easier to recognize you can define a time interval after which the Minimum and Maximum should be reset to the momentary value You can open the configuration dialog for setting this time interval from the Times menu item of the data window s shortcut menu 6 10 Statistics window Functionality 92 The Statistics block fulfills two different functions gt Display of the average time between the sending of messages secs msg during a measurement It can also display the messages per second These are done by constructing a continuously updated line histogram above a message identifier s axis A sliding scale averaging method with an adjustable averaging time is used gt The other function keeps statistics on all bus activities in the background these results can be reported either as a statistical report in the Write window or stored via a histogram function and then processed further The Statistics window displays the mean message rates existing at the end of the measurement The Write window contains the statistics report see Figure 43 E Statistic Error Frame Figure 42 Statistics Window Version 7 5 Vector Informatik GmbH User Manual Display of transmit interval or message rate View modes Scale Statistics window D Statistic of bus actions Windows During the measurement either the mean transmit interval or the mean message ra
104. eck to make sure the program is functionally capable by means of one of the sample configurations in the EthernetLoopTest folder of your application data These configurations utilize a loopback connection In case you use two Ethernet interfaces connect them directly together with a crossover cable and use the configuration EthernetLoopTest_2Ch_CN cfg If you use only one Ethernet interface connect a loopback cable or a loopback adapter at 10 or 100 Mbps to it and use configuration EthernetLoopTest_1Ch_CN cfg Configure the Ethernet interfaces in the Network Hardware Configuration dialog of CANoe IP Afterwards start the measurement of the sample configuration Press Output Packet in the tester panel and check if the result indicator reports Pass If you use your CANoe IP for Remote CAN Analysis install the CAN W LAN gateway first according to the installation instructions of the manufacturer Then configure the CAN W LAN gateway in the Vector Hardware Config dialog Windows Control Panel Vector Hardware The installation and the connection to the CAN W LAN gateway is correct if a short description is displayed for the module instead of Remote Bus 1 or Remote Bus 2 Version 7 5 Vector Informatik GmbH User Manual IP 17 2 Security advice for using CANoe IP i Caution Please take care if your computer is connected to a network It is possible that you send packets to the network that may cause problems 17 2 1 Exclusi
105. ector Informatik GmbH Version 7 5 139 J1939 and NMEA 2000 User Manual 14 2 4 Sample configurations Note In order to simplify the initial steps of CANoe and to demonstrate the usage of l the various functions of J1939 and NMEA 2000 a few sample configurations are included You can load these samples directly via the start menu of Windows 14 3 Use cases 14 3 1 Analyze J1939 networks Analysis When analyzing communication in a J1939 network CANoe supports you with the following functions Representation of the transmitted parameter groups in the trace window Representation of signal values in the data and graphic window Recording of the bus traffic in log files dk kA hb Representation of nodes in the network Trace window The trace window displays the message traffic with the partial use of symbolic names You can configure it so that additional J1939 specific columns are displayed e g PGN Src Dest and Prio Furthermore you can highlight special events parameter groups use the extended signal display or filter for special J1939 categories and transport protocols With the quick find you can easily search for certain information in the trace window Data and graphic The data window of the option J1939 has an additional column where the status is window displayed with a colored indicator For this the attribute SigType in the database is used and evaluated The graphic window uses this attribute for the extended
106. ed Running Terminated g Aeae Terminated 4 RunnableG Terminated Suspended Activated RunnableH Suspended Running Running A Runnablel Suspended SR Suspended Activated 5 Runnable Suspended Activated Running Terminated amp Runnablek Running Activated Running Activated Suspended Active Ndne P None None Je None Warning Active D t 11 00 Compared with the Graphic window states are displayed without Y axis as rectangles or binary images In the measurement range the numeric or symbolic value of each symbol bus signal environment variable or system variable is shown Thereby many symbols can be arranged space saving on top of each other You can configure the State Monitor is the measurement setup You may insert multiple State Monitor windows Bit signals are displayed as binary images The high level represents the active state of the bit signal 1 the low level represents the inactive state 0 For all other symbols the states are visualized as rectangles Within the rectangle the numeric or symbolic value is shown Each state may have a different fill color assigned Colors may also be assigned to associated value ranges to color code undershooting overshooting of limit values If a value table is assigned the first 11 entries of the value table will have a unique color each all further values are initially white The navigation bar is on the left of the window You can show hide it by clicki
107. eeeeeeeeeeteeneeees 70 Box types in dalogs eneee eenen reenen 25 D Bus configuration seseessseserensseereerrrnnneeerre ea 154 Data window 91 121 133 164 171 175 Bus Statistics WINGOW cccccccecceeeeeeaneeeeeees 132 DBC databases eee 138 154 174 Eet 25 DOM ONOFiVON neet a Bagh 28 c Demo Versio inanin a ai 28 Desktop Concept 82 CAN EE 115 f DFS EE 55 74 CAN interface cccceceeccceceeceeeeeeeenertnaeeeeees 78 Diagnostic sa site tata ee ee 140 170 CANaerospace 02 ee cece eeeeeceeeeeeeeeeeeeeestaeeeeees 174 Diagnostic Feature Set DEG 74 CANdb Edtor aeaaeae 169 BIG Leiner 55 74 EK E ET 152 160 Diagnostics Console 95 CANoe architecture ccccceeeeeeeeeetteeeeeeeees 27 e Drop down et 25 CANoe Realtime ecceeeccececeeeeeeteesteeeeeees 75 CANOE TOUT eA dE 30 E CANopen device configuration 152 160 Embedded Ethemmet 162 CANopen Generator Block 153 Environment variable 164 CANopen Gcanmner eee 154 Environment variables cccccccceceeeeeeees 23 67 CANopen template nennseeeeeeenneneeeerrre nenese 152 Error messages 55 78 CANopen Test Aesistant 157 Ethernet Interface ccccccceseseseseseeeeeeeees 163 CAP E EEEE E EEE 109 144 172 Exporting log Wes 70 CAPL basics e araara a ea ee ees 110 F CAPL Browser a a ra aai 112 FastPacket transport protocol 138 139 CA
108. em Configuration the Graphic configuration dialog Choose the item Signal list in the tree view on the left side Mark the Gear signal Open the Lines Markers dialog via the Lines button Choose the Steps connection type and confirm it with OK Close the Graphic configuration dialog with OK N Oa F WN Start the measurement Vector Informatik GmbH Version 7 5 43 CANoe Tour EI User Manual kb aka e SH CREEK KR EcoMode bk BR Gear kg ShitRequest i Shit Request_On St Raquest_off 1 Figure 25 Graphics window This corresponds to the five values that you entered in the generator block as part of unit 2 The values remain in the Graphics window after the end of the measurement Further Information The measurement functions that the window provides for post analysis are described detailed in chapter 6 6 and in the online help 4 9 Use ofthe database in transmitting messages Symbolic data from the database 44 Until now you have only used the symbolic database to observe signal values However the application capabilities reach well beyond this Open the transmit list of the generator block of unit 1 Instead of the identifier that you previously entered in the transmit list 64 you will now recognize the associated symbolic name in the first column In fact you can now enter a message directly from the database using the Symbol button without having to work with the i
109. en 160 LUsecases EEE A EE TET 164 Option i ma EE E E E TS 166 eene ek EN 147 Option 15011783 ieee 148 INtFODUCTION EN 148 leie NN RE 168 Quickstart ys titani 148 len ENEE 140 Sample configurations EE 148 Shortcut EE 24 EE Eeer 149 EE 143 Leen e Simulation nnn 55 58 141 144 Prerequisites edit EE 168 Simulation generation ceceeceeeeee eens 155 Sample configurations ceeeeeeeeeeeeeees 168 Simulation mode aiaa 58 66 Option ENEE DEE 137 Simulation model 156 GE SRNR tier x Sample configurations ccccccccecsseeseeeees 140 Simulation Setup window 83 EE 140 Single ThIQGEl sissies teeta teaeseeeneaeses 68 Overview of the programs sin 26 lie E 25 SPIN Control ee needed 25 ig Standalone Manager A 75 Panel Designer 105 Standalone Made oc eu ode deceit casted oath x 75 SE paran SOP he Mele igen tou IOs State Monitor window 90 Dee its nities eer sot Seat Ee ee 22 seat ei E E EE 94 Baelen eae 22 errr eee E ee eneen 92 Eege gebiet nad ae eee 22 EE EE 76 PURSES NOD een 194169 SUPPOM eaa n a Ber een a 9 Ee 149 System veriftcation eeeceeeeeeeeeeeeeeeeeeeeees 60 Program Start aeaa ges 56 T 3 RE EE 142 EE Eeer 165 UA 197 Option IGO117g3 148 Test configurator sseeseseeeeeseerrrnneenserrerr erreen 156 ptn a aaaea aa 138 test envitonmente 96 R Test Feature Set TE 71 REOLA C 25 ee 1af Realtime rnnr 75 POSE EE Sa E EE 9 Test Generation tcdsiwceti ageet et
110. ents are output in the Trace window e g gt Error events gt System variables and environment variables gt Transport protocol messages gt Diagnostics services View modes The Trace window offers different view modes to observe the bus traffic gt In Chronological Mode each new row is inserted below the previous row and when the window is full it scrolls upward gt In Fixed Mode each message type is assigned to a specific line the first time it occurs and all further messages of the same type are written to the same line Analysis features The Trace window provides various features for online and offline analysis of the bus traffic e g Display and column filters Multiple search functions for strings conditions and pattern Typical sort features for each column Import Export of Trace data from to log files Spezielle Ansichten fur Busereignisse VVVVY gt Detail view gt Difference view for direct comparison of different events gt Statistic view several events can be selected and examined statistically Vector Informatik GmbH Version 7 5 87 Windows User Manual 6 6 Graphics window Display signal responses 1 Measurement cursor 88 The Graphics windows serve to display signal responses over time As was the case for the Data block if a symbolic database is used you can have the values of signals specified there displayed directly as physical variables For example the engine
111. er and be informed only of the behavior of the SUT at another point like an ECU tester For the robustness of the system two cases have to be distinguished gt Errors in the test specification and parameterization these situations appear because the test is not specified properly or the data configuring it like a data base does not contain the information expected or required In this case the system has to provide enough information for the test designer and user to identify and solve the problem It must be made sure that the sys tem does not report an unreliable result i e no error detected may not be reported if the test itself did not work gt Errors produced by the SUT these errors are exactly what the test has to de tect and therefore the system must be very robust here 5 10 Diagnostics functionality in CANoe Diagnostics in CANoe CANoe can be used in all steps of developing ECUs and performing diagnostics on them Design of the diagnostic functionality system simulation Implementation of diagnostic functionality in an ECU remaining bus simulation Specification Integration Regression tests Specification of tests with XML Analysis of real ECU communication Perform diagnostics of ECUs with integrated tester functionality VVVVUVVY Error search 5 10 1 Diagnostic Feature Set DFS Diagnostics functions Vector Informatik s Diagnostic Feature Set includes several functions that are Diagnostics co
112. er canoe32 exe canbr32 exe NWM canusr dil Figure 3 CANoe system overview 26 Version 7 5 Vector Informatik GmbH User Manual Basics 3 4 CANoe architecture Overview Function blocks Blocks in real time library In the course of a measurement the PC card registers CAN messages on the bus and passes them through the simulation setup to the measurement setup and from there to the specified paths in the data flow plan and on to the evaluation and analysis blocks at the far right of the plan During a measurement two program modules work closely together to this purpose First the CANoe real time library CANRT DLL retrieves the information arriving at the card provides them with a time stamp and shifts them to a ring buffer In a second step these data are read out by the actual main program CANoe32 EXE and are evaluated in the function blocks on the right hand side of the data flow plan Main Buffer CAP L wz Be Measurement ca 1500 Msg 16 bit j t aa ca 15000 Msg 32 bit Interrup DPRAM x ca 100 Msg Figure 4 Internal structure of CANoe You can influence the data flow in the two program modules by inserting function blocks in the simulation setup and or the measurement setup The real time module is comprised of the PC card block and the simulation setup The function blocks in the measurement setup will configure the data flow in the main pr
113. er delete the old CANoe version rename the old CANoe installation or install the new CANoe installation in a new folder This makes it possible to work with different CANoe versions Version 7 5 Vector Informatik GmbH User Manual Installation Windows VISTA XP Installation of the software is identical for these operating systems 2000 Installing the Options Further installations steps may be required if your package includes additional options Please refer to the installation notes in the manual for each option 2 4 Installation procedure How to start the Please take the following steps to install the CANoe software eg 1 Place the CANoe installation CD in your CD drive A Start window will appear in which you can start the software installation If your computer is not configured to automatically launch Start windows you can launch the installation program SETUP EXE from the Application folder on the CD 2 Follow the installation program instructions Note For the installation you need administrator rights If you are logged on as standard user with standard user rights you have to start the CANoe installation program Setup exe from the Explorer directly A dialog is opened to be logged on as a user with administrator rights After that the installation routine can be executed successfully Installation types You can run a Standard or Custom installation Standard gt Ina Standard installation the software
114. er by activating the EI button on the CANoe toolbar This ensures that the database is available with environment variables evSwitch and evLight which are necessary for the connection 2 Open a new panel with the menu item File New Panel and select the file name SWITCH XVP 3 Select a Switch from the Toolbox of the Panel Designer and place it on the panel e g via drag amp drop 4 Configure the Switch in the Properties grid under Settings State Count as a control element with 2 states 5 Assign the Switch in the Properties grid under Settings Image the image file IORGPUSHBUTTON 2 BMP from CANoe s demo directory DEMO _ADDON BITMAP LIBRARY GLOBAL Switches 2STATES 6 Assign the the environment variable evSwitch to the Switch via drag amp drop from the Symbol Explorer Vector Informatik GmbH Version 7 5 51 CANoe Tour Create the second panel Add the panels to the configuration 52 7 8 User Manual Label the switch by selecting the Static Text A display element from the Toolbox and place it on the panel to the right of the Switch Enter the label in the Properties grid of the Static Text under Appearance Text You can change the size of the panel by clicking the panel border and dragging it Try not to size panels any larger than necessary since available screen space is usually a very limited and hence valuable resource Save the panel under the name SWITCH XVP The panel gets the name
115. er this name in the variables block The following should now appear in this pane variables Ine counten Like all global variables this variable is automatically initialized to zero at the measurement start Vector Informatik GmbH Version 7 5 47 CANoe Tour Create an on message event procedure Create a second on message event procedure Create aon key event procedure 48 User Manual In the next step this variable should be incremented whenever an EngineData message is registered Therefore you must expand the CAPL program to include an event procedure of the type on message React to message event To do this click the event type CAN Messages in the Browser tree using the right mouse button and insert a new event procedure of this type using the command New from the shortcut menu Now a procedure template appears in the Procedures Text Editor First replace the text lt newMessage gt by the symbolic name EngineData which you could also assume directly from the database via the shortcut menu item CANdb Message During compilation the CAPL compiler replaces the symbolic name by the corresponding identifier 0x64 Now you only need to define which actions should be performed when the event occurs Since the program is to count messages the variable counter must be must be incremented whenever a message is registered The complete procedure appears as follows on message EngineData cou
116. ereby the first column shows the transmit time relative to the measurement start F Trace EngineData Tx 4 d d6 37 00 Figure 13 Trace window The next column shows you which of the two CAN channels was used to transmit This value 1 agrees with the default value assigned in the generator block s transmit list of messages to be transmitted Please note that the message you generated in the first task has the identifier 64 hex This agrees with the identifier of the message EngineData Vector Informatik GmbH Version 7 5 35 CANoe Tour User Manual Configure the Afterwards this message is also received by the second CAN controller over the bus channel settings The question arises Why is this not also displayed in the Trace window You will find the answer in the configuration dialog for the acceptance filter for the second controller Dn 1 Open the configuration dialog with the bus symbol s shortcut menu Network TE Hardware and choose in the opened dialog CAN 2 Filter Bus CAN CAN 1 kel Network Hardware v Network active Rename Assign channel Figure 14 Shortcut menu of the bus symbol 2 The acceptance filter options support hardware side filtering of messages The default options block most message receiving You can open the filter by entering the value X in the upper line Hardware Configuration Channel Acceptance fites for standard messages 3 d E C Block al Setup ID OOOO
117. erefore two environment variables must be created in the database e g evLight and evSwitch Version 7 5 Vector Informatik GmbH User Manual Save the database and assign it to the configuration CANoe Tour Vector CANdb Editor CANoe_Tour dbc Overall View KO File Ed View Options Window Help TA Be BRA anam AY Networks Name Type A CANoe_Tour amp evlight Integer RB EUs KE A Environment vanables X evtight K evSwitch Network nodes E Messages Msg 0x64 bsSaitch EA Signals A evSaitch Integer 2 Environment Yarisble s Ready Figure 28 Environment variables in the database Save the database e g under the name TOUR DBC and associate it with your empty configuration In the System View window of the Simulation setup you can add the database If you go in the tree view of the current configuration to Databases with the mouse pointer and click on the right mouse button you can run the command Add from the shortcut menu 4 13 2 Creating panels Node s periphery p Create the first panel A separate application the Panel Designer is provided with CANoe for creating the node s periphery In the current configuration one separate panel must be created for each of the two nodes Further Information Please refer to the online help for a detailed introduction into the Panel Designer The first panel has a single control a switch 1 You can start the Panel Design
118. es transmit requests and transmit delays Number of messages mean time spacing standard deviation minimum spacing and maximum spacing DER Source Message System Statistics report AR0002 03 22 49 pm Systen Statistics for transmit spacing of messages in ms System Syster N Auer SudDev NIN MAX System System EngineData x 993 0 081572 49 00 50 06 CAN Systen EngineDatealIEEE d 0 063078 49 00 50 06 CAN System ABSdata rx 9 991 0 084216 49 00 50 06 CAN Systex Gateway 2 TX 5 252 31 2 13 3046 49CAN System Console_1 x 9 997 055679 19 00 20 33 CAN System Console 2 x 27 299 96 19612 299 00 300 00 CAN System DOOR_1 x 90 6262 25 60 33 36 CAN System DOOR_r x 9 9 805 25 19 34 681 CAN System GearBoxInfo TX 5 083996 49 00 50 06 CAN System NM_Conszole x 6 2 586 94 1205 23CAN Systen WM_DOORIeft d 7 4 130 06 865 90 1205 23CAN N tr Fe D bs rs bs rs tbe P T System A CAPL A Inspect Call stack A Test Logging Instruction Figure 43 Statistical evaluation of a measurement in the statistics report Vector Informatik GmbH Version 7 5 93 Windows User Manual 6 11 Statistics Monitor window Display of statistical The Statistics Monitor window displays statistics about bus activities during data measurement This window can be inserted into the measurement setup via the shortcut menus of the relevant function blocks All bus events that arrive at the input of the measurement setup block are evaluated for this purpose If
119. es in the simulation setup e g per double click or shortcut menu 13 5 How to log and replay FlexRay traffic Log 132 You can log FlexRay traffic by activating the connection to the Logging block in the measurement setup Double click this block to open its configuration dialog In the CANoe offline mode logging files can be analyzed in non real time e g by using single stepping Version 7 5 Vector Informatik GmbH User Manual FlexRay Replay The FlexRay Replay block in the simulation setup or test setup replays the FlexRay events and values of logged environment variables 13 6 How to view FlexRay signals Data window To view frame signals numerically either open an existing Data window in the measurement setup View Data or create a new one You can then add signals to this window in one of the following ways gt Via shortcut menu item Add signals gt Per drag amp drop from the Symbol Explorer View Symbol Explorer gt Per drag amp drop from the Trace window Graphics window To view frame signals graphically either open an existing Graphic window in the measurement setup View Graphics or create a new one You can then add signals in the same way as for the Data window Panels Signals can also be viewed by creating your own panels using the Panel Designer utility See also chapter 13 7 4 13 7 How to manipulate FlexRay signals Send a FlexRay Manipulating a FlexRay signal means to send a FlexRay fr
120. es the roles of both sender and receiver In the first step CANoe is configured as a data source i e as a transmitting station You will then learn about of CANoe s analysis options by studying the generated data in the measurement windows afterwards In complex real systems CANoe typically also assumes both roles You can utilize the program as a data source to transmit data to other controllers but you can simultaneously use it to observe log and evaluate the data traffic on the CAN bus In the last part of the tour you will become familiar with the CAPL programming language and create two network nodes of a distributed system to solve a simple simulation task in CANoe 4 2 Preparations Windows 30 CANoe has various evaluation windows Trace Data Graphics Statistics and Bus Statistics windows as well as a measurement setup window and a simulation setup window which shows you the data flow and simultaneously allows you to configure CANoe You can access all program windows from the View menu on the main menu bar Vector CANoe NMEA 2000 LIN MOST FlexRay J1 08 File View Start Mode Panel Configure Window Help D L Measurement Setup ay ov af e de Simulation Setup 3 Trace Data Graphics Statistics Bus Statistics MOST State MOST Central Registry MOST Audio Routing MOST Stress Write HO plslalgl fig Workspace All windows b Bg Backup placements Figure 5 View menu on main men
121. est is run without user interaction only the results are reported gt The result has to be displayed in a simple and clear form e g in regression test of the ECU software For the Test Service Library functions the following fundamental user types can be identified gt Test developer This type of user has control over the CAPL test program and is willing to analyze the write output carefully The system should bring errors or inconsistencies of the test specification to his attention and help him to correct it gt ECU tester These users only apply existing tests on ECUs without the possibility to change the test specification or the SUT black box The user trusts in the correctness of the test i e no errors and inconsistencies are expected and if the system reported some the user would not be able to profit from them Also the user expects a lenient behavior of the tests regarding user interaction e g the user should not have to fear to abort a measurement or render it futile simply by querying a check state Vector Informatik GmbH Version 7 5 73 Applications Robustness User Manual gt ECU developer Users of this type have access to the SUT directly white box change the soft ware of ECUs and run the test to see if the ECU conforms to the test specification They have designed the tests themselves and may want to be informed about all errors in the test configuration at one point like a test develop
122. est report is saved as a file in XML format and if desired may also be saved as a HTML file In test setup test environments can be created and managed that are independent of the CANoe configuration The test setup is represented in the Test Setup window see chapter 6 14 which is comparable to the simulation setup that describes the simulation In CANoe there is exactly one Test Setup window in which several test environments can be loaded A test environment consists of any directory structure that enables the grouping of test blocks The following blocks can be inserted into the test setup gt Test block gt XML test block gt CAPL nodes network nodes gt Generators Generator IG for CAN IG for MOST gt Replay blocks for all bus systems In each directory the test environment can be edited using the shortcut menu The individual nodes are parameterized and checked via their respective shortcut menus The nodes and directories can be moved or copied into the structure at any time using drag and drop Each test environment is stored in an individual file tse Test Setup Environment and can thus be loaded or unloaded independently of the CANoe configuration simulation and analysis window Test blocks or entire directories can be activated and deactivated individually It is also possible to export partial structures of an existing test environment into a new file or to import an existing test environment at any point
123. ext lines in the Trace window C Trace Motbus cre t fi E Ely x u AE le amp amp D Mita a ii ac o S Tine Chn ID Name Dir DLC Data S E S 156 309507 2 3FC GearBoxInfo Tx 1 oi EO Stopfiter W 156 309391 2 66 EngineDatalEEE Tx 8 00 00 00 00 00 00 00 00 MI en Durchlassfitter ij 156 309753 2 64 EngineData Tx 8 58 024 00 00 00 00 00 E NM_Gateway_Motbu H 156 308931 2 51A NM_Gateway_Motbus Tx 2 0000 Z NM_Engine 156 308681 2 601 DiagRequest_Motor Tx 8 0000 00 00 00 00 00 00 E NM_Console ag 156 308797 2 65 EngineStatus Tx 1 om NM_DOOReft 2 Li 156 309141 2 ABSdata Tx 6 0000 00 00 00 00 E NM_DOORright AccelarationForce 10000 N 0 NM_Gateway Diagnostics 0 0 i GearLock Gear_Lock_Off 0 L Engine pA CarSpeed 0 mph o d EI Stopfiter S 73 224264 1 111 Gateway_2 Tx 8 6A 00 00 58 02 00 F4 01 8 Li NM_DOORIleft Voltage 50 v 1F4 Z NM_DOORright PetrolLevel 0 0 E n Durchlassfiter Keen Gs Z EngineDatalEEE o gt Li EngineData EngineTemp 106 6A T EngneStatus H E 156 308431 2 518 Wu Enge Tx 2 0000 E NM Engne S 156 301721 2 67 EngineControl Tx 8 00 F403 00 00 00 00 00 Sai EngneCortrol 155 367978 1 41A NM Console Tx 4 180201 FF L 155 668011 1 41B NM_DOORleft Tx 4 CROOF ag 155 967985 1 AC NM_DOORright Tx 4 DRF 5 5 156 263000 1 41D NM Gateway Tx 4 AROF Predefined Analysis E 156 174462 2 51D Tx 4 1B 02 01 FF Figure 39 CAN Trace window Display of events A number of other ev
124. external startup nodes When CANoe sends one startup frame then you need one external startup node If the bus interface is able to send two startup frames then you need no external startup node Any registered frame of the static segment in the TX buffer list CAPL program or Frame Panel can be defined to be a startup and or sync frame In the Key Slot Configuration Configuration Network Hardware FlexRay Key Slot Config you can define up to two Startup Sync Frames Step 2 The FlexRay TDMA parameters that are defined in your FIBEX or CHI file matches exactly those definitions that are used to implement the external nodes Info The bus interface hardware is allowed to be used in a so called asynchonous mode This mode requires just setting the baud rate It is restricted to receive frames only Vector Informatik GmbH Version 7 5 131 FlexRay Step 3 Step 4 Trace window p Bus Statistics window User Manual Select the connected hardware interface type in a combo box of the Network Hardware Configuration dialog under Configuration Network Hardware FlexRay Info Under the tree items Controller or Protocol of the FlexRay hardware configuration dialog you can choose the database settings to be used for the TDMA parameters or a manual setting that enables the import of an appropriate CHI file If you choose the database settings then you can also select the database node from which the local settings will
125. f the application can be moved enlarged reduced opened and closed again at any time i e also during the measurement CANoe is operated using the main menu The individual menu commands are described in detail in online help Additionally there are other context sensitive menus in the evaluation windows described above and in the data flow plans in the simulation and measurement setup windows These menus allow the user to specifically configure certain objects These menus can be opened by clicking the active block in the active window or in the measurement setup window with the right mouse button Version 7 5 Vector Informatik GmbH User Manual Simulation and measurement setup Box types in dialogs Comment box Button Radio button Check box Text input box Drop down list Spin control Slider Basics Most blocks in the measurement and simulation setups can be parameterized by selecting the first item in the shortcut menu Configuration The block s configuration dialog is opened for this purpose You can also start this dialog directly without going through the shortcut menu by double clicking on the active block or pressing the lt Enter gt key In addition to command inputs which are usually made using menus there are also parameter inputs As a rule parameters are entered in dialog boxes A dialog box generally consists of six types of fields each of which can occur more than once Element Timin
126. forms to the C function printf That completes the program Save it and then start the compiler either with the lt F9 gt key or the main menu command Compiler Compile or by the lightning icon button on the toolbar If you have made an error in creating the program a message win dow will open showing you the error Double click this error message to go to the location where the error occurred After you have corrected it and saved the program file again recompile the program Once the program has compiled without errors the message Compiled appears in the status bar at the bottom of Browser s main window Now start the measurement The generator block in the simulation setup begins to cyclically transmit messages of the type EngineData which are now counted by your program Whenever you press the lt a gt key the text n EngineData messages counted can be seen in the Write window whereby n represents the number of messages counted 4 13 Simulation of distributed systems in CANoe Working with environment variables Unit 8 CANoe provides environment variables to model the functional bus behavior of network nodes These environment variables are described by events and states of the system environment external pressure temperature switch positions etc You can observe and intentionally change these states i e the values of the environment variables on user definable control panels To work with environment var
127. g settings In time unbound sending mode the waveform depends on the target sample time The values defined by the generator are output consecutively Cancel Apply Signal names display O No additional signal names Signal names at the axes O Signal names above the diagram Toolbar v 50 Show toolbar Level 1 Level 2 Accuracy C Toolbar in main window 0 1 Raw Value Cycle Time ms lb Description This tells the user what is to be input The boxes behave passively when clicking on them with the mouse They cannot be accessed by keyboard either Buttons serve to execute certain actions e g to exit the dialog box or to open a subordinate dialog box These buttons represent mutually exclusive options You can only select one option at a time If you select another option the previous selection becomes inactive The currently selected option but ton is identified by a black dot A check box next to an option indicates that this option can be activated or deactivated In this case you can activate as many check boxes as desired Activated check boxes are identified by an x or d Alphanumeric box field e g for entering file names Numeric box field e g for entering integer or floating point numbers After clicking on the arrow along the right border of the box a list drops down from which you can select a value from a prescribed set of values
128. ge 119 page 119 page 120 page 121 page 121 117 LIN 11 1 Preliminary note Introduction p User Manual LIN Local Interconnect Network is a deterministic communication system for connecting ECUs with smart sensors actuators and controls Vector s software tool CANoe LIN provides you with specific features for developing analyzing and testing LIN networks according to the specifications LIN 1 x LIN 2 0 LIN 2 1 SAE J2602 US LIN and Cooling Bus This getting started guide will help you create your first CANoe LIN configuration Through a series of how tos you will also be guided through the most commonly needed LIN features Further Information Please see the online help for further information about CANoe LIN features and topics Configuration examples for LIN demonstrating most of CANoe LIN s features can be found in the demo sub directory DEMO LIN CN 11 2 How to create a LIN description file LIN database LDF Explorer p Although not required it is highly recommended that you use a LIN database when developing analyzing or testing LIN networks The LIN database is described as a LIN description file LDF using the LIN configuration language as defined in the LIN specification If you do not already have an LDF you can easily create one using the LDF Explorer utility provided with CANoe LIN You can start the LDF Explorer from the Windows Start menu Start Vector CANwin Tools LDF Explo
129. ge traffic together with the symbolic names of the messages After each message the corresponding CANaerospace specific fields are displayed Columns In the context menu of the trace window select Configuration Columns The field Available fields allows to select the required protocol here CANaerospace 19 4 2 Data window Overview The data window shows the actual values of the transferred data The selection of the objects is done with the help of the CANdb database The selection dialog shows all available messages On selection of a message the right list shows all signals data fields of that message The data window will display a signal only if all attributes of the message device id etc are entered correctly in the database A signal with the same value of a different device is treated as a different signal and therefore not shown 19 4 3 Interactive Generator Block Overview As in standard CANoe the Interactive Generator Block offers the possibility of transmitting messages triggered by click on a button or cyclic with interactive changing of the data contents In the upper pane the message and the triggering is selected The lower pane displays the message fields of the actually selected line The required values have to be entered here When selecting the data type the corresponding signal from the database will appear if this data type dependent signal is part of the CANaerospace specification With a click on Send no
130. ger types Message GearBoxinfo and Error Frames Logging date Tue Oct 27 13 14 46 1998 base hex Header intemal events logged Begin Triggerblock Tue Oct 27 13 14 52 1998 6 0004 1 WheellInfo Tx d 8 69 OF 00 op 00 00 15 10 6 0151 1 ABSdara Tx d 3 Al 00 00 Kadija 1 GearBoxInfo Tx d 1 04 First 6 0501 log trigger event Trigger block 6 0651 1 ABSdata Tx a 3 4 00 00 6 1004 1 WheellInfo Tx d 8 EF 04 00 op 00 00 O8 OA 6 1151 1 ABSdara Tx a3 4E 00 00 6 1181 1 EngineData Tx d 4 68 SB A3 00 End Triggerblock Begin Triggerblock Tue Oct 27 13 14 55 1998 9 1004 1 Wheelinfo Tx d 8 BS 06 00 op 00 OO 32 OA 9 1151 1 ABSdata Tx a 3 62 00 00 gt 1300 1 Error rane Second 9 1300 log trigger event Trigger block 9 1651 1 ABSdata Tx d 3 68 00 00 9 1771 1 EngineDara Tx d 4 98 76 28 00 9 2004 1 Wheellnfo Tx d 8 73 09 00 00 00 00 72 08 9 2151 1 ABSdata Tx d 3 68 00 00 End Triggerblock For example the entire measurement can be recorded in Toggle Trigger mode by selecting Start and Stop as the trigger conditions In this case a start of block trigger is activated at the start of measurement and the measurement is logged until the end of block trigger occurs when the measurement is stopped Pre trigger and post trigger times are ignored when this option is set You can determine whether the trigger action should be executed once or multiple times If you have selected Single Trigger or Toggle Trigger as the trigger mode now you can select from the foll
131. ges the program acquires the new switch value and immediately outputs it on the bus Reaction to change of environment var evSwitch on envVar evSwitch Declare a CAN message to be transmitted message Msgl msg Read out the value of the light switch Assign to the bus signal bsSwitch msg bsSwitch getValue this Output message on bus spontaneous transmission output msg Vector Informatik GmbH Version 7 5 53 CANoe Tour Start the measurement 54 User Manual The second network node reacts to this message The CAPL program reads the value of the bus signal for the switch position and then activates or deactivates the indicator lamp at its periphery Please note that the switch value is only acquired via the signal value on the bus The value of the environment variable evSwitch is not known to this CAPL program That is the communication between the two nodes occurs exclusively via the CAN bus Reaction to receipt of the CAN message M1 on message Msgl Read out a bus signal and set the environment variable putValue evLight this bsSwitch Now start the measurement in CANoe Whenever you activate the switch on Panel 1 the indicator lamp illuminates Whenever you turn the switch off the indicator lamp goes off The Trace window shows you both the bus communication Spontaneous transmission of message Msg when the switch position changes and the values of environment variable
132. gineStatus 0x65 CAN S andard DiagRequest_Motor Oxi eR A 8 SN EJ DiagRespanse Motor Oxt E GearBoxinfo Ox3FC CAN Standard 3 E Engnedata 0x64 E NM_Engine Dei CAN Standard P D rs er OD o o o Oo SS EngSpeed EI NM_Geteway_PowerTran OxSi4 CAN Standard EngTemp IdleRurning ZA EngForce ZA EngPower E Petrollevel EngineDetalEEE 0x66 EngineStatus 0x65 GearBoxInfo Ox3FC E NM_Engine 0x518 LJ NM_Gateway PowerTrain HA Signale Abbildung 35 Symbolic description of the message EngineData in CANdb Symbol Selection The Symbol Selection dialog shows all signals and messages defined in the dialog database You can choose one or multiple objects there to display or manipulate them If the database has been filled out completely you can search in the Symbol Selection dialog for e g a node a message or even a list of all signals in the database Vector Informatik GmbH Version 7 5 63 Applications EI User Manual Selection of messages and bus events Name Tx Node D MI Predefined events SE Comfort 3 E Messages 35 5 Nodes 48 NM_Tester D2 Massages 8 Nodes LU PowerTrain EJ ABSdata EJ DiagRequest_Motor EJ DisgResnonse_Mator E3 EngineD ata EI EngineD Aalt EE E EngineStatus E GearBoxinto EI NM_Engine EJ NM _ Gateway Power 5 5 Nodes lt Use the tree to select the object to be inserted Confirm your selection with OK OK I Cancel Jd Apply II Ho
133. gnal value When the variable sd_operation_mode_ specific is set this triggers a SDO download Shifting of the signal value to the relevant position in the object value and execution of the SDO download to the object 0x6040 in a target node to be indicated is fully accepted by the simulated node This information does not appear In the test flow Vector Informatik GmbH Version 7 5 159 CANopen User Manual 16 5 Control center ProCANopen General In the development analysis and testing of CANopen devices or CANopen systems ProCANopen is the control center for creating device models and test sequences Functional features This especially includes the following tasks Creating a project specific database see Databases Generating device specific configuration files DCF XDC files Creating executable simulation models see Generate CANopen simulations Generating test sequences see Device test VUVVY Creating a test framework in which application tests can be executed see Application test Furthermore you can easily and quickly configure CANopen devices and systems with ProCANopen For example PDO mapping is automatically calculated in the graphic linking of process data The configuration data are then transmitted to the ECUs in the network at the push of a button For error analysis functions are available to you that implement interactive access to the object dictionary of connected ECUs CANeds EDS files whi
134. gnal values with CAPL Panels or with the signal generator of Signal generator CANoe To send the changed values you have to use the J1939 Interaction Layer 14 3 8 Analyze GNSS data General With the option 1939 you can display and log GNSS data GNSS Global Navigation Satellite System very easily and clearly To do this the GNSS Monitor is available Vector Informatik GmbH Version 7 5 143 J1939 and NMEA 2000 User Manual GNSS Monitor With the GNSS Monitor you can display GNSS positions graphically and numerically The amount of the display data you can control with a message filter You can also log the received positions logging and synchronize the data with the trace and graphic window of CANoe This allows a direct assignment of the displayed data in all windows Note The sample configuration GNSS Monitor demonstrates the usage of the ens Mane 14 3 9 Simulate a GNSS receiver General GNSS Simulator GNSS node layer 144 GNSS Simulator Besides the possibility to analyze GNSS data you can simulate a GNSS receiver with the option J1939 In doing so you are supported with the GNSS Simulator and the GNSS node layer With the GNSS Simulator you can define a path with the help of a geometric figure model or a position file This path will be traced by the simulated GNSS receiver when the simulation is started The generated GNSS positions are transferred cyclically with configurable messages
135. he H button on the CANoe toolbar 4 13 3 Creating network node models Create network node You create the network node models in the simulation setup At the least the model models Insert two network nodes Configure the nodes Create the used CAPL programs for the first node must send a message when the switch is activated and therefore it may not be inserted in the measurement setup In this example you need two network nodes in the simulation setup The first node supplies the switch position and the second reacts to this by activating or deactivat ing a small lamp In the simulation setup click the bus lines to insert new network node models Click here to insert a new network node B Insert network node Insert test module Insert test module XML Insert generator block CAN Insert interactive generator block Figure 30 Inserting network nodes in the simulation setup You can access the configuration dialog for the two nodes again by pressing the right mouse button Here you enter the node name e g ECU 1 or ECU 2 and assign a file name to each of the two nodes e g ECU1 CAN or ECU2 CAN The node names are shown in the node icons the file names refer to CAPL programs which simulate the functionalities of the two nodes Double click on each node to open CAPL Browser for the particular CAPL program The first CAPL program belongs to a node at whose periphery there is a switch When the switch position chan
136. he commercial vehicle sector It comes from the Society of Automotive Engineers SAE and works on the physical layer with CAN high speed according to 1SO11898 2 Typical properties of J1939 are gt based on 29 bit CAN identifier gt Point to point and broadcast communication gt no limitation of the data length to 8 bytes With transport protocols a transmission of up to 1785 bytes is possible Network management for the management of node addresses and device names Definition of the parameter group PG as data bundle Definition of the parameter group number PGN as identification characteristic KR autonomous priority assignment regardless of the PGN although based on the CAN identifier NMEA 2000 is a network specification based on the principles of the SAE J1939 definition NMEA 2000 is used in the navigation area and defines navigation specific parameter groups The transport protocol FastPacket is supported too Note In this chapter only J1939 and NMEA 2000 specific extensions are described The standard functionality is explained in the previous chapters of this manual Reference You find more detailed information about J1939 NMEA 2000 in the online help in chapter Option CANoe J1939 14 2 Quick start 14 2 1 Create a J1939 database J1939 database 138 During development analysis and test of J1939 networks you should use a J1939 database Different extensions e g the support of J1939 tran
137. hernet An Ethernet channel and the trace window are pre configured 4 Select your Ethernet interface in the dialog Network Hardware Configuration that you can open via the menu Configuration Network Hardware 5 Start measurement and have a look at the trace window 17 4 2 Evaluate signals Evaluate signals If you want to evaluate signals with a signal protocol you have to set up the following steps D 1 Select the signal protocol of the Ethernet channel in the dialog Network TE Hardware Configuration There you have to set the DLL Dynamic Link Library that should evaluate the signals Note The DLL must be created and configured by yourself The Visual Studio 2005 project is delivered with the option and an example DLL is contained in the sample configuration EthernetSystemDemo 2 Add a database and set the bus type to Ethernet Alternatively use the Ethernet template in the CANdb Editor Vector Informatik GmbH Version 7 5 165 User Manual 3 Add messages and signals to this database 4 Add signals from the database to data and graphic window Use the message filter for evaluating your network signals too 17 4 3 Run Remote CAN analysis Remote CAN analysis To access a remote CAN network via a CAN W LAN gateway follow the next steps Configure and connect your CAN W LAN gateway to the CAN network that it is accessible from the computer on which CANoe IP is running Have a look at the man
138. i m SES J1939 Settings Mask 000 Hardware Sync Figure 15 Configuration of acceptance filter Display inthe Trace After anew measurement start you can now also see that the message transmitted window via channel 1 Transmit attribute Tx Transmit in the Trace window was received by the second controller Receive attribute Rx Receive in the Trace window BR Trace EJ 5 301950 2 64 Rx 4 d d 37 00 6I 5 301970 1 64 EngineData Tx 4 d d 37 00 Figure 16 Trace window 36 Version 7 5 Vector Informatik GmbH User Manual Unit 2 Insert a second generator block il Further data sources CANoe Tour Expand the configuration of the last task such that additionally a message with identifier 3FC hex is transmitted every 200 milliseconds The value of the first data byte of this message should cyclically assume values from 1 to 5 You can solve this task by inserting another generator block in the simulation setup Select 200 ms as the value for cyclic triggering The transmit list should appear as shown below Generator sendlist ID DLC DATA CAN Figure 17 Sendlist for generator block Info Do not forget to stop the measurement before you reconfigure the simulation setup During a running measurement it is not possible to make changes to the configuration of the data flow The menu items of the relevant shortcut menus appear in gray shading Besides the generator
139. iables in CAPL you use the event procedure type on envVar React to change in environment variable The CAPL functions getValue and putValue are used to read and write environment variables These language tools and symbolic access to the various variables defined in the database make it possible to create simple prototypical network node models Create a complete CANoe configuration with two network node models and associated periphery i e control panels This should only involve implementation of distributed functions After the user activates a switch the first node informs the second node of this action The second node then activates an indicator lamp in its periphery Vector Informatik GmbH Version 7 5 49 CANoe Tour Diagram Procedure User Manual evowitch evLight VO Interface KO Interface Application Application Bus Interface Bus Interface Mao bsSwitch A model for distributed systems can be created efficiently in CANoe in three steps gt Create the database with messages signals and environment variables gt Create the network node periphery i e the control panels gt Create the network node models in CAPL To prepare for the task you might for example create a new empty configuration by pressing the L button on the toolbar 4 13 1 Creating the database Usage of a database The first step involves creating a database which describes the following two signifi Create a d
140. ied to mixed systems simulated subsystem plus real components or real systems When an additional hardware device is used e g I O cab from the Vector company environment variables can be linked to physical inputs or outputs When the environment variable that symbolizes the input is changed it is no longer the simulated node that is stimulated rather the input switch of the real ECU via the hardware The output value of a real ECU is mapped to another environment variable whose value can then be compared Accordingly test sequences that have already been developed before the creation of the individual ECUs can later be applied to the real complete system 16 4 2 2 Run the signal based SDO transfer General Signal based SDO transfer can also be triggered via the simulated nodes The Controlword object Index 0x6040 of the device profile CiA402 Drives and motion control device profile will be used as an example to explain the method for creating a test that implements signal based access 158 Version 7 5 Vector Informatik GmbH User Manual Signals CANopen 15 1 10 9 8 7 6 4 3 2 1 0 ms r oms h fr oms eo qs ev so MSB LSB LEGEND ms manufacturer specific r reserved oms operation mode specific h halt fr fault reset eo enable operation qs quick stop ev enable voltage so switch on Figure 57 Object description Controlword Excerpt from CiA402 Besides ob
141. imulation setup Create a CAPL program with which you can count the number of mes sages of the type EngineData ID 64 hex and output the counted number of messages to the Write window in response toa key press gt First switch CANoe back to Online mode gt Inthe simulation setup the generator block which sends EngineData messages cyclically onto the bus should still be the data source First you must decide where you wish to insert your CAPL program in the data flow plan In principle any hot spot in the measurement setup or in the simulation setup is available to you However since this program is solely for analysis purposes and does not generate any messages itself but only counts them it is advisable to insert the program on the right side of the measurement setup perhaps before the Statis tics block In the hotspot s popup menu choose the function Insert CAPL node A function block with the program symbol P now appears at the selected point in the measurement setup You can also access the node s configuration dialog via the shortcut menu Configuration First select a program name e g COUNTER CAN Start the CAPL Browser either from the configuration dialog s Edit button or directly by double clicking the program block P in the measurement setup For your program you will first need an integer variable which counts the messages For example you could name it counter Go to the upper right Browser pane and ent
142. in online mode In offline mode in which messages are replayed from a file it is irrelevant Vector Informatik GmbH Version 7 5 65 Applications User Manual Info The number of channels is configuration specific It is saved in the configuration file and is restored when loading the configuration 5 6 1 Channels in online mode Working with real buses Consistency check Behavior at inconsistence In online mode with a real bus messages from the simulation setup are transmitted on one or more real buses and in the measurement setup they are received by one or more real buses The defined channels correspond to these real buses with their controllers In the channel definition dialog you can choose whether or not a consistency check should be performed after configuration The consistency check covers database assignments and the configuration of all function blocks with the exception of CAPL blocks The check monitors whether invalid channels are referenced If this is the case an inconsistency is reported These reports can be output to the Write window if desired With CAPL blocks a determination of whether all referenced channels are valid is not made until compilation A warning is output if any channels are invalid Therefore it is advisable to recompile all nodes after each new definition of channels If you use undefined channels CANoe behaves as follows in online mode gt Channel configuration does not cau
143. in a test environment Info Even if the test environment can be used in different configurations only one file exists in which the information is stored A change of the test environment in a configuration thus affects all other configurations A test module is inserted in test setup using the shortcut menu or in simulation setup using the shortcut menu of the simulated bus A test module in test setup is thus always assigned to all buses The execution of test modules defined in XML files can be controlled via a dialog that can be reached using the shortcut menu of the test module The execution of a test module is documented in the Write window e g at the beginning and end of the execution of a test case results of test cases and test modules In some cases this leads to a lot of information in the write window Version 7 5 Vector Informatik GmbH User Manual Applications 5 9 2 Test Service Library TSL Integration of test function Checks Stimuli Test design approaches Test targets User types With CANoe you can monitor cycle times of messages response times of ECUs to the reception of a message until the transmission of the response message or the validity of signal values in messages Quality statements for tested ECUs can be derived from the statistic results of the tests e g from the number of reported divergences in the period of time For these CANoe offers special functions checks tha
144. ine mode Vector Informatik GmbH Version 7 5 67 Applications Logging block Trigger conditions Analyze logging files 5 8 1 Triggers Trigger mode Get Single Trigger 68 User Manual Logging blocks are provided to you for this purpose The task of a logging block is to store data arriving at its input to a file You can configure the log file in the measurement setup by the file icon at the far right in the logging branch Each logging block is equipped with user friendly triggering to reduce the amount of data as much as possible even before acquisition This permits the formulation of a trigger condition and data are only saved near the time of the trigger During each measurement multiple triggers can be initiated for various events whereby the user can prescribe pre trigger and post trigger times The trigger condition is user programmable You can configure triggering in the measurement setup via the Logging function block CANoe has an offline mode for analyzing log files In contrast to online mode the data source here is a file e g a file created by logging in online mode All measurement and evaluation functions of online mode are also available to you in offline mode The trigger mode defines the general conditions for a logging Start point end point logging time period You can select from three trigger modes gt Single Trigger A specific event triggers the logging gt Toggle Trigger
145. ink SF Measurement setup Pass filter Data sink PF l Measurement setup Channel filter Data sink Measurement setup CAPL program Data source P Simulation setup Data sink Measurement setup EV Pass filter Data sink PE Measurement setup EV Stop filter SE Network node block Data source NK Simulation setup Version 7 5 Vector Informatik GmbH User Manual 7 2 Application Configuration during the measurement Transmit list and signal list Generate signals Trigger conditions The IG as a Gateway Vector Informatik GmbH Blocks and Filter Interactive Generator Block IG The purpose of the Interactive Generator block is to generate and transmit messages It appears in the data flow plan of the measurement setup as a small block with the label IG Just like traditional Generator blocks they are permeable to all data in the data flow diagram That is they do not filter the data flow like filter blocks or CAPL blocks do rather they act in a purely additive manner Messages can also be configured and interactively transmitted during a measurement Online This makes the IG especially well suited for influencing a measurement in a quick and improvised way In many cases with the IG you can achieve your goal without the use of traditional Generator blocks and without CAPL blocks The configuration dialog is subdivided into a transmit list upper half of window and a signal list lower half of
146. ion User Manual 1 1 About this user manual 1 1 1 Access helps and conventions To find information The user manual provides you the following access helps quickly gt atthe beginning of each chapter you will find a summary of its contents gt inthe header you see the current chapter and section gt in the footer you see to which program version the user manual replies gt atthe end of the user manual you will find an index Online Help Please refer to the online help for detailed information on all topics Conventions In the two following charts you will find the conventions used in the user manual regarding utilized spellings and symbols Style Utilization bold Blocks surface elements window and dialog names of the software Accentuation of warnings and advices OK Push buttons in brackets File Save Notation for menus and menu entries CANoe Legally protected proper names and side notes Source code File name and source code Hyperlink Hyperlinks and references lt STRG gt lt S gt Notation for shortcuts Utilization Here you can obtain supplemental information This symbol calls your attention to warnings Here you can find additional information Here is an example that has been prepared for you JAD PRY a Step by step instructions provide assistance at these points Instructions on editing files are found at these
147. isplayed in bus related format in the Trace window while you can observe the log s signal responses in the Graphics window Of course you can also insert filters or CAPL programs in the measurement setup to further reduce the data or introduce additional user defined analysis functions Version 7 5 Vector Informatik GmbH User Manual CANoe Tour 4 12 Creating a CAPL program What is CAPL gt Create a CAPL program Unit 7 Preparation Insert a CAPL node Configure the CAPL node Start the CAPL Browser Insert a variable CAPL is an event based programming language Each CAPL program consists of event procedures with which you can react to external events e g occurrence of specific messages on the CAN bus or activation of keys on the PC keyboard The CAPL Browser is described in detail in the online help With its sub windows Panes it allows you to create and edit CAPL programs quickly and easily In principle you can also use your own text editor to create CAPL programs CAPL programs are normal ASCII files with the default name extension CAN which must be compiled before the start of measurement using the compiler provided with the CANoe product Further Information You will find a complete description of the programming language together with numerous detailed examples in the online help In the next task you will create a simple CAPL program to count messages that are generated in CANoe s s
148. ject attributes the CANopen standard also defines the subdivision of the object value signal group into individual signals each with a specified length and start position in bits In generating the simulation a set of environment variables is created for each signal These variables can be used to initiate a SDO transfer in a simulated node For example the following environment variables are created for the signal oms Variable name Description sd_operation_mode_specific Environment variable that can be used to initiate a SDO download in a simulated node The signal value to be written is given beforehand in the variable val_operation_mode_ specific rd_operation_mode_specific Initiates a SDO upload in a simulated node The read signal value is located in the following variable after a completed SDO upload val operation mode specific val_operation_mode_specific Value of the signal In creating application tests it does not matter in which object or at which location a signal is represented Of greater interest is information about which signals exist and which devices receive or send them It is precisely these aspects that the user also needs to test In creating tests only the signal names and their values are of interest That is why the signal name is reflected in the name of the environment variable In the test flow the environment variable val_operation_mode_specificis initialized with just one si
149. k The only exception is the logging block which is not assigned a window but rather a file in which the data arriving at the block are logged Make sure that you begin this tour with a new configuration by selecting the menu item File New configuration The dialog for choosing a template will be opened In this dialog choose the CAN_83kBaudTemplate tcn template and close the dialog with OK The wizard is not needed for this tour Vector CANoe NMEA 2000 LIN MOST FlexRay J1 708 File View Start Mode Panel Configure Window Help New configuration get Wo ETIK g Load configuration Ctrl O KI Save configuration Chris EI Save configuration as New Test Environment Open Test Environment Configuration overview Configuration comment Import Files used Database usage ef Open CANdb Editor KI Open LIN Network Viewer Ef Open LIN Schedule Designer ef Open Panel Editor Exit Figure 6 Menu item File New configuration Vector Informatik GmbH Version 7 5 31 CANoe Tour User Manual 4 3 Setting up the bus Preparations To start up CANoe it is advisable to use a test setup with only two network nodes that are independent of existing CAN bus systems The two CAN controllers on the PC card can serve as the network nodes Connect PC card First connect the two D Sub 9 connectors of your CAN card to one another and CAN controller CANcabs For a high speed bus interface you need a
150. king and holding the left mouse button you can position the cursors If the mouse pointer is located above a cursor it changes its form to a horizontal double arrow If the mouse button is pressed at a point not located above the cur sors a rectangle is dragged open when the mouse is dragged The contents of the rectangle are then displayed magnified when the mouse button is released zoom function The cursors can only be positioned within the viewing area However the viewing area can be shifted by the arrow keys While the key is pressed a small square is visible which highlights the next closest measurement value The measurement time signal name and absolute value not the difference of this measurement point are shown in the upper legend In the legend with signal names the differences in signal values for all signals are shown for the time points that have been set The two time points and the time difference are also displayed The measurement cursor considers the option single signal or multisignal mode In single signal mode the small box only jumps to measurement points of the active signal in multisignal mode the box jumps to the next closest measurement point of all signals The Graphics window provides you with a number of functions for changing the win dow layout Some of the functions available to you via the popup menu include Independent of the preset mode the signals are scaled such that they are completely visible To do
151. l find a more detailed description of the CANoe extensions and the procedure for activating them without loading the CANopen configuration template For the option CANopen a silent installation is possible For this you have to create an ISS response file To create this file start the installation with the following command setup ex a r f1 lt Path of ISS directory setup iss gt The installation program is set to a recording mode all settings that are done during the installation are saved in the ISS file Finally you can pass this file to the installation program and start the silent installation with the following command setup ex a s f1 lt Path of ISS directory setup iss gt f 2 lt Path of logging directory setup log gt Version 7 5 Vector Informatik GmbH User Manual CANopen The meaning of the parameters is described here a administrative installation r recording mode saves all settings during the installation process s silent installation f1 path and name of the ISS response file freely selectable dk kk kA f2 path and name of the log file for installation results freely selectable 16 1 1 Trace window General CANopen specific protocol information is shown to you in the trace window in text format is Example If an SDO read access to the object 0x1017 is executed this is indicated in the Interpretation column by the entry 1017 00 Initiate Upload Rq Columns Th
152. lso provides you with the option of creating your own user control interfaces Panels and integrating them into the program External events are described with the help of symbols whose name and type are defined in the database Therefore symbols can also be interpreted as I O interfaces between network nodes and their peripheries i e as connection between the particular CAPL program and its input and output elements on the panels Control element You can interactively change the values of these symbols during a measurement by activating the controls on the panels The network node models react to changes in symbol values and then execute the appropriate actions e g sending out a message Display element CAPL programs can change the values of associated symbols when certain events occur This value change can then be visualized on the panel using display elements Window For measurements and simulation runs usually only a small subset of all panels is management needed at the same time Therefore CANoe s window management concept provides concept you with the option of grouping panels according to your work requirements During the measurement you can switch back and forth between these panel groups so that only one panel group is open at any particular time 5 8 Logging and evaluation of measurement files Logging file CANoe offers you the option of saving the CAN data traffic in a log file so that you can evaluate it later in offl
153. mal or hexadecimal representation In the symbolic view brackets separates the PID and the value of the parameter In the numeric view raw data is show inclusive MID and checksum In the symbolic representation transport protocol and proprietary messages a show interpreted Send node Send node Displays the send node which is defined in the database for the MID of the message Note With the Sym Num Button in the symbol bar the display format of the Data column can be changed The numeric view shows the raw data of a message including MID and checksum In the symbolic view the PIDs are highlighted and transport protocol request messages are interpreted 18 3 4 Data and graphic window Overview The data and graphic window shows the signals of J708 messages The signals can be selected for a database in the configuration dialog Open the context menu of the window select the Add signals and select the signals you want to add in the dialog Signal selection 18 3 5 Interactive Generator Block Overview The Interactive Generator can send J1587 messages A message can be inserted from the database with the button New A click on the arrow of the button New opens a menu With the menu item J1587 Message a new message can be defined The user must enter a PID in the column ID Note The interactive generator block can send only one parameter per message The interactive generator block contains a tab page J1587 with three J1587
154. manipulate FlexRay signals Using Using CAPL functions FRUpdateStatFrame F RSendDynFrame FRUpdatePDU Using the FlexRay Frame Panel or FlexRay PDU Panel Using panels How to implement specific behavior for a remaining bus simulation Vector Informatik GmbH Version 7 5 FlexRay page 130 page 130 page 131 page 131 page 132 page 133 page 133 129 FlexRay User Manual 13 1 Preliminary note Introduction FlexRay is a deterministic and optionally redundant communication system for inter connecting ECUs CANoe FlexRay DENoe FlexRay supports the FlexRay standard in the version 2 1 This getting started guide will help you create your first CANoe FlexRay configuration Through a series of how tos you will also be guided through the most commonly needed FlexRay features Further Information Please see the online help for further information about CANoe FlexRay features and topics Configuration examples for FlexRay demonstrating most of CANoe FlexRay s features can be found in the demo sub directory DEMO_FlexRay CN p 13 2 How to create a FlexRay database FlexRay database Although not required it is highly recommended that you use a FlexRay database when developing analyzing or testing FlexRay networks The FlexRay database is described as a FIBEX database file using the ASAM AE MCD2 standard for FIBEX files in version 1 1 5a 1 2 0 1 2 0a 2 0 0b 2 0 0d 2 0 1 3 0 0 or 3 1 0 FIBEX If you do not already hav
155. mode Mode Offline menu and configure the block in the measurement setup Configuration command in shortcut menu Alternatively you can replay a logging file to a real MOST ring by inserting and configuring a MOST replay block in the simulation setup View Simulation Setup Version 7 5 Vector Informatik GmbH User Manual MOST 12 7 Using CAPL CAPL programs Alternatively CAPL nodes can be used to send messages or packets As preparation a network node has to be inserted in the simulation setup and a CAPL file has to be assigned to this node 12 7 1 Program controlled sending is Example Sending a message on keyboard hit on key m channel destination address message specification instance id mostAmsOutput 1 0x100 NetBlock DeviceInfo Get 0x00 0x00 Info It would also be possible to achieve this exact behavior through suitable I configuration with the IG MOST The MOST input assistance helps you when entering strings for message definition To start this wizard press lt CTRL gt lt M gt in the CAPL Browser is Example Sending a MOST Package MDP on asynchronous channel on key pi ENG jolie LOLA It 2 3 4 BS amp F channel destination address length packet data OutpucMost ekti M0 ON ai pkedata i A Example Sending a MOST Ethernet Package MEP only available with MOST150 on key Tei EES ebe DE AE i 2 3 4 Sp Gp 7 ch
156. must therefore contain the following message procedure on message output this Pass all messages e Info It is permissible to reference the same CAPL programs in different program I blocks For example this may be of interest if the same data manipulations are to be made in two different data flow branches e g data reduction operations i Info The CAPL source file is not deleted when a CAPL node is removed from the measurement setup 104 Version 7 5 Vector Informatik GmbH User Manual Panel Designer 8 Panel Designer In this chapter you find the following information 8 1 Overview page 106 Vector Informatik GmbH Version 7 5 105 Panel Designer User Manual 8 1 Overview Create graphic panels D Assign databases User interface Screenshot Working area 106 The Panel Designer is used to create graphic panels With these panels the user can change the values of discrete and continuous environment variables interactively during the simulation Info In this chapter signals environment variables and system variables are called symbols Start the Panel Designer with the d button on the CANoe toolbar with the shortcut menu item Edit of an opened panel or after selecting one or more panels with the Edit button of the panel configuration dialog This will ensure that the databases of your CANoe configuration will be associated automatically As a default setting
157. n an individual computer CANoe is divided into 2 components for the uncoupling of the real time operation gt The real time part executes the simulation of the model that is especially the CAPL programs gt All bus hardware is connected here gt A small runtime kernel runs on the real time computer which manages entirely without a graphic interface gt The real time part is executed on an individual computer with the Windows operating system Support for other operating systems is under construction gt The evaluation and display of the data stream generated by the simulation or read by the bus hardware occurs on this computer gt The evaluation part is typically executed on the usual workstation computer gt The application of CANoe then occurs from the evaluation part in as much the same manner as possible as in standard operation with one computer These two computers are connected with one another via TCP IP typically via Ethernet The TCP IP network connection is uncoupled on both sides by a data buffer so that the real time part is not dependent on the quality of the connection All data for the configuration of the simulation or measurement is transmitted automatically to the real time computer at the start During measurement all evaluation and logging data is transmitted extremely promptly to the evaluating computer Keyboard panel and any other user interactions are also transmitted directly to th
158. n setup you can read out and write memory areas by using specified diagnostic messages Besides the direct access to the memory area you can also use an object oriented access manual or cyclic You can read data blocks from files or write these block to files Furthermore you can execute a Boot Load process With the J1939 On Board Diagnostic Inspection and Maintenance Monitor in the measurement setup you can configure diagnostic messages of type DM7 and send them to ECUs in the network Interpreted as test commands one ore more tests aare executed and the test results are sent back with diagnostic messages of type DM8 or DM30 14 3 3 Simulate J1939 networks Simulation CAPL J1939 Interaction Layer gt should use the J1939 node layer together with the J1939 CAPL Generator With CANoe you can simulate J193 network nodes within the simulation setup You can program simple nodes directly in CAPL which is extended for J1939 There is a variable type pg available for parameter groups which you can use with a parameter group defined in a database too This allows a symbolic signal access In the handler function on pg you can receive parameter groups and evaluate them With the J1939 Interaction Layer IL you can simulate the sending model of a network node using a node definition from the database The J1939 IL assumes the sending of the Tx parameter groups the network management and the handling of transport protocols An imp
159. n the DLC box as the data length entry Finally set the values of the data bytes in the four data boxes that follow by entering the values D8 D6 37 and 0 there Generator sendlist ID DLC DATA CAN Figure 11 Transmit list of Generator block Exit the transmit list with OK to accept the values in the configuration Open the generator block s Generator Block Trigger Configuration dialog via the shortcut menu Configuration of triggering In this dialog you can configure the triggering of the tranmit action Activate the With period option and enter the value 100 in the input box to the right of this Generator Block Trigger Configuration C On key 2 With period 100 ms Figure 12 Triggering of Generator block 5 These values are assumed into the configuration with OK Version 7 5 Vector Informatik GmbH User Manual Associate a database a Save your configuration Start the measurement Display in the Trace window CANoe Tour Furthermore CANoe requires that you associate a database to the configuration before the start of measurement Therefore you should initially assign the database POWERTRAIN DBC from the demo directory DEMO_CAN_CN CANSYSTEMDEMO CANDB to your active CANoe configuration The concrete benefits of this database will be made clear in the sections that follow 1 You can use the simulation setup to edit databases add assign delete etc In
160. n two different modes gt Automatically fitted to the window size gt Fixed magnification with scroll bars if necessary All evaluation blocks on the right side of the measurement setup are displayed above one another The standard evaluation blocks Statistics and Bus Statistics always appear exactly once each Other evaluation blocks Trace Data Graphics and Logging appear at least once each To insert new evaluation blocks in the measurement setup click the branch with the right mouse button and select the new window from the shortcut menu This places the new block after the last block of the same type It gets the standard name with a serial number The first Trace window is called Trace the second gets the name Trace 2 etc You can also delete the block from the measurement setup via its shortcut menu provided that there is more than one evaluation block of that basic type in the measurement setup When the block is deleted the entire branch is always deleted including all of the insertable evaluation blocks there To open the window assigned to the evaluation block double click the block with the left mouse button or choose Show Window in the block s shortcut menu Multiple windows of the same type are shown cascaded in the standard layout Version 7 5 Vector Informatik GmbH User Manual Windows 6 5 Trace window Display of messages All messages arriving at the input of the Trace block are displayed as t
161. n your FIBEX file e g Demo _FlexRay_CN FlexRaySystemDemo FIBEX PowerTrain xml select the appropriate cluster if necessary from within the file and press Continue 4 Select those nodes to be simulated from the Available Nodes list and assign them to the Assigned Nodes list and press Continue 5 Select one of the FlexRay channels from the Available Channels list and assign it to the Assigned Channels list and press Continue 6 To complete your configuration press Finish The configuration wizard has now automatically added the FlexRay nodes to your FlexRay network and configured the communication according to your FIBEX file 13 4 How to simulate and analyze a FlexRay network Start the Using the configuration created in chapter 13 3 you can now press the start button measurement in the main toolbar to observe the FlexRay traffic in the Trace window main menu View Trace when using simulated bus hardware see main toolbar combo box Working with a real If you want to use a real bus then four prerequisites must be fulfilled bus Step 1 Your FlexRay bus can do a startup This is assured when already two real startup nodes are present and are working One or both of these startup nodes can be simulated by CANoe depending on your current bus interface hardware Therefore CANoe must be configured in a way that it sends one or two startup frames Info If CANoe does not send any startup frame then you need two
162. nd real controllers you can operate CANoe in pure simulation mode Switch the operating mode in the simulation dialog Menu item Configuration Options from Real Bus to Simulated Bus Bus access sending and receiving messages is then simulated Version 7 5 Vector Informatik GmbH User Manual Applications Working in simulation In simulation mode an animation factor can be specified The simulated mode Slave mode D measurement then appears slowed by this factor Accordingly the simulation is accelerated for simulation factors between zero and one For example if you specify the value 0 1 the measurement would be accelerated by a factor of 10 You can resume the simulation for a defined period of time or stop a running simulation at any point in time Slave mode is a special simulation mode in which the time sequencing of the measurement time base is controlled by an external program A typical usage would be to control the measurement by a master program which accesses the CANoe simulation object via the COM Info If you are operating CANoe in simulation mode i e without a physical bus the program emulates the functionality of the CAN chip on the interface card In this mode the bus baud rate is the only system parameter you would configure in the card s configuration dialog 5 2 3 Message attributes Attribute Rx Attribute Tx Messages that were not transmitted by CANoe s CAN PC card receive messages
163. nd recompile your CAPL program and start the measurement again With keys lt gt and lt gt you should be able to increment and decrement the signal s value 11 8 3 Using the Interactive Generator Block 1 Create a LIN configuration by following the steps described in chapter 11 3 2 Inthe simulation setup View Simulation Setup insert an Interactive Generator using the shortcut menu Open the Interactive Generator e g per double click 4 To update the signals of a LIN frame simple press New and insert a LIN frame e g DWFL_WinPos 5 During the measurement you can now interactive manipulate this frame s signal values e g FWL_WinPos using edit boxes in the bottom half of the dialog 6 Alternatively you can connect the signal to a Waveform generator using the button Define in the column Waveform generation 11 8 4 Using panels 122 You can also create your own panels using the Panel Designer utility File Open Panel Designer which can also be started from the main toolbar e Here is an example Drag and Drop the Trackbar from the Toolbox to an opened panel Select a LIN signal to be manipulated via Symbol in the Properties window 1 2 3 Now save your panel File Save Panel 4 With the button of the toolbar you can add the created panel to your CANoe configuration After that the panel will be displayed on the currently active desktop After measurement start it is now possible to
164. ndows are described in detail in the sections below Only the logging block is not assigned its own window Instead a log file is assigned to it for the purpose of logging bus data traffic and then studying it offline Located between the function blocks are insertion points hot spots at which blocks can be inserted for to manipulate the data flow Filter Replay Generator block CAPL program block with user definable functions Before and after the block inserted in this manner new hotspots appear so that additional blocks can be inserted The data flow can also be broken at the hotspots Further Information You will find a description of all insertable function blocks in the online help Figure 38 shows a possible CANoe configuration in online mode in which multiple network nodes are provided in the simulation setup A filter is inserted in the trace branch graphics branch and in the data branch so that only certain messages will be displayed The statistics branch and the bus statistics branch each receive all data while the logging branch is broken F Measurement Setup Figure 38 CANoe measurement setup Vector Informatik GmbH Version 7 5 85 Windows Configure CANoe Insert blocks and filter Deactivate blocks and filter Size of the Measurement Setup window Arrangement of evaluation blocks Insert evaluation blocks Delete evaluation blocks Open evaluation block s window 86
165. ng Recording Once you have started to record the macro every action you execute on the panels with the mouse and every request sent via the diagnostic consoles is recorded Info Macros are being used to influence simulations not analyses Therefore macros can only be recorded and executed in online mode 5 14 Step Sequencer Graphical Editor With the Step Sequencer you can easily create simple sequences for network stimulation and application control graphically You can structure the steps e g gt set and verify signal values and system variables gt send messages gt wait gt start replay files and signal generators in loops and conditional blocks If Else If Else End If Visualized Sequence Each sequence is displayed in a separate window and can be edited even during a running measurement After starting the sequence a cursor shows the progress Interaction You may set wait points where the sequence will be paused The network responses can be reported automatically by using commands for textual output to the Write window or in a file 5 15 COM Server Access via different For the communication with other applications CANoe offers the COM server It helps applications the program to be gated or controlled by other applications Besides accessing configuration specific data it is also possible to control the measurement You can also call CAPL functions read signal values and both read an
166. ng on the split bar With the buttons in the upper part of the bar you can switch between different views Version 7 5 Vector Informatik GmbH User Manual Windows 6 8 Write window Functionality View modes EI The Write window has two functions in CANoe gt First important system messages on the progress of the measurement are output here e g start and stop times of the measurement preset baudrate triggering of the logging function statistics report after the conclusion of measurement gt Secondly all messages which you as the user place in CAPL programs with the function write are output here You can copy the contents of the Write window to the clipboard Write window messages serve as both a supplemental report for your measurements and should problems occur as a basis for error analysis by our customer service The Write window offers the following different views All shows all messages System CAPL Inspect Call stack d EE Further Information You can find a description of the most important CANoe system messages that are output to the Write window in the online help 6 9 Data window Display of signal values Default settings Data windows are used to display signal values e g engine speed for automotive CAN buses When a symbolic database is used the values of signals specified in the database are even displayed directly in physical units For example the engine spee
167. ng on a block opens its associated window gt Each window block existing in the measurement setup may be opened on any existing desktop If the user is utilizing n desktops a window in the measurement setup may be opened n times Each of these n windows of a block has an customized position on the n desktops Both of these concepts are described by the same term window and are referred to by that same term below The windows opened on different desktops may be placed inside or outside of the program window or they may be docked in the program window The integration of panels into CANoe s window management concept allows panels to be positioned in a desktop based manner both inside and outside of CANoe This allows you to design a desktop and the spatial layout of windows panels in an expansive framework 6 2 Window management Integrated windows MDI windows Docked windows 82 Also integrated in the window management conception are diagnostic windows panels and modal plug in windows Modal plug in windows are only available for the measurement setup The View menu is expanded by several options if more than one window of the type Trace Graphic exists There are different types of windows and panels available that assign a specific behavior window panel The following window types exist gt Panels can be of the MDI or standard window type gt Windows Panels of the MDI type are located within the program
168. nsole Diagnostics in CANape and CANdito 74 necessary for development test and application of ECUs with via diagnostics Based on the diagnostic description files CDD of CANdela Studio the Diagnostics console see chapter 6 12 part of the Diagnostic Feature Set provides interactive access to all diagnostic services Diagnostic requests can be selected parametrized and displayed with their according response The Fault Memory window see chapter 6 13 provides quick and easy access to the fault memory of an ECU Apart from CANoe the Diagnostic Features Set is also included in the Vector products CANape and CANdito Thereby the complete development process is supported identically Version 7 5 Vector Informatik GmbH User Manual Applications 5 11 CANoe Realtime Real time simulation Advantage Components The real time part The evaluation part with the graphic interface Connection Transmission CANoe offers the opportunity to execute the real time relevant simulation parts on an individual computer that is separated from the graphic interface Thus on the one hand the total performance of the system can be expanded more easily if necessary on the other hand influences above all of the graphic system on latency times and timer precisions are prevented The configuration of the simulation and the evaluation then occur on the usual workstation computer for example while the simulation runs o
169. nter output this The EngineData value is displayed in the Statistics window To display all other measurement values in the Statistics window insert the following procedure on message output taS Info Without this procedure the CAPL program would have the effect of a filter As a last step the output to the Write window must still be implemented Finally the program should not just count messages but also keep track of how many messages have been counted The output to the Write window should occur when the lt a gt key is pressed Therefore you must define another event procedure for the event Press key lt a gt In the Browser tree you select the type Keyboard This causes the previously defined on message procedure to disappear since it belongs to a different event type Of course it still remains a component of the CAPL program and will appear again as soon as you select the CAN Messages event type again Now insert a Keyboard event in the CAPL program from the shortcut menu item New A new procedure template will appear in the Procedures Text Editor which you fill out as follows Version 7 5 Vector Informatik GmbH User Manual Save and compile the program Display in the Write window CANoe Tour write Sd EngineData messages counted counter The format entry d refers to the integer variable counter which is entered after the comma For the most part this format string con
170. o uk Version 7 5 User Manual Vector Informatik GmbH User Manual Vector Informatik India Private Limited Vector Japan Co Ltd Vector Korea IT Inc VecScan AB Vector Informatik India Private Limited 4 1 1 1 Sutar Icon Sus Road Pashan Pune 411021 India Phone 91 9673 336575 Fax mailto info in vector com http Awww vector india com Vector Japan Co Ltd Seafort Square Center Bld 18F 2 3 12 Higashi shinagawa Shinagawa ku 140 0002 Tokyo Japan Phone 81 3 5769 7800 Fax 81 3 5769 6975 mailto info jp vector com http Awww vector japan co jp Vector Korea IT Inc 1406 Mario Tower Guro dong Guro gu 222 12 Seoul 152 848 Republic of Korea Phone 82 2 8070 600 Fax 82 2 8070 601 mailto info kr vector com http Awww vector korea com VecScan AB Theres Svenssons Gata 9 417 55 G teborg Sweden Phone 46 31 7647600 Fax 46 31 7647619 mailto info se vector com http www vecscan com Vector Informatik GmbH Version 7 5 Appendix B Address table 179 User Manual Index 22 Index 3 Check box ne Mee er 25 LE EE 130 3 phase model 22 COM Serv enge ee deed 76 A Comment BOX a enean aiaiai Beanies 25 Address table snnnnennseeeeennnne ns eeerennrensneesrrene 178 Communication relatonships 139 une II 65 CONSISTENCY iriiri iiri iid 55 65 Li E EE 140 143 Conventions Fc cee seats eos desde cane deed ee aAA 8 B Converting log files 0 ee eeeetee
171. of the transmission The time between the message with Tx attribute and TxRq attribute is essentially the transmission time of a message i e the time that the CAN controller needs to place a message completely on the bus It is a function of baud rate and message length The transmission time also grows as a result of lost arbitration events which can be observed more for low priority messages at high bus loads Since the very small latency time of the card driver interrupt must be added to the transmission time the following general formula applies tTx tTxRq Transmission time Latency time 5 2 4 System verification Rules of the system verification Rule 1 A is Rule 2 A is Rule 3 A is 60 You can start a system verification by selecting the System verification command in the shortcut menu right mouse button of the system view The System verification checks your simulation setup according to the following rules All network nodes that are defined in a database must be included in the assigned bus Example The database ibus defines the network node console and is assigned to the bus body in the simulation setup To carry out this rule there must be a CAPL block included in the simulation setup this CAPL block has to be assigned to the database node console All gateways that are defined in the databases must be included as gateways within the simulation setup Example The databases Comfort
172. oftware and hardware are installed correctly Info The hardware drivers on the CANoe installation CD may be newer than the ones shipped with the hardware Please use always the latest drivers Note Please note that the CAN hardware you intend to use must be enabled for use with CANoe Please see the appendix for more information on enabling 2 2 System requirements Installation sequence Please carry out the installation in the following order Processor Memory RAM Hard disk space Monitor resolution Operating system Other il 1 Install the hardware as described in the hardware manual Once the hardware is installed please carry out a driver update For more information on this please see the appendix 2 Install the software The following system configuration is recommended for use with CANoe Pentium 4 2 6 GHz minimum Pentium III 1 GHz 1 GB minimum 512 MB 200 MByte 600 MByte Depending on options used and operating system components required 1280x1024 pixels minimum 1024x768 pixels Windows VISTA Windows XP at least with Service Pack 2 Windows 2000 with Service Pack 4 You will need D COM version 1 2 or later to support the COM interface Note Administrator rights are needed to install CANoe 2 3 Installation requirements a 12 Note Please note that you cannot install CANoe Version 3 0 or later over an older CANoe version CANoe Version 2 5 or older You can howev
173. ogram with the exception of the real time library If you insert blocks in the real time library CANoe s simulation setup you should be make sure that they do not demand too much computing time so that system reaction times are not lengthened Moreover in CAPL programs you may only access files from here using special precautionary measures Info If you overload Windows severely by other programs during a measurement there may be a delay in reading data out of the ring buffer Nevertheless the time stamp for the events which for example is displayed in the trace window remains accurate even in this case Vector Informatik GmbH Version 7 5 27 Basics User Manual 3 5 Particularities of the demo version Demo driver In the demo version of CANoe a demo driver which does not require a PC card is connected to the PC instead of a regular PC card driver However the functions of this driver are very limited Primarily it ensures that all messages which are transmitted are returned as received messages with a accurate time stamps Settings The bus parameter options and message setup which are selected by clicking on the PC card icon in the simulation setup are irrelevant for the demo version and can be disregarded Limitations With the demo version of CANoe you can insert up to a maximum of three network node models in the simulation setup If you load configurations with more than three simulated network node
174. on Due to the simple file format ASCII you can easily modify position data and add new positions If you play back protocol files with the GNSS Simulator or the GNSS node layer you can choose between play back with a specified speed or with a user defined speed Reference More detailed information to these both methods you can find in the Kai online help Vector Informatik GmbH Version 7 5 145 User Manual 1SO11783 15 15011783 In this chapter you find the following information 15 1 Introduction page 148 15 2 Quick start page 148 15 3 Use cases page 148 Simulate Virtual Terminals Access process data Simulate a process data dictionary Vector Informatik GmbH Version 7 5 147 1ISO11783 User Manual 15 1 Introduction Introduction a m IS011783 is a network specification based on the principles of the SAE J1939 definition 15011783 is used in the agricultural area and defines the communication between Implements and tractor Several services as Virtual Terminal Task Controller and File Server are specified Note In this chapter only the 15011783 specific extensions are described The standard functionality is explained in the previous chapters of this manual Reference In chapter Option CANoe ISO11783 of the online help you can find more detailed information about basic principles of ISO11783 and its functionalities 15 2 Quick start Lil Samples Note A brief instruction how to
175. on 7 5 Vector Informatik GmbH User Manual MOST Info about MOST150 and MOST50 Enter the IP address of the Optolyzer on the Interface page If it is already connected you can determine its IP address at the push of a button In addition select the network adapter to which the Optolyzer is connected 5 Configure the hardware settings such as hardware mode node addresses or additional services for each channel Add a function catalog as a database in the simulation setup Save your configuration in a directory of your choice As a result you can reload all your settings at any time 12 4 How to analyze a MOST network Trace window p MOST analysis windows Using the configuration created in chapter 12 3 you can now push the start button in the main toolbar to monitor the MOST data traffic in the Trace window View Trace menu The Trace window displays not only the valid MOST messages but all types of MOST bus events and errors Further Information A complete list of all MOST events and errors can be found in the CAPL online help for MOST If the Trace window is paused you can expand a MOST message to see how the parameters of the message are defined in the function catalog Using the configuration dialog you can add additional MOST specific columns to the Trace window For MOST there is a set of analysis windows that provide a quick overview of the structure and status of the connected MOST system without
176. on of the overall system 22 User Manual Introduction to CANoe CANoe is a universal development test and analysis environment for CAN bus systems which is made available to all project participants over the entire development process The system producer is supported in functional distribution functional checking and integration of the overall system The supplier obtains an ideal test environment by simulation of the remainder of the bus and environment The development process is based on a phase model which differentiates between three development stages First the party responsible for design distributes the overall functionality of the system among different network nodes and refines the design to the level of the network node This includes defining messages and selecting the baud rate of the bus Finally the bus behavior of individual network nodes must be specified e g in the form of cycle times or more complex protocols Then this information can be evaluated first by the simulation tool to provide initial estimates of bus load and the latency times to be expected at the prescribed baud rate Afterwards this specification can also be utilized for testing in subsequent phases For a more accurate study a dynamic functional model of the overall system is created This involves specifying the behavior of the network nodes with regard to input and output variables and the messages to be received and transmitted Especially u
177. onfiguration of it influences l 4 how packets are directed to your computer So it is possible that you don t see all packets in the trace window but only these which are send directly to your computer _ Data and graphic You can analyze signals by using a configured signal protocol and a database dbc window The signals are shown in the data and the graphic window of CANoe IP Panels Via panels and environment variables you can also analyze your network if you don t have a signal protocol DLL or don t want to use one 17 3 2 Filter Ethernet data IP Filter With the IP Filter in the measurement setup you can filter Ethernet packets by using addresses and protocols as filter conditions If you have more complex use cases you can use conditions with protocol fields You can use the IP filter as a pass through filter and block filter 17 3 3 Stimulate Ethernet packets General You can build Ethernet packets with the included Ethernet Packet Builder of CANoe IP and send them to your network You can build a list with different Ethernet packets which should be send and configure each of them with its own data In CANoe IP you also have the possibility to send Ethernet packets from CAPL 17 3 4 Simulate Ethernet nodes General With the option IP you can simulate Ethernet nodes by sending and receiving Ethernet packets with CAPL This allows you to realize Ethernet to Ethernet Ethernet to CAN and CAN to Ethernet gateways too Packet API You
178. ortant feature of the J1939 IL is signal oriented access so you can set the signal values directly Note The J1939 IL can manage only one address per simulated node For simulations in which one node should use multiple addresses virtual ECUs you To use the functionality of the J1939 IL you have to activate using node layers in the configuration To do this create a node attribute NodeLayerModules of type String in the database Set the value to J1939_IL dll Additionally you have to create or set the node attribute NmStationAddress in the database Set the value of this attribute to the address which is used by the J1939 IL as send address Now you can use the extended functionality of the J1939 Interaction Layer more information about nodes and attributes in databases The sample configuration J1939SystemDemo explains the use of the Interaction Layer Vector Informatik GmbH Version 7 5 141 J1939 and NMEA 2000 User Manual J1939 CAPL Generator The J1939 CAPL Generator simplifies the design of a simulation You can set the communication relationships between the nodes with the CANdb Editor and after that you can generate the corresponding CAPL source codes For this the transmit messages and receive messages are evaluated and the handler functions are generated The generated source code uses the J1939 node layer To use the functionality of the J1939 node layer you have to activate using node laye
179. owing trigger conditions gt Start Triggering occurs at the start of measurement gt Stopp Triggering occurs at the measurement stop gt CAPL Triggering is by a CAPL program gt Benutzerdefiniert The occurrence of a user defined condition initiates triggering Vector Informatik GmbH Version 7 5 69 Applications User Manual 5 8 2 Data analysis Analyze recorded data Functions for flow control Start Animate Break Step To study recorded log files switch CANoe to offline mode The data source in offline mode is a file e g generated by logging in online mode Analogous to online mode all measurement and evaluation windows are also avail able to you in offline mode The only option omitted is the possibility of sending data over the bus Furthermore offline mode provides a powerful search and break function with which you can intentionally stop the replay of the log file In the logging block which is also available in offline mode data can be resaved to a new file whereby targeted data reduction can be achieved by means of insertable data manipulation blocks The following functions are available to you in offline mode to track the recorded bus proceedings on the screen in slow motion The individual messages of the data source are read out and are sent as quickly as possible through the components of the measurement setup In offline mode the measurement can be resumed after a break Reset mu
180. p Figure 36 Symbol Selection dialog Further Information Please refer to online help for further instructions on working with databases 5 5 1 Use of multiple databases Administration of large systems Assignment of databases Ambiguities 64 With large systems it may be sensible to distribute the descriptions of messages and signals as well as environment variables to several partial databases Also when operating CANoe with two buses it makes sense to describe each system by its own database CANoe supports the simultaneous use of multiple databases The assignment of databases must be made in the simulation setup Afterwards you can use symbolic names in all function blocks and in CAPL for the messages signals and environment variables of all databases To do this enter the symbolic name in the appropriate input box You will find a list of all symbolic names in the Symbol Selection dialogs The list is opened by activating the small buttons located next to the appropriate input boxes Then you can select the desired symbolic name from this list If you are using more than one database the messages in the databases following the first database are qualified with the database name However you only need these qualified names to resolve ambiguities As long as the symbolic names are unique in all databases you can forego qualification of symbolic names in all function blocks and when editing CAPL programs Version 7
181. panel Properties window The panel and controls are configured using the Properties window The window displays all settings of a selected control or panel in table format A brief description of the active setting appears at the bottom of the Properties window You can select a number of elements at once to modify their common settings simultaneously in the Properties window Cross reference You can find detailed information of the Panel Designer and the p die f Panel Editor in the online help Vector Informatik GmbH Version 7 5 107 User Manual CAPL 9 CAPL In this chapter you find the following information 9 1 CAPL basics page 110 9 2 CAPL Browser page 112 Vector Informatik GmbH Version 7 5 109 CAPL User Manual 9 1 CARL basics Programming individual applications Procedure Call analysis and test functions Emulate the system environment Program a gateway 110 The universal applicability of CANoe results in large measure from its user programmability The Communication Access Programming Language CAPL is a C like programming language which allows you to program CANoe for individual applications In the development of network nodes for example the problem arises that the remaining bus nodes are not yet available for tests To emulate the system environment the data traffic of all remaining stations can be simulated with the help of CAPL You can also write programs for pro
182. points DM This symbol warns you not to edit the specified file Version 7 5 Vector Informatik GmbH User Manual Introduction 1 1 2 Certification Certified Quality Vector Informatik GmbH has ISO 9001 2008 certification Management System The ISO standard is a globally recognized quality standard 1 1 3 Warranty Restriction of We reserve the right to change the contents of the documentation and the software warranty without notice Vector Informatik GmbH assumes no liability for correct contents or damages which are resulted from the usage of the user manual We are grateful for references to mistakes or for suggestions for improvement to be able to offer you even more efficient products in the future 1 1 4 Support You need support You can get through to our hotline at the phone number 49 711 80670 200 or you send a problem report to the CANoe Support 1 1 5 Registered trademarks Registered All trademarks mentioned in this user manual and if necessary third party registered trademarks are absolutely subject to the conditions of each valid label right and the rights of particular registered proprietor All trademarks trade names or company names are or can be trademarks or registered trademarks of their particular proprietors All rights which are not expressly allowed are reserved If an explicit label of trademarks which are used in this user manual fails should not mean that a name is free of third party
183. ponse Motor EngneData EngForce EngPower EngSpeed EngT emp IdleRunning PetiolLevel Average cycle Average cyce of the message Curent cycle Current cycle of the message Maximum cycle Maximum cycle of the message Mrumum cycle Minimum cycle of the message Total count Total count of the message EJ EngneDatalEEE E EngineStatus GeaBaoxlnfo NM_Engne NM_Gateway_Power es Ay Ay Ay Ay Ay Ay A 4 4 D 4 Figure 23 Selecting Signals with the Symbol Selection dialog 3 Close the dialog wikt OK Now the signal names are entered in the window After the measurement start the generator block begins to cyclically send the message EngineData with data bytes D8 D6 37 and 0 onto the bus According to the message description in the database the data block in the measurement setup now interprets these byte values as engine speed temperature and idle switch and displays the appropriate signal values in the Data window in physical units Raw Value EnoForce EngPower EnoSpeed EngTemp IdleRunning Figure 24 Data window Version 7 5 Vector Informatik GmbH User Manual CANoe Tour With the help of the conversion formula in the database engine speed is shown in RPM while temperature is shown in degrees Celsius The values of all three signals remain constant over time since the message is constantly transmitted with the sa me data bytes D8 D6 37 and 0 4 8 Analysis of signal responses in
184. rd is initialized If this cannot be done an error message is output and the measurement is terminated Configuration during During the measurement the user can configure the Trace block Data block and the measurement scaling of the Statistics window and Data window However the menu items in the shortcut menus of the remaining blocks are masked out for the duration of a measurement You cannot parameterize these blocks until after the measurement run has ended All keyboard inputs during the measurement are passed through directly to the function blocks CAPL programs generator block etc They are shown in the relevant status window on the toolbar The only available program controls are the lt Esc gt key terminate measurement and all of the key combinations with the lt Alt gt key Window control under Windows How to stopa You can stop the measurement measurement gt by pressing the lt ESC gt key gt selecting the main menu item Start Stop gt activating the button on the toolbar or gt by using internal events e g CAPL or trigger Info During high system loading the stopping process may take a certain amount of time since the system s message buffer must be emptied A repeated stop command double click causes the buffered data to be ignored and the measurement is terminated immediately even under high system loading 5 4 Working with configurations Save settings All options that you configure configura
185. rer LIN With the LDF Explorer you can also view and analyze your LDFs by double clicking an LDF either in the Windows Explorer or in CANoe LIN via File Open LDF Explorer or the toolbar icon Si e g Demo LIN CN LINSystemDemo LINdb Further Information Example LDFs can be found in the LIN demo subdirectories 11 3 How to create a CANoe LIN configuration 118 To create a LIN configuration using a LDF simply follow these steps 1 2 3 Create a new configuration using File New Configuration Select the LIN template and activate the checkbox Use Wizard Now press the button Database open your your LDF e g Demo_LIN_CN LINSystemDemo LINdb door 1df and press Continue Select those nodes to be simulated from the Available Nodes list and assign them to the Assigned Nodes list and press Continue Select one of the LIN channels from the Available Channels list and assign it to the Assigned Channels list and press Continue To complete your configuration press Finish Version 7 5 Vector Informatik GmbH User Manual LIN The configuration wizard has now automatically added the Master and Slave nodes to your LIN network and configured the communication according to your LDF 11 4 How to simulate and analyze a LIN network Start the measurement mp Display in the Trace window LIN Statistics Using the configuration created in chapter 11 3 you can now press th
186. responds to your operating system is in the Drivers Optolyzer OptoControl folder on the CD CANoe was developed and tested using the Opto Control version provided on the CD We therefore urgently recommend that you install these driver versions 2 Inthe Windows Control Panel set the COM port settings for all COM ports that are to be used with an Optolyzer Box to 115200 8 n 1 Hardware Install the MOST option in a folder of your choosing 4 Activate General information Settings Synchronize Hardware in the Vector driver configuration dialog 5 Choose the speedgrade MOST25 and the HW type Optolyzer for the MOST channel in the CANoe hardware configuration dialog Configuration Network Hardware 6 Enter the Optolyzer ActiveX control license code on the Interface page in the hardware configuration dialog Vector Informatik GmbH Version 7 5 15 Installation Optolyzer Professional 2 7 2 MOST150 Installation User Manual If you install Optolyzer Professional you can enter the ActiveX control license number via this tool It is then saved in the Windows registry You can save multiple license numbers in this way They are all checked when a connection to the Optolyzer Box is created Use with Optolyzer G2 31500 1 Install the Optolyzer G2 31500 or Optolyzer G2 31500 Production corresponding to the Optolyzer user manual Remarks Note that a license for the Optolyzer Integration Package OIP of Vector on a
187. rights gt Outlook Windows Windows XP Windows 2000 and Windows NT are trademarks of the Microsoft Corporation gt CANoe CANalyzer CANdb Editor J1939 CAPL Generator ProCANopen and CANeds are trademarks of Vector Informatik GmbH gt CANopen and CiA are trademarks of the CAN in Automation e V gt NMEA and NMEA 2000 are trademarks of the National Marine Electronics Association gt eclipse is subject to the Copyright of the Eclipse contributors and others Vector Informatik GmbH Version 7 5 9 User Manual 2 This chapter contains the following information 2 1 2 2 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 10 2 11 Vector Informatik GmbH Installation General System requirements Installation requirements Installation procedure Notes on activating a software based license Vector USB dongle MOST MOST25 Use with Optolyzer Box MOST150 Use with Optolyzer G2 31500 MOST50 Use with Optolyzer G2 3050e Further CANoe options Switching language versions Running the test Troubleshooting Software specific error messages Hardware specific error messages Version 7 5 Installation page 12 page 12 page 12 page 13 page 13 page 14 page 15 page 17 page 17 page 18 page 18 11 Installation 2 1 General Overview il il User Manual This manual describes the installation of the software and associated hardware It also describes the functional test used to check whether the s
188. rk nodes in CANoe s simulation setup Each display and control element must be configured with a symbol from the database so that the display and control elements can be set or read out by the CAPL models in CANoe gt The CAPL Generator is a tool for automating the generation of network node models that can be used to simulate the remainder of a bus in a CANoe simula tion Generation is based on CAN databases The network node models are generated as CAPL programs The CAPL Generator prepares the database for the generation of panels with the Panel Generator That is the necessary environment variables are added to the database and they are assigned to the proper nodes by means of ac cess rights gt The Panel Generator is a tool for automating the generation of panels which are used for graphic user control and visualization of network node models Generation is based on CAN databases The panels are generated as display and or control panels in a node based manner Environment variables are assigned to the nodes by means of access rights Before a panel is generated with the Panel Generator the network node model should be created with the CAPL Generator P Panel Designer PaneiDesigner exe A A R d j Bitmaps CANoe Pane Database bmp xvp a Lei dbc d f f j J canoe contig CAPL node cta j e T can m Database editor candb32 exe m vir Ki CANoe CAPL brows
189. rnal registers for accepting messages At higher bus frequencies and higher message rates newly arriving messages overwrite this buffer before the firmware can read out the register Use acceptance filtering Communication problems with the firmware occur during a measurement Terminate measurement and restart If this does not help the reset button can be pressed for some cards Otherwise the PC should be rebooted No connection could be established with the firmware when the CAN card was initialized The transmit buffer is still full The new transmit request cannot be processed There are three possible reasons for this gt CANoe is transmitting data faster than the firmware can receive them and pass them to the CAN controller This may occur for example if higher priority messages are being transmitted on the CAN bus gt The number of messages transmitted one directly after another in a CAPL program is larger than the transmit buffer This problem occurs primarily when transmission is executed in a loop in CAPL programs i 0 i lt 50 i i 1 for output Msg gt Remedy Fast transmission by setting msTimers and in reaction to the timer event gt The CAN controller being addressed is in the BUSOFF state and therefore cannot accept transmit requests any longer This can be detected in the bus statistics window Version 7 5 79 User Manual 6 Windows In this chapter you find the following information
190. rs in the configuration To do this create a node attribute NodeLayerModules of type String in the database if it is not already available Set the value to J1939_NL dll Now you can use the extended functionality of the J1939 node layer in your CAPL source files Reference All available configuration settings of the J1939 CAPL Generator are described in detail in the appropriate online help The sample configuration SimpleModel in the directory Demo_J1939_CN Modeling demonstrates using the J1939 node layer Note For simple models that basically work signal oriented and use the transmission types cyclic and on change you can use the J1939 IL But if the models become more complex you shall use the J1939 CAPL Generator Therewith you have more possibilities to influence the behaviour of the simulated ECUs Both methods use the same database so it doesn t matter which one you prefer But it is recommended to start the model design with the J1939 IL and switch to the J1939 CAPL Generator if it is foreseeable that the functionality of the J1939 IL does not fit your requirements 14 3 4 Test J1939 networks Testing J1939 Test Service Library J1939 Test Modul Manager 142 For testing complete networks or individual control units you can use Test Feature Set of CANoe For J1939 it is extended by the J1939 Test Service Library and the J1939 Test Module Manager The J1939 Test Service Library J19
191. rt 38 User Manual With 4t you can toggle between absolute and relative time representation In relative time representation the time difference between two successive messages transmit interval is shown in the first column Of course in this display format it is also easy to find the transmit interval that you entered previously in the generator block 100 milliseconds The Statistics window also offers you bus related information Here you can observe the transmit frequencies for messages coded by identifiers If you have configured the simulation setup as in the two last tasks then you should see two vertical lines in the Statistics window after the measurement start which show the transmit frequencies of the two generated messages 64 hex and 3FC hex E Statistics SENYVSASTANDWO rt 0 22222999 100 200 300 400 ID gt cana lt can2 f Figure 18 Statistics window 10 messages per second were recorded for identifier 64 and half as many were recorded for identifier 3FC This result corresponds to the cyclic periods of 100 and 200 milliseconds set in the generator blocks If the Graphics window display is too imprecise the statistics block offers you a statistical report that gives you more precise information on the transmit interval for each message Besides showing the total number of messages for each identifier the statistics report also shows the mean value standard deviation and minimum an
192. rt of CANoe the program is called by double clicking the appropriate icon in the CANoe program group The CANoe screen consists of the main menu bar and the toolbar in the upper portion of the screen the status bar at the bottom of the screen and the data flow window and various measurement windows You can gain access to all CANoe windows by double clicking the specific evaluation block in the measurement setup or by selecting the window from the View menu De en Gxt Free Pare Configure Window tjip Cae bo Oe A nm Graphic 1x D Jyst Sigal valwe 1 could not be set due Ca Syaten End of measurement 04 21 25 pa F E CaSpeed reh n e pa S F E EnPowe wl e AN e L KE m Zreioeei kel Am i LA A Sege A CAP kopet A Callstack A Test A Loggng Deet J pen Statintic cu d di Bosi fal 15 93 ES an Pesio Tal US a BIR sod osami ve Sod Datan ei Trace Power Train Tose Mave 0 45148 2 D I EngineDeta w a A 66 EngineDatartEr Tx 2 4540 A c9 ADS Gata Be Data D an aume gt we Kearney regen gt ooo EEE Detad view Droen vew A Sik o 7 Comfort WM_Taster Porver ram CANSyaterDersacta SIM NUM HEX Figure 31 The CANoe screen CANoe provides you a set of significant basic functions for the work on various bus systems Functions as loading and saving configurations assigning databases and configuring panels are available Particularly the data flow diagram and the function blocks in the
193. s The MOST function catalog that can be used for CANoe is in the form of an XML file whose format is specified by the MOST Cooperation This function catalog is usually created by the OEM and provided to all parties involved in the project If you do not yet have a function catalog in XML format contact your OEM For members of the MOST Cooperation a function catalog editor is available for download on the MOST Cooperation intranet It can be used to create new function catalogs In addition example catalogs of standard function blocks are available on the intranet Further Information Example catalogs can be found in the MOST subdirectories for demos e g Program Files CANwin Demo_MOST_CN MOSTSystemDemo Database 12 3 How to create a CANoe MOST configuration 124 To create a MOST configuration using a LDF simply follow these steps 1 Create a new configuration using File New Configuration 2 Select the MOST MOST50 or MOST150 template dependent on the speedgrades of your MOST system 3 Select the required number of MOST channels menu Configuration Options Channel Usage Info In the case of MOST150 and MOST5S0 for technical reasons Vector strongly recommends placing the node and the spy of a connected Optolyzer on separate channels This is already preconfigured accordingly in the MOST150 and MOST50 templates 4 Select the hardware to be used menu Configuration Network Hardware Versi
194. s You can make this information available by associating one or more databases to the active Afterwards you can access the information in measurement windows insertable function blocks and CAPL programs The CANdb Editor is available to you for inputting and modifying databases It is included with the standard CANoe product In a database names are assigned to CAN messages In CANoe you can then address the messages using these names For example the clear text EngineData is shown in the Trace window instead of the identifier 100 Version 7 5 Vector Informatik GmbH User Manual Applications Signals Moreover so called signals are defined in the database A signal is a symbolic description of a data segment within a message Besides identifying the data segment the signal definition also incorporates characteristics such as machine format Motorola Intel sign handling a conversion formula and physical unit of measurement This permits direct display of physical dimensions in the data window such as Speed 810 4 rpm Vector CANdb Editor Power rain dbc Ubersicht E Datei Beerbeten Ansicht Optionen Fenster Hie GNI e HDD sanm AA Netzwerke 1D _ D Format MI PowerTrain E ABSdata Dog CAN Standard B Seuvergerate E DisgRequest_Motor Ox601 CAN Standard ii mi Umgebungsvariablen El DisgResponse_Motor 0x603 CAN Standard Ee E EngineData 0x64 CAN Standard e DI ABSdata 0xC9 EngineDetalEEE 0x66 CAN Standard E En
195. s you will not be able to start the configuration any longer Aside from these limitations the demo version is a fully functional version In particular messages can be evaluated and saved and CAPL programming can be tested without limitations 28 Version 7 5 Vector Informatik GmbH User Manual 4 CANoe Tour In this chapter you find the following information 4 1 4 2 4 3 4 4 4 5 4 6 4 7 4 8 4 9 4 10 4 11 4 12 4 13 Overview Preparations Setting up the bus Transmitting data Evaluation windows Working with symbolic data Analysis of signal values in the Data window Analysis of signal responses in the Graphics window Use of the database in transmitting messages Logging a measurement Evaluating a log file Creating a CAPL program Simulation of distributed systems in CANoe Creating the database Creating panels Creating network node models Vector Informatik GmbH Version 7 5 CANoe Tour page 30 page 30 page 32 page 33 page 37 page 40 page 41 page 43 page 44 page 45 page 46 page 47 page 49 29 CANoe Tour 4 1 Overview Operating concept Set up CANoe CAPL User Manual If you are starting up CANoe for the first time and its functionality and controls are still completely new to you the following tour will help you to become familiar with its operating concept and its most important features For this tour you will first set up a very simple CAN bus where CANoe assum
196. s evSwitch and evLight Version 7 5 Vector Informatik GmbH User Manual 5 Applications In this chapter you find the following information 5 1 Overview of the important elements 5 2 Simulation Simulation setup Working in the simulation setup Simulation mode Message attributes System verification 5 3 Measurement Measurement setup 5 4 Working with configurations 5 5 Working with databases Use of multiple databases Resolving ambiguities Checking for consistency of symbolic data 5 6 Working with multiple channels Channels in online mode Channels in simulation mode Channels in offline mode 5 7 Working with panels and symbols 5 8 Logging and evaluation of measurement files Triggers Data analysis Data export and conversion 5 9 Test functionality in CANoe Test Feature Set TSF Test Service Library TSL 5 10 Diagnostics functionality in CANoe Diagnostic Feature Set DFS 5 11 CANoe Realtime 5 12 Standalone Mode 5 13 Macro Recorder 5 14 Step Sequencer 5 15 COM Server 5 16 Troubleshooting 5 17 List of error messages to the CAN interface Vector Informatik GmbH Version 7 5 Applications page 56 page 58 page 61 page 61 page 62 page 65 page 67 page 67 page 70 page 74 page 75 page 75 page 76 page 76 page 76 page 77 page 78 55 Applications User Manual 5 1 Overview of the important elements Program start CANoe Screen Central access to main features 56 At the program sta
197. se any filtering of messages in the data flow plan gt When receiving on controllers not assigned to a defined channel the received messages are passed through the measurement setup gt When transmitting from a Generator block or Replay block in the measurement setup to an undefined channel the transmit request is similarly passed through gt An error is reported in the Write window for a sender in the simulation setup as soon as the transmit request is given to an undefined channel The message is not transmitted gt CAPL blocks do not transmit messages to which an undefined channel is assigned 5 6 2 Channels in simulation mode Working with simulated buses Behavior at inconsistence 66 In online mode with a simulated bus buses and network nodes are fully simulated Each channel corresponds to a simulated bus If you use channels that are not defined CANoe behaves as follows in simulation mode gt The channel configuration does not cause any filtering of messages in the data flow plan gt When transmitting from a Generator block or Replay block in the measurement setup to an undefined channel the messages are passed through gt When transmitting from a Generator block or Replay block in the simulation setup to an undefined channel an error is reported in the Write window as soon as the transmit request is given to the undefined channel Afterwards the message is not transmitted gt CAPL blocks
198. section PCBOARD of the CAN INI file Timerrate 200 or under some circumstances even the value Timerrate 400 These correspond to time resolutions of 2 or 4 milliseconds respectively With error messages of this type CANoe cannot establish a connection to the CAN hardware Check the installation of the CAN card Please compare the instructions in the installation guide of your hardware Above all notebook PCs frequently use a power manager This must be deactivated Please compare the instructions in the installation guide of your hardware Immediate state change of CAN controller to ERROR PASSIVE gt Bus not connected The bus connection should be checked and possibly also the pinout of the connector being used gt Terminating resistor present In particular the CAN AC2 version with 82527 controllers reacts sensitively to a missing bus termination gt No partner on the bus If the bus is only connected to one of the two CAN controllers and there are no other bus nodes the controller does not receive any acknowledge for transmis sion attempts gt Baud rate and output control set The controller register can be programmed by the shortcut menu of the CAN card icon Vector Informatik GmbH Version 7 5 77 Applications User Manual 5 17 List of error messages to the CAN interface Error messages with assigned error numbers Message was not transmitted 14 Incorrect controller no 3 10 113
199. seful here is an event driven model with a procedural description of behavior For example the model may describe how after receiving a message Event the received data are to be further processed procedural and how the result is to be output as a control variable The user must also specify the input variables to the simulation tool so that the time behavior of network nodes and the accumulation of messages can be simulated The results of the simulation serve to validate the design and can later be used as a reference after implementation After the first phase has been completed the design and development of individual network nodes is usually performed by all participants independently and in parallel The models for the other network nodes can now be used to simulate the remainder of the bus for testing of a developed network node The tool requires an interface to the real bus for this and it must be able to conduct the simulation in real time In this last development phase all real network nodes are connected to the bus ina step by step manner To accomplish this it must be possible to disconnect the models one by one in the simulation of the remainder of the bus The tool serves increasingly as an intelligent analysis tool which observes the message traffic between the real network nodes on the bus and compares the results with the specified requirements Version 7 5 Vector Informatik GmbH User Manual Basics Phase 1 CA
200. shown and the cursor is positioned at the location of the error This makes it very easy to make corrections Open CAPL Browser Itis recommended that you always start Browser from CANoe since a number of important parameters for the program start database name compiler options hardware parameters CAPL DLLs etc must be passed Browser architecture A Browser window is subdivided into up to four sub windows so called Panes 112 Version 7 5 Vector Informatik GmbH User Manual Browser tree Panes Editor Message window Vector Informatik GmbH BA CAPL Browser Console can LIN Nesseges KOST Messages HOGT Rav Messages MOST Packets MOST AMS Ressaoes PlexRsy Slot FlexRay StartCycle Diesnostics request Diegnostios response 4 Tiner Keyboard ErrorFrane Environsent chTurnIndicet X EnvittOnot gt K EnvitSleep26 X EnviVekelp26 amp EnvSetRadicChannel CAPL net nanegerent long _busSleepTine 5000 asTiner _tSleep int Globalactivity 0 cher gTerget dress char gECU 10 Ce const int gTxSize const int gRxSize lt Pe envver EnvConSvitchTurnIndicstor int state Gototiode Avake state getValue this if gVarningOn x tPhase cPhaseTise 1LSetSignel Console_2 Active Console_2 Active Turn_left gTurnIndicatorlLaestStatue Console 2 Active Turn_ left fanen Tei em E esst 1 gt Comfort WH_Tester Power Train Figure 52 CAPL Browser At th
201. sign as identifier the whole bus communication will be transferred from one bus to the other If you transfer the whole bus communication you also can build additional rules for signals These rules have priority for the relevant signals 7 3 Replay block Replay measurement The replay block makes it possible to replay measurement sequences which have sequences already been recorded The most important application is replaying a recorded data stream onto the CAN bus Additionally they can play back environment variables e g to generate test sequences Replay blocks appear in the data flow plan as small blocks with the label R Configure replay You can specify whether RX messages or TX messages are to be transmitted or not The user can also choose whether messages originating from CAN controller 1 should be transmitted on CAN 1 or CAN 2 or should not be transmitted at all and similarly for messages originating from CAN 2 The file can be transmitted once or cyclically For cyclic transmission transmission resumes with the first message after the end of the file is reached There are three possibilities to define the start of transmission of the first message of the file gt Immediate The first message is transmitted at the start of measurement gt Original The time of transmission is defined by the time saved with the message in the file gt Specified The user sets the time explicitly in milliseconds since the start of meas
202. sites 18 2 1 Configure J1708 channels Overview 168 To use a J1708 channel with CANoe the channel must be configured using the Vector Hardware dialog This application can be started from the Windows Control Panel 1 With Edit Application add an application with the name CANoe if it does not already exist 2 Open the context menu with a right click and choose the entry Application J1708 channels Enter the number of channels you want to use 4 Open the tree node CANcardXL node Hardware and select the entry J1708cab 65176opto 5 Open the context menu and assign the application you defined in step 1 to the CANcardXL Version 7 5 Vector Informatik GmbH User Manual J1587 If you use another network interface or a data logger for configuration of the network the steps are analog to the steps described above CANoe To use J1587 with CANoe the number of J1708 channels must be configured The setting is available under Configuration Options on page Channel Usage Configuration Network Hardware shows the available J1708 channels 18 2 2 Define J1587 parameters in CANdb Editor Overview The parameter identifier PID in a CANdb database is made up of the PID and the page of the PID CANoe shows the page and the PID as one value Example PID 84 5416 PID 84 of page 1 PID 340154 PID B4 of page 2 Get J1587 parameter A J1587 parameter can be defined in the CANdb Editor It is eq
203. sk Drivers 32_Bit Dongle folder on the CD Installing this file may take a little while up to 4 minutes You need to reboot your computer when the installation is complete Plug the USB dongle into the USB port Version 7 5 Vector Informatik GmbH User Manual Installation the driver with the downloaded program Setup exe afterwards 2 7 MOST Prerequisites To run MOST you will need the following gt A MOST option license that is tied to the hardware or to a USB dongle gt Additionally for MOST150 for operation with an Optolyzer G2 31500 A license for the Optolyzer Integration Package OIP of Vector on a USB dongle or on a simultaneously connected Vector hardware gt Additionally for MOST50 for operation with an Optolyzer G2 3050e A license for the Optolyzer Integration Package OIP of Vector on a USB dongle or on a simultaneously connected Vector hardware Note The Optolyzer Integration Package OIP covers operation with MOST180 and MOST50 Further Information For help with installing the MOST hardware please refer to the o f associated installation manual 2 7 1 MOST25 Use with Optolyzer Box Prerequisites To work with the Optolyzer Box you will need the following gt An Optolyzer Box Firmware Version 2 50 or later gt The Optolyzer ActiveX control incl new Optolyzer license number Installation 1 Install the Optolyzer ActiveX control on your PC The installation program that cor
204. sport protocols are only available if a J1939 database is assigned to the network in the simulation setup If no J1939 database is available you can create one with the CANdb Editor You simply have to define a network attribute ProtocolType of type String Set the value to J1939 Alternatively you can use the J1939 template in the CANdb Editor In this template the attribute ProtocolType and other J1939 specific attributes are already defines To use the extended signal view in the trace window as well in the graphic and data window you have to create the signal attribute SigType of type Enumeration in the database Have a look at the online help to find out which values are allowed and what meaning they have Version 7 5 Vector Informatik GmbH User Manual J1939 and NMEA 2000 If you use the J1939 template in the CANdb Editor this attribute is already defined too Note The steps to create a NMEA 2000 database are identical to the steps described above To use the protocol FastPacket the message attribute SingleFrame is necessary too 14 2 2 Create a J1939 configuration D To create a new J1939 configuration proceed the following steps 1 Create a configuration via the CANoe menu File New Configuration 2 Select the J1939 template and activate the checkbox Use Wizard Close the dialog with OK 3 Press Database and load the standard database for J1939 in the directory Demo_J1939 CN Database or select an
205. st be called for a new start Instead of reading data from the source file as quickly as possible in animate mode only about 3 entries per second are read from the source file This results in a slowmotion representation of the processes All of the display windows may be active during this process e g so that the user can easily observe the sequence of messages in the Trace window In offline mode this menu item interrupts the replay of data from the source file animate run A restart resumes the replay at the point where it was interrupted by Break This menu item causes a single step of the measurement to be run Each time this is activated only one additional message is read from the log file and processed in the data flow plan 5 8 3 Data export and conversion Signal based logging The contents of log files can be exported or converted to other file formats with the export Conversion help of signal based logging export The export can be limited to specific signals Additionally you can define programs that will be started after an export Conversion of log files is supported in both directions i e ASCII to binary and binary to ASCII 5 9 Test functionality in CANoe Test functionality 70 CANoe supports testing of controllers and networks by special test functionalities in all development steps These can be used to create tests verify individual tests test prototypes or perform regression and conformity tests
206. stems The standard variant of CANoe has been extended to include the necessary CANopen specific functionalities Supplied with the product are gt CANoe extensions these will be explained in more detail over the course of this chapter gt CANeds EDS Editor CANeds is a tool for creating EDS files in different formats From a list of available objects you can assemble the desired object dictionary But it is also possible to read in the object dictionary of existing devices via the Scan functionality and automatically generate an EDS gt CANopen configuration tool ProCANopen ProCANopen gives you interactive access to CANopen devices and the ability to configure these devices You can generate simulation models that are based on EDS files at the press of a button and execute them in CANoe In addition ProCANopen contains a generator for automatically creating test procedures that you can execute in CANoe You can activate the extensions for CANoe by loading the CANopen configuration template 1 In CANoe choose the menu command File New configuration 2 Select the template CANopenTemplate tcn and close the dialog with OK After creating a CANopen configuration with the CANopen configuration template the connected CANopen system can be analyzed Special interpretation of the messages for CANopen does not occur until a CANopen database has been assigned to the configuration see Databases section Note You wil
207. t Analyze network traffic Evaluate signals Run Remote CAN analysis Sample configurations Vector Informatik GmbH Version 7 5 page 162 page 163 page 164 page 165 161 User Manual 17 1 Extensions of the IP option General Embedded Ethernet The option IP for CANoe can be used in the field of embedded Ethernet applications For this several extensions of the standard CANoe are available For embedded Ethernet networks you can gt use Ethernet communication gt stimulate Ethernet packets with the Ethernet Packet Builder and with CAPL gt configure several Ethernet channels and use them together with other bus systems or standalone decompose and analyze Ethernet packets by means of CAPL evaluate Ethernet packets and its protocols in the trace window Yyyy define signals in the CANdb Editor and analyze them with self configurable signal protocols or with panels gt use the graphic and data window as well as the message filter with signal protocols gt log Ethernet bus traffic in ASC and BLF logging format and replay log files in CANoe offline mode or with the replay block Note In which cases you can use the different extensions is described in detail in the further course of this user manual or in the online help system Note This product includes software developed by the University of California Berkeley and its contributors 17 1 1 Check installation Check installation 162 Ch
208. t already done so Precede according to its installation CANaerospace instructions After installation of the standard version of CANoe the installation of the option starts automatically Hint During installation of option IP the message The software Vector Network Driver Miniport has not passed Windows Logo Testing could appear several times Please confirm the dialog with the button Continue installation copying or deleting files The programs use COM mechanisms of MS Windows that d Caution Please do not install or uninstall the corresponding options by manually must be registered or deregistered by the installation program 2 9 Switching language versions Configuration The German and English language versions are installed by default during the standard installation You can set the language for all of the program features and the Help Menu Configuration Options Appearance You need to close and then re start CANoe for the changes to become effective Vector Informatik GmbH Version 7 5 17 Installation User Manual 2 10 Running the test Prerequisite To test the CANoe software installation the CAN hardware must be successfully installed Procedure 1 Connect the two CAN ports of your CAN hardware using a cable that is terminated in a way that is appropriate to the bus type 2 Load the CANSystemDemo cfg sample configuration in the Demo folder Demo_CAN_CN CANSystemDemo and start it If
209. t are integrated into the Test Service Library The functions can be used in CAPL test modules and XML test modules Details for the test specifications can be taken partially from the CANdb data basis in that information like target values for cycle times can be defined With this functionality the necessary test code is very small In the Test Service Library you can find functions that make the stimulation of the ECUs easier stimuli functions For example you can create different signal forms with these functions Tests can be specified either in one global test node where all the test functions are located or for every node real or simulated there is a node that contains the tests for this node Therefore it is very simple to activate or deactivate the test for one node at a time Users usually follow one of the following targets when using the TSL gt The implementation of an ECU is checked against a specification every time the ECU software is changed This is the case at the supplier that develops the software for an ECU that has to conform to an OEM specification gt A user interacts with a predefined test evaluating the behavior of an ECU For example the OEM receives a prototype from a supplier and tests its compliance towards parts of the specification gt Here the results should display statistics on the conformance of the different test parts e g a statistical value for the timer precision is requested gt The t
210. t to different subdirectories CO cA myproject i myprojl cfg myproj2 cfg O modelle ecu1 can ecu2 can test can sqr gen dbe myproj dbc addon dbc B panels ecu1 cnp display cnp O bimaps myswitch bmp mybutton bmp Figure 34 Example of a directory tree for a CANoe project References to other project files e g to database files DBC or to CAPL programs CAN are also saved in the configuration files CANoe works internally with relative paths That is referenced files are searched and read in relative to the configuration file during loading Consequently if you move your project directory with all associated files to another location in the directory tree or to another drive the databases and CAPL programs referenced by the configuration file are found and correctly read in at the next loading To document or archive configurations from the menu item File Files used you can have a list generated of all files belonging to the active configuration databases CAPL programs etc or have a ZIP archive generated 5 5 Working with databases Working with symbolic data CANdb Editor Messages 62 When performing large scale studies on the CAN bus it is a great help to the user if in addition to the bus oriented raw data format with numerical identifiers and data contents a symbolic interpretation of the message event is also provided CANoe supports the use of symbolic database
211. tain port numbers you have to adjust the file CAN ini For Optolyzer G2 3050e MOST50 at channel 1 you ll have to edit the following section OptolyzerG2 50 1 MyPortNode MyPortspy Version 7 5 Vector Informatik GmbH User Manual Installation 2 Choose the speedgrade MOST50 and the HW type OptoLyzer OL3050e for the MOST channel in the CANoe hardware configuration dialog Configuration Network Hardware 3 Enter the IP address of the Optolyzer on the Interface page If the Optolyzer is already connected you can determine its IP address at the push of a button 4 Onthe Setup page also select the network adapter to which the Optolyzer is connected 2 8 Further CANoe options Overview The options are designed as an add on to the standard CANoe A number of standard CANoe files are replaced during installation e g driver and others are added e g sample configurations It is therefore important for the versions that they match properly The installation program tests this compatibility and issues a warning if appropriate If there is any incompatibility between versions you should get in touch with Vector Support In addition to the sample configurations of the standard CANoe option specific examples are installed in a directory A number of different level 7 options can be installed simultaneously in a single directory for example 15011783 J1939 and CANopen Option CANopen Install CANoe if you have no
212. te is displayed in the Statistics window Smoothed averaging is used with adjustable averaging time The message identifiers are output on the horizontal axis and the corresponding rates on the vertical axis The IDs are distributed according to whether they originated from controller CAN1 or CAN2 and by message attributes Rx and Tx RX TX CAN1 Red Blue CAN2 Red Blue In standard mode the messages of the channels are displayed side by side In tab view mode the window is split In the left part standard view the messages are shown In the right part special view special events are shown e g error frames With the tabs on the bottom of the window you can switch between the buses You can have up to 3 standard views but only one special view for each bus channel You can scale the Statistics window from the popup menu The functions available for this such as Zoom Fit Basic Image and Manual Scaling are described in detail in online help Info If the CAN card used supports extended identifiers the function Basic Image is split The user can choose whether scaling will be over the range of standard identifiers or over the entire range In background statistics are kept on all bus actions and the results can be reported to the Write window after conclusion of the measurement A list is constructed sorted by message identifiers which contains information organized separately for receive messages transmit messag
213. the Graphics window Analysis of signal responses Unit 4 Add signals in the Graphics window H TE Display in the Graphics window While the Data window displays momentary signal values you can have the time responses of signal values displayed in the Graphics window After the end of measurement the signal responses are available for study by user friendly analysis functions Configure the Graphics window so that signal values are displayed for message 3FC hex that is generated in the simulation setup The second message generated in the simulation setup is also described in the associated database 1 Open with the Graphics window s shortcut menu item Add signals the Symbol Selection dialog In the database it will be apparent to you that the identifier 3FC is associated with the symbolic message name GearBoxlInfo containing the signals Gear ShiftRequest and EcoMode 2 Choose the signals and confirm them with OK In the Graphics window you see that the signals are now entered in the legend on the left side of the window You can now observe the time responses of these signals in the Graphics window After the measurement start you observe that the signal Gear cyclically assumes values from 1 to 5 while the other two signals remain constant over time For a useful display of the single gear values the Step connection type of the lines is suitable 1 Open with the Graphics window s shortcut menu it
214. the installation is successful you will be able to observe CAN messages in the Trace window Result This functional test also confirms that the CAN hardware has been installed correctly 2 11 Troubleshooting 2 11 1 Software specific error messages Overview You will find software specific error messages and how to correct them here Further Information The Overview in the System Messages section of the online Help contains a list of additional system messages D Nr 0 Unable to find PC card Error number 0 Timeout during card initialization Background No response was received when accessing the CAN hardware Cause The CANoe version is not compatible with your CAN hardware Procedure Make sure that the installation is compatible with your CAN hardware To do this open the Help Info dialog This shows the software version e g CANoe along with the hardware expected for this installation These are CANcardXxL for CANcardXL CANcaseXL log for CANcaseXL log CANboardXL pxi PCIe for CANboardXL pxi PCle DEMO Demo driver with virtual CAN1 CAN2 connection Cause Faulty driver installation Check the driver installation by following the instructions provided in the appendix 18 Version 7 5 Vector Informatik GmbH User Manual Installation KA CANoe not allowed with HW version Software protection with CAN board 0 Either your CAN hardware is not enabled for CANoe or it was not possible
215. the measurement setup window gives an overview of the configuration options provided by CANoe and shows you how your actual measurement configuration appears Graphic menu The data flow diagram of the measurement setup contains data sources basic function blocks hot spots inserted function blocks and data sinks Connection lines and branches are drawn in between the individual elements to clarify the data flow In online mode the PC card serves as the data source It registers CAN messages on the bus and passes them on to CANoe Moreover some of the supported PC cards also provide additional information such as the detection of error and overload flags the values of error counters the bus load and external trigger signals The card is initialized at the start of an online measurement In the evaluation branches of the measurement setup data are passed from left to right to the measurement setup s evaluation blocks where they can be visualized and analyzed with various functions Filters or user defined analysis programs can be inserted in the data flow diagram before the evaluation blocks As a result the data flow can be configured in many ways to suit the particular task Version 7 5 Vector Informatik GmbH User Manual Evaluation window Hot spots E Example configuration Windows Each evaluation block has a measurement window in which the data arriving in the block are displayed The functions of all measurement wi
216. the standard type are not minimized 6 3 Simulation Setup window Graphical view ofan The overall system with the busses multibus system and all network nodes is overall system displayed graphically in the simulation setup window This figure corresponds to a representation of the phases 2 and 3 described in chapter 3 1 The simulated bus of phase 2 is represented by a red horizontal line The black line above it symbolizes the physical bus of phases 2 and 3 The two buses simulated and real are connected to one another through the PC card The card can be parameterized baud rate selection acceptance filtering etc using the main menu or the card icon s shortcut menu T Simulation Setup Seeh fii De Kn Cd her Power Comfort Powertran Figure 37 CANoe simulation setup Vector Informatik GmbH Version 7 5 83 Windows Real simulated bus Insert nodes Real simulated nodes Switch over simulated real User Manual The block for the PC card can be seen on the right side of the simulation setup The simulated bus displayed as a red line and the real bus displayed as a black line are connected to the card block If you click the bus symbol with the right mouse button you get the popup menu for the two buses simulated and real By repeated selection of the menu command Insert network node in the shortcut menu of the bus image you can insert as many network nodes as you wish in the simul
217. the system view window of the simulation setup you can see a tree representation of the current configuration 2 If you go to Databases with the mouse pointer and click with the right mouse button you will open the Open dialog with the shortcut menu item Add Choose in this dialog the above mentioned database 4 If you click on the OK button the new database is accepted for the current bus and displayed in the system view window Info With the help of this symbolic information the data contents of messages can now be interpreted in CANoe Please note that this is only pratical if the database information describes the system that you are currently observing So you have to ensure that the database associated to the configuration matches the real network Before you start the measurement you should save the configuration that you have prepared to this point with the menu command File Save configuration You can then reload this configuration at any time and resume your work precisely at this point Start the measurement by pressing the start button E on the toolbar CANoe immediately begins to cyclically transmit the message you have configured in the generator block You can recognize this in the Trace window which automatically jumps to the foreground after the start of measurement and can now be seen at the lower right of the main program window In the first line you see the message that is sent by the generator block wh
218. this the program determines the actual minimum and maximum values for each signal and the time range of all signals and scaling is adjusted accordingly This command magnifies or reduces by a factor of 2 either the active signal in single signal mode or all signals in multisignal mode The size is changed according to the preselected axis mode either for only one axis in X mode or Y mode or for both axes simultaneously in XY mode Operations that change the scaling of the time axis are always executed for all signals independent of the option single signal multisignal mode since there is only one time axis for all signals in the Graphics window Axes can also be scaled individually for each signal in the Graphic configuration dialog The signals are scaled such that they are completely visible This involves determining the actual minimum and maximum values of each signal as well as the time range for all signals and the scaling is set accordingly The active modes X mode Y mode or XY mode and single signal or multisignal mode are taken into consideration This fits the entire graphic optimally in the window Here you select the background color for the window white or black Furthermore you can open the Options dialog for configuring signal colors With the help of the Export function you can save the data of one or all signals of the Graphics window to a file Depending on the activated signal mode i e single signal
219. tion of the measurement windows simulation setup PC card etc while working with CANoe can be saved to a configuration file with the extension CFG Thus you can work with different configurations to perform specific simulations measurements and tests with CANoe Change To save changes of a specific configuration to a new configuration file choose the configurations menu bar item File Save configuration as With the menu item File Load configuration you can reload configuration files which you previously saved in CANoe In the demo directory DEMO_CAN_CN you will find some prepared demo configurations that can serve as models when you start up CANoe and during the learning phase Vector Informatik GmbH Version 7 5 61 Applications Create project directories Reference to project files Document and archive configurations User Manual To obtain an overview of the files belonging to your project configuration files log files CAPL programs databases Panel files etc and to allow you to run them on another computer if necessary it is advisable to create a separate project directory for each project also called a working directory in Windows Be sure to save all files resulting from your work in this directory If you are working on several different CAN projects multiple project directories are also advisable With large projects it might even be easier to distribute the databases and configuration files of a projec
220. tly via the Windows start menu Reference More detailed information you can find in the online help system Version 7 5 Vector Informatik GmbH User Manual J1587 18 J1587 In this chapter you find the following information 18 1 Introduction page 168 18 2 Prerequisites page 168 Configure J1708 channels Define J1587 parameters in CANdb Editor 18 3 Functionality page 169 Parameter Monitor Diagnostics Monitor Trace window Data and graphic window Interactive Generator Block Filter CAPL Vector Informatik GmbH Version 7 5 167 J1587 User Manual 18 1 Introduction Introduction Hardware Interfaces Sample configurations The option J1587 offers extensive capabilities for analyzing distributed real time control systems with J1587 With the J1587 option you are able to gt receive gt display gt analyze and gt send J1587 messages To connect to J1587 interface the following network interfaces and data loggers are available Network interface Data logger Bus transceiver CANcardXL gt 1708cab 65176opto CANcardXLe CANcaseXL gt 1708piggy 65176opto CANCcaseXL log CANboardXL CANboardXL PCle CANboardXL pxi VN8900 dk kd AAA d In order to simplify the initial steps of the option J1587 a few sample configurations are included These samples should demonstrate the use of various functions of the option You can start them directly via the Windows start menu 18 2 Prerequi
221. to determine whether the hardware is enabled Please use enabled hardware 2 11 2 Hardware specific error messages Side note Some error messages pertain to faulty settings in the CANcardXL driver configuration dialog You will find this information in the Windows menu under Start Settings Control Panel Vector Hardware It is described as CAN Hardware there For more details please refer to the hardware manual K No 4000 CAN channel X is not available Procedure Check in Vector Hardware to see whether the CANoe X entry exists K No 4001 CAN channel X does not exist Procedure Check in Vector Hardware to see whether the hardware assigned to the CANoe X entry is active KA No 4002 Board initialization error 3014 Cause An error occurred when accessing the driver Procedure Check in Vector Hardware to see whether the driver is installed correctly Vector Informatik GmbH Version 7 5 19 User Manual Basics 3 Basics In this chapter you find the following information 3 1 Introduction to CANoe page 22 3 2 Tips for using CANoe page 24 3 3 Overview of the programs page 26 3 4 CANoe architecture page 27 3 5 Particularities of the demo version page 28 Vector Informatik GmbH Version 7 5 21 Basics 3 1 Purpose 3 phase model Phase 1 Requirements analysis and design of the network system Phase 2 Implementation of components with simulation of remainder of the bus Phase 3 Integrati
222. tus window i e the bypass is open A Further Information Chapter 6 describes a set of analysis windows that function analogously for MOST if for example MOST signals are inserted into the Data window 12 5 How to stimulate a MOST system Interactive Generator The Interactive Generator block MOST IG MOST offers the fastest way to send block MOST Stress window MOST messages or packets The configuration user interface for entry of messages can be opened via the View IG MOST menu Info If the View menu does not offer G MOST this means that the configuration does not contain such a generator block To insert a new block the measurement must be stopped and the IG MOST must be inserted into the simulation setup as a block The Stress window offers various options for stimulating the MOST system The configuration user interface for selecting and setting the stress mode can be opened via the View MOST Stress menu MOST messages or packets can then be sent cyclically in order to stress the MOST system In addition unlock cycles or ring interruption phases can be created 12 6 How to log and replay MOST data traffic Logging Offline analysis Replay 126 You can log MOST data traffic by activating the connection to the Logging block in the measurement setup View Measurement Setup menu With a double click on the Logging block you can open the configuration dialog To analyze a log file offline use offline
223. twork nodes plays a significant role in the development of CANopen devices and systems The CANopen standard specifies that device information and functions must be stored in a prescribed format in EDS files Based on this information CANopen simulation models may be created with ProCANopen and are then ready to be executed in a runtime environment CANoe The generated simulation models can be extended to include application specific behavior to complete the total system EDS EDS Files ee Se VC N A Ne Generator A Ne Messages DCF __ gt CAPL 4 CAPL Signals Database Device Simulation Application Configuration models data Figure 54 Generation of a CANopen simulation Vector Informatik GmbH Version 7 5 155 CANopen bel d User Manual The following steps are necessary to create a simulation model Create the necessary missing EDS files with CANeds Create the network topology linking the EDS files with ProCANopen Configure the network with ProCANopen e g set up PDOs Generate the simulation models with ProCANopen Simulate the total system with CANoe oa F WN gt Use the CAPL Editor to extend the generated models to include application specific behavior Reference For detailed step by step instructions please refer to online help for the CANoe CANopen option 16 4 Generate tests General Device tests Application tests 16 4 1 Device test General
224. u bar Version 7 5 Vector Informatik GmbH User Manual Simulation setup Measurement setup Evaluation windows Create a new configuration CANoe Tour In the simulation setup window the overall system is shown graphically with the CAN bus and all network nodes The simulated bus is represented by a red horizontal line The black line beneath it symbolizes the real bus The two buses are connected to one another via the PC card To transmit data from CANoe onto the bus insert transmit blocks in the simulation setup which must be connected by the red line The data flow diagram of the CANoe measurement setup has a connection to the simulation setup on the left symbolized by the gt gt symbol and various evaluation blocks on the right serving as data sinks That is the data flow is from left to right Connection lines and branches are drawn between the individual elements to clarify the data flow In the data flow diagram you will also recognize small black rectangles FF A these insertion points hot spots you can insert additional function blocks for manipulating the data flow filter replay and generator blocks or CAPL program blocks with user definable functions The information arriving at each evaluation block is displayed in the block s evaluation window For example the Trace window displays all information arriving at the trace block while the Graphics window shows you information arriving at the graphics bloc
225. u place it in the measurement setup For example a CAPL program located in CANoe s measurement setup can indeed generate messages but it cannot send them on the bus Since the data flow is directed from left to right these messages are only passed to the function blocks to the right of the CAPL program Only messages generated by CAPL programs located in CANoe s simulation setup can be sent out on the bus This completely logical behavior which may at first seem surprising applies equally to the Generator block which when it is located in the measurement setup similarly generates messages without affecting the bus Therefore in general those CAPL program blocks that exclusively serve analysis purposes should be inserted on the right side of the measurement setup while program blocks for transmitting CAN messages should be inserted in CANoe s simulation setup Before you start the measurement you must compile all CAPL programs of the configuration You can start the CAPL compiler from the CAPL Browser or from the configuration dialog To compile all nodes at once simply choose the main menu item Configuration Compile all nodes Just like other function blocks in the measurement setup from CAPL you also have access to the symbolic information in the database For example instead of using the identifier 100 in your CAPL program you could use the symbolic name EngineData at all locations provided that you have assigned this name to th
226. ual of the adapter to find more details about its configuration Create a W LAN connection between the CAN W LAN gateway and the windows system Open the Vector Hardware Config dialog via the control panel of Windows menu entry Vector Hardware Select the entry Remote Bus 1 or Remote Bus 2 at the menu item Hardware and insert the necessary parameters for the connection gt Protocol select the appropriate device protocol gt Transport select the appropriate transport protocol gt IP Address set the IP address of the CAN W LAN gateway gt Port Number set the used port number Note More information how to connect CAN channels you can find in the online help of the Vector Hardware Config dialog In CANoe create a new configuration via the menu File New Configuration Open the menu Configuration Options and switch to page Channel Usage Set the number of CAN channels that you want to use e g 1 for a single CAN channel Start measurement Note Certain capabilities regarding the operation modes during the measurement may vary depending on the used device hardware and or firmware versions For details have a look at the manual of the device 17 4 4 Sample configurations Sample configurations 166 p With the option IP you get several sample configurations Use these configurations to do the first steps with the option IP and to get used with the different extensions You can start the samples direc
227. uivalent to a CAN message in the CANdb Editor the CAN identifier is equivalent to the PID In the context menu of a J1587 parameter or a CAN message the menu item J1587 Properties can be selected In this dialog the PID and the page can be edited separately Message list The message list contains some additional columns for J1587 gt J1587 Type This column shows the type of the parameter gt J1587 PID This column shows the PID without page gt J1587 Page This column shows the page of the PID 18 3 Functionality 18 3 1 Parameter Monitor Overview The Parameter Monitor shows signal values of J1587 parameters transmitted within J1708 messages It provides a structured view with all values mapped to the corresponding send node Functions The following information is displayed Field Description Name Level 1 name of the send node MID Level 2 parameter name PID signal name for parameters containing only one signal Level 3 Name of the signal within a parameter Vector Informatik GmbH Version 7 5 169 J1587 Field Chn Time PID Value Unit Value Table Description 18 3 2 Diagnostics Monitor User Manual Description J1587 channel number of the channel on which the message was sent received absolute time since measurement start in seconds parameter ID PID of the message physical if applicable raw signal value unit of the signal value if applicable description of the signal
228. ulation setup of CANoe The VT window shows the Working Sets which have sent an object pool to the VT and the data masks With the softkeys you can control the VT With different views you can make additional settings watch the objects of the object pool and configure auxiliary inputs Note The sample Virtual Terminal Demo demonstrates the use of the VT window In contrast to the VT window you can define the graphic layout of the VT with the VT panel The panel is controlled with the Virtual Terminal DLL and the appropriate CAPL commands Reference More detailed information how to use this DLL and the CAPL functions you can find in the online help With the J1939 CAPL Generator you can generate source code for use with a Virtual Terminal To do this only an object pool file iop is required 15 3 2 Access process data Process data Interactive Task Controller J1939 CAPL Generator 15011783 Part 10 and Part 11 specify process data and their use These process data can be sum up in a process data dictionary so it contains all parameters functions and dimensions A process data dictionary can be described in device description file in the standardized XML format To easily access such a process data dictionary you can use the Interactive Task Controller At measurement start the process data dictionary is automatically sent to the Task Controller and graphically displayed A symbolic selection of the pro
229. urement In all three cases the time spacing between messages within the file is preserved If it is less than one millisecond transmission is delayed accordingly 7 4 Trigger block Trigger block The Trigger block is the same as the trigger for the logging block configuration You can place this Trigger not only in front of the Logging block but also everywhere hot spot in the measurement setup see chapter 5 8 102 Version 7 5 Vector Informatik GmbH User Manual Blocks and Filter 7 5 Filter and environment variable filter Reduce data volume The volume of data can be selectively reduced by using the filter block Toggling Filter environment variables between pass filters and a stop filters will pass or block those identifiers and or identifier ranges that are specified All messages of a network node can be filtered as well In addition the message type affected by the filtering function can be set for the identifier as well as whether filtering should also apply to Error Frames R ee Type G Pass Filter v E Message Fiter H Node Fiter D Event Fiter View Edit Enabled Name 2 SendNode Channel Filter EngineDatalEEE m Diag_Request 0x200 2 emm A v Diag_Response 0x400 2 ID s 0x66 E m DiagRequest_Motor 0x601 Gateway 2 amd 2 DiagResponse_Motor 0x608 Engine 2 F EngineData 0x64 SE 2 Gg be F 0x123 0x127 1 EE A 0x345 1 Database
230. used ES CAN Statistics Monitor Sab CAN Channek CAN2 PowerTrain HIER 81 5 2 Simulation Simulation setup 5 2 1 Working in Working with different buses Bus architecture 5 2 2 Simulation Simulate networks Simulation with real bus Simulation without real bus 58 the simulation setup Via the shortcut menu right mouse button of the simulation setup you have access to standard operations like copy cut paste etc You can also apply these functions on different bus systems By means of the tabs at the bottom of the simulation setup window you can easily change between the different buses of your configuration Additionally you can easily shift objects Just select the object with the left mouse button and drag and drop it by pressing the left mouse button drag and drop For a simple indication and display of the real and the simulated bus the following colour code applies gt reale bus is displayed as a black line gt simulated bus is displayed as a red line mode At the beginning of the development process the network is fully simulated In this phase you can operate CANoe with or without a physical bus In the former case it is sufficient to connect the card s two CAN controllers to the bus In this case the operating mode in the simulation dialog remains set to Real Bus All messages generated in the simulation setup are then placed on the real bus If you work without a real bus a
231. value transmitted Value Table entry mapped to the signal value in CANdb database Overview The J1587 Diagnostics DC Monitor examines the transmitted diagnostic messages PIDs 194 196 displays their contents and enables requests in order to retrieve diagnostic data Functionality It exposes the following functionality KEE Overview of ECUs sending diagnostic messages Request of all diagnostic codes Display of active diagnostic codes of a specific ECU Display of inactive diagnostic codes of a specific ECU History View Illustrates status transitions of diagnostic codes Data Request View Enables requests of additional information Descriptive SCIl proprietary message of a specific code Deletion of an all Occurrence Count s Display of response messages 18 3 3 Trace window Overview When configuring the trace window you can choose J1587 specific fields to be displayed Functionality For option J1587 the following columns are available in the trace window Field Title Function Source MID MID of the message Destination Receiver receiver MID for proprietary and transport protocol messages Name Name Name of the parameter if the message contains only one parameter or if the message contains more than one parameter DLC DLC Length of the data field inclusive MID and checksum 170 Version 7 5 Vector Informatik GmbH User Manual J1587 Field Title Function Data Data The message data in deci
232. ve use of an Ethernet interface You can configure your Ethernet interface for an exclusive use by CANoe IP That prevents Windows and other applications using this interface and influencing a connected embedded network Vice versa an embedded network cannot influence your Windows system With the Netlsolator you can configure this setting easily and simplify the use of an Ethernet interface which is connected e g to an office network sometime and to an embedded network another time Le om Time Channel Dir ID e DriveTemperature v Acceleration e o Speed 3 3 9 010004 ETH 1 Tx 101 Vector Netlsolator A SensorState Vector CANoe IP A 3 ExampleSignalProtocol dil KOCH ExampleSignalProtocol lt Windows system Figure 58 Using the Netlsolator for exclusive interface use Vector Informatik GmbH Version 7 5 163 IP User Manual 17 3 Use cases General In this chapter some use cases are described to illustrate how you can use the different extensions of the option IP 17 3 1 Analyze Ethernet networks General You can analyze Ethernet packets and messages on the bus with the trace window as well as the data and graphic window of CANoe IP Trace window The trace window shows you the Ethernet packets which are received at the Ethernet port of your computer independent if your computer is the receiver of the packet or not H Note If your network system has included a switch the c
233. w the message is transmitted In trigger mode cyclic the message will be transmitted with the corresponding cycle time Every change of the data values here e g of CAL_AIRSPEED_float will take effect on the next transmission Vector Informatik GmbH Version 7 5 175 User Manual Appendix A Support 20 Appendix A Support Need support What our support team needs to know Software Hardware Computer PCMCIA card Error description Customer data Our hotline can be reached gt by calling 49 711 80670 200 gt by email support vector informatik de gt or by filling out our Problem Report form online To answer your support questions quickly whether by phone e mail fax or mail we require the following information gt Detailed description of the software hardware model and version number e g CANoe 5 2 70 SP3 CANcardXL gt Serial number Note You will find this information in CANoe under Help Info gt Exact description of the hardware e g CANcardXL gt Hardware serial number gt Driver and firmware versions You will find this information in the Windows menu under Start Settings Control Panel Vector Hardware Select the CANcardXL or CANcaseXL entry in this menu and click on Hardware info If you have hardware problems gt The veaninfo exe log file gt Detailed description e g Toshiba Tecra 8000 gt Laptop or desktop PC gt Operating system e g Windows 2000 SP
234. wing menu commands for inserting function blocks Device MOST Bus CAN Insert network node Insert test module Insert test module XML Insert generator block CAN Insert interactive generator block Insert replay block CAN Insert GNSS Simulator Insert 31939 Diagnostics Memory Access Bus LIN Insert network node Insert test module Insert test module XML Insert interactive generator block Insert interactive LIN Master Insert replay block LIN Bus FlexRay Insert network node Insert test module Insert test module XML Insert FlexRay Frame Panel Insert replay block FlexRay Insert network node Insert test module Insert test module XML Insert MOST NetworkMaster Insert MOST PowerMaster Insert interactive generator block MOST I tee Insert replay block MOST nson Insert Insert Insert Switch all blocks to simulation Switch all blocks to simulation Switch all blocks to real time mode Switch all blocks to real time mode Switch all blocks to simulation Switch all blocks to simulation Switch all blocks to real time mode Switch all blocks to real time mode The following table gives you an overview where in the data flow the function blocks should be practically inserted Funktion block Typ Symbol Reasonable place of use Generator block Data source G Simulation setup Interaktiver Generator Data source IG Simulation setup block Replay block Data source R Simulation setup Stop filter Data s
235. y SDO in a simulated node D Note The Test Automation Editor from Vector makes it easy to create application I tests based on XML which can be executed directly in CANoe From a list of predefined templates it is possible to put together any desired test sequences e g setting and evaluating environment variables Vector Informatik GmbH Version 7 5 157 CANopen User Manual 16 4 2 1 Stimulate PDOS As part of the generation process a simulation model is created for each node of the system see Generate CANopen simulations section Among other things this model implements the PDO configuration that has already been described with ProCANopen If an environment variable that symbolizes the switch of an input is set the associated PDO transfer is triggered set signal 1 triggers PDO 1 In another environment variable the state of the mapped output is saved for comparison purposes get signal 1 l Simulated Simulated get signal 2 em e e e ee ee ee ee ee rm pm node node Test Test set signal 1 sequence report L 4 PDO 1 a i ni DO O ae a CaN I i a ei c Si 1 PDO 2 Si SI Se eae te eee ee A e i Kc ai At By D Device under test Additional HY node node i Output Input l i D Leen i H H d H i A Figure 56 Test setup A significant advantage of this approach is that test sequences can also be appl
Download Pdf Manuals
Related Search
Related Contents
PDF hosted at the Radboud Repository of the Radboud University "取扱説明書" Philips Sonicare medium brush heads HX4002/20 Sasquatch 1000W MANUAL DE INSTALAÇÃO OPERAÇÃO E GE Articulating Fiberscopes - NDT Brochure Copyright © All rights reserved.
Failed to retrieve file