CN111400775A - Equipment identification method, device and equipment - Google Patents

Equipment identification method, device and equipment Download PDF

Info

Publication number
CN111400775A
CN111400775A CN202010088395.0A CN202010088395A CN111400775A CN 111400775 A CN111400775 A CN 111400775A CN 202010088395 A CN202010088395 A CN 202010088395A CN 111400775 A CN111400775 A CN 111400775A
Authority
CN
China
Prior art keywords
identification information
file identification
file
equipment
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010088395.0A
Other languages
Chinese (zh)
Inventor
胡兴楠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Koubei Shanghai Information Technology Co Ltd
Original Assignee
Koubei Shanghai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Koubei Shanghai Information Technology Co Ltd filed Critical Koubei Shanghai Information Technology Co Ltd
Priority to CN202010088395.0A priority Critical patent/CN111400775A/en
Publication of CN111400775A publication Critical patent/CN111400775A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/71Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure computing or processing of information
    • G06F21/73Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure computing or processing of information by creating or determining hardware identification, e.g. serial numbers

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Theoretical Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a device identification method, which comprises the following steps: receiving first file identification information of first equipment sent by a client; acquiring prestored second file identification information; judging whether a second device matched with the first device exists or not according to the first file identification information and the second file identification information; and if so, sending the identification information of the second equipment to the client. By adopting the method, the problem that the device identification obtained by the application software is unstable in the prior art is solved.

Description

Equipment identification method, device and equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for identifying two devices, an electronic device, and a computer-readable storage medium.
Background
At present, most mobile application service scenes need to identify equipment corresponding to application software, and after the application software is installed, if the equipment can be accurately identified, information such as operation records in front of the equipment can be acquired, so that service can be better provided for the service scenes.
In the prior art, application software developed on an Android system can acquire an IMEI number through a system interface to identify equipment, but newly released Android Q strengthens privacy authority, and the application software cannot acquire the IMEI number; apple iOS devices use UDID (unique Device identifier) as a unique identifier with which the mobile network can identify the mobile Device, but from iOS5.0 (8 months of 2011), apple announces that obtaining the UDID of the Device using the unique identifier method will no longer be supported. Currently, apple provides a method using an advertisement identifier (IDFA-identifier for identifier) as a device identifier, but the device identifier obtained by this method is not stable, the user may manually close the option, and the application software may not obtain the advertisement identifier.
Therefore, the prior art has the problem that the device identification obtained by the application software is unstable.
Disclosure of Invention
The embodiment of the invention provides a device identification method and device, and aims to solve the problem that in the prior art, the device identification obtained by application software is unstable.
In a first aspect, an embodiment of the present invention provides an apparatus identification method, including: receiving first file identification information of first equipment sent by a client; acquiring prestored second file identification information; judging whether a second device matched with the first device exists or not according to the first file identification information and the second file identification information; and if so, sending the identification information of the second equipment to the client.
As an embodiment, the first file identification information is encoding information of characteristic information of a file stored on the first device; the second file identification information is coding information of the characteristic information of the file stored on the device corresponding to the second file identification information.
As an embodiment, the determining whether there is a second device matching the first device according to the first file identification information and the second file identification information includes: judging whether second file identification information matched with the first file identification information exists or not; if yes, determining that second equipment matched with the first equipment exists; the second equipment is equipment corresponding to second file identification information matched with the first file identification information; and if not, determining that no second equipment matched with the first equipment exists.
As an embodiment, the determining whether there is second file identification information matching the first file identification information includes: judging whether second file identification information with the similarity larger than a preset similarity threshold exists or not; if so, determining that second file identification information matched with the first file identification information exists; and if not, determining that second file identification information matched with the first file identification information does not exist.
As an implementation manner, the embodiment of the present invention further includes: receiving first system identification information of first equipment sent by a client; the first system identification information refers to system information for identifying the first device.
As an embodiment, the determining whether there is a second device matching the first device according to the first file identification information and the second file identification information includes: and judging whether a second device matched with the first device exists or not according to the first file identification information, the second file identification information, the first system identification information and pre-stored second system identification information.
As an embodiment, the determining whether there is a second device matching the first device according to the first file identification information and the second file identification information, and the first system identification information and pre-stored second system identification information includes: judging whether second file identification information with the similarity larger than a preset similarity threshold exists or not; if so, determining that second file identification information matched with the first file identification information exists; judging whether the first system identification information is consistent with second system identification information corresponding to second file identification information matched with the first file identification information; when the first system identification information is judged to be consistent with the second system identification information, determining that a second device matched with the first device exists; and when the first system identification information is judged to be inconsistent with the second system identification information, determining that no second equipment matched with the first equipment exists.
As an implementation manner, the embodiment of the present invention further includes: and when a second device matched with the first device exists, updating the second file identification information into the first file identification information.
As an implementation manner, the embodiment of the present invention further includes: storing the first file identification information and the first system identification information when there is no second device matching the first device.
In a second aspect, an apparatus identification method according to an embodiment of the present invention includes: acquiring characteristic information of a file stored by first equipment; obtaining first file identification information of the first equipment according to the characteristic information of the file stored by the first equipment; sending the first file identification information to a server; and receiving the identification information of the second equipment matched with the first equipment, which is sent by the server.
As an embodiment, the obtaining first file identification information of the first device according to the feature information of the file stored in the first device includes: and encoding the characteristic information of the file stored on the first device to generate the first file identification information.
As an embodiment, the obtaining the feature information of the file stored by the first device includes: acquiring images in a user album within a preset time period; the encoding the feature information of the file to generate the first file identification information includes: and encoding the image in the preset time period to generate the first file identification information.
As an embodiment, the encoding the image within the preset time period and generating the first file identification information includes: and generating an MD5 code according to the image in the preset time period, wherein the MD5 code is used as the first file identification information.
As an embodiment, the generating MD5 code according to the image within the preset time period, using the MD5 code as the first file identification information, includes: the generating of the MD5 code according to the image in the preset time period, taking the MD5 code as the first file identification information, comprises: acquiring unit time for aggregating the images in the preset time period and the number of the unit time contained in the preset time period; aggregating the images in the preset time period by taking unit time as a unit to generate an image set of the number of the unit time contained in the preset time period; generating an MD5 code for each image set; and merging the MD5 codes of the number of the unit time included in the preset time period to generate the first file identification information.
In one embodiment, the preset time period and the unit time are obtained from a server.
As an implementation manner, the embodiment of the present invention further includes:
sending first system identification information of first equipment to a server; the first system identification information is system information for identifying the first device.
In a third aspect, an embodiment of the present invention provides an apparatus for identifying a device, including: the first file identification information receiving unit is used for receiving first file identification information of the first equipment, which is sent by the client; a second file identification information obtaining unit configured to obtain second file identification information stored in advance; the judging unit is used for judging whether a second device matched with the first device exists or not according to the first file identification information and the second file identification information; and the identification information sending unit is used for sending the identification information of the second equipment to the client when the output of the judging unit is yes.
As an embodiment, the first file identification information is encoding information of characteristic information of a file stored on the first device; the second file identification information is coding information of the characteristic information of the file stored on the device corresponding to the second file identification information.
As an embodiment, the determining unit is specifically configured to: judging whether second file identification information matched with the first file identification information exists or not; if yes, determining that second equipment matched with the first equipment exists; the second equipment is equipment corresponding to second file identification information matched with the first file identification information; and if not, determining that no second equipment matched with the first equipment exists.
As an embodiment, the determining unit is specifically configured to: judging whether second file identification information with the similarity larger than a preset similarity threshold exists or not; if so, determining that second file identification information matched with the first file identification information exists; and if not, determining that second file identification information matched with the first file identification information does not exist.
As an embodiment, the identification means of the device further comprises: the first system identification information receiving unit is used for receiving first system identification information of the first equipment sent by the client; the first system identification information refers to system information for identifying the first device.
As an embodiment, the determining unit is specifically configured to: and judging whether a second device matched with the first device exists or not according to the first file identification information, the second file identification information, the first system identification information and pre-stored second system identification information.
As an embodiment, the determining unit is specifically configured to: judging whether second file identification information with the similarity larger than a preset similarity threshold exists or not; if so, determining that second file identification information matched with the first file identification information exists; judging whether the first system identification information is consistent with second system identification information corresponding to second file identification information matched with the first file identification information; when the first system identification information is judged to be consistent with the second system identification information, determining that a second device matched with the first device exists; and when the first system identification information is judged to be inconsistent with the second system identification information, determining that no second equipment matched with the first equipment exists.
As an embodiment, the identification means of the device further comprises: a first file identification information updating unit configured to update, when there is a second device that matches the first device, the second file identification information to the first file identification information.
As an embodiment, the identification means of the device further comprises: an identification information storage unit configured to store the first file identification information and the first system identification information when there is no second device matching the first device.
In a fourth aspect, an embodiment of the present invention provides an electronic device, where the electronic device includes: a processor;
a memory for storing a program which, when read and executed by the processor, performs the method of the first aspect as described in embodiments of the invention.
In a fifth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the method according to the first aspect.
In a sixth aspect, an embodiment of the present invention provides an apparatus for identifying a device, including: a characteristic information obtaining unit configured to obtain characteristic information of a file stored by the first device; a first file identification information obtaining unit, configured to obtain first file identification information of the first device according to the feature information of the file stored in the first device; the first file identification information sending unit is used for sending the first file identification information to a server; and the identification information receiving unit is used for receiving the identification information of the second equipment matched with the first equipment, which is sent by the server.
As an embodiment, the first file identification information obtaining unit is specifically configured to: and encoding the characteristic information of the file stored on the first device to generate the first file identification information.
As an embodiment, the feature information obtaining unit is specifically configured to: acquiring images in a user album within a preset time period; the first file identification information obtaining unit is specifically configured to: and encoding the image in the preset time period to generate the first file identification information.
As an embodiment, the first file identification information obtaining unit is specifically configured to: and generating an MD5 code according to the image in the preset time period, wherein the MD5 code is used as the first file identification information.
As an embodiment, the first file identification information obtaining unit is specifically configured to: acquiring unit time for aggregating the images in the preset time period and the number of the unit time contained in the preset time period; aggregating the images in the preset time period by taking unit time as a unit to generate an image set of the number of the unit time contained in the preset time period; generating an MD5 code for each image set; and merging the MD5 codes of the number of the unit time included in the preset time period to generate the first file identification information.
In one embodiment, the preset time period and the unit time are obtained from a server.
As an embodiment, the apparatus further comprises: the first system identification information sending unit is used for sending first system identification information of the first equipment to the server; the first system identification information is system information for identifying the first device.
As an embodiment, the apparatus further comprises: and the identification information receiving unit is used for receiving the identification information of the second equipment matched with the first equipment, which is sent by the server.
In a seventh aspect, an embodiment of the present invention provides an electronic device, where the electronic device includes: a processor;
a memory for storing a program which, when read and executed by the processor, performs the method of the second aspect.
In an eighth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the method according to the second aspect.
Compared with the prior art, the invention has the following advantages:
the invention provides an equipment identification method.A server receives first file identification information of first equipment sent by a client; acquiring prestored second file identification information; judging whether a second device matched with the first device exists or not according to the first file identification information and the second file identification information; and if so, sending the identification information of the second equipment to the client. The identification information of the second equipment is stored in the server, the identification information of the second equipment matched with the first equipment is sent to the client according to the matching result, and the identification information of the second equipment obtained by the client is stored in the server and cannot be deleted by a user, so that the stability of equipment identification can be ensured.
Drawings
Fig. 1 is a flowchart of an apparatus identification method according to a first embodiment of the present invention.
Fig. 2 is a flowchart of an apparatus identification method according to a second embodiment of the present invention.
Fig. 3 is a system interaction diagram of an apparatus identification method according to an embodiment of the present invention.
Fig. 4 is a schematic diagram of an identification device of an apparatus according to a third embodiment of the present invention.
Fig. 5 is a schematic diagram of an electronic device according to a fourth embodiment of the present invention.
Fig. 6 is a schematic diagram of an identification device of an apparatus according to a sixth embodiment of the present invention.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein, but rather construed as limited to the embodiments set forth herein.
A first embodiment of the present invention provides a method for identifying a device, which is described below with reference to fig. 1.
As shown in fig. 1, in step S101, first file identification information of a first device sent by a client is received.
The client refers to a newly installed client on the first device.
The first device is a device provided with a client. The first device may be an electronic device such as a mobile phone and a tablet computer.
The first file identification information may be characteristic information of a file stored on the first device; the first file identification information may also be encoded information of characteristic information of a file stored on the first device. The characteristic information of the file may be name information of the file, content information of the file, or other attribute information of the file. For example, the first file identification information may be an MD5 code derived from an image in an album on the first device.
As shown in fig. 1, in step S102, second file identification information of the second device stored in advance is obtained.
The second device is a device already recorded by the server, the server allocates identification information for the second device, stores second file identification information of the second device, and the server can also record historical operation behavior information of a user of the second device and other information of the second device.
The second file identification information may be encoding information of characteristic information of a file stored on the second device. The second file identification information is generated in the same manner as the first file identification information. For example, if the first file identification information is obtained as follows: the method comprises the steps that a client side of first equipment firstly obtains photos stored on the first equipment in the last two years, then the photos are aggregated according to day units, an image set is generated by every day of photos, each image set generates an MD5 value, 365 x 2 MD5 values are generated in total, and the 365 x 2 MD5 values serve as first file identification information; the second file identification information is obtained as follows: the client of the second device firstly obtains the photos stored on the second device in the last two years, then aggregates the photos according to day units, generates an image set from the photos in each day, generates an MD5 value from each image set, generates 365 x 2 MD5 values in total, and takes 365 x 2 MD5 values as second file identification information.
As shown in fig. 1, in step S103, it is determined whether there is a second device matching the first device according to the first file identification information and the second file identification information.
The judging whether a second device matched with the first device exists according to the first file identification information and the second file identification information comprises the following steps:
judging whether second file identification information matched with the first file identification information exists or not;
if yes, determining that second equipment matched with the first equipment exists; the second equipment is equipment corresponding to second file identification information matched with the first file identification information;
and if not, determining that no second equipment matched with the first equipment exists.
The determining whether there is second file identification information that matches the first file identification information includes:
judging whether second file identification information with the similarity larger than a preset similarity threshold exists or not;
if so, determining that second file identification information matched with the first file identification information exists;
and if not, determining that second file identification information matched with the first file identification information does not exist.
Since the file information on the first device of the user may change, even if the first device and the second device are the same device, there may be some differences between the first file identification information and the second file identification information, so a reasonable similarity threshold may be set, and as long as the similarity between the first file identification information and the second file identification information is greater than the similarity threshold, it is determined that the first device and the second device are matched, that is, the first device and the second device are the same device.
For example, if the similarity threshold is set to 90%, and if the first file identification information 365 × 2 MD5 values and the second file identification information is also 365 × 2 MD5 values, when the MD5 value of the first file identification information and the MD5 value of the second file identification information are similar to each other by 90% or more, it is determined that the first device and the second device are matched; and when the value of the MD5 of the first file identification information is less than 90% of the value of the MD5 of the second file identification information, judging that the first device is not matched with the second device.
In order to more accurately match the first device and the second device, in addition to comparing the first file identification information and the second file identification information, a comparison of the first system identification information and the second system identification information may be performed, and when both the file identification information and the system identification information match, the first device and the second device are determined to match.
As an implementation manner, the server may further receive first system identification information of the first device, which is sent by the client; the first system identification information refers to system information for identifying the first device.
The first system identification information includes: the model of the first device, the version of the operating system, the bluetooth version, etc.
The judging whether a second device matched with the first device exists according to the first file identification information and the second file identification information comprises the following steps:
the determining whether a second device matched with the first device exists according to the first file identification information and the second file identification information, and the first system identification information and pre-stored second system identification information includes:
judging whether second file identification information with the similarity larger than a preset similarity threshold exists or not;
if so, determining that second file identification information matched with the first file identification information exists;
judging whether the first system identification information is consistent with second system identification information corresponding to second file identification information matched with the first file identification information;
when the first system identification information is judged to be consistent with the second system identification information, determining that a second device matched with the first device exists;
and when the first system identification information is judged to be inconsistent with the second system identification information, determining that no second equipment matched with the first equipment exists.
According to the method, the similarity between the second file identification information and the first file identification information is judged firstly, when the similarity is larger than the similarity threshold value, whether the first system identification information is consistent with the second system identification information is judged, and when the similarity is consistent with the second system identification information, the first equipment is matched with the second equipment, so that the correctness of the matching result of the first equipment and the second equipment is ensured, and the uniqueness of equipment identification is ensured.
As shown in fig. 1, in step S104, when the result of step S103 is yes, the identification information of the second device is sent to the client.
The identification information of the second device is stored in the server, and may refer to a record number of the second device in a database storing information of the second device.
As an implementation, the first embodiment of the present invention further includes: and updating the second file identification information to the first file identification information when the first device is matched with the second device.
The second file identification information is updated to the first file identification information, so that the latest file identification information is ensured to be stored by the server.
As an implementation, the first embodiment of the present invention further includes:
storing the first file identification information and the first system identification information when the first device and the second device do not match.
If the first device cannot be matched with the second device, the server side does not store the information of the first device, the first device is stored in the server side as a new device, a new identification information is distributed to the first device, and the first file identification information and the first system identification information are stored.
A second embodiment of the present invention provides a device identification method, an execution subject of which is a client, and the following description is made with reference to fig. 2.
As shown in fig. 2, in step S201, characteristic information of a file stored by the first device is obtained.
The client is a client newly installed on the first device.
The feature information of the file stored in the first device may be name information of the file, content information of the file, or other attribute information of the file.
In order not to violate the privacy of the user, the authority to read the file information of the user may be obtained before obtaining the characteristic information of the file stored in the first device, and the characteristic information of the file may be obtained after obtaining the permission of the user.
As shown in fig. 2, in step S202, first file identification information of the first device is obtained according to the feature information of the file stored in the first device.
The first file identification information may be characteristic information of a file stored on the first device; the first file identification information may also be encoded information of characteristic information of a file stored on the first device. For example, the first file identification information may be an MD5 code derived from an image in an album on the first device.
The obtaining of the first file identification information of the first device according to the feature information of the file stored by the first device includes:
and encoding the characteristic information of the file stored on the first device to generate the first file identification information.
The obtaining of the feature information of the file stored by the first device includes: acquiring images in a user album within a preset time period;
the encoding the feature information of the file to generate the first file identification information includes:
and encoding the image in the preset time period to generate the first file identification information.
The preset time period can be obtained from the configuration of the server. For example, the preset time period may be the last 2 years, and the images in the user album within the preset time period are acquired, that is, the images in the user album in the last 2 years are acquired.
The encoding the image in the preset time period to generate the first file identification information includes:
and generating an MD5 code according to the image in the preset time period, wherein the MD5 code is used as the first file identification information.
The generating of the MD5 code according to the image in the preset time period, taking the MD5 code as the first file identification information, comprises:
determining the unit time for aggregating the images in the preset time period and the number of the unit time contained in the preset time period;
aggregating the images in the preset time period by taking unit time as a unit to generate an image set of the number of the unit time contained in the preset time period;
generating an MD5 code for each image set;
and merging the MD5 codes of the number of the unit time included in the preset time period to generate the first file identification information.
The unit time can be obtained from the configuration of the server.
For example, the client acquires photos stored on the first device in the last two years, the unit time is day, the photos are aggregated according to the day unit, an image set is generated by the photos in each day, each image set generates an MD5 value, a total of 365 × 2 MD5 values are generated, and the 365 × 2 MD5 values serve as the first file identification information.
As shown in fig. 2, in step S203, the first file identification information is sent to the server.
And the client sends the first file identification information to the server, and preconditions are provided for the server to perform equipment matching.
As an implementation manner, the embodiment of the present invention may further include:
the client sends first system identification information of first equipment to the server; the first system identification information is system information for identifying the first device.
The first system identification information includes: the model of the first device, the version of the operating system, the bluetooth version, etc.
The first system identification information of the first device may be obtained by:
a client sends a request for acquiring first system identification information to a system;
and receiving the first system identification information returned by the system.
As shown in fig. 2, in step S204, the identification information of the second device matching the first device and sent by the server is received.
In the second embodiment of the invention, the first file identification information is sent to the server side through the client side, and a precondition is provided for the server side to carry out equipment matching.
To illustrate the embodiments of the present invention more clearly, an example scenario of an interaction between a server and a client, which is constructed according to the method for identifying a device in the embodiments of the present invention, is described below.
As shown in fig. 3, in step 1, a user installs a client;
in step 2, the client is started;
in step 3, the client acquires the photo album permission;
in step 4.1, the client sends a request for obtaining the configuration information related to the time to the server;
in step 4.2, the server side returns configuration information related to time to the client side;
in step 5, the client side aggregates the album content according to the configuration to generate a first file identification information MD5 value;
in step 6.1, the client sends a request for acquiring the first system identification information to the system;
in step 6.2, the system returns the first system identification information to the client;
in step 7, the client sends the first file identification information and the first system identification information to the server;
in step 8, the server judges whether a second device matched with the first device exists or not according to the first file identification information and the first system identification information;
in step 9, the identification information of the second device is sent to the client.
Corresponding to the method for identifying a device provided in the first embodiment of the present invention, a third embodiment of the present invention also provides an apparatus for identifying a device.
As shown in fig. 4, the identification apparatus of the device includes:
a first file identification information receiving unit 401, configured to receive first file identification information of a first device sent by a client;
a second file identification information obtaining unit 402 for obtaining second file identification information stored in advance;
a determining unit 403, configured to determine whether a second device matching the first device exists according to the first file identification information and the second file identification information;
an identification information sending unit 404, configured to send the identification information of the second device to the client when the output of the judging unit is yes.
As an embodiment, the first file identification information is encoding information of characteristic information of a file stored on the first device; the second file identification information is coding information of the characteristic information of the file stored on the device corresponding to the second file identification information.
As an embodiment, the determining unit is specifically configured to:
judging whether second file identification information matched with the first file identification information exists or not;
if yes, determining that second equipment matched with the first equipment exists; the second equipment is equipment corresponding to second file identification information matched with the first file identification information;
and if not, determining that no second equipment matched with the first equipment exists.
As an embodiment, the determining unit is specifically configured to:
judging whether second file identification information with the similarity larger than a preset similarity threshold exists or not;
if so, determining that second file identification information matched with the first file identification information exists;
and if not, determining that second file identification information matched with the first file identification information does not exist.
As an embodiment, the identification means of the device further comprises:
the first system identification information receiving unit is used for receiving first system identification information of the first equipment sent by the client; the first system identification information refers to system information for identifying the first device.
As an embodiment, the determining unit is specifically configured to:
and judging whether a second device matched with the first device exists or not according to the first file identification information, the second file identification information, the first system identification information and pre-stored second system identification information.
As an embodiment, the determining unit is specifically configured to:
judging whether second file identification information with the similarity larger than a preset similarity threshold exists or not;
if so, determining that second file identification information matched with the first file identification information exists;
judging whether the first system identification information is consistent with second system identification information corresponding to second file identification information matched with the first file identification information;
when the first system identification information is judged to be consistent with the second system identification information, determining that a second device matched with the first device exists;
and when the first system identification information is judged to be inconsistent with the second system identification information, determining that no second equipment matched with the first equipment exists.
As an embodiment, the identification means of the device further comprises:
a first file identification information updating unit configured to update, when there is a second device that matches the first device, the second file identification information to the first file identification information.
As an embodiment, the identification means of the device further comprises:
an identification information storage unit configured to store the first file identification information and the first system identification information when there is no second device matching the first device.
It should be noted that, for the detailed description of the apparatus provided in the third embodiment of the present invention, reference may be made to the related description of the first embodiment of the present application, and details are not repeated here.
Corresponding to the method for identifying a device provided in the first embodiment of the present invention, a fourth embodiment of the present invention also provides an electronic device.
As shown in fig. 5, the electronic device includes:
a processor 501;
a memory 502 for storing a program which, when read and executed by the processor, performs the method of the first embodiment of the invention.
It should be noted that, for the detailed description of the electronic device provided in the fourth embodiment of the present invention, reference may be made to the related description of the first embodiment of the present invention, and details are not repeated here.
In correspondence with the method for identifying a device according to the first embodiment of the present invention, a fifth embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, performs the method according to the first embodiment of the present invention.
It should be noted that, for the detailed description of the computer-readable storage medium provided in the fifth embodiment of the present invention, reference may be made to the related description of the first embodiment of the present invention, and details are not described here again.
Corresponding to the method for identifying a device provided in the second embodiment of the present invention, a sixth embodiment of the present invention also provides an apparatus for identifying a device.
As shown in fig. 6, the identification apparatus of the device includes:
a characteristic information obtaining unit 601 configured to obtain characteristic information of a file stored by a first device;
a first file identification information obtaining unit 602, configured to obtain first file identification information of the first device according to the feature information of the file stored in the first device;
a first file identification information sending unit 603, configured to send the first file identification information to the server.
An identification information receiving unit 604, configured to receive identification information of a second device that is matched with the first device and sent by the server.
As an embodiment, the first file identification information obtaining unit is specifically configured to:
and encoding the characteristic information of the file stored on the first device to generate the first file identification information.
As an embodiment, the feature information obtaining unit is specifically configured to: acquiring images in a user album within a preset time period;
the first file identification information obtaining unit is specifically configured to:
and encoding the image in the preset time period to generate the first file identification information.
As an embodiment, the first file identification information obtaining unit is specifically configured to:
and generating an MD5 code according to the image in the preset time period, wherein the MD5 code is used as the first file identification information.
As an embodiment, the first file identification information obtaining unit is specifically configured to:
acquiring unit time for aggregating the images in the preset time period and the number of the unit time contained in the preset time period;
aggregating the images in the preset time period by taking unit time as a unit to generate an image set of the number of the unit time contained in the preset time period;
generating an MD5 code for each image set;
and merging the MD5 codes of the number of the unit time included in the preset time period to generate the first file identification information.
In one embodiment, the preset time period and the unit time are obtained from a server.
As an embodiment, the apparatus further comprises:
the first system identification information sending unit is used for sending first system identification information of the first equipment to the server; the first system identification information is system information for identifying the first device.
As an embodiment, the apparatus further comprises:
and the identification information receiving unit is used for receiving the identification information of the second equipment matched with the first equipment, which is sent by the server.
It should be noted that, for the detailed description of the apparatus provided in the seventh embodiment of the present invention, reference may be made to the related description of the second embodiment of the present invention, and details are not described here again.
Corresponding to the method for identifying a device provided in the second embodiment of the present invention, a seventh embodiment of the present invention also provides an electronic device.
As shown in fig. 5, the electronic device includes:
a processor 501;
a memory 502 for storing a program which, when read and executed by the processor, performs the method of the second embodiment of the invention.
It should be noted that, for the detailed description of the electronic device provided in the seventh embodiment of the present invention, reference may be made to the related description of the second embodiment of the present invention, and details are not described here again.
In correspondence with the method for identifying a device according to the second embodiment of the present invention, a computer-readable storage medium is further provided according to an eighth embodiment of the present invention, wherein the computer-readable storage medium stores a computer program, and the computer program, when executed by a processor, performs the method according to the second embodiment of the present invention.
It should be noted that, for the detailed description of the computer-readable storage medium provided in the eighth embodiment of the present invention, reference may be made to the related description of the second embodiment of the present invention, and details are not described here again.
Although the present application has been described with reference to the preferred embodiments, it is not intended to limit the present application, and those skilled in the art can make variations and modifications without departing from the spirit and scope of the present application, therefore, the scope of the present application should be determined by the claims that follow.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory computer readable media (transient media), such as modulated data signals and carrier waves.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.

Claims (10)

1. A method for identifying a device, comprising:
receiving first file identification information of first equipment sent by a client;
acquiring prestored second file identification information;
judging whether a second device matched with the first device exists or not according to the first file identification information and the second file identification information;
and if so, sending the identification information of the second equipment to the client.
2. The method according to claim 1, wherein the first file identification information is encoded information of characteristic information of a file stored on the first device; the second file identification information is coding information of the characteristic information of the file stored on the device corresponding to the second file identification information.
3. The method of claim 1, wherein determining whether a second device matching the first device exists according to the first file identification information and the second file identification information comprises:
judging whether second file identification information matched with the first file identification information exists or not;
if yes, determining that second equipment matched with the first equipment exists; the second equipment is equipment corresponding to second file identification information matched with the first file identification information;
and if not, determining that no second equipment matched with the first equipment exists.
4. A method for identifying a device, comprising:
acquiring characteristic information of a file stored by first equipment;
obtaining first file identification information of the first equipment according to the characteristic information of the file stored by the first equipment;
sending the first file identification information to a server;
and receiving the identification information of the second equipment matched with the first equipment, which is sent by the server.
5. An apparatus identification device, comprising:
the first file identification information receiving unit is used for receiving first file identification information of the first equipment, which is sent by the client;
a second file identification information obtaining unit configured to obtain second file identification information stored in advance;
the judging unit is used for judging whether a second device matched with the first device exists or not according to the first file identification information and the second file identification information;
and the identification information sending unit is used for sending the identification information of the second equipment to the client when the output of the judging unit is yes.
6. An electronic device, characterized in that the electronic device comprises:
a processor;
a memory for storing a program that, when read and executed by the processor, performs the method of any one of claims 1-3.
7. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-3.
8. An apparatus identification device, comprising:
a characteristic information obtaining unit configured to obtain characteristic information of a file stored by the first device;
a first file identification information obtaining unit, configured to obtain first file identification information of the first device according to the feature information of the file stored in the first device;
the first file identification information sending unit is used for sending the first file identification information to a server;
and the identification information receiving unit is used for receiving the identification information of the second equipment matched with the first equipment, which is sent by the server.
9. An electronic device, characterized in that the electronic device comprises:
a processor;
a memory for storing a program which, when read and executed by the processor, performs the method of claim 4.
10. A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, performs the method of claim 4.
CN202010088395.0A 2020-02-12 2020-02-12 Equipment identification method, device and equipment Pending CN111400775A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010088395.0A CN111400775A (en) 2020-02-12 2020-02-12 Equipment identification method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010088395.0A CN111400775A (en) 2020-02-12 2020-02-12 Equipment identification method, device and equipment

Publications (1)

Publication Number Publication Date
CN111400775A true CN111400775A (en) 2020-07-10

Family

ID=71428364

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010088395.0A Pending CN111400775A (en) 2020-02-12 2020-02-12 Equipment identification method, device and equipment

Country Status (1)

Country Link
CN (1) CN111400775A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107273456A (en) * 2017-06-01 2017-10-20 四川新网银行股份有限公司 A kind of accurate recognition methods of multi dimensional analysis intelligent terminal feature
CN107770805A (en) * 2016-08-22 2018-03-06 腾讯科技(深圳)有限公司 The decision method and device of the identification information of terminal
CN107908666A (en) * 2017-10-23 2018-04-13 北京京东尚科信息技术有限公司 A kind of method and apparatus of identification equipment mark
CN109800560A (en) * 2018-12-19 2019-05-24 同盾控股有限公司 A kind of device identification method and device
CN109951289A (en) * 2019-01-25 2019-06-28 北京三快在线科技有限公司 A kind of recognition methods, device, equipment and readable storage medium storing program for executing
CN109981804A (en) * 2017-12-28 2019-07-05 ***通信集团安徽有限公司 Generation, recognition methods, system, equipment and the medium of terminal device identification id
CN110427785A (en) * 2019-07-23 2019-11-08 腾讯科技(深圳)有限公司 Acquisition methods and device, the storage medium and electronic device of device-fingerprint

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107770805A (en) * 2016-08-22 2018-03-06 腾讯科技(深圳)有限公司 The decision method and device of the identification information of terminal
CN107273456A (en) * 2017-06-01 2017-10-20 四川新网银行股份有限公司 A kind of accurate recognition methods of multi dimensional analysis intelligent terminal feature
CN107908666A (en) * 2017-10-23 2018-04-13 北京京东尚科信息技术有限公司 A kind of method and apparatus of identification equipment mark
CN109981804A (en) * 2017-12-28 2019-07-05 ***通信集团安徽有限公司 Generation, recognition methods, system, equipment and the medium of terminal device identification id
CN109800560A (en) * 2018-12-19 2019-05-24 同盾控股有限公司 A kind of device identification method and device
CN109951289A (en) * 2019-01-25 2019-06-28 北京三快在线科技有限公司 A kind of recognition methods, device, equipment and readable storage medium storing program for executing
CN110427785A (en) * 2019-07-23 2019-11-08 腾讯科技(深圳)有限公司 Acquisition methods and device, the storage medium and electronic device of device-fingerprint

Similar Documents

Publication Publication Date Title
CN110188096B (en) Index creating method, device and equipment for data record
CN110058873B (en) Application page updating method, device, equipment and storage medium
CN110362547B (en) Method and device for encoding, analyzing and storing log file
CN110837502B (en) Data storage method, device and equipment in block chain type account book
CN106897342B (en) Data verification method and equipment
CN111046069B (en) Aggregation calculation method, device and equipment in block chain type account book
CN109710286B (en) System upgrading method, device, equipment and storage medium
CN110347679B (en) Data storage method, device and equipment based on receipt
CN110474775B (en) User creating method, device and equipment in block chain type account book
CN114328029B (en) Backup method and device of application resources, electronic equipment and storage medium
CN110597461B (en) Data storage method, device and equipment in block chain type account book
CN106878365B (en) data synchronization method and device
CN110727679A (en) Cooperative tracking method, system, device and equipment for court case
CN110750533A (en) Data storage method, device and equipment based on multiple service attributes
CN110928946A (en) Document editing method and device and terminal equipment
EP3816836A1 (en) Service execution method and apparatus
CN111400775A (en) Equipment identification method, device and equipment
CN110636042B (en) Method, device and equipment for updating verified block height of server
CN111444194B (en) Method, device and equipment for clearing indexes in block chain type account book
US11086849B2 (en) Methods and systems for reading data based on plurality of blockchain networks
CN110688664B (en) Authority management method, device and equipment in block chain type account book
CN108848178B (en) Data downloading method and device
CN111444215A (en) Blocking method, device and equipment in block chain type account book
CN109413176B (en) Report downloading method and device
CN107844491B (en) Method and equipment for realizing strong consistency read operation in distributed system

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