Google Answers Logo
View Question
 
Q: ASN.1 PROGRAMING ( No Answer,   2 Comments )
Question  
Subject: ASN.1 PROGRAMING
Category: Computers > Programming
Asked by: onua-ga
List Price: $20.00
Posted: 20 Apr 2004 16:05 PDT
Expires: 20 May 2004 16:05 PDT
Question ID: 333370
I need ASN.1 description for a) the structure and b)the value for an
ASN.1 module that specifies DaysOfWeek as a sequence type with each
day of the week (day1, day 2,...) as the type VisibleString.
I would appreciate a detailed solution, please.
Answer  
There is no answer at this time.

Comments  
Subject: Re: ASN.1 PROGRAMING
From: samrat_barve-ga on 20 Apr 2004 21:55 PDT
 
please clarify the context abt ur question ..
description for structure means what ??
Subject: Re: ASN.1 PROGRAMING
From: mathtalk-ga on 21 Apr 2004 18:12 PDT
 
ASN.1 (Abstract Syntax Notation (version) 1) is more a notation than a
programming language, specifically for formally defining datatypes. 
In common with XML it treats datatypes from a hierarchical
perspective.

A thorough treatment of ASN.1 terminology is found here:

[Abstract Syntax Notation One (ASN.1): Specification of basic notation]
http://www.itu.int/ITU-T/studygroups/com10/languages/X.680_1297.pdf

A number of the words used in the Question have technical meanings
within the ASN.1 language.  For example, a "sequence" is a particular
way of defining a new datatype from others.  In a "sequence" one has a
fixed number of components (some of which may be "optional") which
taken together in a defined order make up an instance of the new
datatype.  To a VB programmer a close synonym might be "user-defined
datatype", and to a C programmer a "struct" would carry much the same
meaning.

Here I would hazard the guess that the assignment is to define a
datatype called DaysOfWeek which contains a VisibleString as one
component (e.g. the name of the weekday), with possibly other elements
(e.g. an integer to designate the ordinal values 0-6 or 1-7
corresponding to the named days of the week).

A module is an organizational unit within whose scope the definitions
(or "productions") given can freely reference one another (forwards
and backwards), thereby enabling truly recursive definitions of
datatypes.

It doesn't sound as if this assignment calls for anything very
elaborate.  A "simple datatype" (or simple type) is one defined "by
directly specifying the set of its values".  A sequence type, by
comparison, is defined by specifying the fixed order of appearance of
its component types.  Confusingly, a sequence-of type exists which
embodies the notion of a "series" of zero or more items from a single
component type, a concept that might more readily be called a "list"
in conversation with non-ASN.1 devotees.

Unlike XML the ASN.1 approach embraces a "packed" binary format for
efficient transmission of data, in addition to human-readable text
formats.

regards, mathtalk-ga

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy