vlm / asn1c

The ASN.1 Compiler
http://lionet.info/asn1c/
BSD 2-Clause "Simplified" License
1.03k stars 551 forks source link

Unable to parse 3GPP TS 36.413 #108

Open AuthenticEshkinKot opened 8 years ago

AuthenticEshkinKot commented 8 years ago

Hi, Recently I've tried to decode asn.1 from 3GPP TS 36.413 and failed on code from "Information Element Definitions". The code is in this document - http://www.etsi.org/deliver/etsi_ts/136400_136499/136413/12.06.00_60/ts_136413v120600p.pdf, 9.3.4 paragraph.

velichkov commented 8 years ago

The problem most probably is that the asn1c does not fully support Information Object Class. You could try the version from #99

Have a look at openairinterface or osmo-iuh projects, they use a modified version of asn1c that adds aligned per support and some scripts to workaround Information Object Classes

https://gitlab.eurecom.fr/oai/openairinterface5g/tree/master/openair3/S1AP https://gitlab.eurecom.fr/oai/asn1c/tree/openair

https://github.com/osmocom/osmo-iuh https://github.com/osmocom/asn1c/tree/aper-prefix

See also http://zecke.blogspot.bg/2016/04/hnbap-and-ranap-support-in-osmocomorg.html https://sourceforge.net/p/asn1c/discussion/357921/thread/07f80739/

43

64

AuthenticEshkinKot commented 8 years ago

@velichkov https://github.com/vlm/asn1c/pull/99 really helped, thanks!