Improve GM status
When we are in working GM mode and:
PPS input cable is disconnected:
nothing bad happens until next reboot but we should send a warning that
if we reboot the switch it will fails to start because it will not be
able to lock to a PPS.
We should be able to also "count" the delta between PPSin and PPSout and
try to adjust it automatically with target_phase_offset
10MHz input is disconnected:
This one is more tricky because as we are following this frequency, when we disconnect the cable, the DMTD goes mad and we try to tune our internal clock, so all out network drift from external reference clock.
We should:
- Send a warning message that 10MHz has been disconnected
- Show this error in the web interface/wr_mon
and maybe for the future
- Try to stay in holdover (With the internal oscillator and some drift learning)
- We might want to tell the lower layer that this GM is not to trust, so they can use a backup clock ==> Change clock accuracy and quality in PPSi
10MHz is not correct:
We should also send a warning if people plug another frequency (i.e 38.5MHz). Or if signal is too low and not correctly detected.
Improve status
GM status is only shown in SNMP. wr_mon should be able to see this status (Even if it is hald depending). Web interface should be able to see this status.
- GM_ERROR (no PPS, no 10MHz, Wrong 10MHz, DAC at limit, etc.)
- GM_LOCKING
- GM_LOCKED