LIN slave wakeup issue

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

LIN slave wakeup issue

3,387 次查看
Pavani
Contributor I

Hello,

I am working on s32k116 controller and using LIN stack from NXP. Our device is configured as slave.

If Master and slave are powered ON simultaneously and communication starts, Slave is responding properly.

But, If slave is powered ON and Master is in sleep mode. Our slave goes to sleep after 4 seconds(timeout), Now, If we start the transmission from master, slave is not responding. If we start the transmission within 4 seconds then slave is responding as expected.

while debugging we observed that autobaud capturing is not successful in the issue scenario.

LIN_autobaud.PNG

 

0 项奖励
回复
3 回复数

3,359 次查看
Pavani
Contributor I

Hello,

 while debugging I have observed that autobaud calculations are not done properly. so I disabled autobaud in LIN stack component. Now all the conditions which I mentioned above are working fine. 

 According to the lin spec, because the slave node goes to sleep mode, so the master node must send a wake-up signal before sending any frames on the bus. ->one more doubt, isn't running the schedule table in LIN master(which starts transmitting the frames) wakeup slave when it is in sleep mode?

 

 

0 项奖励
回复

3,352 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

below is feedback i got...

In some cases, when slave node is in sleep mode, it still can receive the break field as wake-up signal and then receive the frames from the master node normally. However, I recommend that master node should send a wakeup signal in this case.

BR, Petr

0 项奖励
回复

3,362 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

please see below a feedback I got from Apps team...

Q: But, If slave is powered ON and Master is in sleep mode. Our slave goes to sleep after 4 seconds(timeout), Now, If we start the transmission from master, slave is not responding. If we start the transmission within 4 seconds then slave is responding as expected.

[Diep] According to the lin spec, because the slave node goes to sleep mode, so the master node must send a wake-up signal before sending any frames on the bus.

Please refer chapter 2.6 of LIN_Specification_Package_2.2A.pdf for more detail.

 

 

PetrS_0-1651658582657.jpeg

If the issue is still not resolved, please share your project and then I will try to check on my site.

BR, Petr

0 项奖励
回复