ASN.1 PER compile

Vicent Ferrer Guasch <[email protected]>
Newsgroups gmane.comp.lang.erlang.bugs
Message-ID <[email protected]>
Hello,

I am trying to compile the last S1AP (3GPP 36.413) ASN specifications
using asn1ct:compile/2 , but the generated source file is incorrect. I
think compile/2 has a problem with the table constraints using per
encoding i.e.

InitiatingMessage ::= SEQUENCE {

                 procedureCode
S1AP-ELEMENTARY-PROCEDURE.&procedureCode
({S1AP-ELEMENTARY-PROCEDURES}),

                 criticality
S1AP-ELEMENTARY-PROCEDURE.&criticality

({S1AP-ELEMENTARY-PROCEDURES}{@procedureCode}),

                 value
S1AP-ELEMENTARY-PROCEDURE.&InitiatingMessage
({S1AP-ELEMENTARY-PROCEDURES}{@procedureCode})

}

The generated code contains @, an example.

<<V1@V0:2/unsigned-unit:1,V1@Buf1/bitstring>> = Bytes1,

{V1@V0,V1@Buf1}

I have tried also uper enconding with the same results, although ber
encoding generates correct erlang code. I was using this compiler with
the same specifications last year, and I it was working properly.

I tried this on Debian testing with
http://packages.erlang-solutions.com/debian repo:

Erlang    17.3
asn1       3.0.2

I have also tried it on a Ubuntu 14.04:

Erlang    16.03
asn1       2.0.4

Let me know if you need further details

Best Regards,

Vicent

_______________________________________________
erlang-bugs mailing list
[email protected]
http://erlang.org/mailman/listinfo/erlang-bugs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.