Hi, Could you please help me two questions? Thanks.

Q1. How do I use the this configuration item ??slave_event_monitor????
    I know the "slave_event_monitor" is a string which means a path 
for a UNIX domain socket in configuration file. 
    I have seen the code and find the func:monitor_create() in 
func:clock_create() which is called in ptp4l main().
    But I can not understand how it communicate with the ptp4l, I do 
not see the code about ptp4l send message to the monitor. According to my 
previous understanding, ptp4l send SLAVE_RX_SYNC_TIMING_DATA and 
SLAVE_DELAY_TIMING_DATA_NP TLVs to the client bind to the  
slave_event_monitor address, is it? Where is it's Implementation process?? 
I just see the monitor_create().
    
Q2. Any other way to get the management information(such as master, offset, 
delay) without using PMC?
    Now I can use PMC send command "GET TIME_STATUS_NP" and "GET 
PORT_DATA_SET" to ptp4l uds_address get messages. It's no problem.
    But I notice every time I need to active the call and ptp4l 
poll() every port to process message, it will cause some reply delay and I have 
to wait to get it's response.
    I wonder if there is any other way to let ptp4l active send 
"TIME_STATUS_NP" "PORT_DATA_SET" tlvs to user program(e.x. Every time ptp4l( 
run as slave) complete time sync, send the master time, offset, delay to 
user,  user can get it any time they want)? Maybe can achieved through the 
question 1?


    Thanks very much.
_______________________________________________
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users

Reply via email to