External Device Sync Guide: eSync 2
General instructions for using the eSync 2 for synchronizing external devices.
Last updated
General instructions for using the eSync 2 for synchronizing external devices.
Last updated
The eSync 2 is a synchronization hub that allows advanced users to integrate external systems into OptiTrack motion capture systems. With proper sync chain setups, you can have another (parent) system control the mocap system, or have the mocap system control other (child) systems, or both. Note that the setup may change depending on the type and number of the external devices as well as the characteristics of the communicated sync signals. Use this guide for understanding the general idea of how external devices are implemented and apply the knowledge for your needs.
With the eSync 2, Prime series mocap systems can work together with other systems to perform precisely synchronized operations and data collections. This offers benefits in a wide range of applications. Reference video cameras, NI-DAQ devices, Force Plates, and recording triggers are examples of commonly synchronized external devices.
The eSync 2 synchronization hub has multiple sync input and output ports. In general, a parent device connects to the input ports for controlling the mocap system, and the child devices connect to output ports to be controlled by the mocap system. Once the devices are connected to the eSync 2, the input and output signal characteristics need to be specified and configured under the eSync 2's device properties in Motive.
Requirements
Ethernet Camera System (PrimeX series or SlimX 13)
The eSync 2
External Devices (child / parent)
Sync Cables: BNC or other sync cables with BNC adapters.
Ports A (3.3V input sync), C (Isolated Sync In), D (Video Genlock In), E (SMPTE Time Code In), and I (3.3V output sync) are all BNC female ports.
For eSync 2 technical specifications please visit our eSync 2 Support webpage.
For general instructions on setting up the mocap system, refer to the Hardware Setup pages. This guide assumes the camera system and the eSync 2 have been already set up.
Before setting up, draw out the schematic for which devices will be the parent or child of the synchronization chain in respect to the mocap system.
Child Devices (e.g. Force Plates): Connect Output ports of the eSync 2 to sync input ports of the child devices.
Parent Device (e.g. Genlock): Connect the sync output of a parent device into one of the Input ports of the eSync 2. For integrating Genlock, VESA Stereo In, or SMPTE timecode signals, connect them to the corresponding labeled input ports of the eSync 2.
Select the eSync 2 in the Devices pane to display its properties in the Properties pane. Update the following Sync Input Settings:
Select the desired sync Source for the camera system to synchronize to from the list of available devices. Read more under the Input Source Setup section of this page.
Configure the Input Divider/Multiplier settings, and/or the clock frequency settings (only when using the Internal Clock source), to set the camera rate. The resulting frame rate of the camera system will be displayed next to Camera Rate property or in the Devices pane.
Configure the eSync 2 Outputs. Output ports of the eSync 2 are used to tell connected child devices what Motive is doing. Read more under the Output Signal Setup section of this page.
To set up a recording trigger device, connect it to an input port and designate the port under the Recording Trigger section of the eSync 2 properties. Read more under the Recording Trigger Setup section of this page.
Once everything is setup, check the Monitor section of the Properties pane to make sure all signals are detected properly.
Once you have connected the external devices to the eSync 2, the first step is to select and configure the sync source under the eSync 2 properties. The selected source will become the parent sync of both the camera system and other external devices. There are multiple sync source options to choose from under the drop-down menu. Ultimately, only one sync source can be selected and used to synchronize the cameras and subsequent child devices for any particular configuration.
The first step is to define a parent sync source for the camera system. This is configured in the Sync Input → Source entry under the eSync 2 properties.
Internal Free Run
By default, the sync input source is set to Internal Free Run, meaning that the camera system is sampling at a frame rate defined in the Devices pane. In this mode, Prime series cameras are synchronized by communicating the time information with each other through the camera network itself using a high-precision algorithm for timing synchronization. This is the default synchronization protocol for Ethernet camera systems without an eSync 2.
Internal Clock
To use the internal clock of the eSync 2 as the parent sync source for both the camera system and the subsequent child devices, set the sync input source to Internal Clock. When selected, the clock frequency can be adjusted in Sync Input → Clock Freq (Hz) settings.
Input Signal
To use an external sync signal as the parent sync source, set the sync input source to the corresponding input port where the parent device is connected. See the specifications for more details on each of the input ports, from left to right:
SMPTE Timecode
Video Genlock In
Isolated Input port: VIH(max): 12V
VESA Stereo Input port: VIH(max): 3.3V
High Impedance Ports (1-3) VIH(max): 3.3V
Once the input source is set, the next step is to define an appropriate trigger event. Under the Sync Input → Input Trigger option, pick a signal morphology (Either Edge, Rising Edge, or Falling Edge) for the desired trigger event. Note that the suitable event will vary depending on characteristics of the received signal and how you want the system to synchronize with it. The following diagrams show how the camera system responds to received signal triggers. When configured properly, the camera system will expose in respect to the sync signal from the parent device.
Every rising edge of the sync input signal defines either the start or the end of a frame, consecutively.
Falling Edge:
Every falling edge of the sync input signal defines either the start or the end of a frame, consecutively.
Either Edge:
Every rising or falling edge of the sync input signal defines either the start or the end of a frame, consecutively. When using both of the edges as the input trigger, the input signal must have 50% duty cycle for the cameras to synchronize properly.
The frame rate of the camera system is determined by the selected sync input source. When the frequency of the sync source is higher than the supported frame rate, use input dividers and multiplier to adjust the signal frequency for synchronizing the camera system. The resulting framerate is displayed as the Camera Rate at the bottom of the Sync Input Settings so you can monitor it as you adjust the Divider or Multiplier values. When the customized sync configurations are applied at the end of the setup, the cameras will start to capture at this final frame rate.
This setting applies a delay (in microseconds) to the camera exposure from the input trigger. Typically, it's used to synchronize other infrared systems with the camera system to avoid IR interference with each other.
Camera exposures are always positioned at the center of every frame periods, and the precise moment of the camera exposure does not exactly coincide with the trigger event. When synchronizing the camera exposure timing with the sync input signal triggers, make sure this gap is taken into account. To precisely align the input signal trigger with the exposure timing, an offset delay, in microseconds, of half of the frame period plus half of the camera exposure must be applied in the Sync Input → Sync Offset (us). The camera exposure is measured in microseconds on the Ethernet cameras.
Precision Time Protocol tracks time down to the nanosecond, employing GPS to achieve the most precise synchronization possible.
Beginning with version 3.1.1, Motive supports PTP devices as the Sync Source for the camera system. This section provides instructions to connect and configure a PTP generator device to synchronize your camera system.
PTP device.
The TM 2500C from Time Machines is currently the only PTP device supported by Motive.
Install Motive 3.1.1, or a more recent version.
Connect the eSync2 and PTP generator device to the Ethernet switch.
Connect the PTP devices PPS port to the Input 1 port of the eSync2.
Connect the GPS port to the antenna and place the antenna outdoors.
Connect the device to a standard power source.
In Motive, select the eSync2 in the Device Pane to display its properties.
Set the Sync Input Source to PTP Precision Timestamp.
You can also access the PTP start time in the Take properties.
Open a web browser and enter the device's IP address to access the system configuration panel. The default login values are listed in the table below. We recommend that you note any changes made to the default values for your records.
IP Address
192.168.1.10
Username
admin
password
tmachine
The device can be reset to factory defaults if the IP address is unknown or the admin password is lost.
To reset, insert a paperclip or other similar object into the small hole on the front of the device until the button depresses. Hold the button in for three (3) seconds, then release.
The following screenshots show the TM 2500C from Time Machines as our example. Click the tabs at the top of the screen to move between the pages. Click the tabs below for configuration examples.
Update the IP information and the administrator password.
The eSync 2 has a total 4 output ports (3.3 V). To setup the camera system as parent to the other systems, connect the child devices into the Output ports of the eSync to receive the reference sync signals.
Once the devices are connected, you can configure the output signal source under the eSync 2 properties. Know what type of sync signals are expected by the child devices, and configure the sources accordingly so that appropriate signals are outputted.
The eSync 2 can output the following types of signals:
Exposure Time
Recording Gate
Record Start/Stop Pulse
Gated Exposure Time
Gated Internal Clock
Selected Sync
Adjusted Sync
Input signals: Relaying input signals.
Selected Sync: Raw input signal.
Adjusted Sync: Adjusted (offset, multiplier, and divider) signal.
Note: All output signals can be inverted by setting the Output → Polarity to Inverted.
The gated (while-recording) output signal from the eSync 2 is frame-synchronous with the recorded mocap data. In live mode, the cameras are continuously shuttering and capturing frames at a defined frame rate. If the recording trigger is received in the middle of a frame period, the eSync waits until the next frame to start recording and asserting gated output signal. This mechanism ensures that the recorded mocap data and the gated output signals are precisely synchronized.
Exposure Time/Gated Exposure Time output signals indicate when the cameras are exposing.
When the Output: Type is set to Exposure Time, a high voltage (3.3V) signal will be outputted from the corresponding output port whenever the camera system is exposing, or shuttering, in the Live Mode. The Gated Exposure Time signal works similarly, but the signal will be sent out only when Motive is recording.
Recording gate/pulse output signals can be used to tell the child device when Motive is recording or not. When configured to Recording Gate, the eSync 2 will output a constant high voltage signal when Motive is recording. When configured to Recording Start/Stop Pulse, the sync hub will output a pulse signal when Motive either starts or stops recording.
When configured to Gated Internal Clock, the eSync 2 outputs its internal clock signal while Motive is recording. The internal clock signal has a 50% duty cycle with the signal frequency defined under the Sync Input → Clock Freq (Hz) section.
Using Internal Clock Signal to drive both the camera system and external devices
To achieve per-frame synchronization between the camera system and an external device (e.g. force plates, NI-DAQ), the internal clock signal from the eSync 2 can be used to drive both the camera system as well as the external device. This is possible only if the external device has the capability of receiving external clock signal. When the external system runs at a higher sampling rate, a divisor or a multiplier must be applied to the clock signal to achieve the desired framerate on the camera system. Here, please note that depending on the applied divisor/multiplier, the alignment of the outputted signal may vary. The exposure timing of the camera system will always be aligned at the center of the divided or multiplied signal, and whether the exposure timing aligns with the rising edge or falling edge of the output signal may vary depending on the applied divisor. Please see the below image:
With the eSync 2, external triggering devices (e.g. remote start/stop button) can integrate into the camera system and set to trigger the recording start and stop events in Motive. Such devices will connect to input ports of the eSync 2 and configured under the Record Triggering section of the eSync 2 properties.
By default, the remote trigger source is set to Software, which is the record start/stop button click events in Motive. Set the trigger source to the corresponding input port and select an appropriate trigger edge when an external trigger source (Trigger Source → isolated or input) is used. Available trigger options include Rising Edge, Falling Edge, High Gated, or Low Gated. The appropriate trigger option will depend on the signal morphology of the external trigger. After the trigger setting have been defined, press the recording button in advance. It sets Motive into a standby mode until the trigger signal is detected through the eSync 2. When the trigger signal is detected, Motive will start the actual recording. The recording will be stopped and return to the 'armed' state when the second trigger signal, or the falling edge of the gated signal, is detected.
Note: For capturing multiple recordings via recording trigger, only the first TAK will contain the 3D data. For the subsequent TAKs, the 3D data must be reconstructed through the post-processing reconstruction pipeline.
Steps
Open the Devices pane and the Properties pane to access the eSync 2 properties.
Under the Record Triggering section, set the source to the respective input port where the trigger signal is inputted.
Choose an appropriate trigger option, depending on the morphology of the trigger signal.
Press the record button in Motive, which prepares Motive for recording. Motive waits for an incoming trigger signal.
When the first trigger is detected, Motive starts recording.
When the second trigger is detected, Motive stops recording and awaits the next trigger for repeated recordings. For High Gated and Low Gated trigger options, Motive will record during respective gated windows.
Once the recording is finished, press the stop button to disarm Motive.
Click the icon at the top, and select Show Advanced to view advanced settings.
To display PTP timestamp data, click the button to open the Application Settings panel. On the Views tab, go to 3D -> Heads Up Display -> Timecode and select either Show Precision Timestamp in 3D View or Show Precision Timestamp in Control Deck. The example below shows the the PTP displayed in the Viewport.