CN113783863A - Number writing method and system - Google Patents
Number writing method and system Download PDFInfo
- Publication number
- CN113783863A CN113783863A CN202111027232.2A CN202111027232A CN113783863A CN 113783863 A CN113783863 A CN 113783863A CN 202111027232 A CN202111027232 A CN 202111027232A CN 113783863 A CN113783863 A CN 113783863A
- Authority
- CN
- China
- Prior art keywords
- authorization
- internet
- equipment
- things
- authorization 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 61
- 238000013475 authorization Methods 0.000 claims abstract description 411
- 230000006870 function Effects 0.000 description 4
- 230000003993 interaction Effects 0.000 description 3
- 238000004590 computer program Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000003062 neural network model Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/0823—Network architectures or network communication protocols for network security for authentication of entities using certificates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
- H04L41/082—Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- General Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computing Systems (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Medical Informatics (AREA)
- Computer Hardware Design (AREA)
- Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Health & Medical Sciences (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a number writing method and a number writing system, relates to the technical field of Internet of things, and mainly aims to prevent equipment of the Internet of things from being written into an authorization serial number which is not matched with the equipment type of the equipment; the main technical scheme comprises: when the number writing terminal determines that the Internet of things equipment needs to write the number, the number writing terminal acquires an authorization license certificate of the Internet of things equipment, wherein the authorization license certificate is a certificate for an authorization server to issue an authorization serial number for the Internet of things equipment; the number writing terminal sends a device type query request carrying an authorization license certificate to an authorization server; the authorization server side inquires the equipment type corresponding to the authorization license certificate under the equipment type inquiry request, and sends the inquired equipment type to the number writing terminal; and if the number writing terminal compares that the equipment type issued by the authorization server is the same as the equipment type of the Internet of things equipment, requesting the authorization server to issue an authorization serial number aiming at the Internet of things equipment, wherein the authorization serial number is a basis for acquiring an OTA upgrade package when the Internet of things equipment carries out OTA upgrade.
Description
Technical Field
The invention relates to the technical field of Internet of things, in particular to a number writing method and a number writing system.
Background
With the rise and development of the internet of things, a large number of sensors and internet of things equipment capable of accessing the internet are integrated into the life of people. Firmware for determining the functions and performance of the internet of things devices is usually burned in the internet of things devices. Over time, the firmware in the internet of things device may not meet the use requirements of the user, and therefore needs to be upgraded. Firmware upgrade of internet of things equipment is generally performed in an OTA (Over The Air) upgrade mode. The OTA upgrading process comprises the steps of interacting with an authorization server through an authorization serial number written in the Internet of things equipment to obtain an OTA upgrading packet which is issued by the authorization server and used for upgrading the firmware, and then upgrading the firmware of the Internet of things equipment by using the OTA upgrading packet. Therefore, the authorization serial number written in the internet of things equipment is an important basis for upgrading the firmware of the internet of things equipment.
In the firmware upgrade of the internet of things equipment, the internet of things equipment belonging to different equipment types can obtain different OTA upgrade packages pushed by the authorization server, namely, the firmware upgrade is possible only when the internet of things equipment obtains the OTA upgrade package matched with the equipment type of the internet of things equipment. At present, in the process of writing the authorization serial number into the internet of things device, the authorization serial number unmatched with the device type of the device is often written into the internet of things device, and when the subsequent internet of things device is subjected to OTA upgrade, the authorization server side can push an OTA upgrade packet unmatched with the device type of the device to the internet of things device, so that the internet of things device cannot be upgraded. For example, the lamp-type internet of things device writes in the authorization serial number of the switch-type internet of things device, and then the authorization server pushes the OTA upgrade package of the switch-type internet of things device to the lamp-type internet of things device when subsequently pushing the OTA upgrade package, so that firmware upgrade of the lamp-type internet of things device cannot be performed.
Disclosure of Invention
In view of this, the present invention provides a number writing method and system, and mainly aims to prevent an internet of things device from being written in an authorization serial number that is not matched with a device type of the internet of things device.
In order to achieve the purpose, the invention mainly provides the following technical scheme:
in a first aspect, the present invention provides a number writing method, including:
when the number writing terminal determines that the Internet of things equipment needs number writing, the number writing terminal acquires an authorization license certificate of the Internet of things equipment, wherein the authorization license certificate is a certificate for an authorization server to issue an authorization serial number for the Internet of things equipment;
the number writing terminal sends a device type query request carrying the authorization license certificate to an authorization server;
the authorization server side inquires the equipment type corresponding to the authorization license certificate under the equipment type inquiry request, and sends the inquired equipment type to the number writing terminal;
and if the number writing terminal compares the equipment type issued by the authorization server with the equipment type of the Internet of things equipment, the number writing terminal requests the authorization server to issue an authorization serial number aiming at the Internet of things equipment, wherein the authorization serial number is a basis for acquiring an OTA upgrade package when the Internet of things equipment carries out OTA upgrade.
In a second aspect, the present invention provides a number writing system, comprising:
the number writing terminal is used for acquiring an authorization license certificate of the Internet of things equipment and sending an equipment type query request carrying the authorization license certificate to an authorization server side when the Internet of things equipment is determined to need number writing; when receiving a device type issued by an authorization server, if the device type issued by the authorization server is compared to be the same as the device type of the internet of things device, requesting the authorization server to issue an authorization serial number for the internet of things device, wherein the authorization license certificate is a certificate for the authorization server to issue the authorization serial number for the internet of things device, and the authorization serial number is a basis for acquiring an OTA upgrade package when the internet of things device performs OTA upgrade;
and the authorization server is used for inquiring the equipment type corresponding to the authorization license certificate under the equipment type inquiry request and sending the inquired equipment type to the number writing terminal.
In a third aspect, the present invention provides a computer-readable storage medium, where the storage medium includes a stored program, where the program, when executed, controls a device on which the storage medium is located to perform:
when the fact that the number of the Internet of things equipment needs to be written is determined, obtaining an authorization license certificate of the Internet of things equipment, and sending an equipment type query request carrying the authorization license certificate to an authorization server; when receiving a device type issued by an authorization server, if the device type issued by the authorization server is compared to be the same as the device type of the internet of things device, requesting the authorization server to issue an authorization serial number for the internet of things device, wherein the authorization license certificate is a certificate for the authorization server to issue the authorization serial number for the internet of things device, and the authorization serial number is a basis for acquiring an OTA upgrade package when the internet of things device performs OTA upgrade;
or the like, or, alternatively,
the storage medium includes a stored program, wherein when the program runs, the storage medium controls a device to execute:
when receiving a device type query request carrying an authorization license certificate sent by a number writing terminal, querying a device type corresponding to the authorization license certificate, and issuing the queried device type to the number writing terminal.
In a fourth aspect, the present invention provides a storage management apparatus, including:
a memory for storing a program;
a processor, coupled to the memory, for executing the program to perform:
when the fact that the number of the Internet of things equipment needs to be written is determined, obtaining an authorization license certificate of the Internet of things equipment, and sending an equipment type query request carrying the authorization license certificate to an authorization server; when receiving a device type issued by an authorization server, if the device type issued by the authorization server is compared to be the same as the device type of the internet of things device, requesting the authorization server to issue an authorization serial number for the internet of things device, wherein the authorization license certificate is a certificate for the authorization server to issue the authorization serial number for the internet of things device, and the authorization serial number is a basis for acquiring an OTA upgrade package when the internet of things device performs OTA upgrade;
or the like, or, alternatively,
the storage management apparatus includes:
a memory for storing a program;
a processor, coupled to the memory, for executing the program to perform:
when receiving a device type query request carrying an authorization license certificate sent by a number writing terminal, querying a device type corresponding to the authorization license certificate, and issuing the queried device type to the number writing terminal.
By means of the technical scheme, the number writing method and the number writing system provided by the invention have the advantages that when the number writing terminal determines that the Internet of things equipment needs to write the number, the number writing terminal acquires the authorization permission certificate of the Internet of things equipment and sends the equipment type inquiry request carrying the authorization permission certificate to the authorization server. And the authorization server side inquires the equipment type corresponding to the authorization license certificate under the equipment type inquiry request, and sends the inquired equipment type to the number writing terminal. And if the number writing terminal compares that the equipment type issued by the authorization server is the same as the equipment type of the equipment in the Internet of things, the number writing terminal requests the authorization server to issue an authorization serial number aiming at the equipment in the Internet of things. Therefore, according to the scheme provided by the invention, only when the number writing terminal compares the equipment type issued by the authorization server and the equipment type of the equipment of the Internet of things, the authorization server is requested to issue the authorization serial number aiming at the equipment of the Internet of things, so that the condition that the equipment of the Internet of things is written into the authorization serial number which is not matched with the equipment type of the equipment of the Internet of things can be avoided.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
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 introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flow chart illustrating a number writing method according to an embodiment of the present invention;
fig. 2 is a flow chart illustrating a number writing method according to another embodiment of the present invention;
fig. 3 is a schematic structural diagram illustrating a number writing system according to an embodiment of the present invention;
fig. 4 shows a schematic structural diagram of a number writing system according to another embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Firmware determining functions and performance of the internet of things equipment is usually burned in the internet of things equipment, and the firmware in the internet of things equipment may not meet the use requirements of users over time, so that the firmware needs to be upgraded. At present, firmware upgrade in the internet of things device is usually completed according to an authorization serial number of the internet of things device, wherein the authorization serial number is issued by an authorization server providing firmware upgrade service and is stored in a nonvolatile memory or other storage media of the internet of things device. When The firmware of The internet of things equipment needs to be upgraded by OTA (Over The Air, Over The Air technology), The firmware is interacted with The authorization server through The authorization serial number, so that an OTA upgrade package for upgrading The firmware is obtained. Therefore, the authorization serial number is an important basis for upgrading the firmware of the internet of things equipment.
At present, in the process of writing the authorization serial number into the internet of things device, the authorization serial number unmatched with the device type of the device is often written into the internet of things device, and when subsequent internet of things devices are subjected to OTA upgrade, the authorization server side can push an OTA upgrade packet unmatched with the device type of the device to the internet of things device, so that the internet of things device cannot be upgraded.
In order to overcome the problem that the internet of things device is written with an authorization serial number which is not matched with the device type of the internet of things device, the embodiment of the invention provides a number writing method and a number writing system, which are specifically described below.
As shown in fig. 1, an embodiment of the present invention provides a number writing method, which mainly includes:
101. and when the number writing terminal determines that the Internet of things equipment needs to write the number, the number writing terminal acquires an authorization license certificate of the Internet of things equipment.
The number writing terminal requests an authorization serial number for the Internet of things equipment from the authorization server, and writes the requested authorization serial number into the Internet of things equipment. In order to avoid the malicious use of the number writing terminal, the number writing terminal needs to log in with a correct user name and password when in use. The user name and the password may be issued by the authorization server to the user.
After the number writing terminal is logged in, only when the fact that the Internet of things equipment needs to be written is determined, the number writing terminal requests an authorization serial number for the Internet of things equipment from the authorization server. A method for determining that the internet of things equipment needs to be numbered by a number writing terminal is described below, and the method at least includes the following two steps:
firstly, if a number writing terminal detects that the Internet of things equipment is connected to a preset interface through a serial port, it is determined that the Internet of things equipment needs to write a number.
When the internet of things equipment is connected to the preset interface through the serial port, it is indicated that the number writing requirement exists in the internet of things equipment, and it is determined that the number writing requirement exists in the internet of things equipment.
When the internet of things equipment is connected to the preset interface through the serial port, in order to ensure that the authorization serial number can be written into the internet of things equipment, the internet of things equipment needs to be normally powered on. In addition, the preset interface described herein is an interface bound by the number writing terminal, for example, it may be an interface on a computer deploying the number writing terminal.
And secondly, if the number writing terminal receives an authorized serial number writing instruction aiming at the Internet of things equipment, determining that the Internet of things equipment needs to write the number.
When the requirement of writing numbers into the Internet of things equipment exists, the Internet of things equipment or service personnel sends an authorization serial number writing instruction to a number writing terminal through a terminal which can be operated by the service personnel. And if the number writing terminal receives the authorized serial number writing instruction, determining that the Internet of things equipment needs to write the number.
The specific form of the authorized serial number writing instruction described herein may be determined based on the service requirement, and this embodiment is not particularly limited.
When the number writing terminal determines that the internet of things equipment needs to write the number, in order to avoid the fact that the internet of things equipment is written into the authorization serial number which is not matched with the equipment type of the internet of things equipment, the authorization license certificate of the internet of things equipment needs to be acquired, wherein the authorization license certificate is a certificate for the authorization server side to issue the authorization serial number for the internet of things equipment. The authorization permit is a character string with the length of M bits generated by an authorization server through an algorithm according to the manufacturer name of the Internet of things equipment and the project name of the Internet of things equipment, and the character string corresponds to the equipment type of the Internet of things equipment. Wherein the specific value of M may be determined based on the service requirement, such as 385. That is to say, the authorization license certificate is a certificate for the authorization server to issue an authorization serial number for the internet of things device of the corresponding device type.
And the number writing terminal acquires the authorization license certificate of the Internet of things equipment when determining that the Internet of things equipment needs to write the number. When the number writing terminal acquires the authorization certificate information, the authorization certificate can be acquired through a preset interaction command. Illustratively, the number writing terminal and the internet of things device agree to an interaction command, and when the number writing terminal sends the interaction command to the internet of things device, the internet of things device provides an authorization license certificate stored in the internet of things device to the number writing terminal.
102. And the number writing terminal sends a device type query request carrying the authorization license certificate to an authorization server.
In order to verify the device type corresponding to the authorization license certificate, the number writing terminal sends a device type query request carrying the authorization license certificate to the authorization server, so that the authorization server issues the device type of the authorization license certificate.
103. And the authorization server side inquires the equipment type corresponding to the authorization license certificate under the equipment type inquiry request, and sends the inquired equipment type to the number writing terminal.
The authorization server is a terminal for distributing an authorization serial number for the equipment of the internet of things, and when receiving an equipment type query request sent by a number writing terminal, the authorization server needs to analyze an authorization license carried by a serial number issuing request and then queries the equipment type corresponding to the authorization license. The foregoing parsing method is not specifically limited in this embodiment, and for example, the authorization license certificate carried in the serial number issuing request is parsed by using an HTTP GET method.
After the authorization license is distributed to the internet of things equipment, the corresponding relation between the authorization license and the equipment type exists in the authorization server, when the authorization server receives the authorization license, the equipment type corresponding to the authorization license can be directly determined according to the stored corresponding relation, and the inquired equipment type is sent to the number writing terminal.
104. And if the number writing terminal compares the equipment type issued by the authorization server with the equipment type of the Internet of things equipment, the number writing terminal requests the authorization server to issue an authorization serial number aiming at the Internet of things equipment.
And after receiving the equipment type fed back by the authorization server, the number writing terminal compares the equipment type issued by the authorization server with the equipment type of the equipment of the Internet of things. The device type of the internet of things device is the device type stored in the internet of things device, which is obtained through a serial port instruction when the number writing terminal detects that the internet of things device is connected to a preset interface through a serial port.
If the number writing terminal compares that the device type issued by the authorization server is the same as the device type of the internet of things device, it indicates that the possibility that the authorization serial number which is not matched with the device type of the internet of things device is not written in the internet of things device does not exist, and therefore the number writing terminal directly requests the authorization server to issue the authorization serial number aiming at the internet of things device. The authorization serial number is a basis for acquiring an OTA upgrade package when the IOT equipment carries out OTA upgrade.
If the type of the equipment issued by the authorization server is different from the type of the equipment of the internet of things equipment by comparison, the number writing terminal indicates that the possibility that the authorization serial number which is not matched with the type of the equipment of the internet of things equipment is written into the equipment of the internet of things equipment exists, so that a prompt of replacing the authorization license certificate needs to be sent out, and the number writing terminal uses the authorization license certificate which is matched with the type of the equipment of the internet of things equipment to request the authorization serial number for the internet of things equipment.
According to the number writing method provided by the embodiment of the invention, when the number writing terminal determines that the Internet of things equipment needs to write the number, the number writing terminal acquires the authorization license certificate of the Internet of things equipment and sends an equipment type query request carrying the authorization license certificate to the authorization server side. And the authorization server side inquires the equipment type corresponding to the authorization license certificate under the equipment type inquiry request, and sends the inquired equipment type to the number writing terminal. And if the number writing terminal compares that the equipment type issued by the authorization server is the same as the equipment type of the equipment in the Internet of things, the number writing terminal requests the authorization server to issue an authorization serial number aiming at the equipment in the Internet of things. Therefore, according to the scheme provided by the embodiment of the invention, only when the number writing terminal compares the device type issued by the authorization server and the device type of the internet of things device, the authorization server is requested to issue the authorization serial number aiming at the internet of things device, so that the phenomenon that the internet of things device is written into the authorization serial number which is not matched with the device type of the internet of things device can be avoided.
Further, according to the method shown in fig. 1, another embodiment of the present invention further provides a number writing method, as shown in fig. 2, the method mainly includes:
201. and when the number writing terminal determines that the Internet of things equipment needs to write the number, the number writing terminal acquires an authorization license certificate of the Internet of things equipment.
The authorization license certificate is a certificate for the authorization server side to issue an authorization serial number for the equipment of the internet of things. One authorization license certificate corresponds to one device type, and is a certificate for an authorization server to issue an authorization serial number for the internet of things device of the corresponding device type.
202. And the number writing terminal sends a device type query request carrying the authorization license certificate to an authorization server.
203. The authorization server side judges whether the authorization license certificate still has the name of the issued authorization serial number under the device type query request, if not, the step 204 is executed; if so, go to step 205.
The authorization license certificate is a certificate of issuing an authorization serial number for the internet of things equipment with a preset name by the authorization server, and the number of the name under the authorization license certificate is reduced by one after the authorization serial number is issued to one internet of things equipment by the authorization server.
Since the corresponding quota of each authorized license certificate is limited, after receiving the authorized license certificate, the authorization server needs to determine whether the authorized license certificate has the quota of issuing the authorized serial number.
204. And if the authorization server side determines that the authorization license certificate does not have the name of the issued authorization serial number, exception handling is carried out, and the current process is ended.
If the authorization server determines that the authorization license does not have the name of the issued authorization serial number, the name of the authorization license is used up, the authorization license cannot be used any more to generate the authorization serial number for the equipment of the internet of things, and exception handling is required.
The exception handling process described above may exist in two types:
firstly, if the authorization server determines that the authorization license does not have the name of issuing the authorization serial number, the authorization server notifies the number writing terminal to replace the authorization license of the internet of things equipment.
When the authorization server determines that the authorization license does not exist and issues the name of the authorization serial number, the name of the authorization license is used up, the authorization license cannot be used any more to generate a corresponding authorization sequence code for the equipment of the internet of things, and the number writing terminal needs to be notified to update the authorization license of the equipment of the internet of things. The notification may be in the form of a presentation prompt on a graphical interface.
Secondly, if the authorization server determines that the authorization license does not have the name of issuing the authorization serial number, a new authorization license is distributed to the Internet of things equipment, and the new authorization license is issued to the number writing terminal.
When the authorization server determines that the authorization license does not have the name of the issued authorization serial number, the name of the authorization license is used up, the authorization license cannot be used any more to generate a corresponding authorization serial number for the equipment of the internet of things, a new authorization license is distributed to the equipment of the internet of things, and the new authorization license is issued to the number writing terminal, so that the number writing terminal uses the new authorization license to request the authorization serial number for the equipment of the internet of things.
Here, the method for allocating a new authorization certificate to the internet of things device may be: and generating a new character string with the length of M bits through an algorithm according to the manufacturer name of the Internet of things equipment and the project name of the Internet of things equipment.
205. And if the authorization server determines that the authorization license still has the name of issuing the authorization serial number, inquiring the equipment type corresponding to the authorization license, and issuing the inquired equipment type to the number writing terminal.
In order to avoid that the internet of things equipment is written into the authorization serial number which is not matched with the equipment type of the internet of things equipment, the authorization server side feeds back the equipment type corresponding to the authorization license certificate to the number writing terminal when determining that the authorization license certificate also has the name of issuing the authorization serial number.
206. The number writing terminal compares the equipment type issued by the authorization server with the equipment type of the equipment of the Internet of things, and if the equipment type issued by the authorization server is the same as the equipment type of the equipment of the Internet of things, step 207 is executed; and if the equipment type issued by the authorization server is different from the equipment type of the equipment of the internet of things, executing step 208.
207. And if the number writing terminal compares that the equipment type issued by the authorization server is the same as the equipment type of the Internet of things equipment, the number writing terminal requests the authorization server to issue an authorization serial number aiming at the Internet of things equipment, and the current process is ended.
If the number writing terminal compares that the device type issued by the authorization server is different from the device type of the internet of things device, it indicates that the possibility that the authorization serial number which is not matched with the device type of the internet of things device is not written in the internet of things device does not exist, and therefore the authorization server is directly requested to issue the authorization serial number aiming at the internet of things device.
The specific process of requesting the authorization server to issue the authorization serial number aiming at the Internet of things equipment comprises the following steps: the number writing terminal acquires the equipment information of the Internet of things equipment and sends a serial number issuing request carrying the equipment information to the authorization server so that the authorization server issues an authorization serial number generated based on the equipment information.
The authorization serial number is a basis for acquiring an OTA upgrade package when the IOT equipment carries out OTA upgrade. The physical network equipment can upgrade the internal firmware after acquiring the OTA upgrade package.
208. And if the number writing terminal compares that the equipment type issued by the authorization server is different from the equipment type of the equipment of the Internet of things, sending a prompt for replacing the authorization license certificate.
If the type of the equipment issued by the authorization server is different from the type of the equipment of the internet of things equipment by comparison, the number writing terminal indicates that the possibility that the authorization serial number which is not matched with the type of the equipment of the internet of things equipment is written into the equipment of the internet of things equipment exists, so that a prompt of replacing the authorization license certificate needs to be sent out, and the number writing terminal uses the authorization license certificate which is matched with the type of the equipment of the internet of things equipment to request the authorization serial number for the internet of things equipment.
Further, according to the above method embodiment, another embodiment of the present invention further provides a number writing system, as shown in fig. 3, where the number writing system includes:
the number writing terminal 31 is configured to, when it is determined that the internet of things device needs to write a number, obtain an authorization permission certificate of the internet of things device, and send a device type query request carrying the authorization permission certificate to an authorization server; when receiving a device type issued by an authorization server, if the device type issued by the authorization server is compared to be the same as the device type of the internet of things device, requesting the authorization server to issue an authorization serial number for the internet of things device, wherein the authorization license certificate is a certificate for the authorization server to issue the authorization serial number for the internet of things device, and the authorization serial number is a basis for acquiring an OTA upgrade package when the internet of things device performs OTA upgrade;
the authorization server 32 is configured to query the device type corresponding to the authorization license certificate under the device type query request, and send the queried device type to the number writing terminal.
In the number writing system provided by the embodiment of the invention, when the number writing terminal determines that the internet of things equipment needs to write the number, the number writing terminal acquires the authorization license certificate of the internet of things equipment and sends an equipment type query request carrying the authorization license certificate to the authorization server. And the authorization server side inquires the equipment type corresponding to the authorization license certificate under the equipment type inquiry request, and sends the inquired equipment type to the number writing terminal. And if the number writing terminal compares that the equipment type issued by the authorization server is the same as the equipment type of the equipment in the Internet of things, the number writing terminal requests the authorization server to issue an authorization serial number aiming at the equipment in the Internet of things. Therefore, according to the scheme provided by the embodiment of the invention, only when the number writing terminal compares the device type issued by the authorization server and the device type of the internet of things device, the authorization server is requested to issue the authorization serial number aiming at the internet of things device, so that the phenomenon that the internet of things device is written into the authorization serial number which is not matched with the device type of the internet of things device can be avoided.
Optionally, as shown in fig. 4, the number writing terminal 31 is further configured to send a prompt for replacing the authorization permission certificate if the device type issued by the authorization server is different from the device type of the internet of things device through comparison.
Optionally, as shown in fig. 4, the authorization server 32 further includes: a determining unit 321, configured to determine, under the device type query request, whether the authorization license certificate has a quota for issuing an authorization serial number before querying a device type corresponding to the authorization license certificate, where the authorization license certificate is a credential for the authorization server to issue an authorization serial number for an internet of things device with a preset quota; the first determining unit 322 is configured to query the device type corresponding to the authorization license if the determining unit 321 determines that the authorization license further has a name of an issued authorization serial number.
Optionally, as shown in fig. 4, the authorization server 32 further includes: a notifying unit 323, configured to notify the number writing terminal to replace the authorization license certificate of the internet of things device if the determining unit 321 determines that the authorization license certificate does not have the name of the issued authorization serial number.
Optionally, as shown in fig. 4, the authorization server 32 further includes: the allocating unit 324 is configured to, if the determining unit 321 determines that the authorization license does not have the name of issuing the authorization serial number, allocate a new authorization license to the internet of things device, and issue the new authorization license to the number writing terminal.
Optionally, as shown in fig. 4, the number writing terminal 31 is specifically configured to obtain device information of the internet of things device, and send a serial number issuing request carrying the device information to the authorization server, so that the authorization server issues an authorization serial number generated based on the device information.
Optionally, as shown in fig. 4, the number writing terminal 31 includes: the obtaining unit 311 is configured to obtain, if it is detected that the internet of things device is connected to a preset interface through a serial port, a device type stored in the internet of things device through a serial port instruction.
Optionally, as shown in fig. 4, the number writing terminal 31 includes: a second determining unit 312, configured to determine that the internet of things device needs to write a number if it is detected that the internet of things device is connected to a preset interface through a serial port.
Optionally, as shown in fig. 4, the number writing terminal 31 includes: a third determining unit 313, configured to determine that the internet of things device needs to write a number if an authorized serial number write instruction for the internet of things device is received.
In the numbering system provided in the embodiment of the present invention, for a detailed description of the method adopted in the operation process of each function module, reference may be made to the corresponding method in the method embodiments of fig. 1 to fig. 2, which is not described herein again.
Further, according to the above embodiment, another embodiment of the present invention further provides a computer-readable storage medium, where the storage medium includes a stored program, where when the program runs, the apparatus on which the storage medium is located is controlled to perform:
when the fact that the number of the Internet of things equipment needs to be written is determined, obtaining an authorization license certificate of the Internet of things equipment, and sending an equipment type query request carrying the authorization license certificate to an authorization server; when receiving the device type issued by the authorization server, if the device type issued by the authorization server is compared with the device type of the internet of things device, requesting the authorization server to issue an authorization serial number for the internet of things device, wherein the authorization license certificate is a certificate for the authorization server to issue the authorization serial number for the internet of things device, and the authorization serial number is a basis for acquiring an OTA upgrade package when the internet of things device performs OTA upgrade.
The device that controls the storage medium to be executed when the program runs may further execute the method related to the number writing terminal in fig. 1 and fig. 2, and the related method will not be described again here, for details, see the description above for fig. 1 and fig. 2.
Or the like, or, alternatively,
the storage medium includes a stored program, wherein when the program runs, the storage medium controls a device to execute:
when receiving a device type query request carrying an authorization license certificate sent by a number writing terminal, querying a device type corresponding to the authorization license certificate, and issuing the queried device type to the number writing terminal.
The device that controls the storage medium to be executed when the program runs may further execute the method related to the number writing terminal in fig. 1 and fig. 2, and the related method will not be described again here, for details, see the description above for fig. 1 and fig. 2.
Further, according to the above embodiment, another embodiment of the present invention provides a storage management apparatus, including:
a memory for storing a program;
a processor, coupled to the memory, for executing the program to perform:
when the fact that the number of the Internet of things equipment needs to be written is determined, obtaining an authorization license certificate of the Internet of things equipment, and sending an equipment type query request carrying the authorization license certificate to an authorization server; when receiving the device type issued by the authorization server, if the device type issued by the authorization server is compared with the device type of the internet of things device, requesting the authorization server to issue an authorization serial number for the internet of things device, wherein the authorization license certificate is a certificate for the authorization server to issue the authorization serial number for the internet of things device, and the authorization serial number is a basis for acquiring an OTA upgrade package when the internet of things device performs OTA upgrade.
The processor running the program may also execute the method related to the number writing terminal in fig. 1 and fig. 2, and the related method will not be described herein again, for details, see the description above for fig. 1 and fig. 2.
Or the like, or, alternatively,
the storage management apparatus includes:
a memory for storing a program;
a processor, coupled to the memory, for executing the program to perform:
when receiving a device type query request carrying an authorization license certificate sent by a number writing terminal, querying a device type corresponding to the authorization license certificate, and issuing the queried device type to the number writing terminal.
The processor running the program may also execute the method related to the number writing terminal in fig. 1 and fig. 2, and the related method will not be described herein again, for details, see the description above for fig. 1 and fig. 2.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It will be appreciated that the relevant features of the method and apparatus described above are referred to one another. In addition, "first", "second", and the like in the above embodiments are for distinguishing the embodiments, and do not represent merits of the embodiments.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components of the method, apparatus and framework for operation of a deep neural network model in accordance with embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
Claims (10)
1. A method of number writing, the method comprising:
when the number writing terminal determines that the Internet of things equipment needs number writing, the number writing terminal acquires an authorization license certificate of the Internet of things equipment, wherein the authorization license certificate is a certificate for an authorization server to issue an authorization serial number for the Internet of things equipment;
the number writing terminal sends a device type query request carrying the authorization license certificate to an authorization server;
the authorization server side inquires the equipment type corresponding to the authorization license certificate under the equipment type inquiry request, and sends the inquired equipment type to the number writing terminal;
and if the number writing terminal compares the equipment type issued by the authorization server with the equipment type of the Internet of things equipment, the number writing terminal requests the authorization server to issue an authorization serial number aiming at the Internet of things equipment, wherein the authorization serial number is a basis for acquiring an OTA upgrade package when the Internet of things equipment carries out OTA upgrade.
2. The method of claim 1, further comprising:
and if the number writing terminal compares that the equipment type issued by the authorization server is different from the equipment type of the equipment of the Internet of things, sending a prompt for replacing the authorization license certificate.
3. The method according to claim 1, wherein before the authorization server queries the device type corresponding to the authorization license credential under the device type query request, the method further comprises:
the authorization server judges whether the authorization license certificate has the name of issuing the authorization serial number or not, wherein the authorization license certificate is a certificate of issuing the authorization serial number for the Internet of things equipment with the preset name by the authorization server;
and if the authorization server determines that the authorization license also has the name of the issued authorization serial number, inquiring the equipment type corresponding to the authorization license.
4. The method of claim 3, further comprising:
if the authorization server side determines that the authorization license does not have the name of issuing the authorization serial number, the number writing terminal is informed of replacing the authorization license of the Internet of things equipment;
and/or the presence of a gas in the gas,
and if the authorization server determines that the authorization license does not have the name of issuing the authorization serial number, distributing a new authorization license for the Internet of things equipment, and issuing the new authorization license to the number writing terminal.
5. The method according to any one of claims 1 to 4, wherein the requesting the authorization server to issue an authorization serial number for the Internet of things device by the number writing terminal if the device type issued by the authorization server is the same as the device type of the Internet of things device by comparing comprises:
the number writing terminal acquires the equipment information of the Internet of things equipment and sends a serial number issuing request carrying the equipment information to the authorization server so that the authorization server issues an authorization serial number generated based on the equipment information.
6. The method according to any one of claims 1-4, further comprising:
and if the number writing terminal detects that the Internet of things equipment is connected to a preset interface through a serial port, acquiring the equipment type stored in the Internet of things equipment through a serial port instruction.
7. The method according to any one of claims 1-4, further comprising:
if the number writing terminal detects that the Internet of things equipment is connected to a preset interface through a serial port, determining that the Internet of things equipment needs number writing;
or the like, or, alternatively,
and if the number writing terminal receives an authorized serial number writing instruction for the Internet of things equipment, determining that the Internet of things equipment needs to write the number.
8. A number writing system, the system comprising:
the number writing terminal is used for acquiring an authorization license certificate of the Internet of things equipment and sending an equipment type query request carrying the authorization license certificate to an authorization server side when the Internet of things equipment is determined to need number writing; when receiving a device type issued by an authorization server, if the device type issued by the authorization server is compared to be the same as the device type of the internet of things device, requesting the authorization server to issue an authorization serial number for the internet of things device, wherein the authorization license certificate is a certificate for the authorization server to issue the authorization serial number for the internet of things device, and the authorization serial number is a basis for acquiring an OTA upgrade package when the internet of things device performs OTA upgrade;
and the authorization server is used for inquiring the equipment type corresponding to the authorization license certificate under the equipment type inquiry request and sending the inquired equipment type to the number writing terminal.
9. A computer-readable storage medium, wherein the storage medium includes a stored program, and wherein when the program is executed, the apparatus on which the storage medium is executed is controlled to perform:
when the fact that the number of the Internet of things equipment needs to be written is determined, obtaining an authorization license certificate of the Internet of things equipment, and sending an equipment type query request carrying the authorization license certificate to an authorization server; when receiving a device type issued by an authorization server, if the device type issued by the authorization server is compared to be the same as the device type of the internet of things device, requesting the authorization server to issue an authorization serial number for the internet of things device, wherein the authorization license certificate is a certificate for the authorization server to issue the authorization serial number for the internet of things device, and the authorization serial number is a basis for acquiring an OTA upgrade package when the internet of things device performs OTA upgrade;
or the like, or, alternatively,
when receiving a device type query request carrying an authorization license certificate sent by a number writing terminal, querying a device type corresponding to the authorization license certificate, and issuing the queried device type to the number writing terminal.
10. A storage management apparatus, characterized in that the storage management apparatus comprises:
a memory for storing a program;
a processor, coupled to the memory, for executing the program to perform:
when the fact that the number of the Internet of things equipment needs to be written is determined, obtaining an authorization license certificate of the Internet of things equipment, and sending an equipment type query request carrying the authorization license certificate to an authorization server; when receiving a device type issued by an authorization server, if the device type issued by the authorization server is compared to be the same as the device type of the internet of things device, requesting the authorization server to issue an authorization serial number for the internet of things device, wherein the authorization license certificate is a certificate for the authorization server to issue the authorization serial number for the internet of things device, and the authorization serial number is a basis for acquiring an OTA upgrade package when the internet of things device performs OTA upgrade;
or the like, or, alternatively,
when receiving a device type query request carrying an authorization license certificate sent by a number writing terminal, querying a device type corresponding to the authorization license certificate, and issuing the queried device type to the number writing terminal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111027232.2A CN113783863B (en) | 2021-09-02 | 2021-09-02 | Number writing method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111027232.2A CN113783863B (en) | 2021-09-02 | 2021-09-02 | Number writing method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113783863A true CN113783863A (en) | 2021-12-10 |
CN113783863B CN113783863B (en) | 2023-05-19 |
Family
ID=78840843
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111027232.2A Active CN113783863B (en) | 2021-09-02 | 2021-09-02 | Number writing method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113783863B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117540439A (en) * | 2024-01-10 | 2024-02-09 | 深圳市一恒科电子科技有限公司 | Method and device for automatically authorizing number writing of equipment, storage medium and electronic equipment |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103929670A (en) * | 2014-04-30 | 2014-07-16 | 深圳市九洲电器有限公司 | Set top box programming method and system |
CN105307150A (en) * | 2014-06-24 | 2016-02-03 | 中兴通讯股份有限公司 | Method and device for implementing virtual communication card |
US20160328719A1 (en) * | 2015-05-07 | 2016-11-10 | Ca, Inc. | DATA NORMALIZATION FOR INTERNET OF THINGS (IoT) DEVICES |
CN106231534A (en) * | 2016-07-28 | 2016-12-14 | 宇龙计算机通信科技(深圳)有限公司 | Mobile terminal and the number of writing thereof and method of disannuling a call, device |
US20170235564A1 (en) * | 2014-10-14 | 2017-08-17 | Huawei Technologies Co., Ltd. | Software upgrade method and device |
CN109995710A (en) * | 2017-12-29 | 2019-07-09 | 上海智显光电科技有限公司 | A kind of lan device management system and method |
CN112232454A (en) * | 2019-07-15 | 2021-01-15 | 广东美的制冷设备有限公司 | Data writing method and system, terminal, household appliance and computer device |
CN112469039A (en) * | 2020-11-25 | 2021-03-09 | 深圳市中易通安全芯科技有限公司 | Mobile terminal security authorization method based on security chip |
CN112950236A (en) * | 2021-03-31 | 2021-06-11 | 四川虹美智能科技有限公司 | Serial number writing method and device and computer readable medium |
-
2021
- 2021-09-02 CN CN202111027232.2A patent/CN113783863B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103929670A (en) * | 2014-04-30 | 2014-07-16 | 深圳市九洲电器有限公司 | Set top box programming method and system |
CN105307150A (en) * | 2014-06-24 | 2016-02-03 | 中兴通讯股份有限公司 | Method and device for implementing virtual communication card |
US20170235564A1 (en) * | 2014-10-14 | 2017-08-17 | Huawei Technologies Co., Ltd. | Software upgrade method and device |
US20160328719A1 (en) * | 2015-05-07 | 2016-11-10 | Ca, Inc. | DATA NORMALIZATION FOR INTERNET OF THINGS (IoT) DEVICES |
CN106231534A (en) * | 2016-07-28 | 2016-12-14 | 宇龙计算机通信科技(深圳)有限公司 | Mobile terminal and the number of writing thereof and method of disannuling a call, device |
CN109995710A (en) * | 2017-12-29 | 2019-07-09 | 上海智显光电科技有限公司 | A kind of lan device management system and method |
CN112232454A (en) * | 2019-07-15 | 2021-01-15 | 广东美的制冷设备有限公司 | Data writing method and system, terminal, household appliance and computer device |
CN112469039A (en) * | 2020-11-25 | 2021-03-09 | 深圳市中易通安全芯科技有限公司 | Mobile terminal security authorization method based on security chip |
CN112950236A (en) * | 2021-03-31 | 2021-06-11 | 四川虹美智能科技有限公司 | Serial number writing method and device and computer readable medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117540439A (en) * | 2024-01-10 | 2024-02-09 | 深圳市一恒科电子科技有限公司 | Method and device for automatically authorizing number writing of equipment, storage medium and electronic equipment |
CN117540439B (en) * | 2024-01-10 | 2024-04-19 | 深圳市一恒科电子科技有限公司 | Method and device for automatically authorizing number writing of equipment, storage medium and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN113783863B (en) | 2023-05-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10979292B2 (en) | Adaptive deployment of applications for mobile devices | |
CN110147240B (en) | Cloud storage-based application program installation method, system and storage medium | |
CN106357738B (en) | A kind of automatically dispose methods, devices and systems of server cluster | |
CN108462760B (en) | Electronic device, automatic cluster access domain name generation method and storage medium | |
EP2989543B1 (en) | Method and device for updating client | |
WO2013123829A1 (en) | Software installation method, device and system | |
CN104303454A (en) | Method and apparatus for authenticating access authority for specific resource in wireless communication system | |
JP2006511868A (en) | Method and apparatus for shared libraries in mobile devices | |
CN104937895A (en) | Method and apparatus for controlling access in wireless communication system | |
US11570258B2 (en) | Profile based content and services | |
JP7021239B2 (en) | Remote management of initial operating system setup options | |
JPWO2007077615A1 (en) | Software execution management apparatus, method and program thereof | |
WO2018082079A1 (en) | Method and apparatus for dynamically managing data exchange | |
CN108073630B (en) | Service search access management method and system based on dynamic configuration | |
CN112954040A (en) | Method, system, device and storage medium for embedding application release server | |
CN113783863A (en) | Number writing method and system | |
CN110493644B (en) | Television application upgrading method, television terminal and server | |
CN114362983A (en) | Firewall policy management method and device, computer equipment and storage medium | |
CN113794787A (en) | Number writing method and system | |
CN109800229B (en) | Data access method and related equipment | |
CN113032019A (en) | Multi-factor-based android device identification method and device and storage medium | |
CN108650320B (en) | Method for synchronizing configuration files of isomorphic cascading equipment in cluster environment | |
CN108234414B (en) | Upgrading method and device for APP | |
CN111488232A (en) | System and method for out-of-box solution level configuration and diagnostic logging and reporting | |
CN118413573B (en) | Resource management method, device, computer equipment, storage medium and product |
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 | ||
CB02 | Change of applicant information |
Address after: Room 101, floor 1, building 3, yard 18, Kechuang 10th Street, Beijing Economic and Technological Development Zone, Daxing District, Beijing 100176 Applicant after: Beijing ESWIN Computing Technology Co.,Ltd. Address before: Room 101, floor 1, building 3, yard 18, Kechuang 10th Street, Beijing Economic and Technological Development Zone, Daxing District, Beijing 100176 Applicant before: Beijing yisiwei Computing Technology Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |