Automotive and Embedded Networks

取消
显示结果 
搜索替代 
您的意思是: 

Automotive Diagnostic Command Set / Flashing an ECU based on UDS-Session

已解决!
转到解答

Hello,

I would like to use the Automotive Diagnostic Command Set (Version 18.5) to flash an ECU based on an UDS-Session. We are using LabWindows/CVI 2015.
To open an UDS-Session with ndOpenDiagnosticOnCANFD(), there are the parameters transmitID and receiveID necessary.

 

What is the reason that the Automotive Diagnostic Command Set does not support 29-Bit Message-Ids as transmitID and receiveID for the function ndOpenDiagnosticOnCANFD()?

It comes back with Error:
Error -8003 occurred at NIDiagCS.dll
Possible reason(s): Automotive Diagnostic Command Set: The arbitration ID passed to the function is not valid.

 

The transmitID and receiveID I have to use: 0x18DA10F1 and 0x18DAF110. These Ids are coming from the Software-Developer of the ECU.

0 项奖励
1 条消息(共 4 条)
3,935 次查看
解答
已被主题作者 RBATNICOMM 接受

Hi,

 

I am not sure why it is not mentioned in the documentation for C API. Can you try to OR the ID with the flag?

From Open Diagnostic on CAN FD.vi:

"To specify an extended (29-bit) ID, OR the value with 0x20000000."

ZY_Ong_0-1662551487645.png

 

Senior Technical Support Engineer | CLD CTA | NI


DISCLAIMER: The attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system, or for use in hazardous environments. You assume all risks for use of the Code and use of the Code is subject to the Sample Code License Terms which can be found at: http://ni.com/samplecodelicense

2 条消息(共 4 条)
3,920 次查看
解答
已被主题作者 RBATNICOMM 接受

I thank you very much. Now it works. Great.

0 项奖励
3 条消息(共 4 条)
3,910 次查看

The reason that this is needed, is because you can have the ID 0x100 be extended, or non extended.  So there needs to be a way to designate if the ID is extended, or not.  However if the ID is past the size of the standard, I could see the argument that it should just know that it is extended, instead of generating an error.

0 项奖励
4 条消息(共 4 条)
3,898 次查看