Abstract Notation One (ASN.1) and TTCN-3

The example shows how Abstract Syntax Notation One (ASN.1) definition modules can be imported directly into TTCN-3. It provides a simple ASN.1 module - defining a message with a header and a message body -  showing special mappings where, for example, an ASN.1 identifier is used which matches a TTCN-3 keyword. The TTCN-3 modules and the ASN.1 module contain comments for documentation and additionally a file (Types.ttcn3view provided by Testing Technologies) showing the TTCN-3 mapping of the ASN.1 types.

Note that the TTCN-3 code is simplified and only intended as an example.

ASNExample Code

 


FacebookTwitterGoogle BookmarksRedditNewsvineTechnoratiLinkedin