The sleep of LIN bus

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

The sleep of LIN bus

跳至解决方案
2,607 次查看
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.

标签 (1)
标记 (1)
1 解答
2,198 次查看
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

在原帖中查看解决方案

1 回复
2,199 次查看
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