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
b5df7118
Commit
b5df7118
authored
Aug 18, 2016
by
garciay
Browse files
Validate RSUsimulator against AtsSremSsem in non secured mode
parent
617e48c2
Changes
3
Hide whitespace changes
Inline
Side-by-side
ttcn/AtsRSUsSimulator/ItsRSUsSimulator_Pics.ttcn
View file @
b5df7118
...
...
@@ -682,7 +682,7 @@ module ItsRSUsSimulator_Pics {
group
ivimCommonParams
{
modulepar
BtpPortId
PICS_IVIM_BTP_DESTINATION_PORT
:=
200
5
;
modulepar
BtpPortId
PICS_IVIM_BTP_DESTINATION_PORT
:=
200
6
;
modulepar
BtpPortId
PICS_IVIM_BTP_SOURCE_PORT
:=
0
;
...
...
@@ -714,7 +714,7 @@ module ItsRSUsSimulator_Pics {
group
ssemCommonParams
{
modulepar
BtpPortId
PICS_SSEM_BTP_DESTINATION_PORT
:=
200
5
;
modulepar
BtpPortId
PICS_SSEM_BTP_DESTINATION_PORT
:=
200
8
;
modulepar
BtpPortId
PICS_SSEM_BTP_SOURCE_PORT
:=
0
;
...
...
@@ -722,6 +722,18 @@ module ItsRSUsSimulator_Pics {
}
// End of group ssemEvents
group
sremEvents
{
group
sremCommonParams
{
modulepar
BtpPortId
PICS_SREM_BTP_DESTINATION_PORT
:=
2007
;
modulepar
BtpPortId
PICS_SREM_BTP_SOURCE_PORT
:=
0
;
}
// End of group sremCommonParams
}
// End of group sremEvents
group
generationFrequencies
{
modulepar
boolean
PICS_GENERATE_CAM
:=
true
;
...
...
ttcn/AtsRSUsSimulator/ItsRSUsSimulator_Templates.ttcn
View file @
b5df7118
...
...
@@ -78,16 +78,16 @@ module ItsRSUsSimulator_Templates {
* @param p_seqNumber Sequence number of GeoUnicast packet
* @param p_nextHeader Id of next header
*/
template
(
present
)
GnNonSecuredPacket
mw_geoNw
Uni
castPacketWithNextHeader_srem
(
in
template
(
present
)
Short
PosVector
p_
destinationShort
PosVec
,
in
template
(
present
)
UInt16
p_seqNumber
,
in
template
(
present
)
NextHeader
p_nextHeader
)
modifies
mw_geoNw
Uni
castPacketWithNextHeader
:=
{
template
(
present
)
GnNonSecuredPacket
mw_geoNw
Broad
castPacketWithNextHeader_srem
(
in
template
(
present
)
Long
PosVector
p_
sourceLong
PosVec
:=
?
,
in
template
(
present
)
UInt16
p_seqNumber
:=
?
,
in
template
(
present
)
NextHeader
p_nextHeader
:=
?
)
modifies
mw_geoNw
Broad
castPacketWithNextHeader
:=
{
payload
:=
{
decodedPayload
:=
{
btpPacket
:=
mw_btpB
(
?
,
// TODO
PICS_SREM_BTP_DESTINATION_PORT
?
,
PICS_SREM_BTP_DESTINATION_PORT
,
PICS_SREM_BTP_SOURCE_PORT
,
?
)
},
...
...
ttcn/AtsRSUsSimulator/ItsRSUsSimulator_TestCases.ttcn
View file @
b5df7118
...
...
@@ -54,19 +54,28 @@ module ItsRSUsSimulator_TestCases {
if
(
ispresent
(
vc_rsuMessagesValueList
[
PX_RSU_ID
-
1
].
ivim
))
{
tc_ivim
.
start
;
}
log
(
"Expected SREM:"
,
mw_geoNwInd
(
mw_geoNwPdu
(
mw_geoNwBroadcastPacketWithNextHeader_srem
(
?
,
?
,
e_btpB
))));
alt
{
[]
geoNetworkingPort
.
receive
(
mw_geoNwInd
(
mw_geoNwPdu
(
mw_geoNw
Uni
castPacketWithNextHeader_srem
(
mw_geoNw
Broad
castPacketWithNextHeader_srem
(
?
,
?
,
e_btpB
))))
->
value
v_gnInd
{
// Receive a SREM message
log
(
"*** "
&
testcasename
()
&
": DEBUG: Processing SREM ***"
);
f_processSrem
(
v_gnInd
.
msgIn
);
repeat
;
}
[]
geoNetworkingPort
.
receive
(
mw_geoNwInd
(
?
))
->
value
v_gnInd
{
// Receive a message
log
(
"*** "
&
testcasename
()
&
": DEBUG: Recieving unsollicited message ***"
);
// Nothing to do, just for logging purposes
repeat
;
}
...
...
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