Files
openairinterface5g/openair2/RRC/LTE/MESSAGES
Robert Schmidt 8107939f08 Change OAI license to CSSL v1.0 (and others)
- all RAN code, CI code, configuration files, dockerfiles, in CSSL v1.0
- all deployment code (openshift, charts, ancillary files like shell
  scripts), in MIT
- documentation in CC-BY-4.0
- exceptions might apply and are listed in NOTICE
- there is a new LICENSES folder with all licenses
- CONTRIBUTIONS.md has been updated accordingly

For automated changes based on OAI PL v1.1:

    perl -i~ -0pe 's/\/\*.*Licensed to the OpenAirInterface.*openairinterface.org\n#?/\/*\n * SPDX-License-Identifier: LicenseRef-CSSL-1.0\n/s' **/*.{c,h,cpp}
    perl -i~ -0pe 's/\/\*.*Licensed to the OpenAirInterface.*openairinterface.org\n#?/\/*\n * SPDX-License-Identifier: LicenseRef-CSSL-1.0\n/s' **/*.ts
    perl -i~ -0pe 's/<!--.*Licensed to the OpenAirInterface.*openairinterface.org\n.*-->/<!-- SPDX-License-Identifier: LicenseRef-CSSL-1.0 -->/s' **/*.xml

The rest (cmake, files with missing license, cmake) manually.
2026-03-27 16:36:37 +01:00
..

This directory contains the necessary schema files to generate all the LTE configuration data structures based on the ASN.1 RRC source code from the 36.331 RRC specifications. These structures are used by MAC and PHY for configuration purposes.

It contains the following files

README.txt                      : This file
ASN.1                           : Directory to place asn1c package
ASN.1/extract_asn1_from_spec.pl : Pearl script to extract ASN.1 source from 36311-860.txt
ASN.1/*.asn1                    : Extracted ASN.1 sources
ASN.1/*.cmake                   : Definitions of which files the corresponding *.asn1 will generate
CMakeLists.txt                  : The "driver" to generate and build generated source files at build time

Instructions to build data structures from ASN1 sources

The asn.1 files have already been built using the extract_asn1_from_spec.pl Pearl script. This should be used again if a newer version of the RRC spec is used to synthesize the data structures and encoding/decoding routines. To do this:

  1. use Microsoft WORD to generate a text version of the 3GPP 36.331 document
  2. run the script on the text file to generate the *.asn1 file

You should install the asn1c utility using ./build_oai -I.

Run

ASN1C_PREFIX=LTE_ asn1c -pdu=all -fcompound-names -gen-UPER -no-gen-BER -no-gen-JER -no-gen-OER -no-gen-APER -no-gen-example -D <dir> <asn.1-file>

to generate the files that result from the asn.1-file. Create an ASN.1/*.cmake file with the following structure:

set(LTE_RRC_GRAMMAR <path-to-asn.1-file>)

set(lte_rrc_source
    <list-of-c-files>
)

set(lte_rrc_headers
    <list-of-h-files>
)

Modify the CMakeLists.txt to point to the newly generated .cmake file. On the next LTE RRC compilation, the source files will be automatically generated from the ASN.1 file and built henceforth.