Problem with duplicate incoming message type boolean [message #1792071] |
Tue, 10 July 2018 19:01 |
Vicente Leal Messages: 8 Registered: July 2018 |
Junior Member |
|
|
Hi everybody,
I am new with Eclipse Titan and I am trying to implement a V2X test suite from ETSI, but I have a problem that I cannot resolve.
My problem is in a file from ITS library, in particular is in the file called LibItsGeoNetworking_TestSystem.ttcn.
At line 52 I have the following problem:
"Duplicate incoming message type boolean "
The variables with this problem are in bold:
type port UpperTesterPort message {
out
UtInitialize, UtChangePosition, UtGnTrigger;
in
UtInitializeResult, UtChangePositionResult, UtGnTriggerResult, UtGnEventInd;
} // end UpperTesterPort
I attach the file.
Can somebody help me? I don't know how to solve it.
Thanks,
Vicente Leal
|
|
|
Re: Problem with duplicate incoming message type boolean [message #1792146 is a reply to message #1792071] |
Thu, 12 July 2018 07:37 |
|
Hola Vicente,
welcome to Titan.
Here's the short answer: on this (internal and invisible, yet existing) interface between the logical test port and physical test port Titan cannot distinguish between two incoming messages that have the same type.
Both UtChangePositionResult and UtGnTriggerResult are declared as boolean:
in LibItsGeoNetworking_TypesAndValues.ttcn:
type boolean UtGnTriggerResult;
in LibItsCommon_TypesAndValues.ttcn:
type boolean UtChangePositionResult;
The reason goes back to a slightly different architecture of Titan as compared to the standard: in the standard ETSI architecture the test adapter , which is equivalent to the Titan test port , will differentiate
between the two types and will already send them on this internal interface as two different types. ( This I guess can also be done in the Titan test port with a small modification)
However a simple trick will help: the indistinguishable booleans will have to be transformed in simple structured types that can be differentiated:
type record UtGnTriggerResult {
boolean utGnTriggerResult
}
type record UtChangePositionResult {
boolean utChangePositionResult
}
Now , here's the long answer:
Migrating an ETSI suite to Titan can be a long and complex exercise:
Here's some posts I'd recommend you to read before you decide to go for it:
About compiling 3GPP and ETSI test suites
https://www.eclipse.org/forums/index.php/t/1087046/
Eclipse Titan and the dilemma of PER-encoding(ASN.1 PER-codec for Titan )
https://www.eclipse.org/forums/index.php/t/1070344/
Executing ETSI Diameter Rx test cases
https://www.eclipse.org/forums/index.php/t/1074256/
Porting 3gpp test suites to Titan
https://www.eclipse.org/forums/index.php/t/1093289/
There's a piece of good news though:
Here:
elnrnag/ITSG5_TS_Titanized_TA
https://github.com/elnrnag/ITSG5_TS_Titanized_TA
you can find a complete and functional (tested against a Cohda blue box) ITS G5 suite that, although is an older version of the ETSI suite, should answer all your questions as it has been adapted for Titan.
It has an external PER codec based on asn1c ( unfortunately later versions of ITS are not supported by asn1c) and we have fitted it with a thin layer to connect to the JAVA test adapter written by ETSI (so it contains a C++ - JAVA boundary). As far as I know ETSI might be working on set of C++ Titan ports, but I have no solid info.
Please do contact us if you run into any problem; we will try to help.
Best regards
Elemer
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03604 seconds