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
5d079920
Commit
5d079920
authored
Aug 19, 2016
by
garciay
Browse files
Upgrade Certificate from H:\STF517
Validate RSUsimulator against AtsSremSsem in non secured mode
parent
d04ca2d5
Changes
20
Hide whitespace changes
Inline
Side-by-side
data/gencerts.cfg
View file @
5d079920
...
...
@@ -5,12 +5,17 @@ reuse=yes
format=hex
# Reference time point. The begining of the current year is used by default
#reftime=201
5
-01-01
#reftime=201
6
-01-01
# location of the IUT position
reflocation=
51.4744200:5.6240500
reflocation=
43.552545:10.300891
# custom AID to be used to test GenericMessageProfile
macro=CAM:36
macro=DENM:37
macro=GENERIC:39
macro=GENERIC:38
# local region: Italy
macro=RGN_LOCAL:380
# Other region: France
macro=RGN_OTHER:250
data/profiles/CERT_IUT_E_AT.xml
View file @
5d079920
...
...
@@ -22,7 +22,7 @@
<validity>
<restriction
type=
"time"
start=
"+0d"
end=
"+365d"
/>
<restriction
type=
"region"
>
<id
dictionary=
"iso_3166_1"
id=
"
528
"
local=
"0"
/>
<!--
N
L -->
<id
dictionary=
"iso_3166_1"
id=
"
RGN_LOCAL
"
local=
"0"
/>
<!-- L
ocal region
-->
</restriction>
</validity>
<signature
algorithm=
"0"
/>
...
...
data/profiles/CERT_TS_09_01_BV_AT.xml
View file @
5d079920
...
...
@@ -25,7 +25,7 @@
<validity>
<restriction
type=
"time"
start=
"+0d"
end=
"+365d"
/>
<restriction
type=
"region"
>
<id
dictionary=
"iso_3166_1"
id=
"
250
"
local=
"0"
/>
<!--
France
-->
<id
dictionary=
"iso_3166_1"
id=
"
RGN_LOCAL
"
local=
"0"
/>
<!--
Local region
-->
</restriction>
</validity>
<signature
algorithm=
"0"
/>
...
...
data/profiles/CERT_TS_09_02_BV_AT.xml
View file @
5d079920
...
...
@@ -25,7 +25,7 @@
<validity>
<restriction
type=
"time"
start=
"+0d"
end=
"+365d"
/>
<restriction
type=
"region"
>
<id
dictionary=
"iso_3166_1"
id=
"
250
"
local=
"1"
/>
<!--
France
-->
<id
dictionary=
"iso_3166_1"
id=
"
RGN_LOCAL
"
local=
"1"
/>
<!--
Local Region
-->
</restriction>
</validity>
<signature
algorithm=
"0"
/>
...
...
data/profiles/CERT_TS_09_03_BV_AT.xml
View file @
5d079920
...
...
@@ -23,7 +23,7 @@
<validity>
<restriction
type=
"time"
start=
"+0d"
end=
"+365d"
/>
<restriction
type=
"region"
>
<id
dictionary=
"iso_3166_1"
id=
"
250
"
local=
"1"
/>
<!--
France
-->
<id
dictionary=
"iso_3166_1"
id=
"
RGN_LOCAL
"
local=
"1"
/>
<!--
Local Region
-->
</restriction>
</validity>
<signature
algorithm=
"0"
/>
...
...
data/profiles/CERT_TS_09_04_BV_AT.xml
View file @
5d079920
...
...
@@ -22,7 +22,7 @@
<validity>
<restriction
type=
"time"
start=
"+0d"
end=
"+365d"
/>
<restriction
type=
"region"
>
<id
dictionary=
"iso_3166_1"
id=
"
250
"
local=
"1"
/>
<!--
France
-->
<id
dictionary=
"iso_3166_1"
id=
"
RGN_LOCAL
"
local=
"1"
/>
<!--
Local region
-->
</restriction>
</validity>
<signature
algorithm=
"0"
/>
...
...
data/profiles/CERT_TS_09_05_BV_AT.xml
View file @
5d079920
...
...
@@ -22,7 +22,7 @@
<validity>
<restriction
type=
"time"
start=
"+0d"
end=
"+365d"
/>
<restriction
type=
"region"
>
<id
dictionary=
"iso_3166_1"
id=
"
250
"
local=
"1"
/>
<!--
France
-->
<id
dictionary=
"iso_3166_1"
id=
"
RGN_LOCAL
"
local=
"1"
/>
<!--
Local Region
-->
</restriction>
</validity>
<signature
algorithm=
"0"
/>
...
...
data/profiles/CERT_TS_09_06_BV_AT.xml
View file @
5d079920
...
...
@@ -26,7 +26,7 @@
<validity>
<restriction
type=
"time"
start=
"+0d"
end=
"+365d"
/>
<restriction
type=
"region"
>
<id
dictionary=
"un_stats"
id=
"
250
"
local=
"0"
/>
<!--
France
-->
<id
dictionary=
"un_stats"
id=
"
RGN_LOCAL
"
local=
"0"
/>
<!--
Local Region
-->
</restriction>
</validity>
<signature
algorithm=
"0"
/>
...
...
data/profiles/CERT_TS_09_08_BO_AA.xml
View file @
5d079920
...
...
@@ -23,7 +23,7 @@
<validity>
<restriction
type=
"time"
start=
"-365d"
end=
"+365d"
/>
<restriction
type=
"region"
>
<id
dictionary=
"iso_3166_1"
id=
"
250
"
local=
"1"
/>
<!--
France
-->
<id
dictionary=
"iso_3166_1"
id=
"
RGN_LOCAL
"
local=
"1"
/>
<!--
Local Region
-->
</restriction>
</validity>
<signature
algorithm=
"0"
/>
...
...
data/profiles/CERT_TS_09_08_BO_AT.xml
View file @
5d079920
...
...
@@ -23,7 +23,7 @@
<validity>
<restriction
type=
"time"
start=
"+0d"
end=
"+365d"
/>
<restriction
type=
"region"
>
<id
dictionary=
"iso_3166_1"
id=
"
250
"
local=
"2"
/>
<!--
France
-->
<id
dictionary=
"iso_3166_1"
id=
"
RGN_OTHER
"
local=
"2"
/>
<!--
Other Region
-->
</restriction>
</validity>
<signature
algorithm=
"0"
/>
...
...
data/profiles/CERT_TS_09_09_BO_AA.xml
View file @
5d079920
...
...
@@ -23,7 +23,7 @@
<validity>
<restriction
type=
"time"
start=
"+0d"
end=
"+365d"
/>
<restriction
type=
"region"
>
<id
dictionary=
"iso_3166_1"
id=
"
56
"
local=
"0"
/>
<!--
Belgium
-->
<id
dictionary=
"iso_3166_1"
id=
"
RGN_OTHER
"
local=
"0"
/>
<!--
Other Region
-->
</restriction>
</validity>
<signature
algorithm=
"0"
/>
...
...
data/profiles/CERT_TS_09_09_BO_AT.xml
View file @
5d079920
...
...
@@ -23,7 +23,7 @@
<validity>
<restriction
type=
"time"
start=
"+0d"
end=
"+365d"
/>
<restriction
type=
"region"
>
<id
dictionary=
"iso_3166_1"
id=
"
250
"
local=
"0"
/>
<!--
France
-->
<id
dictionary=
"iso_3166_1"
id=
"
RGN_LOCAL
"
local=
"0"
/>
<!--
Local Region
-->
</restriction>
</validity>
<signature
algorithm=
"0"
/>
...
...
data/profiles/CERT_TS_E1_AA.xml
View file @
5d079920
...
...
@@ -27,7 +27,7 @@
<validity>
<restriction
type=
"time"
start=
"+0d"
end=
"+365d"
/>
<restriction
type=
"region"
>
<id
dictionary=
"iso_3166_1"
id=
"
528
"
local=
"1"
/>
<!--
N
L -->
<id
dictionary=
"iso_3166_1"
id=
"
RGN_LOCAL
"
local=
"1"
/>
<!-- L
ocal Region
-->
</restriction>
</validity>
<signature
algorithm=
"0"
/>
...
...
data/profiles/CERT_TS_E_AA.xml
View file @
5d079920
...
...
@@ -27,7 +27,7 @@
<validity>
<restriction
type=
"time"
start=
"+0d"
end=
"+365d"
/>
<restriction
type=
"region"
>
<id
dictionary=
"iso_3166_1"
id=
"
528
"
local=
"0"
/>
<!--
N
L -->
<id
dictionary=
"iso_3166_1"
id=
"
RGN_LOCAL
"
local=
"0"
/>
<!-- L
ocal Region
-->
</restriction>
</validity>
<signature
algorithm=
"0"
/>
...
...
data/profiles/CERT_TS_E_AT.xml
View file @
5d079920
...
...
@@ -27,7 +27,7 @@
<validity>
<restriction
type=
"time"
start=
"+0d"
end=
"+365d"
/>
<restriction
type=
"region"
>
<id
dictionary=
"iso_3166_1"
id=
"
528
"
local=
"0"
/>
<!--
N
L -->
<id
dictionary=
"iso_3166_1"
id=
"
RGN_LOCAL
"
local=
"0"
/>
<!-- L
ocal Region
-->
</restriction>
</validity>
<signature
algorithm=
"0"
/>
...
...
data/profiles/CERT_TS_MSG_13_06_BO_AT.xml
View file @
5d079920
<!-- Authorization ticket certificate with a polygonal region restriction
Center: 10km to the west from base point
Side length: 10km
<!-- Authorization ticket certificate with a identified region restriction
-->
<certificate
name=
"CERT_TS_MSG_13_06_BO_AT"
>
<version>
2
</version>
...
...
@@ -26,7 +24,7 @@
<validity>
<restriction
type=
"time"
start=
"+0d"
end=
"+365d"
/>
<restriction
type=
"region"
>
<id
dictionary=
"iso_3166_1"
id=
"
56
"
local=
"0"
/>
<!--
Belgium
-->
<id
dictionary=
"iso_3166_1"
id=
"
RGN_OTHER
"
local=
"0"
/>
<!--
Other Region
-->
</restriction>
</validity>
<signature
algorithm=
"0"
/>
...
...
data/profiles/Makefile
View file @
5d079920
outdir
=
../certificates
config
=
../gencerts.cfg
installdir
=
C:
\U
sers
\f
ilatov
\D
ocuments
\D
ropbox
\Y
ann
\c
ertificates
\P
LU
distzip
=
$(outdir)
/plu_ts_certificates.zip
...
...
@@ -8,9 +9,9 @@ distzip=$(outdir)/plu_ts_certificates.zip
depdir
=
.deps
keydir
=
$(outdir)
GENOPTS
:=
-C
config.cfg
GENOPTS
:=
-C
"
$(config)
"
itscertgen
=
"../../itscertgen.exe"
itscertgen
=
"../itscertgen.exe"
profiles
:=
$(
wildcard
CERT_
*
.xml
)
profiles_iut_at
:=
$(
wildcard
CERT_IUT_
*
AT.xml
)
profiles_other
:=
$(
filter-out
$(profiles_iut_at)
,
$(profiles)
)
...
...
ttcn/AtsRSUsSimulator/ItsRSUsSimulator_Functions.ttcn
View file @
5d079920
...
...
@@ -416,7 +416,6 @@ module ItsRSUsSimulator_Functions {
if
(
ispresent
(
p_geoNetworkingPdu
.
gnPacket
.
packet
.
payload
.
decodedPayload
.
btpPacket
.
payload
.
decodedPayload
))
{
if
(
ischosen
(
p_geoNetworkingPdu
.
gnPacket
.
packet
.
payload
.
decodedPayload
.
btpPacket
.
payload
.
decodedPayload
.
sremPacket
))
{
var
SignalRequestMessage
v_signalRequestMessage
:=
p_geoNetworkingPdu
.
gnPacket
.
packet
.
payload
.
decodedPayload
.
btpPacket
.
payload
.
decodedPayload
.
sremPacket
.
srm
;
var
template
(
value
)
SSEM
v_ssem
:=
vc_rsuMessagesValueList
[
PX_RSU_ID
-
1
].
ssem
;
var
template
(
value
)
Payload
v_payload
;
log
(
v_signalRequestMessage
);
...
...
@@ -427,8 +426,9 @@ module ItsRSUsSimulator_Functions {
bit2oct
(
encvalue
(
valueof
(
v_ssem
))),
m_ssem
(
v_signalRequestMessage
)))),
PICS_SSEM_BTP_DESTINATION_PORT
,
PICS_SSEM_BTP_SOURCE_PORT
)
...
...
ttcn/AtsRSUsSimulator/ItsRSUsSimulator_Templates.ttcn
View file @
5d079920
...
...
@@ -95,6 +95,28 @@ module ItsRSUsSimulator_Templates {
}
}
/**
* @desc Receive template for GeoNetworking Unicast 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_srem
(
in
template
(
present
)
UInt16
p_seqNumber
:=
?
,
in
template
(
present
)
LongPosVector
p_sourceLongPosVec
:=
?
,
in
template
(
value
)
NextHeader
p_nextHeader
)
modifies
mw_geoNwTsbPacketWithNextHeader
:=
{
payload
:=
{
decodedPayload
:=
{
btpPacket
:=
mw_btpB
(
PICS_SREM_BTP_DESTINATION_PORT
,
PICS_SREM_BTP_SOURCE_PORT
,
?
)
},
rawPayload
:=
?
}
}
}
// End of group geoNetworkingTemplates
...
...
ttcn/AtsRSUsSimulator/ItsRSUsSimulator_TestCases.ttcn
View file @
5d079920
...
...
@@ -54,18 +54,13 @@ 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_geoNwBroadcastPacketWithNextHeader_srem
(
// FIXM Geobroadcast or TSB? mw_geoNwBroadcastPacketWithNextHeader_srem
mw_geoNwTsbPacketWithNextHeader_srem
(
?
,
?
,
e_btpB
...
...
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