Connect Xcp

Starts xcp communication over needed protocol, between source and destination over specific port

Arguments Description

ecu_name (str): the ecu name was got from the A2L file eg: “/begin MODULE New “, the most used “New”

channel_name (str): switch the A2L file parsed the channel name could be ETH-OBD

protocol (str, optional): Protocol de communication. Defaults to “TCP”.

dst_host (str, optional): Dut Ip. Defaults to “”.

dst_port (int, optional): switch the A2L file parsed -> port (decimal)

src_host (str, optional): No need to define it. Defaults to “”.

src_port (int, optional): No need to define it. Default to 0.

Returns

bool: true in case of the cnx was well established; otherwise, False.

Examples

${connect_xcp}= Connect Xcp ${ecu_name} ${channel_name} ${protocol} ${dst_host} ${dst_port}