Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Titan » Data Type Conversion(How to convert record type to hexstring type)
Data Type Conversion [message #1803082] Fri, 22 February 2019 02:40 Go to next message
le tian is currently offline le tianFriend
Messages: 16
Registered: October 2018
Junior Member
I want to use record type to define some data when defining data. Because I use serial port to transfer data, I want to convert it to hexstring when transferring data. What should I do?
Re: Data Type Conversion [message #1803084 is a reply to message #1803082] Fri, 22 February 2019 07:40 Go to previous message
Gábor Szalai is currently offline Gábor SzalaiFriend
Messages: 45
Registered: December 2015
Member
You need to encode the TTCN-3 abstract data value. The TITAN provides various built in encoders:
- RAW for binary format
- TEXT for text based protocols
- JSON
- XML

Or if none of the built in encoders are sufficient, you can write a TTCN-3 or C++ function which encode the data.

Are you sure the hexstring? The serial communication, as any other, uses octets.

Previous Topic:PTCs on different machines
Next Topic:regarding mctr_cli
Goto Forum:
  


Current Time: Fri Jul 10 12:59:13 GMT 2020

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

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

Back to the top