Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ITS - Intelligent Transport Systems
ITS
Commits
ef202bd6
Commit
ef202bd6
authored
Aug 22, 2016
by
garciay
Browse files
Start updating RSUsimulator/CAM & DENM according to the ETSI ITS-CMS5 Plugtest/track coordinates
parent
860cf30d
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
ttcn/AtsRSUsSimulator/ItsRSUsSimulator_Functions.ttcn
View file @
ef202bd6
...
...
@@ -142,15 +142,17 @@ module ItsRSUsSimulator_Functions {
// DENM
if
(
PICS_GENERATE_DENM
)
{
// Build the list of the DENM events
for
(
v_counter
:=
0
;
v_counter
<
lengthof
(
PICS_DENM_EVENTS_RSU
[
PX_RSU_ID
-
1
]);
v_counter
:=
v_counter
+
1
)
{
// Build DENM with dynamic values
for
(
v_counter
:=
0
;
v_counter
<
lengthof
(
PICS_DENM_EVENTS_RSU
[
PX_RSU_ID
-
1
][
PX_ETSI_ZONE_ID
]);
v_counter
:=
v_counter
+
1
)
{
var
DenmEventsParmsPerZone
v_denmEventsParmsPerZone
:=
PICS_DENM_EVENTS_RSU
[
PX_RSU_ID
-
1
][
PX_ETSI_ZONE_ID
];
v_denmParmContainers
:=
m_denmParmContainers
(
PICS_RSU_PARAMS
[
PX_RSU_ID
-
1
].
stationID
,
f_incDenmSequenceNumber
(),
PICS_DENM_REPETITION_INTERVAL
,
PICS_DENM_EVENTS_RSU
[
PX_RSU_ID
-
1
][
v_counter
].
eventPosition
,
PICS_DENM_EVENTS_RSU
[
PX_RSU_ID
-
1
][
v_counter
].
causeCodeType
,
PICS_DENM_EVENTS_RSU
[
PX_RSU_ID
-
1
][
v_counter
].
eventHistory
v_denmEventsParmsPerZone
[
v_counter
].
eventPosition
,
v_denmEventsParmsPerZone
[
v_counter
].
causeCodeType
,
v_denmEventsParmsPerZone
[
v_counter
].
eventHistory
,
v_denmEventsParmsPerZone
[
v_counter
].
traces
);
v_denms
[
v_counter
]
:=
valueof
(
m_denmPdu
(
...
...
@@ -159,8 +161,8 @@ module ItsRSUsSimulator_Functions {
v_denmParmContainers
.
situationContainer
,
v_denmParmContainers
.
locationContainer
)));
if
(
ispresent
(
PICS_DENM_EVENTS_RSU
[
PX_RSU_ID
-
1
]
[
v_counter
].
roadWorksContainerExtended
))
{
v_denms
[
v_counter
].
denm
.
alacarte
:=
m_alacarte
(
PICS_DENM_EVENTS_RSU
[
PX_RSU_ID
-
1
]
[
v_counter
].
roadWorksContainerExtended
);
if
(
ispresent
(
v_denmEventsParmsPerZone
[
v_counter
].
roadWorksContainerExtended
))
{
v_denms
[
v_counter
].
denm
.
alacarte
:=
m_alacarte
(
v_denmEventsParmsPerZone
[
v_counter
].
roadWorksContainerExtended
);
}
}
// End of 'for' statement
}
...
...
@@ -279,7 +281,7 @@ module ItsRSUsSimulator_Functions {
// Rebuild SPATEM message
for
(
var
integer
v_intersection
:=
0
;
v_intersection
<
lengthof
(
v_spatem
.
spat
.
intersections
);
v_intersection
:=
v_intersection
+
1
)
{
var
template
(
value
)
MovementList
v_states
:=
vc_states
[
PX_RSU_ID
-
1
][
v_intersection
];
var
template
(
value
)
MovementList
v_states
:=
vc_states
[
PX_RSU_ID
-
1
][
v_intersection
];
select
(
vc_spatemStatesId
)
{
case
(
0
)
{
v_spatem
.
spat
.
intersections
[
v_intersection
].
states
[
0
]
:=
v_states
[
0
];
...
...
ttcn/AtsRSUsSimulator/ItsRSUsSimulator_Pics.ttcn
View file @
ef202bd6
This diff is collapsed.
Click to expand it.
ttcn/AtsRSUsSimulator/ItsRSUsSimulator_Pixits.ttcn
View file @
ef202bd6
...
...
@@ -19,9 +19,19 @@ module ItsRSUsSimulator_Pixits {
import
from
ItsRSUsSimulator_TypesAndValues
all
;
import
from
ItsRSUsSimulator_Pics
all
;
modulepar
integer
PX_ETSI_USE_CASE_ID
:=
0
;
/**
* @desc Indicate which RSU to simulate
*/
modulepar
integer
PX_RSU_ID
:=
11
;
modulepar
integer
PX_RSU_ID
:=
1
;
// 1: D1, 2: D2
/**
* @desc Indicate which Use Case to simulate
*/
modulepar
integer
PX_ETSI_USE_CASE_ID
:=
1
;
/**
* @desc Indicate which zone to simulate
*/
modulepar
integer
PX_ETSI_ZONE_ID
:=
1
;
}
// End of module ItsRSUsSimulator_Pixits
ttcn/AtsRSUsSimulator/ItsRSUsSimulator_Templates.ttcn
View file @
ef202bd6
...
...
@@ -254,6 +254,7 @@ module ItsRSUsSimulator_Templates {
in
template
(
value
)
ReferencePosition
p_eventPosition
,
in
template
(
value
)
CauseCodeType
p_causeCodeType
,
in
template
(
value
)
EventHistory
p_eventHistory
,
in
template
(
value
)
Traces
p_traces
,
in
template
(
value
)
ValidityDuration
p_validityDuration
:=
86400
,
in
template
(
value
)
RelevanceDistance
p_relevanceDistance
:=
lessThan200m
)
:=
{
...
...
@@ -284,18 +285,7 @@ module ItsRSUsSimulator_Templates {
locationContainer
:=
{
eventSpeed
:=
omit
,
eventPositionHeading
:=
omit
,
traces
:=
{
{
{
pathPosition
:=
{
deltaLatitude
:=
0
,
deltaLongitude
:=
0
,
deltaAltitude
:=
0
},
pathDeltaTime
:=
0
}
}
},
traces
:=
p_traces
,
roadType
:=
omit
}
// End of field locationContainer
}
// End of template m_denmParm
...
...
ttcn/AtsRSUsSimulator/ItsRSUsSimulator_TestSystem.ttcn
View file @
ef202bd6
...
...
@@ -17,33 +17,33 @@ module ItsRSUsSimulator_TestSystem {
*/
type
component
ItsRSUsSimulator
extends
ItsGeoNetworking
{
/**
* @dec RSU position
* @de
s
c RSU position
*/
var
LongPosVector
vc_longPosVectorRsu
:=
{};
/**
* @dec RSU Geonetworking area
* @de
s
c RSU Geonetworking area
*/
var
GeoArea
vc_geoArea
:=
{};
/**
* @dec Supported sent messages templates: one or more from CAM, DENM, MAPEM, SPATEM, IVIM, SSEM
* @de
s
c Supported sent messages templates: one or more from CAM, DENM, MAPEM, SPATEM, IVIM, SSEM
* @see PICS_GENERATE_xxx
*/
var
template
(
value
)
RsuMessagesValueList
vc_rsuMessagesValueList
:=
{};
/**
* @dec DENM event counter: one RSU can send one or mode different DENM
* @de
s
c DENM event counter: one RSU can send one or mode different DENM
*/
var
integer
vc_denmEventCounter
:=
0
;
/**
* @dec DENM sequence number index
* @de
s
c DENM sequence number index
*/
var
SequenceNumber
vc_sequenceNumber
:=
0
;
var
MsgCount
vc_msgIssueRevision
:=
0
;
/**
* @dec List of MovementState per intersection and per RSU
* @de
s
c List of MovementState per intersection and per RSU
*/
var
template
(
value
)
MovementListPerIntersectionRsu
vc_states
;
/**
* @dec Current SPATEM state
* @de
s
c Current SPATEM state
*/
var
integer
vc_spatemStatesId
:=
0
;
...
...
ttcn/AtsRSUsSimulator/ItsRSUsSimulator_TypesAndValues.ttcn
View file @
ef202bd6
...
...
@@ -197,9 +197,20 @@ module ItsRSUsSimulator_TypesAndValues {
ReferencePosition
eventPosition
,
CauseCodeType
causeCodeType
,
EventHistory
eventHistory
,
Traces
traces
,
RoadWorksContainerExtended
roadWorksContainerExtended
optional
}
// End of type DenmParm
/**
* @desc List of DENM events per use case
* @see <wiki URL>
* <pre>
* v_denmParm := PICS_DENM_PARMS_UC1_RWW[PX_ETSI_ZONE_ID][vc_eventId];
* vc_eventId := (vc_eventId + 1) mod lengthof(PICS_DENM_PARMS_UC1_RWW)
* </pre>
*/
type
record
of
DenmParm
DenmEventsParmsPerZone
;
/**
* @desc List of DENM events per use case
* @see <wiki URL>
...
...
@@ -208,13 +219,13 @@ module ItsRSUsSimulator_TypesAndValues {
* vc_eventId := (vc_eventId + 1) mod lengthof(PICS_DENM_PARMS_UC1_RWW)
* </pre>
*/
type
record
of
Denm
Parm
DenmEventsParmsUseCase
;
type
record
of
Denm
EventsParmsPerZone
DenmEventsParmsUseCase
;
/**
* @desc List of DENM events per use case and per RSUs
* <pre>
* v_denmParm := PICS_DENM_EVENTS_RSU[PX_RSU_ID - 1][PX_ETSI_USE_CASE_ID][vc_eventId];
* vc_eventId := (vc_eventId + 1) mod lengthof(PICS_DENM_EVENTS_RSU[PX_RSU_ID - 1][PX_ETSI_USE_CASE_ID])
* v_denmParm := PICS_DENM_EVENTS_RSU[PX_RSU_ID - 1][PX_ETSI_USE_CASE_ID
- 1
][vc_eventId];
* vc_eventId := (vc_eventId + 1) mod lengthof(PICS_DENM_EVENTS_RSU[PX_RSU_ID - 1][PX_ETSI_USE_CASE_ID
- 1
])
* </pre>
*/
type
record
of
DenmEventsParmsUseCase
DenmEventsParmsUseCaseRsu
;
...
...
ttcn/AtsSremSsem/ItsSrem_TpFunctions.ttcn
View file @
ef202bd6
...
...
@@ -553,7 +553,7 @@ module ItsSrem_TpFunctions {
f_selfOrClientSyncAndVerdictPreamble
(
c_prDone
,
e_success
);
// Test Body
// Send S
S
EM
// Send S
R
EM
sremSsemPort
.
send
(
m_sremReq
(
m_sremPdu
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment