asn2aadlPlus generates incorrectly the types lengths
Hello,
In the frame of OSRA-NET we are using ASN.1 and ACN in order to define our types. For the moment we want to send a SEQUENCE of 100 elements of 8bit unsigned intergers:
DataView.asn:
UnsignedInteger8Bits ::= INTEGER (0 .. 255)
ArrayType ::= SEQUENCE ( SIZE (100) ) OF UnsignedInteger8Bits
DataView.acn:
UnsignedInteger8Bits [encoding pos-int, size 8, align-to-next byte]
ArrayType [size 100, align-to-next byte]
But the size obtained in the DataView.aadl file is 800bytes:
DATA ArrayType
PROPERTIES
-- name of the ASN.1 source file:
Source_Text => ("/home/assert/workspace/AfdxOverSpw/TASTE_Toolchain/tool-tests/producer_consumer_rasta/v2.0/DataView.asn");
TASTE::EncodingDefinitionFile => classifier(DataView::ACN_DataView);
TASTE::Ada_Package_Name => "TASTE_Dataview";
Deployment::ASN1_Module_Name => "TASTE-Dataview";
Source_Language => ASN1;
-- Size of a buffer to cover all forms of message representation:
-- Real message size is 800; suggested aligned message buffer is...
Source_Data_Size => 800 Bytes;
-- name of the corresponding data type in the source file:
Type_Source_Name => "ArrayType";
-- what kind of type is this?
TASTE::ASN1_Basic_Type =>aSEQUENCEOF;
END ArrayType;
So, we can see that our driver receives a message 8 times greater than expected and sends it though the bus.
Regards