ASN.1 Complete

Chapter 2: Introduction to ASN.1

(Or: Read Before You Write!)

Summary

The best way of learning any language or notation is to read some of it. This chapter presents a small example of ASN.1 type definitions and introduces the main concepts of

  • built-in key-words,

  • construction mechanisms,

  • user-defined types with type-reference-names,

  • identifiers or "field-names", and

  • alternatives.

There is a reference to "tagging", which is discussed in more detail in Section II.

This chapter is intended for beginners in ASN.1, and can be skipped by those who have already been exposed to the notation.

2.1 Introduction

Look at Figure 2.1. The aim here is simply to make sense of the data-structure it is defining the information that transmission of a value of this structure would convey.

Figure 2.1 is an "artificial" example designed to illustrate the features of ASN.1. It does not necessarily represent the best "business solution" to the problem it appears to be addressing, but the interested reader could try to invent a plausible rationale for some of its more curious features. For example, why have different "details" been used for "uk" and for "overseas" when the "overseas" case can hold any information the "uk" case can? Plausible answer, the "uk" case was in version 1, and the "overseas" was added later when the business expanded, and the designer wanted to keep the same bits-on-the-line for the "uk" case.

This example is built-on as this book proceeds, and the scenario for this "Wineco protocol" appears in Appendix 1 with the complete protocol in Appendix 2.

ASN.1...

UNLIMITED FREE
ACCESS
TO THE WORLD'S BEST IDEAS

SUBMIT
Already a GlobalSpec user? Log in.

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.

Customize Your GlobalSpec Experience

Category: RFID Software
Finish!
Privacy Policy

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.