CN112328276A - OTA-based intelligent water softener upgrading method and system - Google Patents

OTA-based intelligent water softener upgrading method and system Download PDF

Info

Publication number
CN112328276A
CN112328276A CN202011096707.9A CN202011096707A CN112328276A CN 112328276 A CN112328276 A CN 112328276A CN 202011096707 A CN202011096707 A CN 202011096707A CN 112328276 A CN112328276 A CN 112328276A
Authority
CN
China
Prior art keywords
firmware
water softener
upgrading
mcu
upgraded
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
CN202011096707.9A
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.)
Zhejiang Dafeng Technology Co ltd
Original Assignee
Zhejiang Dafeng 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 Zhejiang Dafeng Technology Co ltd filed Critical Zhejiang Dafeng Technology Co ltd
Priority to CN202011096707.9A priority Critical patent/CN112328276A/en
Publication of CN112328276A publication Critical patent/CN112328276A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version 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 discloses an OTA-based intelligent water softener upgrading method and system, wherein the method comprises the following steps: powering on the equipment end, and judging whether the equipment end meets the upgrading condition; if the upgrading condition is met, running the current firmware, configuring a WiFi module and connecting the WiFi module to a cloud server; upgrading the firmware and judging whether the firmware is completely upgraded; performing MCU programming; and updating the firmware to be upgraded to the corresponding firmware address of the MCU, and finishing the upgrading process after the verification is correct. The system comprises a water softener connected with a cloud server through a router, the water softener is connected with a mobile phone APP, the mobile phone APP is connected with the cloud server through a base station, and the cloud server is connected with a cloud platform. The firmware file to be updated is uploaded to the cloud server through the IoT server workbench, the WiFi module performs sub-packet transmission according to a protocol, the serial storage chip receives the upgrade packet, the target MCU is reset through programming of the WiFi module to finish upgrading of the firmware of the new version, a remote upgrade system is achieved, a program does not need to be written in locally, and the memory is saved.

Description

OTA-based intelligent water softener upgrading method and system
Technical Field
The invention relates to the technical field of water purification equipment, in particular to an OTA-based intelligent water softener upgrading method and system.
Background
Higher tap water hardness can cause scaling in water containers such as electric kettles, dishwashers, water heaters, heating pipes, and the like. In addition, since the content of calcium and magnesium ions in water is high, the decontamination effect of detergents (such as liquid detergent, shampoo, bath lotion, laundry detergent and the like) is reduced, so that the consumption of the detergents is increased, and in order to solve the problem caused by high hardness of water, many families install a water softener to soften tap water.
The existing on-line detection equipment, such as hardness detection, has large volume, high price and inconvenient installation and maintenance, so that the application of the existing on-line detection equipment to a household or commercial water softener is limited. The system is mainly set according to initial water quality, so that the water softener system is the key point for carrying out adaptive optimization on different water qualities, and the existing water softener lacks of instant response to water quality change, so that the timely updating and upgrading of the water softener system is an important mode for optimizing the water softener.
Data show that the prior water softener does not support OTA, firmware can only be upgraded locally by offline of a burner, and the mode is time-consuming and inconvenient for subsequent maintenance and upgrade of product software. OTA (Over-the-Air Technology), i.e., Over-the-Air Technology, may update and upgrade software programs remotely to a device Over a network. A developer can upload firmware files to be updated to a server through an IoT server workbench, a Wi-Fi module performs packet transmission according to a protocol, and an MCU receives an upgrade packet and writes the upgrade packet into local Flash, so that the upgrade of the firmware is realized.
Chinese patent document CN206188511U discloses an "intelligent water softener with wireless mobile communication function". Adopts the following steps: the main control device is used for controlling the intelligent water softener to work and has a wireless communication function; a head formed below the main control device; the water inlet pipe is used for connecting a tap water pipe, penetrates through the machine head and extends into the resin tank; a resin tank located below the machine head for containing the sodium cation exchange resin; a central tube with one end extending into the resin tank and the other end extending out of the machine head; a salt tub for containing salt and brine, disposed at one side of the resin tank; one end of the water pipe extends into the salt barrel, the other end of the water pipe is communicated with the central pipe, and the electromagnetic valve is arranged at the central pipe extending out of the machine head and controlled by the main control device to act. According to the technical scheme, the working state data of the water softener is only acquired through wireless communication, and the water softener cannot be directly upgraded and optimized according to the data.
Disclosure of Invention
The invention mainly solves the technical problem that the original water softener can only be upgraded locally through offline of a burner, and provides an OTA-based intelligent water softener upgrading method and system.
The technical problem of the invention is mainly solved by the following technical scheme:
an OTA-based intelligent water softener upgrading method comprises the following steps:
(1) powering on the equipment end, operating a Bootloader program, and judging whether the upgrading condition is met;
(2) if the upgrading condition is met, running the current firmware, configuring a WiFi module, connecting to a cloud server, and completing equipment registration and online;
(3) upgrading the firmware and judging whether the firmware is completely upgraded;
(4) performing MCU programming; program writing is realized through the WiFi module, local programs are not needed, and chip memory is saved.
(5) And updating the firmware to be upgraded to the corresponding firmware address of the MCU, and finishing the upgrading process after the verification is correct.
Preferably, the step 1 judging condition includes: and judging whether the firmware to be upgraded exists completely or not, and judging whether the current running version is the same as the version to be upgraded or not. If the firmware is the same, the current firmware is operated, and if not, the firmware upgrading process is started.
Preferably, after the device registration and online completion in step 2, the cloud of the server initiates query of current version information and queries whether the version of the mobile phone APP is upgraded.
Preferably, the firmware to be upgraded is downloaded to the serial memory chip by the cloud server in the step 3.
Preferably, the step 3 judges whether the firmware to be upgraded is completely downloaded, and restarts the device end MCU after the complete firmware to be upgraded is stored, and the MCU enters the Bootloader program and starts to perform MCU programming.
Preferably, in step 4, the cloud server initiates a programming instruction, detects the validity of the firmware and the parameters, loads the MCU algorithm into the target MCU, and then the SWD interface enters the debug state.
Preferably, the step 4 loads the FLM algorithm of the chip to the memory of the target MCU, erases the chip and programs the tape upgrading firmware, verifies the FLM algorithm after the programming is completed, and resets the target MCU after the flash memory programming.
The utility model provides an intelligence water softener upgrading system based on OTA, includes the water softener, the water softener includes wiFi module and MCU, and the water softener is through router and high in the clouds server wireless connection, and water softener and cell-phone APP wireless connection simultaneously, cell-phone APP are through basic station and high in the clouds server wireless connection, the high in the clouds server links to each other with the cloud platform. The invention has the beneficial effects that:
1. and updating and upgrading the software program for the equipment remotely through a network, thereby realizing the iterative optimization of the product function.
2. And updating and upgrading the software program for the equipment remotely through the network, and repairing the software bug of the product.
3. The firmware transmission is carried out in the normal operation state of the water softener, and the water softener is not required to be influenced for the firmware transmission.
4. The method can upgrade not only the firmware, but also the corresponding word stock and pictures, set parameters and realize remote information broadcasting.
Drawings
Fig. 1 is a schematic connection structure of the present invention.
Fig. 2 is a flowchart illustrating a WiFi module at a device end according to the present invention.
Fig. 3 is a flowchart illustrating a work flow of a cloud server according to the present invention.
Detailed Description
The technical scheme of the invention is further specifically described by the following embodiments and the accompanying drawings.
Example (b): an intelligence water softener upgrading system based on OTA of this embodiment, as shown in fig. 1, including wiFi module and MCU, the water softener passes through router and high in the clouds server wireless connection, and water softener and cell-phone APP wireless connection simultaneously, cell-phone APP pass through basic station and high in the clouds server wireless connection, and the high in the clouds server links to each other with the cloud platform.
An OTA-based intelligent water softener upgrading method, as shown in fig. 2 and 3, comprises the following steps:
(1) and powering on the equipment terminal, operating a Bootloader program, and judging whether the upgrading condition is met. The judgment conditions include: and judging whether the firmware to be upgraded exists completely or not, and judging whether the current running version is the same as the version to be upgraded or not. If the firmware is the same, the current firmware is operated, and if the firmware is the same, the firmware upgrading process is not entered
(2) And if the upgrading conditions are met, running the current firmware, configuring a WiFi module, connecting to a cloud server, and completing equipment registration and online. After the device registration and the online are completed, the server cloud initiates the query of the current version information and queries whether the version of the mobile phone APP is upgraded.
(3) And upgrading the firmware and judging whether the firmware upgrading is complete.
And (3.1) downloading the version information of the firmware to be upgraded to the serial storage chip through the cloud server.
And (3.2) judging whether the firmware to be upgraded is completely downloaded.
And (3.3) after the complete firmware to be upgraded is stored, restarting the MCU at the equipment end, and enabling the MCU to enter a Bootloader program and start MCU programming.
(4) And programming the MCU.
And (4.1) initiating a programming instruction by the cloud server.
And (4.2) detecting the legality of the firmware and the parameters.
And (4.3) loading the MCU algorithm into the target MCU.
(4.4) at this point the SWD interface enters debug mode.
And (4.5) loading the FLM algorithm of the chip to the memory of the target MCU.
And (4.6) erasing the chip.
And (4.7) programming the firmware with the upgrade.
And (4.8) performing FLM algorithm verification after programming is finished.
(4.9) resetting the target MCU after the flash programming.
(5) And updating the firmware to be upgraded to the corresponding firmware address of the MCU, and finishing the upgrading process after the verification is correct.
The specific embodiments described herein are merely illustrative of the spirit of the invention. Various modifications or additions may be made to the described embodiments or alternatives may be employed by those skilled in the art without departing from the spirit or ambit of the invention as defined in the appended claims.
Although terms like firmware, MCU, WiFi module, etc. are used more here, the possibility of using other terms is not excluded. These terms are used merely to more conveniently describe and explain the nature of the present invention; they are to be construed as being without limitation to any additional limitations that may be imposed by the spirit of the present invention.

Claims (8)

1. An OTA-based intelligent water softener upgrading method is characterized by comprising the following steps:
(1) powering on the equipment end, operating a Bootloader program, and judging whether the upgrading condition is met;
(2) if the upgrading condition is met, running the current firmware, configuring a WiFi module, connecting to a cloud server, and completing equipment registration and online;
(3) upgrading the firmware and judging whether the firmware is completely upgraded;
(4) performing MCU programming;
(5) and updating the firmware to be upgraded to the corresponding firmware address of the MCU, and finishing the upgrading process after the verification is correct.
2. The OTA-based intelligent water softener upgrading method and system according to claim 1, wherein the step 1 judging conditions include: and judging whether the firmware to be upgraded exists completely or not, and judging whether the current running version is the same as the version to be upgraded or not.
3. The OTA-based intelligent water softener upgrading method and system according to claim 1, wherein after the device registration and online completion of step 2, the server cloud initiates query of current version information and queries whether the mobile phone APP is upgraded.
4. The OTA-based intelligent water softener upgrading method and system according to claim 1, wherein the firmware upgrade in step 3 downloads firmware version information to be upgraded to the serial memory chip through the cloud server.
5. The OTA-based intelligent water softener upgrading method and system according to claim 4, wherein the step 3 is to judge whether the firmware to be upgraded is completely downloaded, and after the complete firmware to be upgraded is stored, the MCU at the device end is restarted, and the MCU enters a Bootloader program and starts to program the MCU.
6. The OTA-based intelligent water softener upgrading method and system according to claim 1, wherein in step 4, the cloud server initiates a programming command, detects the validity of firmware and parameters, loads the MCU algorithm into the target MCU, and then the SWD interface enters a debug state.
7. The OTA-based intelligent water softener upgrading method and system according to claim 6, wherein the step 4 loads the FLM algorithm of the chip into the memory of the target MCU, erases the chip and programs the firmware with upgrade, verifies the FLM algorithm after programming, and resets the target MCU after flash programming.
8. The utility model provides an intelligence water softener upgrading system based on OTA, a serial communication port, including the water softener, the water softener includes wiFi module and MCU, and the water softener passes through router and high in the clouds server wireless connection, and water softener and cell-phone APP wireless connection simultaneously, cell-phone APP pass through basic station and high in the clouds server wireless connection, the high in the clouds server links to each other with the cloud platform.
CN202011096707.9A 2020-10-14 2020-10-14 OTA-based intelligent water softener upgrading method and system Pending CN112328276A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011096707.9A CN112328276A (en) 2020-10-14 2020-10-14 OTA-based intelligent water softener upgrading method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011096707.9A CN112328276A (en) 2020-10-14 2020-10-14 OTA-based intelligent water softener upgrading method and system

Publications (1)

Publication Number Publication Date
CN112328276A true CN112328276A (en) 2021-02-05

Family

ID=74314213

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011096707.9A Pending CN112328276A (en) 2020-10-14 2020-10-14 OTA-based intelligent water softener upgrading method and system

Country Status (1)

Country Link
CN (1) CN112328276A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113342383A (en) * 2021-06-30 2021-09-03 广州市保伦电子有限公司 Remote online burning upgrading method for single chip microcomputer
CN113656060A (en) * 2021-08-25 2021-11-16 炬星科技(深圳)有限公司 Software upgrading system and method based on charging cabinet and computer readable storage medium
CN114513438A (en) * 2022-02-08 2022-05-17 苏州挚途科技有限公司 Over-the-air test system and method
CN114661365A (en) * 2022-02-14 2022-06-24 阿里巴巴(中国)有限公司 Device running method, firmware management method and firmware management system
CN115658120A (en) * 2022-12-27 2023-01-31 成都万创科技股份有限公司 General OTA (over the air) upgrading method for microcomputer

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105573810A (en) * 2016-03-23 2016-05-11 重庆邮电大学 Remote upgrade method and remote upgrade device for wireless sensor network node
CN108415717A (en) * 2018-03-22 2018-08-17 南京尤尼泰信息科技有限公司 A kind of ZYNQSOC firmware upgrade methods and update device
CN110134418A (en) * 2019-05-10 2019-08-16 上海擎感智能科技有限公司 Vehicle upgrade method and device, storage medium and terminal based on space download technology
CN110262820A (en) * 2019-06-13 2019-09-20 陕西瑞迅电子信息技术有限公司 Method, apparatus, system and storage medium based on MQTT protocol realization OTA upgrading
CN111225056A (en) * 2020-01-07 2020-06-02 杭州涂鸦信息技术有限公司 OTA-based intelligent door lock upgrading method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105573810A (en) * 2016-03-23 2016-05-11 重庆邮电大学 Remote upgrade method and remote upgrade device for wireless sensor network node
CN108415717A (en) * 2018-03-22 2018-08-17 南京尤尼泰信息科技有限公司 A kind of ZYNQSOC firmware upgrade methods and update device
CN110134418A (en) * 2019-05-10 2019-08-16 上海擎感智能科技有限公司 Vehicle upgrade method and device, storage medium and terminal based on space download technology
CN110262820A (en) * 2019-06-13 2019-09-20 陕西瑞迅电子信息技术有限公司 Method, apparatus, system and storage medium based on MQTT protocol realization OTA upgrading
CN111225056A (en) * 2020-01-07 2020-06-02 杭州涂鸦信息技术有限公司 OTA-based intelligent door lock upgrading method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ARMFLY: ""[脱机烧录] 国产芯片脱机烧录问题记录"", 《HTTPS://WWW.ARMBBS.CN/FORUM.PHP?MOD=VIEWTHREAD&TID=97535&EXTRA=》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113342383A (en) * 2021-06-30 2021-09-03 广州市保伦电子有限公司 Remote online burning upgrading method for single chip microcomputer
CN113656060A (en) * 2021-08-25 2021-11-16 炬星科技(深圳)有限公司 Software upgrading system and method based on charging cabinet and computer readable storage medium
CN114513438A (en) * 2022-02-08 2022-05-17 苏州挚途科技有限公司 Over-the-air test system and method
CN114513438B (en) * 2022-02-08 2024-04-26 苏州挚途科技有限公司 Air download test system and method
CN114661365A (en) * 2022-02-14 2022-06-24 阿里巴巴(中国)有限公司 Device running method, firmware management method and firmware management system
WO2023151502A1 (en) * 2022-02-14 2023-08-17 阿里巴巴(中国)有限公司 Device operation method, firmware management method and firmware management system
CN115658120A (en) * 2022-12-27 2023-01-31 成都万创科技股份有限公司 General OTA (over the air) upgrading method for microcomputer
CN115658120B (en) * 2022-12-27 2023-05-09 成都万创科技股份有限公司 Universal OTA upgrading method for microcomputer

Similar Documents

Publication Publication Date Title
CN112328276A (en) OTA-based intelligent water softener upgrading method and system
CN106637805B (en) Internet of things washing machine control method and system and washing machine
CN106319833B (en) Washing machine remote control method and washing machine
CN104102518B (en) double-CPU system and program upgrading method thereof
CN102098182B (en) Method for restoring allocation of distributed equipment and distributed equipment
CN102495744A (en) Control software upgrading method of electronic control devices of electric automobile based on controller area network (CAN) bus
CN102609274B (en) A kind of quick startup optimization method of system and television set
CN201146523Y (en) ARM built-in terminal remote upgrade apparatus based on GPRS network
CN105955764A (en) Improvement method for STM32 single-chip microcomputer IAP serial program burning
CN106502741A (en) A kind of realization method and system of USB upgradings
CN104391714A (en) Software update method and software update device for vehicle
CN207067971U (en) A kind of vehicle electrically controlling unit software upgrade equipment and vehicle
WO2016033941A1 (en) Boot on-line upgrading apparatus and method
CN108758993B (en) Configuration information input method and system and air conditioner
CN108319257A (en) Robot control system upgrade method and device
CN105516745A (en) Terminal upgrading method and device
CN109471651B (en) Firmware upgrading method, gateway equipment and firmware upgrading system
CN104423997A (en) Remote base station version installing method and remote base station version installing device
CN104503905A (en) Debugging method and debugging system for embedded system
CN105704707A (en) Slave equipment and air upgrading method thereof
CN204423360U (en) A kind of debug system of embedded system
CN113741940A (en) Method for upgrading whole electric vehicle controller bootloader on line
CN101452263A (en) Automobile electronic controller and start-up control method thereof
CN106445574A (en) Method for realizing on-line programming of DSP (Digital Signal Processor) system
CN207780761U (en) Photovoltaic apparatus upgrade-system

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210205

RJ01 Rejection of invention patent application after publication