LIN slave wakeup issue

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LIN slave wakeup issue

3,375 Views
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 Kudos
Reply
3 Replies

3,347 Views
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 Kudos
Reply

3,340 Views
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 Kudos
Reply

3,350 Views
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 Kudos
Reply