Hi All,

 My question is regarding PER encoding of open type field to be NULL
type.

 Is "myvalue" encoded as follows( in aligned PER )?

    0x00 0x01 0x02

 0x00      : lenght of open type field encoding
 0x01 0x02 : INTEGER value encoding




NULLSETTING
DEFINITIONS AUTOMATIC TAGS ::= 
BEGIN

myvalue DefMsg ::={
    msgtype  NULL:NULL,
    msgid    2
}

-- ***************************************************
-- Message
-- ***************************************************

DefMsg ::= SEQUENCE{
    msgtype  DEFCLASS.&Open  ({ObjSet}{@msgid}),
    msgid    DEFCLASS.&id    ({ObjSet})
}

-- ***************************************************
-- information object class
-- ***************************************************

DEFCLASS ::= CLASS
{
    &Open    ,
    &id      INTEGER UNIQUE
}
WITH SYNTAX
{
    OPEN    &Open
    ID      &id
}

-- ***************************************************
-- information object & set
-- ***************************************************

ObjSet DEFCLASS ::= {
    objfirst | objsecond, ...
}

objfirst DEFCLASS ::= {
    OPEN    BOOLEAN
    ID      1
}

objsecond DEFCLASS ::= {
    OPEN    NULL
    ID      2
}

END


Thanks for all


Naoki Hahsimoto
[EMAIL PROTECTED]

Reply via email to