HsfzRequest

class mtf.diag_port.diag_servers.hsfz_server.HsfzRequest

The HSFZ responses generator.

__init__(payload: bytes)

The HSFZ constructor.

Parameters:

payload – the response payload.

generate_negative_response(nrc: int = 17, data: bytes = b'') bytes

Generate a negative response on a Hsfz request.

Parameters:
  • nrc – Negative response Code

  • data – response data.

Returns:

The Hsfz negative response.

generate_positive_response(data: bytes = b'') bytes

Generate a positive response on a Hsfz request.

Parameters:

data – response data.

Returns:

Hsfz positive response.