TJA1101 WAKE UP function when working in master mode

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

TJA1101 WAKE UP function when working in master mode

跳至解决方案
427 次查看
zhaoning
Contributor II

Hi NXP experts,

We are now using TJA1101 in our controller and it works in master mode.

We would like to know if the PHY in master mode when entered into sleep mode can be waked by the PHY which works in slave mode.

Is it true that only the PHY operating in slave mode can be waked by the master PHY? Apart from local wake-up, is there any way for the PHY in master mode to be waked by the PHY working in slave mode?

0 项奖励
回复
1 解答
297 次查看
PavelL
NXP Employee
NXP Employee

Hi,

please refer to AN13236 - TJA1101B Automotive Ethernet PHY, Application Note, chapter 4.3.5, WAKE_REQUEST (bit 17.0) need to be set in slave mode.

PavelL_0-1723211599588.png

 

Best regards,

Pavel

在原帖中查看解决方案

0 项奖励
回复
6 回复数
371 次查看
PavelL
NXP Employee
NXP Employee

Hi,

ad 1. Yes, PHY1 and PHy2 send Ethernet frames as a confirmation before going to sleep mode (refer to AN13236 chapter 5.8.1).

         Yes again, but only if register_18/SLEEP_CONFIRM=0 - no confirmation needed from another PHY before going to sleep.

ad 2. Yes, wake-up and sleep is unrelated to whether the PHY operates in master mode or slave mode.

          No, the sleep and wake-up functions are simply negotiated between the PHYs through the Ethernet. Also, the host processor can force PHY (by SMI bus) to sleep mode anytime.

Best regards,

Pavel

0 项奖励
回复
313 次查看
zhaoning
Contributor II

If two controllers with TJA1101 separately working in slave mode and master mode are all in sleep mode, how can the PHY working in master mode be waked up by the other PHY working in slave mode? 

Will the master PHY automatically switch from sleep mode to normal mode after the slave PHY switched from sleep mode to normal mode?

zhaoning_1-1723192800729.png

 

 

 

0 项奖励
回复
298 次查看
PavelL
NXP Employee
NXP Employee

Hi,

please refer to AN13236 - TJA1101B Automotive Ethernet PHY, Application Note, chapter 4.3.5, WAKE_REQUEST (bit 17.0) need to be set in slave mode.

PavelL_0-1723211599588.png

 

Best regards,

Pavel

0 项奖励
回复
233 次查看
zhaoning
Contributor II

Hi Pavel,

thanks for your help. We have tested with 2 controllers working in master and slave mode. When master phy sleep, when set the slave phy  WAKE_REQUEST bit to 1, the master phy waked up.

0 项奖励
回复
402 次查看
PavelL
NXP Employee
NXP Employee

Hello zhaoning,

based on AN13236 - TJA1101B Automotive Ethernet PHY, Application Note, chapter 5.8.2, the link wake up procedure is not dependent on PHY mode.

Best regards,

Pavel

0 项奖励
回复
397 次查看
zhaoning
Contributor II

zhaoning_0-1722421371459.png

Hi,

1. As a newcomer to automotive Ethernet, I would like to ask whether the LPS CODES between PHY1 and PHY2 in the above picture require both Ethernet nodes to send and receive Ethernet frames? Or is the sleep process initiated solely by any one side's MCU writing to the PHY(no matter working as master mode or slave mode) through the SMI bus, with the entire Ethernet entering the sleep state being fully negotiated by PHY1 and PHY2 through the MDI bus?

2. Another question, is wake-up and sleep unrelated to whether the PHY operates in master mode or slave mode? Furthermore, are the sleep and wake-up functions simply negotiated between the PHYs through the SMI bus, independent of Ethernet frames?

0 项奖励
回复