Re: [Linuxptp-devel] [RFC v2 0/5] Adding support for AVnu Automotive Profile
PTP IEEE 1588 stack for Linux
Brought to you by:
rcochran
From: Richard C. <ric...@gm...> - 2018-08-18 04:04:05
|
On Thu, Aug 16, 2018 at 10:42:10AM -0700, Vedang Patel wrote: > - In port_p2p_transition(), we are setting up the delay timer when BMCA is set > as ‘noop’. Usually it is initialized then the device transitions to > PS_LISTENING. But, we are skipping the LISTENING state. Another alternative > is to transition to PS_LISTENING and then unconditionally transfer to > PS_MASTER/PS_SLAVE. But, that seems more of an hack than what is currently > being done. Any other alternatives? Another idea: Can you have INITIALIZING -> LISTENING, and arrange for EV_ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES to happen right away? Then your fsm does LISTENING -> SLAVE on the EV_ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES event. (haven't looked at arranging that timeout, just brainstorming...) Thanks, Richard |