The invention discloses an off-line multi-scene
collaboration and
data synchronization mechanism and
system based on a
light guide film. State data of a user in multiple application scenes such as health monitoring, safety protection, social service,
virtual world and smart home are subjected to local
temporary storage, priority
ranking and intelligent synchronization after network disconnection
recovery through a unified identity
authentication center. The unique identity
feature code is locally cached after the user registers for the first time, and the user does not need to depend on online
authentication in an offline state. The
system comprises an off-line data
temporary storage module, a priority
ranking module, an off-
network recovery synchronization module, a conflict arbitration module, a storage
space management module and a manager off-line response module. When the network is interrupted, state change is temporarily stored in a local circular
queue according to the priority (the highest life safety class), sequencing is carried out in real time during writing, and low-priority data is preferentially discarded when the space is full (coverage operation is executed at the head of the
queue). And after the network is recovered, reporting according to a priority sequence, and reporting overtime retry by adopting a fragment transmission and
breakpoint resume mechanism. The multi-device offline conflict is automatically arbitrated according to a version number, a
timestamp and a device priority rule, and a conflict log
retention period can be set. And when the supervisor is offline, automatically electing a temporary supervisor, and
synchronizing data after
recovery. According to the method, the problems that multi-scene state data are lost when the network is interrupted, off-line operation cannot be coordinated, and data conflicts are generated after
recovery are solved, and a complete
closed loop of online real-
time synchronization, off-line
temporary storage and supplementary transmission and
high availability of a manager is realized.