Firmware upgrading method and device

By generating firmware upgrade instructions and obtaining device verification codes to obtain incremental firmware, the problem of firmware maintenance difficulties caused by the increase in smart product models is solved, and efficient resource utilization and production efficiency are achieved.

CN119917148APending Publication Date: 2025-05-02DONGGUAN DERUCCI BEDDING CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411977651.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-05-02

AI Technical Summary

Technical Problem

With the increase in smart product models, firmware maintenance becomes difficult, resulting in waste of resources and high maintenance costs.

Method used

A firmware upgrade method and device is proposed. By generating firmware upgrade instructions, it is sent to the device to be upgraded, it enters the firmware upgrade mode, obtains the device verification code, and sends it to the server to obtain the corresponding incremental firmware to be upgraded, and sends it to the device for firmware upgrade.

Benefits of technology

Reduce the waste of smart product inventory, reduce firmware maintenance costs, and improve the efficiency of the production process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119917148A_ABST
    Figure CN119917148A_ABST
Patent Text Reader

Abstract

The invention discloses a firmware upgrading method and device. The method comprises the steps that a firmware upgrading instruction is generated; sending the firmware upgrading instruction to the to-be-upgraded equipment; the to-be-upgraded equipment enters a firmware upgrading mode according to the firmware upgrading instruction; the equipment check code comprises an equipment anti-counterfeiting code and an equipment code; sending the equipment check code to a server; the server obtains to-be-upgraded incremental firmware according to the equipment anti-counterfeiting code and sends the to-be-upgraded incremental firmware to the to-be-upgraded equipment according to the equipment code, and the to-be-upgraded equipment performs firmware upgrading according to the to-be-upgraded incremental firmware and basic firmware in the to-be-upgraded equipment to obtain finished firmware; the incremental firmware to be upgraded comprises an incremental function, and the basic firmware comprises a basic function; the finished firmware model of the finished firmware is verified, and if verification succeeds, it is confirmed that firmware upgrading of the to-be-upgraded device succeeds. The method can reduce the inventory waste of intelligent products, reduces the firmware maintenance cost of the intelligent products, improves the production efficiency, and can be widely applied to the technical field of computers.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a firmware upgrade method and device. Background Art

[0002] In the related art, with the increasing number of smart product models, firmware maintenance becomes increasingly difficult. Embedded developers need to maintain a set of codes for each model, and there are a lot of duplicate content in these codes. If a certain function needs to be repaired, the codes of multiple models must be modified at the same time. However, the semi-finished product production control box cannot predict what model the finished product needs to generate, so production cannot be arranged at will. If a certain model is overproduced, it will cause a waste of resources. At this time, it is necessary to change the model by burning the firmware, which is a very cumbersome process.

[0003] In summary, the technical problems existing in the relevant technologies need to be improved. Summary of the invention

[0004] The embodiments of the present application aim to solve at least one of the technical problems in the related art to a certain extent. To this end, the main purpose of the embodiments of the present application is to propose a firmware upgrade method and device that can reduce the waste of smart product inventory, reduce the firmware maintenance cost of smart products, and thus improve the efficiency of the production process.

[0005] To achieve the above object, an embodiment of the present application provides a firmware upgrade method for a smart terminal, the method comprising the following steps:

[0006] Generate firmware upgrade instructions;

[0007] Sending the firmware upgrade instruction to the device to be upgraded; so that the device to be upgraded enters the firmware upgrade mode according to the firmware upgrade instruction;

[0008] Obtaining a device verification code of the device to be upgraded; wherein the device verification code includes a device anti-counterfeiting code and a device code;

[0009] The device verification code is sent to a server; so that the server obtains the incremental firmware to be upgraded corresponding to the device to be upgraded according to the device anti-counterfeiting code, and sends the incremental firmware to be upgraded to the device to be upgraded according to the device code, so that the device to be upgraded performs firmware upgrade according to the incremental firmware to be upgraded and the basic firmware in the device to be upgraded in the firmware upgrade mode to obtain the finished firmware; wherein the incremental firmware to be upgraded is the firmware containing the incremental function, and the basic firmware is the firmware containing the basic function;

[0010] When it is monitored that the finished firmware is generated, the finished firmware model of the finished firmware is verified, and if the verification is successful, it is confirmed that the firmware upgrade of the device to be upgraded is successful.

[0011] In some embodiments, the device to be upgraded includes a semi-finished control box, and the semi-finished control box is burned with the basic firmware. Before generating the firmware upgrade instruction, the method further includes:

[0012] Performing a semi-finished product inspection on the semi-finished product control box to determine whether the semi-finished product control box and the basic firmware are used normally;

[0013] If it is determined that the semi-finished control box and the basic firmware are in normal use, the semi-finished control box in normal use will be used as the semi-finished control box of the device to be upgraded.

[0014] In some embodiments, when the generation of the finished firmware is detected, the finished firmware model of the finished firmware is verified, and if the verification is successful, it is confirmed that the firmware upgrade of the device to be upgraded is successful, including:

[0015] When it is detected that the finished firmware is generated, obtaining the finished firmware model in the finished firmware;

[0016] Compare the finished product firmware model with the device anti-counterfeiting code to determine whether the firmware of the device to be upgraded is successfully upgraded;

[0017] If the model of the finished firmware is consistent with the model corresponding to the device anti-counterfeiting code, it is confirmed that the firmware upgrade of the device to be upgraded is successful.

[0018] To achieve the above object, another aspect of an embodiment of the present application provides a firmware upgrade method, which is applied to a server, wherein the server stores a plurality of incremental firmwares, wherein the incremental firmwares are firmwares containing incremental functions, and the method comprises the following steps:

[0019] Receive a device verification code sent by a smart terminal; wherein the device verification code is a QR code of the device to be upgraded, and the device verification code includes a device anti-counterfeiting code and a device code;

[0020] Acquire the order information of the product to be upgraded corresponding to the device to be upgraded according to the device anti-counterfeiting code;

[0021] According to the order information of the product to be upgraded, selecting the incremental firmware to be upgraded corresponding to the device to be upgraded from the plurality of incremental firmwares;

[0022] Sending the incremental firmware to be upgraded to the device to be upgraded according to the device code; so that the device to be upgraded performs firmware upgrade according to the incremental firmware to be upgraded and the basic firmware in the device to be upgraded in the firmware upgrade mode to obtain the finished firmware;

[0023] Wherein, the device verification code is determined according to the above-mentioned firmware upgrade method applied to the smart terminal.

[0024] In some embodiments, the step of selecting the incremental firmware to be upgraded corresponding to the device to be upgraded from the plurality of incremental firmwares according to the order information of the product to be upgraded includes:

[0025] Performing data extraction processing on the order information of the product to be upgraded to obtain the model of the device to be upgraded corresponding to the device to be upgraded;

[0026] The incremental firmware to be upgraded corresponding to the device model to be upgraded is selected from the plurality of incremental firmwares.

[0027] To achieve the above object, another aspect of an embodiment of the present application provides a firmware upgrade method, which is applied to a device to be upgraded, wherein the device to be upgraded includes a semi-finished control box, and the semi-finished control box is burned with basic firmware, and the basic firmware is firmware containing basic functions, and the method includes the following steps:

[0028] Receive a firmware upgrade instruction sent by the smart terminal, and enter a firmware upgrade mode according to the firmware upgrade instruction;

[0029] Receive the incremental firmware to be upgraded sent by the server;

[0030] In the firmware upgrade mode, firmware upgrade is performed according to the incremental firmware to be upgraded and the basic firmware to obtain finished firmware;

[0031] Wherein, the firmware upgrade instruction is determined according to the above-mentioned firmware upgrade method applied to the smart terminal.

[0032] In some embodiments, in the firmware upgrade mode, performing firmware upgrade according to the incremental firmware to be upgraded and the basic firmware to obtain finished firmware includes:

[0033] In the firmware upgrade mode, the incremental firmware to be upgraded and the basic firmware are merged to obtain the finished firmware.

[0034] To achieve the above object, another aspect of the embodiment of the present application provides a firmware upgrade device, which is applied to a smart terminal. The device includes the following modules:

[0035] A firmware upgrade instruction generation module, used to generate a firmware upgrade instruction;

[0036] A firmware upgrade instruction sending module, used to send the firmware upgrade instruction to the device to be upgraded, so that the device to be upgraded enters the firmware upgrade mode according to the firmware upgrade instruction;

[0037] A device verification code acquisition module, used to acquire the device verification code of the device to be upgraded; wherein the device verification code includes a device anti-counterfeiting code and a device code;

[0038] A device verification code sending module, used to send the device verification code to a server; so that the server obtains the incremental firmware to be upgraded corresponding to the device to be upgraded according to the device anti-counterfeiting code, and sends the incremental firmware to be upgraded to the device to be upgraded according to the device code, so that the device to be upgraded performs firmware upgrade according to the incremental firmware to be upgraded and the basic firmware in the device to be upgraded in the firmware upgrade mode to obtain the finished firmware; wherein the incremental firmware to be upgraded is the firmware containing the incremental function, and the basic firmware is the firmware containing the basic function;

[0039] The finished firmware detection module is used to verify the finished firmware model of the finished firmware when it is detected that the finished firmware is generated. If the verification is successful, it is confirmed that the firmware upgrade of the device to be upgraded is successful.

[0040] To achieve the above object, another aspect of the embodiment of the present application provides a firmware upgrade device, which is applied to a server, wherein the server stores a plurality of incremental firmwares, wherein the incremental firmwares are firmwares containing incremental functions, and the device includes the following modules:

[0041] The device verification code receiving module is used to receive the device verification code sent by the smart terminal; wherein the device verification code is a QR code of the device to be upgraded, and the device verification code includes a device anti-counterfeiting code and a device code;

[0042] A module for acquiring order information of products to be upgraded, used for acquiring order information of products to be upgraded corresponding to the device to be upgraded according to the device anti-counterfeiting code;

[0043] The incremental firmware to be upgraded acquisition module is used to filter out the incremental firmware to be upgraded corresponding to the device to be upgraded from a plurality of the incremental firmware according to the order information of the product to be upgraded;

[0044] The incremental firmware to be upgraded sending module is used to send the incremental firmware to be upgraded to the device to be upgraded according to the device code, so that the device to be upgraded performs firmware upgrade according to the incremental firmware to be upgraded and the basic firmware in the device to be upgraded in the firmware upgrade mode to obtain the finished firmware;

[0045] Wherein, the device verification code is determined according to the above-mentioned firmware upgrade device applied to the smart terminal.

[0046] To achieve the above object, another aspect of the embodiment of the present application provides a firmware upgrade device, which is applied to a device to be upgraded, wherein the device to be upgraded includes a semi-finished control box, and the semi-finished control box is burned with basic firmware, and the basic firmware is firmware containing basic functions, and the device includes the following modules:

[0047] A firmware upgrade instruction receiving module, used to receive a firmware upgrade instruction sent by the smart terminal, and enter a firmware upgrade mode according to the firmware upgrade instruction;

[0048] The incremental firmware to be upgraded receiving module is used to receive the incremental firmware to be upgraded sent by the server;

[0049] A firmware upgrade module, used to perform firmware upgrade according to the incremental firmware to be upgraded and the basic firmware to obtain finished firmware in the firmware upgrade mode;

[0050] Wherein, the firmware upgrade instruction is determined according to the above-mentioned firmware upgrade device applied to the smart terminal.

[0051] The embodiments of the present application include at least the following beneficial effects: The present application provides a firmware upgrade method and apparatus, which generates a firmware upgrade instruction; sends the firmware upgrade instruction to a device to be upgraded; so that the device to be upgraded enters a firmware upgrade mode according to the firmware upgrade instruction; obtains a device verification code of the device to be upgraded; wherein the device verification code includes a device anti-counterfeiting code and a device code; sends the device verification code to a server; so that the server obtains the incremental firmware to be upgraded corresponding to the device to be upgraded according to the device anti-counterfeiting code, and sends the incremental firmware to be upgraded to the device to be upgraded according to the device code, so that the device to be upgraded performs a firmware upgrade in the firmware upgrade mode according to the incremental firmware to be upgraded and the basic firmware in the device to be upgraded to obtain a finished firmware; wherein the incremental firmware to be upgraded is a firmware containing incremental functions, and the basic firmware is a firmware containing basic functions; when it is monitored that the finished firmware is generated, the finished firmware model of the finished firmware is verified, and if the verification is successful, it is confirmed that the firmware upgrade of the device to be upgraded is successful. The embodiment of the present application divides the firmware code into a basic firmware of a basic version, and writes incremental firmware for the functions specific to each model. The unified basic firmware can be used for testing and verification of the production line, and the corresponding incremental firmware can be obtained by switching the model through the smart terminal. Then, the device to be upgraded can perform firmware upgrades according to the incremental firmware and the basic firmware in the firmware upgrade mode to obtain the finished firmware, that is, the basic firmware can be efficiently upgraded to the firmware corresponding to the order according to the incremental firmware, thereby reducing the waste of smart product inventory, reducing the firmware maintenance cost of smart products, and thus improving the efficiency of the production process. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1This is a flowchart of the steps of a firmware upgrade method provided in an embodiment of the present application when applied to a smart terminal;

[0053] Figure 2 This is a schematic diagram of an interface for selecting a device to be upgraded provided in an embodiment of the present application;

[0054] Figure 3 It is a flowchart of the steps of a firmware upgrade method provided in an embodiment of the present application when it is applied to a server;

[0055] Figure 4 It is a flowchart of the steps of a firmware upgrade method provided in an embodiment of the present application when it is applied to a device to be upgraded;

[0056] Figure 5 This is a schematic diagram of a basic firmware packaging process in the embedded firmware packaging stage provided by an embodiment of the present application;

[0057] Figure 6 It is a schematic diagram of an incremental firmware packaging process in the embedded firmware packaging stage provided by an embodiment of the present application;

[0058] Figure 7 This is a schematic diagram of a semi-finished product detection process provided by an embodiment of the present application;

[0059] Figure 8 This is a schematic diagram of a finished product inspection process provided by an embodiment of the present application;

[0060] Fig. 9 It is a structural diagram of a firmware upgrade device provided in an embodiment of the present application when applied to a smart terminal;

[0061] Fig.10 It is a structural diagram of a firmware upgrade device provided in an embodiment of the present application when applied to a server;

[0062] Fig.11 It is a structural diagram of a firmware upgrade device provided in an embodiment of the present application when applied to a device to be upgraded;

[0063] Fig.12 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0064] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below in conjunction with the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the embodiments of the present application. They are only examples of devices and methods consistent with some aspects of the embodiments of the present application as detailed in the attached claims.

[0065] It is understood that the terms "first", "second", etc. used in this application can be used to describe various concepts in this article, but unless otherwise specified, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another concept. For example, without departing from the scope of the embodiment of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" and "if" as used herein can be interpreted as "at the time of" or "when" or "in response to determination".

[0066] The terms "at least one", "multiple", "each", "any", etc. used in this application, at least one includes one, two or more, multiple includes two or more, each refers to each of the corresponding multiple, and any refers to any one of the multiple.

[0067] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0068] In the related art, with the increasing number of smart product models, firmware maintenance becomes increasingly difficult. Embedded developers need to maintain a set of codes for each model, and there are a lot of duplicate content in these codes. If a certain function needs to be repaired, the codes of multiple models must be modified at the same time. However, the semi-finished product production control box cannot predict what model the finished product needs to generate, so production cannot be arranged at will. If a certain model is overproduced, it will cause a waste of resources. At this time, it is necessary to change the model by burning the firmware, which is a very cumbersome process.

[0069] In view of this, a firmware upgrade method and device are provided in an embodiment of the present application. The scheme generates a firmware upgrade instruction; sends the firmware upgrade instruction to a device to be upgraded; so that the device to be upgraded enters a firmware upgrade mode according to the firmware upgrade instruction; obtains a device verification code of the device to be upgraded; wherein the device verification code includes a device anti-counterfeiting code and a device code; sends the device verification code to a server; so that the server obtains the incremental firmware to be upgraded corresponding to the device to be upgraded according to the device anti-counterfeiting code, and sends the incremental firmware to be upgraded to the device to be upgraded according to the device code, so that the device to be upgraded performs a firmware upgrade in the firmware upgrade mode according to the incremental firmware to be upgraded and the basic firmware in the device to be upgraded to obtain a finished firmware; wherein the incremental firmware to be upgraded is a firmware containing incremental functions, and the basic firmware is a firmware containing basic functions; when it is monitored that the finished firmware is generated, the finished firmware model of the finished firmware is verified, and if the verification is successful, it is confirmed that the firmware upgrade of the device to be upgraded is successful. The embodiment of the present application divides the firmware code into a basic firmware of a basic version, and writes incremental firmware for the functions specific to each model. The unified basic firmware can be used for testing and verification of the production line, and the corresponding incremental firmware can be obtained by switching the model through the smart terminal. Then, the device to be upgraded can perform firmware upgrades according to the incremental firmware and the basic firmware in the firmware upgrade mode to obtain the finished firmware, that is, the basic firmware can be efficiently upgraded to the firmware corresponding to the order according to the incremental firmware, thereby reducing the waste of smart product inventory, reducing the firmware maintenance cost of smart products, and thus improving the efficiency of the production process.

[0070] The firmware upgrade method provided in the embodiment of the present application relates to the field of computer technology. The firmware upgrade method provided in the embodiment of the present application can be applied to a terminal, can also be applied to a server, and can also be software running in a terminal or a server. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, and a car terminal, etc., but is not limited to this; the server side can be configured as an independent physical server, or it can be configured as a server cluster or a distributed system composed of multiple physical servers, and can also be configured to provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network, content distribution network) and cloud servers for basic cloud computing services such as big data and artificial intelligence platforms. The server can also be a node server in a blockchain network; the software can be an application that implements the firmware upgrade method, etc., but is not limited to the above forms.

[0071] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld devices or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronic devices, network PCs (Personal Computers, personal computers), minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0072] See also Figure 1 , Figure 1 is a flowchart of the steps of a firmware upgrade method provided in an embodiment of the present application when applied to a smart terminal. Figure 1 The method in is applied to intelligent terminals. Figure 1 The method may include but is not limited to steps S101 to S105.

[0073] Step S101, generating a firmware upgrade instruction;

[0074] For the smart terminal, it includes a camera device for scanning the device QR code; the smart terminal runs SPT-APP (Production Test APP), which includes the semi-finished product detection, finished product detection, and the function of switching the basic firmware to the incremental firmware of the smart product. It should be noted that the specific architecture of SPT-APP is not limited in this embodiment of the application, but it must have the functions of semi-finished product detection, finished product detection, and switching the basic firmware to the incremental firmware of the smart product.

[0075] Among them, the firmware upgrade instruction is an instruction to notify the device to be upgraded to upgrade the firmware through the smart terminal. At the same time, SPT-APP will also send a network configuration instruction to notify the device to be upgraded to connect to the network.

[0076] For example, assuming that the device to be upgraded is a smart mattress, the firmware upgrade instruction and networking instruction can be sent to the smart mattress through the SPT-APP on the smart terminal. After receiving the instruction, the smart mattress will connect to the network and enter the firmware upgrade mode.

[0077] The device to be upgraded may be a smart device (such as a smart mattress) that needs to be upgraded with firmware. The device to be upgraded includes a semi-finished control box, and the semi-finished control box after entering the semi-finished product detection stage is burned with basic firmware. Specifically, in the semi-finished product detection stage, the new basic firmware can be burned into the smart product control box to obtain a semi-finished control box with the basic firmware burned in it.

[0078] Before the firmware upgrade method of the embodiment of the present application is started, it includes an embedded firmware formation process, that is, a process of generating basic firmware and incremental firmware. The generation process of the basic firmware is: first, the embedded developer extracts the common basic functions of the smart product, forms the basic firmware based on the common basic functions, and then packages the basic firmware and hands it over to the semi-finished control box supplier, and then the semi-finished control box supplier subsequently burns the basic firmware into the production of the smart product control box. At the same time, the generation process of the incremental firmware is: first, the unique functions (incremental functions) of each model are packaged into the corresponding incremental firmware, and then the incremental firmware is uploaded to the server.

[0079] Among them, the basic firmware is the firmware that includes basic functions. For example, taking a smart mattress as an example, the firmware name of its basic firmware can be set to TE1-1.0.0.bin, and its basic functions may include Bluetooth network configuration function, WiFi networking function, production test and quality inspection function, and OTA (Over-The-Air, over-the-air download technology firmware upgrade function. The incremental firmware represents the functions beyond the basic firmware. The functions of each smart product model are different. The firmware name of the incremental firmware can be set to "model + version number" (such as MWI1-001-1.0.0.bin). For example, it is assumed that the MWI1-001 model of the smart mattress has a heating function and a monitoring belt function, and the MWI1-002 model has a heating function, a monitoring belt function, and a piezoelectric ceramic function.

[0080] In some embodiments, before step S101, the method may also include: performing semi-finished product inspection on the semi-finished control box to determine whether the semi-finished control box and the basic firmware are in normal use; if the semi-finished control box and the basic firmware are determined to be in normal use, the semi-finished control box in normal use will be used as the semi-finished control box of the device to be upgraded.

[0081] In the specific implementation, the specific implementation process of semi-finished product detection is: first burn the latest basic firmware to the smart product control box (semi-finished control box without basic firmware burned in), and then use the SPT-APP (Production Test APP) running on the smart terminal to detect the semi-finished control box (semi-finished control box with basic firmware burned in), to ensure that the basic firmware and the semi-finished control box (semi-finished control box with basic firmware burned in) are detected normally. If the basic firmware and the semi-finished control box (semi-finished control box with basic firmware burned in) are normal, the semi-finished control box (semi-finished control box with basic firmware burned in) will be handed over to the finished product manufacturer for finished product production and the semi-finished control box in normal use will be used as the semi-finished control box of the device to be upgraded.

[0082] For example, assuming that the device to be upgraded is a smart mattress, the detection of the semi-finished control box may include basic detections such as Bluetooth network configuration, WiFi, air pump, air pressure sensor, external devices, and inflation and deflation.

[0083] Step S102, sending the firmware upgrade instruction to the device to be upgraded, so that the device to be upgraded enters a firmware upgrade mode according to the firmware upgrade instruction;

[0084] In the specific implementation, first send the firmware upgrade instruction to the device to be upgraded, then power on the device to be upgraded, and the device to be upgraded will broadcast the device name via Bluetooth. Then the finished product inspection personnel open the SPT-APP and select the firmware upgrade function. At this time, the SPT-APP will display the device Bluetooth broadcast list, and finally select the device to be upgraded. Please refer to Figure 2 , Figure 2 is a schematic diagram of an interface for selecting a device to be upgraded provided in an embodiment of the present application, such as Figure 2 As shown, when the finished product inspector opens the SPT-APP and selects the firmware upgrade function, the SPT-APP will display the following Figure 2 Schematic list of Bluetooth advertising devices.

[0085] Specifically, SPT-APP sends a Bluetooth command to the device to be upgraded, notifying the device to be upgraded to enter the upgrade mode. At the same time, SPT-APP also sends a network configuration command to notify the device to be upgraded to connect to the network.

[0086] Step S103, obtaining a device verification code of the device to be upgraded; wherein the device verification code includes a device anti-counterfeiting code and a device code;

[0087] In the specific implementation, after entering the upgrade mode, first select the device firmware upgrade in SPT-APP, then SPT-APP will automatically turn on the camera, and the finished product inspection personnel will scan the device anti-counterfeiting code of the device to be upgraded (such as a smart mattress) by controlling the camera on the smart terminal where SPT-APP is located, and scan the device code of the device to be upgraded (such as a smart mattress). At this time, SPT-APP will automatically detect whether the verification device code is consistent with the device code of the semi-finished product control box. If they are consistent, the next step will be executed; if they are inconsistent, the device code error will be prompted and the step will be re-executed to scan the QR code of other devices, or the firmware generation process will be re-executed. This embodiment of the present application does not limit this.

[0088] Step S104, sending the device verification code to the server; so that the server obtains the incremental firmware to be upgraded corresponding to the device to be upgraded according to the device anti-counterfeiting code, and sends the incremental firmware to be upgraded to the device to be upgraded according to the device code, so that the device to be upgraded performs firmware upgrade according to the incremental firmware to be upgraded and the basic firmware in the device to be upgraded in the firmware upgrade mode to obtain the finished firmware; wherein the incremental firmware to be upgraded is the firmware containing the incremental function, and the basic firmware is the firmware containing the basic function;

[0089] In the specific implementation, first, SPT-APP uploads the identified device code and device anti-counterfeiting code to the server. The server calls the company's SAP (Systems, Applications & Products in Data Processing) system interface according to the device anti-counterfeiting code to obtain the product order information, among which the most important SPU (Stock Keeping Unit) model needs to be obtained; then, the server queries the latest incremental firmware in the server according to the obtained model code; then, the server sends the corresponding incremental firmware to the device to be upgraded through the MQTT (Message Queuing Telemetry Transport) protocol. After the device to be upgraded receives the incremental firmware, the incremental firmware and the basic firmware burned in the semi-finished control box of the device to be upgraded are merged and upgraded in the device to be upgraded.

[0090] Step S105, when it is monitored that the finished firmware is generated, the finished firmware model of the finished firmware is verified, and if the verification is successful, it is confirmed that the firmware upgrade of the device to be upgraded is successful.

[0091] In some embodiments, step S105 may include: when the generation of finished firmware is monitored, obtaining the finished firmware model in the finished firmware; comparing the finished firmware model with the device anti-counterfeiting code to determine whether the firmware of the device to be upgraded has been successfully upgraded; if the finished firmware model is consistent with the model corresponding to the device anti-counterfeiting code, confirming that the firmware upgrade of the device to be upgraded is successful.

[0092] In the specific implementation, after the firmware is successfully upgraded, use SPT-APP to perform finished product inspection on the control box of the finished firmware, and verify the finished product firmware model and the device anti-counterfeiting code again, that is, whether the model corresponding to the successfully upgraded firmware is consistent with the model of the device anti-counterfeiting code. If they are consistent, it means that the entire finished product inspection process has passed, and the product can be produced only after that.

[0093] Steps S101 to S105 shown in the embodiment of the present application are as follows: generating a firmware upgrade instruction; sending the firmware upgrade instruction to the device to be upgraded; so that the device to be upgraded enters a firmware upgrade mode according to the firmware upgrade instruction; obtaining a device verification code of the device to be upgraded; wherein the device verification code includes a device anti-counterfeiting code and a device code; sending the device verification code to a server; so that the server obtains the incremental firmware to be upgraded corresponding to the device to be upgraded according to the device anti-counterfeiting code, and sends the incremental firmware to be upgraded to the device to be upgraded according to the device code, so that the device to be upgraded performs a firmware upgrade in the firmware upgrade mode according to the incremental firmware to be upgraded and the basic firmware in the device to be upgraded to obtain a finished firmware; wherein the incremental firmware to be upgraded is a firmware containing incremental functions, and the basic firmware is a firmware containing basic functions; when it is monitored that the finished firmware is generated, the finished firmware model of the finished firmware is verified, and if the verification is successful, it is confirmed that the firmware upgrade of the device to be upgraded is successful. The embodiment of the present application divides the firmware code into a basic firmware of a basic version, and writes incremental firmware for the functions specific to each model. The unified basic firmware can be used for testing and verification of the production line, and the corresponding incremental firmware can be obtained by switching the model through the smart terminal. Then, the device to be upgraded can perform firmware upgrades according to the incremental firmware and the basic firmware in the firmware upgrade mode to obtain the finished firmware, that is, the basic firmware can be efficiently upgraded to the firmware corresponding to the order according to the incremental firmware, thereby reducing the waste of smart product inventory, reducing the firmware maintenance cost of smart products, and thus improving the efficiency of the production process.

[0094] See also Figure 3 , Figure 3 is a flowchart of the steps of a firmware upgrade method provided in an embodiment of the present application when applied to a server, Figure 3 The method is applied to a server, wherein the server stores a plurality of incremental firmwares, wherein the incremental firmwares are firmwares containing incremental functions, Figure 3 The method may include but is not limited to steps S301 to S304.

[0095] Step S301, receiving a device verification code sent by a smart terminal; wherein the device verification code is a QR code of the device to be upgraded, and the device verification code includes a device anti-counterfeiting code and a device code;

[0096] Among them, the device verification code is based on Figure 1 The firmware upgrade method described in is determined.

[0097] Step S302, obtaining the order information of the product to be upgraded corresponding to the device to be upgraded according to the device anti-counterfeiting code;

[0098] In the specific implementation, the server first calls the company's SAP system interface according to the device anti-counterfeiting code to obtain the product order information, among which the most important SPU model needs to be obtained.

[0099] Step S303, selecting the incremental firmware to be upgraded corresponding to the device to be upgraded from the plurality of incremental firmwares according to the order information of the product to be upgraded;

[0100] In some embodiments, step S303 may include: performing data extraction processing on the product order information to be upgraded to obtain the device model to be upgraded corresponding to the device to be upgraded; and filtering out the incremental firmware to be upgraded corresponding to the device model to be upgraded from a number of incremental firmwares.

[0101] Exemplarily, assuming that the SPU model (ie, the model of the device to be upgraded) is MWI1-001, the incremental firmware corresponding to the model MWI1-001 can be obtained through the server.

[0102] Step S304, sending the incremental firmware to be upgraded to the device to be upgraded according to the device code; so that the device to be upgraded performs firmware upgrade according to the incremental firmware to be upgraded and the basic firmware in the device to be upgraded in the firmware upgrade mode to obtain the finished firmware;

[0103] In the specific implementation, the server sends the corresponding incremental firmware to the device to be upgraded through the MQTT protocol. After the device to be upgraded receives the incremental firmware, the incremental firmware and the basic firmware burned in the semi-finished control box of the device to be upgraded are merged and upgraded in the device to obtain the finished firmware.

[0104] It should be pointed out that this embodiment only briefly illustrates the general process when the firmware upgrade method is applied to the server. The detailed description of each step can refer to the relevant content in the embodiment when the aforementioned firmware upgrade method is applied to the smart terminal. It will not be repeated here. It can be understood that the present invention is not limited to this.

[0105] See also Figure 4 , Figure 4is a flowchart of the steps of a firmware upgrade method provided in an embodiment of the present application when it is applied to a device to be upgraded. Figure 4 The method is applied to a device to be upgraded, wherein the device to be upgraded includes a semi-finished control box, wherein the semi-finished control box is burned with basic firmware, wherein the basic firmware is firmware containing basic functions, Figure 4 The method may include but is not limited to steps S401 to S403.

[0106] Step S401, receiving a firmware upgrade instruction sent by a smart terminal, and entering a firmware upgrade mode according to the firmware upgrade instruction;

[0107] Among them, the firmware upgrade instructions are based on Figure 1 The firmware upgrade method is determined.

[0108] The device to be upgraded may be a smart device (such as a smart mattress) that needs to be upgraded with firmware. The device to be upgraded includes a semi-finished control box, and the semi-finished control box after entering the semi-finished product detection stage is burned with basic firmware. Specifically, in the semi-finished product detection stage, the new basic firmware can be burned into the smart product control box to obtain a semi-finished control box with the basic firmware burned in it.

[0109] Step S402, receiving the incremental firmware to be upgraded sent by the server;

[0110] Step S403: In the firmware upgrade mode, firmware upgrade is performed according to the incremental firmware to be upgraded and the basic firmware to obtain finished firmware.

[0111] In some embodiments, step S403 may include: in the firmware upgrade mode, merging the incremental firmware to be upgraded and the basic firmware to obtain the finished firmware.

[0112] In a specific implementation, after the device to be upgraded receives the incremental firmware, the incremental firmware and the basic firmware burned by the semi-finished control box in the device to be upgraded are merged and upgraded in the device to be upgraded, thereby obtaining the finished firmware.

[0113] It should be pointed out that this embodiment only briefly illustrates the general process when the firmware upgrade method is applied to the device to be upgraded. The detailed description of each step can refer to the relevant content in the embodiment when the aforementioned firmware upgrade method is applied to the smart terminal. It will not be repeated here. It can be understood that the present invention is not limited to this.

[0114] In order to explain the principle of the technical solution of the present invention in detail, the overall process of the present invention is described below in combination with some specific embodiments. It is easy to understand that the following is an explanation of the technical principle of the present invention and cannot be regarded as a limitation of the present invention.

[0115] In the embodiment of the present application, the overall implementation process of the firmware upgrade method is mainly divided into three stages. The first stage is the embedded firmware packaging stage, the second stage is the semi-finished product detection stage, and the third stage is the finished product detection stage. The specific implementation process is as follows:

[0116] The first stage is the embedded firmware packaging stage.

[0117] In the specific implementation, see Figure 5 , Figure 5 1 is a schematic diagram of a basic firmware packaging process in the embedded firmware packaging stage provided by an embodiment of the present application; Figure 5 As shown in the figure, the basic firmware generation process includes steps 1.1 to 1.3. The specific implementation process is as follows: first, the embedded developer extracts the common basic functions of the smart product, forms the basic firmware based on the common basic functions, and then packages the basic firmware and delivers it to the semi-finished product control box supplier, who then burns the basic firmware into the smart product control box in the production. At the same time, please refer to Figure 6 , Figure 6 is a schematic diagram of an incremental firmware packaging process in the embedded firmware packaging stage provided by an embodiment of the present application, such as Figure 6 As shown, the incremental firmware generation process includes steps 2.1 to 2.2, and the specific implementation process is: first, the unique functions (incremental functions) of each model are packaged into corresponding incremental firmware, and then the incremental firmware is uploaded to the server.

[0118] The second stage is the semi-finished product inspection stage.

[0119] In the specific implementation, see Figure 7 , Figure 7 is a schematic diagram of a semi-finished product detection process provided in an embodiment of the present application; Figure 7 As shown, the semi-finished product inspection process includes steps 3.1 to 3.3. The specific implementation process is: first, burn the latest basic firmware to the smart product control box (the semi-finished product control box without the basic firmware burned in), and then use the SPT-APP (Production Test APP) running on the smart terminal to inspect the semi-finished product control box (the semi-finished product control box with the basic firmware burned in) to ensure that the basic firmware and the semi-finished product control box are normal. If the basic firmware and the semi-finished product control box are normal, the semi-finished product control box will be handed over to the finished product manufacturer for finished product production.

[0120] The third stage is the finished product testing stage.

[0121] In the specific implementation, see Figure 8 , Figure 8 This is a schematic diagram of a finished product inspection process provided by an embodiment of the present application; the finished product inspection process includes steps 4.1 to 4.12, and the specific implementation process is as follows:

[0122] Step 4.1, assemble the semi-finished control box with the equipment to be upgraded (such as a finished mattress).

[0123] Specifically, a semi-finished control box burned with basic firmware is assembled with the device to be upgraded (such as a finished mattress). It should be noted that the semi-finished control box at this time only contains basic firmware, that is, it only has some basic functions. The finished product QC (Quality Control) personnel need to upgrade the basic firmware to the incremental firmware corresponding to the order, so as to obtain the target firmware corresponding to the order, and then produce products with specific functions. The smart product application of the embodiment of the present application is mainly based on smart mattresses as an example, and can also be used for other smart products with the same principle. The embodiment of the present application will not be described in detail here.

[0124] For example, a semi-finished control box with basic firmware burned in it can be assembled with a finished smart mattress to obtain a smart mattress containing the basic firmware.

[0125] Step 4.2: Power on the device to be upgraded (such as a finished mattress), and the device to be upgraded broadcasts the name of the device via Bluetooth.

[0126] Step 4.3, open SPT-APP (Production Test APP), select the upgrade function, and select the corresponding device to be upgraded.

[0127] Specifically, the finished product inspector opens the SPT-APP and selects the firmware upgrade function. At this time, the SPT-APP will display the following Figure 2 The Bluetooth broadcast list of devices is displayed, and then select the device that needs to be upgraded.

[0128] Step 4.4, SPT-APP sends a Bluetooth command to the device to be upgraded, and the device to be upgraded enters the upgrade mode according to the Bluetooth command.

[0129] Specifically, SPT-APP sends a Bluetooth command to the device to be upgraded, notifying the device to be upgraded to enter the upgrade mode. At the same time, SPT-APP also sends a network configuration command to notify the device to be upgraded to connect to the network.

[0130] Step 4.5, select the firmware upgrade function and use SPT-APP to scan the device code and device anti-counterfeiting code of the device to be upgraded.

[0131] Specifically, after entering the upgrade mode, first select the device firmware upgrade in SPT-APP, at which point SPT-APP will automatically turn on the camera, and the finished product inspection personnel will scan the device anti-counterfeiting code of the device to be upgraded (such as a smart mattress) by controlling the camera on the smart terminal where SPT-APP is located, and scan the device code of the device to be upgraded (such as a smart mattress). At this point, SPT-APP will automatically detect whether the verification device code is consistent with the device code of the semi-finished product control box. If they are consistent, the next step 4.6 will be executed; if they are inconsistent, the device code error will be prompted and this step will be re-executed to scan the QR code of other devices, or the 1.1 process will be re-executed, and this embodiment of the application is not limited to this.

[0132] Step 4.6, SPT-APP uploads the recognized device code and device anti-counterfeiting code to the server.

[0133] Step 4.7, the server calls the SAP system interface according to the anti-counterfeiting code data to obtain the model code of the order.

[0134] In the specific implementation, the server calls the company's SAP system interface according to the device anti-counterfeiting code to obtain the product order information, among which the most important SPU model needs to be obtained.

[0135] Step 4.8: The server queries the latest incremental firmware based on the acquired model code.

[0136] Exemplarily, assuming that the SPU model may be MWI1-001, the incremental firmware corresponding to the model MWI1-001 is obtained through the server.

[0137] In step 4.9, the server sends the corresponding incremental firmware to the device to be upgraded (such as a finished mattress) via the MQTT protocol.

[0138] Specifically, according to the device code obtained in step 4.5, the incremental firmware is sent to the device to be upgraded through the MQTT protocol.

[0139] The content of the device code is the MAC (Media Access Control) address of the device. The MAC address of each device is unique. All communications between the server and the device are transmitted through the MQTT topic. The topic format is: t / p / device number. For example, if the MAC address of the device obtained by scanning the device code is ABCDEF000001, the topic is t / p / ABCDEF000001. The server sends the incremental firmware data through this topic, and the device receives the data through this topic.

[0140] After the device to be upgraded receives the incremental firmware, the incremental firmware and the basic firmware burned by the semi-finished control box in the device to be upgraded are merged and upgraded in the device to be upgraded.

[0141] Step 4.10, SPT-APP monitors the firmware upgrade progress. The device will automatically restart after the firmware upgrade is successful.

[0142] Specifically, the entire firmware upgrade process will display the upgrade progress on the SPT-APP. After the upgrade is successful, it will be prompted that the upgrade is successful and the device will automatically restart. The entire process takes a short time to complete the upgrade and has high upgrade efficiency.

[0143] Step 4.11, after the firmware upgrade is successful, use SPT-APP to perform finished product inspection on the control box of the finished firmware.

[0144] Step 4.12, the last step, is to verify again whether the finished product firmware model is consistent with the anti-counterfeiting code model. If they are consistent, it means that the firmware has been upgraded. After the firmware upgrade is successful, the finished mattress can be shipped out of the factory.

[0145] The finished firmware obtained after a successful upgrade contains all the functions that the user needs to use.

[0146] After the firmware upgrade is successful, it is necessary to check the finished product firmware model and the device anti-counterfeiting code again, that is, whether the model corresponding to the successfully upgraded firmware is consistent with the model of the device anti-counterfeiting code. If they are consistent, it means that the entire finished product inspection process has passed, and the product can be produced only after that; if they are inconsistent, the finished product inspection process or the entire firmware upgrade process is re-executed, and the corresponding process can be returned to execute according to the actual application situation. The embodiments of this application will not be elaborated here.

[0147] In summary, the embodiment of the present application divides the firmware code into a basic version, and writes incremental code firmware for the functions specific to each model. The unified basic firmware can be used for testing and verification of the production line. In the finished product stage, the firmware for the smart product functions purchased by the user can be switched by switching the model through the SPT-APP.

[0148] It should be pointed out that this embodiment only briefly illustrates the general process of the firmware upgrade method. The detailed description of each step can refer to the relevant content in the aforementioned embodiment and will not be repeated here. It can be understood that the present invention is not limited to this.

[0149] An embodiment of the present application provides a firmware upgrade method and device, which generates a firmware upgrade instruction; sends the firmware upgrade instruction to a device to be upgraded; so that the device to be upgraded enters a firmware upgrade mode according to the firmware upgrade instruction; obtains a device verification code of the device to be upgraded; wherein the device verification code includes a device anti-counterfeiting code and a device code; sends the device verification code to a server; so that the server obtains the incremental firmware to be upgraded corresponding to the device to be upgraded according to the device anti-counterfeiting code, and sends the incremental firmware to be upgraded to the device to be upgraded according to the device code, so that the device to be upgraded performs a firmware upgrade in the firmware upgrade mode according to the incremental firmware to be upgraded and the basic firmware in the device to be upgraded to obtain a finished firmware; wherein the incremental firmware to be upgraded is firmware containing incremental functions, and the basic firmware is firmware containing basic functions; when it is monitored that the finished firmware is generated, the finished firmware model of the finished firmware is verified, and if the verification is successful, it is confirmed that the firmware upgrade of the device to be upgraded is successful. The embodiment of the present application divides the firmware code into a basic firmware of a basic version, and writes incremental firmware for the functions specific to each model. The unified basic firmware can be used for testing and verification of the production line, and the corresponding incremental firmware can be obtained by switching the model through the smart terminal. Then, the device to be upgraded can perform firmware upgrades according to the incremental firmware and the basic firmware in the firmware upgrade mode to obtain the finished firmware, that is, the basic firmware can be efficiently upgraded to the firmware corresponding to the order according to the incremental firmware, thereby reducing the waste of smart product inventory, reducing the firmware maintenance cost of smart products, and thus improving the efficiency of the production process.

[0150] See also Fig. 9 , Fig. 9 1 is a schematic diagram of a structure of a firmware upgrade device provided in an embodiment of the present application when applied to a smart terminal. The embodiment of the present application also provides a firmware upgrade device 900, which includes the following modules:

[0151] A firmware upgrade instruction generation module 901 is used to generate a firmware upgrade instruction;

[0152] The firmware upgrade instruction sending module 902 is used to send the firmware upgrade instruction to the device to be upgraded, so that the device to be upgraded enters the firmware upgrade mode according to the firmware upgrade instruction;

[0153] The device verification code acquisition module 903 is used to acquire the device verification code of the device to be upgraded; wherein the device verification code includes the device anti-counterfeiting code and the device code;

[0154] The device verification code sending module 904 is used to send the device verification code to the server; so that the server obtains the incremental firmware to be upgraded corresponding to the device to be upgraded according to the device anti-counterfeiting code, and sends the incremental firmware to be upgraded to the device to be upgraded according to the device code, so that the device to be upgraded performs firmware upgrade according to the incremental firmware to be upgraded and the basic firmware in the device to be upgraded in the firmware upgrade mode to obtain the finished firmware; wherein the incremental firmware to be upgraded is the firmware containing the incremental function, and the basic firmware is the firmware containing the basic function;

[0155] The finished firmware detection module 905 is used to verify the finished firmware model of the finished firmware when it is detected that the finished firmware is generated. If the verification is successful, it is confirmed that the firmware upgrade of the device to be upgraded is successful.

[0156] See also Fig.10 , Fig.10 1 is a schematic diagram of a structure of a firmware upgrade device provided in an embodiment of the present application when applied to a server. The embodiment of the present application also provides a firmware upgrade device 1000, which includes the following modules:

[0157] The device verification code receiving module 1001 is used to receive the device verification code sent by the smart terminal; wherein the device verification code is a two-dimensional code of the device to be upgraded, and the device verification code includes a device anti-counterfeiting code and a device code;

[0158] The module 1002 for acquiring the order information of the product to be upgraded is used to acquire the order information of the product to be upgraded corresponding to the device to be upgraded according to the device anti-counterfeiting code;

[0159] The incremental firmware to be upgraded acquisition module 1003 is used to filter out the incremental firmware to be upgraded corresponding to the device to be upgraded from a plurality of incremental firmware according to the order information of the product to be upgraded;

[0160] The incremental firmware to be upgraded sending module 1004 is used to send the incremental firmware to be upgraded to the device to be upgraded according to the device code, so that the device to be upgraded performs firmware upgrade according to the incremental firmware to be upgraded and the basic firmware in the device to be upgraded in the firmware upgrade mode to obtain the finished firmware;

[0161] Wherein, the device verification code is based on Fig. 9 The firmware upgrade device is determined.

[0162] See also Fig.11 , Fig.11 1 is a schematic diagram of a structure of a firmware upgrade device provided in an embodiment of the present application when applied to a device to be upgraded. The embodiment of the present application also provides a firmware upgrade device 1100, which includes the following modules:

[0163] The firmware upgrade instruction receiving module 1101 is used to receive the firmware upgrade instruction sent by the smart terminal and enter the firmware upgrade mode according to the firmware upgrade instruction;

[0164] The incremental firmware to be upgraded receiving module 1102 is used to receive the incremental firmware to be upgraded sent by the server;

[0165] A firmware upgrade module 1103 is used to perform firmware upgrade according to the incremental firmware to be upgraded and the basic firmware to obtain a finished firmware in the firmware upgrade mode;

[0166] Wherein, the firmware upgrade instruction is based on Fig. 9 The firmware upgrade device is determined.

[0167] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0168] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above firmware upgrade method when executing the computer program. The electronic device can be any smart terminal including a tablet computer, a car computer, etc.

[0169] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0170] See also Fig.12 , Fig.12 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:

[0171] The processor 1201 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC for short), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;

[0172] The memory 1202 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 1202 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 1202, and the processor 1201 calls and executes the firmware upgrade method of the embodiment of this application;

[0173] Input / output interface 1203, used to implement information input and output;

[0174] The communication interface 1204 is used to realize the communication interaction between the device and other devices. The communication can be realized through a wired manner (such as USB, network cable, etc.) or a wireless manner (such as mobile network, WIFI, Bluetooth, etc.);

[0175] A bus 1205 that transmits information between various components of the device (e.g., the processor 1201, the memory 1202, the input / output interface 1203, and the communication interface 1204);

[0176] The processor 1201 , the memory 1202 , the input / output interface 1203 and the communication interface 1204 are connected to each other in communication within the device via the bus 1205 .

[0177] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned firmware upgrade method is implemented.

[0178] It can be understood that the contents of the above method embodiments are all applicable to the present storage medium embodiments, the functions specifically implemented by the present storage medium embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0179] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0180] The firmware upgrade method and firmware upgrade device provided by the embodiments of the present application generate a firmware upgrade instruction; send the firmware upgrade instruction to the device to be upgraded; so that the device to be upgraded enters the firmware upgrade mode according to the firmware upgrade instruction; obtains the device verification code of the device to be upgraded; wherein the device verification code includes the device anti-counterfeiting code and the device code; sends the device verification code to the server; so that the server obtains the incremental firmware to be upgraded corresponding to the device to be upgraded according to the device anti-counterfeiting code, and sends the incremental firmware to be upgraded to the device to be upgraded according to the device code, so that the device to be upgraded performs firmware upgrade according to the incremental firmware to be upgraded and the basic firmware in the device to be upgraded in the firmware upgrade mode to obtain the finished firmware; wherein the incremental firmware to be upgraded is the firmware containing the incremental function, and the basic firmware is the firmware containing the basic function; when it is monitored that the finished firmware is generated, the finished firmware model of the finished firmware is verified, and if the verification is successful, it is confirmed that the firmware upgrade of the device to be upgraded is successful. The embodiment of the present application divides the firmware code into a basic firmware of a basic version, and writes incremental firmware for the functions specific to each model. The unified basic firmware can be used for testing and verification of the production line, and the corresponding incremental firmware can be obtained by switching the model through the smart terminal. Then, the device to be upgraded can perform firmware upgrades according to the incremental firmware and the basic firmware in the firmware upgrade mode to obtain the finished firmware, that is, the basic firmware can be efficiently upgraded to the firmware corresponding to the order according to the incremental firmware, thereby reducing the waste of smart product inventory, reducing the firmware maintenance cost of smart products, and thus improving the efficiency of the production process.

[0181] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0182] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.

[0183] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0184] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.

[0185] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0186] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0187] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0188] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0189] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0190] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.

[0191] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.

Claims

1. A firmware upgrade method, characterized in that: Applied to a smart terminal, the method comprises the following steps: Generate firmware upgrade instructions; Sending the firmware upgrade instruction to the device to be upgraded; so that the device to be upgraded enters the firmware upgrade mode according to the firmware upgrade instruction; Obtaining a device verification code of the device to be upgraded; wherein the device verification code includes a device anti-counterfeiting code and a device code; The device verification code is sent to a server; so that the server obtains the incremental firmware to be upgraded corresponding to the device to be upgraded according to the device anti-counterfeiting code, and sends the incremental firmware to be upgraded to the device to be upgraded according to the device code, so that the device to be upgraded performs firmware upgrade according to the incremental firmware to be upgraded and the basic firmware in the device to be upgraded in the firmware upgrade mode to obtain the finished firmware; wherein the incremental firmware to be upgraded is the firmware containing the incremental function, and the basic firmware is the firmware containing the basic function; When it is monitored that the finished firmware is generated, the finished firmware model of the finished firmware is verified, and if the verification is successful, it is confirmed that the firmware upgrade of the device to be upgraded is successful.

2. The firmware upgrade method according to claim 1, characterized in that: The device to be upgraded includes a semi-finished control box, and the semi-finished control box is burned with the basic firmware. Before generating the firmware upgrade instruction, the method also includes: Performing a semi-finished product inspection on the semi-finished product control box to determine whether the semi-finished product control box and the basic firmware are used normally; If it is determined that the semi-finished control box and the basic firmware are in normal use, the semi-finished control box in normal use will be used as the semi-finished control box of the device to be upgraded.

3. The firmware upgrade method according to claim 1, characterized in that: When the generation of the finished firmware is detected, the finished firmware model of the finished firmware is verified, and if the verification is successful, it is confirmed that the firmware upgrade of the device to be upgraded is successful, including: When it is detected that the finished firmware is generated, obtaining the finished firmware model in the finished firmware; Compare the finished product firmware model with the device anti-counterfeiting code to determine whether the firmware of the device to be upgraded is successfully upgraded; If the model of the finished firmware is consistent with the model corresponding to the device anti-counterfeiting code, it is confirmed that the firmware upgrade of the device to be upgraded is successful.

4. A firmware upgrade method, characterized in that: Applied to a server, the server stores a plurality of incremental firmwares, the incremental firmwares are firmwares containing incremental functions, and the method comprises the following steps: Receive a device verification code sent by a smart terminal; wherein the device verification code is a QR code of the device to be upgraded, and the device verification code includes a device anti-counterfeiting code and a device code; Acquire the order information of the product to be upgraded corresponding to the device to be upgraded according to the device anti-counterfeiting code; According to the order information of the product to be upgraded, selecting the incremental firmware to be upgraded corresponding to the device to be upgraded from the plurality of incremental firmwares; Sending the incremental firmware to be upgraded to the device to be upgraded according to the device code; so that the device to be upgraded performs firmware upgrade according to the incremental firmware to be upgraded and the basic firmware in the device to be upgraded in the firmware upgrade mode to obtain the finished firmware; Wherein, the device verification code is determined according to the firmware upgrade method according to any one of claims 1-3.

5. The firmware upgrade method according to claim 4, characterized in that: The step of selecting the incremental firmware to be upgraded corresponding to the device to be upgraded from the plurality of incremental firmwares according to the order information of the product to be upgraded includes: Performing data extraction processing on the order information of the product to be upgraded to obtain the model of the device to be upgraded corresponding to the device to be upgraded; The incremental firmware to be upgraded corresponding to the device model to be upgraded is selected from the plurality of incremental firmwares.

6. A firmware upgrade method, characterized in that: Applied to a device to be upgraded, the device to be upgraded includes a semi-finished control box, the semi-finished control box is burned with basic firmware, and the basic firmware is firmware containing basic functions. The method includes the following steps: Receive a firmware upgrade instruction sent by the smart terminal, and enter a firmware upgrade mode according to the firmware upgrade instruction; Receive the incremental firmware to be upgraded sent by the server; In the firmware upgrade mode, firmware upgrade is performed according to the incremental firmware to be upgraded and the basic firmware to obtain finished firmware; Wherein, the firmware upgrade instruction is determined according to the firmware upgrade method according to any one of claims 1-3.

7. The firmware upgrade method according to claim 6, characterized in that: In the firmware upgrade mode, performing firmware upgrade according to the incremental firmware to be upgraded and the basic firmware to obtain finished firmware includes: In the firmware upgrade mode, the incremental firmware to be upgraded and the basic firmware are merged to obtain the finished firmware.

8. A firmware upgrade device, characterized in that: Applied to a smart terminal, the device includes the following modules: A firmware upgrade instruction generation module, used to generate a firmware upgrade instruction; A firmware upgrade instruction sending module, used to send the firmware upgrade instruction to the device to be upgraded; So that the device to be upgraded enters the firmware upgrade mode according to the firmware upgrade instruction; A device verification code acquisition module is used to acquire the device verification code of the device to be upgraded; wherein the device verification code includes a device anti-counterfeiting code and a device code; A device verification code sending module, used to send the device verification code to a server; so that the server obtains the incremental firmware to be upgraded corresponding to the device to be upgraded according to the device anti-counterfeiting code, and sends the incremental firmware to be upgraded to the device to be upgraded according to the device code, so that the device to be upgraded performs firmware upgrade according to the incremental firmware to be upgraded and the basic firmware in the device to be upgraded in the firmware upgrade mode to obtain the finished firmware; wherein the incremental firmware to be upgraded is the firmware containing the incremental function, and the basic firmware is the firmware containing the basic function; The finished firmware detection module is used to verify the finished firmware model of the finished firmware when it is detected that the finished firmware is generated. If the verification is successful, it is confirmed that the firmware upgrade of the device to be upgraded is successful.

9. A firmware upgrade device, characterized in that: Applied to a server, the server stores a plurality of incremental firmwares, the incremental firmwares are firmwares containing incremental functions, and the device comprises the following modules: The device verification code receiving module is used to receive the device verification code sent by the smart terminal; wherein the device verification code is a QR code of the device to be upgraded, and the device verification code includes a device anti-counterfeiting code and a device code; A module for acquiring order information of products to be upgraded, used for acquiring order information of products to be upgraded corresponding to the device to be upgraded according to the device anti-counterfeiting code; The incremental firmware to be upgraded acquisition module is used to filter out the incremental firmware to be upgraded corresponding to the device to be upgraded from a plurality of the incremental firmware according to the order information of the product to be upgraded; The incremental firmware to be upgraded sending module is used to send the incremental firmware to be upgraded to the device to be upgraded according to the device code, so that the device to be upgraded performs firmware upgrade according to the incremental firmware to be upgraded and the basic firmware in the device to be upgraded in the firmware upgrade mode to obtain the finished firmware; Wherein, the device verification code is determined according to the firmware upgrade apparatus according to claim 8.

10. A firmware upgrade device, characterized in that: Applied to a device to be upgraded, the device to be upgraded includes a semi-finished control box, the semi-finished control box is burned with basic firmware, the basic firmware is firmware containing basic functions, and the device includes the following modules: A firmware upgrade instruction receiving module, used to receive a firmware upgrade instruction sent by the smart terminal, and enter a firmware upgrade mode according to the firmware upgrade instruction; The incremental firmware to be upgraded receiving module is used to receive the incremental firmware to be upgraded sent by the server; A firmware upgrade module, used to perform firmware upgrade according to the incremental firmware to be upgraded and the basic firmware to obtain finished firmware in the firmware upgrade mode; Wherein, the firmware upgrade instruction is determined according to the firmware upgrade device according to claim 8.