S32K3 How can LIN better obtain data when it is the master?

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

S32K3 How can LIN better obtain data when it is the master?

跳至解决方案
1,243 次查看
wuxianlong
Contributor V
Hi,NXP
 
When LIN is the master, in the interrupt function, there is no relevant API to notify the user, and the response data of the slave cannot be obtained in time. LinIf_RxIndication can only be used in slave mode.
I can only get data through Lin_43_LPUART_FLEXIO_GetStatus. Is there a better way?
wuxianlong_0-1735272199759.png

Best regards,
xianlong
0 项奖励
回复
1 解答
1,120 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Thank you for your patience. 
Here is the response I received from the software team this morning:
The function LinIf_RxIndication is only applicable for slave nodes because is an AUTOSAR standard indication.  

LinIf_RxIndication.png

The standard also mentions that Master nodes have to use the Lin_GetStatus()  

Lin_GetStatus.png

This is the indication of AUTOSAR for automotive implementations and our drivers are based on that. So, this is the better way to obtain data of a LIN Master Node.  

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,121 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Thank you for your patience. 
Here is the response I received from the software team this morning:
The function LinIf_RxIndication is only applicable for slave nodes because is an AUTOSAR standard indication.  

LinIf_RxIndication.png

The standard also mentions that Master nodes have to use the Lin_GetStatus()  

Lin_GetStatus.png

This is the indication of AUTOSAR for automotive implementations and our drivers are based on that. So, this is the better way to obtain data of a LIN Master Node.  

0 项奖励
回复
1,117 次查看
wuxianlong
Contributor V
thank you very much for your support
0 项奖励
回复
1,180 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi xianlong,

Seems that you are using LIN STACK.  You are right, the LinIf_RxIndication is for slave.

/**
* @brief The LIN Driver will call this function to report a successfully received response and
* provides the reception data to the LIN Interface. This function is only applicable for
* LIN slave nodes (available only if the ECU has any LIN slave channel).
*
* @details This is a function stub only.
*
* @Param[in] Channel Identification of the LIN channel.
* @Param[in] Lin_SduPtr Pointer to pointer to a shadow buffer or memory mapped LIN Hardware receive
* buffer where the current SDU is stored. This pointer is only valid if the
* response is received.
*
* @Requirements
*/
void LinIf_RxIndication(NetworkHandleType Channel, const uint8* Lin_SduPtr)
{

 

I need to consult this with SW team and will update this thread as soon as I have their feedback.

Due to the Christmas vacation period, our response times may be longer than usual. We appreciate your patience as our team navigates this busy season. 
Please be assured, we are committed to responding your inquiries as quickly as possible. 
Thank you for your understanding and happy holidays!

Best Regards,
Robin

0 项奖励
回复