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
686d1885
Commit
686d1885
authored
Aug 12, 2016
by
garciay
Browse files
Validate MAPEM testValidate RSUsimulator against AtsMapem in unsecured mode
parent
47f4d24e
Changes
3
Hide whitespace changes
Inline
Side-by-side
javasrc/tool/org/etsi/its/tool/elvior/LibItsMapemSpatem_asn1.java
View file @
686d1885
...
...
@@ -24,10 +24,10 @@ public class LibItsMapemSpatem_asn1 extends LibIts_asn1 {
public
Value
decode
(
final
TriMessage
message
,
final
Type
decodingHypothesis
)
{
_logger
.
entering
(
"LibItsMapemSpatem_asn1"
,
"decode"
,
decodingHypothesis
.
getName
());
if
(
decodingHypothesis
.
getName
().
endsWith
(
"
mapemPacket
"
))
{
if
(
decodingHypothesis
.
getName
().
endsWith
(
"
MAPEM
"
))
{
Type
type
=
getTypeForName
(
"MAPEM_PDU_Descriptions.MAPEM"
);
return
super
.
decode
(
message
,
type
);
}
else
if
(
decodingHypothesis
.
getName
().
endsWith
(
"
spatemPacket
"
))
{
}
else
if
(
decodingHypothesis
.
getName
().
endsWith
(
"
SPATEM
"
))
{
Type
type
=
getTypeForName
(
"SPATEM_PDU_Descriptions.SPATEM"
);
return
super
.
decode
(
message
,
type
);
}
...
...
javasrc/tool/org/etsi/its/tool/elvior/LibIts_asn1.java
View file @
686d1885
...
...
@@ -59,7 +59,16 @@ public class LibIts_asn1 implements TciCDProvided {
msg
.
setEncodedMessage
(
message
.
getEncodedMessage
());
if
(
_logger
.
isLoggable
(
Level
.
ALL
))
ByteHelper
.
dump
(
"LibIts_asn1.decode: "
,
msg
.
getEncodedMessage
());
String
type
=
String
.
format
(
"%s.%s"
,
_encodingName
,
decodingHypothesis
.
getName
());
String
type
=
null
;
if
(
_encodingName
.
equals
(
"MAPEM_SPATEM_ETSI"
))
{
if
(
decodingHypothesis
.
getName
().
endsWith
(
"MAPEM"
))
{
type
=
String
.
format
(
"%s.%s"
,
"MAPEM_PDU_Descriptions"
,
decodingHypothesis
.
getName
());
}
else
{
type
=
String
.
format
(
"%s.%s"
,
"SPATEM_PDU_Descriptions"
,
decodingHypothesis
.
getName
());
}
}
else
{
type
=
String
.
format
(
"%s.%s"
,
_encodingName
,
decodingHypothesis
.
getName
());
}
_logger
.
info
(
"Type: "
+
type
);
Type
asnOriginalType
=
getTypeForName
(
type
);
// Check which type class the decoding hypothesis is of
...
...
javasrc/tool/org/etsi/its/tool/elvior/res/ta.properties
View file @
686d1885
...
...
@@ -5,7 +5,7 @@ camPort=BTP/GN/ETH
# Define the port/layer configuration for DENM
denmPort
=
BTP/GN/ETH
# Define the port/layer configuration for MAPEM-SPATEM
mapmSpate
n
mPort
=
BTP/GN/ETH
map
e
mSpatemPort
=
BTP/GN/ETH
# Define the port/layer configuration for IVIM
ivimPort
=
BTP/GN/ETH
# Define the port/layer configuration for SREM-SSEM
...
...
@@ -27,7 +27,7 @@ fsapPort=FSAP/UdpIp
UpperTesterSettings
=
172.17.15.38:12345
# Peer ITS station
LinkLayer_Peer
=
8BADF00D0
0
99
LinkLayer_Peer
=
8BADF00D0
1
99
# Define the MAC address of the Ethernet interface connected to the IUT device
# Home laptop VMWare MAC address
...
...
@@ -41,15 +41,15 @@ LocalEthernetMAC=00E08F008855
# Define the Ethernet type value used by the IUT
IutEthernetTypeValue
=
0x8947
# Node Ethernet addresses
LinkLayer_MTC
=
8BADF00D0
0
00
LinkLayer_MTC
=
8BADF00D0
1
00
# Link-Layer address of component NodeA
LinkLayer_NodeA
=
8BADF00D0
0
01
LinkLayer_NodeA
=
8BADF00D0
1
01
# Link-Layer address of component NodeB
LinkLayer_NodeB
=
8BADF00D0
0
02
LinkLayer_NodeB
=
8BADF00D0
1
02
# Link-Layer address of component NodeC
LinkLayer_NodeC
=
8BADF00D0
0
03
LinkLayer_NodeC
=
8BADF00D0
1
03
# Link-Layer address of component NodeD
LinkLayer_NodeD
=
8BADF00D0
0
04
LinkLayer_NodeD
=
8BADF00D0
1
04
# Interval between each beacon sent by TS (ms)
TsBeaconInterval
=
1000
# Latitude of Test System
...
...
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