Skip to content
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

WriteDataByIdentifier service execution returned a negative response IncorrectMessageLengthOrInvalidFormat (0x13) when data length is correct #215

Closed
funnyrabbitvu opened this issue Feb 27, 2024 · 4 comments

Comments

@funnyrabbitvu
Copy link

Hi @pylessard,

While using service 2E, I received NRC 13 even the data length is correct and used bytes format.
[NegativeResponseException] : WriteDataByIdentifier service execution returned a negative response IncorrectMessageLengthOrInvalidFormat (0x13)
Server refused our request for service WriteDataByIdentifier with code "IncorrectMessageLengthOrInvalidFormat" (0x13)

Please help me to check this. Thank you!

@pylessard
Copy link
Owner

pylessard commented Feb 27, 2024

I cannot check anything, you haven't shared anything.
Share code and log to get help

The negative response comes from your ECU, not this lib

@funnyrabbitvu
Copy link
Author

I cannot check anything, you haven't shared anything. Share code and log to get help

The negative response comes from your ECU, not this lib

Hi, I tried writing 16 bytes data to the ECU's DID (defined by the ECU). I also defined this DID codec in my configurations.

client.write_data_by_identifier(DID, b"\x00\x20\x00 \x00\x00\x25\x00\x000\x00\x00%\x00\x00\x00")

@pylessard
Copy link
Owner

Your ECU refuses it. I can't do much.
Check your log

@funnyrabbitvu
Copy link
Author

Checked issue from ECU side. I will close this issue. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants