CN113392160A - Personnel information synchronization method, device, equipment and storage medium - Google Patents

Personnel information synchronization method, device, equipment and storage medium Download PDF

Info

Publication number
CN113392160A
CN113392160A CN202110714249.9A CN202110714249A CN113392160A CN 113392160 A CN113392160 A CN 113392160A CN 202110714249 A CN202110714249 A CN 202110714249A CN 113392160 A CN113392160 A CN 113392160A
Authority
CN
China
Prior art keywords
information
equipment
personnel
target
synchronized
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110714249.9A
Other languages
Chinese (zh)
Inventor
马跃凯
谢会斌
李聪廷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jinan Boguan Intelligent Technology Co Ltd
Original Assignee
Jinan Boguan Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jinan Boguan Intelligent Technology Co Ltd filed Critical Jinan Boguan Intelligent Technology Co Ltd
Priority to CN202110714249.9A priority Critical patent/CN113392160A/en
Publication of CN113392160A publication Critical patent/CN113392160A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • G06F16/275Synchronous replication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • G06F16/2246Trees, e.g. B+trees

Abstract

The application discloses a personnel information synchronization method, a personnel information synchronization device, personnel information synchronization equipment and a storage medium. The method comprises the following steps: acquiring information of personnel to be synchronized, and determining target equipment corresponding to the information of the personnel to be synchronized; grading the target equipment according to the tree structure to obtain an equipment grading structure; and sending the information of the personnel to be synchronized to a primary target device according to the device hierarchical structure, so that the primary target device sends the information of the personnel to be synchronized to a corresponding subordinate target device according to the device hierarchical structure after receiving the information of the personnel to be synchronized, and the subordinate target device issues the information according to the device hierarchical structure until all the target devices finish information synchronization. Therefore, the burden of personnel information synchronization is shared on each device in a balanced manner, and the target device assists information synchronization, so that the problems of centralized computing resource consumption and low synchronization speed are solved, and the personnel information synchronization speed is increased.

Description

Personnel information synchronization method, device, equipment and storage medium
Technical Field
The present invention relates to the field of information synchronization, and in particular, to a method, an apparatus, a device, and a storage medium for synchronizing personal information.
Background
Currently, with the continuous development of artificial intelligence, the number of intelligent devices is gradually increased, and then information updating of the intelligent devices becomes a problem of wide attention. For example, when the face access control software manages access control devices, one important function is that people information needs to be synchronized to the access control devices, and different people correspond to different access control devices. In the prior art, when the access control equipment needs to add, modify and delete the personnel information, the access control management software server needs to transmit information to each access control equipment, namely, the personnel information is synchronized to each access control equipment one by one, the access control management software server can consume a large amount of computing resources, and the synchronization process consumes a long time. In order to relieve the pressure of the access control management software server, in the prior art, a main device is selected from the access control devices, then the server only interacts with the main device, and the main device interacts with all the other devices, that is, the pressure of the server is completely transferred to the main device.
Disclosure of Invention
In view of the above, an object of the present invention is to provide a method, an apparatus, a device and a medium for synchronizing personal information, which can improve the speed of synchronizing the personal information. The specific scheme is as follows:
in a first aspect, the present application discloses a method for synchronizing personal information, which is applied to a server and includes:
acquiring information of personnel to be synchronized, and determining target equipment corresponding to the information of the personnel to be synchronized;
grading the target equipment according to the tree structure to obtain an equipment grading structure;
and sending the information of the personnel to be synchronized to a primary target device according to the device hierarchical structure, so that the primary target device sends the information of the personnel to be synchronized to a corresponding subordinate target device according to the device hierarchical structure after receiving the information of the personnel to be synchronized, and the subordinate target device issues the information according to the device hierarchical structure until all the target devices finish information synchronization.
Optionally, the classifying the target device according to the tree structure to obtain a device hierarchy structure includes:
acquiring equipment information of the target equipment; the device information comprises a device unique identifier and a device communication address;
grading the target equipment according to the tree structure based on the equipment information to obtain an equipment grading structure; wherein each node of the device hierarchy contains the corresponding device information.
Optionally, after receiving the information of the persons to be synchronized, the primary target device sends the information of the persons to be synchronized to a corresponding subordinate target device according to the device hierarchy structure, and the method includes:
after the primary target equipment receives the information of the personnel to be synchronized, determining subordinate target equipment according to the equipment hierarchical structure and equipment information stored in nodes in the equipment hierarchical structure;
and sending the information of the personnel to be synchronized to the subordinate target equipment.
Optionally, the classifying the target device according to the tree structure to obtain a device hierarchy structure includes:
determining a target order of the multi-branch tree structure according to the number of the target devices;
and grading the target equipment by using a multi-branch tree structure with the order as the target order to obtain the equipment grading structure.
Optionally, the classifying the target device according to the tree structure to obtain a device hierarchy structure includes:
and grading the target equipment according to the ternary tree structure to obtain an equipment ternary tree structure, and taking the equipment ternary tree structure as the equipment hierarchical structure.
Optionally, the obtaining the device ternary tree structure by classifying the target device according to the ternary tree structure includes:
generating a device index list based on the target device;
taking an index 0 as a root node, and constructing a complete ternary tree according to a rule that a left child node index of an index n is 3n +1, a child node index is 3n +2, and a right child node index is 3n +3 so as to obtain the equipment ternary tree structure; wherein n is greater than or equal to 0.
In a second aspect, the present application discloses a method for synchronizing personal information, which is applied to a target device, and includes:
receiving information of personnel to be synchronized sent by a server or superior target equipment according to the hierarchical structure of the equipment; the equipment hierarchical structure is obtained by the server according to a tree structure to grade all target equipment, and the target equipment is equipment determined by the server according to the information of the personnel to be synchronized;
and sending the information of the personnel to be synchronized to corresponding subordinate target equipment according to the equipment hierarchical structure.
In a third aspect, the present application discloses a person information synchronization apparatus, comprising:
the information acquisition module is used for acquiring information of personnel to be synchronized and determining target equipment corresponding to the information of the personnel to be synchronized;
the grading module is used for grading the target equipment according to the tree structure to obtain an equipment grading structure;
and the information synchronization module is used for sending the information of the personnel to be synchronized to a primary target device according to the device hierarchical structure, so that the primary target device sends the information of the personnel to be synchronized to a corresponding subordinate target device according to the device hierarchical structure after receiving the information of the personnel to be synchronized, and the subordinate target device issues the information according to the device hierarchical structure until all the target devices finish information synchronization.
In a fourth aspect, the present application discloses an electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the aforementioned personnel information synchronization method.
In a fifth aspect, the present application discloses a computer readable storage medium for storing a computer program; wherein the computer program when executed by the processor implements the aforementioned people information synchronization method.
In the method, information of personnel to be synchronized is obtained, and target equipment corresponding to the information of the personnel to be synchronized is determined; grading the target equipment according to the tree structure to obtain an equipment grading structure; and sending the information of the personnel to be synchronized to a primary target device according to the device hierarchical structure, so that the primary target device sends the information of the personnel to be synchronized to a corresponding subordinate target device according to the device hierarchical structure after receiving the information of the personnel to be synchronized, and the subordinate target device issues the information according to the device hierarchical structure until all the target devices finish information synchronization. Therefore, the equipment hierarchical structure is constructed according to the tree structure, information synchronization is carried out according to the equipment hierarchical structure, the target equipment can serve as an information issuing execution main body after receiving the information of the personnel to be synchronized, information synchronization is carried out on the lower-level target equipment, and therefore the burden of personnel information synchronization is shared to each equipment in a balanced mode through equipment-assisted synchronization information, the problems that computing resources are concentrated in consumption and low in synchronization speed are solved, and the speed of personnel information synchronization is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a personnel information synchronization method provided in the present application;
fig. 2 is a flowchart of a specific personnel information synchronization method provided in the present application;
FIG. 3 is a schematic diagram of a specific device hierarchy provided herein;
FIG. 4 is a specific personnel information synchronization time comparison chart provided by the present application;
FIG. 5 is a specific maximum interaction number comparison chart of the individual personnel information synchronization provided by the present application;
fig. 6 is a flowchart of a personnel information synchronization method applied to a target device according to the present application;
fig. 7 is a schematic structural diagram of a personnel information synchronization device provided in the present application;
fig. 8 is a block diagram of an electronic device provided in the present application.
Detailed Description
In the prior art, the access control management software server needs to transmit information to each access control device, that is, personnel information is synchronized to each access control device one by one, the access control management software server can consume a large amount of computing resources, and the synchronization process consumes a long time. In order to relieve the pressure of the access control management software server, in the prior art, a main device is selected from the access control devices, then the server only interacts with the main device, and the main device interacts with all the other devices, that is, the pressure of the server is completely transferred to the main device. In order to overcome the technical problem, the application provides a personnel information synchronization method, which can improve the personnel information synchronization speed.
The embodiment of the application discloses a personnel information synchronization method, which is applied to a server and shown in figure 1, and can comprise the following steps:
step S11: acquiring information of personnel to be synchronized, and determining target equipment corresponding to the information of the personnel to be synchronized.
In this embodiment, the server first obtains information of a person to be synchronized, and determines a corresponding target device according to the information of the person to be synchronized, that is, a device that needs to update information using the information of the person to be synchronized. It can be understood that the server first obtains the personnel information to be synchronized to the access control device, and determines the target device according to the mapping relationship between the personnel information and the device. Wherein, above-mentioned equipment can be intelligent terminal such as entrance guard's equipment.
Step S12: and grading the target equipment according to the tree structure to obtain an equipment grading structure.
In this embodiment, after the target device is determined, the target device is classified according to the tree structure to obtain a device classification structure, and it can be understood that the target device is not classified when the target device is determined.
In this embodiment, the classifying the target device according to the tree structure to obtain a device hierarchy structure may include: acquiring equipment information of the target equipment; the device information comprises a device unique identifier and a device communication address; grading the target equipment according to the tree structure based on the equipment information to obtain an equipment grading structure; wherein each node of the device hierarchy contains the corresponding device information. It can be understood that, in order to perform subsequent ordered information synchronization according to the device hierarchy, corresponding device information needs to be added when the device hierarchy is constructed, so that the generated hierarchy includes the unique identifier and the communication address of each target device; the device information includes, but is not limited to, a device unique identifier and a device communication address, and the device communication address includes, but is not limited to, any one or more of an IP address, a MAC address, and a port number, that is, the communication address may be determined according to actual situations for different application environments.
In this embodiment, the classifying the target device according to the tree structure to obtain a device hierarchy structure may include: determining a target order of the multi-branch tree structure according to the number of the target devices; and grading the target equipment by using a multi-branch tree structure with the order as the target order to obtain the equipment grading structure. It can be understood that, since the subsequent data synchronization is performed according to the generated device hierarchy, and the hierarchy formed by the multi-way trees of different orders may affect the speed of the whole process, and the multi-way trees of different orders may exhibit respective advantages for the devices of different number intervals, the selection of the multi-way tree structure of corresponding order may be decided by the number of the target devices. The order is the number of sub-nodes under one node in the multi-branch tree, and if one node has n sub-nodes, the corresponding multi-branch tree is an n-branch tree.
Step S13: and sending the information of the personnel to be synchronized to a primary target device according to the device hierarchical structure, so that the primary target device sends the information of the personnel to be synchronized to a corresponding subordinate target device according to the device hierarchical structure after receiving the information of the personnel to be synchronized, and the subordinate target device issues the information according to the device hierarchical structure until all the target devices finish information synchronization.
In this embodiment, after the device hierarchy is generated, the server sends the information of the person to be synchronized to a first-level target device, that is, a first node in the device hierarchy, according to the device hierarchy; and then the primary target equipment sends the information of the personnel to be synchronized to the corresponding subordinate target equipment according to the equipment hierarchical structure after receiving the information of the personnel to be synchronized, and the subordinate target equipment issues the information according to the equipment hierarchical structure until all the target equipment completes information synchronization.
In this embodiment, after receiving the information of the person to be synchronized, the first-level target device sends the information of the person to be synchronized to a corresponding lower-level target device according to the device hierarchy structure, which may include: after the primary target equipment receives the information of the personnel to be synchronized, determining subordinate target equipment according to the equipment hierarchical structure and equipment information stored in nodes in the equipment hierarchical structure; and sending the information of the personnel to be synchronized to the subordinate target equipment. The method comprises the steps that a server sends information of staff to be synchronized, a device hierarchical structure and a subordinate device address to a first level device, the device issues step by step according to the obtained device hierarchical structure and the subordinate device address, each target device receives the staff information and then stores the staff information to the local device, the subordinate device to be sent is confirmed according to the hierarchical structure, and then the staff information and the device hierarchical structure are sent to each subordinate device respectively according to the hierarchical structure through the device address.
As can be seen from the above, in this embodiment, by acquiring information of people to be synchronized, and determining target equipment corresponding to the information of the people to be synchronized; grading the target equipment according to the tree structure to obtain an equipment grading structure; and sending the information of the personnel to be synchronized to a primary target device according to the device hierarchical structure, so that the primary target device sends the information of the personnel to be synchronized to a corresponding subordinate target device according to the device hierarchical structure after receiving the information of the personnel to be synchronized, and the subordinate target device issues the information according to the device hierarchical structure until all the target devices finish information synchronization. Therefore, the equipment hierarchical structure is constructed according to the tree structure, information synchronization is carried out according to the equipment hierarchical structure, the target equipment can serve as an information issuing execution main body after receiving the information of the personnel to be synchronized, information synchronization is carried out on the lower-level target equipment, and therefore the burden of personnel information synchronization is shared to each equipment in a balanced mode through equipment-assisted synchronization information, the problems that computing resources are concentrated in consumption and low in synchronization speed are solved, and the speed of personnel information synchronization is improved.
The embodiment of the application discloses a specific personnel information synchronization method, which is applied to a server and shown in fig. 2, and the method can comprise the following steps:
step S21: acquiring information of personnel to be synchronized, and determining target equipment corresponding to the information of the personnel to be synchronized.
Step S22: and grading the target equipment according to the ternary tree structure to obtain an equipment ternary tree structure, and taking the equipment ternary tree structure as the equipment hierarchical structure.
In this embodiment, after the target device is determined, the target device is directly classified according to the ternary tree structure to obtain a device ternary tree structure, and the device ternary tree structure is used as the device hierarchical structure, that is, the server classifies all the access control devices to which the single person information to be synchronized is to be issued according to the specification of three devices at each stage, so as to obtain the device hierarchical structure shown in fig. 3. It is understood that the ternary tree structure has a characteristic of fast and stable transmission speed in most cases, and thus the target device can be classified according to the ternary tree structure.
In this embodiment, the obtaining the device ternary tree structure by classifying the target device according to the ternary tree structure may include: generating a device index list based on the target device; taking an index 0 as a root node, and constructing a complete ternary tree according to a rule that a left child node index of an index n is 3n +1, a child node index is 3n +2, and a right child node index is 3n +3 so as to obtain the equipment ternary tree structure; wherein n is greater than or equal to 0.
The device index list is generated based on the target device, and it should be noted that the device index list is only to count the number of devices and add sequence numbers for subsequent classification, and there is no sequential relationship between the devices themselves.
Specifically, the device is classified according to a device index list and a ternary tree generation algorithm, for example, a device index list generated by k +1 devices is [0,1,2,3 …, k-1, k ], a root node is a primary device, and an index is 0; the index of the left child node of the device with the index of n is 3n +1, the index of the child node is 3n +2, the index of the right child node is 3n +3, and the index of the father node is (n-1)/3, and the whole tree is rounded downwards, so that the complete tree generated by the tree generation algorithm can ensure that the device can generate the next level after filling each level, and the distribution efficiency can be maximized. In addition, in this embodiment, the device index list is used to generate a device ternary tree structure, and in addition, a device ternary tree structure or a multi-branch tree structure may be generated in another manner as the device hierarchical structure, and a specific manner of generating the tree structure is not limited herein.
Step S23: and sending the information of the personnel to be synchronized to a primary target device according to the device hierarchical structure, so that the primary target device sends the information of the personnel to be synchronized to a corresponding subordinate target device according to the device hierarchical structure after receiving the information of the personnel to be synchronized, and the subordinate target device issues the information according to the device hierarchical structure until all the target devices finish information synchronization.
According to the method of this embodiment, the adding, modifying, and deleting time of the personal information between the server and the access control device and between the device and the device is 1 second for example, the synchronizing time pair for completing the adding, modifying, and deleting operation of the personal information in different modes and with different device quantities is shown in fig. 4, and the single maximum interaction number pair is shown in fig. 5, where prior art 1 is a mode in which the access control software server transmits information to each access control device, and prior art 2 is a mode in which the server interacts only with the master device, and then interacts with all the other devices. It can be seen that the greater the number of devices, the greater the advantage of the information synchronization speed provided in this embodiment. In addition, in the single maximum interaction number comparison, in this embodiment, the server only interacts with the first-stage device, and the other devices only interact with the three issued devices at most, so that the calculation pressure is not concentrated at one location, thereby solving the problems of concentrated calculation resource consumption and low synchronization speed, and improving the speed of personnel information synchronization.
For the specific processes of step S21 and step S23, reference may be made to the corresponding contents disclosed in the foregoing embodiments, and details are not repeated here.
As can be seen from the above, in this embodiment, the target device is classified according to the ternary tree structure to obtain the device ternary tree structure, the device ternary tree structure is used as the device hierarchical structure, and then the personnel information synchronization is performed according to the device hierarchical structure, so that the burden of the personnel information synchronization is shared to each device in a balanced manner by the device-assisted synchronization information, and thus the problems of centralized computing resource consumption and low synchronization speed are solved, and the speed of the personnel information synchronization is increased.
The embodiment of the application discloses a specific personnel information synchronization method, which is shown in fig. 6 and applied to target equipment, and the method can comprise the following steps:
step S31: receiving information of personnel to be synchronized sent by a server or superior target equipment according to the hierarchical structure of the equipment; the equipment hierarchical structure is obtained by the server according to a tree structure to grade all target equipment, and the target equipment is equipment determined by the server according to the information of the personnel to be synchronized.
In this embodiment, the target device first receives information of a person to be synchronized, which is sent by the server or the superior target device according to the device hierarchy, and simultaneously receives the device hierarchy; the device hierarchical structure is obtained by the server according to a tree structure to grade all target devices, and the target devices are determined by the server according to the information of the people to be synchronized. It can be understood that, in this embodiment, the target device is configured to obtain the information of the person to be synchronized, which is sent by the server or the upper level target device through the foregoing embodiment.
Step S32: and sending the information of the personnel to be synchronized to corresponding subordinate target equipment according to the equipment hierarchical structure.
In this embodiment, after receiving the information of the people to be synchronized, the information of the people to be synchronized is sent to the corresponding subordinate target device according to the device hierarchy, and the subordinate target device continues to perform data synchronization according to the device hierarchy until all the target devices complete synchronization of the information of the people to be synchronized.
In this embodiment, after receiving the information of the person to be synchronized, which is sent by the server or the superior target device according to the device hierarchy, the method may further include: and sending a first receiving response to the superior target equipment. In this embodiment, after the sending the information of the person to be synchronized to the corresponding subordinate target device according to the device hierarchy, the method may further include: and receiving a second receiving response sent by the lower-level target equipment, and sending the second receiving response to the upper-level target equipment according to the equipment hierarchical structure until the server receives the second receiving response, so that the server performs corresponding subsequent processing according to all the received receiving responses.
It can be understood that, after receiving the information of the person to be synchronized, each device returns successful receiving information to the superior device, and after receiving the successful receiving information returned by the inferior device, each device feeds back the successful receiving information to the superior device. The server performs corresponding subsequent processing according to the summarized return information, specifically, if the return information is a network anomaly, the server may perform reissue after waiting for a period of time, and if the return information is a feature which cannot be identified, the server acquires an available feature and then performs reissue.
In this embodiment, the method for synchronizing the personal information may further include: if the second receiving response sent by the subordinate target equipment is not received within a preset time period after the information of the personnel to be synchronized is sent to the corresponding subordinate target equipment, performing supplementary sending based on the information of the personnel to be synchronized; and if the second receiving response is not received after the number of reissuing times reaches a preset threshold value, judging that the information transmission between the current devices fails, and transmitting corresponding failure feedback information to the upper-level target device, so that the server performs corresponding operation according to the failure feedback information after receiving the failure feedback information. For example, if the failure feedback information is network anomaly, the retransmission is performed after waiting for a period of time, and if the failure feedback information is feature unidentifiable, the retransmission is performed after obtaining the available feature. Therefore, the efficiency of synchronizing the information of the personnel to be synchronized can be improved.
In this embodiment, if the received second reception response sent by the lower-level target device is a reception failure response, corresponding operations are performed according to the reception failure response, for example, if the reception failure response is a network anomaly, the retransmission is performed after a period of time, and if the reception failure response is a feature that cannot be identified, the retransmission is not performed, and the failure feedback information is directly returned to the upper-level target device.
As can be seen from the above, in this embodiment, information of a person to be synchronized, which is sent by a server or a superior target device according to a device hierarchy, is received; then, the information of the personnel to be synchronized is sent to corresponding subordinate target equipment according to the equipment hierarchical structure; the device hierarchical structure is obtained by the server according to a tree structure to grade all target devices, and the target devices are determined by the server according to the information of the personnel to be synchronized. Therefore, the target equipment can serve as an information issuing execution main body after receiving the information of the personnel to be synchronized, and performs information synchronization on the subordinate target equipment, so that the equipment assists the synchronization information to share the burden of personnel information synchronization to each equipment in a balanced manner, the problems of centralized computing resource consumption and low synchronization speed are solved, and the speed of personnel information synchronization is improved.
Correspondingly, the embodiment of the present application further discloses a personnel information synchronization device, as shown in fig. 7, the device includes:
the information acquisition module 11 is configured to acquire information of people to be synchronized and determine target equipment corresponding to the information of the people to be synchronized;
the grading module 12 is configured to grade the target device according to a tree structure to obtain a device grading structure;
and the information synchronization module 13 is configured to send the information of the person to be synchronized to a primary target device according to the device hierarchical structure, so that the primary target device sends the information of the person to be synchronized to a corresponding subordinate target device according to the device hierarchical structure after receiving the information of the person to be synchronized, and the subordinate target device issues information according to the device hierarchical structure until all the target devices complete information synchronization.
As can be seen from the above, in this embodiment, by acquiring information of people to be synchronized, and determining target equipment corresponding to the information of the people to be synchronized; grading the target equipment according to the tree structure to obtain an equipment grading structure; and sending the information of the personnel to be synchronized to a primary target device according to the device hierarchical structure, so that the primary target device sends the information of the personnel to be synchronized to a corresponding subordinate target device according to the device hierarchical structure after receiving the information of the personnel to be synchronized, and the subordinate target device issues the information according to the device hierarchical structure until all the target devices finish information synchronization. Therefore, the equipment hierarchical structure is constructed according to the tree structure, information synchronization is carried out according to the equipment hierarchical structure, the target equipment can serve as an information issuing execution main body after receiving the information of the personnel to be synchronized, information synchronization is carried out on the lower-level target equipment, and therefore the burden of personnel information synchronization is shared to each equipment in a balanced mode through equipment-assisted synchronization information, the problems that computing resources are concentrated in consumption and low in synchronization speed are solved, and the speed of personnel information synchronization is improved.
In some embodiments, the ranking module 12 may specifically include:
a device information acquisition unit configured to acquire device information of the target device; the device information comprises a device unique identifier and a device communication address;
the grading unit is used for grading the target equipment according to the tree structure based on the equipment information to obtain an equipment grading structure; wherein each node of the device hierarchy contains the corresponding device information.
In some embodiments, the ranking module 12 may specifically include:
the multi-branch tree order determining unit is used for determining the target order of the multi-branch tree structure according to the number of the target devices;
and the equipment hierarchical structure determining unit is used for grading the target equipment by using a multi-branch tree structure with the order as the target order so as to obtain the equipment hierarchical structure.
In some embodiments, the ranking module 12 may specifically include:
and the equipment ternary tree structure determining unit is used for grading the target equipment according to the ternary tree structure to obtain an equipment ternary tree structure, and taking the equipment ternary tree structure as the equipment hierarchical structure.
In some specific embodiments, the second classification unit may specifically include:
an index list generating unit configured to generate a device index list based on the target device;
a complete ternary tree construction unit, configured to construct a complete ternary tree by using the index 0 as a root node and according to a rule that a left child node index of the index n is 3n +1, a child node index is 3n +2, and a right child node index is 3n +3, so as to obtain the device ternary tree structure; wherein n is greater than or equal to 0.
Further, the embodiment of the present application also discloses an electronic device, which is shown in fig. 8, and the content in the drawing cannot be considered as any limitation to the application scope.
Fig. 8 is a schematic structural diagram of an electronic device 20 according to an embodiment of the present disclosure. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input output interface 25, and a communication bus 26. The memory 22 is used for storing a computer program, and the computer program is loaded and executed by the processor 21 to implement the relevant steps in the person information synchronization method disclosed in any of the foregoing embodiments.
In this embodiment, the power supply 23 is configured to provide a working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and an external device, and a communication protocol followed by the communication interface is any communication protocol applicable to the technical solution of the present application, and is not specifically limited herein; the input/output interface 25 is configured to obtain external input data or output data to the outside, and a specific interface type thereof may be selected according to specific application requirements, which is not specifically limited herein.
In addition, the storage 22 is used as a carrier for resource storage, and may be a read-only memory, a random access memory, a magnetic disk, an optical disk, or the like, where the stored resources include an operating system 221, a computer program 222, data 223 including information of people to be synchronized, and the storage may be a transient storage or a permanent storage.
The operating system 221 is used for managing and controlling each hardware device and the computer program 222 on the electronic device 20, so as to realize the operation and processing of the mass data 223 in the memory 22 by the processor 21, and may be Windows Server, Netware, Unix, Linux, and the like. The computer program 222 may further include a computer program that can be used to perform other specific tasks in addition to the computer program that can be used to perform the person information synchronization method performed by the electronic device 20 disclosed in any of the foregoing embodiments.
Further, an embodiment of the present application further discloses a computer storage medium, where computer-executable instructions are stored in the computer storage medium, and when the computer-executable instructions are loaded and executed by a processor, the steps of the method for synchronizing the personal information disclosed in any of the foregoing embodiments are implemented.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above detailed description is provided for a method, an apparatus, a device and a medium for synchronizing personal information, and a specific example is applied in the present disclosure to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A personnel information synchronization method is applied to a server and comprises the following steps:
acquiring information of personnel to be synchronized, and determining target equipment corresponding to the information of the personnel to be synchronized;
grading the target equipment according to the tree structure to obtain an equipment grading structure;
and sending the information of the personnel to be synchronized to a primary target device according to the device hierarchical structure, so that the primary target device sends the information of the personnel to be synchronized to a corresponding subordinate target device according to the device hierarchical structure after receiving the information of the personnel to be synchronized, and the subordinate target device issues the information according to the device hierarchical structure until all the target devices finish information synchronization.
2. The method of claim 1, wherein the ranking the target devices according to a tree structure to obtain a device hierarchy structure comprises:
acquiring equipment information of the target equipment; the device information comprises a device unique identifier and a device communication address;
grading the target equipment according to the tree structure based on the equipment information to obtain an equipment grading structure; wherein each node of the device hierarchy contains the corresponding device information.
3. The personnel information synchronization method of claim 2, wherein the primary target device sends the personnel information to be synchronized to a corresponding subordinate target device according to the device hierarchy after receiving the personnel information to be synchronized, and the method comprises:
after the primary target equipment receives the information of the personnel to be synchronized, determining subordinate target equipment according to the equipment hierarchical structure and equipment information stored in nodes in the equipment hierarchical structure;
and sending the information of the personnel to be synchronized to the subordinate target equipment.
4. The personnel information synchronization method of any one of claims 1 to 3, wherein said classifying the target device according to a tree structure to obtain a device hierarchy structure comprises:
determining a target order of the multi-branch tree structure according to the number of the target devices;
and grading the target equipment by using a multi-branch tree structure with the order as the target order to obtain the equipment grading structure.
5. The personnel information synchronization method of any one of claims 1 to 3, wherein said classifying the target device according to a tree structure to obtain a device hierarchy structure comprises:
and grading the target equipment according to the ternary tree structure to obtain an equipment ternary tree structure, and taking the equipment ternary tree structure as the equipment hierarchical structure.
6. The personnel information synchronization method of claim 5, wherein said ranking said target devices according to a ternary tree structure to obtain a device ternary tree structure comprises:
generating a device index list based on the target device;
taking an index 0 as a root node, and constructing a complete ternary tree according to a rule that a left child node index of an index n is 3n +1, a child node index is 3n +2, and a right child node index is 3n +3 so as to obtain the equipment ternary tree structure; wherein n is greater than or equal to 0.
7. A personnel information synchronization method is applied to a target device and comprises the following steps:
receiving information of personnel to be synchronized sent by a server or superior target equipment according to the hierarchical structure of the equipment; the equipment hierarchical structure is obtained by the server according to a tree structure to grade all target equipment, and the target equipment is equipment determined by the server according to the information of the personnel to be synchronized;
and sending the information of the personnel to be synchronized to corresponding subordinate target equipment according to the equipment hierarchical structure.
8. A personnel information synchronization device is applied to a server and comprises:
the information acquisition module is used for acquiring information of personnel to be synchronized and determining target equipment corresponding to the information of the personnel to be synchronized;
the grading module is used for grading the target equipment according to the tree structure to obtain an equipment grading structure;
and the information synchronization module is used for sending the information of the personnel to be synchronized to a primary target device according to the device hierarchical structure, so that the primary target device sends the information of the personnel to be synchronized to a corresponding subordinate target device according to the device hierarchical structure after receiving the information of the personnel to be synchronized, and the subordinate target device issues the information according to the device hierarchical structure until all the target devices finish information synchronization.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the people information synchronization method of any of claims 1 to 7.
10. A computer-readable storage medium for storing a computer program; wherein the computer program, when executed by the processor, implements the people information synchronization method of any of claims 1 to 7.
CN202110714249.9A 2021-06-25 2021-06-25 Personnel information synchronization method, device, equipment and storage medium Pending CN113392160A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110714249.9A CN113392160A (en) 2021-06-25 2021-06-25 Personnel information synchronization method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110714249.9A CN113392160A (en) 2021-06-25 2021-06-25 Personnel information synchronization method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113392160A true CN113392160A (en) 2021-09-14

Family

ID=77624012

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110714249.9A Pending CN113392160A (en) 2021-06-25 2021-06-25 Personnel information synchronization method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113392160A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115188114A (en) * 2022-07-01 2022-10-14 日立楼宇技术(广州)有限公司 Access control information synchronization method, device, equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101841409A (en) * 2010-01-26 2010-09-22 中国科学院计算机网络信息中心 Method, server and domain name system for realizing purpose of creating synchronization in DNS region
CN103139484A (en) * 2013-03-12 2013-06-05 安徽南瑞继远软件有限公司 Method used for controlling multimedia information classification release and based on electric power private network
CN103763336A (en) * 2013-11-29 2014-04-30 北京中启智源数字信息技术有限责任公司 Software update method oriented to complex network architecture
CN106357782A (en) * 2016-09-29 2017-01-25 苏州科达科技股份有限公司 Multilevel architecture for data synchronization, data synchronization method and fault handling method
CN107295461A (en) * 2017-05-18 2017-10-24 乐鑫信息科技(上海)有限公司 A kind of localization method and system based on Wi Fi internet of things equipment networks
CN207399518U (en) * 2017-05-18 2018-05-22 乐鑫信息科技(上海)有限公司 A kind of alignment system based on Wi-Fi internet of things equipment networks
CN109857810A (en) * 2019-02-02 2019-06-07 立旃(上海)科技有限公司 Data synchronization unit and method based on block chain
CN111062016A (en) * 2018-10-17 2020-04-24 天津工业大学 User information management and biological characteristic authentication system suitable for cascade deployment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101841409A (en) * 2010-01-26 2010-09-22 中国科学院计算机网络信息中心 Method, server and domain name system for realizing purpose of creating synchronization in DNS region
CN103139484A (en) * 2013-03-12 2013-06-05 安徽南瑞继远软件有限公司 Method used for controlling multimedia information classification release and based on electric power private network
CN103763336A (en) * 2013-11-29 2014-04-30 北京中启智源数字信息技术有限责任公司 Software update method oriented to complex network architecture
CN106357782A (en) * 2016-09-29 2017-01-25 苏州科达科技股份有限公司 Multilevel architecture for data synchronization, data synchronization method and fault handling method
CN107295461A (en) * 2017-05-18 2017-10-24 乐鑫信息科技(上海)有限公司 A kind of localization method and system based on Wi Fi internet of things equipment networks
CN207399518U (en) * 2017-05-18 2018-05-22 乐鑫信息科技(上海)有限公司 A kind of alignment system based on Wi-Fi internet of things equipment networks
CN111062016A (en) * 2018-10-17 2020-04-24 天津工业大学 User information management and biological characteristic authentication system suitable for cascade deployment
CN109857810A (en) * 2019-02-02 2019-06-07 立旃(上海)科技有限公司 Data synchronization unit and method based on block chain

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115188114A (en) * 2022-07-01 2022-10-14 日立楼宇技术(广州)有限公司 Access control information synchronization method, device, equipment and storage medium
CN115188114B (en) * 2022-07-01 2023-09-01 日立楼宇技术(广州)有限公司 Access control information synchronization method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
US8826032B1 (en) Systems and methods for network change discovery and host name resolution in storage network environments
US9110884B2 (en) Message publishing and subscribing method and apparatus
CN107317707B (en) SDN network topology management method based on point coverage set
CN109213792A (en) Method, server-side, client, device and the readable storage medium storing program for executing of data processing
CN113590576A (en) Database parameter adjusting method and device, storage medium and electronic equipment
CN100386986C (en) Hybrid positioning method for data duplicate in data network system
CN114189444A (en) Method for managing industrial end equipment, time-sensitive network controller and system
CN114124384B (en) QKD network virtualization method and quantum key cloud platform
CN1326363C (en) Network management configuration method and apparatus thereof
CN107784009A (en) Data query, data query processing method and processing device
CN113392160A (en) Personnel information synchronization method, device, equipment and storage medium
CN105024856B (en) The converged communication method and device of multiple network management system
Tan et al. Toward a future network architecture for intelligence services: A cyber digital twin-based approach
Cintuglu et al. Real-time asynchronous information processing in distributed power systems control
CN110399534B (en) Terminal performance report generation method, device, equipment and storage medium
US20220382605A1 (en) Classical management of qubit requests
CN116760762B (en) Decentralised ad hoc network method and device
CN115118654B (en) Data forwarding method, system, device and program product under virtual network
US20230010057A1 (en) Method for service status analysis, server, and storage medium
CN111813533B (en) Dynamic management method and device for model instantiation and storage medium
CN115955404B (en) Internet of things scene management method, device, equipment and medium
CN110300222A (en) A kind of short message display method, system and terminal device
Levin Combinatorial synthesis of communication protocol ZigBee with interval multiset estimates
CN114844961B (en) Distributed system protocol intercommunication method, device, equipment and storage medium
CN114417417B (en) Industrial Internet of things privacy protection system and method based on federal learning

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210914