Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » OER encoding is incorrect(titan's Oer encoding is incorrect)
OER encoding is incorrect [message #1776212] Tue, 14 November 2017 00:51 Go to next message
lv lvzhiguo is currently offline lv lvzhiguoFriend
Messages: 1
Registered: November 2017
Junior Member
I use the latest version of titan eclipse OER encoding, found with other OER encoding different
The coding structure is as follows:
ModuleName DEFINITIONS AUTOMATIC TAGS ::= BEGIN
TESTMsg ::= SEQUENCE{
version INTEGER(1), -- protocol version 1
time Time64, -- UTC timestamp with microsecond
...
}
Time64 ::= INTEGER (0..9223372036854775807)
END
The data is as follows:
{
version :=1,
time :=1508306052623
}
titan encoded using OER:010000015F2E0BE60F
The correct OER encoding is:00010000015F2E0BE60F
Will titan set by this parameter or what? Encode him OER into the correct format?
Re: OER encoding is incorrect [message #1776766 is a reply to message #1776212] Tue, 21 November 2017 12:27 Go to previous messageGo to next message
Elemer Lelik is currently offline Elemer LelikFriend
Messages: 657
Registered: January 2015
Senior Member
Hi Lv,

TITAN does not support the encoding of extendable sequence types (notice the ... in the type definition). These types will be encoded as they were not extendable.
This is the cause, that the first octet is missing in the encoded octetstring.
For further limitations of the OER encoding see the Programmers' Technical Reference Guide for the TITAN TTCN-3 Toolset section 4.27.


BTW, you have posted your message in the wrong forum; for Titan-related questions please use

https://www.eclipse.org/forums/index.php/f/297/


Best regards
Elemer



Re: OER encoding is incorrect [message #1777990 is a reply to message #1776766] Thu, 07 December 2017 11:28 Go to previous message
Elemer Lelik is currently offline Elemer LelikFriend
Messages: 657
Registered: January 2015
Senior Member
Hi Lv,


OER ellipsis (...) support has been added,


see https://bugs.eclipse.org/bugs/show_bug.cgi?id=527653;

please download the source tagged 6.3.1 from github and build for your platform.

BR
Elemer

Previous Topic:SWT not working
Next Topic:Maven updating indexes never ends
Goto Forum:
  


Current Time: Wed Dec 13 09:36:30 GMT 2017

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

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