There were a lot of suggestions for downloading this (FREE?) tool or that
(FREE?) tool instead of writing my own compiler and encoding/decoding
module. Well, first of all, the DATEX - ASN.1 structures are only on paper
and I don't have an ASN.1 source file, nor do I want to create one.
Apparently, those who wrote the standard have problems themselves describing
a structure in ASN.1. I say this because the definition

time-SecondFractions CHOICE {
   deci-seconds   INTEGER (0..9),
   centi-seconds  INTEGER (0..99),
   milliseconds   INTEGER (0..999) } DEFAULT{0}

was taken straight from the document.

Secondly, the NTCIP standards use OER and these encoding rules are not
available in any of those compilers.

Thirdly, our implementation is quite old, has been in production (using
mainly OER) for several years. We don't have problems talking to third party
software. Now I just need to adapt it for BER and I discover areas where I
got things wrong the first time around.

Thanks for all your help. I recognize this forum as being one of the most
important resource and knowledge base on ASN.1 and encoding rules.

Gentlemen, keep up the good work.

Best regards,
Eddie L.



-----Original Message-----
From: Olivier Dubuisson [mailto:[EMAIL PROTECTED]
Sent: Friday, May 13, 2005 2:33 PM
To: Eduard Lascu
Subject: Re: [ASN1] BER encoding of a CHOICE type that has data members
with DEFAULT value


Eduard Lascu wrote:
>
> I still don't get it. I guess I was confusing from the beginning because
the
> real problem is not when I encode the object, but when I decode it. Since
I
> wrote both ends of the communication channel, I need to understand the
> encoding procedure in order to be able to write a correct decoding
function.

Why not use one of the ASN.1 compiler listed at
http://asn1.elibel.tm.fr/links/#tools instead of hand-writing your
encoder/decoder (and making mistakes!)?
--
Olivier DUBUISSON
France Telecom
Recherche & Developpement
R&D/MAPS/AMS - 22307 Lannion Cedex - France
t: +33 2 96 05 38 50 - f: +33 2 96 05 39 45 - http://asn1.elibel.tm.fr/




_______________________________________________
ASN1 mailing list
[email protected]
http://lists.asn1.org/mailman/listinfo/asn1

Reply via email to