CN116151707A - Method for determining association relationship between devices, related device and storage medium - Google Patents
Method for determining association relationship between devices, related device and storage medium Download PDFInfo
- Publication number
- CN116151707A CN116151707A CN202111363170.2A CN202111363170A CN116151707A CN 116151707 A CN116151707 A CN 116151707A CN 202111363170 A CN202111363170 A CN 202111363170A CN 116151707 A CN116151707 A CN 116151707A
- Authority
- CN
- China
- Prior art keywords
- slave
- service data
- determining
- master
- historical service
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/08—Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
- G06Q10/083—Shipping
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/06—Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
- G06Q10/063—Operations research, analysis or management
- G06Q10/0631—Resource planning, allocation, distributing or scheduling for enterprises or organisations
- G06Q10/06315—Needs-based resource requirements planning or analysis
Landscapes
- Business, Economics & Management (AREA)
- Human Resources & Organizations (AREA)
- Engineering & Computer Science (AREA)
- Economics (AREA)
- Strategic Management (AREA)
- Entrepreneurship & Innovation (AREA)
- Quality & Reliability (AREA)
- Operations Research (AREA)
- Marketing (AREA)
- Development Economics (AREA)
- Tourism & Hospitality (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Educational Administration (AREA)
- Game Theory and Decision Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The embodiment of the disclosure discloses a method for determining association relation among devices, a related device and a storage medium, wherein the method comprises the following steps: acquiring historical service data of each master device and historical service data of each slave device; comparing the historical service data of the slave equipment with the historical service data of each master equipment, and determining the target master equipment with the maximum quantity of the same historical service data with the slave equipment; determining that the slave device is subordinate to the target master device. According to the technical scheme, the relation among the devices can be rapidly and efficiently determined at the network end through the computer device, so that a plurality of inconveniences of manual field maintenance are avoided, and the workload of related operation and maintenance personnel is reduced. The timeliness of the data update is necessarily guaranteed due to the improved rate of determining the relationship between the devices.
Description
Technical Field
The disclosure relates to the technical field of computers, and in particular relates to a method for determining an association relationship between devices, a related device and a storage medium.
Background
At present, the logistics transfer sites are numerous, the sorting lines are more, the association relation between installed and future expansion equipment is complicated, the manual maintenance tool is huge, and the data accuracy is difficult to guarantee. Because all the relationships among the devices are maintained by manpower at the site at present, when the devices are changed or added and deleted, the devices are required to be maintained one by manpower at the site, so that the timeliness of data updating is poor. When the relation maintained manually has error and leakage deviation, the cloud is difficult to perceive the abnormality.
Disclosure of Invention
The embodiment of the disclosure provides a method for determining an association relationship between devices, a related device and a storage medium, which can solve a plurality of problems in the prior art when the relationship between the devices is manually maintained.
The embodiment of the disclosure provides a method for determining an association relationship between devices, which comprises the following steps:
acquiring historical service data of each master device and historical service data of each slave device;
comparing the historical service data of the slave equipment with the historical service data of each master equipment, and determining the target master equipment with the maximum quantity of the same historical service data with the slave equipment;
determining that the slave device is subordinate to the target master device.
Optionally, the historical service data includes service data within a predetermined number of days, and the determining, by comparing the historical service data of the slave device with the historical service data of each master device, the target master device having the largest number of the same historical service data as the slave device specifically includes:
sequentially comparing the daily historical service data of the slave device with the daily historical service data of each master device, and determining the master device with the largest quantity of the same daily historical service data with the slave device as an alternative master device of the day;
and selecting the master device with the largest number of days as the candidate master device as the target master device.
Optionally, the determining that the slave device belongs to the target master device specifically includes:
and adding an association tag with the target device on the slave device.
Optionally, the master device corresponds to a plurality of master identifiers, the slave device includes a unique slave identifier, and the determining, by comparing the historical service data of the slave device with the historical service data of each master device, the target master device with the largest amount of the same historical service data as the slave device specifically includes:
comparing the historical service data corresponding to the slave identifications with the historical service data corresponding to each master identification, and determining the target master identification with the largest quantity of the same historical service data as the slave identifications;
and determining the master device corresponding to the target master identifier as the target master device.
Optionally, after the comparing the historical service data corresponding to the slave identifier with the historical service data corresponding to each master identifier, determining the target master identifier with the largest number of the same historical service data as the slave identifier, the method further includes:
and setting all the master identifications corresponding to the master equipment corresponding to the target master identification as the master identifications associated with the slave identifications.
Optionally, the slave device is plural, and after determining that the slave device is subordinate to the target master device, the method further includes:
and acquiring each target slave device subordinate to the target master device, and generating total association information of the target master device, wherein the total association information comprises all target slave devices subordinate to the target master device.
Optionally, the slave device is a newly added device, and after determining that the slave device is subordinate to the target master device, the method further includes:
and adding the slave equipment into the total association information of the target master equipment.
In another aspect, the present disclosure provides an apparatus for determining an association relationship between devices, where the apparatus for determining an association relationship between devices includes:
the data acquisition unit is used for acquiring the historical service data of each master device and the historical service data of each slave device;
the data comparison unit is used for comparing the historical service data of the slave equipment with the historical service data of each master equipment and determining the target master equipment with the largest quantity of the same historical service data with the slave equipment;
and the device determining unit is used for determining that the slave device belongs to the target master device.
Optionally, the historical service data includes service data within a predetermined number of days, and the data comparison unit specifically includes:
the data comparison subunit is used for sequentially comparing the daily historical service data of the slave equipment with the daily historical service data of each master equipment, and determining the master equipment with the largest quantity of the same historical service data with the slave equipment every day as an alternative master equipment of the day;
and the device determining subunit is used for selecting the master device with the largest number of days as the candidate master device as the target master device.
Optionally, the device determining unit specifically includes:
and the label association subunit is used for adding the association label with the target device on the slave device.
Optionally, the master device corresponds to a plurality of master identifiers, the slave device includes a unique slave identifier, and the data comparing unit specifically includes:
the identification screening subunit is used for comparing the historical service data corresponding to the slave identifications with the historical service data corresponding to each master identification and determining the target master identification with the largest number of the same historical service data as the slave identifications;
and the identification determining subunit is used for determining the main equipment corresponding to the target main identification as target main equipment.
Optionally, the data comparing unit further comprises:
and the identifier association subunit is used for setting all the main identifiers corresponding to the main devices corresponding to the target main identifiers as the main identifiers associated with the auxiliary identifiers.
Optionally, the slave devices are multiple, and the apparatus for determining the association relationship between the devices further includes:
and the information generation unit is used for acquiring each target slave device subordinate to the target master device and generating total association information of the target master device, wherein the total association information comprises all target slave devices subordinate to the target master device.
Optionally, the slave device is a newly added device, and the apparatus for determining an association relationship between devices further includes:
and the information updating unit is used for adding the slave equipment into the total association information of the target master equipment.
In another aspect, the present disclosure also provides a computer device comprising:
one or more processors;
a memory; and
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to perform the steps of the method of determining an association between devices.
In another aspect, the present disclosure also provides a computer-readable storage medium having stored thereon a computer program to be loaded by a processor to perform steps in a method of determining an association relationship between devices.
In the embodiment of the disclosure, the target master device with the largest amount of the same historical service data as the slave device is determined by comparing the historical service data of the slave device with the historical service data of each master device, and then the slave device is determined as the device subordinate to the target master device, namely, the relation among the devices can be rapidly and efficiently determined at the network end through the computer device, so that a plurality of inconveniences of manual field maintenance are avoided, and the workload of related operation and maintenance personnel is reduced. The timeliness of the data update is necessarily guaranteed due to the improved rate of determining the relationship between the devices.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required for the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present disclosure, and other drawings may be obtained according to these drawings without inventive effort to those skilled in the art.
FIG. 1 is an environment diagram of an implementation of a method of determining an association between devices provided in one embodiment.
Fig. 2 is a flowchart illustrating a method of determining an association relationship between devices according to an exemplary embodiment.
Fig. 3 is a flowchart illustrating a specific implementation of step S200 in the method for determining the association relationship between devices according to the corresponding embodiment of fig. 2.
Fig. 4 is a flowchart of another specific implementation of step S200 in the method for determining the association relationship between devices according to the corresponding embodiment of fig. 2.
Fig. 5 is a flowchart of an additional embodiment of a method for determining association between devices according to the method set forth in fig. 4.
Fig. 6 is a flowchart of an additional embodiment of a method for determining association between devices according to the method set forth in fig. 2.
Fig. 7 is a flowchart of an additional embodiment of a method for determining association between devices according to the method set forth in fig. 6.
Fig. 8 is a block diagram illustrating an apparatus for determining an association relationship between devices according to an exemplary embodiment.
Fig. 9 schematically shows an example block diagram of an electronic device for implementing the above-described method of determining an association relationship between devices.
Fig. 10 schematically illustrates a computer-readable storage medium for implementing the above-described method of determining an association relationship between devices.
Detailed Description
The following description of the technical solutions in the embodiments of the present disclosure will be made clearly and completely with reference to the accompanying drawings in the embodiments of the present disclosure, and it is apparent that the described embodiments are only some embodiments of the present disclosure, not all embodiments. Based on the embodiments in this disclosure, all other embodiments that a person of ordinary skill in the art would obtain without making any inventive effort are within the scope of the disclosure. Furthermore, it should be understood that the detailed description is presented herein for purposes of illustration and explanation only and is not intended to limit the disclosure. In this disclosure, unless otherwise indicated, terms of orientation such as "upper" and "lower" are used to generally refer to the upper and lower positions of the device in actual use or operation, and in particular to the orientation of the drawing figures; while "inner" and "outer" are for the outline of the device.
The embodiment of the disclosure provides a method for determining an association relationship between devices, a related device and a storage medium. The following will describe in detail. The following description of the embodiments is not intended to limit the preferred embodiments.
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Fig. 1 is a diagram of an implementation environment of a method for determining an association relationship between devices provided in an embodiment, as shown in fig. 1, in the implementation environment, a master device 100, a slave device 200, and a processing device 300 are included.
The master device 100 is a central device to which various expansion devices and devices, such as pipeline, central server, etc., can be added. The slave device 200 is an extension device belonging to the master device 100, for example, a scanning device, a complement device, a photographing device, an infrared device, a photographing device, or the like provided on a pipeline, or may be a slave server having data to and from a center server. The processing device 300 is a device that determines the relationship between each master device 100 and each slave device 200.
The processing device 300 first obtains its own history service data from each master device 100 and each slave device 200, respectively. Then, the historical service data of the slave device 200 is compared with the historical service data of each master device 100, the target master device with the largest amount of the same historical service data as the slave device 200 is determined, and finally, the slave device 200 is determined to be subordinate to the target master device, namely, the determination of the subordinate relation of one slave device 200 is completed.
It should be noted that, the processing device 300 may be a desktop computer, a personal server, a server cluster, a workstation, a cloud server, or the like, but is not limited thereto. The master device 100, the slave device 200, and the processing device 300 may be connected via bluetooth, USB (Universal Serial Bus ), or other communication connection, which is not a limitation of the present invention.
As shown in fig. 2, in one embodiment, a method for determining an association relationship between devices is provided, where the method for determining an association relationship between devices may be applied to the processing device 300, and may specifically include the following steps:
step S100, historical service data of each master device and historical service data of the slave device are obtained.
Step S200, comparing the historical service data of the slave device with the historical service data of each master device, and determining the target master device with the largest quantity of the same historical service data with the slave device.
Step S300, determining that the slave device is subordinate to the target master device.
In the present disclosure, if it is required to determine the relationship between each master device and each slave device, it is required to first obtain the history service data of each master device from each master device, and obtain the history service data of each slave device from each slave device, respectively. And then comparing the historical service data of the slave device with the historical service data of each master device, and determining the master device with the largest quantity of the same historical service data as the slave device as the target master device. And finally determining that the slave device is subordinate to the target master device. The same history service data refers to identical data, such as identical orders, identical information streams, etc.
In general, the greater the number of overlapping historical service data processed by two devices, the greater its relevance is proved, so that the master device with the greatest number of identical historical service data with the slave device must have the closest relationship with the slave device, and then the slave device must be subordinate to the master device.
The master device may be a sorting line, the slave device may be a scanning device, a complement device, an infrared device, and the like, which are disposed on the sorting line, and the history service data is a processed waybill. When the coincidence of the waybill data processed by a certain scanning device and the waybill data processed by a certain sorting line is highest, the scanning device is proved to be bound on the sorting line, namely the scanning device belongs to the sorting line.
The master device may be a master server, the slave device may be a slave server bound to the master server, and the history service data may be processed data. When the coincidence of the data processed by a certain slave server and the data processed by a certain master server is highest, the slave server is proved to be bound with the master server, namely, the slave server belongs to the master server.
In other embodiments of the present disclosure, the master device may also be a warehouse, a master router, etc., and the slave devices are corresponding to vehicles, slave routers, etc., and the technical solution of the present disclosure may be generalized to all fields related to routing, transportation, logistics, etc. having master devices and slave devices, which are not described herein in detail.
In the subsequent embodiments of the present disclosure, description will be given taking, as an example, that all of the above-described master devices are sorting lines, the above-described slave devices are complementary devices provided on the sorting lines, and the above-described history service data are processed waybills.
For example, in one embodiment, the number of identical handbills processed by the first scanning device and the first sorting line is 371 pieces, the number of identical handbills processed by the second sorting line is 280 pieces, and the number of identical handbills processed by the third sorting line is 674 pieces, and it may be determined that the first scanning device belongs to the third sorting line.
The method and the system can quickly and efficiently determine the relation among the devices at the network end through the computer device, avoid a plurality of inconveniences of manual field maintenance, and reduce the workload of related operation and maintenance personnel. Meanwhile, the association relation is determined at the network end, so that the real-time updating of the data can be realized, the timeliness of the data updating is guaranteed, and the abnormal state of the field equipment can be fed back quickly.
Specifically, in some embodiments, step S300 may include the steps of:
and adding an association tag with the target device on the slave device.
The method and the device mark the master device affiliated to each slave device by adding the associated tag on the slave device, so that the master device associated with the slave device can be quickly queried through the associated tag or each slave device associated with the master device can be queried. When the association relation of the slave device changes, the association label also changes.
Specifically, in some embodiments, the specific implementation of step S200 may refer to fig. 3. Fig. 3 is a detailed description of step S200 in the method for determining the association relationship between devices according to the corresponding embodiment of fig. 2, where the historical service data includes service data within a predetermined number of days, and step S200 may include the following steps:
step S201, sequentially comparing the daily historical service data of the slave device with the daily historical service data of each master device, and determining the master device with the largest quantity of the same historical service data with the slave device every day as an alternative master device of the day;
step S202, selecting the master device with the largest number of days as the candidate master device as the target master device.
In this embodiment, the mode of selecting the target master device is to acquire the master device with the largest number of the same historical service data as the slave device daily in a predetermined number of days, use the master device as the candidate master device of the day, and then select the master device with the largest number of days as the candidate master device as the target master device. Namely, the master device which is the target master device, the same historical service data which is required to be processed in a preset number of days and is the same as the slave device reaches the highest, so that the accuracy of the association relation determination is ensured.
In some special cases, such as equipment failure and equipment maintenance, statistics of historical service data overlap ratio of only one day is obviously inaccurate, and misjudgment is extremely easy to occur. In the embodiment, the overlapping degree of the historical service data for a plurality of days is counted, and the association relation is judged, so that the accuracy of judgment can be greatly improved, and misjudgment caused by equipment failure and equipment maintenance is avoided. Generally, the overlap ratio of the historical service data in 7 days can be counted, so that the timeliness of data updating is ensured on the premise of ensuring the judging accuracy.
For example, in one embodiment, the first scanning device is a first sorting line on the alternate master device on the first day, a second sorting line on the alternate master device on the second day, a second sorting line on the alternate master device on the third day, a second sorting line on the alternate master device on the fourth day, a second sorting line on the alternate master device on the fifth day, a third sorting line on the alternate master device on the sixth day, and a second sorting line on the alternate master device on the seventh day, it is reasonable to believe that the data on the first day and the data on the sixth day are abnormal data, a statistical error may occur, or the second sorting line is being maintained at a shutdown on the day, so it may be determined that the first scanning device should be subordinate to the second sorting line. In this embodiment, 7 days of data are used as a statistical window period, the change of the device relationship can be perceived in 3 days, and the previous manual maintenance mode may be difficult to confirm the change of the relationship in several months and half years, so that the timeliness of data update can be greatly improved on the premise of ensuring the judging accuracy.
Specifically, in some embodiments, the specific implementation of step S200 may refer to fig. 4. Fig. 4 is a detailed description of step S200 in the method for determining the association relationship between devices according to the corresponding embodiment of fig. 2, where the master device corresponds to a plurality of master identities, and the slave device includes a unique slave identity, and step S200 may include the following steps:
step S210, comparing the historical service data corresponding to the slave identifications with the historical service data corresponding to each master identification, and determining the target master identification with the largest number of the same historical service data as the slave identifications;
step S220, determining the master device corresponding to the target master identifier as a target master device.
In this embodiment, in the actual use process, the historical service data corresponds to a device identifier of a device that is not an entity. In some usage scenarios, however, one device may have multiple identifications, such as in a sorting business, where one sorting line may have multiple identifications to correspond to different shifts. At this time, the sorting lines corresponding to the different identifiers need to be distinguished.
When one master device has a plurality of master identities and a slave device includes a unique slave identity, the method of determining the target master device may be to determine the target master identity having the largest amount of the same history traffic data as the slave identity as described above, and then determine the master device corresponding to the target master identity as the target master device. The method has smaller data processing quantity and can quickly confirm the target master device corresponding to the slave device. And if the slave device has a subordinate relation with the corresponding master device, the superposition degree of the historical service data processed by the two devices is inevitably higher than that of other historical data, so that the target master device corresponding to the slave device is inevitably mapped with the target master identifier with the largest number of the same historical service data of the slave device.
In other embodiments, to improve accuracy of relationship determination, a plurality of main identifiers corresponding to the main device may be found first, and the history service data processed by the main device may be summarized to obtain the history service data processed by the main device on the same day, and then the main device with the largest number of the same history service data as the auxiliary device may be obtained as the target main device by comparing with the auxiliary device. The embodiment has higher accuracy, and can avoid the situation that the judgment of the association relationship is deviated when the data difference of the two main devices is too small.
Optionally, fig. 5 is a further supplement of the method for determining an association relationship between devices according to the method proposed in fig. 4, and after step S220, the method for determining an association relationship between devices further includes:
step S230, setting all the master identifiers corresponding to the master devices corresponding to the target master identifier as the master identifier associated with the slave identifier.
Because the historical service data processed by each device in the embodiment is related to the device identifier thereof, the method for determining the association relationship of the slave device is tracing through the device identifier. It is also necessary to associate the slave identity of the slave device with the master identity of the corresponding target master device after determining that the master device corresponding to the target master identity is the target master device. The association relationship between the master device and the slave device is identified by the association of the device identification.
Optionally, fig. 6 is a further supplement of the method for determining an association relationship between devices according to fig. 2, in this embodiment, the slave devices are multiple, and after step S300, the method for determining an association relationship between devices further includes:
step S400, obtaining each target slave device subordinate to the target master device, and generating total association information of the target master device, wherein the total association information comprises all target slave devices subordinate to the target master device.
In a practical application scenario, such as a sorting line, there may be a plurality of slave devices associated with the sorting line as a master device, such as various scanning devices, infrared devices, and complementary devices. Therefore, after determining the master device to which each slave device is subordinate, the master device needs to be sorted to obtain total association information with the master device, and the total association information may include slave devices subordinate to the master device.
For example, in one embodiment, it has been confirmed that the first scanning device is subordinate to the second sorting line, the second scanning device is subordinate to the first sorting line, the first infrared device is subordinate to the first sorting line, the second infrared device is subordinate to the second sorting line. According to the information of the association relationship, the total association relationship of the first sorting line can be obtained as the association of the first sorting line with the second scanning equipment and the first infrared equipment; and meanwhile, the total association relation of the second sorting line can be obtained as that the second sorting line is associated with the first scanning device and the second infrared device. In some embodiments of the present disclosure, the manner of representing the total association information may be a total association information table, where each master device may be a master key of the total association information table, and each slave device corresponds to information associated with the master key or an external key. The total associated information table can also comprise the number of the same historical service data processed by each master device and each slave device, so that multi-device data integration under the situation of the Internet of things is realized.
Optionally, fig. 7 is a further supplement of the method for determining an association relationship between devices according to fig. 6, in this embodiment, the slave device is a newly added device, and after step S300, the method for determining an association relationship between devices further includes:
and step S500, adding the slave equipment into the total association information of the target master equipment.
In a practical use scenario, such as sorting, it is easy to add a new device, and it is necessary to confirm the association of the slave device in the manner shown in the embodiment shown in fig. 2. And after the association relation is obtained, adding the slave equipment into the total association information of the target master equipment to which the slave equipment is affiliated, so as to realize the real-time update of the data. According to the method and the device, free expansion adaptation of various newly-added devices can be achieved, additional work is not needed from a person to an actual site, adaptation is achieved on the cloud data level, maintenance efficiency is greatly improved, and maintenance time and economic cost are reduced.
As shown in fig. 8, in an embodiment, an apparatus for determining an association relationship between devices is provided, where the apparatus for determining an association relationship between devices may be integrated in the processing device 300, and may specifically include a data obtaining unit 310, a data comparing unit 320, and a device determining unit 330.
A data acquisition unit 310, configured to acquire historical service data of each master device and historical service data of each slave device;
a data comparing unit 320, configured to compare the historical service data of the slave device with the historical service data of each master device, and determine a target master device with the greatest amount of the same historical service data as the slave device;
a device determination unit 330 is configured to determine that the slave device is subordinate to the target master device.
Optionally, in some embodiments, the historical service data includes service data within a predetermined number of days, and the data comparing unit specifically includes:
the data comparison subunit is used for sequentially comparing the daily historical service data of the slave equipment with the daily historical service data of each master equipment, and determining the master equipment with the largest quantity of the same historical service data with the slave equipment every day as an alternative master equipment of the day;
and the device determining subunit is used for selecting the master device with the largest number of days as the candidate master device as the target master device.
Optionally, in some embodiments, the device determining unit specifically includes:
and the label association subunit is used for adding the association label with the target device on the slave device.
Optionally, in some embodiments, the master device corresponds to a plurality of master identities, the slave device includes a unique slave identity, and the data comparing unit specifically includes:
the identification screening subunit is used for comparing the historical service data corresponding to the slave identifications with the historical service data corresponding to each master identification and determining the target master identification with the largest number of the same historical service data as the slave identifications;
and the identification determining subunit is used for determining the main equipment corresponding to the target main identification as target main equipment.
Optionally, in some embodiments, the data comparison unit further comprises:
and the identifier association subunit is used for setting all the main identifiers corresponding to the main devices corresponding to the target main identifiers as the main identifiers associated with the auxiliary identifiers.
Optionally, in some embodiments, the slave devices are multiple, and the apparatus for determining an association relationship between the devices further includes:
and the information generation unit is used for acquiring each target slave device subordinate to the target master device and generating total association information of the target master device, wherein the total association information comprises all target slave devices subordinate to the target master device.
Optionally, in some embodiments, the slave device is a newly added device, and the apparatus for determining an association relationship between devices further includes:
and the information updating unit is used for adding the slave equipment into the total association information of the target master equipment.
It should be noted that although in the above detailed description several modules or units of a device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit in accordance with embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
Furthermore, although the steps of the methods in the present disclosure are depicted in a particular order in the drawings, this does not require or imply that the steps must be performed in that particular order or that all illustrated steps be performed in order to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step to perform, and/or one step decomposed into multiple steps to perform, etc.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, including several instructions to cause a computing device (may be a personal computer, a server, a mobile terminal, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
Those skilled in the art will appreciate that the various aspects of the invention may be implemented as a system, method, or program product. Accordingly, aspects of the invention may be embodied in the following forms, namely: an entirely hardware embodiment, an entirely software embodiment (including firmware, micro-code, etc.) or an embodiment combining hardware and software aspects may be referred to herein as a "circuit," module "or" system.
An electronic device 500 according to this embodiment of the invention is described below with reference to fig. 9. The electronic device 500 shown in fig. 9 is merely an example, and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in fig. 9, the electronic device 500 is embodied in the form of a general purpose computing device. The components of electronic device 500 may include, but are not limited to: the at least one processing unit 510, the at least one memory unit 520, and a bus 530 connecting the various system components, including the memory unit 520 and the processing unit 510.
Wherein the storage unit stores program code that is executable by the processing unit 510 such that the processing unit 510 performs steps according to various exemplary embodiments of the present invention described in the above section of the "exemplary method" of the present specification. For example, the processing unit 510 may perform step S100 shown in fig. 2, to acquire the history service data of each master device and the history service data of each slave device. Step S200, comparing the historical service data of the slave device with the historical service data of each master device, and determining the target master device with the largest quantity of the same historical service data with the slave device. Step S300, determining that the slave device is subordinate to the target master device.
The storage unit 520 may include readable media in the form of volatile storage units, such as Random Access Memory (RAM) 5201 and/or cache memory unit 5202, and may further include Read Only Memory (ROM) 5203.
The storage unit 520 may also include a program/utility 5204 having a set (at least one) of program modules 5205, such program modules 5205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
The electronic device 500 may also communicate with one or more external devices 700 (e.g., keyboard, pointing device, bluetooth device, etc.), one or more devices that enable a user to interact with the electronic device 500, and/or any device (e.g., router, modem, etc.) that enables the electronic device 500 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 550. Also, electronic device 500 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, through network adapter 560. As shown, network adapter 560 communicates with other modules of electronic device 500 over bus 530. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 500, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, including several instructions to cause a computing device (may be a personal computer, a server, a terminal device, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, a computer-readable storage medium having stored thereon a program product capable of implementing the method described above in the present specification is also provided. In some possible embodiments, the various aspects of the invention may also be implemented in the form of a program product comprising program code for causing a terminal device to carry out the steps according to the various exemplary embodiments of the invention as described in the "exemplary methods" section of this specification, when said program product is run on the terminal device.
Referring to fig. 10, a program product 600 for implementing the above-described method according to an embodiment of the present invention is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
Furthermore, the above-described drawings are only schematic illustrations of processes included in the method according to the exemplary embodiment of the present invention, and are not intended to be limiting. It will be readily appreciated that the processes shown in the above figures do not indicate or limit the temporal order of these processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, for example, among a plurality of modules. The foregoing has described in detail a display device and a display panel thereof provided by embodiments of the present disclosure, and specific examples have been applied herein to illustrate principles and embodiments of the present disclosure, the above description of the embodiments being only for aiding in understanding of the method of the present disclosure and its core ideas; meanwhile, as those skilled in the art will appreciate from the idea of the present disclosure, there are variations in the specific embodiments and the application scope, and in light of the above, the present disclosure should not be construed as being limited to the present disclosure.
Claims (10)
1. A method for determining an association between devices, comprising:
acquiring historical service data of each master device and historical service data of slave devices in a regional network;
comparing the historical service data of the slave equipment with the historical service data of each master equipment, and determining the target master equipment with the maximum quantity of the same historical service data with the slave equipment;
determining that the slave device is subordinate to the target master device.
2. The method for determining an association relationship between devices according to claim 1, wherein the historical service data includes service data within a predetermined number of days, and the determining the target master device having the largest number of identical historical service data with the slave device by comparing the historical service data of the slave device with the historical service data of each master device specifically includes:
sequentially comparing the daily historical service data of the slave device with the daily historical service data of each master device, and determining the master device with the largest quantity of the same daily historical service data with the slave device as an alternative master device of the day;
and selecting the master device with the largest number of days as the candidate master device as the target master device.
3. The method for determining an association relationship between devices according to claim 1, wherein the determining that the slave device belongs to the target master device specifically includes:
and adding an association tag with the target master device on the slave device.
4. The method for determining an association relationship between devices according to claim 1, wherein the master device corresponds to a plurality of master identities, the slave device includes a unique slave identity, and the determining the target master device having the largest amount of the same history service data as the slave device by comparing the history service data of the slave device with the history service data of each master device specifically includes:
comparing the historical service data corresponding to the slave identifications with the historical service data corresponding to each master identification, and determining the target master identification with the largest quantity of the same historical service data as the slave identifications;
and determining the master device corresponding to the target master identifier as the target master device.
5. The method for determining an association relationship between devices according to claim 4, wherein after said comparing the historical service data corresponding to the slave identity with the historical service data corresponding to each master identity, determining a target master identity having the largest number of identical historical service data with the slave identity, the method further comprises:
and setting all the master identifications corresponding to the master equipment corresponding to the target master identification as the master identifications associated with the slave identifications.
6. The method of determining an association between devices of claim 1, wherein the slave devices are plural, the method further comprising, after determining that the slave device is subordinate to the target master device:
and acquiring each target slave device subordinate to the target master device, and generating total association information of the target master device, wherein the total association information comprises all target slave devices subordinate to the target master device.
7. The method of determining an association between devices according to claim 6, wherein the slave device is a newly joined device, the method further comprising, after determining that the slave device is subordinate to the target master device:
and adding the slave equipment into the total association information of the target master equipment.
8. The device for determining the association relation between the devices is characterized by comprising the following components:
the data acquisition unit is used for acquiring the historical service data of each master device and the historical service data of each slave device;
the data comparison unit is used for comparing the historical service data of the slave equipment with the historical service data of each master equipment and determining the target master equipment with the largest quantity of the same historical service data with the slave equipment;
and the device determining unit is used for determining that the slave device belongs to the target master device.
9. A computer device, the computer device comprising:
one or more processors;
a memory; and
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the method of determining an association relationship between devices of any one of claims 1 to 7.
10. A computer-readable storage medium, having stored thereon a computer program, the computer program being loaded by a processor to perform the steps in the method of determining an association between devices of any of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111363170.2A CN116151707A (en) | 2021-11-17 | 2021-11-17 | Method for determining association relationship between devices, related device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111363170.2A CN116151707A (en) | 2021-11-17 | 2021-11-17 | Method for determining association relationship between devices, related device and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116151707A true CN116151707A (en) | 2023-05-23 |
Family
ID=86339373
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111363170.2A Pending CN116151707A (en) | 2021-11-17 | 2021-11-17 | Method for determining association relationship between devices, related device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116151707A (en) |
-
2021
- 2021-11-17 CN CN202111363170.2A patent/CN116151707A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101770479B (en) | Association relationship query method and device | |
CN112052242A (en) | Data query method and device, electronic equipment and storage medium | |
CN111813804B (en) | Data query method and device, electronic equipment and storage medium | |
US10354343B2 (en) | Automated process control hardware engineering using schema-represented requirements | |
CN111651471B (en) | Target data query method and device, electronic equipment and storage medium | |
CN110688828A (en) | File processing method and device, file processing system and computer equipment | |
CN110555150B (en) | Data monitoring method, device, equipment and storage medium | |
EP3575966B1 (en) | Method and system for handling engineering data in a multi- engineering system environment | |
CN112015402A (en) | Method and device for quickly establishing service scene and electronic equipment | |
CN113515271A (en) | Service code generation method and device, electronic equipment and readable storage medium | |
CN112860662A (en) | Data blood relationship establishing method and device, computer equipment and storage medium | |
CN116151707A (en) | Method for determining association relationship between devices, related device and storage medium | |
CN109726224B (en) | Data sharing method and device between application programs, terminal, server and medium | |
CN114841678B (en) | Post data exchange method, data exchange system, server and storage medium | |
CN115982148A (en) | Database table processing method and device, electronic equipment and storage medium | |
CN113656144B (en) | Data release system, method and device, electronic equipment and storage medium | |
CN114356884A (en) | Data migration method and device | |
CN114626352A (en) | Report automatic generation method and device, computer equipment and storage medium | |
CN116107971A (en) | Model data processing method and device, electronic equipment and storage medium | |
CN111597156A (en) | Civil aviation data processing method and device, electronic equipment and storage medium | |
CN110851561A (en) | Matching method and device for distribution sites | |
CN114201545B (en) | Data processing method and device, terminal equipment and storage medium | |
CN114281801A (en) | Data migration method and device | |
CN112215531B (en) | Method and device for solving logistics distribution problem | |
CN113111051A (en) | Data migration method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |