Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic AEM fields #1

Open
grrrr opened this issue Jan 19, 2024 · 2 comments
Open

Dynamic AEM fields #1

grrrr opened this issue Jan 19, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@grrrr
Copy link
Contributor

grrrr commented Jan 19, 2024

Some of the fields of the AEM structure will have to be dynamic.
Most prominently, this applies to the grandmaster ID which must be retrieved from the PTP service.
Polling at regular intervals for results of shell scripts should be fine.

@grrrr
Copy link
Contributor Author

grrrr commented Jan 19, 2024

Ok, the gptp_grandmaster_id parameter is not output to the network at all at the moment.
This should happen in the aecp.__init__.EntityModelEntityStateMachine._handleGetAvbInfo where the response_payload is currently

            0, # gptp_grandmaster_id
            0, # propagation_delay
            0, # gptp_domain_number

@grrrr
Copy link
Contributor Author

grrrr commented Jan 19, 2024

The gptp_grandmaster_id can be queried with, e.g. pmc -2 -t 1 -i enp7s0 "GET TIME_STATUS_NP", where enp7s0 is the ptp network interface. This delivers:

sending: GET TIME_STATUS_NP
        d83add.fffe.bcf202-1 seq 0 RESPONSE MANAGEMENT TIME_STATUS_NP 
                master_offset              26
                ingress_time               7951230724232621
                cumulativeScaledRateOffset +0.000000025
                scaledLastGmPhaseChange    0
                gmTimeBaseIndicator        0
                lastGmPhaseChange          0x0000'0000000000000000.0000
                gmPresent                  true
                gmIdentity                 000a92.fffe.01c0df

@grrrr grrrr added the bug Something isn't working label Jan 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant