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 2 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
96 changes: 96 additions & 0 deletions ASN1/TCI160921.asn
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
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 (
eDot2Dot1Initialized |
eDot2Dot1Enrolled |
eDot2Dot1AuthReqResp |
eDot2Dot1AuthDownResp |
eDot2Dot1Provisioned |
exception
),
eventParams (
WITH COMPONENTS {service} | -- Add appropriate event params for Dot2Dot1
WITH COMPONENTS {wsm} |
WITH COMPONENTS {ip} |
WITH COMPONENTS {security}
) 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
7 changes: 6 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,11 @@ 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
eDot2Dot1Initialized (10), -- PKI state initialized
eDot2Dot1Enrolled (11), -- PKI state enrollment certificate is issued and downloaded
eDot2Dot1AuthReqResp (12), -- PKI state autorization certificate is requested
eDot2Dot1AuthDownResp (13), -- PKI state autorization certificate download requested
eDot2Dot1Provisioned (14), -- PKI state autorization certificate is issued and downloaded
exception (15) -- exception reported from IUT
}

Expand Down Expand Up @@ -145,4 +150,4 @@ SecResultParams ::= SEQUENCE { -- used in EventParams
-- spduCertificateChainInconsistentValidityRegion (36)
-- }

END
END