CN112181466B - Cloud upgrading method and system for firmware of voice air conditioner - Google Patents
Cloud upgrading method and system for firmware of voice air conditioner Download PDFInfo
- Publication number
- CN112181466B CN112181466B CN202010934837.9A CN202010934837A CN112181466B CN 112181466 B CN112181466 B CN 112181466B CN 202010934837 A CN202010934837 A CN 202010934837A CN 112181466 B CN112181466 B CN 112181466B
- Authority
- CN
- China
- Prior art keywords
- firmware
- upgrading
- area
- lower computer
- computer
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
- G06F8/654—Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention relates to the technical field of voice air conditioner firmware upgrading, and provides a cloud upgrading method and a system for voice air conditioner firmware, wherein the method comprises the following steps: establishing a firmware upgrading device for carrying out firmware cloud upgrading on the voice air conditioner; the upper computer establishes communication with the lower computer, starts the firmware upgrading device and enters a firmware upgrading process; setting a common area and an upgrading area in a storage unit of the upper computer, and judging whether the version of the lower computer firmware in the common area and the upgrading area is old or new when the lower computer firmware is upgraded; when the common area is an old version and the upgrading area is a new version, copying lower computer firmware in the upgrading area into the common area; when the upgrading area is an old version, communication is established between the upper computer and a firmware server storing the lower computer firmware to be upgraded, the lower computer firmware to be upgraded is downloaded, and the lower computer firmware to be upgraded is burnt into the upgrading area. The upgrade efficiency is improved, meanwhile, the upper computer end is increased, the backup area of the lower computer firmware is increased, and the risk of lower computer upgrade errors is avoided.
Description
Technical Field
The invention relates to the technical field of voice air conditioner firmware upgrading, in particular to a cloud upgrading method and system for voice air conditioner firmware.
Background
Most of the voice intelligent air conditioners are configured with intelligent terminals at present, and because networking is needed, a terminal module mainly comprises a WIFI chip of an upper computer and a voice processing DSP (Digital Signal Processing, abbreviated as DSP, digital signal processing) chip of a lower computer. Before products leave factories, intelligent terminals of air conditioners in the prior art have respectively upgraded firmware into an upper computer and a lower computer in a batch mode.
In the process of using the product by the user, the firmware can be updated by the cloud to solve the problem when some abnormality or fault occurs or the manufacturer product is updated. The cloud firmware is updated, so that the time for interrupting the use process of a user is short, after-sales door installation or factory return maintenance can be avoided, and the purpose of reducing after-sales cost is achieved.
In the existing cloud upgrade technology, the cloud upgrade is performed on the WIFI chip end of the upper computer, the upper computer triggers the upgrade, the firmware of the upper computer is upgraded by HTTP (Hyper Text Transfer Protocol ) but not limited to the protocol, and then the firmware of the lower computer is upgraded by a communication interface. In the process of upgrading the lower computer firmware, the lower computer is internally provided with flash memory (FLASH EEPROM Memory) for storing the firmware, so that the upper computer is used as a main control, the communication process with the lower computer is complex, the connection interruption process exists, and once the power is off in the upgrading process, the boot program of the lower computer is entered, and the communication upgrading is reestablished, thereby greatly increasing the upgrading time, influencing the service time of a user, reducing the user experience, and also having the risks of errors, longer upgrading process, misoperation of the user and the like.
Disclosure of Invention
Aiming at the problems, the invention aims to provide a cloud upgrading method and a cloud upgrading system for voice air conditioner firmware, which are used for solving the problems that in the prior art, in the abnormal conditions of power failure and the like in the process of upgrading a lower computer by a cloud end, the upgrading time is wasted because of re-communication, improving the upgrading efficiency, increasing the backup area of the lower computer firmware by an upper computer end, avoiding the risk of upgrading errors of the lower computer, reducing the upgrading cost and improving the comfort level of user experience.
The above object of the present invention is achieved by the following technical solutions:
a cloud upgrade method for voice air conditioner firmware comprises the following steps:
s110: establishing a firmware upgrading device for carrying out firmware cloud upgrading on a voice air conditioner, wherein the firmware upgrading device comprises an upper computer and a lower computer;
s120: the upper computer establishes communication with the lower computer, starts the firmware upgrading device and enters a firmware upgrading process;
s130: setting a common area and an upgrading area in a storage unit of the upper computer, and judging whether the versions of the lower computer firmware in the common area and the upgrading area are old or new when the lower computer firmware is upgraded;
when the common area is an old version and the upgrading area is a new version, copying the lower computer firmware in the upgrading area into the common area;
when the upgrade area is the old version, establishing communication with the firmware server storing the lower computer firmware to be upgraded through the upper computer, downloading the lower computer firmware to be upgraded, burning the lower computer firmware to the upgrade area, restarting the firmware upgrade device, and jumping to the step S120.
Further, in step S120, the firmware upgrading device is started, and the specific process is as follows:
the upper computer detects whether the lower computer firmware in the upgrading area is the latest version or not through software;
if the lower computer firmware in the upgrading area is the latest version, the upper computer loads the lower computer firmware from the upgrading area and sends the lower computer firmware to the lower computer for starting through a communication interface;
and if the lower computer firmware in the upgrading area is not the latest version, the upper computer loads the lower computer firmware from the common area and sends the lower computer firmware to the lower computer for starting through a communication interface.
Further, in step S120, after the firmware upgrading device is started, before entering the firmware upgrading process, the method further includes: the upgrade detection task is started, specifically:
after the upper computer is successfully networked, uploading local information including a local ID number from a storage unit of the upper computer, wherein the local information is used for comparing with upgrading information including a firmware range to be upgraded in the firmware server;
detecting the local ID number, and judging whether the local is in the range of the firmware to be upgraded or not through the local ID number;
if the firmware to be upgraded is within the range, the process of upgrading the lower computer firmware in step S130 is entered.
If the firmware is not in the range of the firmware to be upgraded, the firmware is not upgraded.
Further, the cloud upgrading method of the voice air conditioner firmware further comprises the following steps:
the upgrade detection task is triggered to upgrade by any mode including user voice input recognition trigger and automatic upgrade trigger.
Further, in step S130, when the normal area is an old version, the upgrade area is a new version, and the lower computer firmware in the upgrade area is copied to the normal area, the method further includes:
setting a common area update identification field for identifying an update state in the common area;
before copying the lower computer firmware in the upgrading zone to the common zone, setting the common zone updating identification field as upgrading in progress;
judging whether the normal area is successfully upgraded according to the field value of the normal area updating identification field after restarting when the abnormality including power failure occurs in the copying process, and copying the lower computer firmware from the upgrading area again when the field value of the normal area updating identification field is in the upgrading process;
and after the copying is completed, setting the field value of the common area update identification field as the upgrading end.
Further, in step S130, when the upgrade area is an old version, communication is established between the host computer and the firmware server storing the lower computer firmware to be upgraded, and the lower computer firmware to be upgraded is downloaded and burned into the upgrade area, the method further includes:
an upgrade area update identification field for identifying the update state in the upgrade area is arranged in the upgrade area;
before downloading the lower computer firmware to be upgraded and burning the lower computer firmware into the upgrading area, setting the upgrading area updating identification field as upgrading in progress;
when an abnormality including power failure occurs in the upgrading process, judging whether the upgrading area is successfully upgraded according to the field value of the upgrading area updating identification field after restarting, and when the field value of the upgrading area updating identification field is in upgrading process, loading the lower computer firmware from the common area by the upper computer again, sending the lower computer firmware to the lower computer for starting through a communication interface, and carrying out re-upgrading on the upgrading area;
and after the upgrading is finished, setting the field value of the upgrading area updating identification field as the upgrading finishing.
The invention also provides a cloud upgrade system for the firmware of the voice air conditioner, which comprises the following steps: firmware server and firmware upgrade device;
the firmware server is used for updating and storing the latest lower computer firmware and upgrade information;
the firmware upgrading device is used for upgrading the voice air conditioner firmware and specifically comprises an upper computer and a lower computer;
the upper computer is provided with a main control WIFI chip as a main control unit, the lower computer is provided with an audio processing unit DSP as a slave control unit, the main control unit and the slave control unit jointly form a control module, meanwhile, the main control WIFI chip and the audio processing unit DSP are communicated through a communication unit which communicates in a mode including using a communication interface SPI, and lower computer firmware stored in the upper computer is transmitted to the lower computer through the communication unit to be executed;
the upper computer is also provided with a storage unit, two areas including a common area and an upgrading area are allocated in the storage unit for the lower computer, and when the lower computer firmware is upgraded, the new and old versions of the lower computer firmware in the common area and the upgrading area are judged; when the common area is an old version and the upgrading area is a new version, copying the lower computer firmware in the upgrading area into the common area; when the upgrading area is an old version, communication is established between the upper computer and a firmware server storing the lower computer firmware to be upgraded, the lower computer firmware to be upgraded is downloaded and burnt into the upgrading area, and the firmware upgrading device is restarted.
Further, the audio processing unit DSP further comprises:
and the voice input unit is used for receiving a voice input instruction of a user.
Further, the main control WIFI chip further includes:
and the equipment power supply module is used for supplying power to the firmware upgrading device.
A firmware cloud upgrade method comprises the following steps:
s310: establishing a firmware upgrading device for carrying out firmware cloud upgrading, wherein the firmware upgrading device comprises an upper computer and a lower computer;
s320: the upper computer establishes communication with the lower computer, starts the firmware upgrading device and enters a firmware upgrading process;
s330: setting a common area and an upgrading area in a storage unit of the upper computer, and judging whether the versions of the lower computer firmware in the common area and the upgrading area are old or new when the lower computer firmware is upgraded;
when the common area is an old version and the upgrading area is a new version, copying the lower computer firmware in the upgrading area into the common area;
when the upgrade area is the old version, establishing communication with the firmware server storing the lower computer firmware to be upgraded through the upper computer, downloading the lower computer firmware to be upgraded, burning the lower computer firmware to the upgrade area, restarting the firmware upgrade device, and jumping to step S220.
Compared with the prior art, the invention has the following beneficial effects:
by adopting the technical scheme, the invention can solve the problem that the upgrading time is wasted due to the need of re-communication upgrading under the abnormal conditions of power failure and the like in the process of upgrading the lower computer by the cloud end in the prior art, improves the upgrading efficiency, reduces the complexity of firmware upgrading because the communication with the lower computer is not needed in the upgrading process, increases the backup area (upgrading area) of the lower computer firmware by the upper computer end, avoids the risk of upgrading errors of the lower computer, reduces the upgrading cost and improves the comfort level of user experience.
Drawings
FIG. 1 is a schematic flow chart of a cloud upgrade method for firmware of a language air conditioner;
FIG. 2 is a general flow chart of a cloud upgrade method for firmware of a language air conditioner;
FIG. 3 is a detailed flowchart of a method for upgrading the firmware of a language air conditioner in the cloud;
fig. 4 is a block diagram of a cloud upgrade system for firmware of a language air conditioner according to the present invention.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless expressly stated otherwise, as understood by those skilled in the art. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
As shown in fig. 1, the overall process of firmware upgrade of the intelligent voice air conditioner lower computer of the invention is as follows: a: the voice air conditioner firmware upgrading device is provided; b: placing the firmware and JSON configuration table updated by the lower computer to an http server (firmware server); c: the upper computer of the air conditioner establishes communication with the firmware server, and downloads the firmware of the lower computer to the storage unit; d: and upgrading the firmware, restarting after the upgrading is finished, communicating with a lower computer DSP through an SPI, and loading the firmware of the storage unit to the SRAM of the lower computer for operation. Hereinafter, the present invention will be explained in detail by means of specific examples.
First embodiment
As shown in fig. 2, the embodiment provides a cloud upgrade method for firmware of a voice air conditioner, which is characterized by comprising the following steps:
s110: establishing a firmware upgrading device for carrying out firmware cloud upgrading on the voice air conditioner, wherein the firmware upgrading device comprises an upper computer and a lower computer.
S120: and the upper computer establishes communication with the lower computer, starts the firmware upgrading device and enters a firmware upgrading process.
S130: setting a common area and an upgrading area in a storage unit of the upper computer, and judging whether the versions of the lower computer firmware in the common area and the upgrading area are old or new when the lower computer firmware is upgraded;
when the common area is an old version and the upgrading area is a new version, copying the lower computer firmware in the upgrading area into the common area;
when the upgrade area is the old version, establishing communication with the firmware server storing the lower computer firmware to be upgraded through the upper computer, downloading the lower computer firmware to be upgraded, burning the lower computer firmware to the upgrade area, restarting the firmware upgrade device, and jumping to the step S120.
Further, in step S120, the firmware upgrading device is started, and the specific process is as follows:
the upper computer detects whether the lower computer firmware in the upgrading area is the latest version or not through software;
if the lower computer firmware in the upgrading area is the latest version, the upper computer loads the lower computer firmware from the upgrading area and sends the lower computer firmware to the lower computer for starting through a communication interface;
and if the lower computer firmware in the upgrading area is not the latest version, the upper computer loads the lower computer firmware from the common area and sends the lower computer firmware to the lower computer for starting through a communication interface.
Further, in step S120, after the firmware upgrading device is started, before entering the firmware upgrading process, the method further includes: the upgrade detection task is started, specifically:
after the upper computer is successfully networked, uploading local information including a local ID number from a storage unit of the upper computer, wherein the local information is used for comparing with upgrading information including a firmware range to be upgraded in the firmware server;
detecting the local ID number, and judging whether the local is in the range of the firmware to be upgraded or not through the local ID number;
if the firmware to be upgraded is within the range, the process of upgrading the lower computer firmware in step S130 is entered.
If the firmware is not in the range of the firmware to be upgraded, the firmware is not upgraded.
Further, the method further comprises the following steps:
the upgrade detection task is triggered to upgrade by any mode including user voice input recognition trigger and automatic upgrade trigger.
Further, in step S130, when the normal area is an old version, the upgrade area is a new version, and the lower computer firmware in the upgrade area is copied to the normal area, the method further includes:
setting a common area update identification field for identifying an update state in the common area;
before copying the lower computer firmware in the upgrading zone to the common zone, setting the common zone updating identification field as upgrading in progress;
judging whether the normal area is successfully upgraded according to the field value of the normal area updating identification field after restarting when the abnormality including power failure occurs in the copying process, and copying the lower computer firmware from the upgrading area again when the field value of the normal area updating identification field is in the upgrading process;
and after the copying is completed, setting the field value of the common area update identification field as the upgrading end.
Further, in step S130, when the upgrade area is an old version, communication is established between the host computer and the firmware server storing the lower computer firmware to be upgraded, and the lower computer firmware to be upgraded is downloaded and burned into the upgrade area, the method further includes:
an upgrade area update identification field for identifying the update state in the upgrade area is arranged in the upgrade area;
before downloading the lower computer firmware to be upgraded and burning the lower computer firmware into the upgrading area, setting the upgrading area updating identification field as upgrading in progress;
when an abnormality including power failure occurs in the upgrading process, judging whether the upgrading area is successfully upgraded according to the field value of the upgrading area updating identification field after restarting, and when the field value of the upgrading area updating identification field is in upgrading process, loading the lower computer firmware from the common area by the upper computer again, sending the lower computer firmware to the lower computer for starting through a communication interface, and carrying out re-upgrading on the upgrading area;
and after the upgrading is finished, setting the field value of the upgrading area updating identification field as the upgrading finishing.
Second embodiment
In order to make the working procedure of the present invention clearer, the working procedure of the present invention will be described in the overall working procedure sequence of the method according to the present invention, specifically as follows:
referring to fig. 3, a flowchart of a firmware upgrade method for an intelligent voice air conditioner lower computer according to a specific embodiment of the invention specifically includes the following steps:
(1) The upper computer is powered on, and the equipment power supply module 5 supplies power for the upper computer and the lower computer;
(2) The upper computer software detects whether the allocated lower computer firmware upgrading area is the latest version or not, and the version is determined by the software flag bit;
(3) If the lower computer firmware of the upgrade area is the latest, the upper computer will load the lower computer firmware from the upgrade area and send the lower computer firmware to the lower computer for starting through the communication interface;
(4) If the lower computer firmware of the upgrade area is not up to date, the upper computer will load the lower computer firmware from the common area and send it to the lower computer for starting through the communication interface;
(5) The upper computer and the lower computer are successfully communicated, the normal starting flow is ended, a waiting WIFI networking state is entered, and an upgrade detection task is started;
(6) Upgrading the detection task, and circularly waiting for the WIFI networking state;
(7) The WIFI networking of the upper computer end is successful, the task of upgrading detection is started, and the local information is loaded from the flash first for comparison with the upgrading information of the server end;
(8) The task of the upper computer end for detecting the upgrade can be triggered by two methods, namely, the upgrade can be triggered by user voice input identification, the upgrade can be automatically performed, and the JSON upgrade configuration table is downloaded from the firmware server;
(9) The upper computer end detects the task of upgrading and analyzes and downloads the JSON upgrading configuration table from the server;
(10) Detecting whether the product ID number of the local information is in the range of the server configuration table to be upgraded;
(11) Detecting the product ID number of the local information, and carrying out the next detection within the range of the server configuration table to be upgraded;
(12) Detecting the product ID number of the local information, which is not in the range of the server configuration table to be updated, and does not need to carry out cloud upgrade, because the server end part is up-to-date;
(13) Detecting whether the version number of the common area is old and the firmware version number of the upgrade area is new, wherein the two conditions are simultaneously satisfied as a judging condition;
(14) The condition of the last step is met, which indicates that the firmware of the upgrading area is updated to be the latest last time, and the firmware of the common area is old, the firmware of the common area needs to be synchronized to be the latest, the upgrading variable of the common area is set to 0x47474747 first to represent that the upgrading is in progress, once the power is off, the system judges that the common area is not successfully upgraded according to the variable after restarting, and the system loads the lower computer firmware from the upgrading area;
(15) The latest lower computer firmware in the upgrading area is directly copied to the common area, network downloading is not needed in the step, upgrading time is saved, and the process is silent and does not influence the experience of a user in progress;
(16) After the copying is finished and the verification is successful, the upgrading variable of the common area is set to 0x51515151 to represent the upgrading completion;
(17) Step S13, if the condition is not satisfied, updating the firmware of the upgrade area, and judging whether the firmware version number of the upgrade area is old or not;
(18) The lower computer firmware of the upgrade area is older than the version of the server, the upgrade variable of the upgrade area is set to 0x47474747 first to represent that once power is off in the upgrade process, the upgrade area is judged to be not successfully upgraded according to the variable after restarting, and the system loads the lower computer firmware from the common area;
(19) Downloading lower computer firmware from a firmware server;
(20) Checking whether the size and checksum of the downloaded firmware are matched with the server;
(21) The verification of the last step is passed, and the firmware is started to be burnt into an upgrade area of the upper computer;
(22) Setting the upgrade variable of the upgrade area to 0x51515151 after the end of the burning, wherein the upgrade variable represents the end of the upgrade;
(23) The firmware of the upgrading area of the lower computer is upgraded, restarted, and the next round of step S14 is prepared to synchronize the firmware of the upgrading area to the common area;
third embodiment
The embodiment provides a voice air conditioner firmware cloud upgrade system, which comprises: firmware server and firmware upgrade device;
the firmware server is used for updating and storing the latest lower computer firmware and upgrade information;
the firmware upgrading device is used for upgrading the voice air conditioner firmware and specifically comprises an upper computer and a lower computer;
the upper computer is provided with a main control WIFI chip 1 as a main control unit, the lower computer is provided with an audio processing unit DSP2 as a slave control unit, the main control unit and the slave control unit jointly form a control module, meanwhile, the main control WIFI chip 1 and the audio processing unit DSP2 are communicated through a communication unit which communicates in a mode including using a communication interface SPI, and lower computer firmware stored in the upper computer is transmitted to the lower computer through the communication interface unit 4 to be executed;
the upper computer is also provided with a storage unit 6, two areas including a common area and an upgrading area are allocated in the storage unit 6 for the lower computer, and when the lower computer firmware is upgraded, the new and old versions of the lower computer firmware in the common area and the upgrading area are judged; when the common area is an old version and the upgrading area is a new version, copying the lower computer firmware in the upgrading area into the common area; when the upgrading area is an old version, communication is established between the upper computer and a firmware server storing the lower computer firmware to be upgraded, the lower computer firmware to be upgraded is downloaded and burnt into the upgrading area, and the firmware upgrading device is restarted.
Further, on the audio processing unit DSP2, there is also included:
a voice input unit 3 for receiving a user voice input instruction.
Further, the main control WIFI chip 1 further includes:
and the equipment power supply module 5 is used for supplying power to the firmware upgrading device.
Fourth embodiment
The firmware cloud upgrading method provided by the invention can be applied to any other intelligent equipment besides the voice air conditioner. The embodiment provides a firmware cloud upgrade method, which can be applied to any intelligent device and comprises the following steps:
s210: establishing a firmware upgrading device for carrying out firmware cloud upgrading, wherein the firmware upgrading device comprises an upper computer and a lower computer;
s220: the upper computer establishes communication with the lower computer, starts the firmware upgrading device and enters a firmware upgrading process;
s230: setting a common area and an upgrading area in a storage unit of the upper computer, and judging whether the versions of the lower computer firmware in the common area and the upgrading area are old or new when the lower computer firmware is upgraded;
when the common area is an old version and the upgrading area is a new version, copying the lower computer firmware in the upgrading area into the common area;
when the upgrade area is the old version, establishing communication with the firmware server storing the lower computer firmware to be upgraded through the upper computer, downloading the lower computer firmware to be upgraded, burning the lower computer firmware to the upgrade area, restarting the firmware upgrade device, and jumping to step S220.
A computer readable storage medium storing computer code which, when executed, performs a method as described above. Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be implemented by a program to instruct related hardware, the program may be stored in a computer readable storage medium, and the storage medium may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
The above description is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above examples, and all technical solutions belonging to the concept of the present invention belong to the protection scope of the present invention. It should be noted that modifications and adaptations to the present invention may occur to one skilled in the art without departing from the principles of the present invention and are intended to be within the scope of the present invention.
The technical features of the above-described embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above-described embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
It should be noted that the above embodiments can be freely combined as needed. The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.
The software program of the present invention may be executed by a processor to perform the steps or functions described above. Likewise, the software programs of the present invention (including associated data structures) may be stored on a computer readable recording medium, such as RAM memory, magnetic or optical drive or diskette and the like. In addition, some of the steps or functions of the present invention may be implemented in hardware, for example, as circuitry that cooperates with the processor to perform various functions or steps. The methods disclosed in the embodiments shown in the embodiments of the present specification may be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or by instructions in the form of software. The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of this specification may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present specification may be embodied directly in hardware, in a decoded processor, or in a combination of hardware and software modules in a decoded processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in a memory, and the processor reads the information in the memory and, in combination with its hardware, performs the steps of the above method.
Embodiments also provide a computer readable storage medium storing one or more programs that, when executed by an electronic system comprising a plurality of application programs, cause the electronic system to perform the method of embodiment one. And will not be described in detail herein.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
The system, apparatus, module or unit set forth in the above embodiments may be implemented in particular by a computer chip or entity, or by a product having a certain function. One typical implementation is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices. Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves. It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
Furthermore, portions of the present invention may be implemented as a computer program product, such as computer program instructions, which when executed by a computer, may invoke or provide methods and/or techniques in accordance with the present invention by way of operation of the computer. Program instructions for invoking the inventive methods may be stored in fixed or removable recording media and/or transmitted via a data stream in a broadcast or other signal bearing medium and/or stored within a working memory of a computer device operating according to the program instructions. An embodiment according to the invention comprises an apparatus comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein the computer program instructions, when executed by the processor, trigger the apparatus to operate a method and/or a solution according to the embodiments of the invention as described above.
Claims (9)
1. A cloud upgrade method for voice air conditioner firmware is characterized by comprising the following steps:
s110: establishing a firmware upgrading device for carrying out firmware cloud upgrading on a voice air conditioner, wherein the firmware upgrading device comprises an upper computer and a lower computer;
s120: the upper computer establishes communication with the lower computer, starts the firmware upgrading device and enters a firmware upgrading process;
s130: setting a common area and an upgrading area in a storage unit of the upper computer, and judging whether the versions of the lower computer firmware in the common area and the upgrading area are old or new when the lower computer firmware is upgraded;
when the common area is an old version and the upgrading area is a new version, copying the lower computer firmware in the upgrading area into the common area;
when the upgrading area is an old version, establishing communication with a firmware server storing the lower computer firmware to be upgraded through the upper computer, downloading the lower computer firmware to be upgraded, burning the lower computer firmware to the upgrading area, restarting the firmware upgrading device, and jumping to the step S120;
in step S120, the firmware upgrading device is started, which specifically includes:
the upper computer detects whether the lower computer firmware in the upgrading area is the latest version or not through software;
if the lower computer firmware in the upgrading area is the latest version, the upper computer loads the lower computer firmware from the upgrading area and sends the lower computer firmware to the lower computer for starting through a communication interface;
and if the lower computer firmware in the upgrading area is not the latest version, the upper computer loads the lower computer firmware from the common area and sends the lower computer firmware to the lower computer for starting through a communication interface.
2. The cloud upgrade method of voice air conditioner firmware according to claim 1, wherein in step S120, after starting the firmware upgrade apparatus, before entering a firmware upgrade process, the method further comprises: the upgrade detection task is started, specifically:
after the upper computer is successfully networked, uploading local information including a local ID number from a storage unit of the upper computer, wherein the local information is used for comparing with upgrading information including a firmware range to be upgraded in the firmware server;
detecting the local ID number, and judging whether the local is in the range of the firmware to be upgraded or not through the local ID number;
if the firmware to be upgraded is in the range, entering a process of upgrading the lower computer firmware in the step S130;
if the firmware is not in the range of the firmware to be upgraded, the firmware is not upgraded.
3. The cloud upgrade method of voice air conditioner firmware of claim 2, further comprising:
the upgrade detection task is triggered to upgrade by any mode including user voice input recognition trigger and automatic upgrade trigger.
4. The cloud upgrade method of voice air conditioner firmware according to claim 1, wherein in step S130, when the normal area is an old version, the upgrade area is a new version, and the lower computer firmware in the upgrade area is copied into the normal area, the method further comprises:
setting a common area update identification field for identifying an update state in the common area;
before copying the lower computer firmware in the upgrading zone to the common zone, setting the common zone updating identification field as upgrading in progress;
judging whether the normal area is successfully upgraded according to the field value of the normal area updating identification field after restarting when the abnormality including power failure occurs in the copying process, and copying the lower computer firmware from the upgrading area again when the field value of the normal area updating identification field is in the upgrading process;
and after the copying is completed, setting the field value of the common area update identification field as the upgrading end.
5. The cloud upgrade method of voice air conditioner firmware according to claim 1, wherein in step S130, when the upgrade area is an old version, communication is established between the host computer and the firmware server storing the lower computer firmware to be upgraded, the lower computer firmware to be upgraded is downloaded and burned into the upgrade area, and the method further comprises:
an upgrade area update identification field for identifying the update state in the upgrade area is arranged in the upgrade area;
before downloading the lower computer firmware to be upgraded and burning the lower computer firmware into the upgrading area, setting the upgrading area updating identification field as upgrading in progress;
when an abnormality including power failure occurs in the upgrading process, judging whether the upgrading area is successfully upgraded according to the field value of the upgrading area updating identification field after restarting, and when the field value of the upgrading area updating identification field is in upgrading process, loading the lower computer firmware from the common area by the upper computer again, sending the lower computer firmware to the lower computer for starting through a communication interface, and carrying out re-upgrading on the upgrading area;
and after the upgrading is finished, setting the field value of the upgrading area updating identification field as the upgrading finishing.
6. A cloud upgrade system for a voice air conditioner firmware, applied to the cloud upgrade method for a voice air conditioner firmware as set forth in any one of claims 1 to 5, comprising: firmware server and firmware upgrade device;
the firmware server is used for updating and storing the latest lower computer firmware and upgrade information;
the firmware upgrading device is used for upgrading the voice air conditioner firmware and specifically comprises an upper computer and a lower computer;
the upper computer is provided with a main control WIFI chip as a main control unit, the lower computer is provided with an audio processing unit DSP as a slave control unit, the main control unit and the slave control unit jointly form a control module, meanwhile, the main control WIFI chip and the audio processing unit DSP are communicated through a communication unit which communicates in a mode including using a communication interface SPI, and lower computer firmware stored in the upper computer is transmitted to the lower computer through the communication unit to be executed;
the upper computer is also provided with a storage unit, two areas including a common area and an upgrading area are allocated in the storage unit for the lower computer, and when the lower computer firmware is upgraded, the new and old versions of the lower computer firmware in the common area and the upgrading area are judged; when the common area is an old version and the upgrading area is a new version, copying the lower computer firmware in the upgrading area into the common area; when the upgrading area is an old version, communication is established between the upper computer and a firmware server storing the lower computer firmware to be upgraded, the lower computer firmware to be upgraded is downloaded and burnt into the upgrading area, and the firmware upgrading device is restarted.
7. The cloud upgrade system of claim 6, further comprising, on said audio processing unit DSP:
and the voice input unit is used for receiving a voice input instruction of a user.
8. The cloud upgrade system of voice air conditioner firmware of claim 6, wherein the main control WIFI chip further comprises:
and the equipment power supply module is used for supplying power to the firmware upgrading device.
9. The cloud firmware upgrading method is characterized by comprising the following steps of:
s210: establishing a firmware upgrading device for carrying out firmware cloud upgrading, wherein the firmware upgrading device comprises an upper computer and a lower computer;
s220: the upper computer establishes communication with the lower computer, starts the firmware upgrading device and enters a firmware upgrading process;
s230: setting a common area and an upgrading area in a storage unit of the upper computer, and judging whether the versions of the lower computer firmware in the common area and the upgrading area are old or new when the lower computer firmware is upgraded;
when the common area is an old version and the upgrading area is a new version, copying the lower computer firmware in the upgrading area into the common area;
when the upgrading area is an old version, establishing communication with a firmware server storing the lower computer firmware to be upgraded through the upper computer, downloading the lower computer firmware to be upgraded, burning the lower computer firmware to the upgrading area, restarting the firmware upgrading device, and jumping to step S220;
in step S220, the firmware upgrading device is started, which specifically includes:
the upper computer detects whether the lower computer firmware in the upgrading area is the latest version or not through software;
if the lower computer firmware in the upgrading area is the latest version, the upper computer loads the lower computer firmware from the upgrading area and sends the lower computer firmware to the lower computer for starting through a communication interface;
and if the lower computer firmware in the upgrading area is not the latest version, the upper computer loads the lower computer firmware from the common area and sends the lower computer firmware to the lower computer for starting through a communication interface.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010934837.9A CN112181466B (en) | 2020-09-08 | 2020-09-08 | Cloud upgrading method and system for firmware of voice air conditioner |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010934837.9A CN112181466B (en) | 2020-09-08 | 2020-09-08 | Cloud upgrading method and system for firmware of voice air conditioner |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112181466A CN112181466A (en) | 2021-01-05 |
CN112181466B true CN112181466B (en) | 2024-04-16 |
Family
ID=73925760
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010934837.9A Active CN112181466B (en) | 2020-09-08 | 2020-09-08 | Cloud upgrading method and system for firmware of voice air conditioner |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112181466B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US12079619B2 (en) | 2022-07-27 | 2024-09-03 | T-Mobile Usa, Inc. | Firmware-over-the-air (FOTA) update for wireless devices in an internet of things (IoT) network |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101004691A (en) * | 2007-01-23 | 2007-07-25 | 北京映翰通网络技术有限公司 | Method and device for updating firmware program |
CN105094903A (en) * | 2015-07-16 | 2015-11-25 | 广州飞米电子科技有限公司 | Method and device for upgrading firmware |
CN105808292A (en) * | 2016-03-07 | 2016-07-27 | 西安诺瓦电子科技有限公司 | Firmware upgrade method of embedded terminal device |
CN107179909A (en) * | 2017-05-16 | 2017-09-19 | 广东美的暖通设备有限公司 | Method for upgrading software, device and computer-readable recording medium |
CN107808074A (en) * | 2017-11-03 | 2018-03-16 | 武汉资联虹康科技股份有限公司 | A kind of slave computer runtime and method |
CN107908496A (en) * | 2017-11-21 | 2018-04-13 | 东峡大通(北京)管理咨询有限公司 | For the method and MCU recovered automatically after the error of MCU firmwares |
WO2018120213A1 (en) * | 2016-12-30 | 2018-07-05 | 深圳配天智能技术研究院有限公司 | Firmware updating method and controller |
CN110007941A (en) * | 2019-03-05 | 2019-07-12 | 小黄狗环保科技有限公司 | MCU (microprogrammed control unit) firmware of intelligent garbage classification recycling system and upgrading method |
CN110134415A (en) * | 2019-04-12 | 2019-08-16 | 深圳市致宸信息科技有限公司 | A kind of controller and its method for upgrading software and device |
CN110780909A (en) * | 2019-10-14 | 2020-02-11 | 武汉虹识技术有限公司 | Distributed embedded system upgrading method and device |
WO2020082984A1 (en) * | 2018-10-25 | 2020-04-30 | 华为技术有限公司 | Firmware upgrade method and apparatus, and terminal |
CN111142911A (en) * | 2019-12-27 | 2020-05-12 | 易思维(杭州)科技有限公司 | Embedded system with abnormal recovery function and upgrading method thereof |
CN111324363A (en) * | 2019-11-14 | 2020-06-23 | 杭州海康威视系统技术有限公司 | Equipment upgrading method, upgrading terminal, equipment and storage medium |
CN111338662A (en) * | 2018-12-18 | 2020-06-26 | 深圳市优必选科技有限公司 | Firmware upgrading method and device for slave station and terminal |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5655677B2 (en) * | 2011-04-04 | 2015-01-21 | 富士通株式会社 | Hypervisor replacement method and information processing apparatus |
-
2020
- 2020-09-08 CN CN202010934837.9A patent/CN112181466B/en active Active
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101004691A (en) * | 2007-01-23 | 2007-07-25 | 北京映翰通网络技术有限公司 | Method and device for updating firmware program |
CN105094903A (en) * | 2015-07-16 | 2015-11-25 | 广州飞米电子科技有限公司 | Method and device for upgrading firmware |
CN105808292A (en) * | 2016-03-07 | 2016-07-27 | 西安诺瓦电子科技有限公司 | Firmware upgrade method of embedded terminal device |
WO2018120213A1 (en) * | 2016-12-30 | 2018-07-05 | 深圳配天智能技术研究院有限公司 | Firmware updating method and controller |
CN107179909A (en) * | 2017-05-16 | 2017-09-19 | 广东美的暖通设备有限公司 | Method for upgrading software, device and computer-readable recording medium |
CN107808074A (en) * | 2017-11-03 | 2018-03-16 | 武汉资联虹康科技股份有限公司 | A kind of slave computer runtime and method |
CN107908496A (en) * | 2017-11-21 | 2018-04-13 | 东峡大通(北京)管理咨询有限公司 | For the method and MCU recovered automatically after the error of MCU firmwares |
WO2020082984A1 (en) * | 2018-10-25 | 2020-04-30 | 华为技术有限公司 | Firmware upgrade method and apparatus, and terminal |
CN111338662A (en) * | 2018-12-18 | 2020-06-26 | 深圳市优必选科技有限公司 | Firmware upgrading method and device for slave station and terminal |
CN110007941A (en) * | 2019-03-05 | 2019-07-12 | 小黄狗环保科技有限公司 | MCU (microprogrammed control unit) firmware of intelligent garbage classification recycling system and upgrading method |
CN110134415A (en) * | 2019-04-12 | 2019-08-16 | 深圳市致宸信息科技有限公司 | A kind of controller and its method for upgrading software and device |
CN110780909A (en) * | 2019-10-14 | 2020-02-11 | 武汉虹识技术有限公司 | Distributed embedded system upgrading method and device |
CN111324363A (en) * | 2019-11-14 | 2020-06-23 | 杭州海康威视系统技术有限公司 | Equipment upgrading method, upgrading terminal, equipment and storage medium |
CN111142911A (en) * | 2019-12-27 | 2020-05-12 | 易思维(杭州)科技有限公司 | Embedded system with abnormal recovery function and upgrading method thereof |
Non-Patent Citations (2)
Title |
---|
Design aspects for upgrading firmware of a resource constrained device in the field;P. Pingale等;《2016 IEEE International Conference on Recent Trends in Electronics, Information & Communication Technology (RTEICT)》;20170109;903-907 * |
基于IAP技术的远程固件更新系统设计与实现;檀朝新等;《中国医疗器械杂志》;20190430;第43卷(第6期);425-428 * |
Also Published As
Publication number | Publication date |
---|---|
CN112181466A (en) | 2021-01-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11003599B2 (en) | Method, apparatus and system of managing external devices, memory and unmanned aerial vehicle | |
CN110659046B (en) | Firmware upgrading method, terminal, charging box, earphone and storage medium | |
CN110543321A (en) | OTA (over the air) upgrading method, device, terminal and computer readable storage medium | |
CN105760200A (en) | Terminal equipment and its system upgrading method | |
CN110837388A (en) | Software upgrading method of robot, upgrading server, robot and storage medium | |
JP5710680B2 (en) | System and method for reducing factory program time for wireless devices | |
CN105721941A (en) | Over-the-air upgrading control method and device of cloud television | |
CN111901142A (en) | Firmware silent upgrading method and device for embedded equipment cluster | |
CN106775873B (en) | Method and equipment for updating mobile phone software and acquiring patch file | |
CN102214106B (en) | Automatic dual-system guide method of embedded device | |
CN112181467A (en) | Method and device for upgrading memory firmware of terminal, terminal and storage medium | |
CN112181466B (en) | Cloud upgrading method and system for firmware of voice air conditioner | |
CN112416411B (en) | Upgrading method and device, equipment end, server and computer readable medium | |
WO2024131374A1 (en) | Cross-system upgrade method and apparatus for set-top box, set-top box, and storage medium | |
CN113094064A (en) | Gateway software module upgrading method, device, equipment and storage medium | |
CN108595292B (en) | System optimization method, mobile terminal and computer storage medium | |
CN110764809A (en) | OTA APN upgrading method, device, equipment and medium | |
CN112532664A (en) | Data upgrade method and device | |
CN110659052B (en) | Method and system for updating system software in network equipment and readable storage medium | |
CN114968662A (en) | Management system, method, device and medium of device firmware | |
CN117389578A (en) | Cloud terminal system upgrading method and device, cloud terminal and storage medium | |
CN114860260A (en) | Over-the-air downloading method and device, storage medium and electronic equipment | |
CN112954036B (en) | Software upgrading method, terminal equipment and system | |
CN110825406A (en) | Software upgrading method and related equipment | |
CN114637523B (en) | Firmware upgrade file processing method, device, server and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Country or region after: China Address after: Unit G4-202-059, Artificial Intelligence Industrial Park, No. 88 Jinjihu Avenue, Suzhou Industrial Park, Suzhou Area, China (Jiangsu) Pilot Free Trade Zone, Suzhou City, Jiangsu Province, 215124 Applicant after: Shencong Semiconductor (Jiangsu) Co.,Ltd. Address before: 200232 room 3712, 3 / F, 2879 Longteng Avenue, Xuhui District, Shanghai Applicant before: Shanghai shencong Semiconductor Co.,Ltd. Country or region before: China |
|
GR01 | Patent grant | ||
GR01 | Patent grant |