Skip to content

PTP can't handle large initial time differences #107

Description

@andrewsg3

v0.1.1 controller
v0.1.1-14-g8fe04dbe camera

Controllers have RTC batteries, modules do not. This means that after a long period offline the controller will have a very different (and more accurate) system clock than modules. In my experience, PTP cannot cope with large initial discrepancies in times - it will never catch up.

Think this is correlated with these faults in the logs

Dec 13 20:29:11 saviour-camera python[26563]: ERROR - src.modules.ptp - PTP error detected: Dec 13 20:28:49 saviour-camera ptp4l[296542]: [72670.725] port 1: UNCALIBRATED to FAULTY on FAULT_DETECTED (FT_UNSPECIFIED)

Indeed running check ready shows the offsets are incredibly high

Jan 05 16:34:28 saviour-camera python[26563]: INFO - modules.module - A check failed: _check_ptp, PTP not synchronized: offset 1972708326653114.0μs (max: 1000000.0μs)

Maybe there needs to be a manual, initial large sync?

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdocumentationImprovements or additions to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions