The sleep of LIN bus

cancel
Showing results for 
Search instead for 
Did you mean: 

The sleep of LIN bus

Jump to solution
527 Views
guofeng
Contributor II

Hi,

   After the master node send the frame (ID=0x3C: 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF),  the slave node should go to sleep. But, I don't know the LIN bus got the frame (ID=0x3C: 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF).

   Is there interface in the LIN Stack?  I am using the FSL_LIN_2.x_STACK_Package_4.5.9,  MCU is S12VR64.

Best regards.

Labels (1)
Tags (1)
1 Solution
118 Views
dianabatrlova
NXP TechSupport
NXP TechSupport

Hi,

Currently with FSL_LIN_2.x_STACK_Package_4.5.9 we don’t have interface to catch go_to_sleep frame, but you can use lin_lld_get_state() function to get state of LinStack node in state go_to_sleep or not.
For example:
if (lin_lld_get_state(LI0) == SLEEP_MODE) or
if (lin_lld_get_state() == SLEEP_MODE)

Best regards,

Diana

View solution in original post

1 Reply
119 Views
dianabatrlova
NXP TechSupport
NXP TechSupport

Hi,

Currently with FSL_LIN_2.x_STACK_Package_4.5.9 we don’t have interface to catch go_to_sleep frame, but you can use lin_lld_get_state() function to get state of LinStack node in state go_to_sleep or not.
For example:
if (lin_lld_get_state(LI0) == SLEEP_MODE) or
if (lin_lld_get_state() == SLEEP_MODE)

Best regards,

Diana

View solution in original post