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

The following code is not supported #73

Open
ouyangbob opened this issue Jul 8, 2021 · 3 comments
Open

The following code is not supported #73

ouyangbob opened this issue Jul 8, 2021 · 3 comments

Comments

@ouyangbob
Copy link

ouyangbob commented Jul 8, 2021

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

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

MessageTypes MESSAGE-ID-AND-TYPE ::= {
	{ TestMsg IDENTIFIED BY testData } |	
	{ RTCMcorrections IDENTIFIED BY rtcmData } |
	{ PAMData IDENTIFIED BY pamData } |
	{ CLPMM IDENTIFIED BY clpmmData } |
	{ PersonalSafetyMessage IDENTIFIED BY psmData } |
	{ RoadsideCoordination IDENTIFIED BY rscData } |
	{ SensorSharingMsg IDENTIFIED BY ssmData } |
	{ VehIntentionAndRequest IDENTIFIED BY virData } |
	{ VehiclePaymentMessage IDENTIFIED BY vpmData },
	...
}

ExtMsgID ::= INTEGER (0..32767) 

-- Test Message
testData ExtMsgID ::= 0

-- DAY II Messages *********************
rtcmData ExtMsgID ::= 10
rscData ExtMsgID ::= 11
ssmData ExtMsgID ::= 12
virData ExtMsgID ::= 13
pamData ExtMsgID ::= 14
psmData ExtMsgID ::= 15
clpmmData ExtMsgID ::= 16
vpmData ExtMsgID ::= 17
@ouyangbob ouyangbob changed the title OER support The following code is not supported Jul 12, 2021
@ouyangbob
Copy link
Author

The CLASS keyword has implemented encoding and decoding, but not asn.1 file parsing. Can it be merged?
https://github.com/ouyangbob/asn1rs/commit/9d5743e2496093753daa17fa3f87632cf9aae831

@ouyangbob
Copy link
Author

Plan to add the bitstring setXXX isXXX method for easy setting and getting values

@kellerkindt
Copy link
Owner

kellerkindt commented Oct 17, 2022

Feel free to post PRs (please in reasonable sizes). If the CI is happy and the changes seem to be useful additions, I will happily merge them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants