3. cc_fdx_lauterbach

3.1. Communication Channel Via lauterbach

module:

cc_fdx_lauterbach

synopsis:

CChannel implementation for lauterbach(FDX)

class pykiso.lib.connectors.cc_fdx_lauterbach.CCFdxLauterbach(t32_exc_path=None, t32_config=None, t32_main_script_path=None, t32_reset_script_path=None, t32_fdx_clr_buf_script_path=None, t32_in_test_reset_script_path=None, t32_api_path=None, port=None, node='localhost', packlen='1024', device=1, **kwargs)[source]

Lauterbach connector using the FDX protocol.

Constructor: initialize attributes with configuration data.

Parameters:
  • t32_exc_path (str) – full path of Trace32 app to execute

  • t32_config (str) – full path of Trace32 configuration file

  • t32_main_script_path (str) – full path to the main cmm script to execute

  • t32_reset_script_path (str) – full path to the reset cmm script to execute

  • t32_fdx_clr_buf_script_path (str) – full path to the FDX reset cmm script to execute

  • t32_in_test_reset_script_path (str) – full path to the board reset cmm script to execute

  • t32_api_path (str) – full path of remote api

  • port (str) – port number used for UDP communication

  • node (str) – node name (default localhost)

  • packlen (str) – data pack length for UDP communication (default 1024)

  • device (int) – configure device number given by Trace32 (default 1)

_cc_close()[source]

Close FDX connection, UDP socket and shut down Trace32 App.

Return type:

None

_cc_open()[source]

Load the Trace32 library, open the application and open the FDX channels (in/out).

Return type:

bool

Returns:

True if Trace32 is correctly open otherwise False

_cc_receive(timeout=0.1)[source]

Receive message using the FDX channel.

Return type:

Dict[str, Union[bytes, str, None]]

Returns:

message

_cc_send(msg, **kwargs)[source]

Sends a message using FDX channel.

Parameters:
  • msg (bytes) – message

  • kwargs – not used

Return type:

int

Returns:

poll length

load_script(script_path)[source]

Load a cmm script.

Parameters:

script_path (str) – cmm file path

Returns:

error status

reset_board()[source]

Executes the board reset.

Return type:

None

start()[source]

Override clicking on “go” in the Trace32 application.

The channel must have been successfully opened (Trace32 application opened and script loaded).

Return type:

None

class pykiso.lib.connectors.cc_fdx_lauterbach.PracticeState(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Available state for any scripts loaded into TRACE32.