Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Regarding NULL type in ASN.1

Regarding NULL type in ASN.1 04 Dec 2008 13:36 #7478

Hello Rama,

the handling of NULL is described in part7, clause 9.1:

21) Replace all occurrences of NULL type with the following associated TTCN-3 type (note 13):

- type enumerated <identifier> { NULL },
where <identifier> is the ASN.1 Type reference converted according to clause 8.2, if a synonym of the NULL type is defined, or with

- the nested type definition enumerated { NULL } <identifier>,
where <identifier> is the ASN.1 field identifier, if NULL is used within a structured type.





I hope this clarifies the situation.

best regards

Thomas

Thomas Deiß
Principle Scientist
Nokia Siemens Networks

Heltorferstrasse 21
D-40472 Düsseldorf, Germany
Mob: +49 151 55153584
Tel: +49 211 94123584

This email address is being protected from spambots. You need JavaScript enabled to view it.
www.nokiasiemensnetworks.com/global/

Nokia Siemens Networks GmbH & Co. KG
Sitz der Gesellschaft: München / Registered office: Munich
Registergericht: München / Commercial registry: Munich, HRA 88537
WEEE-Reg.-Nr.: DE 52984304
Geschäftsleitung / Board of Directors: Lydia Sommer, Olaf Horsthemke
Vorsitzender des Aufsichtsrats / Chairman of supervisory board: Lauri Kivinen
Persönlich haftende Gesellschafterin / General Partner: Nokia Siemens Networks Management GmbH
Sitz der Gesellschaft: München / Registered office: Munich Registergericht: München / Commercial registry: Munich, HRB 163416


Important Note: This e-mail and any attachment are confidential and may contain trade secrets and may well also be legally privileged or otherwise protected from disclosure. If you have received it in error, you are on notice of its status. Please notify us immediately by reply e-mail and then delete this e-mail and any attachment from your system. If you are not the intended recipient please understand that you must not copy this e-mail or any attachment or disclose the contents to any other person. Thank you for your cooperation.

Wichtiger Hinweis: Diese E-Mail und etwaige Anlagen können Betriebs- oder Geschäftsgeheimnisse, dem Anwaltsgeheimnis unterliegende oder sonstige vertrauliche Informationen enthalten. Sollten Sie dieses E-Mail irrtümlich erhalten haben, ist Ihnen der Status dieses E-Mails bekannt. Bitte benachrichtigen Sie uns in diesem Fall sofort durch Antwort-Mail und löschen Sie dieses E-Mail nebst etwaigen Anlagen von Ihrem System. Ebenso dürfen Sie dieses E-Mail oder seine Anlagen nicht kopieren oder an Dritte weitergeben. Vielen Dank.






________________________________

From: active_ttcn3 : mts stf133 ttcn version 3 - active members only [This email address is being protected from spambots. You need JavaScript enabled to view it.] On Behalf Of ext This email address is being protected from spambots. You need JavaScript enabled to view it.
Sent: Thursday, 04. December 2008 13:42
To: This email address is being protected from spambots. You need JavaScript enabled to view it.
Subject: Regarding NULL type in ASN.1


Hi ,

I have a query in using a NULL type declared in ASN.1. I am writing a TTCN equivalent template.

How do we represent a NULL type in TTCN3.

TTCN3 Code:

template FailureCauseWithProtErr t_failurecausewithproterr := physicalChannelFailure;

template FailureCauseWithProtErrTrId t_failurecause := {
rrc_TransactionIdentifier := RRC_TRANSACTION_ID,
failureCause := physicalChannelFailure
}


ASN.1 Code :

FailureCauseWithProtErr ::= CHOICE {
configurationUnsupported NULL,
physicalChannelFailure NULL,
incompatibleSimultaneousReconfiguration NULL,
compressedModeRuntimeError TGPSI,
protocolError ProtocolErrorInformation,
cellUpdateOccurred NULL,
invalidConfiguration NULL,
configurationIncomplete NULL,
unsupportedMeasurement NULL,
mbmsSessionAlreadyReceivedCorrectly NULL,
lowerPriorityMBMSService NULL,
spare5 NULL,
spare4 NULL,
spare3 NULL,
spare2 NULL,
spare1 NULL
}


Regards,
R.Shekar


Please do not print this email unless it is absolutely necessary.

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com
The administrator has disabled public write access.

Regarding NULL type in ASN.1 04 Dec 2008 13:45 #7479

Hi,

The point is that the only legal value of a TTCN-3 enumerated type with a single enumeration NULL is NULL.

Your example is failing at two points, you have to use {} for an ASN.1 CHOICE value and of course, you have to assign the value of the selected alternative:

template FailureCauseWithProtErr t_failurecausewithproterr := { physicalChannelFailure := NULL }

BR, Gyorgy


________________________________

From: active_ttcn3 : mts stf133 ttcn version 3 - active members only [This email address is being protected from spambots. You need JavaScript enabled to view it.] On Behalf Of Deiss, Thomas (NSN - DE/Duesseldorf)
Sent: 2008-december-4 14:36
To: This email address is being protected from spambots. You need JavaScript enabled to view it.
Subject: Re: Regarding NULL type in ASN.1


Hello Rama,

the handling of NULL is described in part7, clause 9.1:

21) Replace all occurrences of NULL type with the following associated TTCN-3 type (note 13):

- type enumerated <identifier> { NULL },
where <identifier> is the ASN.1 Type reference converted according to clause 8.2, if a synonym of the NULL type is defined, or with

- the nested type definition enumerated { NULL } <identifier>,
where <identifier> is the ASN.1 field identifier, if NULL is used within a structured type.





I hope this clarifies the situation.

best regards

Thomas

Thomas Deiß
Principle Scientist
Nokia Siemens Networks

Heltorferstrasse 21
D-40472 Düsseldorf, Germany
Mob: +49 151 55153584
Tel: +49 211 94123584

This email address is being protected from spambots. You need JavaScript enabled to view it.
www.nokiasiemensnetworks.com/global/

Nokia Siemens Networks GmbH & Co. KG
Sitz der Gesellschaft: München / Registered office: Munich
Registergericht: München / Commercial registry: Munich, HRA 88537
WEEE-Reg.-Nr.: DE 52984304
Geschäftsleitung / Board of Directors: Lydia Sommer, Olaf Horsthemke
Vorsitzender des Aufsichtsrats / Chairman of supervisory board: Lauri Kivinen
Persönlich haftende Gesellschafterin / General Partner: Nokia Siemens Networks Management GmbH
Sitz der Gesellschaft: München / Registered office: Munich Registergericht: München / Commercial registry: Munich, HRB 163416


Important Note: This e-mail and any attachment are confidential and may contain trade secrets and may well also be legally privileged or otherwise protected from disclosure. If you have received it in error, you are on notice of its status. Please notify us immediately by reply e-mail and then delete this e-mail and any attachment from your system. If you are not the intended recipient please understand that you must not copy this e-mail or any attachment or disclose the contents to any other person. Thank you for your cooperation.

Wichtiger Hinweis: Diese E-Mail und etwaige Anlagen können Betriebs- oder Geschäftsgeheimnisse, dem Anwaltsgeheimnis unterliegende oder sonstige vertrauliche Informationen enthalten. Sollten Sie dieses E-Mail irrtümlich erhalten haben, ist Ihnen der Status dieses E-Mails bekannt. Bitte benachrichtigen Sie uns in diesem Fall sofort durch Antwort-Mail und löschen Sie dieses E-Mail nebst etwaigen Anlagen von Ihrem System. Ebenso dürfen Sie dieses E-Mail oder seine Anlagen nicht kopieren oder an Dritte weitergeben. Vielen Dank.






________________________________

From: active_ttcn3 : mts stf133 ttcn version 3 - active members only
[This email address is being protected from spambots. You need JavaScript enabled to view it.] On Behalf Of ext This email address is being protected from spambots. You need JavaScript enabled to view it.
Sent: Thursday, 04. December 2008 13:42
To: This email address is being protected from spambots. You need JavaScript enabled to view it.
Subject: Regarding NULL type in ASN.1


Hi ,

I have a query in using a NULL type declared in ASN.1. I am
writing a TTCN equivalent template.

How do we represent a NULL type in TTCN3.

TTCN3 Code:

template FailureCauseWithProtErr t_failurecausewithproterr := physicalChannelFailure;

template FailureCauseWithProtErrTrId t_failurecause := {
rrc_TransactionIdentifier := RRC_TRANSACTION_ID,
failureCause := physicalChannelFailure
}


ASN.1 Code :

FailureCauseWithProtErr ::= CHOICE {
configurationUnsupported NULL,
physicalChannelFailure NULL,
incompatibleSimultaneousReconfiguration NULL,
compressedModeRuntimeError TGPSI,
protocolError ProtocolErrorInformation,
cellUpdateOccurred NULL,
invalidConfiguration NULL,
configurationIncomplete NULL,
unsupportedMeasurement NULL,
mbmsSessionAlreadyReceivedCorrectly NULL,
lowerPriorityMBMSService NULL,
spare5 NULL,
spare4 NULL,
spare3 NULL,
spare2 NULL,
spare1 NULL
}


Regards,
R.Shekar


Please do not print this email unless it is absolutely necessary.

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The
recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com
The administrator has disabled public write access.

Regarding NULL type in ASN.1 04 Dec 2008 14:20 #7480

Dear Shekarr,



it seems that your TTCN-3 environment does not implement the necessary
mapping rules if it says NULL has not been declared. Unfortunately without a
complete overview on configuration and modules (TTCN-3 and ASN.1) it is hard
to assess whether this is a usage error, a configuration problem or a
tooling issue.



Best regards,
Theo Vassiliou



Von: active_ttcn3 : mts stf133 ttcn version 3 - active members only
[This email address is being protected from spambots. You need JavaScript enabled to view it.] Im Auftrag von This email address is being protected from spambots. You need JavaScript enabled to view it.
Gesendet: Donnerstag, 4. Dezember 2008 14:57
An: This email address is being protected from spambots. You need JavaScript enabled to view it.
Betreff: Re: Regarding NULL type in ASN.1



Hi,



When I use the solution given ,I get the error : "no declaration for NULL"
is thrown in the TTCN compiler.



Used In TTCN Code :



template FailureCauseWithProtErr t_failurecausewithproterr := {
physicalChannelFailure := NULL }



template FailureCauseWithProtErrTrId t_failurecause := {
rrc_TransactionIdentifier := RRC_TRANSACTION_ID,
failureCause := valueof (t_failurecausewithproterr)

}

Regards,

Shekarr



_____

From: active_ttcn3 : mts stf133 ttcn version 3 - active members only
[This email address is being protected from spambots. You need JavaScript enabled to view it.] On Behalf Of György Réthy
Sent: Thursday, December 04, 2008 7:15 PM
To: This email address is being protected from spambots. You need JavaScript enabled to view it.
Subject: Re: Regarding NULL type in ASN.1

Hi,



The point is that the only legal value of a TTCN-3 enumerated type with a
single enumeration NULL is NULL.



Your example is failing at two points, you have to use {} for an ASN.1
CHOICE value and of course, you have to assign the value of the selected
alternative:



template FailureCauseWithProtErr t_failurecausewithproterr := {
physicalChannelFailure := NULL }



BR, Gyorgy




_____


From: active_ttcn3 : mts stf133 ttcn version 3 - active members only
[This email address is being protected from spambots. You need JavaScript enabled to view it.] On Behalf Of Deiss, Thomas (NSN -
DE/Duesseldorf)
Sent: 2008-december-4 14:36
To: This email address is being protected from spambots. You need JavaScript enabled to view it.
Subject: Re: Regarding NULL type in ASN.1

Hello Rama,



the handling of NULL is described in part7, clause 9.1:



21) Replace all occurrences of NULL type with the following associated
TTCN-3 type (note 13):

- type enumerated <identifier> { NULL },
where <identifier> is the ASN.1 Type reference converted according to clause
8.2, if a synonym of the NULL type is defined, or with

- the nested type definition enumerated { NULL } <identifier>,
where <identifier> is the ASN.1 field identifier, if NULL is used within a
structured type.





I hope this clarifies the situation.



best regards



Thomas



Thomas Deiß
Principle Scientist
Nokia Siemens Networks

Heltorferstrasse 21
D-40472 Düsseldorf, Germany
Mob: +49 151 55153584
Tel: +49 211 94123584

This email address is being protected from spambots. You need JavaScript enabled to view it.
www.nokiasiemensnetworks.com/global/

Nokia Siemens Networks GmbH & Co. KG
Sitz der Gesellschaft: München / Registered office: Munich
Registergericht: München / Commercial registry: Munich, HRA 88537
WEEE-Reg.-Nr.: DE 52984304
Geschäftsleitung / Board of Directors: Lydia Sommer, Olaf Horsthemke
Vorsitzender des Aufsichtsrats / Chairman of supervisory board: Lauri
Kivinen
Persönlich haftende Gesellschafterin / General Partner: Nokia Siemens
Networks Management GmbH
Sitz der Gesellschaft: München / Registered office: Munich Registergericht:
München / Commercial registry: Munich, HRB 163416


Important Note: This e-mail and any attachment are confidential and may
contain trade secrets and may well also be legally privileged or otherwise
protected from disclosure. If you have received it in error, you are on
notice of its status. Please notify us immediately by reply e-mail and then
delete this e-mail and any attachment from your system. If you are not the
intended recipient please understand that you must not copy this e-mail or
any attachment or disclose the contents to any other person. Thank you for
your cooperation.

Wichtiger Hinweis: Diese E-Mail und etwaige Anlagen können Betriebs- oder
Geschäftsgeheimnisse, dem Anwaltsgeheimnis unterliegende oder sonstige
vertrauliche Informationen enthalten. Sollten Sie dieses E-Mail irrtümlich
erhalten haben, ist Ihnen der Status dieses E-Mails bekannt. Bitte
benachrichtigen Sie uns in diesem Fall sofort durch Antwort-Mail und löschen
Sie dieses E-Mail nebst etwaigen Anlagen von Ihrem System. Ebenso dürfen Sie
dieses E-Mail oder seine Anlagen nicht kopieren oder an Dritte weitergeben.
Vielen Dank.





_____


From: active_ttcn3 : mts stf133 ttcn version 3 - active members only
[This email address is being protected from spambots. You need JavaScript enabled to view it.] On Behalf Of ext This email address is being protected from spambots. You need JavaScript enabled to view it.
Sent: Thursday, 04. December 2008 13:42
To: This email address is being protected from spambots. You need JavaScript enabled to view it.
Subject: Regarding NULL type in ASN.1

Hi ,



I have a query in using a NULL type declared in ASN.1. I am writing a TTCN
equivalent template.



How do we represent a NULL type in TTCN3.



TTCN3 Code:



template FailureCauseWithProtErr t_failurecausewithproterr :=
physicalChannelFailure;



template FailureCauseWithProtErrTrId t_failurecause := {
rrc_TransactionIdentifier := RRC_TRANSACTION_ID,
failureCause := physicalChannelFailure
}



ASN.1 Code :



FailureCauseWithProtErr ::= CHOICE {
configurationUnsupported NULL,
physicalChannelFailure NULL,
incompatibleSimultaneousReconfiguration NULL,
compressedModeRuntimeError TGPSI,
protocolError ProtocolErrorInformation,
cellUpdateOccurred NULL,
invalidConfiguration NULL,
configurationIncomplete NULL,
unsupportedMeasurement NULL,
mbmsSessionAlreadyReceivedCorrectly NULL,
lowerPriorityMBMSService NULL,
spare5 NULL,
spare4 NULL,
spare3 NULL,
spare2 NULL,
spare1 NULL
}





Regards,

R.Shekar



Please do not print this email unless it is absolutely necessary.

The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain proprietary, confidential or privileged information. If you are not
the intended recipient, you should not disseminate, distribute or copy this
e-mail. Please notify the sender immediately and destroy all copies of this
message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should
check this email and any attachments for the presence of viruses. The
company accepts no liability for any damage caused by any virus transmitted
by this email.

www.wipro.com

Please do not print this email unless it is absolutely necessary.

The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain proprietary, confidential or privileged information. If you are not
the intended recipient, you should not disseminate, distribute or copy this
e-mail. Please notify the sender immediately and destroy all copies of this
message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should
check this email and any attachments for the presence of viruses. The
company accepts no liability for any damage caused by any virus transmitted
by this email.

www.wipro.com
The administrator has disabled public write access.

Regarding NULL type in ASN.1 04 Dec 2008 14:24 #7481

Hi Shekarr,

My example is according to the standard and it works for me. You have to ask your tool provide to correct the error.

Notify: Generating code...
Notify: File `Shekarr_1.hh' was generated.
Notify: File `Shekarr_1.cc' was generated.
Notify: File `Shekarr.hh' was generated.
Notify: File `Shekarr.cc' was generated.
Notify: 4 files were updated.
touch compile
sh -c make all -j1
g++ -c -DWIN32 -I/cygdrive/z/TITAN/Titan_R8A01/include -Wall -o Shekarr_1.o Shekarr_1.cc
g++ -c -DWIN32 -I/cygdrive/z/TITAN/Titan_R8A01/include -Wall -o Shekarr.o Shekarr.cc
g++ -o _titanChecking.exe ParamDefault.o Patter_referencing2.o Record_fields_evaluation.o TypeCompatibility.o Inside_matching.o Index_assignment_notation.o DefaultInInterleave.o WTF_.o Macro_check.o UpperTesterFunctions.o UpperTesterDefs.o Pattern_examples.o DefaultReset.o AllAnyTimer.o CheckOutParameter.o PatternExamples.o S.o CommonTypeDefs.o Template_parameters_4predef_functions.o proba.o Shekarr_1.o MTC_Component.o Assignment.o ValueList3G.o MTC_UpperTester.o WTF.o Shekarr.o CNIdentity.o UT_MTC_PTC_PORT.o MTC_System_Ut.o Pt.o UT_PTC_MTC_PORT.o \
-L/cygdrive/z/TITAN/Titan_R8A01/lib -lttcn3 \
-L/cygdrive/z/TITAN/Titan_R8A01/lib -lcrypto \
-L/cygdrive/z/TITAN/Titan_R8A01/lib -lxml2
/usr/lib/gcc/i68.6-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: warning: auto-importing has been activated without --enable-auto-import specified on the command line.
Operation finished succesfully

Btw, your second template will not work either as you have not specified the selected alternative.

BR, Gyorgy

________________________________

From: active_ttcn3 : mts stf133 ttcn version 3 - active members only [This email address is being protected from spambots. You need JavaScript enabled to view it.] On Behalf Of This email address is being protected from spambots. You need JavaScript enabled to view it.
Sent: 2008-december-4 14:57
To: This email address is being protected from spambots. You need JavaScript enabled to view it.
Subject: Re: Regarding NULL type in ASN.1


Hi,

When I use the solution given ,I get the error : "no declaration for NULL" is thrown in the TTCN compiler.


Used In TTCN Code :

template FailureCauseWithProtErr t_failurecausewithproterr := { physicalChannelFailure := NULL }

template FailureCauseWithProtErrTrId t_failurecause := {
rrc_TransactionIdentifier := RRC_TRANSACTION_ID,
failureCause := valueof (t_failurecausewithproterr)
}

Regards,
Shekarr

________________________________

From: active_ttcn3 : mts stf133 ttcn version 3 - active members only [This email address is being protected from spambots. You need JavaScript enabled to view it.] On Behalf Of György Réthy
Sent: Thursday, December 04, 2008 7:15 PM
To: This email address is being protected from spambots. You need JavaScript enabled to view it.
Subject: Re: Regarding NULL type in ASN.1


Hi,

The point is that the only legal value of a TTCN-3 enumerated type with a single enumeration NULL is NULL.

Your example is failing at two points, you have to use {} for an ASN.1 CHOICE value and of course, you have to assign the value of the selected alternative:



template FailureCauseWithProtErr t_failurecausewithproterr := { physicalChannelFailure := NULL }


BR, Gyorgy


________________________________

From: active_ttcn3 : mts stf133 ttcn version 3 - active members only
[This email address is being protected from spambots. You need JavaScript enabled to view it.] On Behalf Of Deiss, Thomas (NSN - DE/Duesseldorf)
Sent: 2008-december-4 14:36
To: This email address is being protected from spambots. You need JavaScript enabled to view it.
Subject: Re: Regarding NULL type in ASN.1


Hello Rama,

the handling of NULL is described in part7, clause 9.1:

21) Replace all occurrences of NULL type with the following associated TTCN-3 type (note 13):

- type enumerated <identifier> { NULL },
where <identifier> is the ASN.1 Type reference converted according
to clause 8.2, if a synonym of the NULL type is defined, or with

- the nested type definition enumerated { NULL } <identifier>,
where <identifier> is the ASN.1 field identifier, if NULL is used within a structured type.





I hope this clarifies the situation.

best regards

Thomas

Thomas Deiß
Principle Scientist
Nokia Siemens Networks

Heltorferstrasse 21
D-40472 Düsseldorf, Germany
Mob: +49 151 55153584
Tel: +49 211 94123584

This email address is being protected from spambots. You need JavaScript enabled to view it.
www.nokiasiemensnetworks.com/global/

Nokia Siemens Networks GmbH & Co. KG
Sitz der Gesellschaft: München / Registered office: Munich
Registergericht: München / Commercial registry: Munich, HRA 88537
WEEE-Reg.-Nr.: DE 52984304
Geschäftsleitung / Board of Directors: Lydia Sommer, Olaf
Horsthemke
Vorsitzender des Aufsichtsrats / Chairman of supervisory board:
Lauri Kivinen
Persönlich haftende Gesellschafterin / General Partner: Nokia Siemens Networks Management GmbH
Sitz der Gesellschaft: München / Registered office: Munich Registergericht: München / Commercial registry: Munich, HRB 163416


Important Note: This e-mail and any attachment are confidential and
may contain trade secrets and may well also be legally privileged or otherwise protected from disclosure. If you have received it in error, you are on notice of its status. Please notify us immediately by reply e-mail and then delete this e-mail and any attachment from your system. If you are not the intended recipient please understand that you must not copy this e-mail or any attachment or disclose the contents to any other person. Thank you for your cooperation.

Wichtiger Hinweis: Diese E-Mail und etwaige Anlagen können
Betriebs- oder Geschäftsgeheimnisse, dem Anwaltsgeheimnis unterliegende oder sonstige vertrauliche Informationen enthalten. Sollten Sie dieses E-Mail irrtümlich erhalten haben, ist Ihnen der Status dieses E-Mails bekannt. Bitte benachrichtigen Sie uns in diesem Fall sofort durch Antwort-Mail und löschen Sie dieses E-Mail nebst etwaigen Anlagen von Ihrem System. Ebenso dürfen Sie dieses E-Mail oder seine Anlagen nicht kopieren oder an Dritte weitergeben. Vielen Dank.






________________________________

From: active_ttcn3 : mts stf133 ttcn version 3 - active
members only [This email address is being protected from spambots. You need JavaScript enabled to view it.] On Behalf Of ext This email address is being protected from spambots. You need JavaScript enabled to view it.
Sent: Thursday, 04. December 2008 13:42
To: This email address is being protected from spambots. You need JavaScript enabled to view it.
Subject: Regarding NULL type in ASN.1


Hi ,

I have a query in using a NULL type declared in ASN.1. I am
writing a TTCN equivalent template.

How do we represent a NULL type in TTCN3.

TTCN3 Code:

template FailureCauseWithProtErr t_failurecausewithproterr
:= physicalChannelFailure;

template FailureCauseWithProtErrTrId t_failurecause := {
rrc_TransactionIdentifier := RRC_TRANSACTION_ID,
failureCause := physicalChannelFailure
}


ASN.1 Code :

FailureCauseWithProtErr ::= CHOICE {
configurationUnsupported NULL,
physicalChannelFailure NULL,
incompatibleSimultaneousReconfiguration NULL,
compressedModeRuntimeError TGPSI,
protocolError ProtocolErrorInformation,
cellUpdateOccurred NULL,
invalidConfiguration NULL,
configurationIncomplete NULL,
unsupportedMeasurement NULL,
mbmsSessionAlreadyReceivedCorrectly NULL,
lowerPriorityMBMSService NULL,
spare5 NULL,
spare4 NULL,
spare3 NULL,
spare2 NULL,
spare1 NULL
}


Regards,
R.Shekar


Please do not print this email unless it is absolutely
necessary.

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The
recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com

Please do not print this email unless it is absolutely necessary.

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com
Attachments:
The administrator has disabled public write access.

Regarding NULL type in ASN.1 04 Dec 2008 14:43 #7482

Dear Shekar,



György is absolutely right with his examples. So I would assume that you
contact your tool vendor with this problem.



Best regards,
Theo



Von: active_ttcn3 : mts stf133 ttcn version 3 - active members only
[This email address is being protected from spambots. You need JavaScript enabled to view it.] Im Auftrag von This email address is being protected from spambots. You need JavaScript enabled to view it.
Gesendet: Donnerstag, 4. Dezember 2008 14:57
An: This email address is being protected from spambots. You need JavaScript enabled to view it.
Betreff: Re: Regarding NULL type in ASN.1



Hi,



When I use the solution given ,I get the error : "no declaration for NULL"
is thrown in the TTCN compiler.



Used In TTCN Code :



template FailureCauseWithProtErr t_failurecausewithproterr := {
physicalChannelFailure := NULL }



template FailureCauseWithProtErrTrId t_failurecause := {
rrc_TransactionIdentifier := RRC_TRANSACTION_ID,
failureCause := valueof (t_failurecausewithproterr)

}

Regards,

Shekarr



_____

From: active_ttcn3 : mts stf133 ttcn version 3 - active members only
[This email address is being protected from spambots. You need JavaScript enabled to view it.] On Behalf Of György Réthy
Sent: Thursday, December 04, 2008 7:15 PM
To: This email address is being protected from spambots. You need JavaScript enabled to view it.
Subject: Re: Regarding NULL type in ASN.1

Hi,



The point is that the only legal value of a TTCN-3 enumerated type with a
single enumeration NULL is NULL.



Your example is failing at two points, you have to use {} for an ASN.1
CHOICE value and of course, you have to assign the value of the selected
alternative:



template FailureCauseWithProtErr t_failurecausewithproterr := {
physicalChannelFailure := NULL }



BR, Gyorgy




_____


From: active_ttcn3 : mts stf133 ttcn version 3 - active members only
[This email address is being protected from spambots. You need JavaScript enabled to view it.] On Behalf Of Deiss, Thomas (NSN -
DE/Duesseldorf)
Sent: 2008-december-4 14:36
To: This email address is being protected from spambots. You need JavaScript enabled to view it.
Subject: Re: Regarding NULL type in ASN.1

Hello Rama,



the handling of NULL is described in part7, clause 9.1:



21) Replace all occurrences of NULL type with the following associated
TTCN-3 type (note 13):

- type enumerated <identifier> { NULL },
where <identifier> is the ASN.1 Type reference converted according to clause
8.2, if a synonym of the NULL type is defined, or with

- the nested type definition enumerated { NULL } <identifier>,
where <identifier> is the ASN.1 field identifier, if NULL is used within a
structured type.





I hope this clarifies the situation.



best regards



Thomas



Thomas Deiß
Principle Scientist
Nokia Siemens Networks

Heltorferstrasse 21
D-40472 Düsseldorf, Germany
Mob: +49 151 55153584
Tel: +49 211 94123584

This email address is being protected from spambots. You need JavaScript enabled to view it.
www.nokiasiemensnetworks.com/global/

Nokia Siemens Networks GmbH & Co. KG
Sitz der Gesellschaft: München / Registered office: Munich
Registergericht: München / Commercial registry: Munich, HRA 88537
WEEE-Reg.-Nr.: DE 52984304
Geschäftsleitung / Board of Directors: Lydia Sommer, Olaf Horsthemke
Vorsitzender des Aufsichtsrats / Chairman of supervisory board: Lauri
Kivinen
Persönlich haftende Gesellschafterin / General Partner: Nokia Siemens
Networks Management GmbH
Sitz der Gesellschaft: München / Registered office: Munich Registergericht:
München / Commercial registry: Munich, HRB 163416


Important Note: This e-mail and any attachment are confidential and may
contain trade secrets and may well also be legally privileged or otherwise
protected from disclosure. If you have received it in error, you are on
notice of its status. Please notify us immediately by reply e-mail and then
delete this e-mail and any attachment from your system. If you are not the
intended recipient please understand that you must not copy this e-mail or
any attachment or disclose the contents to any other person. Thank you for
your cooperation.

Wichtiger Hinweis: Diese E-Mail und etwaige Anlagen können Betriebs- oder
Geschäftsgeheimnisse, dem Anwaltsgeheimnis unterliegende oder sonstige
vertrauliche Informationen enthalten. Sollten Sie dieses E-Mail irrtümlich
erhalten haben, ist Ihnen der Status dieses E-Mails bekannt. Bitte
benachrichtigen Sie uns in diesem Fall sofort durch Antwort-Mail und löschen
Sie dieses E-Mail nebst etwaigen Anlagen von Ihrem System. Ebenso dürfen Sie
dieses E-Mail oder seine Anlagen nicht kopieren oder an Dritte weitergeben.
Vielen Dank.





_____


From: active_ttcn3 : mts stf133 ttcn version 3 - active members only
[This email address is being protected from spambots. You need JavaScript enabled to view it.] On Behalf Of ext This email address is being protected from spambots. You need JavaScript enabled to view it.
Sent: Thursday, 04. December 2008 13:42
To: This email address is being protected from spambots. You need JavaScript enabled to view it.
Subject: Regarding NULL type in ASN.1

Hi ,



I have a query in using a NULL type declared in ASN.1. I am writing a TTCN
equivalent template.



How do we represent a NULL type in TTCN3.



TTCN3 Code:



template FailureCauseWithProtErr t_failurecausewithproterr :=
physicalChannelFailure;



template FailureCauseWithProtErrTrId t_failurecause := {
rrc_TransactionIdentifier := RRC_TRANSACTION_ID,
failureCause := physicalChannelFailure
}



ASN.1 Code :



FailureCauseWithProtErr ::= CHOICE {
configurationUnsupported NULL,
physicalChannelFailure NULL,
incompatibleSimultaneousReconfiguration NULL,
compressedModeRuntimeError TGPSI,
protocolError ProtocolErrorInformation,
cellUpdateOccurred NULL,
invalidConfiguration NULL,
configurationIncomplete NULL,
unsupportedMeasurement NULL,
mbmsSessionAlreadyReceivedCorrectly NULL,
lowerPriorityMBMSService NULL,
spare5 NULL,
spare4 NULL,
spare3 NULL,
spare2 NULL,
spare1 NULL
}





Regards,

R.Shekar



Please do not print this email unless it is absolutely necessary.

The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain proprietary, confidential or privileged information. If you are not
the intended recipient, you should not disseminate, distribute or copy this
e-mail. Please notify the sender immediately and destroy all copies of this
message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should
check this email and any attachments for the presence of viruses. The
company accepts no liability for any damage caused by any virus transmitted
by this email.

www.wipro.com

Please do not print this email unless it is absolutely necessary.

The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain proprietary, confidential or privileged information. If you are not
the intended recipient, you should not disseminate, distribute or copy this
e-mail. Please notify the sender immediately and destroy all copies of this
message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should
check this email and any attachments for the presence of viruses. The
company accepts no liability for any damage caused by any virus transmitted
by this email.

www.wipro.com
The administrator has disabled public write access.

Regarding NULL type in ASN.1 04 Dec 2008 15:04 #7483

Dear Shekar,

It seems that your TTCN-3 tool does not support NULL.

I think you need to contact your tool vendor and ask for support.

A workaround could be to manually define enumerated replacement for NULL
in ASN.1 if this does not work.

Kind regards,
Alexey

> Hi,
>
> When I use the solution given ,I get the error : "no declaration for
> NULL" is thrown in the TTCN compiler.
>
> Used In TTCN Code :
>
> template FailureCauseWithProtErr t_failurecausewithproterr := {
> physicalChannelFailure := NULL }
>
> template FailureCauseWithProtErrTrId t_failurecause := {
> rrc_TransactionIdentifier := RRC_TRANSACTION_ID,
> failureCause := valueof (t_failurecausewithproterr)
> }
>
> Regards,
> Shekarr
The administrator has disabled public write access.

Regarding NULL type in ASN.1 04 Dec 2008 15:10 #7484

Dear all,

as this is not a TTCN-3/ASN.1 issue but turned into a tool discussion
may I propose to terminate the thread here.

Thank you,

Ina


>
Original Message
> From: active_ttcn3 : mts stf133 ttcn version 3 - active
> members only [This email address is being protected from spambots. You need JavaScript enabled to view it.] On Behalf Of Alexey
> Mednonogov
> Sent: Thursday, December 04, 2008 4:05 PM
> To: This email address is being protected from spambots. You need JavaScript enabled to view it.
> Subject: Re: Regarding NULL type in ASN.1
>
> Dear Shekar,
>
> It seems that your TTCN-3 tool does not support NULL.
>
> I think you need to contact your tool vendor and ask for support.
>
> A workaround could be to manually define enumerated
> replacement for NULL
> in ASN.1 if this does not work.
>
> Kind regards,
> Alexey
>
> > Hi,
> >
> > When I use the solution given ,I get the error : "no
> declaration for
> > NULL" is thrown in the TTCN compiler.
> >
> > Used In TTCN Code :
> >
> > template FailureCauseWithProtErr t_failurecausewithproterr := {
> > physicalChannelFailure := NULL }
> >
> > template FailureCauseWithProtErrTrId t_failurecause := {
> > rrc_TransactionIdentifier := RRC_TRANSACTION_ID,
> > failureCause := valueof (t_failurecausewithproterr)
> > }
> >
> > Regards,
> > Shekarr
>
The administrator has disabled public write access.
  • Page:
  • 1

FacebookTwitterGoogle BookmarksRedditNewsvineTechnoratiLinkedin