Synchronization method and device for fire alarm controller and fire alarm controller

By obtaining the version number difference information between fire alarm controllers and only updating the difference data, the problem of low configuration file synchronization efficiency in the existing technology is solved, and fast and efficient configuration file updates are achieved.

CN118550558APending Publication Date: 2024-08-27SIEMENS SCHWEIZ AG
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310180303.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-27
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

The configuration file synchronization operation of existing fire alarm controllers is inefficient and requires a lot of time, resulting in reduced work efficiency.

Method used

By obtaining the version number difference information between two fire alarm controllers, only the difference data is updated, reducing the amount of synchronized data and improving synchronization efficiency.

Benefits of technology

It greatly reduces the configuration file synchronization time, improves work efficiency, and achieves rapid configuration file updates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118550558A
    Figure CN118550558A
Patent Text Reader

Abstract

The invention provides a synchronization method and device for a fire alarm controller and the fire alarm controller, and the synchronization method comprises the steps: obtaining a first version number of a first fire alarm controller, the first version number being a version number of a configuration file currently adopted by the first fire alarm controller, a second version number corresponding to the second fire alarm controller is obtained, the second version number is the version number of a configuration file of the first control alarm controller on which the configuration file currently adopted by the second fire alarm controller depends, and the configuration file comprises configuration items and configuration data under the version numbers corresponding to the configuration items; if it is recognized that the first version number is different from the second version number, difference information is obtained and comprises different configuration items between the first version number and the second version number and configuration data corresponding to the different configuration items; and storing the difference information in a configuration file corresponding to the second fire alarm controller.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of fire protection, and in particular to a synchronization method and device for a fire alarm controller and a fire alarm controller. Background Art

[0002] Fire alarm controller is one of the most important means to prevent fire. Its function is to generate an alarm when there is a lot of smoke causing a fire. For a building, multiple fire alarm controllers need to be placed so that they can detect whether there is a fire nearby in time.

[0003] For fire alarm controllers, after installation, each fire alarm controller needs to be debugged and the configuration file of the fire alarm controller needs to be modified adaptively. If the debugger needs to go to each fire alarm controller to modify the configuration file of the fire alarm controller, the work efficiency will be reduced. Therefore, for many fire alarm controllers, the configuration file of the fire alarm controller can be modified remotely, that is, if the configuration file of one fire alarm controller is modified, the other fire alarm controllers will synchronize the modified configuration file.

[0004] However, the existing synchronization operation of the configuration files of the fire alarm controller will update all the configuration files in the fire alarm controller once, which takes a long time, such as 10 minutes to 20 minutes, resulting in very low efficiency of synchronizing the configuration files. Summary of the invention

[0005] In view of this, a first aspect of the present invention provides a synchronization method for a fire alarm controller, comprising:

[0006] Obtain a first version number of a first fire alarm controller, the first version number being the version number of a configuration file currently used by the first fire alarm controller, and obtain a corresponding second version number of a second fire alarm controller, the second version number being the version number of a configuration file of the first fire alarm controller on which the configuration file currently used by the second fire alarm controller depends, the configuration file including various configuration items and configuration data under various version numbers corresponding to each configuration item, and the configuration file of the second fire alarm controller is currently set to depend on the configuration file of the first fire alarm controller;

[0007] If it is identified that the first version number is different from the second version number, obtaining difference information, the difference information including each configuration item that differs between the first version number and the second version number and configuration data corresponding to each configuration item that differs;

[0008] The difference information is stored in a configuration file corresponding to the second fire alarm controller.

[0009] According to the synchronization method as described above, optionally, after identifying that the first version number is different from the second version number and before acquiring the difference information, it further includes:

[0010] displaying the first version number and the second version number, and executing an operation of obtaining the difference information if a first synchronization instruction is received, wherein the first synchronization instruction is generated according to the first current version number; or

[0011] Determine whether the update time of the configuration file corresponding to the first version number is later than the update time of the configuration file corresponding to the second version number, and if the determination result is yes, perform the operation of obtaining the difference information.

[0012] According to the synchronization method as described above, optionally, after identifying that the first version number is different from the second version number and before acquiring the difference information, it further includes:

[0013] determining whether the first version number is one of the historical version numbers of the configuration file possessed by the second fire alarm controller;

[0014] If the judgment result is no, the operation of obtaining difference information is executed.

[0015] According to the synchronization method as described above, optionally, it also includes: if the judgment result is yes, triggering the rollback operation of the configuration file corresponding to the second fire alarm controller to update the second version number of the second fire alarm controller to the first version number.

[0016] According to the synchronization method as described above, optionally, obtaining the difference information includes:

[0017] Sending a first acquisition message to the first fire alarm controller, wherein the first acquisition message includes the second version number;

[0018] The difference information sent by the first fire alarm controller is received, where the difference information is generated by the first fire alarm controller according to the stored configuration file corresponding to the first version number and the configuration file corresponding to the second version number.

[0019] According to the synchronization method as described above, optionally, after storing the difference information in a configuration file corresponding to the second fire alarm controller, the method further includes:

[0020] Determine whether the configuration item in the difference information is one of the preset must-restart items, and if the determination result is yes, trigger a restart operation of the second fire alarm controller; or

[0021] The difference information is displayed, and if a second synchronization instruction is received, a restart operation of the second fire alarm controller is triggered, and the second synchronization instruction is generated according to the difference information.

[0022] According to the synchronization method as described above, optionally, after obtaining a difference information and before storing the difference information in a configuration file corresponding to the second fire alarm controller, the method further includes:

[0023] Calculate a target version number based on the configuration items and configuration data in the difference information;

[0024] Determining whether the target version number is the same as the first version number, where the first version number is calculated by the first fire alarm controller according to the modified configuration items and configuration data corresponding to the first version number;

[0025] If the judgment result is yes, the operation of storing the difference information in the configuration file corresponding to the second fire alarm controller is performed.

[0026] According to the synchronization method as described above, optionally, storing the difference information in a configuration file corresponding to the second fire alarm controller includes:

[0027] adding configuration data corresponding to the configuration items in the difference information to a configuration file of the first fire alarm controller stored in the second fire alarm controller;

[0028] and / or

[0029] The configuration data corresponding to the configuration item in the difference information is added to the configuration item corresponding to the configuration file of the second fire alarm controller.

[0030] According to the synchronization method as described above, optionally, the second fire alarm controller stores the version numbers of the configuration files of the first alarm controller on which it depends, as well as the configuration items and configuration data corresponding to the version numbers, and the configuration data are arranged in sequence according to the update time; or

[0031] The version number of the configuration file currently used by the second fire alarm controller is obtained as the second version number, and the version number of the configuration file used by the second fire alarm controller is the same as the version number of the configuration file of the first control alarm controller on which it depends.

[0032] A second aspect of the present invention provides a synchronization method for a fire alarm controller, comprising:

[0033] Obtaining a first version number of a first fire alarm controller, where the first version number is the version number of a configuration file currently used by the first fire alarm controller, the configuration file including various configuration items and configuration data under various version numbers corresponding to each configuration item, and a configuration file of a second fire alarm controller is currently set to be dependent on the configuration file of the first fire alarm controller;

[0034] Sending the first version number to a second fire alarm controller, the version number corresponding to the configuration file currently used by the second fire alarm controller is the second version number, and the second version number is the version number of the configuration file of the first control alarm controller on which the configuration file currently used by the second fire alarm controller depends;

[0035] When the first version number is different from the second version number, obtaining difference information, the difference information including each configuration item that differs between the first version number and the second version number and configuration data corresponding to each configuration item that differs;

[0036] The difference information is sent to the second fire alarm controller so that the second fire alarm controller stores the difference information in a corresponding configuration file.

[0037] According to the synchronization method as described above, optionally, after sending the first version number to a second fire alarm controller and before obtaining a difference information, it also includes:

[0038] If a first acquisition message sent by the second fire alarm controller is received, an operation of acquiring difference information is triggered, wherein the first acquisition message includes the second version number, and the first acquisition message is generated when the first version number is different from the second version number.

[0039] According to the synchronization method as described above, optionally, obtaining the difference information includes:

[0040] Searching the second version number from the first current version number in the configuration file stored in the self-stored configuration file, arranging the configuration data updated under each version number corresponding to the version number in order according to the update time, and taking the latest updated version number as the current version number;

[0041] The configuration items and configuration data corresponding to each version number that differs between the first version number and the second version number are obtained, and the obtained configuration items and configuration data are used as difference information.

[0042] According to the synchronization method as described above, optionally, obtaining configuration items and configuration data corresponding to each version number that differs between the first version number and the second version number includes:

[0043] Obtain each configuration item and configuration data of each configuration item under the first version number. If the configuration data of a configuration item under the first version number is empty, use the latest configuration data corresponding to the configuration item as the configuration data under the first current version number;

[0044] Obtain each configuration item and configuration data of each configuration item under the second version number. If the configuration data of a configuration item under the second version number is empty, use the latest configuration data corresponding to the configuration item as the configuration data under the second current version number;

[0045] Determine a configuration item having a difference between the first version number and the second version number and configuration data corresponding to the configuration item.

[0046] A third aspect of the present invention provides a synchronization device for a fire alarm controller, comprising:

[0047] A first acquisition unit is used to acquire a first version number of a first fire alarm controller, the first version number being the version number of a configuration file currently used by the first fire alarm controller, and acquire a corresponding second version number of a second fire alarm controller, the second version number being the version number of a configuration file of the first fire alarm controller on which the configuration file currently used by the second fire alarm controller depends, the configuration file including each configuration item and configuration data under each version number corresponding to each configuration item, and the configuration file of the second fire alarm controller is currently set to depend on the configuration file of the first fire alarm controller;

[0048] a second acquisition unit, configured to acquire difference information if it is identified that the first version number is different from the second version number, the difference information including each configuration item that differs between the first version number and the second version number and configuration data corresponding to each configuration item that differs;

[0049] A storage unit is used to store the difference information in a configuration file corresponding to the second fire alarm controller.

[0050] According to the synchronization device as described above, optionally, it further comprises a trigger unit, wherein the trigger unit is used to:

[0051] displaying the first version number and the second version number, and triggering the second acquisition unit if a first synchronization instruction is received, wherein the first synchronization instruction is generated according to the first current version number; or

[0052] Determine whether the update time of the configuration file corresponding to the first version number is later than the update time of the configuration file corresponding to the second version number, and if the determination result is yes, trigger the second acquisition unit.

[0053] According to the synchronization device as described above, optionally, it further includes:

[0054] a judging unit, configured to judge whether the first version number is one of the historical version numbers of the configuration file possessed by the second fire alarm controller;

[0055] If the judgment result is no, the second acquisition unit is triggered.

[0056] According to the synchronization device as described above, optionally, the judgment unit is further used for:

[0057] If the judgment result is yes, the rollback operation of the configuration file corresponding to the second fire alarm controller is triggered to update the second version number of the second fire alarm controller to the first version number.

[0058] According to the synchronization device as described above, optionally, the second acquisition unit is specifically configured to:

[0059] Sending a first acquisition message to the first fire alarm controller, wherein the first acquisition message includes the second version number;

[0060] The difference information sent by the first fire alarm controller is received, where the difference information is generated by the first fire alarm controller according to the stored configuration file corresponding to the first version number and the configuration file corresponding to the second version number.

[0061] According to the synchronization device as described above, optionally, it further comprises a restart unit, which is used to:

[0062] Determine whether the configuration item in the difference information is one of the preset must-restart items, and if the determination result is yes, trigger a restart operation of the second fire alarm controller; or

[0063] The difference information is displayed, and if a second synchronization instruction is received, a restart operation of the second fire alarm controller is triggered, and the second synchronization instruction is generated according to the difference information.

[0064] According to the synchronization device as described above, optionally, it further comprises a verification unit, wherein the verification unit is used to:

[0065] Calculate a target version number based on the configuration items and configuration data in the difference information;

[0066] Determining whether the target version number is the same as the first version number, where the first version number is calculated by the first fire alarm controller according to the modified configuration items and configuration data corresponding to the first version number;

[0067] If the judgment result is yes, the storage unit is triggered.

[0068] According to the synchronization device as described above, optionally, the storage unit is specifically used for:

[0069] adding configuration data corresponding to the configuration items in the difference information to a configuration file of the first fire alarm controller stored in the second fire alarm controller;

[0070] and / or

[0071] The configuration data corresponding to the configuration item in the difference information is added to the configuration item corresponding to the configuration file of the second fire alarm controller.

[0072] A fourth aspect of the present invention provides a synchronization device for a fire alarm controller, comprising:

[0073] a third acquisition unit, configured to acquire a first version number of a first fire alarm controller, the first version number being the version number of a configuration file currently used by the first fire alarm controller, the configuration file comprising configuration items and configuration data under each version number corresponding to each configuration item, and a configuration file of a second fire alarm controller is currently set to be dependent on the configuration file of the first fire alarm controller;

[0074] A first sending unit, used for sending the first version number to a second fire alarm controller, the version number corresponding to the configuration file currently used by the second fire alarm controller is the second version number, and the second version number is the version number of the configuration file of the first control alarm controller on which the configuration file currently used by the second fire alarm controller depends;

[0075] a fourth acquisition unit, configured to acquire difference information when the first version number is different from the second version number, the difference information comprising each configuration item that differs between the first version number and the second version number and configuration data corresponding to each configuration item that differs;

[0076] A second sending unit is used to send the difference information to the second fire alarm controller, so that the second fire alarm controller stores the difference information in a corresponding configuration file.

[0077] According to the synchronization device as described above, optionally, it further includes:

[0078] A receiving unit is used to receive a first acquisition information sent by the second fire alarm controller and trigger the fourth acquisition unit, the first acquisition information includes the second version number, and the first acquisition information is generated when the first version number is different from the second version number.

[0079] According to the synchronization device as described above, optionally, the fourth acquisition unit is specifically configured to:

[0080] Searching the second version number from the first current version number in the configuration file stored in the self-stored configuration file, arranging the configuration data updated under each version number corresponding to the version number in order according to the update time, and taking the latest updated version number as the current version number;

[0081] The configuration items and configuration data corresponding to each version number that differs between the first version number and the second version number are obtained, and the obtained configuration items and configuration data are used as difference information.

[0082] According to the synchronization device as described above, optionally, when the fourth acquisition unit performs the operation of acquiring configuration items and configuration data corresponding to each version number that differs between the first version number and the second version number, it is specifically used to:

[0083] Obtain each configuration item and configuration data of each configuration item under the first version number. If the configuration data of a configuration item under the first version number is empty, use the latest configuration data corresponding to the configuration item as the configuration data under the first current version number;

[0084] Obtain each configuration item and configuration data of each configuration item under the second version number. If the configuration data of a configuration item under the second version number is empty, use the latest configuration data corresponding to the configuration item as the configuration data under the second current version number;

[0085] Determine a configuration item having a difference between the first version number and the second version number and configuration data corresponding to the configuration item.

[0086] A fifth aspect of the present invention provides a fire alarm controller, comprising a synchronization device for a fire alarm controller as described in any one of the third aspects above.

[0087] A sixth aspect of the present invention provides a fire alarm controller, comprising a synchronization device for a fire alarm controller as described in any one of the fourth aspects above.

[0088] A seventh aspect of the present invention is a synchronization device for a fire alarm controller, comprising:

[0089] at least one first memory for storing instructions;

[0090] At least one first processor is configured to execute the synchronization method for a fire alarm controller according to any one of the first aspects described above according to the instructions stored in the first memory.

[0091] An eighth aspect of the present invention is a synchronization device for a fire alarm controller, comprising:

[0092] at least one second memory for storing instructions;

[0093] At least one second processor is used to execute the synchronization method for a fire alarm controller according to any one of the second aspects described above according to the instructions stored in the second memory.

[0094] Through the present invention, when it is identified that the version number of the configuration file of another fire alarm controller that a fire alarm controller depends on is different from the current version number of the configuration file of the other fire alarm controller, the difference information between the two current version numbers is obtained, so that the fire alarm controller only needs to be updated with respect to the difference information, with less update data, which can greatly reduce the time for synchronization of the configuration files and improve efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0095] The preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings so that the above and other features and advantages of the present invention will be more apparent to those skilled in the art. In the accompanying drawings:

[0096] Figure 1 The figure is a flow chart of a synchronization method for a fire alarm controller according to an embodiment of the present invention.

[0097] Figure 2 The figure is a flow chart of a synchronization method for a fire alarm controller according to another embodiment of the present invention.

[0098] Figure 3 The figure is a flow chart of a synchronization method for a fire alarm controller according to another embodiment of the present invention.

[0099] Figure 4 The figure is a flow chart of a synchronization method for a fire alarm controller according to another embodiment of the present invention.

[0100] Figure 5A Schematic diagram of the structure of a synchronization device for a fire alarm controller according to an embodiment of the present invention.

[0101] Figure 5B FIG. 4 is a schematic structural diagram of a synchronization device for a fire alarm controller according to another embodiment of the present invention.

[0102] Fig. 6A The figure is a schematic diagram of the structure of a synchronization device for a fire alarm controller according to another embodiment of the present invention.

[0103] Figure 6B The figure is a schematic structural diagram of a synchronization device for a fire alarm controller according to another embodiment of the present invention.

[0104] Fig. 7A The figure is a schematic diagram of the structure of a synchronization device for a fire alarm controller according to another embodiment of the present invention.

[0105] Figure 7B The figure is a schematic structural diagram of a synchronization device for a fire alarm controller according to another embodiment of the present invention. DETAILED DESCRIPTION

[0106] In order to make the purpose, technical solution and advantages of the present invention more clear, the present invention is further described in detail with reference to the following embodiments. Nouns and pronouns related to people in this patent application are not limited to specific genders.

[0107] Embodiment 1

[0108] This embodiment provides a synchronization method for a fire alarm controller, wherein the execution subject of the synchronization method is a synchronization device for a fire alarm controller, for example, each fire alarm controller has the synchronization device. In this embodiment, the synchronization device as the execution subject can be integrated into the second fire alarm controller.

[0109] like Figure 1 FIG. 1 is a flow chart of a synchronization method for a fire alarm controller according to this embodiment. The synchronization method for a fire alarm controller includes:

[0110] Step 101, obtain a first version number of a first fire alarm controller, the first version number is the version number of the configuration file currently used by the first fire alarm controller, and obtain a second version number corresponding to a second fire alarm controller, the second version number is the version number of the configuration file of the first control alarm controller on which the configuration file currently used by the second fire alarm controller depends.

[0111] In this embodiment, the configuration file of the second fire alarm controller is currently set to be dependent on the configuration file of the first fire alarm controller. That is, the second fire alarm controller needs to adopt the information of the configuration file of the first fire alarm controller.

[0112] The configuration file includes each configuration item and the configuration data under each version number corresponding to each configuration item. The configuration data of a configuration item may be modified multiple times, and each modification corresponds to a version number. The second fire alarm controller needs to obtain the configuration items and configuration data in the configuration file currently used by the first fire alarm controller, and the second fire alarm controller must use the obtained configuration items and configuration data.

[0113] Each configuration file can include multiple configuration items, each of which has corresponding configuration data. If the configuration data has changed, the configuration item will add a changed configuration data, and each configuration data has its own version number. Each update of the configuration file will generate a new version number, and the updated configuration data under the version number will correspond to the version number.

[0114] There are many methods to obtain the first version number. For example, the synchronization device for the fire alarm controller periodically requests the first version number of the first fire alarm controller, or the first fire alarm controller periodically sends its first version number to the synchronization device. It can also be that the first fire alarm controller immediately notifies the synchronization device after the version number of the configuration file currently used by it changes. The specific notification method may be broadcast, or it may be that after the first fire alarm controller is restarted due to the update of the configuration file, it immediately sends the first version number of the updated configuration file to the synchronization device of the second fire alarm controller. The specific setting can be based on actual needs and will not be repeated here.

[0115] There are many methods for obtaining the second version number, such as using the above method, or if the synchronization device is integrated in the second fire alarm controller, it can be directly retrieved locally.

[0116] It should be noted that there are many ways to record the current version number. For example, there is a location specifically recording the current version number of the fire alarm controller, or the latest updated version number can be set as the current version number by default.

[0117] For example, the configuration items of this embodiment are temperature, humidity, smoke, etc., and the configuration data is, for example, 80°C, 0.5dB / m, which means an alarm when the temperature is greater than 80°C, an alarm when the smoke concentration is greater than 0.5dB / m, etc. The specific settings can be made according to actual needs and will not be repeated here.

[0118] More specifically, the configuration file of the second fire alarm controller is currently set to be dependent on the configuration file of the first fire alarm controller, which means that the second fire alarm controller needs to obtain the configuration file of the first fire alarm controller and perform synchronization operations according to actual needs. After the second fire alarm controller obtains the configuration file of the first fire alarm controller, it can be stored in a location specifically for storing the first fire alarm controller, and the configuration items and configuration data in the configuration file of the first fire alarm controller can be updated to its own configuration file. That is, the second fire alarm controller has both its own configuration file and the configuration file of the first fire alarm controller. For example, the second fire alarm controller and the first fire alarm controller belong to the same type of alarm controller, and the environments in which the two fire alarm controllers are located are similar, so the same configuration file can be set for both. If the user needs to modify the configuration files of the two fire alarm controllers, only one of them needs to be modified, and the configuration file of the other fire alarm controller will be automatically synchronized. In addition, the version number of the configuration file of the first fire alarm controller on which the configuration file currently used by the second fire alarm controller depends indicates that, in the case where the configuration file of the second fire alarm controller depends on the first fire alarm controller, the configuration file currently used by the second fire alarm controller corresponds to the version number of the configuration file of the first alarm controller, and the version number of the configuration file of the second fire alarm controller may be the same as or different from the version number of the configuration file of the first alarm controller. In the case where the version number of the configuration file of the second fire alarm controller is different from the version number of the first configuration file on which it depends, the version number of the configuration file of the first fire alarm controller stored in the second fire alarm controller may be used as the second version number. Normally, the version number of the configuration file of the first fire alarm controller that has been most recently updated and stored in the second fire alarm controller may be used as the second version number.

[0119] The first fire alarm controller has a configuration file related to the first fire alarm controller stored in the second fire alarm controller. As an exemplary explanation, if the configuration file of the second fire alarm controller has always been dependent on the first fire alarm controller, the first fire alarm controller may have all the information of the configuration file of the first fire alarm controller stored in the second fire alarm controller, such as the configuration file corresponding to each version number and the configuration file corresponding to each historical version number; or, the second fire alarm controller depends on the first fire alarm controller at a certain stage, and then depends on another fire alarm controller, and then is modified to depend on the first fire alarm controller, then when it depends on another fire alarm controller, the second fire alarm controller lacks the information of the configuration file of the first fire alarm controller during this period, so the first fire alarm controller has all its own version information, and also has the configuration file related to the first fire alarm controller stored in the second fire alarm controller. How to set the object that the configuration file of the second fire alarm controller needs to depend on can be set according to actual needs, and will not be repeated here. It should be noted that for the second fire alarm controller, it can directly adopt the version number of the configuration file of the first fire alarm controller on which it depends, or it can copy the configuration file of the first fire alarm controller on which it depends to its own configuration file and assign a version number of its own according to preset rules. The specific setting can be based on actual needs and will not be repeated here.

[0120] Step 102: if it is identified that the first version number is different from the second version number, then a difference information is obtained, the difference information including each configuration item that differs between the first version number and the second version number and configuration data corresponding to each configuration item that differs.

[0121] The difference information refers to the different information between the configuration files corresponding to the two version numbers. For example, compared with the configuration file corresponding to the second version number, the configuration file corresponding to the first version number has one more configuration item and the configuration data corresponding to the configuration item, then the configuration item and the configuration data are the difference information; compared with the configuration file corresponding to the first version number and the configuration file corresponding to the second version number, the configuration data of one configuration item is modified, then the configuration item and the modified configuration data are the difference information.

[0122] The difference information may be provided by the first fire alarm controller. Specifically, the synchronization device may send an acquisition instruction to the first fire alarm controller to acquire the difference information.

[0123] Step 103: Store the difference information in a configuration file corresponding to the second fire alarm controller.

[0124] After receiving the difference information, the synchronization device stores the difference information in the configuration file of the second fire alarm controller. For example, the difference information is stored in the configuration file of the first fire alarm controller stored in the second fire alarm controller, and at the same time, according to the identifier of the configuration item, the configuration data in the difference information is added to the configuration item corresponding to the configuration file of the second fire alarm controller, and the version number corresponding to the added configuration data is stored accordingly. In other words, the configuration file corresponding to the second fire alarm controller can be the configuration file of other fire alarm controllers stored in it, such as the configuration file of the fire alarm controller currently relied on, or the configuration file of the second fire alarm controller itself, or both configuration files can be included at the same time, which can be selected according to actual needs and will not be described in detail here.

[0125] There are many ways to implement the configuration file, such as an Excel table, as shown in Table 1, with configuration items listed horizontally and version numbers listed vertically. Compared with the configuration file with version number V1, the temperature corresponding to 85°C in the configuration file with version number V2 is the configuration data in the difference information. The configuration items and configuration data in version V0 are the initial setting values.

[0126] Table 1

[0127]

[0128]

[0129] It should be noted that step 103 may specifically be:

[0130] Add the configuration data corresponding to the configuration items in the difference information to the configuration file of the first fire alarm controller stored in the second fire alarm controller; and / or add the configuration data corresponding to the configuration items in the difference information to the configuration items corresponding to the configuration file of the second fire alarm controller.

[0131] For example, when the version number of the configuration file of the first fire alarm controller and the version number of the configuration file of the second fire alarm controller use different naming rules, the configuration data of the updated configuration items need to be synchronously updated to the configuration file of the second fire alarm controller and / or the configuration file of the first fire alarm controller stored by the second fire alarm controller. The information of the configuration file of the first fire alarm controller that is dependent is stored separately, which is convenient for searching and does not affect the configuration file of the second fire alarm controller. In this case, the version number of the configuration file of the first control alarm controller that the configuration file currently used by the second fire alarm controller depends on can be used as the default, that is, the latest updated version number of the first control alarm controller stored by the second fire alarm controller.

[0132] In addition, whether the difference information is stored in the configuration file of the second fire alarm controller can also be selected according to actual needs. For example, if the configuration data is a non-restart item, it may not be stored in the configuration file of the second fire alarm controller. Of course, the difference information can also be displayed. It is up to the user to decide whether to store the difference information in the configuration file of the second fire alarm controller.

[0133] Optionally, the version numbers in the fire alarm controller of this embodiment are all calculated through configuration items and corresponding configuration data, for example, using a hash algorithm to calculate, and the calculated result is used as the version number.

[0134] Therefore, after step 102 and before step 103, the following may be further included:

[0135] Calculate a target version number based on the configuration items and configuration data in the difference information;

[0136] Determine whether the target version number is the same as the first version number, where the first version number is calculated by the first fire alarm controller according to the modified configuration items and configuration data corresponding to the first version number;

[0137] If the judgment result is yes, the operation of storing the difference information in the configuration file corresponding to the second fire alarm controller is executed.

[0138] This step is used to verify the received difference information. For example, a hash algorithm is used to calculate a hash value based on the configuration items and configuration data, and the hash value is used as the target version number. Similarly, the first version number of the first fire alarm controller of this embodiment is also calculated based on the modified configuration items and configuration data, so the target version number can be compared with the first version number. If the two are the same, it means that the received difference information is correct, which can avoid hacker attacks or data transmission errors, and ensure the correctness of the configuration file.

[0139] Step 103 can be regarded as the meaning of synchronization of the present invention, that is, making the configuration files of the two fire alarm controllers the same. Optionally, after step 103, a restart operation can also be included to make the updated configuration file take effect. That is, after step 103, it also includes: determining whether the configuration item in the difference information is one of the preset must-restart items. If the determination result is yes, triggering the restart operation of the second fire alarm controller. The preset must-restart item can be set according to the actual needs of the user, such as sensitivity and smoke concentration. When the configuration data of the must-restart item is modified, the second fire alarm controller needs to be restarted to make the updated configuration file take effect, that is, to adopt the updated configuration data. By comparing with the preset must-restart item, it can be determined whether to restart according to the actual situation to save time; or

[0140] After step 103, the method further includes: displaying the difference information, and triggering a restart operation of the second fire alarm controller if a second synchronization instruction is received, wherein the second synchronization instruction is generated based on the difference information. The synchronization device displays the difference information so that the user can decide whether to restart. For example, if the difference information is a change in temperature or sensitivity, the user can decide that a restart is necessary to make the updated configuration file effective. If the difference information is a change in the administrator information of the first fire alarm controller, the user can decide that a restart is not necessary. The user decides whether to restart based on the displayed difference information to make the updated configuration data effective, which gives the user a certain degree of autonomy.

[0141] In this embodiment, when it is identified that the version number of the configuration file of another fire alarm controller that a fire alarm controller depends on is different from the current version number of the configuration file of the other fire alarm controller, the difference information between the two current version numbers is obtained, so that the fire alarm controller only needs to be updated with respect to the difference information, with less updated data, which can greatly reduce the time for synchronization of the configuration files and improve efficiency.

[0142] Embodiment 2

[0143] This embodiment further supplements the synchronization method for the fire alarm controller of the first embodiment. This embodiment mainly explains how to trigger the operation of obtaining the difference information.

[0144] In this embodiment, after identifying that the first version number is different from the second version number and before obtaining the difference information, any of the following methods may be used to determine whether to trigger the operation of obtaining the difference information:

[0145] Method 1: Display the first version number and the second version number;

[0146] If a first synchronization instruction is received, an operation of obtaining difference information is performed, and the first synchronization instruction is generated according to the first current version number.

[0147] The synchronization device can display the first version number and the second version number on the screen to let the user know that the version number of the configuration file of the first fire alarm controller currently used by the second fire alarm controller is different from the version number of the configuration file currently used by the first fire alarm controller, so that the user can determine whether synchronization is required according to actual needs. For example, if the user decides to synchronize the configuration file corresponding to the second fire alarm controller with the first fire alarm controller, the first version number can be selected, and the first synchronization instruction can be generated accordingly; otherwise, the second version number can be selected, or the selection opportunity can be cancelled, and the synchronization device will not receive the first synchronization instruction.

[0148] By adopting the first method, the user can choose whether to trigger the operation of obtaining difference information according to actual needs, so as to prepare for subsequent synchronization operations, which is more flexible and more practical.

[0149] Method 2: determining whether the update time of the configuration file corresponding to the first version number is later than the update time of the configuration file corresponding to the second version number; if the determination result is yes, performing an operation of obtaining difference information.

[0150] For example, the lower the version number, the earlier the update time of the corresponding configuration file, and the higher the version number, the later the update time of the corresponding configuration file. The version number can be represented by a number, the smaller the number, the lower the version number, and the larger the number, the higher the version number, or the version number with the later update time can be determined according to the arrangement order of the version numbers in the configuration file.

[0151] Generally speaking, the higher the version number, the more powerful its function is, or the closer it is to the configuration that the user currently wants, so the user does not need to make a choice by himself, and can directly determine whether to trigger the operation of obtaining difference information based on the version number, so as to prepare for subsequent synchronization operations, saving manpower. In some cases, the user may lower the version number of the configuration file of the first fire alarm controller according to some needs, and at this time, the second fire alarm controller does not need to be synchronized.

[0152] Alternatively, there is a method A:

[0153] It is determined whether the first version number is one of the historical version numbers of the configuration file corresponding to the second fire alarm controller. If the determination result is no, an operation of obtaining difference information according to the first synchronization instruction is executed.

[0154] If the first version number is one of the historical version numbers of the configuration file corresponding to the second fire alarm controller, it means that the second fire alarm controller already has the difference information and does not need to obtain it again. A rollback operation of the configuration file corresponding to the second fire alarm controller can be triggered to update the second version number corresponding to the second fire alarm controller to the first version number. In the case where the current version number of the configuration file defaults to the latest updated version number, a rollback operation occurs, and the configuration data corresponding to all version numbers after the first version number stored can be deleted.

[0155] For method A, it can also be triggered after receiving a first synchronization instruction in method one, or it can be triggered after the determination result of method two is yes. Executing the above operation of determining whether it is a historical version number can avoid repeated acquisition of difference information and improve synchronization efficiency.

[0156] Embodiment 3

[0157] This embodiment further supplements the synchronization method for the fire alarm controller of the signed embodiment.

[0158] like Figure 2 FIG. 2 is a flow chart of a synchronization method for a fire alarm controller according to the present embodiment. The synchronization method for a fire alarm controller includes:

[0159] Step 201, obtain a first version number of a first fire alarm controller, the first version number is the version number of the configuration file currently used by the first fire alarm controller, and obtain a corresponding second version number of a second fire alarm controller, the second version number is the version number of the configuration file of the first control alarm controller on which the configuration file currently used by the second fire alarm controller depends, and execute step 202.

[0160] The configuration file includes various configuration items and various configuration data corresponding to each configuration item. Each configuration data corresponds to a version number. The configuration file of the second fire alarm controller is currently set to be dependent on the configuration file of the first fire alarm controller.

[0161] This step is the same as step 101 and will not be described again here.

[0162] Step 202: If it is identified that the first version number is different from the second version number of the configuration file of a second fire alarm controller, a first acquisition message is sent to the first fire alarm controller, the first acquisition message includes the second version number, and step 203 is executed.

[0163] The first acquisition information is used to acquire the difference information, and the first acquisition information includes the second version number. Thus, after receiving the first acquisition information, the first fire alarm can determine the difference information according to the second version number.

[0164] Optionally, after identifying that the first version number is different from the second version number and before sending a first acquisition message to the first fire alarm controller, the operations of method 1, method 2 and method A in embodiment 2 may also be performed, which will not be repeated here.

[0165] Step 203 , receiving difference information sent by the first fire alarm controller, the difference information is generated by the first fire alarm controller according to the configuration file corresponding to the first version number and the configuration file corresponding to the second version number stored, and executing step 204 .

[0166] The first fire alarm controller can search for the configuration items corresponding to the second version number and the configuration data corresponding to each configuration item stored in itself according to the second version number, and compare them with the configuration file corresponding to the first version number to obtain the difference information between the two version numbers.

[0167] If the first version number and the second version number are not adjacent version numbers, and there are other version numbers interspersed between them, it is necessary to find the different configuration items and configuration data between the configuration files corresponding to each other version number and the configuration files corresponding to the second version number, and send this information as difference information to the second fire alarm controller.

[0168] Step 204 , store the difference information in the configuration file corresponding to the second fire alarm controller, and execute step 205 .

[0169] This step may specifically be, according to each configuration item in the difference information, adding the configuration data in the difference information to the corresponding configuration item in the configuration file of the second fire alarm controller, saving the version number corresponding to the configuration data, and adding the configuration data in the difference information to the corresponding configuration item in the configuration file of the first fire alarm controller stored in the second fire alarm controller.

[0170] Step 205, determine whether it is necessary to trigger a restart operation of the second fire alarm controller; if the determination result is yes, execute step 206, otherwise execute step 207.

[0171] Next, the second fire alarm controller can be restarted according to actual needs to make the synchronized difference information effective. For example, it is determined whether the configuration item in the difference information is one of the preset must-restart items. If the determination result is yes, the restart operation of the second fire alarm controller is triggered. In this way, the synchronization device automatically determines the restart operation, and the restart can be performed directly, freeing the user's hands.

[0172] Alternatively, step 205 specifically displays the difference information. If a second synchronization instruction is received, the restart operation of the second fire alarm controller is triggered. The second synchronization instruction is generated according to the difference information. After receiving the difference information, the synchronization device can display the difference information on the screen. The user can judge whether it is necessary to restart the second fire alarm controller. If a restart is required, the user can click the corresponding button to send the second synchronization instruction. After receiving the second synchronization instruction, the synchronization device restarts. In this way, the user can judge whether a restart is required in real time according to the current situation, giving the user a great deal of autonomy.

[0173] Step 206, triggering the second fire alarm controller to restart.

[0174] Step 207, end.

[0175] Assuming that the current version number of the configuration file of the first fire alarm controller is V3, and the version number of the latest configuration file of the first fire alarm controller stored in the second fire alarm controller is V2, the configuration item included in the difference information is smoke density, the configuration data is 0.7dB / m, and the corresponding version number is V3, then the information in Table 1 is updated to Table 2, that is, the configuration data and the corresponding version number are added to the configuration item of smoke density, and the difference information is synchronously updated to the configuration file of the first fire alarm controller and the configuration file of the second fire alarm controller stored in the second fire alarm controller. At this time, the latest version number of the configuration file of the first fire alarm controller stored in the second fire alarm controller is V3. Restart the second fire alarm controller to make the configuration file corresponding to V3 take effect.

[0176] Table 2

[0177]

[0178]

[0179] According to this embodiment, it can be determined whether a synchronization operation is required based on the difference information. Since the synchronization operation is often accompanied by a restart operation, unnecessary restarts can be avoided when the synchronization difference information is not required, thereby improving the user experience.

[0180] Embodiment 3

[0181] This embodiment specifically illustrates the synchronization method for the fire alarm controller of the above embodiment.

[0182] Suppose there are three fire alarm controllers in the same building, namely A, B, and C. Each fire alarm controller has a synchronization device for the fire alarm controller. For the convenience of description, the operation of the synchronization device in each alarm controller is replaced by the identification of the alarm controller. In 2021, A's configuration file depends on B's configuration file, the naming rule of A's configuration file is independent of the naming rule of B's ​​configuration file, and C's configuration file does not depend on A or B's configuration files. The preset items that must be synchronized are temperature, smoke concentration, and sensitivity. For the current version number of the configuration file of the fire alarm controller, this embodiment defaults to the latest version number as the current version number. In addition, the initial configuration files of A, B, and C have the same information and the same version number.

[0183] A stores information about B's configuration file. A can update the information about B's configuration file obtained to its own configuration file. In order to simplify the description, this embodiment does not show A's own configuration file. The following description uses the version number of B's ​​configuration file stored in A as the second version number corresponding to A. B's configuration file in A and B's own configuration file have the same default configuration items and configuration data, and their default version number is V0, as shown in Table 3.

[0184] Table 3

[0185]

[0186]

[0187] The user changes the smoke density to 0.65dB / m. B generates version number Y065 using the hash algorithm based on the smoke density configuration item and the configuration data 0.65dB / m, as shown in Table 4. For the configuration file with version number Y065, the temperature is 80℃, the smoke density is 0.65dB / m, the sensitivity is medium, and the user name is Hong. That is to say, for a version number, if it is found that its configuration item has no data, it will search for the previous version until the latest updated configuration data is found.

[0188] Table 4

[0189]

[0190] Then B informs A and C of its latest first version number Y065 in the form of broadcast.

[0191] After A receives the current version number Y065 sent by B, it compares it with the version number V0 of B's ​​configuration file currently used by itself. If it finds that the two are different, it will display A's corresponding current version number V0 and B's current version number Y065.

[0192] The user selects B's current version number Y065, and A obtains the difference information between the two version numbers. Specifically, A sends a first acquisition message to B, and the first acquisition message includes A's corresponding current version number V0. After receiving the first acquisition message, B compares the difference between version numbers V0 and Y065, and obtains the difference information that the configuration item is smoke density and the configuration data is 0.65dB / m, which can be expressed as "smoke density, 0.65dB / m", and sends the difference information to A. Of course, the difference information can also include the version number corresponding to the configuration data, such as "smoke density, 0.65dB / m, Y065", which can be set according to actual needs and will not be repeated here.

[0193] After A obtains the difference information, it calculates the target version number Y065 through the hash algorithm based on the smoke concentration and 0.65dB / m, and then compares the target version number with the first version number sent by B. It is found that the two are consistent and the verification is passed. Then the smoke concentration of B's ​​configuration file stored in A is increased by 0.65dB / m, and the 0.65dB / m corresponds to the version number Y065. After the configuration file stored in A is updated, it is the same as Table 4, and the version number of the configuration file currently used is Y065. In addition, A will also increase the smoke concentration of A's own configuration file by 0.65dB / m. This smoke concentration is a must-restart item, and A restarts to make the updated configuration file of A take effect.

[0194] Next, the user changes B's configuration file again, this time changing the user name in B's configuration file, as shown in Table 5. B generates the latest version number YHMLi of the configuration file using a hash algorithm based on the configuration item of the user name and the configuration data Li.

[0195] Table 5

[0196]

[0197] B uses broadcasting to send the current version number YHMLi of its configuration file to A and C. A obtains the current version number of B's ​​configuration file, and compares it with the latest updated version number Y065 of B stored in itself. If it recognizes that the two version numbers are different, it will display the two version numbers Y065 and YHMLi to the user. If the user selects B's version number YHMLi, A will send a first acquisition message to B, which includes the latest version number Y065 of B's ​​configuration file in A. B sends the difference information "user name, Li" to A. After receiving the difference information, A first uses a hash algorithm to calculate the target version number, and compares the target version number with YHMLi. If it is found that the two are consistent, "Li" is added to the user name in Table 4 of B's ​​configuration file stored in A, and the version number YHMLi is assigned accordingly. The version number of B's ​​configuration file currently corresponding to A is also YHMLi. At the same time, A will also update the difference information to its own configuration file. In addition, it is also determined that the user name is not a must-restart item, so there is no need to restart A.

[0198] In the following year 2021, it is set that the configuration file of C depends on the configuration file of B. At this time, the configuration file of B is as shown in Table 5, and the configuration file of B stored in C is as shown in Table 3.

[0199] After the setting is successful, B sends its current version number YHMLi to C. After C obtains B's current version number, it compares it with B's latest version number V0 stored in C. If they are different, the two version numbers are displayed. The user selects the version number YHMLi. After C receives the first instruction, it sends the first acquisition information to B, which includes C's current version number V0.

[0200] B compares the difference between the configuration files corresponding to version number V0 and version number YHMLi, which are separated by a version number Y065. Therefore, B can choose to send version number Y065 and the corresponding difference information "smoke concentration, 0.65dB / m" to C first, and then send the difference information "user name, Li" corresponding to version number YHMLi to C. Of course, the difference information corresponding to the two version numbers can also be sent to C at the same time. It is only necessary to indicate the difference items and difference data corresponding to each version number in the difference information, and it can also include the update time, or sort the difference items and difference data corresponding to the two version numbers according to the update time, such as "smoke concentration, 0.65dB / m; user name, Li". After receiving the difference information, C calculates the two version numbers respectively. After the version number verification is passed, the information of the two version numbers is stored in B's configuration file in C and C's own configuration file. At this time, the version number of B in C is updated to YHMLi. C recognizes that there is a configuration item in the difference information that is one of the preset must-restart items, and then restarts to make C's updated configuration file take effect.

[0201] Embodiment 4

[0202] This embodiment provides a synchronization method for a fire alarm controller. The synchronization method is performed by a synchronization device for a fire alarm controller. The synchronization device can be integrated into a fire alarm controller, such as the first fire alarm controller described below.

[0203] like Figure 3 FIG. 1 is a flow chart of a synchronization method for a fire alarm controller according to this embodiment. The synchronization method for a fire alarm controller includes:

[0204] Step 301: Obtain a first version number of a configuration file of a first fire alarm controller, wherein the configuration file includes various configuration items and configuration data under various version numbers corresponding to each configuration item.

[0205] Each configuration data corresponds to a version number, and a configuration file of a second fire alarm controller is currently set to be dependent on the configuration file of the first fire alarm controller. The fact that the configuration file of the second fire alarm controller is currently set to be dependent on the configuration file of the first fire alarm controller can be understood as follows: the configuration file adopted by the second fire alarm controller must be the same as the configuration file of the first fire alarm controller. Specifically, the second fire alarm controller can locally store the configuration file of the first fire alarm controller, and synchronize the update information of the configuration file of the first fire alarm controller to its own configuration file. Of course, the second fire alarm controller can also directly use the configuration file of the first fire alarm controller as its own configuration file. In this case, the configuration items, configuration data and version numbers of the two alarm controllers are the same.

[0206] The meanings of the configuration items and configuration data in this embodiment are the same as those in the previous embodiment and will not be repeated here.

[0207] Step 302, sending a first version number to a second fire alarm controller, the version number corresponding to the configuration file currently used by the second fire alarm controller is the second version number, and the second version number is the version number of the configuration file of the first control alarm controller on which the configuration file currently used by the second fire alarm controller depends.

[0208] For example, there are many methods to obtain the first version number. For example, the synchronization device for the fire alarm controller periodically requests the first version number of the first fire alarm controller, or the first fire alarm controller periodically sends its first version number to the synchronization device. It can also be that the first fire alarm controller immediately notifies the synchronization device after the version number of the configuration file currently used by it changes. The specific notification method may be broadcast, or it may be that the first fire alarm controller immediately sends the first version number of the updated configuration file to the second fire alarm controller after the first fire alarm controller restarts due to the update of the configuration file. The specific setting can be based on actual needs and will not be repeated here.

[0209] Step 303: when the first version number is different from the second version number of the configuration file of the second fire alarm controller, obtain difference information.

[0210] The difference information includes each configuration item that differs between the first version number and the second version number and configuration data corresponding to each configuration item.

[0211] The difference information refers to the different information between the two version numbers. For example, compared with the configuration file corresponding to the second version number, the configuration file corresponding to the first version number has one more configuration item and the configuration data corresponding to the configuration item, then the configuration item and the configuration data are the difference information; compared with the configuration file corresponding to the second version number, one configuration item in the configuration file corresponding to the first version number has its configuration data modified, then the configuration item and the modified configuration data are the difference information.

[0212] As an example, the configuration data corresponding to each version number is arranged in order according to the update time, and the latest updated version number is the current version number. In the case of obtaining the configuration items and corresponding configuration data under a certain version number, each configuration item can be traversed and the configuration data of the configuration item under the version number can be obtained. If the configuration data under the version number is empty, the latest updated configuration data is searched forward as the configuration data under the version number.

[0213] Step 304: Send the difference information to the second fire alarm controller so that the second fire alarm controller stores the difference information in a corresponding configuration file.

[0214] For example, the second fire alarm controller stores the difference information in the local configuration file of the first fire alarm controller, and according to the user's choice, the second fire alarm controller can add the configuration data in the difference information to the configuration item corresponding to the configuration item of the configuration file of the second fire alarm controller according to the configuration item, and store the version number corresponding to the added configuration data accordingly.

[0215] In this embodiment, when it is identified that the version number of the configuration file of another fire alarm controller that a fire alarm controller depends on is different from the current version number of the configuration file of the other fire alarm controller, the difference information between the two current version numbers is obtained, so that the fire alarm controller only needs to be updated with respect to the difference information, with less updated data, which can greatly reduce the time for synchronization of the configuration files and improve efficiency.

[0216] Embodiment 5

[0217] This embodiment further supplements the synchronization method for the fire alarm controller of the fourth embodiment.

[0218] like Figure 4 FIG. 1 is a flow chart of a synchronization method for a fire alarm controller according to this embodiment. The synchronization method for a fire alarm controller includes:

[0219] Step 401: Obtain a first version number of a configuration file of a first fire alarm controller, wherein the configuration file includes various configuration items and various configuration data corresponding to each configuration item.

[0220] Step 401 is the same as step 301 and will not be described again.

[0221] Step 402: Send a first version number to a second fire alarm controller, and the version number corresponding to the configuration file currently used by the second fire alarm controller is a second version number.

[0222] The second version number is the version number of the configuration file of the first control alarm controller on which the configuration file currently used by the second fire alarm controller depends. This step is consistent with step 302 and will not be repeated here.

[0223] Step 403: Receive a first acquisition message sent by the second fire alarm controller, wherein the first acquisition message includes a second version number, and the first acquisition message is generated when the first version number is different from the second version number.

[0224] After receiving the first version number, the second fire alarm controller compares it with the second version number of the configuration file of the first fire alarm controller currently used. If the two are found to be different, the first acquisition information can be sent according to the user's choice or according to preset rules.

[0225] Step 404, search for the second version number from the first current version number in the historical information stored in itself, arrange the configuration data corresponding to each version number in order according to the update time, and use the latest updated version number as the current version number.

[0226] For each fire alarm controller configuration file, it can be presented in a list format. For example, the configuration data corresponding to each version number is listed in order according to the update time. If the configuration data of a configuration item corresponding to a version number is empty, the configuration data of the configuration item is searched forward until the configuration data is found, and the configuration data is used as the configuration data of the configuration item corresponding to the current version number.

[0227] As shown in Table 6, the first version number of the configuration file currently used by the first fire alarm controller is YHMLi, and the second version number is Y065. The configuration items under YHMLi are: temperature, smoke density, sensitivity, user name, user position, and the corresponding configuration data are: 80℃, 0.65dB / m, high, Li, manager. The configuration items under Y065 are: temperature, smoke density, sensitivity, user name, and the corresponding configuration data are: 80℃, 0.65dB / m, medium, Hong.

[0228] Table 6

[0229]

[0230]

[0231] Step 405: obtain configuration items and configuration data corresponding to each version that differs from the second version number and the first version number, and use the obtained configuration items and configuration data as difference information.

[0232] This step may specifically include:

[0233] Get the configuration data of each configuration item under the first version number. The configuration item is the modified configuration item under the first current version number. If the configuration data of a configuration item under the first version number is empty, use the latest configuration data corresponding to the configuration item as the configuration data under the first current version number.

[0234] Get the configuration data of each configuration item under the second version number. The configuration item is the modified configuration item under the second current version number. If the configuration data of a configuration item under the second version number is empty, use the latest configuration data corresponding to the configuration item as the configuration data under the second current version number.

[0235] Determine a configuration item having a difference between the first version number and the second version number and configuration data corresponding to the configuration item.

[0236] The determined configuration direction and the corresponding configuration data are the difference information. For Table 6, the configuration items that differ between the first version number YHMLi and the second version number Y065 are sensitivity, user name, and user position, and the corresponding configuration data are: high, Li, and manager.

[0237] Thus, the difference information may be "sensitivity, high", "account name, Li", and "user position, manager".

[0238] Step 406: Send the difference information to the second fire alarm controller so that the second fire alarm controller stores the difference information in a corresponding configuration file.

[0239] As an example, the second fire alarm controller adds the configuration data in the difference information to the configuration item corresponding to the configuration file of the first fire alarm controller stored locally on the second fire alarm controller according to the identifier of each configuration item in the difference information, saves the version number corresponding to the configuration data, and adds the configuration data in the difference information to the second fire alarm controller's own configuration file.

[0240] According to this embodiment, the list-like configuration file makes it easy to search for difference information, which is convenient, fast and efficient.

[0241] Embodiment 6

[0242] This embodiment provides a synchronization device for a fire alarm controller, which is used to execute the synchronization method for a fire alarm controller of Embodiment 1. The synchronization device for a fire alarm controller can be integrated into a fire alarm controller, such as the second fire alarm controller described below.

[0243] like Figure 5A , which is a schematic diagram of the structure of a synchronization device for a fire alarm controller according to this embodiment. The synchronization device for a fire alarm controller comprises a first acquisition unit 501 , a second acquisition unit 502 and a storage unit 503 .

[0244] Among them, the first acquisition unit 501 is used to obtain a first version number of a first fire alarm controller, the first version number is the version number of the configuration file currently used by the first fire alarm controller, and is used to obtain a corresponding second version number of a second fire alarm controller, the second version number is the version number of the configuration file of the first control alarm controller on which the configuration file currently used by the second fire alarm controller depends, the configuration file includes each configuration item and the configuration data under each version number corresponding to each configuration item, and the configuration file of the second fire alarm controller is currently set to depend on the configuration file of the first fire alarm controller; the second acquisition unit 502 is used to obtain a difference information if it is identified that the first version number is different from the second version number, the difference information includes each configuration item that differs between the first version number and the second version number and the configuration data corresponding to each configuration item that differs; the storage unit 503 is used to store the difference information in the configuration file corresponding to the second fire alarm controller.

[0245] Optionally, the second acquiring unit 502 is specifically configured to:

[0246] Sending a first acquisition message to the first fire alarm controller, wherein the first acquisition message includes the second version number;

[0247] The difference information sent by the first fire alarm controller is received, where the difference information is generated by the first fire alarm controller according to a configuration file corresponding to the first version number and a configuration file corresponding to the second version number that are stored.

[0248] Alternatively, if Figure 5B As shown, the synchronization device of this embodiment further includes a restart unit 504, which is used to trigger the restart of the second fire alarm controller so that its updated configuration file can take effect. Specifically, the restart unit 504 is used to:

[0249] Determine whether the configuration item in the difference information is one of the preset must-restart items, and if the determination result is yes, trigger a restart operation of the second fire alarm controller; or

[0250] The difference information is displayed, and if a second synchronization instruction is received, a restart operation of the second fire alarm controller is triggered, and the second synchronization instruction is generated based on the difference information.

[0251] Alternatively, if Figure 5B As shown, the synchronization device of this embodiment further includes a verification unit 505, and the verification unit 505 is used to:

[0252] Calculate a target version number based on the configuration items and configuration data in the difference information;

[0253] Determine whether the target version number is the same as the first version number, where the first version number is calculated by the first fire alarm controller according to the modified configuration items and configuration data corresponding to the first version number;

[0254] If the determination result is yes, the storage unit 503 is triggered.

[0255] Optionally, the storage unit 503 is specifically used for:

[0256] adding configuration data corresponding to the configuration items in the difference information to the configuration file of the first fire alarm controller stored in the second fire alarm controller;

[0257] and / or

[0258] The configuration data corresponding to the configuration item in the difference information is added to the configuration item corresponding to the configuration file of the second fire alarm controller.

[0259] The working methods of each unit in this embodiment are the same as those in the previous embodiment and will not be described again here.

[0260] The synchronization device in this embodiment, when identifying that the version number of the configuration file of another fire alarm controller that a fire alarm controller depends on is different from the current version number of the configuration file of the other fire alarm controller, obtains the difference information between the two current version numbers. In this way, the fire alarm controller only needs to be updated with respect to the difference information, with less update data, which can greatly reduce the time for synchronization of the configuration files and improve efficiency.

[0261] Embodiment 7

[0262] This embodiment further supplements the synchronizing device for a fire alarm controller of the sixth embodiment.

[0263] like Fig. 6A As shown, the synchronization device for the fire alarm controller of this embodiment further includes a trigger unit 601, and the trigger unit 601 is used to:

[0264] Display the first version number and the second version number, and trigger the second acquisition unit 502 if a first synchronization instruction is received, wherein the first synchronization instruction is generated according to the first current version number; or

[0265] It is determined whether the update time of the configuration file corresponding to the first version number is later than the update time of the configuration file corresponding to the second version number. If the determination result is yes, the second acquisition unit 502 is triggered.

[0266] Alternatively, if Figure 6B As shown, the synchronization device for the fire alarm controller of this embodiment also includes a judgment unit 602, which is used to judge whether the first version number is one of the historical version numbers of the configuration file of the second fire alarm controller. If the judgment result is no, the second acquisition unit 502 is triggered.

[0267] Optionally, the judgment unit 602 is further used to: if the judgment result is yes, trigger a rollback operation of the configuration file corresponding to the second fire alarm controller to update the second version number of the second fire alarm controller to the first version number.

[0268] Of course, there is also a situation where the trigger unit 601 and the judgment unit 602 exist at the same time. In this case, the trigger unit 601 can trigger the judgment unit 602 after receiving the first synchronization instruction or determining whether the update time of the configuration file corresponding to the first version number is later than the update time of the configuration file corresponding to the second version number.

[0269] The working methods of each unit in this embodiment are the same as those in the previous embodiment and will not be described again here.

[0270] This embodiment shows several forms of triggering the operation of obtaining difference information, which can be selected by the user, which is more flexible, or the synchronization device can make its own judgment, which saves manpower.

[0271] Embodiment 8

[0272] This embodiment provides a synchronization device for a fire alarm controller, which is used to execute the synchronization method for a fire alarm controller of Embodiment 4 and Embodiment 5. The synchronization device of this embodiment can be integrated into a fire alarm controller, for example, integrated into the first fire alarm controller described below.

[0273] like Fig. 7A , which is a schematic diagram of the structure of the synchronization device for the fire alarm controller according to this embodiment, comprises a third acquisition unit 701 , a first sending unit 702 , a fourth acquisition unit 703 and a second sending unit 704 .

[0274] Among them, the third acquisition unit 701 is used to obtain a first version number of a first fire alarm controller, the first version number is the version number of the configuration file currently used by the first fire alarm controller, the configuration file includes various configuration items and configuration data under each version number corresponding to each configuration item, and the configuration file of a second fire alarm controller is currently set to depend on the configuration file of the first fire alarm controller; the first sending unit 702 is used to send the first version number to a second fire alarm controller, the version number corresponding to the configuration file currently used by the second fire alarm controller is the second version number, and the second version number is the version number of the configuration file of the first control alarm controller on which the configuration file currently used by the second fire alarm controller depends; the fourth acquisition unit 703 is used to obtain difference information when the first version number is different from the second version number, the difference information includes various configuration items that differ between the first version number and the second version number and the configuration data corresponding to each of the different configuration items; the second sending unit 704 is used to send difference information to the second fire alarm controller, so that the second fire alarm controller stores the difference information in the corresponding configuration file.

[0275] Alternatively, if Figure 7B As shown, the synchronization device for a fire alarm controller of this embodiment also includes a receiving unit 705, which is used to receive a first acquisition information sent by a second fire alarm controller and trigger a fourth acquisition unit 703. The first acquisition information includes a second version number, and the first acquisition information is generated when the first version number is different from the second version number.

[0276] Optionally, the fourth acquiring unit 703 is specifically configured to:

[0277] In the configuration file stored in itself, the second version number is searched forward from the first current version number, and the configuration data updated under each version number corresponding to the version number is arranged in order according to the update time, and the latest updated version number is used as the current version number;

[0278] Configuration items and configuration data corresponding to each version number that differs between the first version number and the second version number are obtained, and the obtained configuration items and configuration data are used as difference information.

[0279] As an exemplary explanation, more specifically, when the fourth obtaining unit 703 performs the operation of obtaining configuration items and configuration data corresponding to each version number that differs between the first version number and the second version number, it is specifically used to:

[0280] Get each configuration item and configuration data under the first version number. If the configuration data of a configuration item under the first version number is empty, use the latest configuration data corresponding to the configuration item as the configuration data under the first current version number.

[0281] Obtain each configuration item and configuration data under the second version number. If the configuration data of a configuration item under the second version number is empty, use the latest configuration data corresponding to the configuration item as the configuration data under the second current version number;

[0282] Determine a configuration item having a difference between the first version number and the second version number and configuration data corresponding to the configuration item.

[0283] The working methods of each unit in this embodiment are the same as those in the previous embodiment and will not be described again here.

[0284] The synchronization device in this embodiment, when identifying that the version number of the configuration file of another fire alarm controller that a fire alarm controller depends on is different from the current version number of the configuration file of the other fire alarm controller, obtains the difference information between the two current version numbers. In this way, the fire alarm controller only needs to be updated with respect to the difference information, with less update data, which can greatly reduce the time for synchronization of the configuration files and improve efficiency.

[0285] The present invention also provides a fire alarm controller, which includes the synchronization device for a fire alarm controller of the aforementioned sixth and seventh embodiments.

[0286] The present invention also provides a fire alarm controller, which includes the synchronization device for a fire alarm controller of the aforementioned eighth embodiment.

[0287] The present invention also provides a synchronization device for a fire alarm controller, comprising at least one memory and at least one processor. The memory is used to store instructions. The processor is used to execute the synchronization method for a fire alarm controller described in the first to third embodiments according to the instructions stored in the memory.

[0288] The present invention also provides a synchronization device for a fire alarm controller, comprising at least one first memory and at least one first processor. The first memory is used to store instructions. The first processor is used to execute the synchronization method for a fire alarm controller described in the first to third embodiments according to the instructions stored in the first memory.

[0289] The present invention also provides a synchronization device for a fire alarm controller, comprising at least one second memory and at least one second processor. The second memory is used to store instructions. The second processor is used to execute the synchronization method for a fire alarm controller described in the fourth and fifth embodiments according to the instructions stored in the second memory.

[0290] The embodiment of the present invention further provides a readable storage medium in which machine-readable instructions are stored. When the machine-readable instructions are executed by a machine, the machine executes the synchronization method for a fire alarm controller described in the first to third embodiments above.

[0291] The embodiment of the present invention further provides a readable storage medium in which machine-readable instructions are stored, and when the machine-readable instructions are executed by a machine, the machine executes the synchronization method for a fire alarm controller described in the fourth embodiment to the fifth embodiment.

[0292] The readable medium stores machine-readable instructions, which, when executed by the processor, cause the processor to execute any of the aforementioned methods. Specifically, a system or device equipped with a readable storage medium may be provided, on which a software program code implementing the functions of any of the above-mentioned embodiments is stored, and a computer or processor of the system or device reads and executes the machine-readable instructions stored in the readable storage medium.

[0293] In this case, the program code itself read from the machine-readable medium can realize the function of any one of the above-mentioned embodiments, and thus the machine-readable code and the machine-readable storage medium storing the machine-readable code constitute a part of the present invention.

[0294] Examples of readable storage media include floppy disks, hard disks, magneto-optical disks, optical disks (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD+RW), magnetic tapes, non-volatile memory cards, and ROMs. Alternatively, the program code may be downloaded from a server computer or a cloud via a communication network.

[0295] Those skilled in the art should understand that the various embodiments disclosed above can be modified and altered in various ways without departing from the essence of the invention. Therefore, the protection scope of the present invention should be defined by the appended claims.

[0296] It should be noted that not all steps and units in the above-mentioned processes and system structure diagrams are necessary, and some steps or units can be ignored according to actual needs. The execution order of each step is not fixed and can be adjusted as needed. The device structure described in the above-mentioned embodiments can be a physical structure or a logical structure, that is, some units may be implemented by the same physical entity, or some units may be implemented by multiple physical entities, or some components in multiple independent devices may be implemented together.

[0297] In the above embodiments, the hardware unit can be realized by mechanical means or electrical means. For example, a hardware unit or a processor can include permanent dedicated circuits or logic (such as special processors, FPGA or ASIC) to complete the corresponding operation. The hardware unit or the processor can also include programmable logic or circuits (such as general-purpose processors or other programmable processors), which can be temporarily set by software to complete the corresponding operation. Concrete implementation (mechanical means or dedicated permanent circuits or temporarily set circuits) can be determined based on cost and time considerations.

[0298] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A synchronization method for a fire alarm controller, characterized in that: include: Obtain a first version number of a first fire alarm controller, the first version number being the version number of a configuration file currently used by the first fire alarm controller, and obtain a corresponding second version number of a second fire alarm controller, the second version number being the version number of a configuration file of the first fire alarm controller on which the configuration file currently used by the second fire alarm controller depends, the configuration file including various configuration items and configuration data under various version numbers corresponding to each configuration item, and the configuration file of the second fire alarm controller is currently set to depend on the configuration file of the first fire alarm controller; If it is identified that the first version number is different from the second version number, obtaining difference information, the difference information including each configuration item that differs between the first version number and the second version number and configuration data corresponding to each configuration item that differs; The difference information is stored in a configuration file corresponding to the second fire alarm controller.

2. The synchronization method according to claim 1, characterized in that: After identifying that the first version number is different from the second version number and before acquiring the difference information, the method further includes: displaying the first version number and the second version number, and executing an operation of obtaining the difference information if a first synchronization instruction is received, wherein the first synchronization instruction is generated according to the first current version number; or Determine whether the update time of the configuration file corresponding to the first version number is later than the update time of the configuration file corresponding to the second version number, and if the determination result is yes, perform the operation of obtaining the difference information.

3. The synchronization method according to claim 1, characterized in that: After identifying that the first version number is different from the second version number and before acquiring the difference information, the method further includes: determining whether the first version number is one of the historical version numbers of the configuration file possessed by the second fire alarm controller; If the judgment result is no, the operation of obtaining difference information is executed.

4. The synchronization method according to claim 3, characterized in that: Also includes: If the judgment result is yes, the rollback operation of the configuration file corresponding to the second fire alarm controller is triggered to update the second version number of the second fire alarm controller to the first version number.

5. The synchronization method according to claim 1, characterized in that: Acquiring the difference information includes: Sending a first acquisition message to the first fire alarm controller, wherein the first acquisition message includes the second version number; The difference information sent by the first fire alarm controller is received, where the difference information is generated by the first fire alarm controller according to the stored configuration file corresponding to the first version number and the configuration file corresponding to the second version number.

6. The synchronization method according to claim 1, characterized in that: After storing the difference information in the configuration file corresponding to the second fire alarm controller, the method further includes: Determine whether the configuration item in the difference information is one of the preset must-restart items, and if the determination result is yes, trigger a restart operation of the second fire alarm controller; or The difference information is displayed, and if a second synchronization instruction is received, a restart operation of the second fire alarm controller is triggered, and the second synchronization instruction is generated according to the difference information.

7. The synchronization method according to claim 1, characterized in that: After obtaining a difference information and before storing the difference information in a configuration file corresponding to the second fire alarm controller, the method further includes: Calculate a target version number based on the configuration items and configuration data in the difference information; Determining whether the target version number is the same as the first version number, where the first version number is calculated by the first fire alarm controller according to the modified configuration items and configuration data corresponding to the first version number; If the judgment result is yes, the operation of storing the difference information in the configuration file corresponding to the second fire alarm controller is executed.

8. The synchronization method according to any one of claims 1 to 7, characterized in that: Storing the difference information in a configuration file corresponding to the second fire alarm controller includes: adding configuration data corresponding to the configuration items in the difference information to a configuration file of the first fire alarm controller stored in the second fire alarm controller; and / or The configuration data corresponding to the configuration item in the difference information is added to the configuration item corresponding to the configuration file of the second fire alarm controller.

9. The synchronization method according to any one of claims 1 to 7, characterized in that: The second fire alarm controller stores the version numbers of the configuration files of the first alarm controller on which it depends, as well as the configuration items and configuration data corresponding to the version numbers, and the configuration data are arranged in order according to the time of update; or The version number of the configuration file currently used by the second fire alarm controller is obtained as the second version number, and the version number of the configuration file used by the second fire alarm controller is the same as the version number of the configuration file of the first control alarm controller on which it depends.

10. A synchronization method for a fire alarm controller, characterized in that: include: Obtaining a first version number of a first fire alarm controller, where the first version number is the version number of a configuration file currently used by the first fire alarm controller, the configuration file including various configuration items and configuration data under various version numbers corresponding to each configuration item, and a configuration file of a second fire alarm controller is currently set to be dependent on the configuration file of the first fire alarm controller; Sending the first version number to a second fire alarm controller, the version number corresponding to the configuration file currently used by the second fire alarm controller is the second version number, and the second version number is the version number of the configuration file of the first control alarm controller on which the configuration file currently used by the second fire alarm controller depends; When the first version number is different from the second version number, obtaining difference information, the difference information including each configuration item that differs between the first version number and the second version number and configuration data corresponding to each configuration item that differs; The difference information is sent to the second fire alarm controller so that the second fire alarm controller stores the difference information in a corresponding configuration file.

11. The synchronization method according to claim 10, characterized in that: After sending the first version number to a second fire alarm controller and before obtaining a difference information, the method further includes: If a first acquisition message sent by the second fire alarm controller is received, an operation of acquiring difference information is triggered, wherein the first acquisition message includes the second version number, and the first acquisition message is generated when the first version number is different from the second version number.

12. The synchronization method according to claim 10 or 11, characterized in that: Acquiring the difference information includes: Searching the second version number from the first current version number in the configuration file stored in the self-stored configuration file, arranging the configuration data updated under each version number corresponding to the version number in order according to the update time, and taking the latest updated version number as the current version number; The configuration items and configuration data corresponding to each version number that differs between the first version number and the second version number are obtained, and the obtained configuration items and configuration data are used as difference information.

13. The synchronization method according to claim 12, characterized in that: Obtaining configuration items and configuration data corresponding to each version number that differs between the first version number and the second version number includes: Obtain each configuration item and configuration data of each configuration item under the first version number. If the configuration data of a configuration item under the first version number is empty, use the latest configuration data corresponding to the configuration item as the configuration data under the first current version number; Obtain each configuration item and configuration data of each configuration item under the second version number. If the configuration data of a configuration item under the second version number is empty, use the latest configuration data corresponding to the configuration item as the configuration data under the second current version number; Determine a configuration item having a difference between the first version number and the second version number and configuration data corresponding to the configuration item.

14. A synchronization device for a fire alarm controller, characterized in that: include: A first acquisition unit is used to acquire a first version number of a first fire alarm controller, the first version number being the version number of a configuration file currently used by the first fire alarm controller, and acquire a corresponding second version number of a second fire alarm controller, the second version number being the version number of a configuration file of the first fire alarm controller on which the configuration file currently used by the second fire alarm controller depends, the configuration file including each configuration item and configuration data under each version number corresponding to each configuration item, and the configuration file of the second fire alarm controller is currently set to depend on the configuration file of the first fire alarm controller; a second acquisition unit, configured to acquire difference information if it is identified that the first version number is different from the second version number, the difference information including each configuration item that differs between the first version number and the second version number and configuration data corresponding to each configuration item that differs; A storage unit is used to store the difference information in a configuration file corresponding to the second fire alarm controller.

15. The synchronization device according to claim 14, characterized in that: Also included is a trigger unit, the trigger unit being used for: Displaying the first version number and the second version number, and triggering the second acquisition unit if a first synchronization instruction is received, wherein the first synchronization instruction is generated according to the first current version number; or Determine whether the update time of the configuration file corresponding to the first version number is later than the update time of the configuration file corresponding to the second version number, and if the determination result is yes, trigger the second acquisition unit.

16. The synchronization device according to claim 14, characterized in that: Also includes: a judging unit, configured to judge whether the first version number is one of the historical version numbers of the configuration file possessed by the second fire alarm controller; If the judgment result is no, the second acquisition unit is triggered.

17. The synchronization device according to claim 16, characterized in that: The judging unit is also used for: If the judgment result is yes, the rollback operation of the configuration file corresponding to the second fire alarm controller is triggered to update the second version number of the second fire alarm controller to the first version number.

18. The synchronization device according to claim 14, characterized in that: The second acquisition unit is specifically used for: Sending a first acquisition message to the first fire alarm controller, wherein the first acquisition message includes the second version number; The difference information sent by the first fire alarm controller is received, where the difference information is generated by the first fire alarm controller according to the stored configuration file corresponding to the first version number and the configuration file corresponding to the second version number.

19. The synchronization device according to claim 14, characterized in that: Also includes a restart unit for: Determine whether the configuration item in the difference information is one of the preset must-restart items, and if the determination result is yes, trigger a restart operation of the second fire alarm controller; or The difference information is displayed, and if a second synchronization instruction is received, a restart operation of the second fire alarm controller is triggered, and the second synchronization instruction is generated according to the difference information.

20. The synchronization device according to claim 14, characterized in that Also includes a verification unit, the verification unit is used to: Calculate a target version number based on the configuration items and configuration data in the difference information; Determining whether the target version number is the same as the first version number, where the first version number is calculated by the first fire alarm controller according to the modified configuration items and configuration data corresponding to the first version number; If the judgment result is yes, the storage unit is triggered.

21. The synchronization device according to any one of claims 14 to 20, characterized in that: The storage unit is specifically used for: adding configuration data corresponding to the configuration items in the difference information to a configuration file of the first fire alarm controller stored in the second fire alarm controller; and / or The configuration data corresponding to the configuration item in the difference information is added to the configuration item corresponding to the configuration file of the second fire alarm controller.

22. A synchronizing device for a fire alarm controller, characterized in that: include: a third acquisition unit, configured to acquire a first version number of a first fire alarm controller, the first version number being the version number of a configuration file currently used by the first fire alarm controller, the configuration file comprising configuration items and configuration data under each version number corresponding to each configuration item, and a configuration file of a second fire alarm controller is currently set to be dependent on the configuration file of the first fire alarm controller; A first sending unit, used for sending the first version number to a second fire alarm controller, the version number corresponding to the configuration file currently used by the second fire alarm controller is the second version number, and the second version number is the version number of the configuration file of the first control alarm controller on which the configuration file currently used by the second fire alarm controller depends; a fourth acquisition unit, configured to acquire difference information when the first version number is different from the second version number, the difference information comprising each configuration item that differs between the first version number and the second version number and configuration data corresponding to each configuration item that differs; A second sending unit is used to send the difference information to the second fire alarm controller, so that the second fire alarm controller stores the difference information in a corresponding configuration file.

23. The synchronization device according to claim 22, characterized in that: Also includes: A receiving unit is used to receive a first acquisition information sent by the second fire alarm controller and trigger the fourth acquisition unit, the first acquisition information includes the second version number, and the first acquisition information is generated when the first version number is different from the second version number.

24. The synchronization device according to claim 22 or 23, characterized in that: The fourth acquisition unit is specifically used for: Searching the second version number from the first current version number in the configuration file stored in the self-stored configuration file, arranging the configuration data updated under each version number corresponding to the version number in order according to the update time, and taking the latest updated version number as the current version number; The configuration items and configuration data corresponding to each version number that differs between the first version number and the second version number are obtained, and the obtained configuration items and configuration data are used as difference information.

25. The synchronization device according to claim 24, characterized in that When the fourth obtaining unit performs the operation of obtaining configuration items and configuration data corresponding to each version number that differs between the first version number and the second version number, the fourth obtaining unit is specifically configured to: Obtain each configuration item and configuration data of each configuration item under the first version number. If the configuration data of a configuration item under the first version number is empty, use the latest configuration data corresponding to the configuration item as the configuration data under the first current version number; Obtain each configuration item and configuration data of each configuration item under the second version number. If the configuration data of a configuration item under the second version number is empty, use the latest configuration data corresponding to the configuration item as the configuration data under the second current version number; Determine a configuration item having a difference between the first version number and the second version number and configuration data corresponding to the configuration item.

26. Fire alarm controller, characterized in that: A synchronization device for a fire alarm controller comprising any one of claims 14-21.

27. Fire alarm controller, characterized in that, A synchronization device for a fire alarm controller comprising any one of claims 22-25.

28. A synchronizing device for a fire alarm controller, characterized in that: include: at least one first memory for storing instructions; At least one first processor, configured to execute the synchronization method for a fire alarm controller according to any one of claims 1 to 9 according to the instructions stored in the first memory.

29. A synchronizing device for a fire alarm controller, characterized in that: include: at least one second memory for storing instructions; At least one second processor, configured to execute the synchronization method for a fire alarm controller according to any one of claims 10-13 according to the instructions stored in the second memory.