DarkMatter in Cyberspace
  • Home
  • Categories
  • Tags
  • Archives

Compile ASN Module 25331-690 with Erlang


  1. Split the origin ASN file(25331-690.txt): there are 5 modules in this file, so we need split it into 5 modules:

  2. Class-definitions.asn

  3. PDU-definitions.asn
  4. InformationElements.asn
  5. Constant-definitions.asn
  6. Internode-definitions.asn

Each has the same structure:

<module-name> DEFINITIONS AUTOMATIC TAGS ::=
BEGIN
...
END
  1. Compile modules according their dependencies. The order is:

    Constant-definitions -> InformationElements -> PDU-definitions -> Class-definitions -> Internode-definitions

The compile method is: in erlang shell($ erl), run "asn1ct:compile("PDU-definitions", [per, verbose]).".



Published

May 20, 2014

Last Updated

May 20, 2014

Category

Tech

Tags

  • asn.1 4
  • Erlang 15

Contact

  • Powered by Pelican. Theme: Elegant by Talha Mansoor