Send Diag With Custom Source And Target

Sends diag synchronously, with waiting for response for a specific source and target.

Arguments Description

payload (Union[list[int], bytes]): Diagnostic payload to be sent

src_diag (int, optional): source address. Defaults to None.

tar_diag (int, optional): target address. Defaults to None.

dut_name (str, optional): connection name. Defaults to the started DUT.

Returns

ref:’ Response<Response>’: Response of the send diag job

Example

# Case1: sending with list[int]
${data}= Create List ${0x22} ${0x01} ${0x02}
Send Diag With Custom Source And Target ${data} ${0x10} ${0x22} ${dut_name}
# Case2: Sending 1 byte
Send Diag With Custom Source And Target ${0x22} ${0x01} ${0x02} ${dut_name}

Note

It is not possible to change the source diag address in case of DoIP.