Search

CN-122027324-A - Method, system and medium for ensuring uniqueness of equipment terminal number

CN122027324ACN 122027324 ACN122027324 ACN 122027324ACN-122027324-A

Abstract

The invention relates to a method, a system and a medium for ensuring the uniqueness of a device terminal number, wherein the method comprises the steps that the terminal device initiates a request for acquiring the terminal number to a terminal number management platform, the request carries a unique hardware identifier of the terminal device, the terminal number management platform receives the request, judges whether the request carries the terminal number to be verified at the same time and inquires whether the unique hardware identifier exists in a stored binding record of the terminal number to be verified, if the request does not exist and does not carry the terminal number to be verified, an unoccupied terminal number is distributed from a preset resource pool, the binding relation between the unique hardware identifier and the distributed terminal number is built and stored, then the distributed terminal number is returned to the terminal device, and if the request does not exist and does not carry the terminal number to be verified, the corresponding bound terminal number is acquired from the binding record and the bound terminal number is returned to the terminal device. The invention has high reliability and expandability, and can ensure the system-only property of the terminal number.

Inventors

  • OUYANG QIPING
  • WU TONG

Assignees

  • 深圳市灰度科技股份有限公司

Dates

Publication Date
20260512
Application Date
20260309

Claims (8)

  1. 1. A method for ensuring the uniqueness of a terminal number of a device, the method comprising the steps of: Step S10, a terminal device initiates a request for acquiring a terminal number to a terminal number management platform, wherein the request carries a unique hardware identifier of the terminal device; Step S20, the terminal number management platform receives the request, judges whether the request carries the terminal number to be verified at the same time, and inquires whether the unique hardware identifier exists in the stored binding record; step S30, if the unique hardware identifier does not exist and does not carry the terminal number to be verified, an unoccupied terminal number is allocated from a preset resource pool, a binding relation between the unique hardware identifier and the allocated terminal number is established and stored, and then the allocated terminal number is returned to the terminal equipment; Step S40, if the unique hardware identification exists and the terminal number to be verified is not carried, the corresponding bound terminal number is obtained from the binding record, and the bound terminal number is returned to the terminal equipment.
  2. 2. The method for ensuring the uniqueness of the terminal number of the device according to claim 1, wherein the step S10 further comprises: Step S00, after the terminal equipment is powered on, checking whether a valid terminal number exists in the local storage; step S01, if yes, using the local terminal number to connect the service server; If not, the step S10 is executed.
  3. 3. The method for ensuring the uniqueness of the terminal number of the device according to any one of claims 1 or 2, wherein the communication between the terminal device and the terminal number management platform adopts a bidirectional certificate authentication based on HTTPS protocol.
  4. 4. The method for ensuring the uniqueness of terminal numbers of equipment according to claim 1, wherein the step of allocating an unoccupied terminal number from a preset resource pool in the step S30 specifically comprises: step S301, according to the product line identification carried in the request, randomly selecting an unoccupied terminal number from a terminal number resource pool corresponding to the product line.
  5. 5. The method for ensuring the uniqueness of a terminal number of a device according to claim 1, wherein the step S20 further comprises: Step S50, if the request initiated by the terminal equipment carries the unique hardware identifier and a terminal number to be verified, the terminal number management platform compares the terminal number to be verified with the bound terminal number corresponding to the unique hardware identifier in the binding record; step S60, if not, rejecting the terminal number to be verified, and returning the bound terminal number to the terminal equipment to indicate the terminal equipment to update the local configuration.
  6. 6. The method of claim 1, wherein the terminal number is structured coded in a format including at least a product model section, an intermediate section, and a unique serial number section.
  7. 7. A system for ensuring device terminal number uniqueness, characterized in that the system comprises a memory, a processor and a program stored on the processor for ensuring device terminal number uniqueness, which program, when run by the processor, performs the steps of the method according to any one of claims 1 to 6.
  8. 8. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a program ensuring the uniqueness of a device terminal number, which program, when executed by a processor, performs the steps of the method according to any one of claims 1 to 6.

Description

Method, system and medium for ensuring uniqueness of equipment terminal number Technical Field The invention relates to the technical field of the Internet of things and equipment management, in particular to a method, a system and a medium for ensuring the uniqueness of equipment terminal numbers. Background With the development of the internet of things technology, the number of terminal devices deployed by enterprises is dramatically increased. The device terminal number (e.g., device ID, serial number, etc.) becomes critical for its uniqueness and recoverability as a unique identity of the device. It is common to generate and write a terminal number for a device in a production link by means of a specific production tool. For example, the production tool generates the terminal number based on the device model, configuration specification, and in combination with hexadecimal self-increment logic. However, this conventional solution has obvious drawbacks: 1. and the risk of data loss at the equipment end is that when the configuration file storing the terminal number is lost due to firmware upgrading, program failure or other reasons, the terminal number cannot be recovered, the equipment cannot be normally connected with a service system, and the use of a user is influenced. 2. The problem of expansibility and conflict of production links is that a plurality of production tools cannot be supported to run in parallel. Under the conditions of multiple production lines and large-scale production, terminal number conflict is easily caused by asynchronous generation rules or self-increasing sequences, and production efficiency and later operation and maintenance are affected. Therefore, a new scheme is needed that is highly reliable, scalable and ensures system-wide uniqueness of the terminal number. Disclosure of Invention The invention provides a method, a system and a medium for ensuring the uniqueness of equipment terminal numbers, and aims to solve the problems that the equipment terminal numbers are easy to lose and difficult to recover due to local storage, and the traditional production tool generation mode is difficult to support high-concurrency and large-scale production, so that terminal number conflicts are easy to cause in the prior art. The invention provides a method for ensuring the uniqueness of a terminal number of equipment, which comprises the following steps: Step S10, a terminal device initiates a request for acquiring a terminal number to a terminal number management platform, wherein the request carries a unique hardware identifier of the terminal device; Step S20, the terminal number management platform receives the request, judges whether the request carries the terminal number to be verified at the same time, and inquires whether the unique hardware identifier exists in the stored binding record; step S30, if the unique hardware identifier does not exist and does not carry the terminal number to be verified, an unoccupied terminal number is allocated from a preset resource pool, a binding relation between the unique hardware identifier and the allocated terminal number is established and stored, and then the allocated terminal number is returned to the terminal equipment; Step S40, if the unique hardware identification exists and the terminal number to be verified is not carried, the corresponding bound terminal number is obtained from the binding record, and the bound terminal number is returned to the terminal equipment. As a further improvement of the present invention, the step S10 further includes: Step S00, after the terminal equipment is powered on, checking whether a valid terminal number exists in the local storage; step S01, if yes, using the local terminal number to connect the service server; If not, the step S10 is executed. As a further improvement of the invention, the communication between the terminal equipment and the terminal number management platform adopts bidirectional certificate authentication based on HTTPS protocol. As a further improvement of the present invention, the step of allocating an unoccupied terminal number from the preset resource pool in step S30 specifically includes: step S301, according to the product line identification carried in the request, randomly selecting an unoccupied terminal number from a terminal number resource pool corresponding to the product line. As a further improvement of the present invention, the step S20 further includes: Step S50, if the request initiated by the terminal equipment carries the unique hardware identifier and a terminal number to be verified, the terminal number management platform compares the terminal number to be verified with the bound terminal number corresponding to the unique hardware identifier in the binding record; step S60, if not, rejecting the terminal number to be verified, and returning the bound terminal number to the terminal equipment to indicate the terminal equipment to update the lo