Fr Pdu Assembler Module
- class mtf.network_port.iso_tp.custom_fr_tp.fr_pdu_assembler.FrPduAssembler
The FrPduAssembler class is likely used to assemble PDUs that arrive in multiple frames
- __init__()
- reset()
Reset the state of the PDU assembler
- is_completed()
Check whether the message assembly is complete or not.
- Returns:
bool: If the message is complete, return True, otherwise, return False
- add_frame(payload)
Add a new frame to the PDU assembler.
- Args:
payload (list): list of byte
- Returns:
bool
- get_tp_message()
Retrieve the currently assembled message
- Returns:
list: A list of integers containing the retrieved messages
- property target_address
The getter for the attribute _target_address
- Returns:
int
- property source_address
The getter for the attribute _source_address Return:
int
- property message_length
The getter for the attribute _message_length Return:
int