Skip to content

about PARAM-SNREF #377

@cmydd

Description

@cmydd

e.g
PARAM xsi:type="VALUE" SEMANTIC="DATA">
SHORT-NAME>Param_DTCValue
LONG-NAME>DTC Value
BYTE-POSITION>2
DOP-REF DOCREF="ES_DataLibra" DOCTYPE="LAYER" ID-REF="DOP_UINTHEX3Bytes"/>
/PARAM>

ENV-DATA-DESC ID="ENVDESC_DTCExtenDataRecor">
SHORT-NAME>ENVDESC_DTCExtenDataRecor
LONG-NAME>DTC Extended Data Record
PARAM-SNREF SHORT-NAME="Param_DTCValue"/>
ENV-DATAS>

environmentdatadescription.py
line 133
if not isinstance(prev_dop, DtcDop):
DOP_UINTHEX3Bytes is touble_code.the dop is not DtcDop.

Is it correct to change it to this?

    for prev_param, prev_param_value in reversed(encode_state.journal):
        if prev_param.short_name == self.param_snref:
            dtc_param_value = prev_param_value
        dtc_param = prev_param
        prev_dop = getattr(prev_param, "dop", None)
        if not isinstance(prev_dop, DtcDop):
            continue
        dtc_dop = prev_dop

other question.
minmaxlengthtype.py
line 114
odxassert(value_len % len(termination_sequence) == 0)

if if self.termination == "END-OF-PDU",termination_sequence is None. An exception is thrown

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions