CN108282366B - Unit data synchronization method, system and computer readable storage medium - Google Patents

Unit data synchronization method, system and computer readable storage medium Download PDF

Info

Publication number
CN108282366B
CN108282366B CN201810058939.1A CN201810058939A CN108282366B CN 108282366 B CN108282366 B CN 108282366B CN 201810058939 A CN201810058939 A CN 201810058939A CN 108282366 B CN108282366 B CN 108282366B
Authority
CN
China
Prior art keywords
data synchronization
complete machine
synchronization source
matching
destination
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810058939.1A
Other languages
Chinese (zh)
Other versions
CN108282366A (en
Inventor
关富文
董玉红
唐政清
钟金扬
彭嘉欣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201810058939.1A priority Critical patent/CN108282366B/en
Publication of CN108282366A publication Critical patent/CN108282366A/en
Application granted granted Critical
Publication of CN108282366B publication Critical patent/CN108282366B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/084Configuration by using pre-existing information, e.g. using templates or copying from other elements
    • H04L41/0846Configuration by using pre-existing information, e.g. using templates or copying from other elements based on copy from other elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0866Checking the configuration
    • H04L41/0873Checking configuration conflicts between network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/18Automatic repetition systems, e.g. Van Duuren systems

Abstract

The disclosure provides a method and a system for synchronizing machine group data and a computer readable storage medium, and relates to the technical field of automation. The disclosed group data synchronization method comprises the following steps: the data synchronization source end sends the complete machine identification and the control parameters of the data synchronization source end to a data synchronization target end; and the data synchronization destination end stores the control parameters matched with the fields in the communication protocol version of the data synchronization destination end, and updates the stored complete machine identification according to the complete machine identification of the data synchronization source end. By the method, the data synchronization destination can store the data from the data synchronization source according to the own communication protocol version, so that the best data synchronization is realized, the correctness of the successfully synchronized data is ensured, the unstable operation of equipment caused by data synchronization errors is prevented, and the compatibility of unit equipment is improved.

Description

Unit data synchronization method, system and computer readable storage medium
Technical Field
The present disclosure relates to the field of automation technologies, and in particular, to a method, a system, and a computer-readable storage medium for group data synchronization.
Background
Currently, in the maintenance or upgrading process of a large unit, the parts are frequently required to be replaced. Some accessories, such as touch screens and mainboards, may have compatibility problems due to different original default parameters after replacement. In order to ensure the coordination and normal work of all the accessories, data synchronization is required.
Disclosure of Invention
The inventors have discovered that protocol versions may differ for different accessories due to the effects of product upgrades. For example, the touch screen initiates a data synchronization request, and reads data from the motherboard according to its own protocol version, but because the protocol is inconsistent, the motherboard may not reply normally or reply wrong data, thereby failing to synchronize the data.
One object of the present disclosure is to improve the compatibility of the unit equipment.
According to an aspect of the present disclosure, a method for group data synchronization is provided, including: the data synchronization source end sends the complete machine identification and the control parameters of the data synchronization source end to a data synchronization target end; and the data synchronization destination end stores the control parameters matched with the fields in the communication protocol version of the data synchronization destination end, and updates the stored complete machine identification according to the complete machine identification of the data synchronization source end.
Optionally, in a case that the data synchronization source is a motherboard, the data synchronization destination includes a controller; under the condition that the data synchronization source end is a controller, the data synchronization destination end comprises a mainboard.
Optionally, when the data synchronization source is a motherboard, the method further includes: the main board generates a check code according to the control parameter of the main board and sends the check code to the data synchronization destination; and the data synchronization destination performs verification calculation on the verification code according to a preset algorithm, and executes the operation of storing the control parameters matched with the fields in the communication protocol version of the data synchronization destination and updating the complete machine identification under the condition of passing verification.
Optionally, the method further comprises: if the check code verification fails, the data synchronization destination terminal initiates a synchronization request to the main board so as to acquire the check code again; and if the number of times of failure in verification reaches a preset maximum value, determining that the data synchronization fails.
Optionally, when the data synchronization source is a motherboard, the motherboard sends its own complete machine identifier and control parameters to the data synchronization destination according to a synchronization request from the controller.
Optionally, the method further comprises: the data synchronization source end and the data synchronization destination end are subjected to complete machine identification matching; and under the condition that the complete machine identification of the data synchronization source end is not matched with that of the data synchronization target end, executing the operation that the data synchronization source end sends the complete machine identification and the control parameters of the data synchronization source end to the data synchronization target end.
Optionally, the method further comprises: after communication equipment of the unit is powered on, the data synchronization source end and the data synchronization destination end carry out unit information matching, and if the matching is unsuccessful, the communication is stopped; and if the matching is successful, executing the operation of matching the complete machine identification.
Optionally, the method further comprises: the data synchronization source end sends the address of the control parameter to the data synchronization destination end; the data synchronization destination end stores the control parameters matched with the fields in the communication protocol version of the data synchronization destination end, and the control parameters comprise: the data synchronization destination terminal matches the address of the control parameter with the address of the self-stored control parameter; if the matching is successful, storing the control parameters corresponding to the addresses; and if the matching is unsuccessful, not storing the control parameters corresponding to the address.
By the method, the data synchronization destination can store the data from the data synchronization source according to the own communication protocol version, so that the best data synchronization is realized, the correctness of the successfully synchronized data is ensured, the unstable operation of equipment caused by data synchronization errors is prevented, and the compatibility of unit equipment is improved.
According to another aspect of the present disclosure, a group data synchronization system is provided, including: the data synchronization source end equipment is configured to send the complete machine identification and the control parameters of the data synchronization source end equipment to the data synchronization destination end; and the data synchronization destination end equipment is configured to store the control parameters matched with the fields in the communication protocol version of the data synchronization destination end equipment, and update the stored complete machine identification according to the complete machine identification of the data synchronization source end equipment.
Optionally, in a case that the data synchronization source device is a motherboard, the data synchronization destination device includes a controller; under the condition that the data synchronization source end device is a controller, the data synchronization destination end device comprises a main board.
Optionally, in a case that the data synchronization source device is a motherboard: the data synchronization source end equipment is also configured to generate a check code according to the control parameter of the data synchronization source end equipment and send the check code to the data synchronization destination end equipment; and the data synchronization destination equipment is also configured to perform check calculation on the check code according to a preset algorithm, and execute the operation of storing the control parameters matched with the fields in the communication protocol version of the data synchronization destination equipment and updating the complete machine identification under the condition that the verification is passed.
Optionally, the data synchronization destination device is further configured to: under the condition that the verification of the check code is not passed, a synchronization request is sent to the data synchronization source end equipment so as to obtain the check code again; and if the number of times of failure in verification reaches a preset maximum value, determining that the data synchronization fails.
Optionally, in a case that the data synchronization source device is a motherboard, the data synchronization source device is configured to perform, according to a synchronization request from the data synchronization destination device, an operation of sending a complete machine identifier and a control parameter of the data synchronization source device to the data synchronization destination device.
Optionally, in a case that the data synchronization source device is a controller, the data synchronization source device is further configured to perform complete machine identifier matching with the data synchronization destination device, and if the matching is unsuccessful, send a complete machine identifier and a control parameter of the data synchronization source device to the data synchronization destination device.
Optionally, in a case that the data synchronization destination device is a controller, the data synchronization destination device is further configured to perform complete machine identifier matching with the data synchronization source device, and if the matching is unsuccessful, send a synchronization request to the data synchronization source device.
Optionally, the data synchronization source device or the data synchronization destination device is configured to: carrying out information matching on the unit after the communication equipment of the unit is powered on; if the unit information matching of the data synchronization source end equipment and the data synchronization destination end equipment is unsuccessful, stopping communication; and if the matching is successful, activating the controller to perform complete machine identification matching.
Optionally, the data synchronization source device is further configured to send the address of the control parameter to the data synchronization destination device; the data synchronization destination device is configured to match the address of the control parameter with the address of the self-stored control parameter; if the matching is successful, storing the control parameters corresponding to the addresses; and if the matching is unsuccessful, not storing the control parameters corresponding to the address.
According to another aspect of the present disclosure, a group data synchronization system is provided, including: a memory; and a processor coupled to the memory, the processor configured to perform any of the above set of data synchronization methods based on instructions stored in the memory.
In the unit data synchronization system, the data synchronization destination device can store data from the data synchronization source device according to the communication protocol version of the data synchronization destination device, so that best-effort data synchronization is realized, the correctness of successfully synchronized data is ensured, unstable unit operation caused by data synchronization errors is prevented, and the unit operation compatibility is improved.
According to yet another aspect of the present disclosure, a computer-readable storage medium is proposed, on which computer program instructions are stored, which instructions, when executed by a processor, implement the steps of any of the above group data synchronization methods.
By executing the instructions on the computer-readable storage medium, the data synchronization destination device can store the data from the data synchronization source device according to the own communication protocol version, so that the best data synchronization is realized, the correctness of the successfully synchronized data is ensured, the unstable operation of the unit caused by the data synchronization error is prevented, and the compatibility of the operation of the unit is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this disclosure, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure and not to limit the disclosure. In the drawings:
FIG. 1 is a flow chart of an embodiment of a crew data synchronization method of the present disclosure.
Fig. 2 is a flowchart of another embodiment of the crew data synchronization method of the present disclosure.
FIG. 3 is a flow chart of another embodiment of the crew data synchronization method of the present disclosure.
FIG. 4 is a schematic diagram of one embodiment of a crew data synchronization system of the present disclosure.
FIG. 5 is a schematic diagram of another embodiment of the crew data synchronization system of the present disclosure.
FIG. 6 is a schematic diagram of yet another embodiment of the crew data synchronization system of the present disclosure.
Detailed Description
The technical solution of the present disclosure is further described in detail by the accompanying drawings and examples.
A flow chart of one embodiment of the crew data synchronization method of the present disclosure is shown in fig. 1.
In step 101, the data synchronization source sends its own complete machine identifier and control parameters to the data synchronization destination. In one embodiment, the whole machine id may be string information, such as 1234567789AA, and each unit has a unique string after synchronization is completed. In one embodiment, the control parameters may include compressor current set point, chilled water leaving water temperature, electronic expansion valve opening, etc., depending on the type and function of the unit.
In step 102, the data synchronization destination stores the control parameter matched with the field in the communication protocol version of the data synchronization destination, and updates the stored complete machine identifier according to the complete machine identifier of the data synchronization source. For example, if the control parameters used in the data synchronization destination protocol are less than the parameters used in the data synchronization source protocol, the data synchronization destination selects the required parameters to store according to the own communication protocol; the control parameters used in the data synchronization destination protocol are more than the parameters used in the data synchronization source protocol, and then the data synchronization destination stores the received control parameters to the corresponding fields according to the protocol format of the data synchronization destination, and the fields of the control parameters which cannot be received are left empty.
In the related art, in order to solve the problem of data synchronization failure, the controller needs to determine the protocol versions of both parties before data synchronization, and select a proper data address for requesting. However, in the upgrading and updating process of the product, the communication protocol is often upgraded, so that the software design is difficult to be universal, and the instability of a software system is increased.
By the method in the embodiment of the disclosure, the data synchronization destination can store the data from the data synchronization source according to the own communication protocol version, thereby realizing the best data synchronization, ensuring the correctness of the successfully synchronized data, preventing the unstable operation of the equipment caused by the data synchronization error, and improving the compatibility of the unit equipment.
In one embodiment, the synchronization data sent by the data synchronization source to the data synchronization destination may further include address information of the control parameter, for example, the data frame includes [ (address of control parameter a, value of control parameter a), (address of control parameter B, value of control parameter B) … … ]. The data synchronization destination can match the address of the control parameter with the address of the control parameter stored by the data synchronization destination, and if the address of the control parameter is the same as the address of the control parameter stored by the data synchronization destination, the control parameter is stored in the address field of the control parameter stored by the data synchronization destination; if the two are different or the address and the parameter do not exist, the control parameter is not stored.
By the method, whether the control parameter is the control parameter which accords with the communication protocol version of the control parameter can be judged in a mode of matching the storage address of the control parameter, operation errors caused by the fact that the parameter is stored into an error field are avoided, and stability of unit operation is improved.
In one embodiment, the data synchronization source end may be a motherboard, and the data synchronization destination end includes a controller; the data synchronization source end can be a controller, and the data synchronization destination end comprises a mainboard. The controller may include a touch screen, a control panel, and the like.
By the method, the characteristic that the current large unit uses CAN communication to realize communication among all devices CAN be utilized, the control parameter synchronization of the mainboard and the controller is realized based on the CAN communication master-slave-free communication characteristic, the flexibility is improved, meanwhile, the data synchronization error caused by the asynchronous protocol versions of the mainboard and the controller is overcome, the software complexity of the data synchronization is reduced, and the stability of the devices is improved.
In one embodiment, the data synchronization process may be performed after the device is powered on, or may be triggered by the controller. Under the condition that the data synchronization source end is the mainboard, the data synchronization process can be triggered from the controller, and the controller sends a synchronization request to the mainboard, so that the controllability of the data synchronization process is improved.
In one embodiment, if the data synchronization source is a controller, since the controller sends control parameters to the motherboard many times in the process of interacting with the motherboard, occasional data errors are covered afterwards, and therefore, verification is not required in the process of initial data synchronization, and the efficiency of initial data synchronization is improved.
In another embodiment, if the data synchronization source is a motherboard, data verification may be added to ensure accuracy and reliability of control parameter synchronization. A flow chart of another embodiment of the crew data synchronization method of the present disclosure is shown in fig. 2.
In step 201, the controller sends a synchronization request to the motherboard.
In step 202, the motherboard generates a check code according to its own control parameters. In one embodiment, the motherboard and the controller may have matching verification algorithms to ensure that the controller can perform a verification operation on the received data using the verification code.
In one embodiment, the check code may be located in an end frame of the data synchronization to serve as an indication that the control parameter has been transmitted, and the controller determines that the control parameter has been received after receiving the check code, so that it is not necessary to continue to wait for the control parameter. By the method, on one hand, the missed storage of the control parameters is avoided, on the other hand, the waiting process is shortened, and the data synchronization efficiency is improved.
In step 203, the motherboard sends its own complete machine identifier, control parameters, and check code to the data synchronization destination including the controller.
In step 204, the controller performs a check calculation on the check code according to a predetermined algorithm. The predetermined algorithm refers to an algorithm matched with the mainboard generation check code.
In step 205, the controller determines whether the check code passes the check. If the verification is passed, go to step 208; if the verification fails, step 206 is performed.
In step 206, it is determined whether the number of times of (continuous) check failures of the controller reaches a predetermined maximum value, such as 3-5 times. If the predetermined maximum value is reached, go to step 207; if not, step 201 is executed to send a synchronization request to the motherboard again.
In step 207, a data synchronization failure is determined. In one embodiment, an alarm message may be issued or an error message may be output to prompt the staff for intervention and troubleshooting.
In step 208, the controller stores the control parameters matching the fields in its own communication protocol version and updates the stored complete machine id.
By the method, the accuracy of data synchronization can be guaranteed through data verification under the condition that the control parameters stored by the main board are used for updating the control parameters stored by the controller, and the stability of unit operation is improved.
In one embodiment, complete machine identification matching is required before determining that data synchronization is required. If the complete machine identifications of the data synchronization source end and the data synchronization destination end are the same, it is indicated that no hardware replacement occurs or data synchronization is completed, and data synchronization does not need to be performed again. In one embodiment, the data synchronization source end can obtain a complete machine identifier of the data synchronization destination end, and perform verification operation at the data synchronization source end; or the complete machine identification of the data synchronization source end can be obtained by the data synchronization destination end, and the verification operation is carried out at the data synchronization destination end; and the complete machine identifications on the two sides can be acquired by other equipment for matching.
By the method, whether data synchronization is needed or not can be verified by using the complete machine identification, so that unnecessary data synchronization operation is avoided, and the starting efficiency of the unit is improved.
In an embodiment, the unit information matching may be performed on the data synchronization source end and the data synchronization destination end, and if the unit information is not matched, it indicates that the motherboard and the controller are not supporting devices, for example: the controller of the centrifugal unit and the controller of the screw type unit can not be used universally, the work of the unit can not be controlled normally, the data synchronization work is not required to be carried out continuously, an alarm can be triggered, and the replacement of equipment accessories is prompted. In an embodiment, the matching of the unit information may be performed at the data synchronization source, at the data synchronization destination, or after the unit information of the data synchronization source and the unit information of the data synchronization destination are acquired by other devices, the unit information may be matched.
A flow chart of yet another embodiment of the crew data synchronization method of the present disclosure is shown in fig. 3.
In step 301, it is determined whether the unit information of the data synchronization source and the data synchronization destination are matched. If not, go to step 302; if so, go to step 303.
In step 302, communication fails, the components of the aircraft are incompatible, communication is stopped, and an alarm is given.
In step 303, it is determined whether the complete machine identifiers of the data synchronization source end and the data synchronization destination end are the same. If yes, go to step 304; if not, go to step 305.
In step 304, normal communication is started and the unit operates normally.
In step 305, the data synchronization source sends its own complete machine identifier and control parameters to the data synchronization destination.
In step 306, the data synchronization destination stores the control parameter matching with the field in its own communication protocol version, and updates the stored complete machine identifier according to the complete machine identifier of the data synchronization source.
By the method, on one hand, the information of the unit can be matched, the compatibility verification of the unit accessories is realized, and the reliability of the unit operation is improved; on the other hand, unnecessary data synchronization process can be avoided, and the starting efficiency of the unit is improved.
A schematic diagram of one embodiment of the crew data synchronization system of the present disclosure is shown in fig. 4. The data synchronization source device 41 can send its own complete machine identifier and control parameters to the data synchronization destination device. In one embodiment, the whole machine id may be string information, such as 1234567789AA, and each unit has a unique string after synchronization is completed. The data synchronization destination device 42 can store the control parameter matched with the field in the communication protocol version of itself, and update the stored complete machine identifier according to the complete machine identifier of the data synchronization source device. In the unit data synchronization system, the data synchronization destination device can store data from the data synchronization source device according to the communication protocol version of the data synchronization destination device, so that best-effort data synchronization is realized, the correctness of successfully synchronized data is ensured, unstable unit operation caused by data synchronization errors is prevented, and the unit operation compatibility is improved.
In one embodiment, the synchronization data sent by the data synchronization source device to the data synchronization destination device may further include address information of the control parameter, for example, the data frame includes [ (address of control parameter a, value of control parameter a), (address of control parameter B, value of control parameter B) … … ]. The data synchronization destination device can match the address of the control parameter with the address of the control parameter stored in the data synchronization destination device, and if the address of the control parameter is the same as the address of the control parameter stored in the data synchronization destination device, the control parameter is stored in the address field of the control parameter stored in the data synchronization destination device; if the two are different or the address or parameter does not exist, the control parameter is not stored.
The unit data synchronization system can judge whether the control parameter is the control parameter which accords with the communication protocol version of the unit in a mode of matching the storage address of the control parameter, avoids the operation error caused by the fact that the parameter is stored into an error field, and improves the stability of unit operation.
In one embodiment, the data synchronization source device may be a motherboard, the data synchronization destination device includes a controller, and the controller may include a touch screen, a control board, and the like; the data synchronization source device can be a controller, and the data synchronization destination device comprises a mainboard.
The unit data synchronization system can realize the synchronization of control parameters of the mainboard and the controller, and meanwhile, overcomes the data synchronization error caused by the asynchronism of protocol versions of the mainboard and the controller, and improves the stability of equipment.
In one embodiment, the data synchronization process may be performed after the device is powered on, or may be triggered by the controller. Under the condition that the data synchronization source end device is the mainboard, the data synchronization process can be triggered from the controller, and the controller sends a synchronization request to the mainboard, so that the controllability of the data synchronization process is improved.
In an embodiment, if the data synchronization source device is a controller, since the controller sends the control parameter to the motherboard many times in the process of interacting with the motherboard, and an occasional data error is covered afterwards, it is not necessary to perform verification in the process of initial data synchronization, thereby improving the efficiency of initial data synchronization.
In another embodiment, if the data synchronization source device is a motherboard, data verification may be added to ensure accuracy and reliability of control parameter synchronization. In one embodiment, retransmission can be performed when verification fails, a predetermined maximum threshold of retransmission times can be set, and data synchronization is stopped and an error is reported when the threshold is exceeded, so that a dead cycle is avoided, and workers can find and solve problems in time.
In one embodiment, the data synchronization source device or the data synchronization destination device may perform complete machine identifier matching first, and if the complete machine identifiers of the data synchronization source device and the data synchronization destination device are the same, it indicates that no hardware replacement occurs or data synchronization has been completed, and data synchronization does not need to be performed again. In one embodiment, the matching operation may be performed by obtaining the complete machine identifier by a device other than the data synchronization source device and the data synchronization destination device.
The unit data synchronization system can verify whether data synchronization is needed or not by using the complete machine identification, thereby avoiding unnecessary data synchronization operation and improving the starting efficiency of the unit.
In an embodiment, the data synchronization source end device or the data synchronization destination end device may perform unit information matching first, and if the unit information is not matched, it indicates that the motherboard and the controller are not supporting devices, and the data synchronization operation does not need to be performed continuously, and an alarm may be triggered to prompt to replace equipment accessories. In one embodiment, the matching operation may be performed by acquiring the crew information by a device other than the data synchronization source device and the data synchronization destination device.
The unit data synchronization system can realize unit accessory compatibility verification and improve unit operation reliability.
A schematic structural diagram of an embodiment of the crew data synchronization system of the present disclosure is shown in fig. 5. The crew data synchronization system includes a memory 501 and a processor 502. Wherein: the memory 501 may be a magnetic disk, flash memory, or any other non-volatile storage medium. The memory is used for storing the instructions in the corresponding embodiments of the unit data synchronization method. The processor 502 is coupled to the memory 501 and may be implemented as one or more integrated circuits, such as a microprocessor or microcontroller. The processor 502 is configured to execute instructions stored in the memory, and can implement data synchronization as much as possible, ensure correctness of successfully synchronized data, prevent unstable operation of the unit due to data synchronization error, and improve compatibility of unit operation.
In one embodiment, as also shown in FIG. 6, the crew data synchronization system 600 includes a memory 601 and a processor 602. The processor 602 is coupled to the memory 601 by a BUS 603. The crew data synchronization system 600 may also be coupled to an external storage device 605 via a storage interface 604 for invoking external data, and may also be coupled to a network or another computer system (not shown) via a network interface 606. And will not be described in detail herein.
In the embodiment, the data instruction is stored in the memory, and the instruction is processed by the processor, so that data synchronization can be realized as much as possible, the correctness of successfully synchronized data is ensured, the unstable operation of the unit caused by data synchronization errors is prevented, and the operation compatibility of the unit is improved.
In another embodiment, a computer-readable storage medium has stored thereon computer program instructions which, when executed by a processor, implement the steps of the method in the corresponding embodiment of the crew data synchronization method. As will be appreciated by one skilled in the art, embodiments of the present disclosure may be provided as a method, apparatus, or computer program product. Accordingly, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present disclosure may take the form of a computer program product embodied on one or more computer-usable non-transitory storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present disclosure is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Thus far, the present disclosure has been described in detail. Some details that are well known in the art have not been described in order to avoid obscuring the concepts of the present disclosure. It will be fully apparent to those skilled in the art from the foregoing description how to practice the presently disclosed embodiments.
The methods and apparatus of the present disclosure may be implemented in a number of ways. For example, the methods and apparatus of the present disclosure may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above-described order for the steps of the method is for illustration only, and the steps of the method of the present disclosure are not limited to the order specifically described above unless specifically stated otherwise. Further, in some embodiments, the present disclosure may also be embodied as programs recorded in a recording medium, the programs including machine-readable instructions for implementing the methods according to the present disclosure. Thus, the present disclosure also covers a recording medium storing a program for executing the method according to the present disclosure.
Finally, it should be noted that: the above examples are intended only to illustrate the technical solutions of the present disclosure and not to limit them; although the present disclosure has been described in detail with reference to preferred embodiments, those of ordinary skill in the art will understand that: modifications to the specific embodiments of the disclosure or equivalent substitutions for parts of the technical features may still be made; all such modifications are intended to be included within the scope of the claims of this disclosure without departing from the spirit thereof.

Claims (14)

1. A method for group data synchronization, comprising:
after communication equipment of the unit is powered on, the data synchronization source end and the data synchronization destination end carry out unit information matching, and if the matching is unsuccessful, the communication is stopped; if the matching is successful:
the data synchronization source end and the data synchronization destination end are subjected to complete machine identification matching;
under the condition that the complete machine identification of the data synchronization source end and the data synchronization destination end is not matched:
the data synchronization source end sends the complete machine identification and the control parameter of the data synchronization source end to a data synchronization target end, and sends the address of the control parameter to the data synchronization target end;
the data synchronization destination end stores control parameters matched with fields in the communication protocol version of the data synchronization destination end, and the control parameters comprise: the data synchronization destination end matches the address of the control parameter with the address of the control parameter stored in the data synchronization destination end; if the matching is successful, storing the control parameters corresponding to the address; if the matching is unsuccessful, the control parameters corresponding to the address are not stored; and updating the stored complete machine identification according to the complete machine identification of the data synchronization source end.
2. The method of claim 1, wherein,
under the condition that the data synchronization source end is a mainboard, the data synchronization destination end comprises a controller;
and under the condition that the data synchronization source end is a controller, the data synchronization destination end comprises a mainboard.
3. The method of claim 2, wherein, in the case that the data synchronization source is a motherboard, the method further comprises:
the main board generates a check code according to the control parameter of the main board and sends the check code to the data synchronization destination;
and the data synchronization destination performs verification calculation on the verification code according to a preset algorithm, and executes the operation of storing the control parameters matched with the fields in the communication protocol version of the data synchronization destination and updating the complete machine identification under the condition of passing verification.
4. The method of claim 3, further comprising:
if the check code verification fails, the data synchronization destination terminal initiates a synchronization request to the mainboard so as to acquire the check code again;
and if the number of times of failure in verification reaches a preset maximum value, determining that the data synchronization fails.
5. The method according to any one of claims 2 to 4, wherein, in a case that the data synchronization source is a motherboard, the motherboard performs sending of its own complete machine identifier and control parameters to the data synchronization destination according to the synchronization request from the controller.
6. A group data synchronization system comprising:
after communication equipment of the unit is powered on, the data synchronization source end and the data synchronization destination end carry out unit information matching, and if the matching is unsuccessful, the communication is stopped; if the matching is successful:
the data synchronization source end and the data synchronization destination end are subjected to complete machine identification matching;
under the condition that the complete machine identification of the data synchronization source end and the data synchronization destination end is not matched: the data synchronization source end equipment is configured to send the complete machine identification and the control parameters of the data synchronization source end equipment to a data synchronization destination end and send the address of the control parameters to the data synchronization destination end equipment;
the data synchronization destination device is configured to store the control parameters matched with the fields in the communication protocol version of the data synchronization destination device, and comprises the following steps: matching the address of the control parameter with the address of the self-stored control parameter; if the matching is successful, storing the control parameters corresponding to the address; if the matching is unsuccessful, the control parameters corresponding to the address are not stored; and updating the stored complete machine identification according to the complete machine identification of the data synchronization source end equipment.
7. The system of claim 6, wherein,
under the condition that the data synchronization source end equipment is a mainboard, the data synchronization destination end equipment comprises a controller;
and under the condition that the data synchronization source end equipment is a controller, the data synchronization destination end equipment comprises a mainboard.
8. The system of claim 7, wherein, in the case where the data synchronization source device is a motherboard:
the data synchronization source end equipment is also configured to generate a check code according to the control parameter of the data synchronization source end equipment and send the check code to the data synchronization destination end equipment;
and the data synchronization destination equipment is also configured to perform check calculation on the check code according to a preset algorithm, and execute the operation of storing the control parameters matched with the fields in the communication protocol version of the data synchronization destination equipment and updating the complete machine identification under the condition of passing the verification.
9. The system of claim 8, wherein the data synchronization destination device is further configured to:
under the condition that the verification of the check code is not passed, initiating a synchronization request to the data synchronization source end equipment so as to acquire the check code again; and if the number of times of failure in verification reaches a preset maximum value, determining that the data synchronization fails.
10. The system according to any one of claims 7 to 9, wherein, in a case where the data synchronization source device is a motherboard, the data synchronization source device is configured to perform an operation of sending its own complete machine identification and control parameters to the data synchronization destination device according to a synchronization request from the data synchronization destination device.
11. The system according to any one of claims 7 to 9,
under the condition that the data synchronization source end device is a controller, the data synchronization source end and the data synchronization destination end perform complete machine identification matching as follows:
the data synchronization source end equipment is also configured to perform complete machine identification matching with the data synchronization destination end equipment, and if the matching is unsuccessful, the complete machine identification and the control parameters of the data synchronization source end equipment are sent to the data synchronization destination end equipment.
12. The system of any of claims 7 to 9, wherein: under the condition that the data synchronization destination device is a controller, the matching of the complete machine identification of the data synchronization source end and the data synchronization destination end comprises the following steps:
the data synchronization destination device is also configured to perform complete machine identification matching with the data synchronization source device, and if the matching is unsuccessful, a synchronization request is sent to the data synchronization source device.
13. A group data synchronization system comprising:
a memory; and
a processor coupled to the memory, the processor configured to perform the method of any of claims 1-5 based on instructions stored in the memory.
14. A computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the method of any one of claims 1 to 5.
CN201810058939.1A 2018-01-22 2018-01-22 Unit data synchronization method, system and computer readable storage medium Active CN108282366B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810058939.1A CN108282366B (en) 2018-01-22 2018-01-22 Unit data synchronization method, system and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810058939.1A CN108282366B (en) 2018-01-22 2018-01-22 Unit data synchronization method, system and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN108282366A CN108282366A (en) 2018-07-13
CN108282366B true CN108282366B (en) 2020-06-30

Family

ID=62804406

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810058939.1A Active CN108282366B (en) 2018-01-22 2018-01-22 Unit data synchronization method, system and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108282366B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113824612B (en) * 2021-09-22 2023-01-24 深圳创维数字技术有限公司 Network equipment compatibility testing method, terminal equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104613607A (en) * 2015-02-12 2015-05-13 珠海格力电器股份有限公司 Data interaction method and device and air-conditioner control system
CN106482299A (en) * 2016-11-01 2017-03-08 珠海格力电器股份有限公司 Machine set system data backup device, method and the air-conditioner set with the device
CN106775834A (en) * 2016-11-29 2017-05-31 北京小米移动软件有限公司 Brush machine verification method and device
CN107566225A (en) * 2017-07-26 2018-01-09 合肥美的智能科技有限公司 Binding method, binding device, terminal, server and readable storage medium storing program for executing

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104613607A (en) * 2015-02-12 2015-05-13 珠海格力电器股份有限公司 Data interaction method and device and air-conditioner control system
CN106482299A (en) * 2016-11-01 2017-03-08 珠海格力电器股份有限公司 Machine set system data backup device, method and the air-conditioner set with the device
CN106775834A (en) * 2016-11-29 2017-05-31 北京小米移动软件有限公司 Brush machine verification method and device
CN107566225A (en) * 2017-07-26 2018-01-09 合肥美的智能科技有限公司 Binding method, binding device, terminal, server and readable storage medium storing program for executing

Also Published As

Publication number Publication date
CN108282366A (en) 2018-07-13

Similar Documents

Publication Publication Date Title
CN106325929B (en) Firmware upgrading method, firmware upgrading device, refrigerator and server
EP2456257B1 (en) Method and system for upgrading wireless data card
WO2019076037A1 (en) Firmware updating method and device
CN109039779B (en) Equipment upgrading method, data transmission unit, controller local area network equipment and network
CN111309336B (en) Deployment method and device of distributed application
CN112910714B (en) Remote firmware upgrading method for Internet of things terminal equipment with master-slave machine structure
US20210294593A1 (en) Method, apparatus, device, and storage medium for upgrading vehicle-mounted tbox
TW201621647A (en) Operating system updating method
CN109448880B (en) Undisturbed downloading method and system for nuclear safety level hot standby redundancy control station
CN113010217A (en) BIOS parameter setting method and device, electronic equipment and storage medium
CN109002305B (en) Method and system for updating equipment program
CN111273924A (en) Software updating method and device
CN105045640A (en) Software upgrading method and device and intelligent equipment
CN108282366B (en) Unit data synchronization method, system and computer readable storage medium
WO2015154578A1 (en) Remote upgrade method, device and system of boot program of single board
CN106775590B (en) Method for updating BIOS (basic input/output system) firmware of mainboard by BMC (baseboard management controller)
CN111984287A (en) Equipment upgrading method and system
TWI668635B (en) Mainboard and setting updating method thereof
CN106919423B (en) Firmware upgrading method and device
WO2019010769A1 (en) Upgrade method and apparatus for vehicle-mounted communication device, and vehicle-mounted communication device
CN108874405B (en) OpenStack environment upgrading method
CN107967160B (en) Method and device for updating operating system file through Boot Loader
CN107678764B (en) Method and device for upgrading VSM system based on ISSU
CN110764789B (en) Process control method and device, storage medium and electronic equipment
CN112312213A (en) Upgrading method of digital television system and related device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant