Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • B buildsupport
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • TASTETASTE
  • buildsupport
  • Issues
  • #4
Closed
Open
Issue created Jul 17, 2017 by Javier Herrero Martín@jherreroDeveloper

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

Assignee
Assign to
Time tracking