Synchronization

Top  Previous  Next

Device Synchronization is a periodic process allowing AggreGate Server to create and maintain a server-side Device "image" by reading Device metadata and reading/writing Device settings.

Synchronization helps the following:

Allow internal modules, operators and third-party systems to browse available device settings, operations and events;
Enable quick access and manipulation of Device settings values. All changes to the device configuration are stored in the server-side cache and written to the device on the "best effort" basis.

The actual algorithm of synchronization depends on the Device driver type, but in most cases it includes three primary steps:

Establishing a connection between AggreGate Server and Device;
Reading Device metadata, i.e. information about available settings, operations and events and creating appropriate variables, functions and events in Device Context to access them;
Synchronizing setting values between Device and server cache.

Synchronization Types

There are three types of synchronization:

Full Synchronization

This is the "standard" type of synchronization, and it includes all three steps:

Connection (only if connection isn't yet established)
Device metadata acquisition
Reading/writing device settings

Full synchronization is performed once per device Synchronization Period.

Partial Synchronization

Partial synchronization is performed for reading/writing device settings that have Custom Synchronization Period. This type of synchronization is pretty fast since is doesn't include connection (if it's already established), metadata acquisition, and reading/writing values of all device settings. Just one setting is read from or written to the device.

Partial synchronization occurs every time the Custom Synchronization Period of a certain setting elapses.

Connect-Only Synchronization

Connect-only synchronization forces the server to establish a connection to the device and pass authentication/authorization. No data is usually read from or written to the device.

Such synchronization helps the server to detect device connection status.

This type of synchronization is performed only at server startup, and only if time passed since previous full synchronization doesn't exceed the Synchronization Period.

Viewing Synchronization Progress

If Extended Device Status settings of device account is enabled, device status and context status icon will show the progress of current synchronization.

note_tip-wt

Enable Extended Device Status if you have trouble detecting current state of your device.