CN112468609A - Method and system for acquiring unique identification code of hardware equipment - Google Patents
Method and system for acquiring unique identification code of hardware equipment Download PDFInfo
- Publication number
- CN112468609A CN112468609A CN202011281342.7A CN202011281342A CN112468609A CN 112468609 A CN112468609 A CN 112468609A CN 202011281342 A CN202011281342 A CN 202011281342A CN 112468609 A CN112468609 A CN 112468609A
- Authority
- CN
- China
- Prior art keywords
- identification code
- unique identification
- acquiring
- hardware equipment
- hardware
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 32
- 238000004891 communication Methods 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/30—Managing network names, e.g. use of aliases or nicknames
- H04L61/3005—Mechanisms for avoiding name conflicts
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/30—Managing network names, e.g. use of aliases or nicknames
- H04L61/3015—Name registration, generation or assignment
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2101/00—Indexing scheme associated with group H04L61/00
- H04L2101/60—Types of network addresses
- H04L2101/618—Details of network addresses
- H04L2101/622—Layer-2 addresses, e.g. medium access control [MAC] addresses
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephonic Communication Services (AREA)
Abstract
The invention discloses a method and a system for acquiring a unique identification code of hardware equipment, wherein the method comprises the following steps: acquiring the model of hardware equipment; acquiring a unique identification code strategy according to the model of the hardware equipment; and acquiring the unique identification code of the hardware equipment according to the unique identification code strategy. The method and the device can dynamically acquire the unique identification code strategy corresponding to the hardware equipment, so that the unique identification code of the hardware equipment can be acquired, client software does not need to be released again when new hardware equipment is on line, only new hardware equipment configuration needs to be added to the server, and software release cost is greatly reduced.
Description
Technical Field
The invention belongs to the technical field of communication, and particularly relates to a method and a system for acquiring a unique identification code of hardware equipment.
Background
In special scenes such as hospitals, the client software on the hardware device usually has no user login process, such as a ward gate machine of a hospital. In this case, when the client software interacts with the server, the server can only identify a specific hardware device by its unique identification code. For example, when the server is to control the upgrade of a specific device, the unique identification code is used for positioning, so the client software needs to acquire the unique identification code of the hardware device.
Due to different suppliers, the unique identification code of different hardware devices may be obtained in different manners, for example, the ethernet MAC address of the hardware device a is unique, but the obtained serial number is repeated, and the serial number of the hardware device B is unique.
The prior art selects which strategy to use to generate the unique identification code according to the hardware model of the hardware device when the client software is started. However, when a hospital needs to log on a new hardware device, new client software needs to be reissued to obtain a correct unique identification code, so that the software publishing cost is increased. In addition, when a problem is found in a strategy of acquiring the unique identification code by the hardware device, the unique identification code can be repaired only by releasing client software, and the time cost is also high.
Therefore, in order to solve the above technical problems, it is necessary to provide a method and a system for acquiring a unique identifier of a hardware device.
Disclosure of Invention
The invention aims to provide a method and a system for acquiring a unique identification code of hardware equipment so as to realize the acquisition and dynamic management of the unique identification code of the hardware equipment.
In order to achieve the above object, an embodiment of the present invention provides the following technical solutions:
a method for acquiring a unique identification code of a hardware device, the method comprising:
acquiring the model of hardware equipment;
acquiring a unique identification code strategy according to the model of the hardware equipment;
and acquiring the unique identification code of the hardware equipment according to the unique identification code strategy.
In one embodiment, the method further comprises:
judging whether the obtained unique identification code is correct or not;
if so, continuously acquiring the unique identification code of the hardware equipment according to the unique identification code strategy;
and if not, updating the unique identification code strategy, and acquiring the unique identification code of the hardware equipment according to the updated unique identification code strategy.
In an embodiment, the unique identifier policy includes a correspondence between a model of the hardware device and a hardware parameter for obtaining the unique identifier of the hardware device.
In an embodiment, the hardware parameter includes an ethernet MAC, a serial number, and a WIFI MAC.
The technical scheme provided by another embodiment of the invention is as follows:
a system for obtaining a unique identification code of a hardware device, the system comprising:
the hardware equipment is used for acquiring the model of the hardware equipment and acquiring the unique identification code of the hardware equipment according to the unique identification code strategy;
the server is used for acquiring a unique identification code strategy according to the model of the hardware equipment;
and the database is used for storing the corresponding relation between the unique identification code strategy and the hardware equipment model.
In one embodiment, the server is further configured to:
judging whether the obtained unique identification code is correct or not;
if so, continuously acquiring the unique identification code of the hardware equipment according to the unique identification code strategy;
and if not, updating the unique identification code strategy, and acquiring the unique identification code of the hardware equipment according to the updated unique identification code strategy.
In an embodiment, the unique identifier policy includes a correspondence between a model of the hardware device and a hardware parameter for obtaining the unique identifier of the hardware device.
In an embodiment, the hardware parameter includes an ethernet MAC, a serial number, and a WIFI MAC.
Compared with the prior art, the invention has the following advantages:
the method can dynamically acquire the unique identification code strategy corresponding to the hardware equipment, so that the unique identification code of the hardware equipment can be acquired, client software does not need to be released again when new hardware equipment is on line, only new hardware equipment configuration needs to be added to the server, and the software release cost is greatly reduced;
when the unique identification code acquired by the hardware equipment is wrong, the unique identification code strategy can be updated through the server, and the client software acquires the unique identification code by using the updated unique identification code strategy again, so that the modification cost and time of the client software are reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic flow chart of a unique identification code acquisition method according to the present invention;
FIG. 2 is a block diagram of a unique identification code acquisition system according to the present invention;
FIG. 3 is a flowchart illustrating a unique identification code obtaining method according to a first embodiment of the present invention;
fig. 4 is a flowchart illustrating a unique identification code obtaining method according to a second embodiment of the present invention.
Detailed Description
The present invention will be described in detail below with reference to embodiments shown in the drawings. The embodiments are not intended to limit the present invention, and structural, methodological, or functional changes made by those skilled in the art according to the embodiments are included in the scope of the present invention.
Referring to fig. 1, the present invention discloses a method for acquiring a unique identifier of a hardware device, including:
acquiring the model of hardware equipment;
acquiring a unique identification code strategy according to the model of the hardware equipment;
and acquiring the unique identification code of the hardware equipment according to the unique identification code strategy.
Referring to fig. 2, the present invention also discloses a system for acquiring a unique identifier of a hardware device, including:
the hardware equipment is used for acquiring the model of the hardware equipment and acquiring the unique identification code of the hardware equipment according to the unique identification code strategy;
the server is used for acquiring a unique identification code strategy according to the model of the hardware equipment;
and the database is used for storing the corresponding relation between the unique identification code strategy and the hardware equipment model.
The present invention is further illustrated by the following specific examples.
Referring to fig. 2 in combination with fig. 3, a system for acquiring a unique identifier of a hardware device in a first embodiment of the present invention includes a hardware device, a server, and a database, where the hardware device is a hardware device running client software, such as an intelligent cart, a tablet, a door phone, and the like, and a unique identifier policy is stored in the database.
Referring to fig. 1 in combination with fig. 3, the method for acquiring the unique identifier of the hardware device in this embodiment includes the following steps:
s1, the client software firstly obtains the model of the hardware equipment and sends the model to the server.
For example, in this embodiment, the Model of the acquired hardware device is Model a.
And S2, the server acquires the unique identification code strategy from the database according to the hardware equipment model sent by the hardware equipment, and returns the unique identification code strategy to the client software.
The unique identification code strategy comprises the model of the hardware equipment and the corresponding relation between hardware parameters for acquiring the unique identification code of the hardware equipment, and the hardware parameters comprise Ethernet MAC, serial numbers, WIFI MAC and the like.
For example, the unique identifier policy in this embodiment includes:
(Model a, ethernet MAC);
(Model B, SEQ ID NO);
……
according to the Model A of the hardware equipment, the corresponding unique identification code strategy can be obtained as (Model A, Ethernet MAC), and the unique identification code strategy is returned to the client software.
And S3, the client software acquires the unique identification code of the hardware equipment according to the returned unique identification code strategy.
According to the returned unique identification code strategy (Model A, Ethernet MAC), the client software can read the unique identification code corresponding to the Model A of the corresponding hardware equipment through the specific parameters of the Ethernet MAC.
Referring to fig. 2 in combination with fig. 4, a system for acquiring a unique identifier of a hardware device in a second embodiment of the present invention includes a hardware device, a server, and a database, where the hardware device is a hardware device running client software, such as an intelligent cart, a tablet, a door phone, and the like, and the database stores a unique identifier policy.
Referring to fig. 1 in combination with fig. 4, the method for acquiring the unique identifier of the hardware device in this embodiment includes the following steps:
s1, the client software firstly obtains the model of the hardware equipment and sends the model to the server.
And S2, the server acquires the unique identification code strategy from the database according to the hardware equipment model sent by the hardware equipment, and returns the unique identification code strategy to the client software.
And S3, the client software acquires the unique identification code of the hardware equipment according to the returned unique identification code strategy.
The above steps are completely the same as those in the first embodiment, and are not described again here, and different from the first embodiment, the unique identification code obtaining method in this embodiment further includes:
the server judges whether the acquired unique identification code is correct or not;
if so, continuously acquiring the unique identification code of the hardware equipment according to the unique identification code strategy;
if not, updating the unique identification code strategy stored in the database, returning the updated unique identification code strategy to the client software, and obtaining the unique identification code of the hardware equipment by the client software according to the updated unique identification code strategy.
For example, in this embodiment, the unique identifier policy initially corresponding to the hardware device of Model B is (Model B, serial number), and when the server determines that the unique identifier of the Model is wrong, the server updates the unique identifier policy of the Model stored in the database, for example, the policy corresponding to the unique identifier is updated to (Model B, ethernet MAC), and then the updated unique identifier policy (Model B, ethernet MAC) is adopted to read the unique identifier of the hardware device of Model B.
According to the technical scheme, the invention has the following beneficial effects:
the method can dynamically acquire the unique identification code strategy corresponding to the hardware equipment, so that the unique identification code of the hardware equipment can be acquired, client software does not need to be released again when new hardware equipment is on line, only new hardware equipment configuration needs to be added to the server, and the software release cost is greatly reduced;
when the unique identification code acquired by the hardware equipment is wrong, the unique identification code strategy can be updated through the server, and the client software acquires the unique identification code by using the updated unique identification code strategy again, so that the modification cost and time of the client software are reduced.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions.
For convenience of description, the above devices are described as being divided into various modules by functions, and are described separately. Of course, the functionality of the modules may be implemented in the same one or more software and/or hardware implementations in implementing one or more embodiments of the present description.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of one or more embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, one or more embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, one or more embodiments of the present description 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.
One or more embodiments of the present description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. One or more embodiments of the specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.
Furthermore, it should be understood that although the present description refers to embodiments, not every embodiment may contain only a single embodiment, and such description is for clarity only, and those skilled in the art should integrate the description, and the embodiments may be combined as appropriate to form other embodiments understood by those skilled in the art.
Claims (8)
1. A method for acquiring a unique identification code of hardware equipment is characterized by comprising the following steps:
acquiring the model of hardware equipment;
acquiring a unique identification code strategy according to the model of the hardware equipment;
and acquiring the unique identification code of the hardware equipment according to the unique identification code strategy.
2. The method for acquiring the unique identification code of the hardware device according to claim 1, further comprising:
judging whether the obtained unique identification code is correct or not;
if so, continuously acquiring the unique identification code of the hardware equipment according to the unique identification code strategy;
and if not, updating the unique identification code strategy, and acquiring the unique identification code of the hardware equipment according to the updated unique identification code strategy.
3. The method according to claim 1 or 2, wherein the unique identifier policy includes a correspondence between a model of the hardware device and a hardware parameter for acquiring the unique identifier of the hardware device.
4. The method of claim 3, wherein the hardware parameter comprises Ethernet MAC, serial number, WIFI MAC.
5. A system for acquiring a unique identification code of a hardware device, the system comprising:
the hardware equipment is used for acquiring the model of the hardware equipment and acquiring the unique identification code of the hardware equipment according to the unique identification code strategy;
the server is used for acquiring a unique identification code strategy according to the model of the hardware equipment;
and the database is used for storing the corresponding relation between the unique identification code strategy and the hardware equipment model.
6. The system of claim 5, wherein the server is further configured to:
judging whether the obtained unique identification code is correct or not;
if so, continuously acquiring the unique identification code of the hardware equipment according to the unique identification code strategy;
and if not, updating the unique identification code strategy, and acquiring the unique identification code of the hardware equipment according to the updated unique identification code strategy.
7. The system according to claim 5 or 6, wherein the unique identifier policy includes a correspondence between a model of the hardware device and a hardware parameter for acquiring the unique identifier of the hardware device.
8. The system of claim 7, wherein the hardware parameters include Ethernet MAC, serial number, WIFI MAC.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011281342.7A CN112468609A (en) | 2020-11-16 | 2020-11-16 | Method and system for acquiring unique identification code of hardware equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011281342.7A CN112468609A (en) | 2020-11-16 | 2020-11-16 | Method and system for acquiring unique identification code of hardware equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112468609A true CN112468609A (en) | 2021-03-09 |
Family
ID=74837009
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011281342.7A Pending CN112468609A (en) | 2020-11-16 | 2020-11-16 | Method and system for acquiring unique identification code of hardware equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112468609A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117472035A (en) * | 2023-12-27 | 2024-01-30 | 东方电气风电股份有限公司 | Verification method for software and hardware of main control system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101238680A (en) * | 2005-05-31 | 2008-08-06 | 国际商业机器公司 | System and method for generating unique and persistent identifiers |
CN102843358A (en) * | 2012-07-31 | 2012-12-26 | 北京世纪联成科技有限公司 | Vehicle-mounted terminal identity recognition method |
CN104484620A (en) * | 2014-12-26 | 2015-04-01 | 厦门雅迅网络股份有限公司 | Method for avoiding false declaration of sales volume and inventory in fast-selling sales management cloud system |
US20150215272A1 (en) * | 2012-09-26 | 2015-07-30 | Mitsubishi Electric Corporation | Communication adapter, identification code generation method, program, and network system |
CN106211359A (en) * | 2016-07-18 | 2016-12-07 | 上海云蚁科技有限公司 | Device is made to obtain method and the device of service |
-
2020
- 2020-11-16 CN CN202011281342.7A patent/CN112468609A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101238680A (en) * | 2005-05-31 | 2008-08-06 | 国际商业机器公司 | System and method for generating unique and persistent identifiers |
CN102843358A (en) * | 2012-07-31 | 2012-12-26 | 北京世纪联成科技有限公司 | Vehicle-mounted terminal identity recognition method |
US20150215272A1 (en) * | 2012-09-26 | 2015-07-30 | Mitsubishi Electric Corporation | Communication adapter, identification code generation method, program, and network system |
CN104484620A (en) * | 2014-12-26 | 2015-04-01 | 厦门雅迅网络股份有限公司 | Method for avoiding false declaration of sales volume and inventory in fast-selling sales management cloud system |
CN106211359A (en) * | 2016-07-18 | 2016-12-07 | 上海云蚁科技有限公司 | Device is made to obtain method and the device of service |
Non-Patent Citations (1)
Title |
---|
肖清旺等: "物联网智能终端设备识别方法", 《电信科学》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117472035A (en) * | 2023-12-27 | 2024-01-30 | 东方电气风电股份有限公司 | Verification method for software and hardware of main control system |
CN117472035B (en) * | 2023-12-27 | 2024-03-08 | 东方电气风电股份有限公司 | Verification method for software and hardware of main control system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102982141B (en) | A kind of method and device realizing distributed data base agency | |
CN101730099B (en) | Terminal management method based on authority control and device | |
CN111901385B (en) | Cloud hard disk speed limiting method, system, device and computer readable storage medium | |
CN102355374A (en) | Data acquisition method and equipment | |
CN111225082B (en) | Identity management method and device of Internet of things intelligent equipment and Internet of things platform | |
US10048713B2 (en) | Energy operations across domains | |
CN105808702A (en) | Page content refreshing method and system, and page content synchronous refreshing management system | |
CN105224541B (en) | Uniqueness control method, information storage means and the device of data | |
CN112468609A (en) | Method and system for acquiring unique identification code of hardware equipment | |
CN104410511A (en) | Server management method and system | |
JP2014209365A (en) | System and method for managing distribution of content to device, and storage medium providing program | |
CN111897643A (en) | Thread pool configuration system, method, device and storage medium | |
CN103812912B (en) | A kind of method and device of maintenance organization structural information | |
CN112035207A (en) | Page menu dynamic loading method and device based on database | |
US10114864B1 (en) | List element query support and processing | |
CN106375414B (en) | The treating method and apparatus of Remote configuration resource based on distributed environment | |
CN114780565A (en) | Cache updating method and device, storage medium and electronic device | |
CN114866970A (en) | Policy control method, system and related equipment | |
CN104572649B (en) | The processing method of the data of distributed memory system, apparatus and system | |
CN111625866A (en) | Authority management method, system, equipment and storage medium | |
CN110650033B (en) | Distributed application configuration management method and distributed computing system | |
CN112860292A (en) | Configuration management method and device based on application | |
CN108196962B (en) | Method and device for realizing calling of interfaces of different versions | |
CN112463305A (en) | Management method, system and related device of cloud virtualization GPU | |
CN111915277A (en) | Contract flow management method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210309 |