Newer
Older
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
module ItsAutoInterop_Templates {
// LibCommon
import from LibCommon_BasicTypesAndValues all;
// LibIts
import from ITS_Container language "ASN.1:1997" all;
import from CAM_PDU_Descriptions language "ASN.1:1997" all;
import from DENM_PDU_Descriptions language "ASN.1:1997" all;
// LibItsCommon
import from LibItsCommon_Functions all;
import from LibCommon_DataStrings all;
import from LibItsExternal_TypesAndValues all;
// LibItsGeoNetworking
import from LibItsGeoNetworking_TestSystem all;
import from LibItsGeoNetworking_Functions all;
import from LibItsGeoNetworking_Templates all;
import from LibItsGeoNetworking_TypesAndValues all;
// LibItsBtp
import from LibItsBtp_TypesAndValues all;
import from LibItsBtp_Templates all;
// LibItsCam
import from LibItsCam_Templates all;
// LibItsDenm
import from LibItsDenm_Templates all;
// ItsInterop
import from ItsAutoInterop_TypesAndValues all;
import from ItsAutoInterop_Pics all;
import from ItsAutoInterop_TestSystem all;
group eutGeoNetworkingTemplates {
template (value) EutGeoNetworking m_forward_geoNetworkingInd(
in template (value) GeoNetworkingInd p_geoNetworkingInd
) := {
msg := valueof(p_geoNetworkingInd.msgIn),
macDestinationAddress := valueof(p_geoNetworkingInd.macDestinationAddress),
ssp := valueof(p_geoNetworkingInd.ssp),
its_aid := valueof(p_geoNetworkingInd.its_aid)
} // End of template m_forward_geoNetworkingInd
/**
* @desc Receive template for EUT GeoNetworking packet (GeonetworkingPort Primitive)
* @param p_geoNwMsg GeoNetworking packet to be received
*/
template (present) EutGeoNetworking mw_eutGeoNwInd(
template (present) GeoNetworkingPdu p_geoNwMsg
) := {
msg := p_geoNwMsg,
macDestinationAddress := ?,
ssp := *,
its_aid := *
} // End of template mw_eutGeoNwInd
/**
* @desc Receive template for EUT GeoNetworking packet (GeonetworkingPort Primitive)
* @param p_geoNwMsg GeoNetworking packet to be received
* @param p_llDestinationAdress Link-layer destination address
*/
template(present) EutGeoNetworking mw_eutGeoNwInd_withLinkLayerDestination(
template (present) GeoNetworkingPdu p_geoNwMsg,
template (present) MacAddress p_llDestinationAdress
) modifies mw_eutGeoNwInd := {
macDestinationAddress := p_llDestinationAdress
} // End of template mw_eutGeoNwInd_withLinkLayerDestination
} // End of group eutGeoNetworkingTemplates
group geoNetworkingTemplates {
/**
* @desc Receive template for GeoNetworking DENM Packet
* @param p_destinationShortPosVec Short position vector of destination
* @param p_seqNumber Sequence number of GeoUnicast packet
* @param p_nextHeader Id of next header
*/
template (present) GnNonSecuredPacket mw_geoNwTsbPacketWithNextHeader_denm(
template (present) LongPosVector p_sourceLongPosVec := ?,
template (present) UInt8 p_hopLimit := ?,
template (present) NextHeader p_nextHeader := ?,
template (present) DENM p_denm := ?
) modifies mw_geoNwShbPacket := {
commonHeader := mw_commonHeaderWithHopLimit(
p_nextHeader,
m_shbHeaderType,
p_hopLimit
),
payload := {
decodedPayload := {
btpPacket := mw_btpB(
PICS_DENM_BTP_DESTINATION_PORT,
PICS_DENM_BTP_SOURCE_PORT,
{
decodedPayload := {
denmPacket := p_denm
},
rawPayload := ?
}
)
},
rawPayload := ?
}
} // End of template mw_geoNwTsbPacketWithNextHeader_denm
/**
* @desc Receive template for GeoNetworking CAM Packet
* @param p_destinationShortPosVec Short position vector of destination
* @param p_seqNumber Sequence number of GeoUnicast packet
* @param p_nextHeader Id of next header
*/
template (present) GnNonSecuredPacket mw_geoNwShbPacketWithNextHeader_cam(
template (present) LongPosVector p_sourceLongPosVec := ?,
template (present) UInt8 p_hopLimit := ?,
template (present) NextHeader p_nextHeader,
template (present) CAM p_cam := ?
) modifies mw_geoNwShbPacket := {
payload := {
decodedPayload := {
btpPacket := mw_btpB(
PICS_CAM_BTP_DESTINATION_PORT,
PICS_CAM_BTP_SOURCE_PORT,
{
decodedPayload := {
camPacket := p_cam
},
rawPayload := ?
}
)
},
rawPayload := ?
}
} // End of template mw_geoNwShbPacketWithNextHeader_cam
} // End of group geoNetworkingTemplates
group camTemplates {
template (present) CAM mw_cam_stationId(
template (present) BasicVehicleContainerHighFrequency p_basicVehicleContainer := mw_HF_BV_speed(?),
template (present) StationID p_stationId := ?,
template (present) ReferencePosition p_referencePosition := ?
) modifies mw_camMsg_HF_BV := {
header := {
stationID := p_stationId
},
cam := {
camParameters := {
basicContainer := {
stationType := ?,
referencePosition := p_referencePosition
}
}
}
} // End of template mw_cam_stationId
} // End of group camTemplates
group denmTemplates {
template (present) DENM mw_denm_stationId(
template (present) StationID p_stationId := ?,
template (present) DecentralizedEnvironmentalNotificationMessage p_denm := ?
) := mw_denmPdu(p_denm, p_stationId) // End of template mw_denm_stationId
} // End of group denmTemplates
group utPrimitiveTemplates {
template (value) HmiNeighborEventInd m_hmiNeighborEventInd(
in Oct6 p_mid,
in UInt32 p_stationId
) := {
mid := p_mid,
stationId := p_stationId
} // End of template m_hmiNeighborEventInd
}
} // End of module ItsAutoInterop_Templates