Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Titan » Some problem of compiling TTCN suit of LTE(LTE 3GPP TTCN 36.523-3)
Some problem of compiling TTCN suit of LTE [message #1829581] Tue, 07 July 2020 09:53 Go to next message
yang xi is currently offline yang xiFriend
Messages: 4
Registered: July 2020
Junior Member
Hey,
we are compiling the ETSI UE test suites (36523-3-c00_TTCN3_LTE,R12) with TITAN 7.1.0
I get unexpected error :
1) error: Using `*' for mandatory field
Since TITAN does not support that '*' is used for mandatory elements , how to set a "anyvalue" to a variable.
2) ../Common/IMS/IMS_Procedures_CallControl.ttcn:1019.35-54: error: The operand of operation `str2oct()' should be charstring value
3)
Line 563: ../Common/IP_PTC/IP_PTC_HTTP_Handler.ttcn:74.9-25: error: No coding rule specified for type '@HTTP_ASP_TypeDefs.HttpResponse_Type'
Line 567: ../Common/IP_PTC/IP_PTC_HTTP_Handler.ttcn:73.9-24: error: No coding rule specified for type '@HTTP_ASP_TypeDefs.HttpRequest_Type'.
How to rewrite the enc/dec function for specified type?

4) Why the head file is not generated by TITAN when compiling the TTCN to cc/hh?

CommonIratDefs.hh:2772:10: fatal error: IRAT_CO_ORD_PORT.hh: No such file or directory
#include "IRAT_CO_ORD_PORT.hh"
^~~~~~~~~~~~~~~~~~~~~

I am not getting any clue what is causing error. Please help!
Thank you for your reply
Re: Some problem of compiling TTCN suit of LTE [message #1829589 is a reply to message #1829581] Tue, 07 July 2020 11:53 Go to previous messageGo to next message
Kristof Szabados is currently offline Kristof SzabadosFriend
Messages: 60
Registered: July 2015
Member
Hi Yang,

Could you add some code examples to these issue, so that we can see what is causing the issues?

1)
Without seeing the code this could be for example assigning '*' to a union field, which can not be set to omit.

2)
According to the standard the operand of the str2oct predefined function should be a charstring value.

3)
In general if you wish to declare that all types in a module an be encoded with the "RAW" encoding you could just add "with { encode "RAW" }" to the enc of the module (right behind the closing bracket of the module).

4)
Without knowing more about the actual system, I would guess that it might be something you need to write yourself.
In which case you could use the testport generator, described in the 2nd chapter of the API technical reference guide https://www.eclipse.org/downloads/download.php?file=/titan/Apiguide.pdf

Best Regards
Kristof
Re: Some problem of compiling TTCN suit of LTE [message #1829592 is a reply to message #1829589] Tue, 07 July 2020 12:34 Go to previous messageGo to next message
Elemer Lelik is currently offline Elemer LelikFriend
Messages: 1120
Registered: January 2015
Senior Member
Hi Yang,

for 1: you should replace "*" with "?"; for 1 and 2 , it's probably a good idea to write a TR to those who emit the test suites as the code appears to be non-standard
for 4: the test port hh/cc files if the port is external (not internal between components) are not generated from the TTCN-3 code; they should be written separately and added
to the build; if you mark the port IRAT_CO_ORD_PORT as internal ( with extension internal ) then Titan will generate a dummy hh/cc pair and the code will compile (but of course it will not run)
for 3: the codec belonging to a specific type has to be either written manually or generated by Titan based on appropriate decorations (variants) embedded in the TTCN-3 code;
these variants with a few exceptions are not standard but tool specific; please check posts in this forum about Titan codecs (RAW, JSON, XML etc).

Maybe its a good idea if you start with less complex test suites to get familiar with the way Titan works.

Best regards
Elemer
Re: Some problem of compiling TTCN suit of LTE [message #1829594 is a reply to message #1829589] Tue, 07 July 2020 12:50 Go to previous messageGo to next message
yang xi is currently offline yang xiFriend
Messages: 4
Registered: July 2020
Junior Member
Dear Kristof,
Thank you for your reply timely. The code of TTCN is attaced.
The code block of each issue is follow:
1) I correct the error though replace "*" with cs2 (maxNumberROHC_ContextSessions is a enum type )
error code:
  template (present) PDCP_Parameters cr_PDCP_Parameters :=
  { /* @status    APPROVED (LTE, UTRAN) */
    supportedROHC_Profiles := ?,
    maxNumberROHC_ContextSessions := *
  };

compiler error:
../Common/IRAT/EUTRA_CapabilityFunctions.ttcn: In TTCN-3 module `EUTRA_CapabilityFunctions':
../Common/IRAT/EUTRA_CapabilityFunctions.ttcn:55.3-59.3: In template definition `cr_PDCP_Parameters':
../Common/IRAT/EUTRA_CapabilityFunctions.ttcn:58.38: In template for record field `maxNumberROHC_ContextSessions':
../Common/IRAT/EUTRA_CapabilityFunctions.ttcn:58.38: error: Using `*' for mandatory field

modify :
error code:
  template (present) PDCP_Parameters cr_PDCP_Parameters :=
  { /* @status    APPROVED (LTE, UTRAN) */
    supportedROHC_Profiles := ?,
    maxNumberROHC_ContextSessions := cs2 
  };

2) error code:
v_BitStr := oct2bit(str2oct(v_Status_ElemList[0])); // first of 1 or more geopriv elements

v_Status_ElemList[0] is a type of utf8 char string, how can i modify the code to avoid the compiling error.


compiler error: 
  ../Common/IMS/IMS_Procedures_CallControl.ttcn:987.5-1031.5: In if statement:
   ../Common/IMS/IMS_Procedures_CallControl.ttcn:1019.7-56: In variable assignment:
    ../Common/IMS/IMS_Procedures_CallControl.ttcn:1019.19-56: In the operand of operation `oct2bit()':
     ../Common/IMS/IMS_Procedures_CallControl.ttcn:1019.27-55: In the operand of operation `str2oct()':
      ../Common/IMS/IMS_Procedures_CallControl.ttcn:1019.35-54: error: The operand of operation `str2oct()' should be charstring value

3) If just a type is need to be defined with RAW but not all module, how should i do ? Add "with { encode "RAW" }" to the enc of the type recode..{}??
Define of the type:
  type record HttpResponse_Type {
    HttpStatusLine_Type         statusLine,                     /* Status-Line in RFC 2616 [27] clause 6.1 */
    Date                        date optional,                  /* Date according to RFC 2616 [27] clause 14.18 */
    SIP_ETag                    eTag optional,                  /* ETag according to RFC 2616 [27] clause 14.19 */
    Server                      server optional,                /* Server according to RFC 2616 [27] clause 14.38 */
    WwwAuthenticate             wwwauthenticate optional,       /* WWW-Authenticate in RFC 2616 [27] clause 14.47 (NOTE: Same type definition as for SIP type definitions) */
    AuthenticationInfo          authenticationInfo optional,    /* Authentication-Info in RFC 2617 [37] clause 3.2.3 (NOTE: Same type definition as for SIP type definitions) */
    ContentType                 contentType optional,           /* Content-Type in RFC 2616 [27] clause 14.17 (NOTE: Same type definition as for SIP type definitions) */
    ContentLength               contentLength optional,         /* Content-Length in RFC 2616 [27] clause 14.13 (NOTE: Same type definition as for SIP type definitions) */
    Expires                     expires optional,               /* Expires in RFC 2616 [27] clause 14.21 (NOTE: Same type definition as for SIP type definitions) */
    charstring                  messageBody optional            /* e.g. XCAP Message (XML document or XML fragment) */
  };




compiler error:
Line 565: ../Common/IP_PTC/IP_PTC_HTTP_Handler.ttcn:74.9-25: error: No coding rule specified for type '@HTTP_ASP_TypeDefs.HttpResponse_Type'
Line 569: ../Common/IP_PTC/IP_PTC_HTTP_Handler.ttcn:73.9-24: error: No coding rule specified for type '@HTTP_ASP_TypeDefs.HttpRequest_Type'

4) I think that the missing hh file is not the testport file which wiil be genrated by TITNA compiler, and the titan have finished the generation of all cc/hh.

Hopping more disscuss with you ,thank you !

Best Regards
yang



Re: Some problem of compiling TTCN suit of LTE [message #1829629 is a reply to message #1829592] Wed, 08 July 2020 00:39 Go to previous message
yang xi is currently offline yang xiFriend
Messages: 4
Registered: July 2020
Junior Member
Dear Kristof,
Your suggestions help me a lot. Thanks again。
Best Regards
yang
Previous Topic:compiler.exe -s0 for Windows
Next Topic:decvalue for RFC4826 XML fails
Goto Forum:
  


Current Time: Sat Apr 20 00:53:20 GMT 2024

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

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

Back to the top