-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
about PARAM-SNREF #377
Comments
I read up the spec, and it indeed allows any parameter that uses a DOP with a A_UINT32 base data type while odxtools currently only allows DTC-DOPs. I'll only be able to fix this in January, though...
Hm, I cannot see how |
if self.termination is "END-OF-PDU",__termination_sequence return None e.g /DESC> COMPU-METHOD> CATEGORY>IDENTICAL /COMPU-METHOD> DIAG-CODED-TYPE xsi:type="MIN-MAX-LENGTH-TYPE" BASE-DATA-TYPE="A_BYTEFIELD" TERMINATION="END-OF-PDU"> MIN-LENGTH>0 /DIAG-CODED-TYPE> PHYSICAL-TYPE BASE-DATA-TYPE="A_BYTEFIELD"/> /DATA-OBJECT-PROP> |
the is another issue if i have 3 service,One of them meets the conditions. It shouldn't be throwing an exception.
Whether it's correct or not |
doesn't it return an empty bytes object? |
in this case, the telegram which you are trying to decode could not be interpreted by odxtools (neither as a request, nor as a response or as a global negative response). In my opinion, raising a |
(as a work-around you can catch the exception in the code that calls |
thanks, I understand |
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?
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
The text was updated successfully, but these errors were encountered: