Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Titan » Encoding TTCN type
Encoding TTCN type [message #1720352] Mon, 18 January 2016 06:38 Go to next message
murli sharma is currently offline murli sharmaFriend
Messages: 85
Registered: November 2015
Member
Hi,

I wanted to know how TTCN data types like the following record can be encoded/decoded?

type record RRC_DATA_IND {
integer cellId,
SS_RB_Identity rB_Id,
LogicChGERAN ch optional,
SapId sapId optional,
SS_CN_DomainIdentity cN_Domain,
START_Value ttcn_start optional,
RRCDataIndType msg
};

The complete script containing this data type is attached.

Thanks
Murli
Re: Encoding TTCN type [message #1720359 is a reply to message #1720352] Mon, 18 January 2016 08:05 Go to previous messageGo to next message
roland gecse is currently offline roland gecseFriend
Messages: 20
Registered: December 2015
Junior Member
TITAN encodes/decodes the TTCN-3 abstract syntax in a proprietary way using so called Test Ports. Each Test Ports is a C++ class. Each port of a given port type is an instance of this C++ class. A method of the test port object is invoked every time when a message is being sent on the TTCN-3 port associated with it. Receiving is slightly more complicated.

Test ports are protocol specific. TITAN provides some test ports, you can check if there is one suitable for your purpose. If not, then you can develop your own Test Port. You will find everything you need in the documentation accompanying TITAN, i.e. the doc folder of the distribution. Refer to the API Technical Reference for TITAN TTCN-3 Test Executor. Start with section 2. You will also need to study the data mapping in section 5. You will also find examples attached. The other documents will also provide insight to Test Ports and other useful TITAN features.

Good luck and don't forget to share the outcome of your efforts!

R



Re: Encoding TTCN type [message #1720360 is a reply to message #1720352] Mon, 18 January 2016 08:13 Go to previous message
Elemer Lelik is currently offline Elemer LelikFriend
Messages: 1120
Registered: January 2015
Senior Member
Hi Murli,

RRC_DATA_IND , RRCD_DATA_REQ etc. are not PDUS (Protocol Data Units) which are sent between two peer layers in different nodes, but ASPs (Abstract Service Primitives) sent between two layers in the same node (in this case, NAS and RRC),
so they are not necessarily encoded; they can be sent as structures between the layers, but this is implementation dependent (nothing forbids encoding them either).
So for the exact answer please check the documentation attached to the test suite.


Best regards

Elemer


Previous Topic:Error Compiling TTCN-3 Script
Next Topic:Logging in Eclipse Titan part I : Configuration
Goto Forum:
  


Current Time: Wed Apr 24 23:18:30 GMT 2024

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

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

Back to the top