Method for data synchronization and video processing device
By obtaining the operating status, identity information and determining the identity of the master control card in the video processing device, data synchronization is solved, and the display abnormality caused by incompatibility between firmware parameters and device parameters is improved, and the stability of the device is improved.
Patent Information
- Application Number
- CN202011419178.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-07
- Publication Date
- 2025-06-13
- Estimated Expiration
- 2040-12-07
AI Technical Summary
In the prior art, the problem of display exceptions has not been effectively solved because the firmware parameters are incompatible with the device parameters.
By obtaining the operating status of the device, obtaining the identity information of at least two master control cards, determining the main card and the secondary card, and sending the information to be synchronized by the main card (including display data and firmware information) to the secondary card for synchronization.
It effectively avoids display abnormalities caused by incompatibility between firmware parameters and device parameters, and improves the operation stability of the device.
Smart Images

Figure CN114598784B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image processing, and in particular, to a method for data synchronization and a video processing device. Background Art
[0002] In a large-screen display scenario, in order to realize the common display or separate display of business scenario images on multiple display screens, it is necessary to process a video source through a specific device and display it on the above-mentioned display screens. The specific device may include: a video splicer, which is a high-tech device that divides a complete image signal into N blocks and distributes them to N video display units. The video splicer can complete the composition of a super-large-screen dynamic image display screen with multiple ordinary video units, and can support the simultaneous connection of multiple video devices. The video splicer can realize the combination of multiple physical outputs into a super-high-resolution display output after resolution superposition, so that the screen wall constitutes a super-high-resolution, super-high-brightness, and super-large-display-size logical display screen, and completes various display functions such as window opening, moving, and zooming of multiple signal sources on the screen wall.
[0003] As a high-tech device for display, the video splicer is widely used in railways (subways, railway stations, high-speed rails), airports, docks, port surveillance systems, safe city command centers, national defense or military surveillance systems, intelligent transportation supervision systems, power dispatching monitoring systems, financial management monitoring systems, large-scale factory and mine monitoring systems, television stations / large studio monitoring curtain walls, video conferences, large performance venues, and shopping malls and other advertising demonstration occasions. Its application occasions determine that the device must have extremely high stability. In large-scale performances and other occasions, a picture interruption is a serious accident.
[0004] In the application of related technologies, in order to avoid the occurrence of picture interruption accidents, related technologies usually use a method of mutual backup between two main controls. In the case of a problem with one of the main controls, the other main control takes over the device, so as to ensure the continuous controllability of the device. Among them, data needs to be synchronized in real time between the two main controls to ensure that the main control taking over the device can correctly take over. However, there is often a problem of firmware parameter incompatibility during the large-screen display process. If the firmware parameters are incompatible with the device parameters, it will cause abnormal display.
[0005] Regarding the above problem of abnormal display caused by the incompatibility between firmware parameters and device parameters, no effective solution has been proposed yet. Summary of the Invention
[0006] Embodiments of the present invention provide a method for data synchronization and a video processing device, so as to at least solve the technical problem of abnormal display caused by the incompatibility between firmware parameters and device parameters.
[0007] According to one aspect of an embodiment of the present invention, a method for data synchronization is provided, including: obtaining the operating state of a device; obtaining the identity information of at least two main control cards according to the above operating state; determining a main card and a secondary card according to the identity information of the at least two main control cards; sending the information to be synchronized of the main card to the secondary card for synchronization, where the information to be synchronized includes display data and firmware information.
[0008] Optionally, the above operating state includes: the operating state of the device is a new device startup state, the operating state of the device is a device restart state, or a card in the device is abnormal.
[0009] Optionally, obtaining the identity information of at least two main control cards according to the above operating state includes: when the operating state of the device is a new device startup state, sending the product information of the backplane to the at least two main control cards; respectively obtaining the identity information of the main control cards located in the main slot and the secondary slot.
[0010] Optionally, determining the main card and the secondary card according to the identity information of the at least two main control cards includes: obtaining the first identity information of the main control card through the main slot, and determining the main control card located in the main slot as the main card according to the first identity information; obtaining the second identity information of the main control card through the secondary slot, and determining the main control card located in the secondary slot as the secondary card according to the second identity information.
[0011] Optionally, obtaining the identity information of at least two main control cards according to the above operating state includes: when the operating state of the device is a device restart state, when the identity information includes the timestamp of the data and the product information, receiving the timestamp of the data and the product information sent by the at least two main control cards.
[0012] Optionally, determining the main card and the secondary card according to the identity information of the at least two main control cards includes: judging whether the product information sent by the at least two main control cards is the same as the pre-stored product information; when the judgment result is no, when there is one main control card whose sent product information is the same as the pre-stored product information, determining the main control card as the main card, and the main control cards other than the main control card as the secondary card; or, when the product information sent by the at least two main control cards is different from the pre-stored product information, determining the main control card located in the main slot as the main card; when the judgment result is yes, determining the main control card whose distance between the timestamp of the data and the current time point is less than the threshold as the main card; when the timestamps of the data sent by each main control card are the same, determining the main control card located in the main slot as the main card.
[0013] Optionally, sending the information to be synchronized of the main card to the secondary card for synchronization includes: sending a synchronization request of the secondary card to the main card; sending display data and firmware information in the information to be synchronized of the main card to the secondary card according to the synchronization request of the secondary card; and performing data synchronization on the secondary card according to the display data and the firmware information.
[0014] Optionally, the method further includes: after the data synchronization is completed, the secondary card is in a state of waiting for the main card to be updated, so as to receive the changed data sent by the main card and synchronize the timestamp of the data.
[0015] Optionally, the method further includes: receiving heartbeat packets of the main card and the secondary card respectively; when the time for the main card to send the heartbeat packet is greater than a preset duration, determining that the operating state of the main card is abnormal; resetting the main card and switching the peripheral device to the secondary card; determining that the secondary card becomes the main card, and the changed main card performs data processing and transmission.
[0016] According to another aspect of the embodiments of the present invention, there is also provided a data synchronization device, including: a first acquisition module, configured to acquire the operating state of a device; a second acquisition module, configured to acquire the identity information of at least two main control cards according to the operating state; an identity determination module, configured to determine a main card and a secondary card according to the identity information of the at least two main control cards; and a data synchronization module, configured to send the information to be synchronized of the main card to the secondary card for synchronization, where the information to be synchronized includes: display data and firmware information.
[0017] According to another aspect of the embodiments of the present invention, there is also provided a non-volatile storage medium, where the non-volatile storage medium stores multiple instructions, and the instructions are adapted to be loaded and executed by a processor to perform any one of the above data synchronization methods.
[0018] According to another aspect of the embodiments of the present invention, there is also provided a video processing device, where the video processing device is used to run a program, and the program is configured to perform any one of the above data synchronization methods when running.
[0019] In the embodiments of the present invention, by acquiring the operating state of a device; acquiring the identity information of at least two main control cards according to the operating state; determining a main card and a secondary card according to the identity information of the at least two main control cards; and sending the information to be synchronized of the main card to the secondary card for synchronization, where the information to be synchronized includes: display data and firmware information, the purpose of avoiding display anomalies caused by incompatibility between firmware parameters and device parameters is achieved, thereby achieving the technical effect of improving the operating stability of the device, and further solving the technical problem of display anomalies caused by incompatibility between firmware parameters and device parameters. Description of the Drawings
[0020] The accompanying drawings described herein are used to provide a further understanding of the present invention and form a part of this application. The schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation to the present invention. In the drawings:
[0021] Figure 1 is a flowchart of a data synchronization method according to an embodiment of the present invention;
[0022] Figure 2 is a simplified schematic connection structure diagram of an optional video splicer according to an embodiment of the present invention;
[0023] Figure 3 is a flowchart of an optional data synchronization method according to an embodiment of the present invention;
[0024] Figure 4 is a flowchart of an optional data synchronization method according to an embodiment of the present invention;
[0025] Figure 5 is a flowchart of an optional data synchronization method according to an embodiment of the present invention;
[0026] Figure 6 is a schematic structural diagram of a data synchronization device according to an embodiment of the present invention. Detailed Embodiments
[0027] In order to enable those skilled in the art of this technology to better understand the solution of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned accompanying drawings are used to distinguish similar objects and do not necessarily need to be used to describe a specific order or sequence. It should be understood that such used data can be interchanged under appropriate circumstances so that the embodiments of the present invention described herein can be implemented in an order different from those illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products, or devices.
[0029] Embodiment 1
[0030] According to an embodiment of the present invention, an embodiment of a data synchronization method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. And although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than here.
[0031] Figure 1 is a flowchart of a data synchronization method according to an embodiment of the present invention, as Figure 1 shown, the method includes the following steps:
[0032] Step S102, obtain the operating state of the device;
[0033] Step S104, obtain the identity information of at least two master cards according to the above operating state;
[0034] Step S106, determine the main card and the secondary card according to the identity information of the above at least two master cards;
[0035] Step S108, send the information to be synchronized of the above main card to the above secondary card for synchronization, where the information to be synchronized includes: display data and firmware information.
[0036] Among them, the display data may include: in the case where one of the master cards is the main card, the display parameters and display data in the master card that controls the display process; the display data may be the image data in the large-screen display process.
[0037] The firmware information may include: the software version information in the master card.
[0038] In the embodiment of the present invention, by obtaining the operating state of the device; obtaining the identity information of at least two master cards according to the above operating state; determining the main card and the secondary card according to the identity information of the above at least two master cards; sending the information to be synchronized of the above main card to the above secondary card for synchronization, where the information to be synchronized includes: display data and firmware information, the purpose of avoiding display anomalies caused by incompatibility between firmware parameters and device parameters is achieved, thereby realizing the technical effect of improving the operating stability of the device, and further solving the technical problem of display anomalies caused by incompatibility between firmware parameters and device parameters.
[0039] Optionally, the above device may be a video splicer, and at least two master cards are provided in the video splicer. Taking the example of two master cards provided in the above video splicer, for example Figure 2 shown, there are master card 1 and master card 2 provided in the above video splicer, and a processor is provided in the backplane (this attachment Figure 2(not shown in the figure), the processor is connected to the main control card 1 and the processor is connected to the main control card 2 through a serial port (for sending identity information) and a network (e.g., gigabit network, for synchronizing data), and the processor, the main control card 1, and the main control card 2 are respectively connected to external devices.
[0040] It should be noted that, in the embodiments of the present application, the main control card 1 and the main control card 2 are backup to each other. If the currently working main control card has an abnormality, it will switch to the standby main control card to perform work, so as to ensure that the video splicer can still operate normally, effectively improving the system stability of the video splicer.
[0041] Optionally, the identity information of the above main control card includes: the ID number of the product (e.g., the unique identity code, determining whether the main control card is the main card or the secondary card through the slot where the main control card is located. If it is in the main slot, it is marked as the main card; if it is in the secondary slot, it is marked as the secondary card).
[0042] In an optional embodiment, the above operating state includes: the operating state of the above device is the start-up state of a new device, the operating state of the above device is the device restart state, or a card in the above device is abnormal.
[0043] In an optional embodiment, obtaining the identity information of at least two main control cards according to the above operating state includes:
[0044] Step S202, when the operating state of the above device is the start-up state of a new device, sending the product information of the backplane to the above at least two main control cards;
[0045] Step S204, respectively obtaining the identity information of the main control cards located in the main slot and the secondary slot.
[0046] In the above optional embodiment, taking two of the above main control cards as an example, since after the new device is powered on, neither of the two main control cards has saved the product information (the SN code of the backplane) of the device, the processor will send the product information (e.g., SN code information) of the device to the two main control cards for storage. By storing the SN code of the backplane, the identity confirmation and permission confirmation are completed between the main control card and the backplane during the subsequent communication process, so as to ensure the normal progress of subsequent data interaction. When determining the main card and the secondary card of the two main control cards, by respectively obtaining the identifiers of the main control cards located in the main slot and the secondary slot, the identity information of each main control card is determined, where the identity information includes: the main card or the secondary card.
[0047] In an optional embodiment, determining the main card and the secondary card according to the identity information of the above at least two main control cards includes:
[0048] Step S302: Obtain the first identity information of the above main control card through the above main slot, and determine the main control card located in the above main slot as the above main card according to the above first identity information; wherein, the first identity information may include: the identifier of the main slot, and the identifier of the main slot is used to indicate that the main control card is located in the main slot, so that the backplane can determine the main control card as the main card according to this identifier.
[0049] Step S304: Obtain the second identity information of the above main control card through the above secondary slot, and determine the main control card located in the above secondary slot as the above secondary card according to the above second identity information. Wherein, the second identity information may include: the identifier of the secondary slot, and the identifier of the secondary slot is used to indicate that the main control card is located in the secondary slot, so that the backplane can determine the main control card as the secondary card according to this identifier.
[0050] In the embodiment of the present application, the processor (the processor in the backplane, such as an MCU) obtains the first identity information of the above main control card through the above main slot, and takes the main control card located in the main slot as the main card and uses this main card to take over the device during the current time, switches the control interface of the peripheral device to the current main card, obtains the second identity information of the above main control card through the above secondary slot, and takes the main control card located in the main slot as the secondary card (i.e., the standby card, backup card).
[0051] In an optional embodiment, obtaining the identity information of at least two main control cards according to the above operating state includes:
[0052] Step S402: When the operating state of the above device is the device restart state and the above identity information includes the timestamp of the data and the product information, receive the timestamp of the above data and the above product information sent by the above at least two main control cards.
[0053] In the above optional embodiment, if it is obtained that the operating state of the above device is the device restart state, then at least two main control cards respectively send the timestamp of the current data and the recorded product information to the processor.
[0054] As an optional embodiment, at least two main control cards may send the above identity information to the processor through the serial port.
[0055] In an optional embodiment, as Figure 3 shown, determining the main card and the secondary card according to the identity information of the above at least two main control cards includes:
[0056] Step S502: Judge whether the above product information sent by the above at least two main control cards is the same as the pre-stored product information;
[0057] Step S504, in the case where the judgment result is negative, when there is a piece of the above product information sent by one main control card that is the same as the above pre-stored product information, determine the above main control card as the above main card, and the main control cards other than the above main control card as the above secondary cards; or, when the above product information sent by the above at least two main control cards is different from the pre-stored product information, determine the main control card located in the main slot as the above main card;
[0058] Step S506, in the case where the judgment result is positive, determine the main control card whose distance between the time stamp of the above data and the current time point is less than the threshold as the above main card; when the time stamps of the above data sent by each main control card are the same, determine the main control card located in the main slot as the above main card.
[0059] In the embodiment of the present application, after the processor receives the product information sent by at least two main control cards, it respectively determines whether the product information sent by the at least two main control cards is the same as the pre-stored product information (i.e., the SN code of the backplane).
[0060] As an alternative embodiment, when there is a piece of the above product information sent by one main control card that is the same as the above pre-stored product information, determine the above main control card as the above main card, and the main control cards other than the above main control card as the above secondary cards; or, when the above product information sent by the above at least two main control cards is different from the pre-stored product information, determine the main control card located in the main slot as the above main card.
[0061] As an alternative embodiment, when the above product information sent by the above at least two main control cards is the same as the pre-stored product information, then obtain the distance between the time stamp of the data between the at least two main control cards and the current time point, and use the main control card with a distance less than the threshold as the main card; when the time stamps of the data sent by each main control card are the same, use the main control card located in the main slot as the main card.
[0062] In an alternative embodiment, as Figure 4 shown, the above sending the information to be synchronized of the above main card to the above secondary card for synchronization includes:
[0063] Step S602, send the synchronization request of the above secondary card to the above main card;
[0064] Step S604, send the display data and firmware information in the information to be synchronized of the above main card to the above secondary card according to the synchronization request of the above secondary card;
[0065] Step S606, perform data synchronization on the above secondary card according to the above display data and the above firmware information.
[0066] Still taking the example of two main control cards, when the identities of the main card and the secondary card of the two main control cards are confirmed, the secondary card will send a synchronization request to the processor, and the processor will forward the synchronization request to the main card to request synchronization of the current display data and firmware information to the secondary card. After obtaining the display data and firmware information, the secondary card will be synchronized according to the above display data and the above firmware information.
[0067] As an optional embodiment, data synchronization of the secondary card may be performed via a network (eg, a precursor network) but is not limited thereto.
[0068] In an optional embodiment, the above method further includes:
[0069] Step S702: After the data synchronization is completed, the secondary card is in a state of waiting for the primary card to update, so as to receive the changed data sent by the primary card and synchronize the timestamp of the data.
[0070] As an optional embodiment, the main card starts normal business and starts another thread to synchronize display data and firmware information to the secondary card. After the synchronization is completed, the secondary card is in a state of waiting for the main card to be updated, receiving the changed data sent by the main card at any time, and synchronizing the timestamp of the data.
[0071] In an optional embodiment, if Figure 5 As shown, the above method also includes:
[0072] Step S802, receiving heartbeat packets from the primary card and the secondary card respectively;
[0073] Step S804, when the time for the master card to send the heartbeat packet is greater than a preset time, determining that the operation state of the master card is abnormal;
[0074] Step S806, resetting the primary card and switching the peripherals to the secondary card;
[0075] Step S808, determining that the secondary card is changed to the primary card, and using the changed primary card to perform data processing and transmission.
[0076] As an optional embodiment, after the device is powered on normally and the identity confirmation of the primary and secondary cards is completed, both the primary card and the secondary card will maintain the interaction of heartbeat packets with the processor. Optionally, the heartbeat packets can be sent through the serial port.
[0077] In the above optional embodiment, once the current main card has no heartbeat interaction for a long time, that is, the time for the main card to send the above heartbeat packet is greater than the preset time, it will be considered that the current main card is working abnormally, and the main-subsidiary card switching process will be started, that is, the main card will be reset, and the peripherals will be switched to the sub-card, and then the changed main card will perform data processing and transmission.
[0078] Through the data synchronization solution provided by the embodiments of the present application, by setting at least two main control cards, the backplane determines the identities of the main card and the secondary card through double verification of data and SN. During the power-on recovery process without replacing the card, the main card used by the previous device will be used to take over the device. Even if it is replaced with another main control card, since the display data and firmware information of the device are stored in this main control card, it can be determined that the other main control card takes over the device, ensuring that the device can restore the state before shutdown every time it is powered on, and can synchronize the previous data and firmware of the device to the newly replaced main control card.
[0079] Moreover, in the embodiments of the present application, during the normal operation of the device, the working state of the current main card is confirmed by checking the heartbeat. Once an abnormality occurs, the current main card and secondary card will be switched, and the secondary card will continue to manage the device, without problems such as device freezing, improving the stability of the device.
[0080] Embodiment 2
[0081] According to an embodiment of the present invention, there is also provided an apparatus embodiment for implementing a method of data synchronization. Figure 6 It is a schematic structural diagram of an apparatus for data synchronization according to an embodiment of the present invention, as Figure 6 shown. The above-mentioned apparatus for data synchronization includes: a first acquisition module 600, a second acquisition module 602, an identity determination module 604, and a data synchronization module 606, where:
[0082] The first acquisition module 600 is used to acquire the operating state of the device; the second acquisition module 602 is used to acquire the identity information of at least two main control cards according to the above-mentioned operating state; the identity determination module 604 is used to determine the main card and the secondary card according to the identity information of the above-mentioned at least two main control cards; the data synchronization module 606 is used to send the information to be synchronized of the above-mentioned main card to the above-mentioned secondary card for synchronization, where the information to be synchronized includes: display data and firmware information.
[0083] It should be noted that the above-mentioned various modules can be implemented by software or hardware. For example, for the latter, it can be implemented in the following way: the above-mentioned various modules can be located in the same processor; or, the above-mentioned various modules are located in different processors in any combination.
[0084] It should be noted here that the above-mentioned first acquisition module 600, second acquisition module 602, identity determination module 604, and data synchronization module 606 correspond to steps S102 to S108 in Embodiment 1. The examples and application scenarios implemented by the above-mentioned modules and the corresponding steps are the same, but are not limited to the content disclosed in the above-mentioned Embodiment 1. It should be noted that the above-mentioned modules, as a part of the apparatus, can run in a computer terminal.
[0085] It should be noted that the optional or preferred implementation manners of this embodiment can refer to the relevant descriptions in Embodiment 1, and will not be elaborated here.
[0086] The above data synchronization device may further include a processor and a memory. The above first acquisition module 600, second acquisition module 602, identity determination module 604, data synchronization module 606, etc. are all stored in the memory as program units, and the corresponding functions are implemented by the processor executing the above program units stored in the memory.
[0087] The processor contains a kernel, and the kernel retrieves the corresponding program units from the memory. One or more kernels can be set. The memory may include non-permanent memory in a computer-readable medium, forms such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM), and the memory includes at least one storage chip.
[0088] Embodiment 3
[0089] According to an embodiment of the present application, an embodiment of a non-volatile storage medium is also provided. Optionally, in this embodiment, the above non-volatile storage medium stores a program, and when the above program runs, it controls the device where the non-volatile storage medium is located to execute the data synchronization method in the above Embodiment 1.
[0090] Optionally, in this embodiment, the above non-volatile storage medium can be located in any one of the computer terminals in a computer terminal group in a computer network, or in any one of the mobile terminals in a mobile terminal group, and the above non-volatile storage medium stores a program.
[0091] Optionally, when the program runs, it controls the device where the non-volatile storage medium is located to execute the following functions: obtaining the running state of the device; obtaining the identity information of at least two main control cards according to the above running state; determining the main card and the secondary card according to the identity information of the above at least two main control cards; sending the information to be synchronized of the above main card to the above secondary card for synchronization, where the information to be synchronized includes: display data and firmware information.
[0092] Optionally, when the program runs, it controls the device where the non-volatile storage medium is located to execute the following functions: when the running state of the above device is the new device startup state, sending the product information of the backplane to the above at least two main control cards; respectively obtaining the identity information of the main control cards located in the main slot and the secondary slot.
[0093] Optionally, when the program is running, control the device where the non-volatile storage medium is located to perform the following functions: obtain the first identity information of the main control card through the above-mentioned main slot, and determine the main control card located in the above-mentioned main slot as the above-mentioned main card according to the above-mentioned first identity information; obtain the second identity information of the main control card through the above-mentioned secondary slot, and determine the main control card located in the above-mentioned secondary slot as the above-mentioned secondary card according to the above-mentioned second identity information.
[0094] Optionally, when the program is running, control the device where the non-volatile storage medium is located to perform the following functions: when the operating state of the above-mentioned device is the device restart state, and when the above-mentioned identity information includes the timestamp and product information of the data, receive the timestamp and product information of the data sent by the above-mentioned at least two main control cards.
[0095] Optionally, when the program is running, control the device where the non-volatile storage medium is located to perform the following functions: determine whether the product information sent by the above-mentioned at least two main control cards is the same as the pre-stored product information; in the case where the judgment result is no, when there is a main control card whose sent product information is the same as the pre-stored product information, determine the above-mentioned main control card as the above-mentioned main card, and the main control cards other than the above-mentioned main control card as the above-mentioned secondary cards; or, when the product information sent by the above-mentioned at least two main control cards is different from the pre-stored product information, determine the main control card located in the main slot as the above-mentioned main card; in the case where the judgment result is yes, determine the main control card whose distance between the timestamp of the above-mentioned data and the current time point is less than the threshold as the above-mentioned main card; when the timestamps of the data sent by each main control card are the same, determine the main control card located in the main slot as the above-mentioned main card.
[0096] Optionally, when the program is running, control the device where the non-volatile storage medium is located to perform the following functions: send the synchronization request of the above-mentioned secondary card to the above-mentioned main card; send the display data and firmware information in the information to be synchronized of the above-mentioned main card to the above-mentioned secondary card according to the synchronization request of the above-mentioned secondary card; perform data synchronization on the above-mentioned secondary card according to the above-mentioned display data and above-mentioned firmware information.
[0097] Optionally, when the program is running, control the device where the non-volatile storage medium is located to perform the following functions: after the data synchronization is completed, the above-mentioned secondary card is in a state of waiting for the above-mentioned main card to update, so as to receive the changed data sent by the above-mentioned main card and synchronize the timestamp of the data.
[0098] Optionally, when the program is running, control the device where the non-volatile storage medium is located to perform the following functions: receive the heartbeat packets of the above-mentioned main card and the above-mentioned secondary card respectively; when the time for the above-mentioned main card to send the above-mentioned heartbeat packet is greater than the preset duration, determine that the operating state of the above-mentioned main card is abnormal; reset the above-mentioned main card and switch the peripheral device to the above-mentioned secondary card; determine that the above-mentioned secondary card is changed to the above-mentioned main card, and the changed main card performs data processing and transmission.
[0099] Embodiment 4
[0100] According to an embodiment of the present application, an embodiment of a video processing device is further provided. Optionally, in this embodiment, the video processing device is used to run a program, and when the above program runs, it executes the data synchronization method in the above Embodiment 1.
[0101] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0102] In the above embodiments of the present invention, the descriptions of the respective embodiments have their own emphases. For the parts not detailed in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
[0103] In the several embodiments provided by the present application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only illustrative. For example, the above division of units can be a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces. The indirect couplings or communication connections of units or modules can be in electrical or other forms.
[0104] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they can be located in one place, or distributed to multiple units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0105] In addition, the functional units in the respective embodiments of the present invention can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
[0106] When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable non-volatile storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a non-volatile storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned non-volatile storage medium includes: USB flash drives, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), mobile hard disks, magnetic disks, or optical discs, etc., all of which can store program codes.
[0107] The above are only the preferred embodiments of the present invention. It should be noted that for those of ordinary skill in the art, without departing from the principle of the present invention, several improvements and refinements can be made, and these improvements and refinements should also be regarded as the protection scope of the present invention.
Claims
1. A method for data synchronization, characterized in that, it includes: Obtain the operating status of the device; wherein, the device is a video splicer, and at least two main control cards are set in the video splicer; Obtain the identity information of at least two main control cards according to the operating status; Determine the main card and the secondary card according to the identity information of the at least two main control cards; Send the information to be synchronized of the main card to the secondary card for synchronization, wherein the information to be synchronized includes: display data and firmware information; The operating status of the device is the startup state of a new device, the operating status of the device is the device restart state, or a card in the device is abnormal; Obtaining the identity information of at least two main control cards according to the operating status includes: In the case where the operating status of the device is the device restart state, when the identity information includes the timestamp of the data and the product information, receive the timestamp of the data and the product information sent by the at least two main control cards; The determining the main card and the secondary card according to the identity information of the at least two main control cards includes: Judge whether the product information sent by the at least two main control cards is the same as the pre-stored product information; wherein, the pre-stored product information includes the product information of the backplane; In the case where the judgment result is no, when there is one main control card whose sent product information is the same as the pre-stored product information, determine the main control card as the main card, and the main control cards other than the main control card as the secondary card; or, when the product information sent by the at least two main control cards is different from the pre-stored product information, determine the main control card located in the main slot as the main card; In the case where the judgment result is yes, determine the main control card whose distance between the timestamp of the data and the current time point is less than the threshold as the main card; when the timestamps of the data sent by each main control card are the same, determine the main control card located in the main slot as the main card; The sending the information to be synchronized of the main card to the secondary card for synchronization includes: Send the synchronization request of the secondary card to the main card; Send the display data and firmware information in the information to be synchronized of the main card to the secondary card according to the synchronization request of the secondary card; Perform data synchronization on the secondary card according to the display data and the firmware information.
2. The method according to claim 1, characterized in that, Obtaining the identity information of at least two main control cards according to the operating status includes: In the case where the operating status of the device is the startup state of a new device, send the product information of the backplane to the at least two main control cards; Respectively obtain the identity information of the main control cards located in the main slot and the secondary slot.
3. The method according to claim 2, characterized in that, The determining the main card and the secondary card according to the identity information of the at least two main control cards includes: Obtain the first identity information of the main control card through the main slot, and determine the main control card located in the main slot as the main card according to the first identity information; Obtain the second identity information of the main control card through the secondary slot, and determine the main control card located in the secondary slot as the secondary card according to the second identity information.
4. The method according to claim 1, Characterized in that, The method further includes: After the data synchronization ends, the secondary card is in a state of waiting for the primary card to be updated, so as to receive the changed data sent by the primary card and synchronize the timestamp of the data.
5. The method according to claim 1, Characterized in that, The method further includes: Receiving heartbeat packets of the primary card and the secondary card respectively; When the time for the primary card to send the heartbeat packet is greater than a preset duration, determining that the operating state of the primary card is abnormal; Resetting the primary card and switching the peripheral device to the secondary card; Determining that the secondary card is changed to the primary card, and the changed primary card performs data processing and transmission.
6. A video processing device, Characterized in that, The video processing device is used to run a program, wherein the program is set to execute the data synchronization method according to any one of claims 1 to 5 when running.
Citation Information
Patent Citations
Master card setting device and method
CN106658470A
All-color big screen display controller
CN202102690U
Systems and methods for raid metadata storage
US20120089776A1