CN109729158B - Method, system and storage medium for generating equipment ID identification information - Google Patents
Method, system and storage medium for generating equipment ID identification information Download PDFInfo
- Publication number
- CN109729158B CN109729158B CN201811552531.6A CN201811552531A CN109729158B CN 109729158 B CN109729158 B CN 109729158B CN 201811552531 A CN201811552531 A CN 201811552531A CN 109729158 B CN109729158 B CN 109729158B
- Authority
- CN
- China
- Prior art keywords
- equipment
- label
- information
- identification information
- server
- 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.)
- Active
Links
Images
Landscapes
- Mobile Radio Communication Systems (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention discloses a method, a system and a storage medium for generating equipment ID identification information, wherein the method for generating the equipment ID identification information comprises the steps that when an equipment end is started, the equipment end sends equipment information to a server end; after receiving the equipment information, the server generates equipment ID identification information corresponding to the equipment end, and sends the equipment ID identification information to the equipment end; and the equipment end receives and stores the equipment ID identification information. And then the server side actively confirms and distributes the equipment ID identification information of each equipment side for the second time, and then the same server accurately identifies a plurality of equipment sides with the same new model.
Description
Technical Field
The present invention relates to the field of device identification technologies, and in particular, to a method, a system, and a storage medium for generating device ID identification information.
Background
A device has a unique ID, by which it can be identified. However, in an actual usage scenario, a plurality of devices with the same unique device identification ID often appear, so that the server cannot identify which specific device is from the plurality of same device IDs.
Therefore, the prior art has defects and needs to be improved and developed.
Disclosure of Invention
The present invention provides a method, a system, and a storage medium for generating device ID identification information, aiming to solve the problem that a server cannot identify a specific device from a plurality of same device IDs because the device in the prior art only has one device ID information.
The technical scheme adopted by the invention for solving the technical problem is as follows: a method of generating device ID identification information, comprising:
when the equipment end is started, the equipment end sends equipment information to the server end;
after receiving the equipment information, the server generates equipment ID identification information corresponding to the equipment end, and sends the equipment ID identification information to the equipment end;
and the equipment end receives and stores the equipment ID identification information.
Further, when the device side is started, before the device side sends the device information to the server side, the method further includes:
device tag information for identifying a device is stored in advance in a device side.
Further, when the device side is started, sending the device information to the server side by the device side specifically includes:
when the equipment terminal is started, the equipment terminal reads pre-stored equipment label information;
the equipment end carries out MD5 operation on the read equipment label information to generate initial equipment ID identification information;
and the equipment terminal sends the equipment label information and the initial equipment ID identification information to a server terminal.
Further, after receiving the device information, the server generates device ID identification information corresponding to the device, and sends the device ID identification information to the device, specifically including:
after receiving the equipment information, the server side splices the equipment label information;
and performing MD5 operation on the spliced equipment label information to generate equipment ID identification information and sending the equipment ID identification information to an equipment end.
Further, after the server receives the device information, slice splicing the device label information specifically includes:
after receiving the equipment information, the server creates an incremental sliding window, wherein the sliding window is provided with a preset sliding window number N, the N is a positive integer which is greater than or equal to 1, and the number of the N is consistent with that of the equipment label information;
and splicing the equipment label information according to N, an equipment label 1, an equipment label 2, an equipment label N-1 and a label N.
Further, before the operation of the MD5 on the spliced device tag information to generate device ID identification information and send the device ID identification information to the device side, the method further includes:
and the server side inquires whether the spliced N, the equipment label 1, the equipment label 2, the equipment label N-1 and the equipment label N exist.
Further, after the server side inquires whether the spliced N, the device tag 1, the device tag 2, the device tag N-1, and the device tag N already exist, the method further includes:
if yes, adding 1 to the sliding window number N to form a new device label N +1, a new device label 2, a new device label N-1, a new device label N +1, a new device label N-1, a new device label N +1, a new device label N-1, a new device label N +1, and a new device label N + 1.
Further, after the server side inquires whether the spliced N, the device tag 1, the device tag 2, the device tag N-1, and the device tag N already exist, the method further includes:
and if not, performing MD5 operation on the spliced N, the device label 1, the device label 2, the device label N-1 and the label N to generate device Identification (ID) information.
The invention adopts another technical scheme for solving the technical problem as follows: a generation system of equipment ID identification information comprises an equipment end and a service end, wherein the equipment end is in communication connection with the service end;
the equipment side is used for sending equipment information to the server side when the equipment side is started, receiving equipment ID identification information and storing the equipment ID identification information;
and the server is used for generating equipment ID identification information corresponding to the equipment after receiving the equipment information and sending the equipment ID identification information to the equipment.
The invention adopts another technical scheme for solving the technical problem as follows: a storage medium storing a program for generating device ID identification information, which when executed by a processor, implements the steps of the method for generating device ID identification information as set forth in any one of the above.
Compared with the prior art, the invention provides a method, a system and a storage medium for generating equipment ID identification information, wherein the method for generating the equipment ID identification information comprises the steps that when an equipment end is started, the equipment end sends equipment information to a server end; after receiving the equipment information, the server generates equipment ID identification information corresponding to the equipment end, and sends the equipment ID identification information to the equipment end; and the equipment end receives and stores the equipment ID identification information. And then the server side actively confirms and distributes the equipment ID identification information of each equipment side for the second time, and then the same server accurately identifies a plurality of equipment sides with the same new model.
Drawings
Fig. 1 is a flowchart of a method for generating device ID identification information according to a first embodiment of the present invention.
Fig. 2 is a partial flowchart of a method for generating device ID identification information according to a first embodiment of the present invention.
Fig. 3 is a functional block diagram of a system for generating device ID identification information according to a second embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, in a first embodiment of the present invention, a method S10 for generating device ID identification information is provided, which includes:
step S12, when the device side is started, the device side sends device information to the server side;
step S13, after receiving the device information, the server generates device ID identification information corresponding to the device, and sends the device ID identification information to the device;
and step S14, the device end receives and stores the device ID identification information.
It can be understood that, in the method S10 for generating device ID identification information provided by the present invention, the device side actively sends the device information to the server side, and then receives the device ID identification information generated by the device label of the device side received by the server side correspondingly, thereby implementing the differentiation of the device ID identification information of other device sides; it should be emphasized that the device information includes device tag information and device ID identification information generated by the device side according to the device tag information.
Obviously, compared with the prior art that the server passively receives the device ID identification information, when a plurality of device terminals (having the same device ID identification information) with the same model appear in the same server service scene, the server cannot identify a specific device terminal from the plurality of same device ID identification information; in the method for generating the device ID identification information of the present invention, in S10, the device ID identification information of each device is actively confirmed and distributed by the server for the second time, thereby realizing that the same server accurately identifies a plurality of devices with the same new model.
In some embodiments, the step S12 is preceded by:
in step S11, device tag information for identifying the device is stored in advance in the device side.
It can be understood that the device end stores device tag information in advance, and the number of the device tag information is not limited and may be one or more; preferably, the number of the device tag information is not less than three; it is emphasized that the device tag information is set as a constant field. Therefore, the device label is stored in the device end in advance, so that the server end can have a wider window, and the server end can ensure that a unique device ID identification information can be confirmed and allocated to more device ends.
Referring to fig. 2, in some embodiments, the step S12 specifically includes:
step S121, when the equipment terminal is started, the equipment terminal reads pre-stored equipment label information;
step S122, the equipment end calculates the read equipment label information through MD5 to generate initial equipment ID identification information;
and step S123, the equipment terminal sends the equipment label information and the initial equipment ID identification information to a server terminal.
It should be explained that the MD5 operation is the prior art, and the specific operation manner and steps thereof are well known technologies and are not described again; meanwhile, when the equipment terminal is started, namely the server terminal needs to be connected, the pre-stored equipment label information is read, initial equipment ID identification information is generated according to the read equipment label information, and finally the equipment label information and the initial equipment ID identification information are sent to the server terminal; that is, when the device end is not started, the device end will not run the above steps; therefore, the problem that the equipment terminal which is not started occupies the server terminal resources and interferes the server terminal to distribute unique equipment ID identification information to the equipment terminal in operation is avoided.
In other embodiments, the step S13 specifically includes:
step S131, after receiving the equipment information, the server side splices the equipment label information;
and step S134, performing MD5 operation on the spliced equipment label information, generating equipment ID identification information and sending the equipment ID identification information to an equipment end.
Further, the step S131 specifically includes:
step S1311, after receiving the device information, the server creates an incremental sliding window, where the sliding window has a preset sliding window number N, where N is a positive integer greater than or equal to 1 and is consistent with the device tag information number;
and S1312, splicing the equipment labels according to the equipment label information N, the equipment label 1, the equipment label 2, the equipment label N-1 and the label N.
Further, before the step S134, the method further includes:
step S132, the server side inquires whether the spliced N, the equipment label 1, the equipment label 2, the equipment label N-1 and the equipment label N exist;
step S133a, if yes, adding 1 to the sliding window number N to form a new device label N +1, a device label 2, a device label N-1, a device label N, and a device label N +1, and sequentially circulating until the server side inquires and splices the new device label N +1, the device label 2, the device label N-1, the device label N, and the device label N +1 do not exist, or the sliding window number or the number of the sliding window number reaches the maximum value;
step S133b, if not, performs MD5 operation on N, device tag 1, device tag 2, device tag N-1, and tag N after splicing to generate device identification ID information.
It should be noted that step S133a and step S133b are parallel steps, and the two steps are not in sequence; it should be emphasized again that the operation of MD5 is prior art, and the specific operation manner and steps thereof are well known and will not be described again.
In specific implementation, when the server is connected with 2 devices, that is, the number of the device terminals is 2, and when the first device terminal is started, the device tag information and the initial device ID identification information corresponding to the device are sent to the server, the server creates an incremental sliding window, splices a piece of device tag information "1. < tag 1 >", and queries whether the spliced device tag information "1. < tag 1 >", exists.
If not, the server side converts the device label '1. < label 1 >' into device ID identification information of the first device through MD5 operation, and sends the device ID identification information to the first device side, and the first device side receives and stores the device ID identification information; if so, the server side allocates the spliced device tag information "1. < tag 1 >" to the second device, and then the server side increments the spliced device tag information "1. < tag 1 >" by 1 in an incremental sliding window, that is, increments the spliced device tag information "2. < tag 1> < tag 2 >" into new spliced device tag information, so that when only two device sides exist, the server side queries that the new spliced device tag information "2. < tag 1> < tag 2 >" does not exist, and converts the device tag "2. < tag 1> < tag 2 >" into device ID identification information of the first device through MD5 operation and sends the device ID identification information to the first device side, and the first device side receives and stores the device ID identification information.
It should be noted that, when the second device is started, the operation conditions are similar to those when the first device is started, and are not described herein again; meanwhile, when there are 3 or more than 3 devices, the implementation is similar to that when there are 2 devices, which is not described herein again; meanwhile, it should be noted that, when the service end splices the device tags, each tag may be connected by the symbol ". or", which is not limited in the present invention.
Referring to fig. 3, in a second embodiment of the present invention, a system for generating device ID identification information is provided, which includes a device 10 and a server 20, where the device 10 is in communication connection with the server 20, and the device 10 is configured to send device information to the server 20 when being started, receive the device ID identification information, and store the device ID identification information; the server 20 is configured to generate device ID identification information corresponding to the device 10 after receiving the device information, and send the device ID identification information to the device 10.
In a third embodiment of the present invention, there is provided a storage medium storing a program for generating device ID identification information, which when executed by a processor, implements the steps of the method for generating device ID identification information in the first embodiment of the present invention.
Compared with the prior art, the invention provides a method, a system and a storage medium for generating equipment ID identification information, wherein the method for generating the equipment ID identification information comprises the steps that when an equipment end is started, the equipment end sends equipment information to a server end; after receiving the equipment information, the server generates equipment ID identification information corresponding to the equipment end, and sends the equipment ID identification information to the equipment end; and the equipment end receives and stores the equipment ID identification information. And then the server side actively confirms and distributes the equipment ID identification information of each equipment side for the second time, and then the same server accurately identifies a plurality of equipment sides with the same new model.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.
Claims (5)
1. A method for generating device ID identification information, comprising:
when the equipment end is started, the equipment end sends equipment information to the server end;
after receiving the equipment information, the server generates equipment ID identification information corresponding to the equipment end, and sends the equipment ID identification information to the equipment end;
the equipment end receives and stores the equipment ID identification information;
after receiving the device information, the server generates device ID identification information corresponding to the device, and sends the device ID identification information to the device, specifically including:
after receiving the equipment information, the server side splices the equipment label information;
performing MD5 operation on the spliced equipment label information to generate equipment ID identification information and sending the equipment ID identification information to an equipment end;
after the server receives the device information, splicing the device label information specifically includes:
after receiving the equipment information, the server creates an incremental sliding window, wherein the sliding window is provided with a preset sliding window number N, the N is a positive integer which is greater than or equal to 1, and the number of the N is consistent with that of the equipment label information;
splicing the equipment label information according to N, an equipment label 1, an equipment label 2, an equipment label N-1 and a label N;
before the operation of the MD5 on the spliced device label information to generate device ID identification information and send the device ID identification information to the device side, the method further includes:
the server side inquires whether the spliced N, the equipment label 1, the equipment label 2, the equipment label N-1 and the equipment label N exist or not;
if yes, adding 1 to the sliding window number N to form a new device label N +1, a device label 2, a device label N-1, a device label N and a device label N +1, and sequentially circulating until the server side inquires and splices the new device label N +1, the device label 2, the device label N-1, the device label N and the device label N +1 do not exist, or the sliding window number or the number of the sliding window number reaches the maximum value;
and if not, performing MD5 operation on the spliced N, the device label 1, the device label 2, the device label N-1 and the label N to generate device Identification (ID) information.
2. The method for generating device ID identification information according to claim 1, wherein when the device side is started, before the device side sends device information to the server side, the method further comprises:
device tag information for identifying a device is stored in advance in a device side.
3. The method for generating device ID identification information according to claim 2, wherein, when the device side is started, the sending, by the device side, the device information to the server side specifically includes:
when the equipment terminal is started, the equipment terminal reads pre-stored equipment label information;
the equipment end carries out MD5 operation on the read equipment label information to generate initial equipment ID identification information;
and the equipment terminal sends the equipment label information and the initial equipment ID identification information to a server terminal.
4. A generation system of equipment ID identification information is characterized by comprising an equipment end and a server end, wherein the equipment end is in communication connection with the server end;
the equipment side is used for sending equipment information to the server side when the equipment side is started, receiving equipment ID identification information and storing the equipment ID identification information;
the server is used for generating equipment ID identification information corresponding to the equipment after receiving the equipment information and sending the equipment ID identification information to the equipment;
after receiving the device information, the server generates device ID identification information corresponding to the device, and sends the device ID identification information to the device, specifically including:
after receiving the equipment information, the server side splices the equipment label information;
performing MD5 operation on the spliced equipment label information to generate equipment ID identification information and sending the equipment ID identification information to an equipment end;
after the server receives the device information, splicing the device label information specifically includes:
after receiving the equipment information, the server creates an incremental sliding window, wherein the sliding window is provided with a preset sliding window number N, the N is a positive integer which is greater than or equal to 1, and the number of the N is consistent with that of the equipment label information;
splicing the equipment label information according to N, an equipment label 1, an equipment label 2, an equipment label N-1 and a label N;
before the operation of the MD5 on the spliced device label information to generate device ID identification information and send the device ID identification information to the device side, the method further includes:
the server side inquires whether the spliced N, the equipment label 1, the equipment label 2, the equipment label N-1 and the equipment label N exist or not;
if yes, adding 1 to the sliding window number N to form a new device label N +1, a device label 2, a device label N-1, a device label N and a device label N +1, and sequentially circulating until the server side inquires and splices the new device label N +1, the device label 2, the device label N-1, the device label N and the device label N +1 do not exist, or the sliding window number or the number of the sliding window number reaches the maximum value;
and if not, performing MD5 operation on the spliced N, the device label 1, the device label 2, the device label N-1 and the label N to generate device Identification (ID) information.
5. A storage medium characterized by storing a program for generating device ID identification information, which when executed by a processor implements the steps of the method for generating device ID identification information according to any one of claims 1 to 3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811552531.6A CN109729158B (en) | 2018-12-19 | 2018-12-19 | Method, system and storage medium for generating equipment ID identification information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811552531.6A CN109729158B (en) | 2018-12-19 | 2018-12-19 | Method, system and storage medium for generating equipment ID identification information |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109729158A CN109729158A (en) | 2019-05-07 |
CN109729158B true CN109729158B (en) | 2021-09-28 |
Family
ID=66296874
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811552531.6A Active CN109729158B (en) | 2018-12-19 | 2018-12-19 | Method, system and storage medium for generating equipment ID identification information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109729158B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117376916A (en) * | 2022-06-30 | 2024-01-09 | 华为技术有限公司 | Information writing method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1361882A (en) * | 1999-05-05 | 2002-07-31 | 迈克尔·O·罗宾 | Methods and apparatus for protecting information |
CN104699036A (en) * | 2013-12-05 | 2015-06-10 | 横河电机株式会社 | Field device management apparatus, device information display method, computer-readable storage medium |
CN106598527A (en) * | 2016-12-22 | 2017-04-26 | 上海寰视网络科技有限公司 | Method and equipment for recognizing positions of display units on display equipment |
CN107257392A (en) * | 2017-06-21 | 2017-10-17 | 深圳Tcl新技术有限公司 | Equipment Serial Number establishing method and device and computer-readable recording medium |
CN107564583A (en) * | 2017-09-15 | 2018-01-09 | 郑天雷 | A kind of hospital equipment shared service management method based on Android system |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104903884B (en) * | 2013-09-04 | 2018-02-27 | 费希尔-罗斯蒙特系统公司 | Field apparatus collocation method, field apparatus configuration verification method and the asset management system |
US10235176B2 (en) * | 2015-12-17 | 2019-03-19 | The Charles Stark Draper Laboratory, Inc. | Techniques for metadata processing |
CN108234127A (en) * | 2016-12-22 | 2018-06-29 | 中国移动通信集团公司 | A kind of Internet of Things method and device based on block chain |
-
2018
- 2018-12-19 CN CN201811552531.6A patent/CN109729158B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1361882A (en) * | 1999-05-05 | 2002-07-31 | 迈克尔·O·罗宾 | Methods and apparatus for protecting information |
CN104699036A (en) * | 2013-12-05 | 2015-06-10 | 横河电机株式会社 | Field device management apparatus, device information display method, computer-readable storage medium |
CN106598527A (en) * | 2016-12-22 | 2017-04-26 | 上海寰视网络科技有限公司 | Method and equipment for recognizing positions of display units on display equipment |
CN107257392A (en) * | 2017-06-21 | 2017-10-17 | 深圳Tcl新技术有限公司 | Equipment Serial Number establishing method and device and computer-readable recording medium |
CN107564583A (en) * | 2017-09-15 | 2018-01-09 | 郑天雷 | A kind of hospital equipment shared service management method based on Android system |
Also Published As
Publication number | Publication date |
---|---|
CN109729158A (en) | 2019-05-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104850301B (en) | A kind of method and system that application icon is classified in system desktop | |
CN102355682A (en) | Sensor adapting method, sensor adapting device and IOT (Internet Of Things) system | |
CN110908833A (en) | Data backup method, device and equipment and computer readable storage medium | |
CN110035514B (en) | Method and device for determining transmission opportunity, storage medium and electronic device | |
EP2458811B1 (en) | Method, apparatus and system for processing user identity information in gigabit passive optical network system | |
CN105637927B (en) | Communication access method and user equipment | |
CN110505618B (en) | Service processing method and server | |
CN110796545A (en) | Batch processing method, equipment and storage medium for blockchain transaction | |
CN103701867A (en) | Method, system and central server for processing call requests | |
CN109729158B (en) | Method, system and storage medium for generating equipment ID identification information | |
CN110312266B (en) | Method and device for realizing WIFI communication by multiple systems of terminal | |
CN111131470B (en) | Terminal device, data processing method thereof and data processing system | |
CN109032920A (en) | A kind of method and device for being tested protocol interface | |
EP3220607A1 (en) | Service data processing method, device and system | |
US8452902B2 (en) | Methods for transmitting buffer size information | |
CN109617708A (en) | A kind of compression method burying a log, equipment and system | |
CN104780120A (en) | Method and device for transmitting files in local area network | |
CN117354382A (en) | Communication protocol conversion method, system, device and storage medium | |
CN102523112B (en) | Information processing method and equipment | |
CN111092956A (en) | Resource synchronization method, device, storage medium and equipment | |
CN107171820B (en) | Information transmission, sending and acquisition method and device | |
CN111586841B (en) | Terminal paging optimization method, system, device and readable storage medium | |
CN113971197A (en) | Data uplink method and device | |
CN110134547B (en) | Middleware-based repeated data deleting method and related device | |
US9374474B1 (en) | System, method, and computer program for detecting duplicated telecommunications events in a consumer telecommunications network |
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 | ||
CB02 | Change of applicant information |
Address after: Room 2306, east block, Skyworth semiconductor design building, 18 Gaoxin South 4th Road, Gaoxin community, Yuehai street, Nanshan District, Shenzhen, Guangdong 518052 Applicant after: Shenzhen Kukai Network Technology Co.,Ltd. Address before: 518052 A 1502, South SKYWORTH building, Shennan Avenue, Nanshan District, Shenzhen, Guangdong. Applicant before: Shenzhen Coocaa Network Technology Co.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |