CN114172756A - Version upgrading method and system for intelligent equipment electronic control firmware - Google Patents

Version upgrading method and system for intelligent equipment electronic control firmware Download PDF

Info

Publication number
CN114172756A
CN114172756A CN202111475121.8A CN202111475121A CN114172756A CN 114172756 A CN114172756 A CN 114172756A CN 202111475121 A CN202111475121 A CN 202111475121A CN 114172756 A CN114172756 A CN 114172756A
Authority
CN
China
Prior art keywords
upgrading
wifi module
electric control
firmware
version
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.)
Pending
Application number
CN202111475121.8A
Other languages
Chinese (zh)
Inventor
袁龙刚
黄斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan Hongmei Intelligent Technology Co Ltd
Original Assignee
Sichuan Hongmei Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sichuan Hongmei Intelligent Technology Co Ltd filed Critical Sichuan Hongmei Intelligent Technology Co Ltd
Priority to CN202111475121.8A priority Critical patent/CN114172756A/en
Publication of CN114172756A publication Critical patent/CN114172756A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2807Exchanging configuration information on appliance services in a home automation network
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes

Abstract

One or more embodiments of the present application disclose a system method and a system for version upgrade of an electronic control firmware of an intelligent device, including: the system comprises intelligent equipment, a test router, a home router, an upper computer test device, an IOT platform, an OTA platform and an equipment client; the intelligent equipment is internally provided with a WiFi module, an electric control MCU board and an EEPROM; the whole system realizes an off-line upgrading scheme, an on-line silent upgrading scheme and an on-line push upgrading scheme of the MCU. The online and offline upgrading of the electronic control firmware version is realized through the WiFi module in the intelligent equipment, the problem that the firmware version can only be re-burnt and upgraded through the transfer tooling equipment is solved, the upgrading efficiency and flexibility of the electronic control firmware version are improved, and the upgrading cost and complexity are reduced.

Description

Version upgrading method and system for intelligent equipment electronic control firmware
Technical Field
The invention relates to the technical field of intelligent home furnishing, in particular to a version upgrading method and system for an intelligent device electronic control firmware.
Background
The intelligent household appliance is a household appliance product formed by introducing a microprocessor, a sensor technology and a network communication technology into household appliance equipment, has the functions of automatically sensing the space state of a house, the self state of the household appliance and the service state of the household appliance, and can automatically control and receive a control instruction of a house user in the house or in a remote place; meanwhile, the intelligent household appliance is used as a component of the intelligent home, and can be interconnected with other household appliances, homes and facilities in a house to form a system, so that the function of the intelligent home is realized.
Current intelligent home appliance systems may include: family's router, switching tool equipment, wiFi module, cell-phone APP, equipment are automatically controlled, high in the clouds server etc. wherein the wiFi module is the core, mainly for switching tool equipment service, can connect family's router and visit high in the clouds server, and the software version upgrading of its self is very easy, and the cell-phone end is because of having the online function, and it is also very easy to update the APP version. The electronic control of the equipment does not have the function of surfing the internet, and the updating of the firmware version can only be realized by burning the program again, which brings great trouble to the after-sale maintenance work.
Therefore, it is desirable to find a new scheme for upgrading the firmware version of the electronic control device to overcome the above problems.
Disclosure of Invention
The invention provides a version upgrading method and system for an electronic control firmware of intelligent equipment, which are used for realizing online and offline upgrading of the version of the electronic control firmware through a WiFi module in the intelligent equipment, solving the problem that the firmware version can only be re-burnt and upgraded through a transfer tooling device, improving the upgrading efficiency and flexibility of the version of the electronic control firmware and reducing the upgrading cost and complexity.
To solve the above technical problem, one or more embodiments of the present specification are implemented as follows:
in a first aspect, a version upgrade system for an electronic control firmware of an intelligent device is provided, including: the system comprises intelligent equipment, a test router, a home router, an upper computer test device, an IOT (Internet of things) platform, an OTA (over the air) platform and an equipment client; the intelligent equipment is internally provided with a WiFi module, an electric control MCU board and a charged erasable programmable read-only memory EEPROM;
under a user mode, the intelligent equipment realizes online silent upgrade of the electric control MCU board in cooperation with the home router and the OTA platform;
the intelligent equipment is used for realizing online pushing and upgrading of the electric control MCU board in cooperation with the home router, the OTA platform, the IOT platform and the equipment client under a user mode;
and the intelligent equipment is used for realizing the off-line upgrade of the electric control MCU board in cooperation with the test router and the upper computer test device in the STA mode.
In a second aspect, a version upgrade method for an electronic control firmware of an intelligent device is provided,
the intelligent equipment judges whether the intelligent equipment is in a user mode at present;
if the home router is in the user mode, connecting to the home router by utilizing a self WiFi module; the WiFi module periodically inquires whether a new firmware version exists at present from the OTA platform, if so, the WiFi module sends a firmware upgrading instruction to the electric control MCU board to control the electric control MCU board to be in an upgrading state, and meanwhile, the latest firmware version is downloaded from the OTA platform and transmitted to the electric control MCU board; the electric control MCU board finishes the version upgrading of the electric control firmware according to the received firmware version;
alternatively, the first and second electrodes may be,
connecting to the home router by using a self WiFi module; the method comprises the steps that an equipment client inquires whether a new firmware version exists in an OTA platform according to the requirements of a user, and if the new firmware version exists in the OTA platform, the equipment client prompts the detected new firmware version and prompt information whether to select upgrading on a client user interface according to inquiry response; when the user selects upgrading according to the prompt information, the equipment client sends an upgrading request instruction to the WiFi module; the WiFi module controls the electric control MCU board to be in an upgrading state according to the upgrading request instruction, meanwhile, the WiFi module downloads a latest firmware version from the OTA platform and transmits the latest firmware version to the electric control MCU board, a transmission result is reported to the equipment client through the IOT platform after the transmission is finished, and the electric control MCU board finishes the edition upgrading of the electric control firmware according to the received firmware version;
if the test router is in the STA mode, a WiFi module of the test router is connected to the test router, and meanwhile, the upper computer test device is connected with the test router to form a local area network for UDP data communication; the upper computer testing device sends a UDP instruction to the WiFi module, and the UDP instruction is transmitted to the electric control MCU board by the WiFi module through a serial port so as to control the electric control MCU board to be in an upgrading state; meanwhile, the upper computer testing device sends a storage address of the locally stored latest firmware version to the WiFi module, so that the WiFi module can download the latest firmware version from the upper computer testing device according to the storage address; and the WiFi module sends the downloaded latest firmware version to the electric control MCU board through a serial port, and the electric control MCU board finishes the version upgrade of the electric control firmware according to the received firmware version.
As can be seen from the technical solutions provided by one or more embodiments of the present specification, a version upgrade system for an electronic control firmware of an intelligent device is designed, including: the system comprises intelligent equipment, a test router, a home router, an upper computer test device, an IOT platform, an OTA platform and an equipment client; the intelligent equipment is internally provided with a WiFi module, an electric control MCU board and an EEPROM; the whole system realizes an off-line upgrading scheme, an on-line silent upgrading scheme and an on-line push upgrading scheme of the MCU. The online and offline upgrading of the electronic control firmware version is realized through the WiFi module in the intelligent equipment, the problem that the firmware version can only be re-burnt and upgraded through the transfer tooling equipment is solved, the upgrading efficiency and flexibility of the electronic control firmware version are improved, and the upgrading cost and complexity are reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a schematic diagram of a prior art system for processing MCU firmware upgrades after sale.
Fig. 2 is a schematic structural diagram of a version upgrade system of an intelligent device electronic control firmware provided in an embodiment of this specification.
Fig. 3 is an interaction flow diagram of an upgrading process of a WiFi module and an electronic control MCU board provided in an embodiment of this specification.
Fig. 4 is a schematic step diagram of a method for upgrading a version of an electronic control firmware of an intelligent device according to an embodiment of the present disclosure.
Detailed Description
In order to make the technical solutions in the present specification better understood, the technical solutions in one or more embodiments of the present specification will be clearly and completely described below with reference to the accompanying drawings in one or more embodiments of the present specification, and it is obvious that the one or more embodiments described are only a part of the embodiments of the present specification, and not all embodiments. All other embodiments that can be derived by a person skilled in the art from one or more of the embodiments described herein without making any inventive step shall fall within the scope of protection of this document.
Referring to fig. 1, a system for upgrading an after-market MCU firmware in the prior art is depicted, taking an air conditioning device as an example, the system includes an air conditioning device, a transfer tool device, a WiFi module, and a mobile phone APP. The UART protocol is mainly used for serial port communication between the WiFi and the air conditioning equipment; the air-conditioning equipment relates to hardware comprising an EEPROM and an MCU (wherein the EEPROM is an abbreviation of Electrically Erasable Programmable Read-Only Memory, and the MCU is an abbreviation of Micro Controller Unit), and the MCU writes a data packet into the EEPROM after acquiring the data packet from the WiFi module; switching frock equipment is used for connecting MCU and wiFi module, and its effect contains: the method comprises the steps of supplying power to the whole system, connecting an MCU and a WiFi data communication interface, transmitting serial port data between WiFi and the MCU, and prompting the working state of the system through an LED lamp (the working states related to the content are four, namely the LED lamp is in an off state when the WiFi module and the MCU are not successfully shaken, the LED lamp is in a slow flash state when the WiFi module and the MCU are successfully shaken, the LED lamp is in a flash state in the process of writing data into an EEPROM by the MCU, and the LED lamp is in a normally-on state when the data are successfully written); the WiFi module communicates with the air conditioner MCU downwards and communicates with the mobile phone APP upwards. Functionally, the system needs to support WiFi hotspot establishment, IPP protocol connection, device status query, data forwarding and the like; the mobile phone APP is mainly used for connecting a WiFi hotspot, realizing a heartbeat mechanism, inquiring equipment attributes, sending a data packet to be written, acquiring and analyzing a feedback result and the like.
The invention provides a system and a method for off-line upgrading of electric control end software by combining the current situation of intelligent household appliances. The system structure comprises intelligent equipment, a test router, a home router, upper computer test software (including local upgrade files), an IOT platform, an OTA platform (including deployed upgrade file information), an equipment client (for example, a mobile phone APP) and the like. The whole system realizes an off-line upgrading scheme, an on-line silent upgrading scheme and an on-line push upgrading scheme of the MCU. The invention not only solves the problem of remote online upgrade of the electric control end of the intelligent equipment with low cost, but also has flexible upgrade mode. In addition, the invention supports the off-line updating of the firmware version of the electric control end of the intelligent equipment in a factory mode, and has good application prospect in the field of intelligent household appliances.
Referring to fig. 2, a schematic structural diagram of a version upgrade system of an electronic control firmware of an intelligent device provided in an embodiment of this specification includes: the system comprises intelligent equipment 201, a test router 202, a home router 203, an upper computer test device 204, an IOT (Internet of things) platform 205, an OTA (over the air) platform 206 and an equipment client 207; the intelligent device 201 is internally equipped with a WiFi module 2011, an electronic control MCU board 2012 and a charged erasable programmable read only memory EEPROM 2013.
The intelligent device 201, the home router 203 and the OTA platform 206 form an online silent upgrade part of the MCU; the intelligent equipment is connected to the home router by utilizing a WiFi module of the intelligent equipment in a user mode; the WiFi module periodically inquires whether a new firmware version exists at present from the OTA platform, if so, the WiFi module sends a firmware upgrading instruction to the electric control MCU board to control the electric control MCU board to be in an upgrading state, and meanwhile, the latest firmware version is downloaded from the OTA platform and transmitted to the electric control MCU board; the electric control MCU board finishes the version upgrading of the electric control firmware according to the received firmware version;
the intelligent device 201, the home router 203, the OTA platform 206, the IOT platform 205 and the device client 207 form an online push upgrading part of the electronic control firmware MCU; the intelligent equipment is connected to the home router by utilizing a WiFi module of the intelligent equipment in a user mode; the method comprises the steps that an equipment client inquires whether a new firmware version exists in an OTA platform according to the requirements of a user, and if the new firmware version exists in the OTA platform, the equipment client prompts the detected new firmware version and prompt information whether to select upgrading on a client user interface according to inquiry response; when the user selects upgrading according to the prompt information, the equipment client sends an upgrading request instruction to the WiFi module; the WiFi module controls the electric control MCU board to be in an upgrading state according to the upgrading request instruction, meanwhile, the WiFi module downloads a latest firmware version from the OTA platform and transmits the latest firmware version to the electric control MCU board, a transmission result is reported to the equipment client through the IOT platform after the transmission is finished, and the electric control MCU board finishes the edition upgrading of the electric control firmware according to the received firmware version;
the intelligent device 201, the test router 202 and the upper computer test device 204 form an off-line upgrading part of the MCU; the intelligent equipment is connected to the test router by using a WiFi module of the intelligent equipment in an STA mode, and meanwhile, the upper computer test device is connected with the test router to form a local area network for UDP data communication; the upper computer testing device sends a UDP instruction to the WiFi module, and the UDP instruction is transmitted to the electric control MCU board by the WiFi module through a serial port so as to control the electric control MCU board to be in an upgrading state; meanwhile, the upper computer testing device sends a storage address of the locally stored latest firmware version to the WiFi module, so that the WiFi module can download the latest firmware version from the upper computer testing device according to the storage address; and the WiFi module sends the downloaded latest firmware version to the electric control MCU board through a serial port, and the electric control MCU board finishes the version upgrade of the electric control firmware according to the received firmware version. And the OTA platform comprises deployed upgrade file information.
In the OTA platform, the WiFi intelligent module is provided with an access interface. The platform mainly comprises the operations and processing of uploading of a plurality of MCU upgrading files, version configuration information and the like, and provides download addresses and verification information for the WiFi terminal. In the data interaction process of the WiFi intelligent module and the OTA platform, the WiFi module inquires the latest firmware information of the upgrade management platform at regular time, downloads corresponding electronic control firmware according to configuration by analyzing an upgrade configuration file returned by the upgrade management platform, and verifies the integrity and correctness of the firmware data. When the firmware downloading fails or the network is interrupted, the WiFi module can download the firmware data again or continue to download the rest firmware data after networking.
When the electric control MCU board receives the upgrading notice of the WiFi module, the program is restarted to enter an upgrading mode, the electric control MCU end and the WiFi end do not respond to other commands any more in the upgrading mode, and the electric control MCU board and the WiFi end agree to enter a file transmission protocol. When the WiFi module inquires the upgrading state of the electric control MCU terminal, the electric control terminal is set with three states, namely, unprepared, prepared and ready, when the electric control MCU terminal is in the state of preparation, the WiFi module continues to issue a firmware upgrading request until the electric control MCU terminal returns to the state of preparation, and the two sides can enter the upgrading state after agreement succeeds. The file transmission in the upgrading process adopts an xModem data protocol until the WiFi module end sends all data to the electric control MCU, the electric control MCU checks the file and starts upgrading, the electric control program is restarted after upgrading is completed, the upgrading result is returned to the WiFi module end, and the WiFi module restarts the WiFi end program after receiving the upgrading result, updates the software and hardware version information of the electric control end and releases the upgrading file;
further, after the upgrading is successful, the WiFi module, the electric control MCU board and the mobile phone client recover to a normal mode, and the software version of the electric control end is correspondingly updated. In addition, an overtime exit mechanism is established between the WiFi module and the electric control MCU so as to ensure that the normal mode before upgrading can still be entered when upgrading fails;
optionally, the electronic control MCU board further writes the received firmware version into the EEPROM for local storage.
Optionally, data interaction is performed between the WiFi module and the electronic control MCU board in the smart device through a serial port.
Optionally, when the electronic control MCU board is in a non-upgrade process, the WiFi module sends a query instruction to the electronic control MCU board at regular time, and the electronic control MCU board returns the status parameters of the device to the WiFi module according to the query instruction.
Optionally, when the electronic control MCU board is in the upgrading process, the WiFi module sends a firmware version to the electronic control MCU board through an xmodem protocol, and meanwhile, the WiFi module stops the interaction of the timing serial port query information with the electronic control MCU board.
Optionally, when the intelligent device is in a factory mode, the WiFi module is in an STA mode after the device is powered on, and the testing router is actively connected for offline upgrade;
and when the intelligent equipment is in a user mode, the WiFi module is successfully bound with the distribution network and is connected with the home router for online recommended upgrade or online default upgrade.
Optionally, after the electronic control MCU board finishes firmware upgrade, the electronic control MCU board restarts to finish firmware upgrade and returns an upgrade result to the WiFi module, and after the WiFi module receives the upgrade result, the program in the WiFi module is restarted.
Optionally, in the process of data interaction between the WiFi module and the OTA platform, the WiFi module periodically queries the latest firmware version of the upgrade management platform, and downloads the corresponding electronic control firmware according to configuration and verifies the integrity and correctness of the firmware data by analyzing the upgrade configuration file returned by the upgrade management platform;
when the downloading of the firmware version fails or the network is interrupted, the WiFi module can download the firmware version again or continue to download the rest firmware version after networking.
Optionally, when the electric control MCU board receives an upgrade notification of the WiFi module, the program is restarted to enter an upgrade mode; and/or the presence of a gas in the gas,
under the upgrading mode, the electric control MCU board and the WiFi module do not respond to other commands any more, and the electric control MCU board and the WiFi module enter a file transmission protocol in an agreed manner; and/or the presence of a gas in the gas,
when the WiFi module inquires the upgrading state of the electric control MCU board, the electric control end is set with three states, namely, unprepared, in-process and ready; and when the electric control MCU board is in a ready state, the WiFi module continues to issue firmware upgrading requests until the electric control MCU board restores to the ready state, and the two parties can enter an upgrading state after the two parties agree successfully.
-an off-line upgrade system
The method comprises the steps that a WiFi intelligent module and upper computer software are simultaneously connected with a test router and then can carry out UDP data communication in a formed local area network, the upper computer software sends a UDP instruction to the WiFi intelligent module and then transmits the UDP instruction to an MCU through a serial port to require the MCU to be in a firmware upgrading state, the upper computer software continuously sends a locally stored MCU upgrading file address to the WiFi intelligent module through UDP (the upper computer software is in a local platform role, the WiFi intelligent module can carry out platform access and data downloading), after the MCU upgrading file is downloaded, the WiFi intelligent module sends the upgrading file serial port of the MCU to the MCU through an xmodem protocol, the WiFi intelligent module restarts after sending the upgrading file of the MCU, and after the MCU receives the upgrading firmware, the firmware is restarted;
-an online silent upgrade system
The intelligent device is characterized in that the intelligent device is in a user mode, the WiFi module is connected to a home router and is in a normal working state, the WiFi module is appointed to inquire whether new MCU firmware exists on an OTA platform regularly (the WiFi module can know the current version information of the MCU in the process of normal serial port interaction of the MCU), if so, the WiFi module sends a firmware upgrading instruction to the MCU to enable the MCU to be in an upgrading state, then the WiFi module end downloads the firmware and transmits the downloaded firmware content to the MCU through an xmodem protocol, after the MCU receives the upgraded firmware, the firmware is restarted and an upgrading result is returned to the WiFi module end, and after the WiFi module receives the upgrading result, the WiFi end program is restarted. Furthermore, the timing query can be specified to be once a fixed time period every day, so that the influence on a user in the MCU upgrading process is reduced as much as possible;
-an online push upgrade system
The intelligent equipment is in a user mode, the WiFi module is connected to the home router and is in a normal working state, a user can operate the intelligent equipment by using the mobile phone client, an operation instruction of the intelligent equipment is issued to the WiFi intelligent module through the mobile phone terminal through the service cloud, and then the WiFi intelligent module sends a control instruction to the MCU, so that the control of the equipment is realized, and otherwise, the change of the equipment state is also synchronized to the mobile phone client through the reverse process. At the moment, the mobile phone client regularly inquires whether new MCU firmware exists from the OTA platform (the mobile phone can know the current version information of the MCU in the interaction process with the WiFi intelligent module), if so, a prompt interface is popped up to prompt a user that the MCU is detected to have the new firmware and whether upgrade is selected, if not, the prompt is ignored, when the user selects to upgrade, the mobile phone terminal sends an upgrade request instruction to the WiFi module, the WiFi intelligent module immediately sends the upgrade instruction to the MCU to enable the MCU to be in an upgrade state, then the WiFi module terminal downloads the firmware and transmits the downloaded firmware content to the MCU through an xmodem protocol, after the WiFi intelligent module successfully sends an upgrade file of the MCU, the sending result is reported to the mobile phone client through a service cloud, after the MCU receives the upgrade firmware, the firmware is restarted and the upgrade result is returned to the WiFi module terminal, and after the WiFi module receives the upgrading result, restarting the WiFi terminal program.
Referring to fig. 3, an interaction flow of an upgrading process of a WiFi module and an electronic control MCU board provided in the embodiments of the present disclosure is shown. Specifically, a process of data transmission between the WiFi intelligent module and the electronic control MCU through an xmodem protocol in an upgrade process is described (xmodem is an asynchronous file transfer protocol widely used in serial port communication), including a handshake stage and a data packet transceiving stage.
The electric control MCU comprises a software unit and a hardware unit. Take an air conditioner display panel as an example: the indicator light and the fault display screen of the display panel are hardware units, and the upgrading phenomenon does not exist, but the state of the indicator light and the specific fault display are controlled through a software unit, and the software upgrading of the electric control end is the software unit upgrading.
The handshake phase and the packet transceiving phase can be described simply as: after the WiFi module sends an upgrading instruction to the electric control MCU, the MCU immediately enters an upgrading mode to prepare for the xmodem to receive data, at the moment, a receiver firstly sends a signal to initiate transmission (the signal can determine which data verification mode the sender transmits the data), if the sender does not send the data, the receiver needs to wait for 3 seconds overtime and then sends the signal to request the data transmission, until no data response of the sender exists within 30 seconds, the handshake is considered to be failed, the MCU exits the upgrading mode and is restarted to enter the original working state; when the sender receives the request signal sent by the receiver, an instruction ready for sending is immediately returned to the receiver, and the handshake is successful. After the handshake of the receiver and the sender is successful, the sender starts to send data to the receiver through each frame of data, the receiver needs to send an ACK signal to confirm the correct data transmission, if the data transmission is wrong, a NAK signal is sent, the sender needs to reinitiate the data transmission after receiving the NAK signal, and if the data transmission is nearly completed, the sender needs to send an EOT signal to finish the data transmission;
referring to fig. 4, a schematic diagram of steps of a method for upgrading a version of an electronic control firmware of an intelligent device provided in an embodiment of the present specification is shown, where the method includes:
step 401: the intelligent equipment judges whether the intelligent equipment is in a user mode at present;
if in user mode, go to step 402, or, step 403;
step 402: connecting to the home router by using a self WiFi module; the WiFi module periodically inquires whether a new firmware version exists at present from the OTA platform, if so, the WiFi module sends a firmware upgrading instruction to the electric control MCU board to control the electric control MCU board to be in an upgrading state, and meanwhile, the latest firmware version is downloaded from the OTA platform and transmitted to the electric control MCU board; the electric control MCU board finishes the version upgrading of the electric control firmware according to the received firmware version;
step 403: connecting to the home router by using a self WiFi module; the method comprises the steps that an equipment client inquires whether a new firmware version exists in an OTA platform according to the requirements of a user, and if the new firmware version exists in the OTA platform, the equipment client prompts the detected new firmware version and prompt information whether to select upgrading on a client user interface according to inquiry response; when the user selects upgrading according to the prompt information, the equipment client sends an upgrading request instruction to the WiFi module; the WiFi module controls the electric control MCU board to be in an upgrading state according to the upgrading request instruction, meanwhile, the WiFi module downloads a latest firmware version from the OTA platform and transmits the latest firmware version to the electric control MCU board, a transmission result is reported to the equipment client through the IOT platform after the transmission is finished, and the electric control MCU board finishes the edition upgrading of the electric control firmware according to the received firmware version;
if in STA mode, go to step 404;
step 404: the WiFi module of the host computer is connected to the test router, and meanwhile, the upper computer test device is connected with the test router to form a local area network for UDP data communication; the upper computer testing device sends a UDP instruction to the WiFi module, and the UDP instruction is transmitted to the electric control MCU board by the WiFi module through a serial port so as to control the electric control MCU board to be in an upgrading state; meanwhile, the upper computer testing device sends a storage address of the locally stored latest firmware version to the WiFi module, so that the WiFi module can download the latest firmware version from the upper computer testing device according to the storage address; and the WiFi module sends the downloaded latest firmware version to the electric control MCU board through a serial port, and the electric control MCU board finishes the version upgrade of the electric control firmware according to the received firmware version.
It should be noted that not all steps and modules in the above flows and system structure diagrams are necessary, and some steps or modules may be omitted according to actual needs. The execution order of the steps is not fixed and can be adjusted as required. The system structure described in the above embodiments may be a physical structure or a logical structure, that is, some modules may be implemented by the same physical entity, or some modules may be implemented by a plurality of physical entities, or some components in a plurality of independent devices may be implemented together.
In the above embodiments, the hardware unit may be implemented mechanically or electrically. For example, a hardware element may comprise permanently dedicated circuitry or logic (such as a dedicated processor, FPGA or ASIC) to perform the corresponding operations. The hardware elements may also comprise programmable logic or circuitry, such as a general purpose processor or other programmable processor, that may be temporarily configured by software to perform the corresponding operations. The specific implementation (mechanical, or dedicated permanent, or temporarily set) may be determined based on cost and time considerations.
While the invention has been shown and described in detail in the drawings and in the preferred embodiments, it is not intended to limit the invention to the embodiments disclosed, and it will be apparent to those skilled in the art that various combinations of the code auditing means in the various embodiments described above may be used to obtain further embodiments of the invention, which are also within the scope of the invention.

Claims (10)

1. A version upgrading system for intelligent device electronic control firmware is characterized by comprising: the system comprises intelligent equipment, a test router, a home router, an upper computer test device, an IOT (Internet of things) platform, an OTA (over the air) platform and an equipment client; the intelligent equipment is internally provided with a WiFi module, an electric control MCU board and a charged erasable programmable read-only memory EEPROM;
under a user mode, the intelligent equipment realizes online silent upgrade of the electric control MCU board in cooperation with the home router and the OTA platform;
the intelligent equipment is used for realizing online pushing and upgrading of the electric control MCU board in cooperation with the home router, the OTA platform, the IOT platform and the equipment client under a user mode;
and the intelligent equipment is used for realizing the off-line upgrade of the electric control MCU board in cooperation with the test router and the upper computer test device in the STA mode.
2. The version-up system of the smart device electronic control firmware of claim 1, wherein the smart device, the home router, and the OTA platform constitute an online silent upgrade portion of an electronic control firmware MCU; the intelligent equipment is connected to the home router by utilizing a WiFi module of the intelligent equipment in a user mode; the WiFi module periodically inquires whether a new firmware version exists at present from the OTA platform, if so, the WiFi module sends a firmware upgrading instruction to the electric control MCU board to control the electric control MCU board to be in an upgrading state, and meanwhile, the latest firmware version is downloaded from the OTA platform and transmitted to the electric control MCU board; the electric control MCU board finishes the version upgrading of the electric control firmware according to the received firmware version;
the intelligent device, the home router, the OTA platform, the IOT platform and the device client form an online pushing and upgrading part of the MCU; the intelligent equipment is connected to the home router by utilizing a WiFi module of the intelligent equipment in a user mode; the method comprises the steps that an equipment client inquires whether a new firmware version exists in an OTA platform according to the requirements of a user, and if the new firmware version exists in the OTA platform, the equipment client prompts the detected new firmware version and prompt information whether to select upgrading on a client user interface according to inquiry response; when the user selects upgrading according to the prompt information, the equipment client sends an upgrading request instruction to the WiFi module; the WiFi module controls the electric control MCU board to be in an upgrading state according to the upgrading request instruction, meanwhile, the WiFi module downloads a latest firmware version from the OTA platform and transmits the latest firmware version to the electric control MCU board, a transmission result is reported to the equipment client through the IOT platform after the transmission is finished, and the electric control MCU board finishes the edition upgrading of the electric control firmware according to the received firmware version;
the intelligent equipment, the test router and the upper computer test device form an off-line upgrading part of the MCU; the intelligent equipment is connected to the test router by using a WiFi module of the intelligent equipment in an STA mode, and meanwhile, the upper computer test device is connected with the test router to form a local area network for UDP data communication; the upper computer testing device sends a UDP instruction to the WiFi module, and the UDP instruction is transmitted to the electric control MCU board by the WiFi module through a serial port so as to control the electric control MCU board to be in an upgrading state; meanwhile, the upper computer testing device sends a storage address of the locally stored latest firmware version to the WiFi module, so that the WiFi module can download the latest firmware version from the upper computer testing device according to the storage address; and the WiFi module sends the downloaded latest firmware version to the electric control MCU board through a serial port, and the electric control MCU board finishes the version upgrade of the electric control firmware according to the received firmware version.
3. The version upgrading system of the intelligent device electronic control firmware as claimed in claim 1, wherein data interaction is performed between the WiFi module and the electronic control MCU board in the intelligent device through a serial port.
4. The version upgrading system of the intelligent device electronic control firmware as claimed in claim 3, wherein when the electronic control MCU board is in a non-upgrading process, the WiFi module sends a query instruction to the electronic control MCU board at regular time, and the electronic control MCU board returns the status parameters of the device to the WiFi module according to the query instruction.
5. The version upgrading system for the electronic control firmware of the intelligent device according to claim 3, wherein when the electronic control MCU board is in an upgrading process, the WiFi module sends the firmware version to the electronic control MCU board through an xmodem protocol, and meanwhile, the WiFi module stops the interaction of the timing serial port query information with the electronic control MCU board.
6. The version-up system of smart device electronic control firmware of claim 1,
when the intelligent equipment is in a factory mode, after the equipment is powered on, the WiFi module is in an STA mode, and the intelligent equipment is actively connected with the test router to perform offline upgrade;
and when the intelligent equipment is in a user mode, the WiFi module is successfully bound with the distribution network and is connected with the home router for online recommended upgrade or online default upgrade.
7. The version upgrading system of the intelligent device electronic control firmware as claimed in claim 1, wherein after the electronic control MCU board finishes firmware upgrading, the firmware is restarted to complete firmware updating and an upgrading result is returned to the WiFi module, and after the WiFi module receives the upgrading result, the program in the WiFi module is restarted.
8. The version-up system of smart device electronic control firmware of claim 1,
in the process of data interaction between the WiFi module and the OTA platform, the WiFi module regularly inquires the latest firmware version of the upgrade management platform, downloads corresponding electronic control firmware according to configuration by analyzing an upgrade configuration file returned by the upgrade management platform and verifies the integrity and correctness of firmware data;
when the downloading of the firmware version fails or the network is interrupted, the WiFi module can download the firmware version again or continue to download the rest firmware version after networking.
9. The version-up system of smart device electronic control firmware of claim 1,
when the electric control MCU board receives the upgrading notification of the WiFi module, the program is restarted to enter an upgrading mode; and/or the presence of a gas in the gas,
under the upgrading mode, the electric control MCU board and the WiFi module do not respond to other commands any more, and the electric control MCU board and the WiFi module enter a file transmission protocol in an agreed manner; and/or the presence of a gas in the gas,
when the WiFi module inquires the upgrading state of the electric control MCU board, the electric control end is set with three states, namely, unprepared, in-process and ready; when the electric control MCU board is in a ready state, the WiFi module continues to issue firmware upgrading requests until the electric control MCU board restores to the ready state, and the two parties can enter an upgrading state after the two parties agree successfully; and/or the presence of a gas in the gas,
and the electronic control MCU board also writes the received firmware version into the EEPROM for local storage.
10. A version upgrading method of an electric control firmware of an intelligent device is characterized in that,
the intelligent equipment judges whether the intelligent equipment is in a user mode at present;
if the home router is in the user mode, connecting to the home router by utilizing a self WiFi module; the WiFi module periodically inquires whether a new firmware version exists at present from the OTA platform, if so, the WiFi module sends a firmware upgrading instruction to the electric control MCU board to control the electric control MCU board to be in an upgrading state, and meanwhile, the latest firmware version is downloaded from the OTA platform and transmitted to the electric control MCU board; the electric control MCU board finishes the version upgrading of the electric control firmware according to the received firmware version;
alternatively, the first and second electrodes may be,
connecting to the home router by using a self WiFi module; the method comprises the steps that an equipment client inquires whether a new firmware version exists in an OTA platform according to the requirements of a user, and if the new firmware version exists in the OTA platform, the equipment client prompts the detected new firmware version and prompt information whether to select upgrading on a client user interface according to inquiry response; when the user selects upgrading according to the prompt information, the equipment client sends an upgrading request instruction to the WiFi module; the WiFi module controls the electric control MCU board to be in an upgrading state according to the upgrading request instruction, meanwhile, the WiFi module downloads a latest firmware version from the OTA platform and transmits the latest firmware version to the electric control MCU board, a transmission result is reported to the equipment client through the IOT platform after the transmission is finished, and the electric control MCU board finishes the edition upgrading of the electric control firmware according to the received firmware version;
if the test router is in the STA mode, a WiFi module of the test router is connected to the test router, and meanwhile, the upper computer test device is connected with the test router to form a local area network for UDP data communication; the upper computer testing device sends a UDP instruction to the WiFi module, and the UDP instruction is transmitted to the electric control MCU board by the WiFi module through a serial port so as to control the electric control MCU board to be in an upgrading state; meanwhile, the upper computer testing device sends a storage address of the locally stored latest firmware version to the WiFi module, so that the WiFi module can download the latest firmware version from the upper computer testing device according to the storage address; and the WiFi module sends the downloaded latest firmware version to the electric control MCU board through a serial port, and the electric control MCU board finishes the version upgrade of the electric control firmware according to the received firmware version.
CN202111475121.8A 2021-12-06 2021-12-06 Version upgrading method and system for intelligent equipment electronic control firmware Pending CN114172756A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111475121.8A CN114172756A (en) 2021-12-06 2021-12-06 Version upgrading method and system for intelligent equipment electronic control firmware

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111475121.8A CN114172756A (en) 2021-12-06 2021-12-06 Version upgrading method and system for intelligent equipment electronic control firmware

Publications (1)

Publication Number Publication Date
CN114172756A true CN114172756A (en) 2022-03-11

Family

ID=80483496

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111475121.8A Pending CN114172756A (en) 2021-12-06 2021-12-06 Version upgrading method and system for intelligent equipment electronic control firmware

Country Status (1)

Country Link
CN (1) CN114172756A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114745740A (en) * 2022-05-16 2022-07-12 四川虹美智能科技有限公司 Intelligent household appliance upgrading system and method
CN114867041A (en) * 2022-04-29 2022-08-05 宁波奥克斯电气股份有限公司 OTA (over the air) upgrading method based on Wi-Fi Portal, storage medium and air conditioner

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109189460A (en) * 2018-11-20 2019-01-11 北京千丁互联科技有限公司 offline firmware upgrade system and method
US20200151335A1 (en) * 2018-11-12 2020-05-14 Thirdwayv, Inc Secure over-the-air firmware upgrade
CN112104477A (en) * 2020-07-28 2020-12-18 四川虹美智能科技有限公司 Online updating method and system for firmware of electric control end and WiFi module

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200151335A1 (en) * 2018-11-12 2020-05-14 Thirdwayv, Inc Secure over-the-air firmware upgrade
CN109189460A (en) * 2018-11-20 2019-01-11 北京千丁互联科技有限公司 offline firmware upgrade system and method
CN112104477A (en) * 2020-07-28 2020-12-18 四川虹美智能科技有限公司 Online updating method and system for firmware of electric control end and WiFi module

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114867041A (en) * 2022-04-29 2022-08-05 宁波奥克斯电气股份有限公司 OTA (over the air) upgrading method based on Wi-Fi Portal, storage medium and air conditioner
CN114745740A (en) * 2022-05-16 2022-07-12 四川虹美智能科技有限公司 Intelligent household appliance upgrading system and method
CN114745740B (en) * 2022-05-16 2023-08-29 四川虹美智能科技有限公司 Intelligent household appliance upgrading system and method

Similar Documents

Publication Publication Date Title
US10791193B2 (en) Remote access gateway configurable control system
CN114172756A (en) Version upgrading method and system for intelligent equipment electronic control firmware
RU2549126C2 (en) Method and system for installing and updating software of application terminal in home network
US9198039B2 (en) Method and device for updating firmware based on device management command
US20050102040A1 (en) Radio frequency lighting control system programming device and method
US20050080879A1 (en) Home network system and method for operating the same
CN104503796B (en) A kind of configurable whole network remote node firmware upgrade method based on IAP
US20070121527A1 (en) System and method for remote dynamic network configuration
KR20080085934A (en) Remote management system having automatic update function
KR20120085115A (en) Air conditioner, method for controlling outdoor units of the air conditioner, and central control system having the same
US20160300483A1 (en) Device Control Method, Server, System and Computer Storage Medium
CN104714817A (en) Method, system and control terminal for upgrading household appliance software through infrared signal
WO2022194301A1 (en) System program upgrade method and system for electric bed having communication unit, and storage medium
WO2023045611A1 (en) Device control method, apparatus and system, storage medium, and electronic apparatus
US20030226139A1 (en) System update protocol
CN107656751A (en) User program upgrade method and device
CN112104477A (en) Online updating method and system for firmware of electric control end and WiFi module
CN102970359A (en) Remote upgrade method and device based on main and auxiliary equipment
RU2463636C2 (en) Apparatus and method for controlling and monitoring household appliances
CN115514667A (en) Access service processing method, system, device, electronic equipment and storage medium
CN106648721A (en) Method and device for upgrading software
CN113757950B (en) Program upgrading method and device for air conditioner, air conditioner and storage medium
US10489055B2 (en) Z-wave controller shift in thermostats
CN114915671A (en) NB-IoT-based remote upgrading method for street lamp controller
CN107968725B (en) Method and device for returning and configuring configuration information of home gateway unit type terminal device

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