Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 06:46 Go to next message
Bipin V is currently offline Bipin VFriend
Messages: 5
Registered: February 2022
Junior Member
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 15:08 Go to previous messageGo to next message
Gábor Szalai is currently offline Gábor SzalaiFriend
Messages: 134
Registered: December 2015
Senior Member
No. There is no such compiler switch.
Re: Encode/Decode enable for all ttcn modules [message #1850584 is a reply to message #1850564] Wed, 09 March 2022 02:10 Go to previous messageGo to next message
Bipin V is currently offline Bipin VFriend
Messages: 5
Registered: February 2022
Junior Member
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] Wed, 09 March 2022 03:01 Go to previous message
Bipin V is currently offline Bipin VFriend
Messages: 5
Registered: February 2022
Junior Member
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: Mon Oct 07 05:28:39 GMT 2024

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

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

Back to the top