OSEK/VDX
Communication
Specification
OSEK/VDX COM 2.2.2 ã by OSEK -1-
OSEK/VDX
Communication
Version 2.2.2
18
th
December 2000
This document is an official release and replaces all previously distributed documents. The OSEK group retains
the right to make changes to this document without notice and does not accept liability for errors.
All rights reserved. No part of this document may be reproduced, in any form or by any means, without
permission in writing from the OSEK/VDX steering committee.
OSEK/VDX
Communication
Specification
OSEK/VDX COM 2.2.2 ã by OSEK -2-
Table of Contents
1 INTRODUCTION....................................................................................................................................11
1.1 R
EQUIREMENTS......................................................................................................................................12
1.2 C
ONTENT AND STRUCTURE OF THE DOCUMENT ......................................................................................13
1.2.1 Communication protocol layers...................................................................................................13
1.2.2 System generation requirements..................................................................................................13
1.2.3 Communication conformance class .............................................................................................13
1.2.4 Changes between OSEK COM 2.1 r1 and this specification .......................................................13
1.3 C
OMMUNICATION CONCEPT....................................................................................................................14
2 INTERACTION LAYER.........................................................................................................................16
2.1 I
NTERACTION LAYER OVERVIEW.............................................................................................................16
2.1.1 Interaction layer operation..........................................................................................................16
2.1.2 Communication model .................................................................................................................16
2.1.3 Message concept..........................................................................................................................17
2.1.4 Queued and Unqueued messages.................................................................................................17
2.1.5 Messages copies...........................................................................................................................18
2.1.6 Direct and periodical transmission modes...................................................................................18
2.1.7 Message addressing.....................................................................................................................18
2.1.8 Message lengths...........................................................................................................................19
2.1.9 Application programming interface.............................................................................................19
2.1.10 Notifications.................................................................................................................................20
2.1.11 Deadline monitoring....................................................................................................................20
2.1.12 Portability support.......................................................................................................................21
2.2 I
NTERACTION LAYER SPECIFICATION ...................................................................................................... 22
2.2.1 Definitions....................................................................................................................................22
2.2.2 Initialisation and shutdown..........................................................................................................23
2.2.3 Communication model .................................................................................................................24
2.2.4 Messages......................................................................................................................................25
2.2.5 Addressing schemes .....................................................................................................................27
2.2.6 Data consistency model ...............................................................................................................28
2.2.7 Message transmission..................................................................................................................29
2.2.8 Message reception .......................................................................................................................34
2.2.9 Communication deadline monitoring...........................................................................................38
2.2.10 Notification mechanisms..............................................................................................................43
2.2.11 Interface to OSEK Indirect Network Management ......................................................................50
2.2.12 Application programming interface.............................................................................................51
2.2.13 Usage of OSEK COM services.....................................................................................................71
2.2.14 Mapping of interaction layer to network layer services...............................................................72
3 NETWORK LAYER................................................................................................................................73
3.1 N
ETWORK LAYER OVERVIEW.................................................................................................................. 73
3.1.1 Network Layer operation .............................................................................................................73
3.1.2 Unacknowledged Unsegmented Data Transfer............................................................................73
3.1.3 Unacknowledged Segmented Data Transfer................................................................................74
3.1.4 Network layer timing constraints.................................................................................................78
3.1.5 Interleaving of messages..............................................................................................................78
3.2 N
ETWORK LAYER SPECIFICATION ...........................................................................................................79
3.2.1 Definitions....................................................................................................................................79
3.2.2 Generality ....................................................................................................................................80
3.2.3 Unacknowledged Unsegmented Data Transfer............................................................................80
3.2.4 Unacknowledged Segmented Data Transfer................................................................................87
4 DATA LINK LAYER INTERFACE ....................................................................................................115
4.1 D
ATALINKLAYEROVERVIEW...............................................................................................................115
4.2 D
ATALINKLAYERSPECIFICATION........................................................................................................ 116
4.2.1 Definitions..................................................................................................................................116
4.2.2 Services for the network layer....................................................................................................117
OSEK/VDX
Communication
Specification
OSEK/VDX COM 2.2.2 ã by OSEK -3-
4.2.3 Services for the network management ....................................................................................... 119
4.2.4 Services for the network layer and network management .........................................................121
5 SYSTEM GENERATION REQUIREMENTS....................................................................................123
5.1 C
ONFORMANCE CLASS ......................................................................................................................... 124
5.1.1 Entity requirements....................................................................................................................124
5.1.2 Entity attributes requirements....................................................................................................124
5.2 U
NQUEUED MESSAGE........................................................................................................................... 125
5.2.1 Entity requirements....................................................................................................................127
5.2.2 Entity attributes requirements....................................................................................................127
5.2.3 Entity association requirements.................................................................................................127
5.3 Q
UEUED MESSAGE ............................................................................................................................... 130
5.3.1 Entity requirements....................................................................................................................131
5.3.2 Entity attributes requirements....................................................................................................131
5.3.3 Entity association requirements.................................................................................................132
5.4 M
ESSAGE ACCESSOR............................................................................................................................ 135
5.4.1 Entity requirements....................................................................................................................135
5.4.2 Entity attributes requirements....................................................................................................136
5.4.3 Entity association requirements.................................................................................................136
5.5 D
IRECT TRANSMISSION MODE SPECIFICATION....................................................................................... 138
5.5.1 Entity requirements....................................................................................................................138
5.5.2 Entity attributes requirements....................................................................................................138
5.5.3 Entity association requirements.................................................................................................138
5.6 P
ERIODICAL TRANSMISSION MODE SPECIFICATION................................................................................ 139
5.6.1 Entity requirements....................................................................................................................139
5.6.2 Entity attributes requirements....................................................................................................139
5.6.3 Entity association requirements.................................................................................................140
5.7 M
IXED TRANSMISSION MODE SPECIFICATION........................................................................................ 141
5.7.1 Entity requirements....................................................................................................................141
5.7.2 Entity attributes requirements....................................................................................................141
5.7.3 Entity association requirements.................................................................................................143
5.8 R
ECEPTION DEADLINE MONITORING SPECIFICATION ............................................................................. 144
5.8.1 Entity requirements....................................................................................................................144
5.8.2 Entity attributes requirements....................................................................................................145
5.8.3 Entity association requirements.................................................................................................145
5.9 T
RANSMISSION DEADLINE MONITORING SPECIFICATION ....................................................................... 146
5.9.1 Entity requirements....................................................................................................................146
5.9.2 Entity attributes requirements....................................................................................................147
5.9.3 Entity association requirements.................................................................................................147
5.10 T
ASK ............................................................................................................................................... 148
5.10.1 Entity requirements.................................................................................................................... 148
5.10.2 Entity attributes requirements....................................................................................................148
5.10.3 Entity association requirements.................................................................................................149
5.11 F
UNCTION........................................................................................................................................ 150
5.11.1 Entity requirements.................................................................................................................... 150
5.11.2 Entity attributes requirements....................................................................................................150
5.11.3 Entity association requirements.................................................................................................151
5.12 C
ALLBACK....................................................................................................................................... 152
5.12.1 Entity requirements.................................................................................................................... 152
5.12.2 Entity attributes requirements....................................................................................................152
5.12.3 Entity association requirements.................................................................................................153
5.13 E
VENT............................................................................................................................................. 155
5.13.1 Entity requirements.................................................................................................................... 155
5.13.2 Entity attributes requirements....................................................................................................156
5.13.3 Entity association requirements.................................................................................................156
5.14 F
LAG ............................................................................................................................................... 158
5.14.1 Entity requirements.................................................................................................................... 158
5.14.2 Entity attributes requirements....................................................................................................158
5.14.3 Entity association requirements.................................................................................................159
5.15 N
ETWORK HANDLE.......................................................................................................................... 161
OSEK/VDX
Communication
Specification
OSEK/VDX COM 2.2.2 ã by OSEK -4-
5.15.1 Entity requirements....................................................................................................................161
5.15.2 Entity attributes requirements....................................................................................................161
5.15.3 Entity association requirements.................................................................................................162
5.16 A
PPLICATION ADDRESS.................................................................................................................... 163
5.16.1 Entity requirements....................................................................................................................163
5.16.2 Entity attributes requirements....................................................................................................163
5.16.3 Entity association requirements.................................................................................................163
5.17 UUDT.............................................................................................................................................164
5.17.1 Entity requirements....................................................................................................................164
5.17.2 Entity attributes requirements....................................................................................................165
5.18 USDT..............................................................................................................................................166
5.18.1 Entity requirements....................................................................................................................167
5.18.2 Entity attributes requirements....................................................................................................167
6 CONFORMANCE CLASSES...............................................................................................................169
6.1 OSEK OS
SUPPORT.............................................................................................................................. 171
7 ANNEX....................................................................................................................................................172
7.1 CAN
BUS BINDING INTERFACE (NORMATIVE)....................................................................................... 173
7.1.1 Scope..........................................................................................................................................173
7.1.2 D_UUData.req...........................................................................................................................173
7.1.3 D_UUData.con..........................................................................................................................173
7.1.4 D_UUData.ind...........................................................................................................................174
7.2 U
SE OF ISO 15765-2 ADDRESSING FORMATS (INFORMATIVE) .............................................................. 175
7.2.1 Scope and concepts....................................................................................................................175
7.2.2 CAN frame data length ..............................................................................................................175
7.2.3 Normal addressing.....................................................................................................................175
7.2.4 Extended addressing..................................................................................................................177
7.3 U
SE OF ISO15765-2 ADDRESSING FORMATS WITH SAE J1939 (INFORMATIVE) ...................................179
7.3.1 Overview....................................................................................................................................179
7.3.2 Rules...........................................................................................................................................179
7.4 F
ORMAT OF SERVICE PRIMITIVES (NORMATIVE)....................................................................................181
7.5 D
EFINITION OF TIMING SYMBOLS (NORMATIVE).................................................................................... 183
8 HISTORY ...............................................................................................................................................184
OSEK/VDX
Communication
Specification
OSEK/VDX COM 2.2.2 ã by OSEK -5-
List of Figures
FIGURE 1-1: LAYER MODEL OF OSEK COM........................................................................................................ 14
F
IGURE 2-1: SYNCHRONOUS VS. ASYNCHRONOUS COMMUNICATION SCHEMES .................................................... 17
F
IGURE 2-2: OSEK COM INITIALISATION AND SHUTDOWN SERVICES.................................................................. 24
F
IGURE 2-3: MESSAGE ACCESSOR ........................................................................................................................ 27
F
IGURE 2-4: DIRECT TRANSMISSION MODE FOR EXTERNAL OR INTERNAL-EXTERNAL COMMUNICATION (WITHCOPY
CONFIGURATION
) ........................................................................................................................................ 30
F
IGURE 2-5: PERIODICAL TRANSMISSION MODE.................................................................................................... 31
F
IGURE 2-6: ACTIVATION/DE-ACTIVATION OF PERIODICAL TRANSMISSION MODE – ............................................. 31
F
IGURE 2-7: MIXED TRANSMISSION MODE............................................................................................................ 33
F
IGURE 2-8: BEHAVIOUR OF QUEUED MESSAGE .................................................................................................. 35
F
IGURE 2-9: BEHAVIOUR OF QUEUED MESSAGE WITH A QUEUE LENGTH EQUAL TO 1 .......................................... 35
F
IGURE 2-10: BEHAVIOUR OF UNQUEUED MESSAGE ............................................................................................ 36
F
IGURE 2-11: DIRECT TRANSMISSION MODE: EXAMPLE OF A SUCCESSFUL TRANSMISSION IN CASE OF UUDT
PROTOCOL................................................................................................................................................... 39
F
IGURE 2-12: DIRECT TRANSMISSION MODE: EXAMPLE OF A FAILED TRANSMISSION IN CASE OF UUDT PROTOCOL
................................................................................................................................................................... 39
F
IGURE 2-13: PERIODICAL TRANSMISSION MODE: SUCCESSFUL TRANSMISSION.................................................... 40
F
IGURE 2-14: PERIODICAL TRANSMISSION MODE: FAILED TRANSMISSIONS........................................................... 40
F
IGURE 2-15: MIXED TRANSMISSION MODE: SUCCESSFUL TRANSMISSIONS .......................................................... 41
F
IGURE 2-16: MIXED TRANSMISSION MODE: FAILED TRANSMISSIONS................................................................... 42
F
IGURE 2-17: PERIODICAL RECEPTION: CORRECT AND MISSING RECEPTIONS........................................................ 43
F
IGURE 2-18: CONDITIONAL NOTIFICATION DATA FLOW ....................................................................................... 46
F
IGURE 2-19: CONDITIONAL NOTIFICATION FLOW CHART ..................................................................................... 47
F
IGURE 3-1: UUDT MESSAGE TRANSMISSION ...................................................................................................... 74
F
IGURE 3-2: USDT SINGLE FRAME MESSAGE TRANSMISSION ............................................................................... 75
F
IGURE 3-3: USDT MULTIPLE FRAME MESSAGE TRANSMISSION........................................................................... 76
F
IGURE 3-4: N_HANDLE (UUDT) ........................................................................................................................ 81
F
IGURE 3-5: NETWORK DATA FIELD STRUCTURE (UUDT).................................................................................... 84
F
IGURE 3-6: SINGLE FRAME MESSAGE TRANSMISSION .......................................................................................... 85
F
IGURE 3-7: MAPPING-OUT (UUDT).................................................................................................................... 86
F
IGURE 3-8: MAPPING-IN (UUDT) ....................................................................................................................... 87
F
IGURE 3-9: N_HANDLE (USDT)......................................................................................................................... 88
F
IGURE 3-10: MULTIPLE FRAME MESSAGE TRANSMISSION.................................................................................... 95
F
IGURE 3-11: SINGLE FRAME MESSAGE TRANSMISSION ........................................................................................ 95
F
IGURE 3-12: N_DATA AND NPCI FIELDS TO DATA LINK USER DATA................................................................... 97
F
IGURE 3-13: PLACEMENT OF TIME INTERVALS.................................................................................................. 106
F
IGURE 3-14: MAPPING-OUT (USDT)................................................................................................................. 113
F
IGURE 3-15: MAPPING-IN (USDT).................................................................................................................... 114
F
IGURE 4-1: SEQUENCING OF D_UUDATA SERVICE PRIMITIVES......................................................................... 118
F
IGURE 6-1:CONFORMANCE CLASSES SUMMARY................................................................................................ 170
F
IGURE 7-1: LEGEND OF COMMUNICATION DEADLINE MONITORING ................................................................... 183
评论10