CN110209404B - Sequence number burning method and terminal equipment - Google Patents

Sequence number burning method and terminal equipment Download PDF

Info

Publication number
CN110209404B
CN110209404B CN201910476275.5A CN201910476275A CN110209404B CN 110209404 B CN110209404 B CN 110209404B CN 201910476275 A CN201910476275 A CN 201910476275A CN 110209404 B CN110209404 B CN 110209404B
Authority
CN
China
Prior art keywords
serial number
sequence number
target
memory
target device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910476275.5A
Other languages
Chinese (zh)
Other versions
CN110209404A (en
Inventor
陈海波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenlan Robot Shanghai Co ltd
Original Assignee
Deep Blue Technology Shanghai Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Deep Blue Technology Shanghai Co Ltd filed Critical Deep Blue Technology Shanghai Co Ltd
Priority to CN201910476275.5A priority Critical patent/CN110209404B/en
Publication of CN110209404A publication Critical patent/CN110209404A/en
Application granted granted Critical
Publication of CN110209404B publication Critical patent/CN110209404B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a serial number burning method and terminal equipment, wherein the method comprises the following steps: the terminal equipment determines whether at least one idle serial number exists in a memory; if yes, automatically connecting at least one target device, and burning at least one idle serial number to the at least one target device, wherein the at least one target device corresponds to the at least one idle serial number one by one; if not, sending a request message to the server to apply for at least one serial number; after receiving at least one serial number sent by the server, the terminal equipment burns the received at least one serial number to at least one target equipment, and the at least one target equipment corresponds to the received at least one serial number one by one. By the mode, the terminal equipment can be automatically connected with at least one target equipment to complete the sequence number burning of the at least one target equipment, manual repeated operation and professional burning equipment are not needed, manpower and material resources are saved, and the burning efficiency of the sequence number of the target equipment is improved.

Description

Sequence number burning method and terminal equipment
Technical Field
The invention relates to the technical field of terminal equipment, in particular to a serial number burning method and terminal equipment.
Background
Typically, for convenience in identifying electronic products, a serial number is set for each electronic product. Before the electronic product leaves the factory, the serial number is burnt to the electronic product to identify the electronic product. Currently, a recording process of serial numbers of electronic products is generally performed by using professional recording equipment. The process comprises the following steps: the terminal device is manually connected with the professional burning device, and then the professional burning device is manually connected with the target electronic product (the target electronic product selected manually). When the programming software program installed in the terminal equipment runs, the professional programming equipment can be controlled to program the serial number for the target electronic product.
Therefore, in the current process of burning the serial numbers of the electronic products, more manual operation steps are needed, a great amount of time of manual labor is consumed, and the burning efficiency of the serial numbers of the electronic products is reduced.
Disclosure of Invention
The embodiment of the invention provides a serial number burning method and terminal equipment, which are used for improving the burning efficiency of serial numbers of electronic products.
In a first aspect, an embodiment of the present invention provides a serial number burning method, including:
the terminal equipment determines whether at least one idle serial number exists in a memory;
If the at least one idle sequence number exists, the terminal equipment is automatically connected with at least one target equipment, and the at least one idle sequence number is burnt to the at least one target equipment; wherein the at least one target device corresponds to the at least one idle sequence number one-to-one;
if the at least one idle sequence number does not exist, the terminal equipment sends a request message to a server; the request information is used for applying at least one serial number to the server;
after receiving at least one serial number sent by the server, the terminal equipment is automatically connected with at least one target equipment, and the received at least one serial number is burnt to the at least one target equipment; the at least one target device corresponds to the received at least one serial number one-to-one.
Optionally, the determining, by the terminal device, whether at least one idle sequence number exists in the memory includes:
the terminal equipment determines whether at least one idle serial number exists in the memory or not through marking information;
and the terminal equipment determines that the first sequence number of which the marking information is the first marking information in all sequence numbers stored in the memory is an idle sequence number.
Optionally, after the terminal device burns at least one idle sequence number to the at least one target device, the method further comprises:
the terminal device modifies the marking information of the at least one idle serial number burnt to the at least one target device into second marking information.
Optionally, after the terminal device burns the at least one idle sequence number to the at least one target device, the method further includes:
the terminal equipment controls the at least one target equipment to restart;
the terminal equipment is reconnected with the at least one target equipment, and the current serial number of each target equipment in the at least one target equipment is read;
if the read at least one current sequence number exists in the sequence number with the marking information in the memory as the second marking information, the terminal equipment determines that the at least one target equipment burns the sequence number successfully.
Optionally, after the terminal device receives at least one serial number sent by the server, before burning the received at least one serial number to the at least one target device, the method further includes:
The terminal device determines that the received at least one sequence number does not exist in the memory.
In a second aspect, an embodiment of the present invention provides a terminal device, including:
a processing unit for determining whether at least one free sequence number exists in the memory;
the processing unit is further configured to: automatically connecting at least one target device after determining that the at least one idle sequence number exists in the memory, and burning the at least one idle sequence number to the at least one target device; wherein the at least one target device corresponds to the at least one idle sequence number one-to-one;
a sending unit, configured to send a request message to a server after the processing unit determines that the at least one idle sequence number does not exist in the memory; the request information is used for applying at least one serial number to the server;
the receiving unit is used for receiving at least one serial number sent by the server;
the processing unit is further configured to: automatically connecting at least one target device after the receiving unit receives the at least one serial number, and burning the received at least one serial number to the at least one target device; the at least one target device corresponds to the received at least one serial number one-to-one.
Optionally, the processing unit is configured, when configured to determine whether at least one free sequence number exists in the memory, to:
determining whether at least one idle sequence number exists in the memory through marking information;
and determining that the first serial number of which the marking information is the first marking information is the idle serial number of all serial numbers stored in the memory.
Optionally, the processing unit is further configured to, after being configured to burn at least one idle sequence number to the at least one target device:
the marking information of the at least one idle serial number burnt to the at least one target device is modified to second marking information.
Optionally, the processing unit is further configured to, after being configured to burn the at least one idle sequence number to the at least one target device:
controlling the at least one target device to restart;
reconnecting the at least one target device, and reading the current serial number of each target device in the at least one target device;
if the read at least one current serial number exists in the serial number with the marking information in the memory as the second marking information, determining that the at least one target device burns the serial number successfully.
Optionally, after the receiving unit is configured to receive at least one serial number sent by the server, before the processing unit is configured to burn the received at least one serial number to the at least one target device, the processing unit is specifically configured to:
determining that the received at least one sequence number is not present in the memory.
In a third aspect, an embodiment of the present invention provides a terminal device, including:
a processor for determining whether at least one free sequence number exists in the memory;
the processor is further configured to: automatically connecting at least one target device after determining that the at least one idle sequence number exists in the memory, and burning the at least one idle sequence number to the at least one target device; wherein the at least one target device corresponds to the at least one idle sequence number one-to-one;
a transmitter for transmitting a request message to a server after the processor determines that the at least one free sequence number does not exist in the memory; the request information is used for applying at least one serial number to the server;
the receiver is used for receiving at least one serial number sent by the server;
The processor is further configured to: automatically connecting at least one target device after the receiver receives the at least one serial number, and burning the received at least one serial number to the at least one target device; the at least one target device corresponds to the received at least one serial number one-to-one.
Optionally, the processor is configured, when configured to determine whether at least one idle sequence number exists in the memory, to:
determining whether at least one idle sequence number exists in the memory through marking information;
and determining that the first serial number of which the marking information is the first marking information is the idle serial number of all serial numbers stored in the memory.
Optionally, the processor, after being configured to burn at least one idle sequence number to the at least one target device, is further configured to:
the marking information of the at least one idle serial number burnt to the at least one target device is modified to second marking information.
Optionally, after being used to burn the at least one idle sequence number to the at least one target device, the processor is further configured to:
controlling the at least one target device to restart;
Reconnecting the at least one target device, and reading the current serial number of each target device in the at least one target device;
if the read at least one current serial number exists in the serial number with the marking information in the memory as the second marking information, determining that the at least one target device burns the serial number successfully.
Optionally, after the receiver is configured to receive at least one serial number sent by the server, before the processor is configured to burn the received at least one serial number to the at least one target device, the processor is specifically configured to:
determining that the received at least one sequence number is not present in the memory.
In a fourth aspect, an embodiment of the present invention provides a terminal device, including a processor and a memory; wherein the memory is for storing one or more computer programs; the one or more computer programs stored by the memory, when executed by the processor, cause the terminal device to implement the method of the first aspect or any one of the possible designs of the first aspect.
In a fifth aspect, embodiments of the present invention provide a computer readable storage medium storing a computer program comprising program instructions which, when executed by a computer, cause the computer to perform the method of the first aspect or any one of the possible designs of the first aspect.
In a sixth aspect, embodiments of the present invention provide a computer program product storing a computer program comprising program instructions which, when executed by a computer, cause the computer to perform the method of the first aspect or any one of the possible designs of the first aspect.
The invention has the following beneficial effects:
in the technical scheme of the embodiment of the invention, the terminal equipment determines whether at least one idle serial number exists in a memory; if at least one idle serial number exists, the terminal equipment is automatically connected with at least one target equipment, and the at least one idle serial number is burnt to the at least one target equipment; wherein, at least one target device corresponds to at least one idle serial number one by one; if at least one idle serial number does not exist, the terminal equipment sends a request message to the server; the request information is used for applying at least one serial number to the server; after receiving at least one serial number sent by a server, the terminal equipment is automatically connected with at least one target equipment, the received at least one serial number is burnt to the at least one target equipment, and the at least one target equipment corresponds to the received at least one serial number one by one. By the mode, the terminal equipment can be automatically connected with at least one target equipment to complete the sequence number burning of the at least one target equipment, manual repeated operation and professional burning equipment are not needed, manpower and material resources are saved, and the burning efficiency of the sequence number of the target equipment is improved.
Drawings
Fig. 1 is a schematic diagram of an application scenario provided in an embodiment of the present invention;
fig. 2 is a schematic flow chart of a serial number burning method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 5 is a diagram illustrating a structure of a terminal device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail below with reference to the accompanying drawings, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The shapes and sizes of the various components in the drawings are not to scale, and are intended to illustrate the present invention only.
The following describes the application background of the invention in order for those skilled in the art to readily understand the technical solution of the present invention.
Generally, before an electronic product leaves a factory, a manufacturer needs to burn a serial number into the electronic product to be used as identification information of the electronic product to identify the electronic product. After the electronic product leaves the factory, the user can distinguish the authenticity of the electronic product through the serial number. Taking a mobile phone as an example, the mobile phone may display an interface (such as an interface for setting an application) in which related information about the mobile phone, such as a serial number of the mobile phone, is displayed. The user can search the serial number from the company network of the mobile phone manufacturer, and if the serial number is not found or found, but the serial number is displayed not in the serial number of the mobile phone shipped from the manufacturer, the mobile phone is determined to be counterfeit. At present, manufacturers burn serial numbers of electronic products through professional burning equipment, and the cost of the professional burning equipment is higher, so that the cost of burning the serial numbers of the electronic products is higher, and in the process of burning the serial numbers of the electronic products, terminal equipment is required to be manually operated for burning the serial numbers of the electronic products for many times. On one hand, a great deal of time is consumed manually, and the burning efficiency of the serial numbers of the electronic products is reduced; on the other hand, if the operation steps are more, operators are easy to have misoperation, and the burning success rate of the serial numbers of the electronic products is reduced.
In order to solve the above problems, the embodiment of the present invention provides a serial number burning method. In the method, the serial number of the electronic product can be automatically recorded by the terminal equipment only through one manual operation, multiple manual operations and professional recording equipment are not needed, manpower and material resources are saved, the recording efficiency of the serial number of the electronic product is improved, the problem of misoperation of operators can be avoided, and the recording success rate of the serial number of the electronic product is improved.
The application scenario of the serial number burning method provided by the embodiment of the invention is first described below. In the embodiment of the invention, an electronic product is taken as a target device as an example.
Referring to fig. 1, an application scenario is provided in the embodiment of the present invention. As shown in fig. 1, the application scenario includes: terminal device 100, router 101, server 102, and at least one target device (at least one target device in fig. 1 includes first target device 103, second target device 104, and third target device 105 as an example). At least one target device establishes a connection relationship with the terminal device 100 and the server 102 through the router 101, and the terminal device 100 and the server 102 establish a connection relationship through the router 101. The number of the at least one target device is not limited in the embodiment of the invention.
Alternatively, the terminal device 100 may be a mobile phone, iPad, notebook computer, desktop computer, or the like; the target device 103, the target device 104 and the target device 105 may be any device requiring serial number burning, such as a mobile phone, an iPad, a notebook computer, a desktop computer, etc., or the target device 103, the target device 104 and the target device 105 may be devices provided with at least one of a chip, a SIM card, a phone card, a water charge card, an electric charge card, a natural gas charge card, where the chip, the SIM card, the phone card, the water charge card, the electric charge card, the natural gas charge card require serial number burning. The router 101 may be a wired router or a wireless router, and embodiments of the present invention are not limited.
With continued reference to fig. 1, the terminal device 100 is provided with a burning software program, and after the terminal device 100 receives an operation of an operator, the burning software program is started to burn a serial number of at least one target device. For example, when the terminal device 100 detects that the operator clicks the operation of the burning software program on the terminal device 100, the burning software program is started.
An example of the terminal device 100 shown in fig. 1 burning a serial number for at least one target device is described below.
Example 1:
after the terminal device 100 starts the program of the burning software, it is determined whether at least one free sequence number, i.e. a sequence number which is not burned, exists in the memory of the terminal device 100. When the terminal device 100 determines that at least one free sequence number exists in the memory, the terminal device 100 reads the at least one free sequence number. The terminal device 100 is automatically connected to at least one target device. The terminal device 100 burns at least one idle sequence number to at least one target device, and each target device corresponds to one idle sequence number. For example, the terminal device 100 may burn a first idle sequence number of the at least one idle sequence number to the first target device 103, a second idle sequence number of the at least one idle sequence number to the second target device 104, and a third idle sequence number of the at least one idle sequence number to the third target device 105. When the terminal device 100 determines that at least one idle sequence number does not exist in the memory, the terminal device 100 may actively apply for the at least one sequence number to the server 102, and then store the applied at least one sequence number in the memory as the idle sequence number.
Example 2:
after the terminal device 100 starts the program of the burning software, it is automatically connected to at least one target device. The terminal device 100 determines whether at least one free sequence number is present in the memory. When the terminal device 100 determines that at least one free sequence number exists in the memory, the terminal device 100 reads the at least one free sequence number. The terminal device 100 burns at least one idle sequence number into at least one target device, and each target device corresponds to one idle sequence number.
It should be noted that, the terminal device may connect with one target device at a time, then burn the serial number for the target device, and when the target device is burned, then automatically connect with the next target device, and then burn the serial number for the next target device until the serial number of each target device is burned. Alternatively, the terminal device may connect with each of the at least one target device at a time and then burn a serial number for each target device. The terminal device 100 may be automatically disconnected from a target device whenever the terminal device completes the sequence number burning of the target device.
It should be noted that the above is an example in which the terminal device 100 and at least one target device, the server 102, establish a connection through the router 101. Of course, the terminal device 100 may also directly establish a connection with the server 102 and at least one target device, which is not limited by the embodiment of the present invention.
Note that, the memory may be an internal memory of the terminal device 100, or a virtual memory (e.g. cloud) or an external memory, which is not limited in the embodiment of the present invention.
In the embodiment of the invention, the terminal equipment can automatically complete the serial number burning of at least one target equipment only by manually operating the terminal equipment once, namely only by clicking and opening the burning software program by an operator. On the one hand, a great amount of time is not consumed manually, and the burning efficiency of the serial number of the target equipment is improved; on the other hand, the problem of misoperation of operators is avoided, and the burning success rate of the serial number of the target equipment is improved. In addition, in the embodiment of the invention, professional burning equipment is not needed, and the burning cost of the serial number of the target equipment is reduced.
The specific procedure of the terminal device to burn at least one idle sequence number to at least one target device is described below.
Fig. 2 is a schematic flow chart of a sequence number burning method according to an embodiment of the present invention. The router is not shown in fig. 2. The method can be applied to the application scenario shown in fig. 1 or similar application scenarios. The method comprises the following steps:
S201, the terminal equipment receives input operation and starts a burning software program.
Optionally, when the terminal device receives an input operation, the terminal device starts a burning software program. For example, when the terminal device is a notebook computer, the terminal device detects double clicking on an icon of the programming software program, or receives other remote control commands, and starts the programming software program. The embodiment of the invention is not particularly limited to the mode of starting the burning software program by the terminal equipment.
Alternatively, the burning software program may be an android debug bridge (Android Debug Bridge, ADB) or other burning software program developed by a manufacturer, which is not limited by the embodiment of the present invention.
S202, the terminal equipment determines whether at least one idle serial number exists in a memory; if there is at least one idle sequence number, S203 is performed, and if there is no at least one idle sequence number, S205 is performed.
Alternatively, the terminal device may determine whether at least one free sequence number exists in the memory through the flag information. For example, the terminal device may determine that the first sequence number of the first flag information is the idle sequence number of all the sequence numbers stored in the memory. For example, when the terminal device writes the idle sequence number into the memory for storage, the terminal device sets the flag information of the idle sequence number to the first flag information. For example, when the first flag information is set to 1, the terminal device determines that all the first sequence numbers for which the flag information is 1 in the memory are idle sequence numbers. Accordingly, the terminal device may determine that the second serial number of the tag information is the second tag information is the serial number that has been burned, or determine that the second serial number of the tag-free information is the serial number that has been burned. In other words, the terminal device may set the flag information of the already-burned serial number as the second flag information or may not set the flag information of the already-burned serial number when writing the already-burned serial number into the memory. The second serial number of the second marking information is a burned serial number.
The first mark information and the second mark information are not particularly limited. The person skilled in the art can set according to the actual requirement, as long as the terminal device can identify all the idle serial numbers and the burned serial numbers in the memory according to the first marking information and the second marking information.
S203, the terminal equipment sends request information to the server, wherein the request information is used for applying at least one serial number to the server.
For example, when the terminal device determines that at least one idle sequence number does not exist in the memory, the terminal device sends a request message to the server, applying for the at least one sequence number.
S204, the server sends at least one serial number to the terminal equipment.
Illustratively, when the server receives the request information sent by the terminal device, the server sends at least one sequence number to the terminal device.
Optionally, when the terminal device receives at least one serial number sent by the server, the terminal device determines whether the at least one serial number exists in the memory. When the terminal equipment determines that the at least one serial number does not exist in the memory, the terminal equipment sets the marking information of the at least one serial number as first marking information, and writes the at least one serial number into the memory for storage. When the terminal equipment determines that the at least one serial number exists in the memory, the terminal equipment sends a request message again to the server, and applies for the at least one serial number again until applying for the at least one serial number which does not exist in the memory.
S205, the terminal equipment is connected with at least one target equipment.
Alternatively, there may be a plurality of ways in which the terminal device connects to the at least one target device. For example, the terminal device connects each of the at least one target device simultaneously, or connects one of the at least one target device in turn, or connects a portion of the at least one target device at a time, etc. The embodiment of the invention does not specifically limit the mode of connecting the terminal equipment to at least one target equipment.
It should be noted that, the embodiment of the present invention does not limit the sequence of executing S202 and S205 by the terminal device. For example, the terminal device may perform S202 first, then S205, or perform S205 first, then S202, or perform S202 and S205 simultaneously.
Optionally, one possible implementation manner of the terminal device to determine that the connection with the at least one target device is successful is: taking at least one target device as an example, the terminal device sends a message to the target device, and if feedback of the target device is received, the terminal device determines that the connection with the target device is successful. Correspondingly, if the feedback of the target equipment is not received for a long time, the terminal equipment determines that the connection with the target equipment fails. After determining that the connection with the target device fails, the terminal device outputs first prompt information to prompt an operator to find out that the connection fails (for example, an interface of the target device connected with the router is loose, or the network connection is not opened by the target device, etc.).
S206, the terminal equipment burns at least one idle serial number to at least one target equipment, wherein the at least one target equipment corresponds to the at least one idle serial number one by one.
Alternatively, the manner in which the terminal device burns the at least one idle sequence number to the at least one target device may correspond to the manner in which the terminal device connects the at least one target device. For example, when the terminal device connects to each of the at least one target device at the same time, the terminal device may burn at least one idle sequence number in a one-to-one correspondence to the at least one target device at the same time. When the terminal equipment is sequentially connected with one of the at least one target equipment, the terminal equipment burns at least one idle serial number to the at least one target equipment in a one-to-one correspondence mode. When the terminal device connects with a part of the target devices in the at least one target device at a time, the terminal device can burn the part of the idle sequence numbers in the at least one idle sequence numbers to the part of the target devices in the at least one target device in a one-to-one correspondence manner.
Optionally, the terminal device burns at least one idle serial number to at least one target device, which may specifically be: the terminal device respectively sends the idle sequence numbers to at least one target device. When at least one target device receives the idle sequence number sent by the terminal device, the at least one target device writes the received idle sequence number into a flash memory (flash) for storage. Of course, the at least one target device may also store the received idle sequence number in other internal components, and embodiments of the present invention are not limited.
Alternatively, the terminal device may modify the flag information of the at least one idle sequence number that has been burned to the at least one target device to second flag information to identify that the at least one idle sequence number has been burned after transmitting the at least one idle sequence number to the at least one target device.
S207, the terminal equipment sends a first control instruction. The first control instruction is for instructing at least one target device to restart. Correspondingly, the at least one target device receives a first control instruction.
For example, the manner in which the terminal device sends the first control instruction may be various, for example:
as an example, the terminal device sends the first control command to the at least one target device when a preset duration (e.g., 5 seconds) is reached after sending the at least one idle sequence number to the at least one target device. In other words, the terminal device transmits the first control command to the at least one target device after transmitting the at least one idle sequence number to the at least one target device at intervals of a preset length of time (for example, at intervals of 5 seconds).
As another example, after receiving feedback information sent by at least one target device, the terminal device sends a first control command to the at least one target device. For example, when the at least one target device receives the idle sequence number sent by the terminal device, the at least one target device sends feedback information to the terminal device, where the feedback information is used to indicate that the at least one target device has accepted the idle sequence number sent by the terminal device.
S208, restarting at least one target device.
Illustratively, the at least one target device restarts after receiving a first control command sent by the terminal device.
S209, each target device in the at least one target device sends the current serial number to the terminal device.
Illustratively, in some embodiments, after the at least one target device completes the reboot, the current sequence number is actively sent to the terminal device. The terminal equipment reads the current serial number of each target equipment in the received at least one target equipment.
In other embodiments, after the at least one target device completes the restart, a second prompting message may be sent to the terminal device, for prompting the terminal device that the at least one target device has completed the restart. And when the terminal equipment receives the second prompt information, the current serial number is read from at least one target equipment.
S210, the terminal equipment determines that at least one target equipment finishes sequence number burning.
Optionally, the terminal device matches the received current sequence number of the at least one target device with the sequence number with the second tag information as tag information in all the sequence numbers in the memory, and determines whether the at least one target device burns the sequence number successfully. When the terminal equipment determines that the current serial number of the at least one target equipment exists in the serial number with the second marking information in the memory, the terminal equipment determines that the burning of the serial number of the at least one target equipment is successful. When the terminal device determines that the current sequence number of the at least one target device does not exist in the sequence number of which the tag information is the second tag information in the memory, the terminal device determines that the at least one target device fails to burn the sequence number, and returns to S202.
Optionally, after the terminal device determines that at least one target device burns the serial number successfully, the terminal device may send a second control instruction to the target device. The second control instruction is used for indicating at least one target device to close network access and disconnect the router.
For example, when the terminal device burns at least one idle sequence number to at least one target device at the same time, the terminal device may send a second control instruction to each target device in the at least one target device, so that each target device in the at least one target device closes network access according to the received second control instruction, and disconnects from the router. And the terminal equipment is connected with the next batch of at least one target equipment, and the sequence number burning is carried out on the next batch of at least one target equipment.
When the terminal equipment burns at least one idle serial number to at least one target equipment in a one-to-one correspondence manner, the terminal equipment sends a second control instruction to the target equipment every time the terminal equipment finishes the serial number burning of one target equipment, so that the target equipment closes network access according to the received second control instruction, and the connection with the router is disconnected. And after the terminal equipment finishes the burning of all the target equipment serial numbers in at least one target equipment, the terminal equipment burns the serial numbers of the next batch of target equipment.
When the terminal equipment burns part of the idle serial numbers in the at least one idle serial number to part of the target equipment in the at least one target equipment in a one-to-one correspondence manner, the terminal equipment respectively sends a second control instruction to the part of the target equipment every time the terminal equipment finishes the serial number burning of the part of the target equipment, so that the part of the target equipment closes network access according to the received second control instruction, and the connection with the router is disconnected. And after the terminal equipment completes the sequence number burning of all the target equipment in at least one target equipment, the terminal equipment carries out the sequence number burning on the next batch of target equipment.
As can be seen from the foregoing description, in the technical solution of the embodiment of the present invention, the terminal device determines whether at least one idle sequence number exists in the memory; if at least one idle serial number exists, the terminal equipment is automatically connected with at least one target equipment, and the at least one idle serial number is burnt to the at least one target equipment; wherein, at least one target device corresponds to at least one idle serial number one by one; if at least one idle serial number does not exist, the terminal equipment sends a request message to the server; the request information is used for applying at least one serial number to the server; after receiving at least one serial number sent by a server, the terminal equipment is automatically connected with at least one target equipment, the received at least one serial number is burnt to the at least one target equipment, and the at least one target equipment corresponds to the received at least one serial number one by one. By the mode, the terminal equipment can be automatically connected with at least one target equipment to complete the burning of the serial number of the at least one target equipment, manual repeated operation and professional burning equipment are not needed, manpower and material resources are saved, and the burning efficiency of the serial number of the target equipment is improved.
Based on the same conception, the embodiment of the invention provides terminal equipment. Fig. 3 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
As shown in fig. 3, the terminal device 300 includes:
a processing unit 301 for determining whether at least one free sequence number is present in a memory (not shown in fig. 3);
the processing unit 301 is further configured to: automatically connecting at least one target device after determining that at least one idle sequence number exists in the memory, and burning the at least one idle sequence number to the at least one target device; wherein, at least one target device corresponds to at least one idle serial number one by one;
a sending unit 302, configured to send a request message to a server (not shown in fig. 3) after the processing unit 301 determines that at least one idle sequence number does not exist in the memory; the request information is used for applying at least one serial number to the server;
a receiving unit 303, configured to receive at least one serial number sent by the server;
the processing unit 301 is further configured to: after the receiving unit 303 receives the at least one serial number, it automatically connects to at least one target device, burns the received at least one serial number to the at least one target device, and the at least one target device corresponds to the received at least one serial number one by one.
Optionally, the processing unit 301, when configured to determine whether at least one free sequence number exists in the memory, is specifically configured to:
determining whether at least one idle sequence number exists in the memory through the marking information;
and determining that the first serial number of which the marking information is the first marking information is the idle serial number.
Optionally, the processing unit 301, after being configured to burn at least one idle sequence number to at least one target device, is further configured to:
the marking information of the at least one idle serial number burnt to the at least one target device is modified to second marking information.
Optionally, the processing unit 301, after being configured to burn at least one idle sequence number to at least one target device, is further configured to:
controlling at least one target device to restart;
reconnecting at least one target device, and reading the current serial number of each target device in the at least one target device;
if the read at least one current sequence number exists in the sequence number with the second marking information in the memory, determining that the at least one target device burns the sequence number successfully.
Optionally, after the receiving unit 303 is configured to receive at least one serial number sent by the server, before the processing unit 301 is configured to burn the received at least one serial number to at least one target device, the processing unit 301 is specifically configured to:
It is determined that there is no received at least one sequence number in the memory.
The terminal device 300 in this embodiment and the serial number recording method shown in fig. 2 are based on the same concept, and a person skilled in the art can clearly understand the implementation process of the terminal device 300 in this embodiment through the detailed description of the serial number recording method, so that the description is omitted herein for brevity.
Based on the same conception, the embodiment of the invention provides terminal equipment. Fig. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
As shown in fig. 4, the terminal device 400 includes: a processor 401, a transmitter 402 and a receiver 403. The processor 401 may be a general purpose central processing unit (Central Processing Unit, CPU), or an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or a field programmable gate array (Field Programmable Gate Array, FPGA), or one or more integrated circuits for controlling program execution; transmitter 402 may be a wireless transmitter or a bluetooth transmitter; the receiver 403 may be a wireless receiver or a bluetooth receiver.
Optionally, the processor 401 is configured to determine whether at least one idle sequence number exists in a memory (not shown in fig. 4);
the processor 401 is further configured to: automatically connecting at least one target device after determining that at least one idle sequence number exists in the memory, and burning the at least one idle sequence number to the at least one target device; wherein, at least one target device corresponds to at least one idle serial number one by one;
a transmitter 402 for transmitting a request message to a server (not shown in fig. 4) after the processor 401 determines that at least one free sequence number does not exist in the memory; the request information is used for applying at least one serial number to the server;
a receiver 403, configured to receive at least one serial number sent by the server;
the processor 401 is further configured to: after the receiver 403 receives the at least one serial number, it automatically connects to at least one target device, burns the received at least one serial number to the at least one target device, and the at least one target device corresponds to the received at least one serial number one-to-one.
Optionally, the processor 401, when configured to determine whether at least one free sequence number exists in the memory, is specifically configured to:
Determining whether at least one idle sequence number exists in the memory through the marking information;
and determining that the first serial number of which the marking information is the first marking information is the idle serial number.
Optionally, the processor 401, after being configured to burn the at least one idle sequence number to the at least one target device, is further configured to:
the marking information of the at least one idle serial number burnt to the at least one target device is modified to second marking information.
Optionally, the processor 401, after being configured to burn the at least one idle sequence number to the at least one target device, is further configured to:
controlling at least one target device to restart;
reconnecting at least one target device, and reading the current serial number of each target device in the at least one target device;
if the read at least one current sequence number exists in the sequence number with the second marking information in the memory, determining that the at least one target device burns the sequence number successfully.
Optionally, after the receiver 403 is configured to receive at least one serial number sent by the server, before the processor 401 is configured to burn the received at least one serial number to at least one target device, the processor 401 is specifically configured to:
It is determined that there is no received at least one sequence number in the memory.
The terminal device 400 in this embodiment and the serial number recording method shown in fig. 2 are based on the same concept, and a person skilled in the art can clearly understand the implementation process of the terminal device 400 in this embodiment through the detailed description of the serial number recording method, so that the description is omitted herein for brevity.
Based on the same conception, the embodiment of the invention provides terminal equipment. Fig. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present invention. As shown in fig. 5, the terminal device 500 includes a processor 501 and a memory 502.
Alternatively, the processor 501 may be a general purpose central processing unit (Central Processing Unit, CPU), or application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or field programmable gate array (Field Programmable Gate Array, FPGA), or one or more integrated circuits for controlling program execution.
Alternatively, memory 502 may include high-speed random access memory, and may also include nonvolatile memory, such as magnetic disk storage devices, flash memory devices, or other nonvolatile solid state memory devices, as well as the like, as embodiments of the invention are not limited.
Optionally, the memory 502 is used to store one or more computer programs; the one or more computer programs stored by memory 502, when executed by processor 501, enable terminal device 500 to implement all or part of the steps in the embodiment illustrated in fig. 2.
The terminal device 500 in this embodiment and the serial number recording method shown in fig. 2 are based on the same concept, and a person skilled in the art can clearly understand the implementation process of the terminal device 500 in this embodiment through the detailed description of the serial number recording method, so that the description is omitted herein for brevity.
Based on the same inventive concept, embodiments of the present invention provide a computer-readable storage medium. Optionally, the computer readable storage medium has a computer program comprising program instructions which, when executed by a computer, cause the computer to perform the steps of the sequence number burning method described above. Since the computer program in the present embodiment and the serial number recording method shown in fig. 2 are based on the same invention under the same concept, the implementation process of the computer program in the present embodiment can be clearly understood by those skilled in the art through the foregoing detailed description of the serial number recording method, so that the description is omitted herein for brevity.
Based on the same inventive concept, an embodiment of the present invention provides a computer program product, where the computer program product stores a computer program, and the computer program includes program instructions, which when executed by a computer, cause the computer to execute the steps of the sequence number burning method described above. Since the computer program product in the present embodiment and the serial number recording method shown in fig. 2 are based on the same concept of the invention, those skilled in the art can clearly understand the implementation process of the computer program product in the present embodiment through the detailed description of the serial number recording method, so that the description is omitted herein for brevity.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (9)

1. The serial number burning method is characterized by comprising the following steps of:
the terminal equipment determines whether at least one idle serial number exists in a memory;
if the at least one idle sequence number exists, the terminal equipment is automatically connected with at least one target equipment, and the at least one idle sequence number is burnt to the at least one target equipment; wherein the at least one target device corresponds to the at least one idle sequence number one-to-one;
if the at least one idle sequence number does not exist, the terminal equipment sends a request message to a server; the request information is used for applying at least one serial number to the server;
after receiving at least one serial number sent by the server, the terminal equipment is automatically connected with at least one target equipment, and the received at least one serial number is burnt to the at least one target equipment; the at least one target device corresponds to the received at least one serial number one-to-one.
2. The method of claim 1, wherein the terminal device determining whether at least one free sequence number exists in memory comprises:
the terminal equipment determines whether at least one idle serial number exists in the memory or not through marking information;
And the terminal equipment determines that the first sequence number of which the marking information is the first marking information in all sequence numbers stored in the memory is an idle sequence number.
3. The method of claim 1, wherein after the terminal device burns at least one idle sequence number to the at least one target device, the method further comprises:
the terminal device modifies the marking information of the at least one idle serial number burnt to the at least one target device into second marking information.
4. A method according to claim 2 or 3, wherein after the terminal device burns the at least one idle sequence number to the at least one target device, the method further comprises:
the terminal equipment controls the at least one target equipment to restart;
the terminal equipment is reconnected with the at least one target equipment, and the current serial number of each target equipment in the at least one target equipment is read;
if the read at least one current sequence number exists in the sequence number with the marking information in the memory as the second marking information, the terminal equipment determines that the at least one target equipment burns the sequence number successfully.
5. The method of claim 1, wherein after the terminal device receives the at least one sequence number sent by the server, the method further comprises, prior to burning the received at least one sequence number to the at least one target device:
the terminal device determines that the received at least one sequence number does not exist in the memory.
6. A terminal device, comprising:
a processing unit for determining whether at least one free sequence number exists in the memory;
the processing unit is further configured to: automatically connecting at least one target device after determining that the at least one idle sequence number exists in the memory, and burning the at least one idle sequence number to the at least one target device; wherein the at least one target device corresponds to the at least one idle sequence number one-to-one;
a sending unit, configured to send a request message to a server after the processing unit determines that the at least one idle sequence number does not exist in the memory; the request information is used for applying at least one serial number to the server;
the receiving unit is used for receiving at least one serial number sent by the server;
The processing unit is further configured to: automatically connecting at least one target device after the receiving unit receives the at least one serial number, and burning the received at least one serial number to the at least one target device; the at least one target device corresponds to the received at least one serial number one-to-one.
7. The terminal device of claim 6, wherein the processing unit, when configured to determine whether at least one free sequence number is present in the memory, is specifically configured to:
determining whether at least one idle sequence number exists in the memory through marking information;
and determining that the first serial number of which the marking information is the first marking information is the idle serial number of all serial numbers stored in the memory.
8. A terminal device comprising a processor and a memory; wherein,,
the memory is used for storing one or more computer programs; the one or more computer programs stored by the memory, when executed by the processor, cause the terminal device to perform the method of any of claims 1-5.
9. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program comprising program instructions which, when executed by a computer, cause the computer to perform the method of any of claims 1-5.
CN201910476275.5A 2019-06-03 2019-06-03 Sequence number burning method and terminal equipment Active CN110209404B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910476275.5A CN110209404B (en) 2019-06-03 2019-06-03 Sequence number burning method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910476275.5A CN110209404B (en) 2019-06-03 2019-06-03 Sequence number burning method and terminal equipment

Publications (2)

Publication Number Publication Date
CN110209404A CN110209404A (en) 2019-09-06
CN110209404B true CN110209404B (en) 2023-07-14

Family

ID=67790404

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910476275.5A Active CN110209404B (en) 2019-06-03 2019-06-03 Sequence number burning method and terminal equipment

Country Status (1)

Country Link
CN (1) CN110209404B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016146013A1 (en) * 2015-03-19 2016-09-22 阿里巴巴集团控股有限公司 Method, device and system for online writing application key in digital content device
WO2016188037A1 (en) * 2015-05-28 2016-12-01 深圳市中兴微电子技术有限公司 Version burning method, system and terminal, and computer storage medium
CN106528220A (en) * 2016-10-27 2017-03-22 武汉奥泽电子有限公司 Anti-coincident-code programming system and method for serial number of automobile remote controller
CN107977219A (en) * 2017-11-27 2018-05-01 伟创力电子技术(苏州)有限公司 A kind of automatic burning firmware method

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104536789A (en) * 2014-12-28 2015-04-22 珠海全志科技股份有限公司 Data burning method and data burning device
CN105516788A (en) * 2015-12-09 2016-04-20 珠海迈科智能科技股份有限公司 Programming method and system for storage device of set top box
CN107360560B (en) * 2017-06-27 2018-05-29 深圳市爱培科技术股份有限公司 A kind of automatic method for burn-recording of IMEI number and system of volume production movement equipment
CN109189402A (en) * 2018-07-11 2019-01-11 厦门华联电子股份有限公司 The automatic programming system of product software, method and burning server
CN109298872B (en) * 2018-11-30 2022-08-23 冠捷电子科技(福建)有限公司 Display DDC full-automatic burning device and method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016146013A1 (en) * 2015-03-19 2016-09-22 阿里巴巴集团控股有限公司 Method, device and system for online writing application key in digital content device
WO2016188037A1 (en) * 2015-05-28 2016-12-01 深圳市中兴微电子技术有限公司 Version burning method, system and terminal, and computer storage medium
CN106528220A (en) * 2016-10-27 2017-03-22 武汉奥泽电子有限公司 Anti-coincident-code programming system and method for serial number of automobile remote controller
CN107977219A (en) * 2017-11-27 2018-05-01 伟创力电子技术(苏州)有限公司 A kind of automatic burning firmware method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于Wi-Fi远程通信的无线烧录器的设计与实现;陆俊伟;龚元明;周建鹏;李文静;;计算机测量与控制(11);全文 *

Also Published As

Publication number Publication date
CN110209404A (en) 2019-09-06

Similar Documents

Publication Publication Date Title
CN108986821B (en) Method and equipment for setting relation between room and equipment
CN108804118B (en) Firmware upgrading method, device and storage medium
CN106020875B (en) Firmware update management method and device of embedded terminal
US20160132315A1 (en) Method, Apparatus, and Communication Device for Updating Firmware
CN113498594B (en) Control method and device of smart home system, electronic equipment and storage medium
CN106648781B (en) Method and system for upgrading remote firmware of communication equipment
WO2018076969A1 (en) Software upgrade method, computing device, and channel control device
CN110543318A (en) control device program updating method and device, storage medium and control device
CN105700918A (en) System upgrading method and device
CN104519105A (en) Method and device for acquiring applications matched with terminals
CN103997684A (en) Method and device for updating operating system
CN109002305B (en) Method and system for updating equipment program
CN105045671A (en) Method and device for upgrading systems of intelligent terminals
CN111580837A (en) Method, device, terminal and storage medium for burning MAC address
CN114760466A (en) Display device testing method and device and storage medium
CN107087164A (en) A kind of method and apparatus of device power-up
CN112788576B (en) Equipment offline processing method and system, storage medium and electronic device
CN110209404B (en) Sequence number burning method and terminal equipment
CN113596077A (en) Program downloading method, device, computer equipment and storage medium
CN110675894B (en) HDCP key online burning method and device and electronic equipment
CN107920074B (en) SDK automatic upgrading method, terminal equipment and master control server
CN111427604A (en) Remote software upgrading system and method based on functional mobile phone
CN110908733A (en) Working mode determining method and device, and control method and device
CN112312212B (en) Upgrading method and related device for digital television system
CN109871288B (en) Method, device, equipment and medium for executing Android system command

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20240508

Address after: Room 6227, No. 999, Changning District, Shanghai 200050

Patentee after: Shenlan robot (Shanghai) Co.,Ltd.

Country or region after: China

Address before: Unit 1001, 369 Weining Road, Changning District, Shanghai, 200336 (9th floor of actual floor)

Patentee before: DEEPBLUE TECHNOLOGY (SHANGHAI) Co.,Ltd.

Country or region before: China

TR01 Transfer of patent right