Difference between revisions of "TTCN"

From eLinux.org
Jump to: navigation, search
(Installation instructions for Eclipse Titan with SocketCAN)
(Added documentation)
 
Line 10: Line 10:
 
* [https://projects.eclipse.org/projects/tools.titan/developer TTCN-3 compiler test ports, use: titan/titan.TestPorts.SocketCANasp - CAN bus test port ]
 
* [https://projects.eclipse.org/projects/tools.titan/developer TTCN-3 compiler test ports, use: titan/titan.TestPorts.SocketCANasp - CAN bus test port ]
  
Forum (Background informtion is found here):  
+
Documentation wroth reading:
https://www.eclipse.org/forums/index.php/t/1074584/
+
* [http://www.ttcn-3.org/files/TTCN3_P.pdf TTCN-3 Course presentation material]
 +
* [http://www.ttcn-3.org/index.php/component/taxonomy/books Book: An Introduction to TTCN-3, 2nd Edition]
  
  
 +
Forum (Background information is found here):
 +
https://www.eclipse.org/forums/index.php/t/1074584/
  
 
Installation:
 
Installation:

Latest revision as of 10:11, 8 January 2017

TTCN support for CAN, CAN_FD, SAE J1939 and ISOTP:

TTCN is well suited for testing complex CAN and ISOTP/ car diagnostics applications.

Resources:

Documentation wroth reading:


Forum (Background information is found here): https://www.eclipse.org/forums/index.php/t/1074584/

Installation:

  • Ubuntu / Debian (installation of the dependencies, currently not the software itself):
  apt install eclipse-titan 
   git clone git://git.eclipse.org/gitroot/titan/titan.TestPorts.SocketCANasp.git 
   cd titan.TestPorts.SocketCANasp
   Documentation is found in: doc/README.md
   cd demo
   make
    • Testing the Installation
      • execute: "demo/initscript.sh"
      • run a test case:
   ttcn3_start SocketCAN SocketCAN.cfg <testcasefilename.testcasename> 

where <testcasefilename.testcasename> is any of the following:

   SocketCAN_RAW_test.tc_can_raw_send_and_receive_frame
   SocketCAN_RAW_test.tc_can_raw_setsockopt_CAN_RAW_FILTER
   SocketCAN_RAW_test.tc_can_raw_setsockopt_CAN_RAW_ERR_FILTER
   SocketCAN_RAW_test.tc_can_raw_setsockopt_CAN_RAW_LOOPBACK
   SocketCAN_RAW_test.tc_can_raw_setsockopt_CAN_RAW_RECV_OWN_MSGS
   SocketCAN_RAW_test.tc_can_raw_setsockopt_CAN_RAW_FD_FRAMES
   SocketCAN_RAW_test.tc_can_raw_setsockopt_CAN_RAW_JOIN_FILTERS

Note: On some kernels e.g. Ubuntu 16.10 the following testcase seems to crash the whole kernel. This is a regression in later kernels or in later titan versions and needs to be investigated:

   SocketCAN_BCM_test.tc_can_bcm_TX_SETUP_TX_DELETE
      • alternatively run a sequence of test cases:

Remove the line "SocketCAN_BCM_test.tc_can_bcm_TX_SETUP_TX_DELETE" from the execution section of the file "SocketCAN.cfg" to make sure the crashing test case is not started. Then:

    ttcn3_start SocketCAN SocketCAN.cfg
  • Eclipse GUI Installation (optional, mid January new version is expected):
    • Installation instructions are found on the Titan Download Page in the "Titan documentation package" in the document "Eclipse_installationguide.pdf".