Problem in receiving multiple frames

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Problem in receiving multiple frames

跳至解决方案
2,040 次查看
pankajprasad100
Contributor III

Hi @namnguyenviet ,

I am working on LIN diagnostics in which I have used ld_receive_message and got the data which is of single frame.

But when I sent the MULTIPLE FRAMES for SID-0x34 then I can see the data on the LIN bus but the receiving buffer is not updated.

 

While debugging I got to know data is coming in the descriptor but due to LD_NO_DATA  in rx_msg_status the buffers are not updating.

pankajprasad100_0-1646723423362.png

pankajprasad100_1-1646723620314.png

 

Any suggestions to receive the data would be highly appreciated.

 

MCU-S32K116

COMPILER-IAR

ANALYZER-PLIN

0 项奖励
回复
1 解答
2,013 次查看
namnguyenviet
NXP Employee
NXP Employee

Hello,

namnguyenviet_5-1647253823852.jpeg

After received diagnostic request, the slave node responded with a negative response. That mean the slave dose not support this request(SID=0x34) and the data will be not updated in data buffer. So, please recheck the configuration to make sure that the SID has been supported.

Regarding using the UDS service, I have an example to implement the UDS frame base on SDK LIN stack release 4.0.2. Hope it can help to you.

On S32DS:

  1. On S32DS:
  • Tick on Use Transport Layer and Support Diagnostic Service.
  • Choose diagnostic class 3
  • Set the max message length corresponding.
  • Tick to use and configured UDS

namnguyenviet_1-1647253796212.jpeg

namnguyenviet_2-1647253796236.jpeg

  1. The configuration files is generated
  • lin_cfg.c

namnguyenviet_3-1647253796250.jpeg

  • Lin_cfg.h

namnguyenviet_4-1647253796259.jpeg

Best Regards,

Nam

在原帖中查看解决方案

0 项奖励
回复
2 回复数
2,014 次查看
namnguyenviet
NXP Employee
NXP Employee

Hello,

namnguyenviet_5-1647253823852.jpeg

After received diagnostic request, the slave node responded with a negative response. That mean the slave dose not support this request(SID=0x34) and the data will be not updated in data buffer. So, please recheck the configuration to make sure that the SID has been supported.

Regarding using the UDS service, I have an example to implement the UDS frame base on SDK LIN stack release 4.0.2. Hope it can help to you.

On S32DS:

  1. On S32DS:
  • Tick on Use Transport Layer and Support Diagnostic Service.
  • Choose diagnostic class 3
  • Set the max message length corresponding.
  • Tick to use and configured UDS

namnguyenviet_1-1647253796212.jpeg

namnguyenviet_2-1647253796236.jpeg

  1. The configuration files is generated
  • lin_cfg.c

namnguyenviet_3-1647253796250.jpeg

  • Lin_cfg.h

namnguyenviet_4-1647253796259.jpeg

Best Regards,

Nam

0 项奖励
回复
2,000 次查看
pankajprasad100
Contributor III

Thanks, it worked

0 项奖励
回复