CN112784318A - Method, device and storage medium for generating unique identification code of equipment - Google Patents
Method, device and storage medium for generating unique identification code of equipment Download PDFInfo
- Publication number
- CN112784318A CN112784318A CN201911081537.4A CN201911081537A CN112784318A CN 112784318 A CN112784318 A CN 112784318A CN 201911081537 A CN201911081537 A CN 201911081537A CN 112784318 A CN112784318 A CN 112784318A
- Authority
- CN
- China
- Prior art keywords
- information
- equipment
- identification code
- unique identification
- user
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 42
- 238000004422 calculation algorithm Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 4
- 238000004590 computer program Methods 0.000 description 3
- 235000007189 Oryza longistaminata Nutrition 0.000 description 1
- 240000007594 Oryza sativa Species 0.000 description 1
- 235000007164 Oryza sativa Nutrition 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000003014 reinforcing effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/70—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
- G06F21/71—Protecting 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/73—Protecting 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Mathematical Physics (AREA)
- Information Transfer Between Computers (AREA)
- Stored Programmes (AREA)
Abstract
The application discloses a method, a device and a storage medium for generating a unique identification code of equipment, which are specifically characterized in that first equipment information of user equipment is firstly obtained, then, on the basis of the first equipment information, whether second equipment information matched with the first equipment information exists or not is searched in a database, when the second equipment information is not searched, the unique identification code corresponding to the user equipment is generated according to the first equipment information, and finally, the unique identification code is sent to the user equipment corresponding to the first equipment information. According to the embodiment of the application, the unique identification code of the user equipment is generated through the first equipment information acquired from the user equipment terminal and is stored in the database. When the second device information corresponding to the first device information does not exist in the database, the unique identification code of the user device is generated according to the first device information, the unique identification code of the user device does not depend on local storage, and the reliability and uniqueness of the identification code of the user device are guaranteed.
Description
Technical Field
The present application relates to the field of internet technologies, and in particular, to a method, an apparatus, and a storage medium for generating a unique device identification code.
Background
In the internet field, the premise of ensuring the safe operation of the service is to perform the service operation according to the equipment identification code of the user equipment. Therefore, it is important to generate a reliable and unique device identification code. At present, a method for generating a unique identification code of equipment is provided in an Android system, but stability and uniqueness are not ideal due to limitations of Android system versions, Bug in a manufacturer customized system and the like. And the identification through other hardware information has problems of different degrees due to the limitation of system version, mobile phone hardware and the like. Generally, the following methods are used for generating a device unique identification code in an Android device:
1. MAC refers to a unique identification code of the device network card, which is globally unique and is generally called a physical Address, and a hardware Address is used to define the location of the device.
2. The International Mobile Equipment Identity (IMEI) is also known as the Equipment identification number (Device Id). At present, a Global System for Mobile Communications (GSM)/Wideband Code Division Multiple Access (W-CDMA)/Long Term Evolution (LTE) Mobile phone terminal needs to use an IMEI number, one Mobile phone number corresponds to one IMEI number in a single card project, and a dual-card Mobile phone corresponds to two IMEI numbers, one Mobile phone number corresponds to one Mobile phone card.
ANDROID _ ID: when the device is first operated, the system randomly generates a 64-bit number and stores the number in 16, where the 16 is the ANDROID ID, but the value changes if the handset is restored to factory settings.
4. Sequence Number (Serial Number): starting from Android 2.3, a serial number can be obtained by an Android.
UniquePsuedoID: and assembling the acquired content, such as manufacturer, model and resolution, of the hardware information of the equipment.
However, the above listed methods all have certain drawbacks, and cannot guarantee accurate identification of the device identification code of a certain user equipment. Among the disadvantages of each approach are the following:
1. the MAC address of the wireless network card: after the Android 6.0 version, when acquiring the mac address, the Android operating system interface returns the default mac address of "02:00:00:00:00:00", which is obtained by the fact that the google official disables the getSystemservice (context.WIFI _ SERVICE) method for reinforcing the authority management.
IMEI number (DeviceId): if the user forbids to make a call, the acquisition is unsuccessful, and then the user is prompted to consider the call making permission on product design, which can influence the user experience;
3.ANDROID_ID:
a. the value changes after the mobile phone is restored to factory settings;
b. in a domestic Android-customized large environment, some devices do not return Android _ IDs.
4. Serial number (serial number) no authority is required to acquire the serial number, but certain limitations exist, and junk data can occur on some mobile phones, for example, a continuous non-random number is returned by a red-rice mobile phone.
UniquePsueDoID, which is directly related to device information and may be the same if the generated content is likely to appear in devices shipped from the same lot, cannot be used to generate a unique identifier if the method is used alone.
Disclosure of Invention
The embodiment of the application provides a method for generating a unique identification code of equipment, and solves the problem that a stable and reliable unique identification code cannot be generated for user equipment.
The method comprises the following steps:
acquiring first equipment information of user equipment;
searching whether second equipment information matched with the first equipment information exists in a database or not based on the first equipment information, and generating a unique identification code corresponding to the user equipment according to the first equipment information when the second equipment information is not searched;
and sending the unique identification code to the user equipment corresponding to the first equipment information.
Optionally, according to device basic information, device software version information, device hardware information, and user setting information included in the first device information, searching whether second device information matched with the device basic information, the device software version information, the device hardware information, and the user setting information one by one exists in the data;
when the second device information is not found, calculating the similarity between the first device information and stored device information in the database, and taking the stored device information corresponding to the similarity larger than a preset threshold value as the second device information.
Optionally, the unique identifier stored in the database corresponding to the second device information is sent to the user equipment corresponding to the first device information.
Optionally, the device basic information, the device software version information, the device hardware information, and the user setting information included in the first device information are compressed to generate a message digest of the first device information, and the message digest is used as the unique identifier of the user device.
In another embodiment of the present invention, there is provided an apparatus for generating a device unique identification code, the apparatus including:
the acquisition module is used for acquiring first equipment information of user equipment;
the searching module is used for searching whether second equipment information matched with the first equipment information exists in a database based on the first equipment information, and generating a unique identification code corresponding to the user equipment according to the first equipment information when the second equipment information is not searched;
and the first sending module is used for sending the unique identification code to the user equipment corresponding to the first equipment information.
Optionally, the search module includes:
a searching subunit, configured to search, according to device basic information, device software version information, device hardware information, and user setting information included in the first device information, whether there is the second device information that is one-to-one matched with the device basic information, the device software version information, the device hardware information, and the user setting information in the data;
and the computing subunit is used for computing the similarity between the first equipment information and the stored equipment information in the database when the second equipment information is not found, and taking the stored equipment information corresponding to the similarity larger than a preset threshold value as the second equipment information.
Optionally, the apparatus further comprises:
a second sending module, configured to send the unique identifier stored in the database and corresponding to the second device information to the user equipment corresponding to the first device information.
Optionally, the search module further includes:
a generating subunit, configured to compress the device basic information, the device software version information, the device hardware information, and the user setting information included in the first device information, generate a message digest of the first device information, and use the message digest as the unique identifier of the user device.
In another embodiment of the present invention, a non-transitory computer readable storage medium is provided, storing instructions that, when executed by a processor, cause the processor to perform the steps of a method of generating a device unique identification code as described above.
In another embodiment of the present invention, a terminal device is provided, which includes a processor for executing the steps of the method for generating a device unique identification code.
Based on the embodiment, first device information of the user device is obtained, then, based on the first device information, whether second device information matched with the first device information exists or not is searched in the database, when the second device information is not searched, a unique identification code corresponding to the user device is generated according to the first device information, and finally, the unique identification code is sent to the user device corresponding to the first device information. According to the embodiment of the application, the unique identification code of the user equipment is generated through the first equipment information acquired from the user equipment terminal and is stored in the database. When the second device information corresponding to the first device information does not exist in the database, the unique identification code of the user device is generated according to the first device information, the unique identification code of the user device does not depend on local storage, and the reliability and uniqueness of the identification code of the user device are guaranteed.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a schematic flowchart illustrating a method for generating a device unique identification code according to an embodiment 100 of the present application;
fig. 2 is a schematic diagram illustrating a specific flow of a method for generating a device unique identification code according to an embodiment 200 of the present application;
fig. 3 is a schematic diagram illustrating an apparatus for generating a device unique identification code according to an embodiment 300 of the present application;
fig. 4 shows a schematic diagram of a terminal device provided in embodiment 400 of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements explicitly listed, but may include other steps or elements not explicitly listed or inherent to such process, method, article, or apparatus.
Based on the problems in the prior art, the embodiment of the application provides a method for generating a unique identification code of equipment, and the method is mainly applicable to the technical field of internet. And generating the unique identification code of the user equipment at the server side according to the acquired first equipment information of the user equipment, and storing the unique identification code in a database of the server side so that the user equipment continues to issue the unique identification code when acquiring the identification code next time, thereby ensuring the reliability and uniqueness of the identification code of the user equipment. The technical solution of the present invention is described in detail below with specific embodiments to implement a method for generating a unique device identification code. Several of the following embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Fig. 1 is a schematic flowchart of a method for generating a device unique identifier according to an embodiment 100 of the present application. The detailed steps are as follows:
and S11, acquiring first device information of the user device.
In this step, the server acquires first device information of the user device. Specifically, when the user equipment is installed for the first time or the unique identification code is not cached, the server acquires the first equipment information from the user equipment. Here, the first device information is mainly a device description about the user device, and the first device information at least and not limited to include device basic information, device software version information, device hardware information, and user setting information. The basic information of the Device includes Device ID (IMEI), pixel points, resolution, International Mobile Subscriber Identity (IMSI), kernel number, resolution, screen size, and the like; the equipment software version information comprises a system version number, a kernel version number, Android ID and the like; the hardware information of the device includes a model, a brand, a device manufacturer, a Central Processing Unit (CPU) architecture, a hardware type, a system version, motherboard information, a memory size, a processor frequency, motherboard information, and the like; the user setting information includes language setting, latitude and longitude (location) setting, user language, time zone, location, and the like.
S12, based on the first device information, searching whether second device information matched with the first device information exists in the database, and when the second device information is not searched, generating a unique identification code corresponding to the user device according to the first device information.
In this step, after the first device information of the user device is obtained, whether the second device information matched with the first device information is cached or not is searched in a database of the user device according to the first device information. The second device information is the same as the information represented by the first device information. And matching the information contained in the first equipment information with the stored equipment information in the database, and calculating the similarity between the first equipment information and each piece of stored equipment information when the second equipment information matched with the first equipment information is not found so as to further find whether the second equipment information exists in the database.
Further, if the second device information is not found in the database, the unique identification code of the user device is generated according to the first device information.
And S13, sending the unique identification code to the user equipment corresponding to the first equipment information.
In this step, the server issues the generated unique identification code to the user equipment corresponding to the first device information.
As described above, based on the above embodiment, first device information of the user equipment is first obtained, then, based on the first device information, whether second device information matching the first device information exists is searched in the database, and when the second device information is not searched, a unique identification code corresponding to the user equipment is generated according to the first device information, and finally, the unique identification code is sent to the user equipment corresponding to the first device information. According to the embodiment of the application, the unique identification code of the user equipment is generated through the first equipment information acquired from the user equipment terminal and is stored in the database. When the second device information corresponding to the first device information does not exist in the database, the unique identification code of the user device is generated according to the first device information, the unique identification code of the user device does not depend on local storage, and the reliability and uniqueness of the identification code of the user device are guaranteed.
Fig. 2 is a schematic diagram illustrating a specific flow of a method for generating a device unique identifier according to an embodiment 200 of the present application. Wherein, the detailed process of the specific flow is as follows:
s201, first device information of the user device is obtained.
Here, the case where the server acquires the first device information of the user equipment is that the user equipment is installed for the first time or the unique identification code is not stored or erased locally in the user equipment. At this time, the server acquires first device information of the user device, including device basic information, device software version information, device hardware information, user setting information, and the like. The user equipment can upload the first equipment information to the server by using the http protocol.
S202, whether second equipment information matched with the first equipment information one by one exists or not is searched in the database.
Here, whether there is second device information that matches the device basic information, the device software version information, the device hardware information, and the user setting information one-to-one is searched for in the data based on the device basic information, the device software version information, the device hardware information, and the user setting information included in the first device information. Specifically, after acquiring first device information uploaded by the user device, the server matches device basic information, device software version information, device hardware information, and user setting information included in the first device information with each item of information included in stored device information in the database one by one, and determines the stored device information matched one by one as second device information.
And S203, calculating the similarity between the first equipment information and the stored equipment information.
Here, when the second device information is not found, the similarity between the first device information and the stored device information in the database is calculated, and the stored device information corresponding to the similarity larger than the preset threshold is used as the second device information. Specifically, when the scheme in step S202 is performed and the second device information corresponding to the first device information is not found, the server calculates the similarity between the first device information and the stored information through a similarity calculation method. Here, if the user changes the first device information of the user device and the user device already has the unique device code, at this time, the stored information with high similarity is searched in the database as the second device information by the similarity algorithm, and the unique device code corresponding to the second device information is acquired, so that the uniqueness of the user device is ensured. And the server calculates the similarity between the first equipment information and the stored equipment information through similarity algorithms such as a SimHash algorithm or a Jaccard algorithm.
And S204, judging whether the similarity value is larger than a preset threshold value.
Here, when the similarity value is higher than the preset threshold value, the stored information may be considered as the second device information corresponding to the first device information. The preset threshold may be set according to an empirical value. And according to the first equipment information, calculating the similarity through similarity algorithms such as a SimHash algorithm or a Jaccard algorithm and the like, and determining the best matching search result when the similarity value is greater than a preset threshold value.
And S205, using the stored device information corresponding to the similarity greater than the preset threshold value as second device information.
And S206, generating a unique identification code corresponding to the user equipment according to the first equipment information.
Here, the device basic information, the device software version information, the device hardware information, and the user setting information included in the first device information are compressed to generate a message digest of the first device information, and the message digest is used as a unique identification code of the user device. Can be generated according to the respectively held hash algorithm (such as md5, sha-1 and the like) to ensure the uniqueness of the generated message digest.
And S207, sending the unique identification code to the user equipment corresponding to the first equipment information.
In this step, the unique identification code stored in the database corresponding to the second device information is sent to the user device corresponding to the first device information, and the unique identification code corresponding to the user device is generated according to the first device information.
The method for generating the unique identification code of the equipment is realized based on the steps. The method comprises the steps of obtaining a data set formed by first equipment information of user equipment. Further, in a database of the server, whether a unique device code corresponding to the user equipment has been generated and cached is searched through a similarity algorithm such as SimHash or Jaccard or matching. If the matching is successful, the second equipment information corresponding to the first equipment information already exists in the database, and the server returns the matched unique identification code of the equipment to the client; if the matching fails, the user equipment is possible to be a new user, the first equipment information and the generated unique identification code are stored in a database, and the unique identification code is returned to the user equipment. The server generates a unique identification code of the user equipment and then sends the unique identification code to the user equipment, the user equipment stores the unique identification code to the local, in the subsequent using process, the user equipment preferentially obtains the unique identification code from the local cache, and if the unique identification code in the local cache is cleared, the process of re-acquiring the first equipment information and uploading the first equipment information to the server to search the unique identification code is triggered.
According to the embodiment of the application, the user equipment and the server side are matched to maintain a large amount of equipment information data through the steps, the user equipment does not completely depend on local storage, the risk that the data are erased can be avoided, and the data are sent to be acquired in real time when needed. And the server side calculates the similarity of the samples by using similarity algorithms such as SimHash or Jaccard and the like, matches the best result, and ensures the reliability and the uniqueness of the unique identification code of the user equipment.
Based on the same inventive concept, embodiment 300 of the present application further provides an apparatus for generating a unique device identification code, where as shown in fig. 3, the apparatus includes:
an obtaining module 31, configured to obtain first device information of a user device;
the searching module 32 is configured to search, based on the first device information, whether second device information matched with the first device information exists in the database, and generate a unique identification code corresponding to the user equipment according to the first device information when the second device information is not found;
the first sending module 33 is configured to send the unique identifier to the user equipment corresponding to the first device information.
In this embodiment, the specific functions and interaction manners of the obtaining module 31, the searching module 32 and the first sending module 33 can refer to the record of the embodiment corresponding to fig. 1, and are not described herein again.
The lookup module 32 includes:
the searching subunit is used for searching whether second device information matched with the device basic information, the device software version information, the device hardware information and the user setting information one by one exists in the data or not according to the device basic information, the device software version information, the device hardware information and the user setting information contained in the first device information;
and the calculating subunit is used for calculating the similarity between the first equipment information and the stored equipment information in the database when the second equipment information is not found, and taking the stored equipment information corresponding to the similarity larger than the preset threshold value as the second equipment information.
The apparatus further comprises:
and a second sending module 34, configured to send the unique identifier stored in the database and corresponding to the second device information to the user equipment corresponding to the first device information.
The lookup module 32 further includes:
and the generating subunit is used for compressing the basic device information, the software version information, the hardware information and the user setting information contained in the first device information, generating a message digest of the first device information, and using the message digest as the unique identification code of the user device.
As shown in fig. 4, another embodiment 400 of the present application further provides a terminal device, which includes a processor 401, wherein the processor 401 is configured to execute the steps of the method for generating a device unique identifier. As can also be seen from fig. 4, the terminal device provided by the above embodiment further comprises a non-transitory computer readable storage medium 402, the non-transitory computer readable storage medium 402 having stored thereon a computer program, which when executed by the processor 401, performs the above steps of a method of generating a device unique identification code. In practice, the terminal device may be one or more computers, as long as the computer-readable medium and the processor are included.
In particular, the storage medium can be a general-purpose storage medium, such as a removable disk, a hard disk, a FLASH disk, etc., and when the computer program on the storage medium is executed, the steps of the method for generating the device unique identification code can be executed. In practical applications, the computer readable medium may be included in the apparatus/device/system described in the above embodiments, or may exist alone without being assembled into the apparatus/device/system. The computer readable storage medium carries one or more programs which, when executed, perform the steps of a method of generating a device unique identification code as described above.
According to embodiments disclosed herein, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example and without limitation: 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), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing, without limiting the scope of the present disclosure. In the embodiments disclosed herein, 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.
The flowchart and block diagrams in the figures of the present application illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments disclosed herein. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not explicitly recited in the present application. In particular, the features recited in the various embodiments and/or claims of the present application may be combined and/or coupled in various ways, all of which fall within the scope of the present disclosure, without departing from the spirit and teachings of the present application.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present application, and are used for illustrating the technical solutions of the present application, but not limiting the same, and the scope of the present application is not limited thereto, and although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can still change or easily conceive of the technical solutions described in the foregoing embodiments or equivalent replacement of some technical features thereof within the technical scope disclosed in the present application; such changes, variations and substitutions do not depart from the spirit and scope of the exemplary embodiments of the present application and are intended to be covered by the appended claims. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (10)
1. A method of generating a device unique identification code, comprising:
acquiring first equipment information of user equipment;
searching whether second equipment information matched with the first equipment information exists in a database or not based on the first equipment information, and generating a unique identification code corresponding to the user equipment according to the first equipment information when the second equipment information is not searched;
and sending the unique identification code to the user equipment corresponding to the first equipment information.
2. The method of claim 1, wherein the step of searching the database for the existence of the second device information matching the first device information comprises:
according to the basic equipment information, the software version information, the hardware information and the user setting information which are contained in the first equipment information, searching whether second equipment information matched with the basic equipment information, the software version information, the hardware information and the user setting information exists in the data;
when the second device information is not found, calculating the similarity between the first device information and stored device information in the database, and taking the stored device information corresponding to the similarity larger than a preset threshold value as the second device information.
3. The method of claim 1, wherein after finding the second device information, the method further comprises:
and sending the unique identification code which is stored in the database and corresponds to the second equipment information to the user equipment corresponding to the first equipment information.
4. The method of claim 2, wherein the step of generating a unique identification code corresponding to the user equipment according to the first equipment information comprises:
compressing the basic device information, the software version information, the hardware information and the user setting information included in the first device information to generate a message digest of the first device information, and using the message digest as the unique identification code of the user device.
5. An apparatus for generating a device unique identification code, the apparatus comprising:
the acquisition module is used for acquiring first equipment information of user equipment;
the searching module is used for searching whether second equipment information matched with the first equipment information exists in a database based on the first equipment information, and generating a unique identification code corresponding to the user equipment according to the first equipment information when the second equipment information is not searched;
and the first sending module is used for sending the unique identification code to the user equipment corresponding to the first equipment information.
6. The apparatus of claim 5, wherein the lookup module comprises:
a searching subunit, configured to search, according to device basic information, device software version information, device hardware information, and user setting information included in the first device information, whether there is the second device information that is one-to-one matched with the device basic information, the device software version information, the device hardware information, and the user setting information in the data;
and the computing subunit is used for computing the similarity between the first equipment information and the stored equipment information in the database when the second equipment information is not found, and taking the stored equipment information corresponding to the similarity larger than a preset threshold value as the second equipment information.
7. The apparatus of claim 5, further comprising:
a second sending module, configured to send the unique identifier stored in the database and corresponding to the second device information to the user equipment corresponding to the first device information.
8. The apparatus of claim 5, wherein the lookup module further comprises:
a generating subunit, configured to compress the device basic information, the device software version information, the device hardware information, and the user setting information included in the first device information, generate a message digest of the first device information, and use the message digest as the unique identifier of the user device.
9. A non-transitory computer readable storage medium storing instructions that, when executed by a processor, cause the processor to perform the steps of a method of generating a device unique identifier as claimed in any one of claims 1 to 4.
10. A terminal device comprising a processor for performing the steps of a method of generating a device unique identification code according to any of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911081537.4A CN112784318B (en) | 2019-11-07 | 2019-11-07 | Method, device and storage medium for generating unique identification code of equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911081537.4A CN112784318B (en) | 2019-11-07 | 2019-11-07 | Method, device and storage medium for generating unique identification code of equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112784318A true CN112784318A (en) | 2021-05-11 |
CN112784318B CN112784318B (en) | 2024-09-20 |
Family
ID=75747792
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911081537.4A Active CN112784318B (en) | 2019-11-07 | 2019-11-07 | Method, device and storage medium for generating unique identification code of equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112784318B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113360178A (en) * | 2021-05-31 | 2021-09-07 | 东风商用车有限公司 | Software unique identification code generation method, device, equipment and readable storage medium |
CN116049911A (en) * | 2023-04-03 | 2023-05-02 | 上海钐昆网络科技有限公司 | Method, device, equipment and computer storage medium for generating equipment identifier |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103905438A (en) * | 2014-03-21 | 2014-07-02 | 珠海市君天电子科技有限公司 | Identification code processing method, identification code transmission method, client side, server and system |
US20150288650A1 (en) * | 2014-04-04 | 2015-10-08 | Adolfo Arguello LACAYO | Techniques for Synchronized Address Coding and Print Sequencing |
CN105871855A (en) * | 2016-04-11 | 2016-08-17 | 杨鹏 | Method and system for generating, storing and identifying identification code of electronic equipment |
CN108830113A (en) * | 2018-06-14 | 2018-11-16 | 山东浪潮通软信息科技有限公司 | A kind of acquisition methods of Android device unique identification |
CN109446791A (en) * | 2018-11-23 | 2019-03-08 | 杭州优行科技有限公司 | New equipment recognition methods, device, server and computer readable storage medium |
CN110177093A (en) * | 2019-05-22 | 2019-08-27 | 上海上湖信息技术有限公司 | A kind of equipment, equipment and recognition methods for identification carrying out identification |
CN110297956A (en) * | 2019-06-27 | 2019-10-01 | Oppo(重庆)智能科技有限公司 | Generate method and system, the computer storage medium of product ID |
-
2019
- 2019-11-07 CN CN201911081537.4A patent/CN112784318B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103905438A (en) * | 2014-03-21 | 2014-07-02 | 珠海市君天电子科技有限公司 | Identification code processing method, identification code transmission method, client side, server and system |
US20150288650A1 (en) * | 2014-04-04 | 2015-10-08 | Adolfo Arguello LACAYO | Techniques for Synchronized Address Coding and Print Sequencing |
CN105871855A (en) * | 2016-04-11 | 2016-08-17 | 杨鹏 | Method and system for generating, storing and identifying identification code of electronic equipment |
CN108830113A (en) * | 2018-06-14 | 2018-11-16 | 山东浪潮通软信息科技有限公司 | A kind of acquisition methods of Android device unique identification |
CN109446791A (en) * | 2018-11-23 | 2019-03-08 | 杭州优行科技有限公司 | New equipment recognition methods, device, server and computer readable storage medium |
CN110177093A (en) * | 2019-05-22 | 2019-08-27 | 上海上湖信息技术有限公司 | A kind of equipment, equipment and recognition methods for identification carrying out identification |
CN110297956A (en) * | 2019-06-27 | 2019-10-01 | Oppo(重庆)智能科技有限公司 | Generate method and system, the computer storage medium of product ID |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113360178A (en) * | 2021-05-31 | 2021-09-07 | 东风商用车有限公司 | Software unique identification code generation method, device, equipment and readable storage medium |
CN116049911A (en) * | 2023-04-03 | 2023-05-02 | 上海钐昆网络科技有限公司 | Method, device, equipment and computer storage medium for generating equipment identifier |
Also Published As
Publication number | Publication date |
---|---|
CN112784318B (en) | 2024-09-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110737658B (en) | Data fragment storage method, device, terminal and readable storage medium | |
CN108156268B (en) | Method for acquiring device identifier, server and terminal device | |
CN108810116B (en) | Message processing method and related product | |
TWI659300B (en) | Method and device for providing equipment identification | |
EP3525410A1 (en) | Account login method, apparatus, and server | |
CN106210155B (en) | Method and device for connecting application server | |
CN107371234B (en) | Registration method, device and terminal | |
CN106713004B (en) | Router adaptation method and system | |
CN112784318B (en) | Method, device and storage medium for generating unique identification code of equipment | |
CN113342854A (en) | Method and system for generating unique ID of mobile equipment | |
US20160127176A1 (en) | Configuring an electronic device for wireless communications | |
RU2016115694A (en) | METHOD AND DEVICES FOR CALLING ON CLOUD VISITS | |
CN104504587A (en) | Advertisement monitoring method and device, electronic apparatus | |
CN109076005B (en) | VPN line switching method and device and electronic equipment | |
CN109343944B (en) | Data processing method and device for eSIM card, terminal and storage medium | |
CN109391658B (en) | Account data synchronization method and equipment, storage medium and terminal thereof | |
US9854429B2 (en) | Mobile terminal configuration method and system | |
CN106293814B (en) | Upgrading method and device | |
CN109388558A (en) | A kind of method, apparatus, equipment and storage medium managing electronic equipment | |
CN106156210B (en) | Method and device for determining application identifier matching list | |
US9779409B2 (en) | Tracking and linking mobile device activity | |
CN110780944A (en) | Application permission starting method and device and machine-readable storage medium | |
CN110691354A (en) | Device identifier management method, mobile terminal and readable storage medium | |
CN105323373A (en) | Mobile terminal, and method and device for initializing subscriber identity module card of mobile terminal | |
CN113194521B (en) | Network searching method and device for 5G communication module, computer equipment and storage medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |