Skip to content

Does ASN1SCC support extensibility without the use of extension markers? #267

Answered by maxime-esa
amuroh asked this question in Q&A
Discussion options

You must be logged in to vote

Extensibility is out of scope in ASN1SCC because it implies that the message receiver cannot know in advance the size of the message. Therefore it cannot have a static allocation of the buffer to store it and this is incompatible with embedded systems (in space at least) where malloc is forbidden.
To my knowledge there is no other means in ASN.1 to provide extensibility or versionning of a type.

As a workaround, you can probably mimick the extensibility mechanism by allocating a spare space in your type (version 1) and use it differently in following versions. ACN helps by giving fine control over the encoding.

For example:

MyType ::= SEQUENCE { -- version 1
    version INTEGER (0..7), 
 …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@amuroh
Comment options

Answer selected by amuroh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants