简体   繁体   中英

ASN.1 compilers

This is my first question so please bear with me, I'm trying to find a good compiler to parse the following standard , I've tried asn1c and I wasn't able compile it successfully, the problem is that I didn't get any error, I tried with "-P" and there was no output, this is what I did

sn1c MAP-ShortMessageServiceOperations.EXP -P

The files in the link have been generated by SIEMENS and for some reason they are not the standard ASN.1

The question is how can I compile all these ASN files with asn1c or any other asn compiler?

and also I've tried snacc and didn't get anything useful from it either.

I'm trying to write a C application that will be running on Red-hat Linux

A great place to start is http://www.itu.int/ITU-T/asn1/links/index.htm which list several ASN.1 compilers (both free and commercial).

You can also try your specification in the free online compiler and encoder/decoder at http://asn1-playground.oss.com .

For 3gpp specifications, you are likely to be better off using a commercial tool rather than one of the free tools. OSS Nokalva offers free trials of its ASN.1 Tools at http://www.oss.com/asn1/products/asn1-download.html .

用于3GPP规范的另一个工具是在线编码器/解码器http://3gpp-message-analyser.com。它支持UTRAN RANAP SABP RNSAP NBAP PCAP RUA HNBAP,E-UTRAN S1AP X2AP M2AP M3AP

http://www.itu.int/en/ITU-T/asn1/Pages/Tools.aspx mentions two free ASN.1 compilers, one of which is

You can also find various free online ASN.1 decoder here: https://www.marben-products.com/decoder-asn1/

I hope it helps. Anto

I came across this compiler that works well for generating C code from ASN.1

https://github.com/ttsiodras/asn1scc

There is also a nice introduction that will get you started, here:

https://www.thanassis.space/asn1.html

This is the only compiler that worked for me so far.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM