-
Notifications
You must be signed in to change notification settings - Fork 171
/
Vehicle.vspec
542 lines (453 loc) · 16.1 KB
/
Vehicle.vspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
# Copyright (c) 2016 Contributors to COVESA
#
# This program and the accompanying materials are made available under the
# terms of the Mozilla Public License 2.0 which is available at
# https://www.mozilla.org/en-US/MPL/2.0/
#
# SPDX-License-Identifier: MPL-2.0
#
# Highlevel vehicle signals and attributes.
#
#
# VSS Versioning information
#
VersionVSS:
type: branch
description: Supported Version of VSS.
VersionVSS.Major:
datatype: uint32
type: attribute
default: 6
description: Supported Version of VSS - Major version.
VersionVSS.Minor:
datatype: uint32
type: attribute
default: 0
description: Supported Version of VSS - Minor version.
VersionVSS.Patch:
datatype: uint32
type: attribute
default: 0
description: Supported Version of VSS - Patch version.
VersionVSS.Label:
datatype: string
type: attribute
default: 'dev'
description: Label to further describe the version.
comment: COVESA VSS project typically use dev for latest master, and empty string for released versions.
#
# Vehicle identification attributes.
#
VehicleIdentification:
type: branch
description: Attributes that identify a vehicle.
VehicleIdentification.VIN:
datatype: string
type: attribute
description: 17-character Vehicle Identification Number (VIN) as defined by ISO 3779.
pattern: ^([0-9A-HJ-NPR-Z]{3})([0-9A-HJ-NPR-Z]{6})([0-9A-HJ-NPR-Z]{4}[0-9]{4})$
VehicleIdentification.WMI:
datatype: string
type: attribute
description: 3-character World Manufacturer Identification (WMI) as defined by ISO 3780.
VehicleIdentification.Brand:
datatype: string
type: attribute
description: Vehicle brand or manufacturer.
VehicleIdentification.Model:
datatype: string
type: attribute
description: Vehicle model.
VehicleIdentification.Year:
datatype: uint16
type: attribute
description: Model year of the vehicle.
#
# Imports from https://schema.org/Car
# Names from https://schema.org/Car reused, but first character capitalized
# Example: Original schema.org name: https://schema.org/acrissCode
# Name used in VSS: VehicleIdentification.AcrissCode
# Note: Only a subset of the properties from https://schema.org/Car have been imported.
VehicleIdentification.AcrissCode:
datatype: string
type: attribute
description: The ACRISS Car Classification Code is a code used by many car rental companies.
VehicleIdentification.BodyType:
datatype: string
type: attribute
description: Indicates the design and body style of the vehicle (e.g. station wagon, hatchback, etc.).
VehicleIdentification.DateVehicleFirstRegistered:
datatype: string
type: attribute
unit: iso8601
description: The date in ISO 8601 format of the first registration of the vehicle with the respective public authorities.
VehicleIdentification.LicensePlate:
datatype: string
type: attribute
description: The license plate of the vehicle.
comment: Depending on the context, this attribute might not be up to date or might be misconfigured, and therefore should be considered untrustworthy in the absence of another method of verification.
VehicleIdentification.MeetsEmissionStandard:
datatype: string
type: attribute
description: Indicates that the vehicle meets the respective emission standard.
VehicleIdentification.ProductionDate:
datatype: string
type: attribute
unit: iso8601
description: The date in ISO 8601 format of production of the item, e.g. vehicle.
VehicleIdentification.PurchaseDate:
datatype: string
type: attribute
unit: iso8601
description: The date in ISO 8601 format of the item e.g. vehicle was purchased by the current owner.
VehicleIdentification.VehicleModelDate:
datatype: string
type: attribute
unit: iso8601
description: The release date in ISO 8601 format of a vehicle model (often used to differentiate versions of the same make and model).
VehicleIdentification.VehicleConfiguration:
datatype: string
type: attribute
description: A short text indicating the configuration of the vehicle, e.g. '5dr hatchback ST 2.5 MT 225 hp' or 'limited edition'.
VehicleIdentification.VehicleSeatingCapacity:
datatype: uint16
type: attribute
description: The number of passengers that can be seated in the vehicle, both in terms of the physical space available, and in terms of limitations set by law.
VehicleIdentification.VehicleSpecialUsage:
datatype: string
type: attribute
description: Indicates whether the vehicle has been used for special purposes, like commercial rental, driving school.
VehicleIdentification.VehicleExteriorColor:
datatype: string
type: attribute
description: The main color of the exterior within the basic color palette (eg. red, blue, black, white, ...).
VehicleIdentification.VehicleInteriorColor:
datatype: string
type: attribute
description: The color or color combination of the interior of the vehicle.
VehicleIdentification.VehicleInteriorType:
datatype: string
type: attribute
description: The type or material of the interior of the vehicle (e.g. synthetic fabric, leather, wood, etc.).
VehicleIdentification.KnownVehicleDamages:
datatype: string
type: attribute
description: A textual description of known damages, both repaired and unrepaired.
VehicleIdentification.OptionalExtras:
datatype: string[]
type: attribute
description: Optional extras refers to all car equipment options that are not installed as standard by the manufacturer.
comment: Allowed values are not standardized, each OEM can specify detail descriptions of array elements.
#
# Vehicle signals
#
LowVoltageSystemState:
datatype: string
type: sensor
allowed: [
'UNDEFINED', # State of low voltage system not known
'LOCK', # Low voltage system off, steering lock or equivalent engaged
'OFF', # Low voltage system off, steering lock or equivalent not engaged
'ACC', # Vehicle Accessories on/living
'ON', # Engine start enabled (e.g. ignition on, diesel pre-heating, electrical drive released)
'START' # Engine starter relay closed (not applicable for electrical vehicles)
]
description: State of the supply voltage of the control units (usually 12V).
##
# Low voltage battery
##
LowVoltageBattery:
type: branch
description: Signals related to low voltage battery.
#include Battery.vspec LowVoltageBattery
Speed:
datatype: float
type: sensor
unit: km/h
description: Vehicle speed.
TraveledDistance:
datatype: float
type: sensor
unit: km
description: Odometer reading, total distance traveled during the lifetime of the vehicle.
TraveledDistanceSinceStart:
datatype: float
type: sensor
unit: km
description: Distance traveled since start of current trip.
comment: A new trip is considered to start when engine gets enabled (e.g. LowVoltageSystemState in ON or START mode).
A trip is considered to end when engine is no longer enabled.
The signal may however keep the value of the last trip until a new trip is started.
StartTime:
datatype: string
type: attribute
default: '0000-01-01T00:00Z'
unit: iso8601
description: Start time of current or latest trip, formatted according to ISO 8601 with UTC time zone.
comment: This signal is supposed to be set whenever a new trip starts.
A new trip is considered to start when engine gets enabled (e.g. LowVoltageSystemState in ON or START mode).
A trip is considered to end when engine is no longer enabled.
The default value indicates that the vehicle never has been started, or that latest start time is unknown.
TripDuration:
datatype: float
type: sensor
unit: s
description: Duration of latest trip.
comment: This signal is not assumed to be continuously updated, but instead set to 0 when a trip starts
and set to the actual duration of the trip when a trip ends.
A new trip is considered to start when engine gets enabled (e.g. LowVoltageSystemState in ON or START mode).
A trip is considered to end when engine is no longer enabled.
TripMeterReading:
datatype: float
type: actuator
unit: km
description: Trip meter reading.
comment: The trip meter is an odometer that can be manually reset by the driver
IsBrokenDown:
datatype: boolean
type: sensor
description: Vehicle breakdown or any similar event causing vehicle to stop on the road,
that might pose a risk to other road users.
True = Vehicle broken down on the road, due to e.g. engine problems, flat tire, out of gas, brake problems.
False = Vehicle not broken down.
comment: Actual criteria and method used to decide if a vehicle is broken down is implementation specific.
IsMoving:
datatype: boolean
type: sensor
description: Indicates whether the vehicle is stationary or moving.
AverageSpeed:
datatype: float
type: sensor
unit: km/h
description: Average speed for the current trip.
comment: A new trip is considered to start when engine gets enabled (e.g. LowVoltageSystemState in ON or START mode).
A trip is considered to end when engine is no longer enabled.
The signal may however keep the value of the last trip until a new trip is started.
Calculation of average speed may exclude periods when the vehicle for example is not moving or transmission is in neutral.
#
# Spatial Acceleration
#
Acceleration:
type: branch
description: Spatial acceleration. Axis definitions according to ISO 8855.
Acceleration.Longitudinal:
datatype: float
type: sensor
unit: m/s^2
description: Vehicle acceleration in X (longitudinal acceleration).
Acceleration.Lateral:
datatype: float
type: sensor
unit: m/s^2
description: Vehicle acceleration in Y (lateral acceleration).
Acceleration.Vertical:
datatype: float
type: sensor
unit: m/s^2
description: Vehicle acceleration in Z (vertical acceleration).
#
# Spatial Rotation
#
AngularVelocity:
type: branch
description: Spatial rotation. Axis definitions according to ISO 8855.
AngularVelocity.Roll:
datatype: float
type: sensor
unit: degrees/s
description: Vehicle rotation rate along X (longitudinal).
AngularVelocity.Pitch:
datatype: float
type: sensor
unit: degrees/s
description: Vehicle rotation rate along Y (lateral).
AngularVelocity.Yaw:
datatype: float
type: sensor
unit: degrees/s
description: Vehicle rotation rate along Z (vertical).
#
# Schema from schema.org
#
RoofLoad:
datatype: int16
type: attribute
unit: kg
description: The permitted total weight of cargo and installations (e.g. a roof rack) on top of the vehicle.
CargoVolume:
datatype: float
type: attribute
unit: l
description: The available volume for cargo or luggage. For automobiles, this is usually the trunk volume.
min: 0
EmissionsCO2:
datatype: int16
type: attribute
description: The CO2 emissions.
unit: g/km
#
# Vehicle Weight and Dimension attributes
#
CurrentOverallWeight:
datatype: uint16
type: sensor
unit: kg
description: Current overall Vehicle weight. Including passengers, cargo and other load inside the car.
CurbWeight:
datatype: uint16
type: attribute
default: 0
unit: kg
description: Vehicle curb weight, including all liquids and full tank of fuel, but no cargo or passengers.
GrossWeight:
datatype: uint16
type: attribute
default: 0
unit: kg
description: Curb weight of vehicle, including all liquids and full tank of fuel and full load of cargo and passengers.
MaxTowWeight:
datatype: uint16
type: attribute
default: 0
unit: kg
description: Maximum weight of trailer.
MaxTowBallWeight:
datatype: uint16
type: attribute
default: 0
unit: kg
description: Maximum vertical weight on the tow ball of a trailer.
Length:
datatype: uint16
type: attribute
default: 0
unit: mm
description: Overall vehicle length.
Height:
datatype: uint16
type: attribute
default: 0
unit: mm
description: Overall vehicle height.
WidthExcludingMirrors:
datatype: uint16
type: attribute
default: 0
unit: mm
description: Overall vehicle width excluding mirrors, as defined by SAE J1100-2009 W103.
WidthIncludingMirrors:
datatype: uint16
type: attribute
unit: mm
description: Overall vehicle width including mirrors, as defined by SAE J1100-2009 W144.
WidthFoldedMirrors:
datatype: uint16
type: attribute
unit: mm
description: Overall vehicle width with mirrors folded, as defined by SAE J1100-2009 W145.
TurningDiameter:
datatype: uint16
type: attribute
unit: mm
description: Minimum turning diameter, Wall-to-Wall, as defined by SAE J1100-2009 D102.
#
# Trailer
#
Trailer:
type: branch
description: Trailer signals.
Trailer.IsConnected:
datatype: boolean
type: sensor
description: Signal indicating if trailer is connected or not.
#
# Location
#
CurrentLocation:
type: branch
description: The current latitude and longitude of the vehicle.
CurrentLocation.Timestamp:
datatype: string
type: sensor
unit: iso8601
description: Timestamp from GNSS system for current location, formatted according to ISO 8601 with UTC time zone.
CurrentLocation.Latitude:
datatype: double
type: sensor
min: -90
max: 90
unit: degrees
description: Current latitude of vehicle in WGS 84 geodetic coordinates, as measured at the position of GNSS receiver antenna.
CurrentLocation.Longitude:
datatype: double
type: sensor
min: -180
max: 180
unit: degrees
description: Current longitude of vehicle in WGS 84 geodetic coordinates, as measured at the position of GNSS receiver antenna.
CurrentLocation.Heading:
datatype: double
type: sensor
min: 0
max: 360
unit: degrees
description: Current heading relative to geographic north.
0 = North, 90 = East, 180 = South, 270 = West.
CurrentLocation.HorizontalAccuracy:
datatype: double
type: sensor
unit: m
description: Accuracy of the latitude and longitude coordinates.
CurrentLocation.Altitude:
datatype: double
type: sensor
unit: m
description: Current altitude relative to WGS 84 reference ellipsoid, as measured at the position of GNSS receiver antenna.
CurrentLocation.VerticalAccuracy:
datatype: double
type: sensor
unit: m
description: Accuracy of altitude.
CurrentLocation.GNSSReceiver:
type: branch
description: Information on the GNSS receiver used for determining current location.
CurrentLocation.GNSSReceiver.FixType:
datatype: string
type: sensor
allowed: ['NONE',
'TWO_D',
'TWO_D_SATELLITE_BASED_AUGMENTATION',
'TWO_D_GROUND_BASED_AUGMENTATION',
'TWO_D_SATELLITE_AND_GROUND_BASED_AUGMENTATION',
'THREE_D',
'THREE_D_SATELLITE_BASED_AUGMENTATION',
'THREE_D_GROUND_BASED_AUGMENTATION',
'THREE_D_SATELLITE_AND_GROUND_BASED_AUGMENTATION']
description: Fix status of GNSS receiver.
CurrentLocation.GNSSReceiver.MountingPosition:
type: branch
description: Mounting position of GNSS receiver antenna relative to vehicle coordinate system.
Axis definitions according to ISO 8855. Origin at center of (first) rear axle.
CurrentLocation.GNSSReceiver.MountingPosition.X:
datatype: int16
type: attribute
unit: mm
description: Mounting position of GNSS receiver antenna relative to vehicle coordinate system.
Axis definitions according to ISO 8855. Origin at center of (first) rear axle.
Positive values = forward of rear axle. Negative values = backward of rear axle.
CurrentLocation.GNSSReceiver.MountingPosition.Y:
datatype: int16
type: attribute
unit: mm
description: Mounting position of GNSS receiver antenna relative to vehicle coordinate system.
Axis definitions according to ISO 8855. Origin at center of (first) rear axle.
Positive values = left of origin. Negative values = right of origin.
Left/Right is as seen from driver perspective, i.e. by a person looking forward.
CurrentLocation.GNSSReceiver.MountingPosition.Z:
datatype: int16
type: attribute
unit: mm
description: Mounting position of GNSS receiver on Z-axis.
Axis definitions according to ISO 8855. Origin at center of (first) rear axle.
Positive values = above center of rear axle. Negative values = below center of rear axle.
#include include/PowerOptimize.vspec