Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ieee1609.2.1 #8

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ASN1/1609dot3/wsm.asn
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ IMPORTS

VarLengthNumber FROM CITSapplMgmtIDs {iso(1) standard(0) cits-applMgmt (17419) ids (1) version1 (1)} -- this is the p-encoded PSID

EXT-TYPE, Extension,RefExt,c-CompactTimeConfidence,c-ChannelLoad, c-Reserved, c-TxPowerUsed80211, c-DataRate80211, c-ChannelNumber80211, ChannelNumber80211, DataRate80211, TXpower80211 FROM IEEE-1609-3-WEE {iso(1) identified-organization(3) ieee(111) standards-association-numbered-series-standards(2) wave-stds(1609) dot3(3) wee(1) version0(0)}
EXT-TYPE, Extension,RefExt,c-CompactTimeConfidence,CompactTimeConfidence,c-ChannelLoad, c-Reserved, c-TxPowerUsed80211, c-DataRate80211, c-ChannelNumber80211, ChannelNumber80211, DataRate80211, TXpower80211 FROM IEEE-1609-3-WEE {iso(1) identified-organization(3) ieee(111) standards-association-numbered-series-standards(2) wave-stds(1609) dot3(3) wee(1) version0(0)}

;

Expand Down
2 changes: 1 addition & 1 deletion ASN1/Create_TCIall.bat
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ echo -- ======================================================================
echo.
)>"separator.txt"

copy /Y header.txt + TCIDispatcher.asn + separator.txt + TCI29451.asn + separator.txt + TCI31611.asn + separator.txt + TCI16093DSRC.asn + separator.txt + TCIproxyCv2x.asn + separator.txt + TCI16093PC5.asn + separator.txt + TCI16092.asn + separator.txt + TCI16094.asn + separator.txt + TCI80211.asn + separator.txt + TCISutControl.asn + separator.txt + TCIresponseInfo.asn + separator.txt + TCIindication.asn + separator.txt + TCIip.asn + separator.txt + TCIwsm.asn + separator.txt + TCIEventHandling.asn + separator.txt + TCICommonTypes.asn + separator.txt + "1609dot3\17419_CITSapplMgmtIDs_v1.asn" + separator.txt + "1609dot3\wee.asn" + separator.txt + "1609dot3\wsa.asn" + separator.txt + "1609dot3\EUTRA-RRC-Definitions.asn" + separator.txt + "1609dot3\EUTRA-Sidelink-Preconf.asn" /A TCIall.asn /B
copy /Y header.txt + TCIDispatcher.asn + separator.txt + TCI29451.asn + separator.txt + TCI31611.asn + separator.txt + TCI16093DSRC.asn + separator.txt + TCIproxyCv2x.asn + separator.txt + TCI16093PC5.asn + separator.txt + TCI16092.asn + separator.txt + TCI160921.asn + separator.txt + TCI16094.asn + separator.txt + TCI80211.asn + separator.txt + TCISutControl.asn + separator.txt + TCIresponseInfo.asn + separator.txt + TCIindication.asn + separator.txt + TCIip.asn + separator.txt + TCIwsm.asn + separator.txt + TCIEventHandling.asn + separator.txt + TCICommonTypes.asn + separator.txt + "1609dot3\17419_CITSapplMgmtIDs_v1.asn" + separator.txt + "1609dot3\wee.asn" + separator.txt + "1609dot3\wsa.asn" + separator.txt + "1609dot3\EUTRA-RRC-Definitions.asn" + separator.txt + "1609dot3\EUTRA-Sidelink-Preconf.asn" /A TCIall.asn /B

del separator.txt
del header.txt
Expand Down
84 changes: 84 additions & 0 deletions ASN1/TCI160921.asn
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
TCI-160921
DEFINITIONS AUTOMATIC TAGS ::=
BEGIN

IMPORTS
Exception,
Response,
MsgID FROM TCI-CommonTypes

ResponseInfo FROM TCI-responseInfo

Indication FROM TCI-indication

;


TCI160921 ::= CHOICE{
request [0] Request160921, -- Add new request message types
response [1] Response,
indication [2] Dot2Dot1Indication,
responseInfo [3] Dot2Dot1ResponseInfo,
exception [4] Exception,
...
}

SetInitialize ::= SEQUENCE {
bootstrapUrl VisibleString,
...
}

StartProvisioning ::= BOOLEAN

UnAuthorized ::= BOOLEAN
UnEnrolled ::= BOOLEAN
UnInitialized ::= BOOLEAN
Authorized ::= BOOLEAN

SetPKIState ::= CHOICE {
unInitialized [0] UnInitialized,
unEnrolled [1] UnEnrolled,
unAuthorized [2] UnAuthorized,
authorized [3] Authorized,
...
}

Request160921 ::= SEQUENCE {
messageId MESSAGE-ID-AND-TYPE160921.&id({MessageTypes}),
value MESSAGE-ID-AND-TYPE160921.&Type({MessageTypes}{@.messageId}),
...
}

MESSAGE-ID-AND-TYPE160921 ::= CLASS {
&id MsgID UNIQUE,
&Type
} WITH SYNTAX {&Type IDENTIFIED BY &id}

MessageTypes MESSAGE-ID-AND-TYPE160921 ::= {
{ SetInitialize IDENTIFIED BY setInitialize } |
{ SetPKIState IDENTIFIED BY setPKIState} |
{ StartProvisioning IDENTIFIED BY startProvisioning }
}

setInitialize MsgID ::= 1
setPKIState MsgID ::= 2
startProvisioning MsgID ::= 3



Dot2Dot1Indication ::= Indication (WITH COMPONENTS {
radio,
event ( eDot2Dot1),
eventParams ( WITH COMPONENTS {dot2dot1}) OPTIONAL,
pdu OPTIONAL,
exception OPTIONAL
})

Dot2Dot1ResponseInfo ::= ResponseInfo (WITH COMPONENTS {
msgID,
resultCode,
info (WITH COMPONENTS {ipv6InterfaceInfo}) OPTIONAL, -- Update InfoContent with security related parameters?
exception OPTIONAL
})

END
2 changes: 2 additions & 0 deletions ASN1/TCIDispatcher.asn
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ BEGIN
IMPORTS

TCIPROXYCV2X FROM TCI-CV2X-PROXY
TCI160921 FROM TCI-160921
TCI16093DSRC FROM TCI-16093-DSRC
TCI16093PC5 FROM TCI-16093-PC5
TCI16094 FROM TCI-16094
Expand Down Expand Up @@ -33,6 +34,7 @@ Frame ::=CHOICE {
...,
d16093cv2x [7] TCI16093PC5,
d31611 [8] TCI31611,
d160921 [9] TCI160921,
proxyCv2x [16] TCIPROXYCV2X
}

Expand Down
19 changes: 18 additions & 1 deletion ASN1/TCIindication.asn
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To allow for further future extension of the Event enumeration without breaking encoding compatibility, we should avoid using as many explicit values for the dot2dot1 events. I suggest changing the Event entry to a single ‘eDot2Dot1’ value. We can then extend the EventParams choice to include a new entry for dot2dot1Params. As an example:

EventParams ::= CHOICE{
service [0] ServiceParameters,
wsm [1] WsmParameters,
ip [2] IpParameters,
radioframe [3] RadioParameters,
security [4] SecResultParams,
...
dot2dot1 [5] Dot2Dot1Params
}

Dot2Dot1Params ::= SEQUENCE {
state Dot2Dot1State,

}

Dot2Dot1State ::= ENUMERATED {
eInitialised (1),
eEnrolled (2),
eAuthReqResp (3),
eAuthDownResp (4),
eProvisioned (5),
exception (15) --exception added with large value to allow for future expansion
}

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok I an going to revise the code and request merge. Thanks

Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ Event ::= ENUMERATED {
eDot3ChannelAssigned (7), -- Channel assigned as per WME-Notification.indication
eDot3RequestMatchedAvailAppService (8), -- request matched with available application-service as per WME-Notification.indication
eDot2VerificationCompleteWithResult (9), -- message signature verification is complete
eDot2Dot1 (10), -- dot2dot1 event when PKI state is changed
exception (15) -- exception reported from IUT
}

Expand All @@ -58,6 +59,7 @@ EventParams ::= CHOICE{
ip [2] IpParameters,
radioframe [3] RadioParameters,
security [4] SecResultParams,
dot2dot1 [5] Dot2Dot1Params,
...
}

Expand Down Expand Up @@ -106,6 +108,21 @@ SecResultParams ::= SEQUENCE { -- used in EventParams
...
}

Dot2Dot1Params ::= SEQUENCE {
state Dot2Dot1State,
...
}

Dot2Dot1State ::= ENUMERATED {
eInitialised (1),
eEnrolled (2),
eAuthReqResp (3),
eAuthDownResp (4),
eProvisioned (5),
exception (15) --exception added with large value to allow for future expansion
}


-- SecurityResultCode ::= ENUMERATED {
-- success (1),
-- inconsistentInputParameters (2),
Expand Down Expand Up @@ -145,4 +162,4 @@ SecResultParams ::= SEQUENCE { -- used in EventParams
-- spduCertificateChainInconsistentValidityRegion (36)
-- }

END
END