Skip to content

Commit 0966fa8

Browse files
committed
2.0 entitys
1 parent c83fd0f commit 0966fa8

File tree

4 files changed

+240
-0
lines changed

4 files changed

+240
-0
lines changed
Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
ApplicationDataModule
2+
3+
DEFINITIONS
4+
AUTOMATIC TAGS ::=
5+
BEGIN
6+
MP_SecurityAlarmResp ::= SEQUENCE
7+
{
8+
securityAlarms SEQUENCE SIZE(1..256) OF SecurityAlarm OPTIONAL
9+
}
10+
OTA_RVMVehicleStatusReq ::= SEQUENCE
11+
{
12+
vehStatusReqType INTEGER(0..255)
13+
}
14+
OTA_RVMVehicleStatusResp ::= SEQUENCE
15+
{
16+
statusTime INTEGER(0..2147483647),
17+
gpsPosition RvsPosition(1),
18+
basicVehicleStatus RvsBasicStatus(1),
19+
extendedVehicleStatus RvsExtStatus(1) OPTIONAL
20+
}
21+
OTA_RVCReq ::= SEQUENCE
22+
{
23+
rvcReqType OCTET STRING(SIZE(1)),
24+
rvcParams SEQUENCE SIZE(1..10) OF RvcReqParam OPTIONAL
25+
}
26+
OTA_RVCStatus ::= SEQUENCE
27+
{
28+
rvcReqType OCTET STRING(SIZE(1)),
29+
rvcReqSts OCTET STRING(SIZE(1)),
30+
failureType INTEGER(0..255) OPTIONAL,
31+
gpsPosition RvsPosition(1),
32+
basicVehicleStatus RvsBasicStatus(1)
33+
}
34+
SecurityAlarm ::= SEQUENCE
35+
{
36+
title OCTET STRING(SIZE(1..128)) OPTIONAL,
37+
content OCTET STRING(SIZE(1..2048)) OPTIONAL,
38+
messageType IA5String(SIZE(3)),
39+
vin IA5String(SIZE(17)),
40+
alertId INTEGER(0..65535),
41+
alertTime INTEGER(0..2147483647) OPTIONAL,
42+
latitude INTEGER(-90000000..90000000),
43+
longitude INTEGER(-180000000..180000000)
44+
}
45+
RvsPosition ::= SEQUENCE
46+
{
47+
wayPoint RvsWayPoint,
48+
timestamp4Short Timestamp4Short,
49+
gpsStatus GPSStatus
50+
}
51+
RvsBasicStatus ::= SEQUENCE
52+
{
53+
driverDoor BOOLEAN,
54+
passengerDoor BOOLEAN,
55+
rearLeftDoor BOOLEAN,
56+
rearRightDoor BOOLEAN,
57+
bootStatus BOOLEAN,
58+
bonnetStatus BOOLEAN,
59+
lockStatus BOOLEAN,
60+
driverWindow BOOLEAN OPTIONAL,
61+
passengerWindow BOOLEAN OPTIONAL,
62+
rearLeftWindow BOOLEAN OPTIONAL,
63+
rearRightWindow BOOLEAN OPTIONAL,
64+
sunroofStatus BOOLEAN OPTIONAL,
65+
frontRrightTyrePressure INTEGER(0..255) OPTIONAL,
66+
frontLeftTyrePressure INTEGER(0..255) OPTIONAL,
67+
rearRightTyrePressure INTEGER(0..255) OPTIONAL,
68+
rearLeftTyrePressure INTEGER(0..255) OPTIONAL,
69+
wheelTyreMonitorStatus INTEGER(0..255) OPTIONAL,
70+
sideLightStatus BOOLEAN,
71+
dippedBeamStatus BOOLEAN,
72+
mainBeamStatus BOOLEAN,
73+
vehicleAlarmStatus INTEGER(0..255) OPTIONAL,
74+
engineStatus INTEGER(0..255),
75+
powerMode INTEGER(0..255),
76+
lastKeySeen INTEGER(0..65535),
77+
currentjourneyDistance INTEGER(0..65535),
78+
currentJourneyID INTEGER(0..2147483647),
79+
interiorTemperature INTEGER(-128..127),
80+
exteriorTemperature INTEGER(-128..127),
81+
fuelLevelPrc INTEGER(0..255),
82+
fuelRange INTEGER(0..65535),
83+
remoteClimateStatus INTEGER(0..255),
84+
frontLeftSeatHeatLevel INTEGER(0..255) OPTIONAL,
85+
frontRightSeatHeatLevel INTEGER(0..255) OPTIONAL,
86+
canBusActive BOOLEAN,
87+
timeOfLastCANBUSActivity INTEGER(0..2147483647),
88+
clstrDspdFuelLvlSgmt INTEGER(0..255),
89+
mileage INTEGER(0..2147483647),
90+
batteryVoltage INTEGER(0..65535),
91+
extendedData1 INTEGER(0..2147483647) OPTIONAL,
92+
extendedData2 INTEGER(0..2147483647) OPTIONAL
93+
}
94+
RvsExtStatus ::= SEQUENCE
95+
{
96+
vehicleAlerts SEQUENCE SIZE(0..64) OF VehicleAlertInfo
97+
}
98+
RvcReqParam ::= SEQUENCE
99+
{
100+
paramId INTEGER(0..65535),
101+
paramValue OCTET STRING(SIZE(1..255))
102+
}
103+
RvsWayPoint ::= SEQUENCE
104+
{
105+
position RvsWGS84Point,
106+
heading INTEGER(0..359),
107+
speed INTEGER(-1000..4500),
108+
hdop INTEGER(0..1000),
109+
satellites INTEGER(0..16)
110+
}
111+
Timestamp4Short ::= SEQUENCE
112+
{
113+
seconds INTEGER(0..2147483647)
114+
}
115+
GPSStatus ::= ENUMERATED
116+
{
117+
noGpsSignal(0),
118+
timeFix(1),
119+
fix2D(2),
120+
fix3D(3)
121+
}
122+
VehicleAlertInfo ::= SEQUENCE
123+
{
124+
id INTEGER(0..255),
125+
value INTEGER(0..255)
126+
}
127+
RvsWGS84Point ::= SEQUENCE
128+
{
129+
latitude INTEGER(-90000000..90000000),
130+
longitude INTEGER(-180000000..180000000),
131+
altitude INTEGER(-100..8900)
132+
}
133+
134+
END
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
MP_DispatcherBodyModule
2+
3+
DEFINITIONS
4+
AUTOMATIC TAGS ::=
5+
BEGIN
6+
MP_DispatcherBody ::= SEQUENCE
7+
{
8+
uid IA5String(SIZE(50)) OPTIONAL,
9+
token IA5String(SIZE(40)) OPTIONAL,
10+
applicationID IA5String(SIZE(3)),
11+
vin IA5String(SIZE(17)) OPTIONAL,
12+
messageID INTEGER(0..255),
13+
eventCreationTime INTEGER(0..2147483647),
14+
eventID INTEGER(0..2147483647) OPTIONAL,
15+
ulMessageCounter INTEGER(0..65535) OPTIONAL,
16+
dlMessageCounter INTEGER(0..65535) OPTIONAL,
17+
ackMessageCounter INTEGER(0..65535) OPTIONAL,
18+
ackRequired BOOLEAN OPTIONAL,
19+
applicationDataLength INTEGER(0..65535) OPTIONAL,
20+
applicationDataEncoding DataEncodingType OPTIONAL,
21+
applicationDataProtocolVersion INTEGER(0..65535) OPTIONAL,
22+
testFlag INTEGER(1..3) OPTIONAL,
23+
result INTEGER(0..65535) OPTIONAL,
24+
errorMessage OCTET STRING(SIZE(1..1024)) OPTIONAL
25+
}
26+
DataEncodingType ::= ENUMERATED
27+
{
28+
perUnaligned(0),
29+
der(1),
30+
ber(2)
31+
}
32+
33+
END
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
MP_DispatcherHeaderModule
2+
3+
DEFINITIONS
4+
AUTOMATIC TAGS ::=
5+
BEGIN
6+
MP_DispatcherHeader ::= SEQUENCE
7+
{
8+
dispatcherBodyEncoding INTEGER(0..2),
9+
dispatcherMessageLength INTEGER(0..255),
10+
protocolVersion INTEGER(0..255)
11+
}
12+
13+
END

saic-java-api/pom.xml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,66 @@
128128
</arguments>
129129
</configuration>
130130
</execution>
131+
<execution>
132+
<id>generate-dispatcher-header-v2_0</id>
133+
<goals>
134+
<goal>java</goal>
135+
</goals>
136+
<phase>process-sources</phase>
137+
<configuration>
138+
<mainClass>org.bn.compiler.Main</mainClass>
139+
<arguments>
140+
<argument>-m</argument>
141+
<argument>java</argument>
142+
<argument>-o</argument>
143+
<argument>${project.build.directory}/generated-sources/asn1-java/net/heberling/ismart/asn1/v2_0</argument>
144+
<argument>-f</argument>
145+
<argument>${project.basedir}/../ASN.1 schema/v2_0/MP_DispatcherHeader.asn1</argument>
146+
<argument>-ns</argument>
147+
<argument>net.heberling.ismart.asn1.v2_0</argument>
148+
</arguments>
149+
</configuration>
150+
</execution>
151+
<execution>
152+
<id>generate-dispatcher-body-mp-v2_0</id>
153+
<goals>
154+
<goal>java</goal>
155+
</goals>
156+
<phase>process-sources</phase>
157+
<configuration>
158+
<mainClass>org.bn.compiler.Main</mainClass>
159+
<arguments>
160+
<argument>-m</argument>
161+
<argument>java</argument>
162+
<argument>-o</argument>
163+
<argument>${project.build.directory}/generated-sources/asn1-java/net/heberling/ismart/asn1/v2_0</argument>
164+
<argument>-f</argument>
165+
<argument>${project.basedir}/../ASN.1 schema/v2_0/MP_DispatcherBody.asn1</argument>
166+
<argument>-ns</argument>
167+
<argument>net.heberling.ismart.asn1.v2_0</argument>
168+
</arguments>
169+
</configuration>
170+
</execution>
171+
<execution>
172+
<id>generate-application-data-mp-v2_0</id>
173+
<goals>
174+
<goal>java</goal>
175+
</goals>
176+
<phase>process-sources</phase>
177+
<configuration>
178+
<mainClass>org.bn.compiler.Main</mainClass>
179+
<arguments>
180+
<argument>-m</argument>
181+
<argument>java</argument>
182+
<argument>-o</argument>
183+
<argument>${project.build.directory}/generated-sources/asn1-java/net/heberling/ismart/asn1/v2_0/entity</argument>
184+
<argument>-f</argument>
185+
<argument>${project.basedir}/../ASN.1 schema/v2_1+0/ApplicationData.asn1</argument>
186+
<argument>-ns</argument>
187+
<argument>net.heberling.ismart.asn1.v2_0.entity</argument>
188+
</arguments>
189+
</configuration>
190+
</execution>
131191
<execution>
132192
<id>generate-dispatcher-header-v2_1</id>
133193
<goals>

0 commit comments

Comments
 (0)