Using a LIN-LIN gateway, How to forward diagnostic frame or go-to-sleep frame?

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

Using a LIN-LIN gateway, How to forward diagnostic frame or go-to-sleep frame?

跳至解决方案
257 次查看
ABOLUO
Contributor II

I designed a LIN-LIN gateway with S32K144(IDE is S32DS for ARM 2.2), LIN1 worked as slave, LIN2 as master. Some of the frames recieved by LIN1 should be forwarded to slaves via LIN2, but I found when go-to-sleep frame is received, LIN2 can NOT send it out to slaves, any suggestions?

标记 (1)
0 项奖励
回复
1 解答
237 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

When LIN1 receives a go-to-sleep frame, your gateway firmware should detect this frame (by ID and content). Then, manually trigger LIN2 to send a go-to-sleep frame using its master schedule or via an API call (e.g., LIN_DRV_GoToSleepMode()).

If LIN2 uses a schedule table, add a conditional entry that sends a go-to-sleep frame when a flag is set. Set this flag in your gateway logic when LIN1 receives the sleep frame.

LIN stack may not allow sending go-to-sleep frames dynamically unless the bus is idle or in a specific state. Make sure
- LIN2 is not busy or in an error state.
- You’re not trying to send the frame during an ongoing schedule.

BR, Petr

在原帖中查看解决方案

0 项奖励
回复
2 回复数
238 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

When LIN1 receives a go-to-sleep frame, your gateway firmware should detect this frame (by ID and content). Then, manually trigger LIN2 to send a go-to-sleep frame using its master schedule or via an API call (e.g., LIN_DRV_GoToSleepMode()).

If LIN2 uses a schedule table, add a conditional entry that sends a go-to-sleep frame when a flag is set. Set this flag in your gateway logic when LIN1 receives the sleep frame.

LIN stack may not allow sending go-to-sleep frames dynamically unless the bus is idle or in a specific state. Make sure
- LIN2 is not busy or in an error state.
- You’re not trying to send the frame during an ongoing schedule.

BR, Petr

0 项奖励
回复
168 次查看
ABOLUO
Contributor II
 
0 项奖励
回复