Method and device for double-screen independent operation and data synchronization

By adopting UUID synchronization and verification mechanisms in dual-screen display devices, independent operation and data consistency are achieved, data synchronization delay and stability problems in the existing technology are solved, system reliability and efficiency are improved, and high real-time performance is suitable for high real-time performance Application scenario.

CN119211265AInactive Publication Date: 2024-12-27CHENGDU VANTRON TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411702157.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-26
Publication Date
2024-12-27
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The prior art has problems with delay and stability in data synchronization of dual-screen display devices, especially in unstable network environments. The traditional method increases hardware costs and affects the real-time and reliability of the system, and cannot meet the high real-time requirements. .

Method used

Using dual-screen independent operation and data synchronization method, data synchronization and verification are achieved by generating a unique identifier UUID on each device, ensuring data consistency between devices, and in the event of one device failure, another device can run independently , supports cloud platform integration and resource optimization.

Benefits of technology

It significantly improves the reliability and efficiency of the system, reduces the risks brought by single point of failure, reduces maintenance costs and operator dependence, and is suitable for application scenarios that require high real-time and data consistency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119211265A_ABST
    Figure CN119211265A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of Internet of Things communication, and particularly discloses a method and a device for double-screen independent operation and data synchronization. Comprising the following steps that two pieces of display equipment with independent display, processing and storage functions are set, the two pieces of display equipment are the first equipment and the second equipment respectively, and each piece of equipment can run independently and execute different operation tasks respectively; generating operation data on the first device and generating a unique identifier (UUID) for each operation, and storing the UUID in a first device database; the operation data and the UUID are transmitted to a second device through a network protocol, and the second device analyzes the received operation data and the UUID and stores the operation data and the UUID in a second device database; verifying the data consistency of the first equipment and the second equipment through the UUID to ensure the synchronization of the operation data; when the first device or the second device breaks down, the other device can still operate independently. According to the method, the fault tolerance and reliability of the system can be improved, and the method is suitable for an industrial control system needing high data synchronism and multi-task processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of Internet of Things communication technology, and in particular to a method and device for independent operation and data synchronization of dual screens. Background Art

[0002] Relying on the rapid expansion of the concept of the Internet of Things and the rapid development of embedded device technology, multi-terminal control systems have been widely used in various industries. For example, in modern kitchen equipment, a medium-to-large constant temperature steamer system is a common application. This system usually includes a temperature control system and sensors and at least one display screen for monitoring and adjusting cooking parameters. These devices not only need to be operated and controlled in multiple locations, but also require extremely high consistency and real-time performance in data display and transmission.

[0003] However, current data synchronization technology has obvious limitations. First, the commonly used data synchronization method relies on database triggers, which requires the network status of the two terminal devices to be good to ensure real-time update and synchronization of data. This requirement is difficult to meet in an unstable network environment, which can easily lead to data update delays or failures, affecting the real-time response capability of the system.

[0004] Secondly, although the traditional method of copying data between devices can achieve a certain degree of data synchronization, it requires data processing through an intermediate server, which not only increases the hardware cost of the system, but may also affect the stability of the overall system due to server failure. In addition, this synchronization method is inefficient in processing real-time data and cannot meet the needs of high real-time performance.

[0005] In specific application scenarios, such as the dual-screen display requirements of the equipment set up in the kitchen and sales hall, if there is only a single display screen or a mirrored screen expansion solution, when one display screen fails, the operation of the entire device will be interrupted due to the inability to display normally. This design not only increases the communication and coordination costs of the equipment, but may also directly affect the efficiency of sales and services due to equipment failure. In addition, if the contents of the two screens are exactly the same, it will also limit the flexibility of operation and cannot adjust the display content according to different usage scenarios, thus affecting the user experience.

[0006] Therefore, the existing technology is insufficient in providing effective, economical and flexible data synchronization and display solutions, and a more efficient and reliable technical solution is urgently needed that can independently control dual-screen display screens and ensure that when one screen fails, the other screen can still operate independently. This will greatly reduce the risk of single point failures in the system and improve the overall availability and user satisfaction of the system. Summary of the invention

[0007] In order to overcome the shortcomings of the prior art in data synchronization of dual-screen display devices, the present invention proposes a method and device for independent operation and data synchronization of dual screens. This method can achieve data synchronization of two independent display devices while maintaining their independent display functions, ensuring that when one device fails, the other device can still operate normally. In addition, the present invention supports integration with the cloud platform, so that the device can not only achieve unified management and analysis of data, but also improve operational efficiency by optimizing resource allocation, and significantly reduce the response and repair time when the equipment fails. Through this method, not only the reliability and efficiency of the dual-screen control system can be improved, but also the dependence on operators can be reduced, thereby improving overall work efficiency and reducing maintenance costs.

[0008] In order to achieve the above-mentioned object of the invention, the present invention provides the following technical solutions: A method for independent operation and data synchronization of dual screens, comprising the following steps: S1. Two display devices with independent display, processing and storage functions are set up, each device can operate independently and perform different operation tasks respectively; S2. Generate operation data on the first device, generate a unique identifier UUID for each operation, and store the operation data and the UUID in a database of the first device; S3, transmitting the operation data and UUID to the second device, the second device parsing the received operation data and UUID, and storing them in a second device database; S4. Verifying data consistency between the first device and the second device through UUID for synchronization of operation data; S5. When the first device or the second device fails, the other device can still operate independently.

[0009] Preferably, the operation data and UUID in step S2 are serialized via a standardized data format, and the standardized data format includes at least one of JSON or Protocol Buffers.

[0010] Preferably, the operation data and UUID are transmitted via a network transmission protocol, and the network transmission protocol includes TCP / IP and HTTP.

[0011] Preferably, the first device and the second device are both installed with and run a Linux operating system, and the Linux operating system supports multi-user, multi-tasking, and multi-threaded parallel processing.

[0012] Preferably, an application including a UI layer and a backend is run on both the first device and the second device, and the application adopts a front-end and back-end separation design, the back-end is used for data processing and information transmission, and the UI layer is used for display and user interaction; the UI layer and the back-end communicate data through an API.

[0013] Preferably, the operation data in step S2 includes adding, deleting or modifying data, and also includes synchronization of display data of the UI layer.

[0014] Preferably, step S4 also includes, when it is verified that the data between the first device and the second device are inconsistent, the system automatically starts a data recovery mechanism to synchronize the data of the second device to the first device, or synchronizes the data of the first device to the second device.

[0015] Preferably, the fault in step S5 is determined by detecting the status of the network connection between the first device and the second device; when a network connection interruption is detected, it is determined to be a fault; the first device and the second device maintain and monitor the status of the network connection by periodically sending heartbeat signals.

[0016] Preferably, when the network connection is interrupted, the first device and the second device can store the operation data locally and automatically synchronize the data via UUID after the network is restored.

[0017] Preferably, it also includes a control circuit; the first device, the second device and the control circuit are connected via a network, the control circuit receives operation instructions sent by the first device and the second device, and returns processing results in real time for updating display content.

[0018] Compared with the prior art, the present invention has the following beneficial effects: The present invention provides a method for independent operation and data synchronization of dual screens, aiming to solve the problem that the dual screen device affects the operation of the system when the synchronization is delayed or fails. The technical solution of the present invention involves two display devices with independent display, processing and storage functions, namely a first device and a second device. Each device can operate independently and perform different operation tasks without relying on each other. Even if one of the devices fails, the other device can still continue to operate, thereby ensuring the stability and fault tolerance of the system. Through the design of independent operation of dual screens, the present invention significantly improves the reliability of the system and avoids the risk of overall system shutdown due to the failure of a single device.

[0019] During the operation process, the present invention realizes data synchronization by generating a unique identifier UUID. Specifically, a UUID is generated for each operation on the first device, and the operation data is stored in the database of the first device together with the UUID. Subsequently, these operation data and UUID are transmitted to the second device through a network protocol. After receiving the data, the second device parses it and stores the data in a local database. Through this mechanism, the data consistency between the two devices can be ensured to avoid data duplication or conflict. At the same time, the system performs consistency verification on the data through UUID to ensure the accuracy and integrity of the data during the transmission process.

[0020] The present invention also adopts an efficient data transmission mechanism, where the operation data and UUID are serialized in a standardized data format, such as JSON or Protocol Buffers, and then transmitted to the second device via a network protocol such as TCP / IP or HTTP. This data transmission method can ensure that data between different devices can be synchronized quickly and accurately, improve transmission efficiency, and ensure data consistency and stability.

[0021] In order to ensure the continuous connection of the device, the device of the present invention maintains the state of the network connection by regularly sending a heartbeat signal. The heartbeat signal can not only monitor the connection between the devices, but also promptly detect and handle network failures to ensure the real-time and stability of the system. At the same time, when the network is interrupted or the device data is inconsistent, the system can automatically start the data recovery mechanism to ensure that the data of the two devices remain consistent after the data is recovered. This mechanism improves the fault tolerance of the system in the case of network instability and reduces data loss and synchronization interruption caused by network failures.

[0022] The technical solution of the present invention significantly improves the stability, fault tolerance and reliability of data synchronization of the system through designs such as efficient data transmission, UUID consistency verification, dual-screen independent operation, and network fault-tolerant mechanism, and is particularly suitable for application scenarios that require high real-time performance and data consistency. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 This is a flow chart of a method for independent operation and data synchronization of dual screens according to Embodiment 1 of the present invention; Figure 2 This is a diagram of the architecture of a dual-screen independent operation and data synchronization system according to Embodiment 2 of the present invention; Figure 3 This is a flowchart of device startup initialization according to Embodiment 2 of the present invention; Figure 4 This is a flow chart of initializing the backend logic control application program of Embodiment 2 of the present invention; Figure 5 This is a dual-screen data synchronization flow chart of embodiment 3 of the present invention; Figure 6 This is a flowchart of data synchronization recovery under device abnormality in embodiment 3 of the present invention; Figure 7 This is a flow chart of data synchronization after the first device and the second device are disconnected in Embodiment 3 of the present invention; Figure 8 This is a flow chart of data conflict resolution after network recovery of a dual-screen device according to Embodiment 3 of the present invention; Fig. 9 This is a UI display synchronization flowchart of embodiment 3 of the present invention. DETAILED DESCRIPTION

[0024] The following is a further detailed description of a method and device for independent operation and data synchronization of dual screens provided by the present invention in conjunction with the accompanying drawings and specific embodiments. However, this should not be understood as the scope of the above-mentioned subject matter of the present invention being limited to the following embodiments. All technologies implemented based on the content of the present invention belong to the scope of the present invention. Combined with the following description, the advantages and features of the present invention will become clearer. It should be noted that the drawings are all in a very simplified form and are not in precise proportions, and are only used to conveniently and clearly assist in explaining the purpose of the embodiments of the present invention.

[0025] Example 1 Embodiment 1 of the present invention provides a method for independent operation and data synchronization of dual screens, such as Figure 1 As shown, it ensures efficient data synchronization and fault tolerance mechanism when dual-screen devices perform different tasks respectively, which is suitable for scenarios that require high reliability and real-time data processing. Specifically, it includes the following steps: S1. Equipment configuration and independent operation Two display devices with independent display, processing and storage functions are set up, namely the first device and the second device. Each device can operate independently and perform different operation tasks. For example, the first device can be used to display real-time data, and the second device is used to display system status and control options. Each device can handle its own tasks at the same time through independent processing and display modules, without relying on each other.

[0026] S2. Operation data generation and UUID allocation When a user performs an operation on the first device, the system generates a unique identifier (UUID) for the operation to ensure the uniqueness of each operation data. The operation data and the UUID are stored together in the database of the first device. This mechanism ensures the uniqueness and traceability of each operation data when it is transmitted and synchronized between devices.

[0027] S3, data transmission and analysis The operation data and UUID are transmitted from the first device to the second device via a network protocol (such as TCP / IP or HTTP). After receiving the data, the second device parses the operation data and UUID and stores the parsed data in the database of the second device. Through this mechanism, the second device can obtain the operation data of the first device in real time, thereby maintaining data synchronization between the two devices.

[0028] S4. Data consistency verification After the data transfer is completed, the system performs a consistency check on the data between the first device and the second device through the UUID. By comparing the UUIDs of the two devices, the system can confirm whether the data of the two devices is consistent, thereby ensuring the synchronization accuracy of the operation data. This step ensures that when synchronizing data between multiple devices, no data loss or duplicate transmission occurs.

[0029] S5. Independent operation in case of failure During system operation, if one of the first or second devices fails, the other device can still operate independently and continue to process its tasks. Even if the device is disconnected, the system uses a fault-tolerant mechanism to ensure that data is not lost. When the failed device is restored, the system will synchronize and restore the data through UUID to ensure data consistency.

[0030] Example 2 As a further improvement of the above-mentioned embodiment, this embodiment relates to a device for independent operation and data synchronization of dual screens, which meets the requirements for high reliability and data consistency in life, instrumentation and industrial fields. The device for independent operation and data synchronization of dual screens consists of a hardware layer and a control system layer.

[0031] like Figure 2 As shown, the figure shows the dual-screen device, the main control board and the system architecture connected via Ethernet, showing how the dual-screen device operates independently and synchronizes data.

[0032] The hardware layer includes the first device and the second device, the control circuit and its sensor, the connection line and the interface. Among them: (1) The first device and the second device include two independently operated touch screen display devices, which can independently display and process data without interfering with each other.

[0033] (2) The control circuit and its sensors are connected via Ethernet or other communication methods to provide necessary data input and feedback, and to transmit data and control the equipment; the hardware layer supports the access of various sensors and control circuits.

[0034] (3) Connection lines and interfaces: including Ethernet, USB, COM, RTC, SDCard and other interfaces, which are used for data communication between devices and access to external data.

[0035] The control system provides the basic operation logic and control process for the entire device, including the operating system, database, data synchronization process, UI layer, back-end logic control application, message bus system, and data communication protocol. Among them: (1) The operating system uses Linux or other multi-user, multi-tasking operating systems that support efficient device management and multi-threaded application development.

[0036] (2) The database uses an embedded database such as SQLite3 to store data persistently and support complex data operations and fast access.

[0037] (3) The data synchronization process includes a real-time data update mechanism, such as adding, deleting, and modifying data, as well as the use of mechanisms such as UUID to ensure real-time consistency of data between the first device and the second device.

[0038] (4) The UI layer can provide timely feedback to the display interface when receiving data updates or system notifications; the UI layer adopts a front-end and back-end separation design, which is separated from the back-end logic control application. The UI layer communicates data with the back-end logic application through the API.

[0039] (5) Back-end logic control application: It communicates with the UI layer, is responsible for calling the database, establishing the message bus, communicating with another device, controlling the underlying circuit and its sensors, and controlling business logic, etc.

[0040] (6) The message bus uses a high-performance data transmission protocol, such as Google Protocol Buffer Serialize data and synchronize and communicate data between devices through the 0MQ message bus.

[0041] (7) Data communication protocol: Define data format (such as JSON) and communication protocol to optimize the efficiency and latency of data transmission.

[0042] Device initialization process: The device startup initialization process is shown in the appendix Figure 3 As shown: The first device and the second device use the same power supply, and are required to be powered on at the same time. When the power is turned on, the device first loads the boot loader, loads the Linux kernel, runs system services, runs backend programs, and runs frontend UI programs.

[0043] The backend logic controls the application initialization process: Read and load the configuration file, initialize the log handle, initialize global variables and cache, determine the first device and the second device, establish a message bus channel between the first device and the second device, initialize the data sending module of the first device and the second device, open the database and obtain the configuration and its initialization information, initialize the communication module with the front end, initialize the control circuit and sensor module, start the front end process, wait for the front end to load the database display, and loop event scheduling.

[0044] UI process initialization process: Initialize the log module, initialize global variables, initialize the IPC interface for communicating with the backend, request the API to obtain the information when the last shutdown occurred, request the API to obtain the information required for display and initialize the interface, request the API to obtain database information, wait for UI touch events or backend events, and complete UI rendering.

[0045] The above initialization process is shown in the appendix Figure 4 shown.

[0046] Example 3 As a further improvement to the above embodiment, Figure 5 The dual-screen data synchronization flow chart describes the method of the present invention in detail. This embodiment provides a method for independent operation and data synchronization of dual screens, considering how data will be synchronized and exception handling in different scenarios.

[0047] See Figure 5 The figure below shows the interaction process of the dual-screen display device in this system under normal operation. The following will discuss how the device achieves data synchronization: S101. After the devices are uniformly powered on, the front and back ends are initialized, and the first device and the second device establish a connection using a message bus through a back-end program, and send a heartbeat once per second to maintain the connection status of the first device and the second device.

[0048] S102: When the first device and the second device are connected by bus, the first device performs addition, deletion and modification operations on the database, and each operation generates a random number UUID and stores it in the local database. If necessary, it is fed back to the UI for display.

[0049] S103. While storing the local database, the operation content and the random number UUID are packaged into JSON format and sent to the second device via the message bus OMQ using the serialized Google protocol buffer protocol.

[0050] S104: After receiving the data, the second device deserializes the Google protocol buffer content to obtain JSON data, and operates the second device database to save it, and saves the random number UUID. At this time, the random numbers of the first device and the second device are consistent, and the saved result is returned to the first device. If necessary, feedback is given to the UI for display.

[0051] S105, if the database is operated on the second device, it will be sent to the first device for storage in the above manner, and fed back to the UI for display if necessary. In this process, the basis for judging whether the database is consistent is whether the random number UUID is consistent.

[0052] S106. For requests that do not affect the database but only affect the UI interface display, they can be directly sent to the opposite device in the form of notifications, and the UI is notified to change the display without generating a random number UUID.

[0053] The above is the data synchronization solution under normal circumstances. Figure 6 Analysis of equipment abnormalities.

[0054] S201. After the devices are uniformly powered on, the front and back ends are initialized, the first device and the second device establish a connection using a message bus through a back-end program, and send a heartbeat once a second to maintain the connection status of the first device and the second device.

[0055] S202. After the device is powered on and connected successfully, the random number UUID on the back end of the dual-screen display screen will be compared to see if they are consistent. If inconsistency is found, the backup process of the second device will be enabled.

[0056] S203: The second device actively captures the database of the first device and restarts the second device program to load a new database, ensuring that the data of the first device and the second device are consistent.

[0057] S203: When the first device is found to be disconnected from the second device during use (ping heartbeat failure), it is assumed that the second device is abnormally powered off or the Ethernet cable is disconnected.

[0058] At this time, the first device modifies the database and saves the random number locally. When the second device is powered on and the connection is restored, the random numbers of the two devices will be compared and inconsistencies will be found. The first device has data updates, while the second device has no data modifications. The second device will automatically capture the database of the first device in the form of a file, and restart the front-end and back-end service programs to reload the new database.

[0059] See Figure 7As shown, when the first device and the second device are disconnected, the second device modifies the database, and the first device and the second device are reconnected, it will be found that the random numbers of the two devices are inconsistent, and the second device has data updated, while the first device has no data updated. The first device will grab the database of the second device in file mode, and restart the front-end and back-end service programs to reload the new database.

[0060] See Figure 8 As shown, if the two devices are disconnected, the first device and the second device are working normally. If both parties have modified the database, the random numbers are inconsistent. When the network is restored, it is impossible to determine whose database is the latest. At this time, the first device database should be used as the standard, and the second device should capture the second device database in file mode, and restart the front-end and back-end service programs to reload the new database.

[0061] The data on the UI display interface will be synchronized to the opposite device in a cached manner.

[0062] See Fig. 9 As shown, if the two devices are communicating normally, the display on the UI is sent to the peer device via notification, and no data is modified.

[0063] Example 4 This embodiment introduces how to apply the dual-screen independent operation and data synchronization method of the present invention in a constant temperature steam box control system. The system includes one or more steam chambers, a control circuit, and two display controllers (a first device and a second device) for real-time monitoring and control of the temperature, water level, and pressure of the steam chamber to achieve stable constant temperature heating.

[0064] The constant temperature steam box control system includes the following key parts: Steam Chamber: Equipped with heater, temperature sensor, water level sensor and pressure sensor to monitor and regulate the temperature, liquid level and pressure of the steam chamber.

[0065] Control circuit: connected to the first device and the second device via Ethernet, responsible for collecting sensor data and sending it to the display. At the same time, the control circuit controls the heating process of the heater through the relay to ensure the efficient operation of the heater.

[0066] Display controller: The first device and the second device are used for different tasks respectively. The first device can be used to set control operations such as heating temperature, and the second device is used to display real-time data fed back by the sensor.

[0067] The specific method flow is as follows: Two display devices with independent display, processing and storage functions are set, namely the first device and the second device. Each device operates independently and performs different operation tasks without relying on each other. The first device is used to set the target temperature and heating parameters of the steam room, and the second device is used to display real-time temperature, water level and pressure data.

[0068] When the user sets the heating target temperature (such as 100 degrees Celsius) on the first device, the system generates operation data and generates a unique identifier (UUID) for the data. This operation data and the UUID are stored in the database of the first device.

[0069] The operation data and UUID of the first device are transmitted to the control circuit via Ethernet, and the control circuit executes the operation instruction and turns on the heater relay for heating. At the same time, the control circuit collects data from the temperature sensor, water level sensor, and pressure sensor. Then, the control circuit transmits the sensor feedback data to the first device and the second device via Ethernet.

[0070] The sensor data and UUID received by the second device will be parsed and stored in the database of the second device. Although the two devices use the same data synchronization mechanism, their display content is different: the first device displays the temperature and operation control interface set by the user, and the second device displays real-time feedback sensor data, such as the temperature, water level and pressure of the steam room. This meets the design requirements that the dual-screen devices run independently and display different tasks.

[0071] The system verifies the data consistency between the first device and the second device through UUID, ensuring that the two devices understand and store the same operation data and sensor feedback. When the two devices detect inconsistencies, the system automatically starts the data recovery mechanism and synchronizes the data through UUID verification to ensure data accuracy.

[0072] When the first or second device fails, the other device can still continue to operate independently to ensure the continuous operation of the system. For example, if the first device fails, the second device can still display the current steam chamber status (such as temperature, water level, pressure), and the control circuit continues to perform the set heating task to avoid system downtime.

[0073] Through the dual-screen independent operation and data synchronization method of the present invention, the constant temperature steam box control system realizes data synchronization between display devices, while ensuring that the devices can operate independently, and the system will not be shut down due to the failure of a single device. This design improves the fault tolerance and stability of the system and is suitable for complex industrial control environments, especially constant temperature control scenarios with high requirements for real-time data monitoring and operation synchronization.

[0074] Those skilled in the art will appreciate that the embodiments of the present invention may be provided as methods, systems or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware.

[0075] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0076] The above-mentioned embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. A method for independent operation and data synchronization of dual screens, characterized in that: The following steps are involved: S1. Two display devices with independent display, processing and storage functions are set up, each device can operate independently and perform different operation tasks respectively; S2. Generate operation data on the first device, generate a unique identifier UUID for each operation, and store the operation data and the UUID in a database of the first device; S3, transmitting the operation data and UUID to the second device, the second device parsing the received operation data and UUID, and storing them in a second device database; S4. Verifying data consistency between the first device and the second device through UUID for synchronization of operation data; S5. When the first device or the second device fails, the other device can still operate independently.

2. A method for independent operation and data synchronization of dual screens according to claim 1, characterized in that: The operation data and UUID in step S2 are serialized using a standardized data format, wherein the standardized data format includes at least one of JSON or Protocol Buffers.

3. A method for independent operation and data synchronization of dual screens according to claim 2, characterized in that: The operation data and UUID are transmitted via a network transmission protocol, and the network transmission protocol includes TCP / IP and HTTP.

4. A method for independent operation and data synchronization of dual screens according to claim 2, characterized in that: The first device and the second device are both installed and run a Linux operating system, and the Linux operating system supports multi-user, multi-tasking, and multi-threaded parallel processing.

5. The method for independent operation and data synchronization of dual screens according to claim 2, characterized in that: An application including a UI layer and a backend is run on both the first device and the second device. The application adopts a front-end and back-end separation design, where the back-end is used for data processing and information transmission, and the UI layer is used for display and user interaction; the UI layer and the back-end communicate data via an API.

6. A method for independent operation and data synchronization of dual screens according to claim 5, characterized in that: The operation data in step S2 includes adding, deleting or modifying data, and also includes synchronization of display data of the UI layer.

7. A method for independent operation and data synchronization of dual screens according to claim 5, characterized in that: Step S4 also includes, when it is verified that the data between the first device and the second device are inconsistent, the system automatically starts a data recovery mechanism to synchronize the data of the second device to the first device, or synchronize the data of the first device to the second device.

8. A method for independent operation and data synchronization of dual screens according to claim 7, characterized in that: The fault in step S5 is determined by detecting the state of the network connection between the first device and the second device; when a network connection interruption is detected, it is determined to be a fault; the first device and the second device maintain and monitor the state of the network connection by regularly sending heartbeat signals; When the network connection is interrupted, the first device and the second device can store the operation data locally and automatically synchronize the data through the UUID after the network is restored.

9. A method for independent operation and data synchronization of dual screens according to claim 7, characterized in that: It also includes a control circuit; the first device, the second device and the control circuit are connected via a network, the control circuit receives operation instructions sent by the first device and the second device, and returns processing results in real time for updating display content.

10. A device for independent operation and data synchronization of dual screens, characterized in that: The method comprises at least one processor and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Method and apparatus for seamless state transfer between user interface devices in a mobile control room

    CN104049588A

  • Device presentation with real-time feedback

    CN112292708A

  • Information transfer and migration method and full-scene smart life system

    CN117076428A

  • Multi-device networking system and method and terminal device

    CN117811947A

  • Data synchronization method, electronic equipment and medium

    CN118524109A