CN113824806A - Equipment identification method and device and electronic equipment - Google Patents
Equipment identification method and device and electronic equipment Download PDFInfo
- Publication number
- CN113824806A CN113824806A CN202011592619.8A CN202011592619A CN113824806A CN 113824806 A CN113824806 A CN 113824806A CN 202011592619 A CN202011592619 A CN 202011592619A CN 113824806 A CN113824806 A CN 113824806A
- Authority
- CN
- China
- Prior art keywords
- equipment
- eid
- information
- attribute
- candidate
- 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
- 238000000034 method Methods 0.000 title claims abstract description 63
- 238000004590 computer program Methods 0.000 claims description 10
- 238000012545 processing Methods 0.000 claims description 4
- 238000004883 computer application Methods 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 6
- 230000000694 effects Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 238000012216 screening Methods 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/30—Managing network names, e.g. use of aliases or nicknames
- H04L61/3015—Name registration, generation or assignment
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/30—Managing network names, e.g. use of aliases or nicknames
- H04L61/3005—Mechanisms for avoiding name conflicts
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer And Data Communications (AREA)
Abstract
The application provides a device identification method, a device and electronic equipment, and belongs to the technical field of computer application. The equipment identification method comprises the following steps: acquiring first device information of the electronic device, wherein the first device information comprises a plurality of device attributes of the electronic device; determining each candidate device identifier EID associated with the first device information according to a preset device relationship network, wherein the device relationship network comprises an association relationship between a device attribute and the EID; acquiring second equipment information corresponding to each candidate EID; and determining a target EID corresponding to the electronic equipment according to the similarity between the first equipment information and the second equipment information corresponding to each candidate EID. Therefore, by the equipment identification method, the EID of the electronic equipment is calibrated from multiple dimensions, the overshoot rate and the collision rate of the EID are reduced, and the equipment identification accuracy is improved.
Description
Technical Field
The present application relates to the field of computer application technologies, and in particular, to a device identification method and apparatus, and an electronic device.
Background
In the device identification scenario, some attribute elements of the physical device (such as model, manufacturer, screen resolution, etc.) are usually used to directly identify the device as a unique EID (Equipment Identity). For example, the attribute having the highest priority and not being empty may be determined as the EID of the device in the order of the priority of the device attribute elements.
In the related art, since the attribute of the device changes and the attribute values of different devices may be the same, the situation that a plurality of EIDs are allocated to the same device or the situation that the same EID is allocated to different devices is likely to occur, so that the overdue rate and the collision rate of the EIDs are high, and the accuracy of device identification is reduced.
Disclosure of Invention
The equipment identification method, the device, the electronic equipment and the storage medium are used for solving the problems that in the related technology, the equipment attribute is directly used as the equipment identification method of the EID of the equipment, the excess rate and the collision rate of the EID are high, and the equipment identification accuracy is reduced.
An embodiment of an aspect of the present application provides an apparatus identification method, including: acquiring first device information of electronic equipment, wherein the first device information comprises a plurality of device attributes of the electronic equipment; determining each candidate EID associated with the first equipment information according to a preset equipment relationship network, wherein the equipment relationship network comprises an association relationship between equipment attributes and the EIDs; acquiring second equipment information corresponding to each candidate EID; and determining a target EID corresponding to the electronic equipment according to the similarity between the first equipment information and the second equipment information corresponding to each candidate EID.
In another aspect, an apparatus for identifying a device provided in an embodiment of the present application includes: the device comprises a first acquisition module, a second acquisition module and a processing module, wherein the first acquisition module is used for acquiring first device information of electronic equipment, and the first device information comprises a plurality of device attributes of the electronic equipment; a first determining module, configured to determine each candidate EID associated with the first device information according to a preset device relationship network, where the device relationship network includes an association relationship between a device attribute and the EID; the second obtaining module is used for obtaining second equipment information corresponding to each candidate EID; a second determining module, configured to determine a target EID corresponding to the electronic device according to a similarity between the first device information and second device information corresponding to each candidate EID.
An embodiment of another aspect of the present application provides an electronic device, which includes: memory, processor and computer program stored on the memory and executable on the processor, characterized in that the processor implements the device identification method as described above when executing the program.
In another aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, wherein the computer program is executed by a processor to implement the device identification method as described above.
According to the device identification method, the device, the electronic device and the computer readable storage medium provided by the embodiment of the application, by presetting a device relationship network including an association relationship between device attributes and EIDs, and when first device information including a plurality of device attributes of the electronic device is acquired, determining each candidate EID associated with the first device information according to the preset device relationship network, and further determining a target EID corresponding to the electronic device according to the similarity between the first device information and second device information corresponding to each candidate EID. Therefore, by establishing the equipment relation network containing the association relation between the equipment attribute and the EID, when the electronic equipment is identified, the candidate EID which is possibly the EID of the electronic equipment is selected from the equipment relation network according to the first equipment information of the electronic equipment, and the EID of the electronic equipment is determined according to the similarity between the first equipment information and the full amount of equipment information associated with the candidate EIDs, so that the EID of the electronic equipment is calibrated from multiple dimensions, the overflow rate and the collision rate of the EID are reduced, and the accuracy of equipment identification is improved.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flowchart of an apparatus identification method according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a default device relationship network;
fig. 3 is a schematic flowchart of another device identification method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of another device identification method according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an apparatus identification device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to the embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the like or similar elements throughout. The embodiments described below with reference to the drawings are exemplary and intended to be used for explaining the present application and should not be construed as limiting the present application.
The embodiment of the application provides an equipment identification method aiming at the problems that in the related technology, the equipment attribute is directly used as an EID (electronic identification device) of the equipment, the excess rate and the collision rate of the EID are high, and the accuracy of equipment identification is reduced.
According to the device identification method provided by the embodiment of the application, when first device information including multiple device attributes of an electronic device is acquired through presetting a device relationship network including the association relationship between the device attributes and EIDs, each candidate EID associated with the first device information is determined according to the preset device relationship network, and then a target EID corresponding to the electronic device is determined according to the similarity between the first device information and second device information corresponding to each candidate EID. Therefore, by establishing the equipment relation network containing the association relation between the equipment attribute and the EID, when the electronic equipment is identified, the candidate EID which is possibly the EID of the electronic equipment is selected from the equipment relation network according to the first equipment information of the electronic equipment, and the EID of the electronic equipment is determined according to the similarity between the first equipment information and the full amount of equipment information associated with the candidate EIDs, so that the EID of the electronic equipment is calibrated from multiple dimensions, the overflow rate and the collision rate of the EID are reduced, and the accuracy of equipment identification is improved.
The device identification method, apparatus, electronic device, storage medium, and computer program provided by the present application are described in detail below with reference to the accompanying drawings.
Fig. 1 is a schematic flowchart of an apparatus identification method according to an embodiment of the present application.
As shown in fig. 1, the device identification method includes the following steps:
It should be noted that the device identification method according to the embodiment of the present application may be executed by the device identification apparatus according to the embodiment of the present application. The device identification apparatus of the embodiment of the present application may be configured in any electronic device to execute the device identification method of the embodiment of the present application.
For example, the device identification apparatus according to the embodiment of the present application may be configured in a server corresponding to any application, so that when the application needs to acquire the EID of the electronic device, an EID acquisition request may be sent to the server, so that the server returns the EID of the electronic device to the application.
The first device information may include a plurality of device attributes of the electronic device, such as a device model, a screen resolution, a kernel version, a manufacturer, an IP address, a physical address, and the like.
It should be noted that the first device information may include all device attributes of the electronic device, or may include some device attributes of the electronic device. The attribute names and the number of the device attributes included in the first device information may be determined according to the setting of the user in the server.
In this embodiment of the application, when the application client in the electronic device needs to acquire the EID of the electronic device, the application client may acquire an attribute value corresponding to an attribute name of each device attribute in the first device information according to an attribute name of each device attribute included in the preset first device information and an attribute value of each device attribute of the electronic device where the application client is located, so as to generate the first device information and send the first device information to the server. Therefore, the server can acquire the first device information sent by each application client managed by the server in real time so as to determine the EID of the electronic device according to the acquired first device information of the electronic device.
It should be noted that each device attribute in the first device information may include a corresponding relationship between an attribute name and an attribute value. As an example, the first device information may be stored in a table manner, where one device attribute corresponds to one row of elements in the table, that is, one row of elements in the table includes an attribute name of one device attribute and its corresponding attribute value; or, the first device information may also be stored in a k-v (key-vlalue) structure, where each key-value pair includes an attribute name of a device attribute and its corresponding attribute value.
For example, the device identification method according to the embodiment of the present application may be embedded in the application client in the form of an SDK, so that the application client may call the SDK to trigger the acquisition of the first device information of the electronic device at the time of starting or before executing a service requiring the electronic device EID.
The preset device relationship network may include an association relationship between device attributes and EIDs of a large number of electronic devices. As an example, a preset device relationship network may be established according to a historical association relationship between device attributes of electronic devices and EIDs.
Fig. 2 is a schematic diagram of a preset device relationship network. Fig. 2 includes 5 EIDs: "EID-a", "EID-b", "EID-c", "EID-d", "EID-f"; wherein "EID-a" is associated with the device attribute "prob [ b ] -0", "prob [ c ] -0", "prob [ d ] -0", "prob [ e ] -0", "prob [ a ] -2", EID-b "is associated with the device attribute" prob [ b ] -0 "," prob [ a ] -1 "," prob [ b ] -1 ", EID-c" is associated with the device attribute "prob [ d ] -0", EID-d "is associated with the device attribute" prob [ b ] -3 ", EID-f" is associated with the device attribute "prob [ e ] -3"; wherein, "prob [ b ] -0", "prob [ c ] -0", "prob [ d ] -0" and "prob [ e ] -0" refer to the property values of the device properties b, c, d and e of the device 0, respectively, prob [ a ] -1 "and" prob [ b ] -1 "refer to the property values of the device properties a and b of the device 1, respectively," prob [ a ] -2 "refers to the property value of the device property a of the device 2, and" prob [ b ] -3 "refers to the property value of the device property b of the device 3.
In this embodiment of the application, after the first device information of the electronic device is acquired, the EIDs associated with the device attributes in the first device information may be acquired from a preset device relationship network and used as candidate EIDs.
For example, if the obtained first device information is "prob [ a ] -0/prob [ b ] -0/prob [ c ] -0/prob [ d ] -0/prob [ e ] -0/prob [ f ] -0 … …", each candidate EID may be determined to be "EID-a", "EID-b", or "EID-c" according to the device relationship network shown in fig. 2.
Further, if the candidate EID is not obtained from the preset device relationship network, a new EID may be assigned to the electronic device. That is, in a possible implementation manner of the embodiment of the present application, after the step 102, the method may further include:
and under the condition that the number of the candidate EIDs is zero, generating a target EID for the electronic equipment, wherein the generated target EID is different from each EID in the preset equipment relation network.
In this embodiment of the application, if the number of candidate EIDs is zero, that is, the EIDs that may be associated with the electronic device are not obtained from the preset device relationship network, it may be determined that the EIDs may not be allocated to the electronic device before that, so that a new EID may be allocated to the electronic device as the target EID corresponding to the electronic device.
And 103, acquiring second equipment information corresponding to each candidate EID.
The second device information corresponding to the candidate EID may be device information (i.e., a total number of device attributes) reported by the historical electronic device associated with the candidate EID in the historical device identification process.
As a possible implementation manner, according to the device identification method implemented in the present application, after the EID of the electronic device is determined, the EID of the electronic device may be associated with device information of the electronic device, so that in the process of retrieving the EID of the electronic device again, whether each EID is the EID of the electronic device may be verified according to the device information associated with the EID. That is, in a possible implementation manner of the embodiment of the present application, step 103 may include:
acquiring historical equipment information respectively associated with each candidate EID;
and respectively determining second equipment information corresponding to each candidate EID according to each piece of historical equipment information.
The historical device information associated with the candidate EID refers to device information of the electronic device of which the corresponding EID is the candidate EID.
In the embodiment of the application, after the candidate EIDs are screened out, in order to further verify whether the candidate EIDs are EIDs matched with the electronic device, whether the EIDs matched with the electronic device exist in the candidate EIDs may also be determined according to historical device information associated with the candidate EIDs. Accordingly, it is possible to acquire the historical device information associated with each candidate EID, and select the second device information corresponding to each candidate EID from the historical device information associated with each candidate EID.
As a possible implementation manner, historical device information that is most recently associated with the candidate EID, that is, device information of the electronic device that is most recently associated with the candidate EID, may be determined as the second device information corresponding to the candidate EID.
And step 104, determining a target EID corresponding to the electronic device according to the similarity between the first device information and the second device information corresponding to each candidate EID.
In this embodiment, the greater the similarity between the first device information of the electronic device and the second device information corresponding to the candidate EID, the greater the probability that the candidate EID is the EID of the electronic device is, so that the target EID corresponding to the electronic device can be selected from the candidate EIDs according to the similarity between the first device information and the second device information corresponding to each candidate EID.
As a possible implementation manner, the candidate EID with the largest similarity between the corresponding second device information and the first device information may be determined as a target EID corresponding to the electronic device, and the target EID is returned to the application client, so that the application client executes a corresponding service.
As another possible implementation manner, a similarity threshold may also be preset, and the candidate EID, in which the similarity between the corresponding second device information and the first device information is greater than the similarity threshold, is determined as the target EID corresponding to the electronic device, so as to further improve the accuracy of device identification. That is, in a possible implementation form of the embodiment of the present application, the step 104 may include:
and determining the candidate EID with the maximum similarity between the corresponding second equipment information and the corresponding first equipment information and larger than or equal to a similarity threshold value as the target EID.
In this embodiment of the application, in order to further improve accuracy of device identification, a similarity threshold may be preset, so that when a similarity between second device information and first device information corresponding to a candidate EID is the largest and is greater than or equal to the similarity threshold, the candidate EID may be determined as a target EID.
Further, if there is no candidate EID whose similarity between the corresponding second device information and the first device information is greater than or equal to the similarity threshold, a new EID may be assigned to the electronic device. That is, in a possible implementation manner of this embodiment of the present application, step 104 may include:
and under the condition that the similarity between the first equipment information and each piece of second equipment information is smaller than a similarity threshold value, generating a target EID for the electronic equipment, wherein the generated target EID is different from each EID in a preset equipment relation network.
In this embodiment of the application, if the similarity between the second device information and the first device information corresponding to each candidate EID is smaller than the similarity threshold, it may be determined that an EID may not be allocated to the electronic device before that, and thus a new EID may be allocated to the electronic device as a target EID corresponding to the electronic device.
Further, after the target EID corresponding to the electronic device is determined, the first device information of the electronic device may be associated with the target EID, so as to retrieve the EID of the electronic device subsequently. That is, in a possible implementation manner of the embodiment of the present application, after the step 104, the method may further include:
the first device information is associated with a target EID.
In the embodiment of the application, after the target EID corresponding to the electronic device is determined, the first device information may be associated with the target EID to serve as historical device information associated with the target EID, so that when the EID of the electronic device needs to be retrieved again, the electronic device may be associated with the target EID again according to the historical device information associated with the target EID, so that one electronic device is always associated with one EID as much as possible, and the overrun and collision rate of the EID are reduced.
According to the device identification method provided by the embodiment of the application, when first device information including multiple device attributes of an electronic device is acquired through presetting a device relationship network including the association relationship between the device attributes and EIDs, each candidate EID associated with the first device information is determined according to the preset device relationship network, and then a target EID corresponding to the electronic device is determined according to the similarity between the first device information and second device information corresponding to each candidate EID. Therefore, by establishing the equipment relation network containing the association relation between the equipment attribute and the EID, when the electronic equipment is identified, the candidate EID which is possibly the EID of the electronic equipment is selected from the equipment relation network according to the first equipment information of the electronic equipment, and the EID of the electronic equipment is determined according to the similarity between the first equipment information and the full amount of equipment information associated with the candidate EIDs, so that the EID of the electronic equipment is calibrated from multiple dimensions, the overflow rate and the collision rate of the EID are reduced, and the accuracy of equipment identification is improved.
In a possible implementation form of the present application, since the first device information includes a large number of device attributes related to the electronic device, the candidate EIDs are screened from the preset device relationship network according to all the device attributes included in the first device information, which may cause unnecessary computation overhead and reduce efficiency of device identification, so that more important device attributes may be screened from the first device information in advance for screening the candidate EIDs, so as to further improve efficiency of device identification.
The device identification method provided in the embodiment of the present application is further described below with reference to fig. 3.
Fig. 3 is a flowchart illustrating another device identification method according to an embodiment of the present application.
As shown in fig. 3, the device identification method includes the following steps:
The detailed implementation process and principle of step 201 may refer to the detailed description of the above embodiments, and are not described herein again.
The preset device attribute may include at least one of the following attributes: device model, screen resolution, kernel version, manufacturer, IP address, physical address, but not limited thereto. In actual use, the preset device attribute may be selected according to actual needs and specific application scenarios, which is not limited in the embodiments of the present application.
In the embodiment of the present application, since the first device information includes a large number of device attributes related to the electronic device, and each EID in the preset device relationship network may be associated with only a small number of device attributes of the device, the candidate EIDs are screened from the preset device relationship network according to all the device attributes included in the first device information, which may cause unnecessary computation overhead and reduce efficiency of device identification. Therefore, after the server acquires the first device information of the electronic device, the server may acquire the preset device attributes, and screen out attribute values of the preset device attributes from the first device information according to the preset device attributes, where the attribute values are used as target device attributes for screening candidate EIDs.
And 204, determining the EID associated with the target equipment attribute in a preset equipment relationship network as a candidate EID, wherein the equipment relationship network comprises the association relationship between the equipment attribute and the EID.
In this embodiment of the present application, after determining the target device attribute, the server may obtain, from a preset device relationship network, the EID associated with each target device attribute as each candidate EID.
For example, the obtained first device information is "prob [ a ] -0/prob [ b ] -0/prob [ c ] -0/prob [ d ] -0/prob [ e ] -0/prob [ f ] -0 … …", the preset device attribute is "prob [ b ]/prob [ c ]/prob [ d ]/prob [ e ]", and it may be determined that each target device attribute is "prob [ b ] -0/prob [ c ] -0/prob [ d ] -0/prob [ e ] -0". Thus, according to the device relationship network shown in FIG. 2, each candidate EID can be determined as "EID-a", "EID-b", "EID-c".
In step 205, second device information corresponding to each candidate EID is obtained.
And step 206, determining a target EID corresponding to the electronic device according to the similarity between the first device information and the second device information corresponding to each candidate EID.
The detailed implementation process and principle of the steps 205 and 206 can refer to the detailed description of the above embodiments, and are not described herein again.
And step 207, updating a preset equipment relationship network according to the association relationship between the target equipment attribute and the target EID.
In the embodiment of the application, after the target EID corresponding to the electronic device is determined, the attribute of the target device may be associated with the target EID, and the device relationship network may be updated by using the association relationship between the attribute of the target device and the EID. Therefore, when the EID of the electronic equipment needs to be retrieved again, the target EID can be screened out from a preset equipment relation network according to the target equipment attribute of the electronic equipment, so that the equipment identification accuracy and timeliness are further improved.
The device identification method provided by the embodiment of the application screens out key target device attributes from first device information by presetting a device relationship network containing the association relationship between the device attributes and the EIDs when the first device information including a plurality of device attributes of the electronic device is acquired, then determines the EIDs associated with the target device attributes in the preset device relationship network as candidate EIDs, further determines the target EIDs corresponding to the electronic device according to the similarity between the first device information and the second device information corresponding to each candidate EID, and updates the preset device relationship network according to the association relationship between the target device attributes and the target EIDs. Therefore, by establishing the equipment relation network containing the association relation between the equipment attribute and the EID, when the electronic equipment is identified, the candidate EID which is possibly the EID of the electronic equipment is selected from the equipment relation network according to the key equipment attribute of the electronic equipment, and the EID of the electronic equipment is determined according to the similarity between the first equipment information and the full amount of equipment information associated with the candidate EIDs, so that the EID of the electronic equipment is calibrated from multiple dimensions, the overdissuring rate and the collision rate of the EID are reduced, the accuracy of equipment identification is improved, and the efficiency and the timeliness of equipment identification are further improved.
In a possible implementation form of the present application, since the first device information and the second device information both include a plurality of device attributes, the similarity between the first device information and the second device information may be determined according to the similarity between each device attribute in the first device information and a corresponding device attribute in the second device information; and different weights can be set for different equipment attributes, so that the equipment identification accuracy is further improved.
The device identification method provided in the embodiment of the present application is further described below with reference to fig. 4.
Fig. 4 is a flowchart illustrating a further device identification method according to an embodiment of the present application.
As shown in fig. 4, the device identification method includes the following steps:
The detailed implementation process and principle of the steps 301-303 can refer to the detailed description of the above embodiments, and are not described herein again.
In this embodiment of the application, since the first device information and the second device information may each include a plurality of device attributes, a similarity between each device attribute in the first device information and a corresponding device attribute in the second device information may be determined first, and the similarity between the first device information and the second device information is determined according to the similarity between each device attribute in the first device information and the corresponding device attribute in the second device information.
For example, the first device information is "prob [ a ] -0/prob [ b ] -0/prob [ c ] -0/prob [ d ] -0/prob [ e ] -0/prob [ f ] -0 … …", and the second device information corresponding to the A candidate EID is "prob [ a ] -1/prob [ b ] -1/prob [ c ] -1/prob [ d ] -1/prob [ e ] -1/prob [ f ] -1 … …", so that the similarity between "prob [ a ] -0" and "prob [ a ] -1", the similarity between "prob [ b ] -0" and "prob [ b ] -1", the similarity between "prob [ c ] -0" and "prob [ c ] -1" can be determined in order, and the like until the similarity between all the device attributes in the first device information and the device attributes corresponding to the second device information is determined.
In this embodiment of the present application, after determining a similarity between each device attribute in the first device information and a corresponding device attribute in each second device information, a sum of the similarities between each device attribute in the first device information and the corresponding device attribute in the second device information may be determined as a similarity between the first device information and the second device information; the mean value of the similarity between each device attribute in the first device information and the corresponding device attribute in the second device information may also be determined as the similarity between the first device information and the second device information, which is not limited in this embodiment of the present application.
Furthermore, different weights can be given to different equipment attributes due to different effects of the different equipment attributes and different influence degrees on equipment safety, so that the accuracy of equipment identification is further improved. That is, in a possible implementation manner of this embodiment of the present application, step 305 may include:
determining the weight of each equipment attribute according to the type of each equipment attribute and the influence on the safety of the electronic equipment;
and determining the similarity between the first equipment information and each piece of second equipment information according to the weight of each equipment attribute and the similarity between each equipment attribute in the first equipment information and the corresponding equipment attribute in each piece of second equipment information.
As a possible implementation, different types of device attributes have different effects on device identification, and some device attributes are related to the security of the electronic device, so that the weights of the device attributes can be determined according to the types of the device attributes and the influence of the device attributes on the security of the device. For example, the device attribute "manufacturer" has a small effect on device identification, and thus the weight of the device attribute "manufacturer" can be determined to be a small value; the device attribute "physical address" has a large effect on device identification, and therefore the weight of the device attribute "physical address" can be determined to be a large value.
Accordingly, the device attribute "manufacturer" does not have a large influence on the private data of the electronic device even if the device attribute "manufacturer" is tampered with, that is, the device attribute "manufacturer" has a small influence on the security of the electronic device, and therefore the weight of the device attribute "manufacturer" can be determined to be a small value; the tampered device attribute 'physical address' has a great influence on the private data of the electronic device, that is, the device attribute 'physical address' has a great influence on the security of the electronic device, so that the weight of the device attribute 'physical address' can be determined to be a large value.
In this embodiment of the present application, after determining the weight of each device attribute and the similarity between each device attribute in the first device information and the corresponding device attribute in each second device information, the weighted sum of the similarities between each device attribute in the first device information and the corresponding device attribute in the second device information may be determined as the similarity between the first device information and the second device information. The similarity between the first device information and the second device information may be determined by formula (1).
Wherein S is a similarity between the first device information and the second device information, ωiIs the weight of the ith device attribute in the first device information, SiN is the similarity between the ith device attribute in the first device information and the ith device attribute in the second device information, n is the number of the device attributes contained in the first device information and the number of the device attributes contained in the second device information, and i is the serial number of the device attributes.
The detailed implementation process and principle of the step 306 may refer to the detailed description of the above embodiments, and are not described herein again.
The device identification method provided in the embodiment of the application determines, by presetting a device relationship network including an association relationship between device attributes and EIDs, each candidate EID associated with first device information according to the preset device relationship network when the first device information including a plurality of device attributes of an electronic device is acquired, then determines a similarity between each device attribute in the first device information and a corresponding device attribute in each second device information, determines a similarity between the first device information and each second device information according to the similarity between each device attribute in the first device information and the corresponding device attribute in each second device information, and further determines a target EID corresponding to the electronic device according to the similarity between the first device information and the second device information corresponding to each candidate EID. Therefore, by establishing the equipment relation network containing the association relation between the equipment attribute and the EID, when the electronic equipment is identified, the candidate EID which is possibly the EID of the electronic equipment is selected from the equipment relation network according to the first equipment information of the electronic equipment, and the EID of the electronic equipment is determined according to the similarity between the first equipment information and the total equipment information associated with the candidate EIDs and the weight of each equipment attribute, so that the EID of the electronic equipment is calibrated from multiple dimensions, the overflow rate and the collision rate of the EID are reduced, the similarity analysis of the equipment information is corrected through the weight of the equipment attribute, and the accuracy of equipment identification is further improved.
In order to implement the above embodiments, the present application further provides an apparatus identification device.
Fig. 5 is a schematic structural diagram of an apparatus identification device according to an embodiment of the present application.
As shown in fig. 5, the device identification apparatus 40 includes:
a first obtaining module 41, configured to obtain first device information of an electronic device, where the first device information includes a plurality of device attributes of the electronic device;
a first determining module 42, configured to determine each candidate EID associated with the first device information according to a preset device relationship network, where the device relationship network includes an association relationship between a device attribute and the EID;
a second obtaining module 43, configured to obtain second device information corresponding to each candidate EID;
the second determining module 44 is configured to determine a target EID corresponding to the electronic device according to the similarity between the first device information and the second device information corresponding to each candidate EID.
In practical use, the device identification apparatus provided in the embodiment of the present application may be configured in any electronic device to execute the device identification method.
The device identification apparatus provided in the embodiment of the application, by presetting a device relationship network including an association relationship between device attributes and EIDs, and when first device information including a plurality of device attributes of an electronic device is acquired, determining each candidate EID associated with the first device information according to the preset device relationship network, and further determining a target EID corresponding to the electronic device according to a similarity between the first device information and second device information corresponding to each candidate EID. Therefore, by establishing the equipment relation network containing the association relation between the equipment attribute and the EID, when the electronic equipment is identified, the candidate EID which is possibly the EID of the electronic equipment is selected from the equipment relation network according to the first equipment information of the electronic equipment, and the EID of the electronic equipment is determined according to the similarity between the first equipment information and the full amount of equipment information associated with the candidate EIDs, so that the EID of the electronic equipment is calibrated from multiple dimensions, the overflow rate and the collision rate of the EID are reduced, and the accuracy of equipment identification is improved.
In a possible implementation form of the present application, the first determining module 42 includes:
the device comprises a first acquisition unit, a second acquisition unit and a control unit, wherein the first acquisition unit is used for acquiring preset device attributes;
a third determining unit, configured to determine a preset device attribute included in the first device information as a target device attribute;
and the fourth determining unit is used for determining the EID associated with the target equipment attribute in the preset equipment relationship network as a candidate EID.
Further, in another possible implementation form of the present application, the preset device attribute includes at least one of the following attributes: device model, screen resolution, kernel version, manufacturer, IP address, physical address.
Further, in another possible implementation form of the present application, the device identification apparatus 40 further includes:
and the updating module is used for updating the preset equipment relation network according to the incidence relation between the target equipment attribute and the target EID.
Further, in another possible implementation form of the present application, the device identification apparatus 40 further includes:
an association module to associate the first device information with the target EID.
Further, in another possible implementation form of the present application, the second obtaining module 43 includes:
a second acquisition unit configured to acquire historical device information associated with each of the candidate EIDs, respectively;
and the fifth determining unit is used for respectively determining the second equipment information corresponding to each candidate EID according to each historical equipment information.
Further, in another possible implementation form of the present application, the second determining module 44 includes:
and a sixth determining unit, configured to determine, as the target EID, the candidate EID in which the similarity between the corresponding second device information and the first device information is the maximum and is greater than or equal to the similarity threshold.
Further, in another possible implementation form of the present application, the second determining module 44 includes:
and the generating unit is used for generating a target EID for the electronic equipment under the condition that the similarity between the first equipment information and each piece of second equipment information is smaller than a similarity threshold, wherein the generated target EID is different from each EID in a preset equipment relation network.
Further, in another possible implementation form of the present application, the device identification apparatus 40 further includes:
a third determining module, configured to determine a similarity between each device attribute in the first device information and a corresponding device attribute in each second device information;
and the fourth determining module is used for determining the similarity between the first equipment information and each piece of second equipment information according to the similarity between each equipment attribute in the first equipment information and the corresponding equipment attribute in each piece of second equipment information.
Further, in another possible implementation form of the present application, the fourth determining module includes:
the first determining unit is used for determining the weight of each equipment attribute according to the type of each equipment attribute and the influence on the safety of the electronic equipment;
and the second determining unit is used for determining the similarity between the first equipment information and each piece of second equipment information according to the weight of each equipment attribute and the similarity between each equipment attribute in the first equipment information and the corresponding equipment attribute in each piece of second equipment information.
Further, in another possible implementation form of the present application, the device identification apparatus 40 further includes:
and the generating module is used for generating a target EID for the electronic equipment under the condition that the number of the candidate EIDs is zero, wherein the generated target EID is different from each EID in a preset equipment relation network.
It should be noted that the foregoing explanation on the device identification method embodiments shown in fig. 1, fig. 3, and fig. 4 also applies to the device identification apparatus 40 of this embodiment, and details are not repeated here.
The device identification apparatus provided in the embodiment of the application, an equipment relationship network including an association relationship between equipment attributes and EIDs is preset, and when first device information including a plurality of device attributes of an electronic device is acquired, a key target device attribute is screened from the first device information, then the EIDs associated with the target device attributes in the preset equipment relationship network are determined as candidate EIDs, further, a target EID corresponding to the electronic device is determined according to a similarity between the first device information and second device information corresponding to each candidate EID, and the preset equipment relationship network is updated according to the association relationship between the target device attributes and the target EIDs. Therefore, by establishing the equipment relation network containing the association relation between the equipment attribute and the EID, when the electronic equipment is identified, the candidate EID which is possibly the EID of the electronic equipment is selected from the equipment relation network according to the key equipment attribute of the electronic equipment, and the EID of the electronic equipment is determined according to the similarity between the first equipment information and the full amount of equipment information associated with the candidate EIDs, so that the EID of the electronic equipment is calibrated from multiple dimensions, the overdissuring rate and the collision rate of the EID are reduced, the accuracy of equipment identification is improved, and the efficiency and the timeliness of equipment identification are further improved.
In order to implement the above embodiments, the present application further provides an electronic device.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
As shown in fig. 6, the electronic device 200 includes:
a memory 210 and a processor 220, a bus 230 connecting different components (including the memory 210 and the processor 220), the memory 210 storing a computer program, and the processor 220 implementing the device identification method according to the embodiment of the present application when executing the program.
A program/utility 280 having a set (at least one) of program modules 270, including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination thereof may comprise an implementation of a network environment, may be stored in, for example, the memory 210. The program modules 270 generally perform the functions and/or methodologies of the embodiments described herein.
The processor 220 executes various functional applications and data processing by executing programs stored in the memory 210.
It should be noted that, for the implementation process and the technical principle of the electronic device of this embodiment, reference is made to the foregoing explanation of the device identification method of the embodiment of the present application, and details are not described here again.
The electronic device provided by the embodiment of the application may execute the device identification method as described above, and determine, by presetting a device relationship network including an association relationship between device attributes and EIDs, each candidate EID associated with first device information according to the preset device relationship network when the first device information including a plurality of device attributes of the electronic device is acquired, and then determine, according to a similarity between the first device information and second device information corresponding to each candidate EID, a target EID corresponding to the electronic device. Therefore, by establishing the equipment relation network containing the association relation between the equipment attribute and the EID, when the electronic equipment is identified, the candidate EID which is possibly the EID of the electronic equipment is selected from the equipment relation network according to the first equipment information of the electronic equipment, and the EID of the electronic equipment is determined according to the similarity between the first equipment information and the full amount of equipment information associated with the candidate EIDs, so that the EID of the electronic equipment is calibrated from multiple dimensions, the overflow rate and the collision rate of the EID are reduced, and the accuracy of equipment identification is improved.
In order to implement the above embodiments, the present application also proposes a computer-readable storage medium.
The computer readable storage medium stores thereon a computer program, and the computer program is executed by a processor to implement the device identification method according to the embodiment of the present application.
In order to implement the foregoing embodiments, a further embodiment of the present application provides a computer program, which when executed by a processor, implements the device identification method according to the embodiments of the present application.
In an alternative implementation, the embodiments may be implemented in any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer 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.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. 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 thereof. A computer readable signal medium may also be any computer readable medium that is not a computer 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 computer 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.
Computer program code for carrying out operations for aspects of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the consumer electronic device, partly on the consumer electronic device, as a stand-alone software package, partly on the consumer electronic device and partly on a remote electronic device, or entirely on the remote electronic device or server. In the case of remote electronic devices, the remote electronic devices may be connected to the consumer electronic 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 electronic device (e.g., through the internet using an internet service provider).
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.
Claims (16)
1. A device identification method, comprising:
acquiring first device information of electronic equipment, wherein the first device information comprises a plurality of device attributes of the electronic equipment;
determining each candidate device identifier EID associated with the first device information according to a preset device relationship network, wherein the device relationship network comprises an association relationship between a device attribute and the EID;
acquiring second equipment information corresponding to each candidate EID;
and determining a target EID corresponding to the electronic equipment according to the similarity between the first equipment information and the second equipment information corresponding to each candidate EID.
2. The method of claim 1, wherein the determining each candidate EID associated with the first device information according to a preset device relationship network comprises:
acquiring preset equipment attributes;
determining the preset device attribute included in the first device information as a target device attribute;
and determining the EID associated with the target equipment attribute in the preset equipment relationship network as the candidate EID.
3. The method of claim 2, wherein the preset device attributes comprise at least one of the following attributes: device model, screen resolution, kernel version, manufacturer, IP address, physical address.
4. The method of claim 2, wherein after determining the target EID for the electronic device, further comprising:
and updating the preset equipment relationship network according to the incidence relation between the target equipment attribute and the target EID.
5. The method of claim 1, wherein after determining the target EID corresponding to the electronic device according to the similarity between the first device information and the second device information corresponding to each of the candidate EIDs, further comprising:
associating the first device information with the target EID.
6. The method of claim 5, wherein the obtaining second device information corresponding to each of the candidate EIDs comprises:
acquiring historical equipment information respectively associated with each candidate EID;
and respectively determining second equipment information corresponding to each candidate EID according to each piece of historical equipment information.
7. The method of claim 1, wherein the determining the target EID corresponding to the electronic device according to the similarity between the first device information and the second device information corresponding to each of the candidate EIDs comprises:
and determining the candidate EID with the maximum similarity between the corresponding second equipment information and the corresponding first equipment information and larger than or equal to a similarity threshold value as the target EID.
8. The method of claim 7, wherein determining the target EID corresponding to the electronic device according to the similarity between the first device information and the second device information corresponding to each of the candidate EIDs comprises:
and under the condition that the similarity between the first equipment information and each piece of second equipment information is smaller than a similarity threshold value, generating a target EID for the electronic equipment, wherein the generated target EID is different from each EID in the preset equipment relationship network.
9. The method of claim 1, wherein before determining the target EID corresponding to the electronic device according to the similarity between the first device information and the second device information corresponding to each of the candidate EIDs, further comprising:
determining similarity between each device attribute in the first device information and a corresponding device attribute in each second device information;
and determining the similarity between the first equipment information and each piece of second equipment information according to the similarity between each equipment attribute in the first equipment information and the corresponding equipment attribute in each piece of second equipment information.
10. The method of claim 9, wherein the determining the similarity between the first device information and each of the second device information according to the similarity between each device attribute in the first device information and the corresponding device attribute in each of the second device information comprises:
determining the weight of each equipment attribute according to the type of each equipment attribute and the influence on the safety of the electronic equipment;
and determining the similarity between the first equipment information and each piece of second equipment information according to the weight of each equipment attribute and the similarity between each equipment attribute in the first equipment information and the corresponding equipment attribute in each piece of second equipment information.
11. The method of any of claims 1-10, wherein after determining each candidate EID associated with the first device information according to a predetermined device relationship network, further comprising:
and under the condition that the number of the candidate EIDs is zero, generating a target EID for the electronic equipment, wherein the generated target EID is different from each EID in the preset equipment relation network.
12. An apparatus for identifying a device, comprising:
the device comprises a first acquisition module, a second acquisition module and a processing module, wherein the first acquisition module is used for acquiring first device information of electronic equipment, and the first device information comprises a plurality of device attributes of the electronic equipment;
a first determining module, configured to determine each candidate EID associated with the first device information according to a preset device relationship network, where the device relationship network includes an association relationship between a device attribute and the EID;
a second obtaining module, configured to obtain second device information corresponding to each candidate EID;
and a second determining module, configured to determine a target EID corresponding to the electronic device according to a similarity between the first device information and second device information corresponding to each candidate EID.
13. The apparatus of claim 12, further comprising:
a third determining module, configured to determine a similarity between each device attribute in the first device information and a corresponding device attribute in each second device information;
a fourth determining module, configured to determine, according to a similarity between each device attribute in the first device information and a corresponding device attribute in each second device information, a similarity between the first device information and each second device information.
14. The apparatus of claim 13, wherein the fourth determining module comprises:
the first determining unit is used for determining the weight of each equipment attribute according to the type of each equipment attribute and the influence on the safety of the electronic equipment;
a second determining unit, configured to determine a similarity between the first device information and each piece of the second device information according to a weight of each piece of the device attribute and a similarity between each piece of the device attribute in the first device information and a corresponding device attribute in each piece of the second device information.
15. An electronic device, comprising: memory, processor and program stored on the memory and executable on the processor, characterized in that the processor implements the device identification method as claimed in any of claims 1 to 11 when executing the program.
16. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a device identification method according to any one of claims 1 to 11.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011592619.8A CN113824806A (en) | 2020-12-29 | 2020-12-29 | Equipment identification method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011592619.8A CN113824806A (en) | 2020-12-29 | 2020-12-29 | Equipment identification method and device and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113824806A true CN113824806A (en) | 2021-12-21 |
Family
ID=78924865
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011592619.8A Pending CN113824806A (en) | 2020-12-29 | 2020-12-29 | Equipment identification method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113824806A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105591743A (en) * | 2014-10-23 | 2016-05-18 | 腾讯科技(深圳)有限公司 | Method and device for carrying out identity authentication through equipment operation features of user terminal |
CN106453437A (en) * | 2016-12-22 | 2017-02-22 | 中国银联股份有限公司 | Equipment identification code acquisition method and device |
CN106709318A (en) * | 2017-01-24 | 2017-05-24 | 腾云天宇科技(北京)有限公司 | Recognition method, device and calculation equipment for user equipment uniqueness |
CN107908666A (en) * | 2017-10-23 | 2018-04-13 | 北京京东尚科信息技术有限公司 | A kind of method and apparatus of identification equipment mark |
CN109543462A (en) * | 2018-11-15 | 2019-03-29 | 深圳乐信软件技术有限公司 | Device identification determines method, apparatus, server and storage medium |
CN109951289A (en) * | 2019-01-25 | 2019-06-28 | 北京三快在线科技有限公司 | A kind of recognition methods, device, equipment and readable storage medium storing program for executing |
US20190296979A1 (en) * | 2018-03-22 | 2019-09-26 | Citrix Systems, Inc. | Systems and methods for inventory discovery in a network |
-
2020
- 2020-12-29 CN CN202011592619.8A patent/CN113824806A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105591743A (en) * | 2014-10-23 | 2016-05-18 | 腾讯科技(深圳)有限公司 | Method and device for carrying out identity authentication through equipment operation features of user terminal |
CN106453437A (en) * | 2016-12-22 | 2017-02-22 | 中国银联股份有限公司 | Equipment identification code acquisition method and device |
CN106709318A (en) * | 2017-01-24 | 2017-05-24 | 腾云天宇科技(北京)有限公司 | Recognition method, device and calculation equipment for user equipment uniqueness |
CN107908666A (en) * | 2017-10-23 | 2018-04-13 | 北京京东尚科信息技术有限公司 | A kind of method and apparatus of identification equipment mark |
US20190296979A1 (en) * | 2018-03-22 | 2019-09-26 | Citrix Systems, Inc. | Systems and methods for inventory discovery in a network |
CN109543462A (en) * | 2018-11-15 | 2019-03-29 | 深圳乐信软件技术有限公司 | Device identification determines method, apparatus, server and storage medium |
CN109951289A (en) * | 2019-01-25 | 2019-06-28 | 北京三快在线科技有限公司 | A kind of recognition methods, device, equipment and readable storage medium storing program for executing |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111090628B (en) | Data processing method and device, storage medium and electronic equipment | |
CN110297689B (en) | Intelligent contract execution method, device, equipment and medium | |
US7386609B2 (en) | Method, system, and program for managing devices in a network | |
CN109710695B (en) | Transaction request validity identification and initiation method, device, equipment and medium | |
CN109446202B (en) | Identifier allocation method, device, server and storage medium | |
US11245762B1 (en) | Data request servicing using smart network interface cards | |
US20230205755A1 (en) | Methods and systems for improved search for data loss prevention | |
CN111258832B (en) | Interface parameter verification method, device, equipment and medium | |
CN110046155B (en) | Method, device and equipment for updating feature database and determining data features | |
CN113204345A (en) | Page generation method and device, electronic equipment and storage medium | |
CN112860706A (en) | Service processing method, device, equipment and storage medium | |
CN116360769A (en) | Code generation method, device, equipment and storage medium | |
CN109271193B (en) | Data processing method, device, equipment and storage medium | |
CN112965943A (en) | Data processing method and device, electronic equipment and storage medium | |
CN112948396A (en) | Data storage method and device, electronic equipment and storage medium | |
CN112039975A (en) | Method, device, equipment and storage medium for processing message field | |
CN111338958A (en) | Parameter generation method and device of test case and terminal equipment | |
CN113824806A (en) | Equipment identification method and device and electronic equipment | |
CN114385891A (en) | Data searching method and device, electronic equipment and storage medium | |
CN110716946B (en) | Method and device for updating feature rule matching library, storage medium and electronic equipment | |
CN110753136B (en) | Domain name resolution method, device, equipment and storage medium | |
US10620946B1 (en) | Dynamic modeling for opaque code during static analysis | |
CN111782834A (en) | Image retrieval method, device, equipment and computer readable storage medium | |
CN111061744B (en) | Graph data updating method and device, computer equipment and storage medium | |
CN113032836A (en) | Data desensitization method and apparatus |
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 |