Skip to main content



      Home
Home » Eclipse Projects » Eclipse Titan » Encode/Decode enable for all ttcn modules(Is there a compiler option to enable particular encode decode funtions for ttcn modules)
Encode/Decode enable for all ttcn modules [message #1850539] Tue, 08 March 2022 01:46 Go to next message
Eclipse UserFriend
Hello,

I am using compiler version 8.1.0 compiled with GCC 10.2.1 on debian.

When I use the with { encode "JSON" } or with { encode "XML" } the encode decode functions are working properly. But without those the codec functions are not working.

Is there a compiler switch to enable JSON/XML globally for all modules?

Thanks,
Bipin
Re: Encode/Decode enable for all ttcn modules [message #1850564 is a reply to message #1850539] Tue, 08 March 2022 10:08 Go to previous messageGo to next message
Eclipse UserFriend
No. There is no such compiler switch.
Re: Encode/Decode enable for all ttcn modules [message #1850584 is a reply to message #1850564] Tue, 08 March 2022 21:10 Go to previous messageGo to next message
Eclipse UserFriend
Thank you.

I have another question about setting the default. When the asn files are compiled, the generated C++ file has statements like this:

UNIVERSAL_CHARSTRING MasterInformationBlock_dl__Bandwidth_default_coding("");

Where can I set the default coding?

Thanks,
Bipin

Re: Encode/Decode enable for all ttcn modules [message #1850585 is a reply to message #1850584] Tue, 08 March 2022 22:01 Go to previous message
Eclipse UserFriend
Also ran into an xml encoding problem. When I use the Titan xml encoding, I get the following

<ul-SCH-Config>
	<maxHARQ-Tx>n5</maxHARQ-Tx>
	<periodicBSR-Timer>sf20</periodicBSR-Timer>
	<retxBSR-Timer>sf320</retxBSR-Timer>
	<ttiBundling>false</ttiBundling>
</ul-SCH-Config>


However when I use the opensource asn1 compiler (https://github.com/vlm/asn1c) I get this

<ul-SCH-Config>
	<maxHARQ-Tx><n5/></maxHARQ-Tx>
	<periodicBSR-Timer><sf20/></periodicBSR-Timer>
	<retxBSR-Timer><sf320/></retxBSR-Timer>
	<ttiBundling><false/></ttiBundling>
</ul-SCH-Config>


This is causing encode/decode problems and I am not sure which compiler is the standard. Or is there an option to select the format?
Thanks in advance for all the help.
Previous Topic:Serial-Port "hex-mode"
Next Topic:Any interest in a TTCN/TITAN related conference?
Goto Forum:
  


Current Time: Sun Jul 13 17:24:15 EDT 2025

Powered by FUDForum. Page generated in 0.04403 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top