Software upgrading system and method of intelligent household electrical appliance

Through the software upgrade system of smart home appliances, use the mobile phone mini program or PC to obtain preset upgrade firmware packages, and realize the upgrade of smart home appliance software without removing the equipment. This solves the problem that the WiFi module does not have to be equipped with a network and affects the upgrade efficiency and improves the upgrade Efficiency and convenience.

CN119450445APending Publication Date: 2025-02-14SICHUAN HONGMEI INTELLIGENT TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411431298.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-14
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

The failure of WiFi modules to be distributed in the network results in low efficiency in upgrading smart home appliance software. The existing technology requires dismantling the equipment and manually flashing the firmware, which affects efficiency.

Method used

Provides a software upgrade system for smart home appliances, including smart device, PC, mobile mini-program, router and cloud management platform, supports online and offline upgrades, and obtains preset upgrade firmware packages through mobile mini-programs or PC. Achieve upgrades without dismantling equipment.

Benefits of technology

It improves the efficiency and convenience of smart home appliance software upgrades, saves labor costs, and solves the problem that the WiFi module does not have a network to affect the upgrade efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119450445A_ABST
    Figure CN119450445A_ABST
Patent Text Reader

Abstract

The invention provides a software upgrading system and method for an intelligent household electrical appliance. The system comprises an intelligent device end, a PC end, a mobile phone end applet, a router and a cloud management platform. The intelligent equipment end comprises a WiFi module and an electric control end, and the WiFi module is in communication connection with the electric control end; the mobile phone terminal applet and the PC terminal are both in communication connection with the WiFi module; a local server is arranged in the PC end, and a preset upgrade firmware package is configured in the local server; when the intelligent device end is connected with the router to be in an online state, the intelligent device end obtains an upgrade firmware package through the cloud management platform; when the intelligent device end is not connected with the router and is in an offline state, the intelligent device end obtains an upgrade firmware package on the cloud management platform through a mobile phone end applet; or the intelligent device side obtains the preset upgrading firmware package through the PC side, and the problem that the software upgrading efficiency is affected due to the fact that the WiFi module is not subjected to network distribution is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of smart home appliances, and in particular to a software upgrade system and method for smart home appliances. Background Art

[0002] The components of smart home appliances include: routers, WiFi modules, mobile phone apps, device electronic controls, cloud servers, etc.

[0003] Among them, the WiFi module is the core, which can connect to the router to access the cloud server. When the WiFi module completes the network configuration, its own software version upgrade is relatively easy. By querying the cloud interface, the new version of the WiFi firmware can be obtained, and then the software can be downloaded and automatically updated. The software of the electric control end can also be downloaded from the cloud platform through the WiFi module and then sent to the electric control end for firmware update. However, if the WiFi module is not configured with the network, the method of deploying the upgrade package by the cloud platform will not work. The WiFi module or the electric control end device needs to be removed from the whole device and the firmware needs to be manually rewritten, which makes it difficult to upgrade the software of smart home appliances, thereby affecting the efficiency of software upgrades. Summary of the invention

[0004] The present application provides a software upgrade system and method for smart home appliances to solve the problem that the efficiency of software upgrade is affected by the failure of WiFi module to perform network configuration.

[0005] The first aspect of the present application provides a software upgrade system for smart home appliances, comprising: a smart device end, a PC end, a mobile phone end applet, a router and a cloud management platform; the smart device end comprises a WiFi module and an electronic control end, and the WiFi module and the electronic control end are communicatively connected; the mobile phone end applet and the PC end are both communicatively connected to the WiFi module; a local server is provided in the PC end, and a preset upgrade firmware package is configured in the local server for upgrading the smart device end.

[0006] The smart device is configured to: when the smart device is connected to the router to be in an online state, the smart device obtains an upgrade firmware package through the cloud management platform to upgrade the smart device;

[0007] When the smart device is not connected to the router and is in an offline state, the smart device obtains an upgrade firmware package on the cloud management platform through the mobile phone applet to upgrade the smart device; or the smart device obtains a preset upgrade firmware package through the PC to upgrade the smart device.

[0008] The software upgrade system of the smart home appliance includes two modes: online upgrade and offline upgrade. The offline upgrade mode includes PC-side upgrade in the factory environment and mobile phone-side applet upgrade in the after-sales environment. It can meet the software upgrade requirements of smart home appliances in different states. It not only does not need to dismantle the equipment and save labor costs, but also improves the upgrade efficiency and solves the problem that the WiFi module is not networked and affects the software upgrade efficiency.

[0009] Optionally, the mobile terminal applet is configured to: establish a connection with the WiFi module according to the WiFi and Bluetooth hotspots identified by the SN;

[0010] Acquire current software information from the WiFi module; wherein the software information includes: software version information of the WiFi module, model information of the electronic control terminal, and software version information of the electronic control terminal;

[0011] Access the cloud management platform according to the current software information to query the update of the WiFi module and the electronic control terminal software;

[0012] If a software upgrade firmware package that needs to be updated is found, the upgrade firmware package is downloaded from the cloud management platform to the mobile phone; the upgrade firmware package includes the WiFi module upgrade firmware and the electronic control terminal upgrade firmware;

[0013] The WiFi module is configured to: obtain the upgrade firmware package through Bluetooth or WiFi channel;

[0014] Restarting automatically according to the firmware content of the WiFi module upgrade firmware to update the WiFi module;

[0015] The electronic control terminal upgrade firmware is transmitted to the electronic control terminal through the Xmodem protocol to update the electronic control terminal.

[0016] The device is connected by scanning the QR code through the mobile app, and then the new version of the upgrade firmware package is obtained from the cloud management platform through the mobile app. This method is suitable for after-sales processing of products that are not equipped with a network, which saves labor costs and improves production efficiency.

[0017] Optionally, the WiFi module is further configured to: query the latest firmware information on the cloud management platform according to the current software information to obtain an upgrade configuration file;

[0018] Downloading the upgrade firmware package and verification code from the cloud management platform according to the upgrade configuration file;

[0019] The upgrade firmware package is parsed according to the verification code to verify the integrity and correctness of the firmware data in the upgrade firmware package.

[0020] The WiFi module parses and verifies the upgrade firmware package through the verification code, which can ensure the integrity and correctness of the firmware data, help prevent data from being tampered with or damaged during transmission, thereby ensuring the normal operation of the device and the security of user data. The above-mentioned automated upgrade process and real-time update mechanism can also reduce the need for manual maintenance and reduce maintenance costs.

[0021] Optionally, the WiFi module is further configured to: periodically send a firmware update query request to the cloud management platform;

[0022] The cloud management platform is configured to: perform update query according to the firmware update query request;

[0023] If a software upgrade firmware package that needs to be updated is found, the upgrade firmware package is sent to the WiFi module;

[0024] If no software upgrade firmware package that needs to be updated is found, information indicating that the current smart device has a higher version is sent to the WiFi module.

[0025] The WiFi module can obtain the latest firmware version released by the manufacturer in a timely manner by sending a firmware update query request to the cloud management platform at regular intervals. This real-time update mechanism ensures that the system always runs in the best state, can fix known vulnerabilities and errors, and improve system performance and stability.

[0026] Optionally, the software upgrade firmware package that needs to be updated is an upgrade firmware package whose firmware version is higher than the current firmware version of the smart device.

[0027] Optionally, the PC terminal is further configured to: configure a preset upgrade firmware package of the object to be upgraded on a local server, wherein the preset WiFi module upgrade firmware and the preset electric control terminal upgrade firmware in the preset upgrade firmware package are distinguished by different naming conventions; establish a UDP communication connection with the WiFi module; obtain a download address of the preset upgrade firmware package through the local server and transmit it to the WiFi module;

[0028] The WiFi module is also configured to: download a preset upgrade firmware package of the object to be upgraded according to the download address; restart itself according to the firmware content of the preset WiFi module upgrade firmware to update the WiFi module; and transmit the preset electric control terminal upgrade firmware to the electric control terminal via the Xmodem protocol to update the electric control terminal.

[0029] The local server on the PC side is used to pre-configure the preset upgrade firmware package, and then the WiFi module is connected by scanning the code to establish UDP communication with the WiFi module and send the download address. The WiFi module actively downloads the preset upgrade firmware package. This method is suitable for batch accident handling of products before leaving the factory, and after the WiFi module obtains the preset upgrade firmware package configured locally, it does not need to compare the versions, and can directly force the update, which saves labor costs and improves production efficiency.

[0030] Optionally, the PC is further configured to: detect a mode of the smart device;

[0031] When the smart device is in user mode, a UDP communication connection is established with the WiFi module through the WiFi hotspot identified by the SN;

[0032] When the smart device is in factory mode, a UDP communication connection is established with the WiFi module through the WiFi hotspot identified by the MAC.

[0033] By detecting the mode of the smart device, the PC can flexibly select different communication methods to adapt to different usage scenarios and needs, improving overall adaptability. Using the WiFi hotspot identified by the SN or the WiFi hotspot identified by the MAC to establish a UDP communication connection can achieve efficient data transmission. In addition, the UDP protocol has the characteristics of low latency and no connection, which is suitable for fast transmission of small amounts of data, thereby improving communication efficiency. When establishing a UDP communication connection, by using a specific identifier for identity authentication, it can be ensured that only authorized devices can establish a connection. This security mechanism enhances the security of the system and prevents unauthorized access and attacks.

[0034] Optionally, the PC is further configured to: detect the network status of the WiFi module;

[0035] When the network of the WiFi module is in AP state, a UDP communication connection is established with the WiFi module through the WiFi hotspot identified by the SN or MAC;

[0036] When the network of the WiFi module is in STA state, it is connected to the router connected to the WiFi module to establish a UDP communication connection in the same local area network.

[0037] By detecting the network status of the WiFi module, the PC can flexibly select different communication methods, allowing the system to adapt to different network environments and requirements, improving overall adaptability.

[0038] Optionally, the WiFi module is further configured to: establish a handshake connection with the electronic control terminal through serial port data communication; transmit the preset electronic control terminal upgrade firmware and upgrade instructions to the electronic control terminal according to the Xmodem protocol;

[0039] The electronic control terminal is further configured to: start the upgrade according to the preset electronic control terminal upgrade firmware and upgrade instructions; after the upgrade is completed, send the upgrade result to the WiFi module;

[0040] The WiFi module is also configured to restart the WiFi terminal program according to the upgrade result to update the electronic control terminal hardware version information and release the preset electronic control terminal upgrade firmware.

[0041] By establishing a handshake connection between the WiFi module and the electronic control end, and using the Xmodem protocol to transmit the upgrade firmware and instructions, an efficient upgrade process can be achieved. During the upgrade process, the handshake connection and the use of the Xmodem protocol can ensure the security of data transmission and prevent unauthorized access and attacks. Due to the use of serial data communication and the Xmodem protocol, the upgrade process has high real-time and reliability. The upgrade status of the electronic control end can be monitored in real time, and the WiFi end program can be restarted immediately after the upgrade is completed to ensure the stability of the system. In addition, the WiFi module can release the preset upgrade firmware as needed to avoid taking up too much storage space.

[0042] A second aspect of the present application provides a software upgrade method for a smart home appliance, which is applied to the software upgrade system for the smart home appliance described in the first aspect, and the method includes:

[0043] When the smart device is connected to the router to be in an online state, the smart device obtains an upgrade firmware package through the cloud management platform to upgrade the smart device;

[0044] When the smart device is not connected to the router and is in an offline state, the smart device obtains an upgrade firmware package on the cloud management platform through a mobile phone applet to upgrade the smart device; or the smart device obtains a preset upgrade firmware package through a PC to upgrade the smart device.

[0045] The above method includes two methods: online upgrade and offline upgrade. The offline upgrade method includes PC upgrade in factory environment and mobile app upgrade in after-sales environment. It can meet the software upgrade requirements of smart home appliances in different states. It not only does not need to dismantle the equipment and save labor costs, but also improves the upgrade efficiency and solves the problem that the WiFi module is not equipped with a network and affects the software upgrade efficiency.

[0046] It can be seen from the above technical solutions that the present application provides a software upgrade system and method for smart home appliances, the system comprising: a smart device end, a PC end, a mobile phone end applet, a router and a cloud management platform; the smart device end comprises a WiFi module and an electric control end, the WiFi module and the electric control end are communicatively connected; the mobile phone end applet and the PC end are both communicatively connected to the WiFi module; a local server is provided in the PC end, and a preset upgrade firmware package is configured in the local server for upgrading the smart device end; when the smart device end is connected to the router to be in an online state, the smart device end obtains the upgrade firmware package through the cloud management platform to upgrade the smart device; when the smart device end is not connected to the router to be in an offline state, the smart device end obtains the upgrade firmware package on the cloud management platform through the mobile phone end applet to upgrade the smart device; or the smart device end obtains the preset upgrade firmware package through the PC end to upgrade the smart device, so as to solve the problem that the WiFi module has not been networked and affects the software upgrade efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the technical solution of the present application, the drawings required for use in the embodiments are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0048] Figure 1 A schematic diagram of the structure of the software upgrade system of the smart home appliance described in the embodiment of the present application;

[0049] Figure 2 This is a schematic diagram of data interaction between a WiFi module and a cloud management service platform in a software upgrade system for smart home appliances according to an embodiment of the present application;

[0050] Figure 3 This is a schematic diagram of firmware upgrade data interaction between a WiFi module and an electronic control terminal in a software upgrade system for smart home appliances described in an embodiment of the present application. DETAILED DESCRIPTION

[0051] The embodiments will be described in detail below, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation methods described in the following embodiments do not represent all implementation methods consistent with the present application. They are only examples of systems and methods consistent with some aspects of the present application.

[0052] To solve the problem that the WiFi module is not configured to a network and affects the software upgrade efficiency, refer to Figure 1Some embodiments of the present application provide a software upgrade system for smart home appliances, including: a smart device end, a PC end, a mobile phone end applet, a router and a cloud management platform; the smart device end includes a WiFi module and an electronic control end, and the WiFi module and the electronic control end are communicatively connected; the mobile phone end applet and the PC end are both communicatively connected to the WiFi module; a local server is provided in the PC end, and a preset upgrade firmware package is configured in the local server for upgrading the smart device end.

[0053] It should be understood that the electronic control end includes software units and hardware units. Take the display panel as an example: the indicator light and fault display screen of the display panel are hardware units and there is no upgrade phenomenon. However, the control indicator light status and specific fault display are controlled through software units. The electronic control end upgrade refers to the upgrade of the electronic control end software unit.

[0054] The smart device is configured as follows:

[0055] When the smart device is connected to the router to be in an online state, the smart device obtains an upgrade firmware package through the cloud management platform to upgrade the smart device;

[0056] When the smart device is not connected to the router and is in an offline state, the smart device obtains an upgrade firmware package on the cloud management platform through the mobile phone applet to upgrade the smart device; or the smart device obtains a preset upgrade firmware package through the PC to upgrade the smart device.

[0057] It should be understood that the upgrade firmware package updated online on the smart device and updated through the mobile phone applet is deployed on the cloud management platform. The upgrade firmware package version must be greater than the current version of the device before it can be upgraded. The preset upgrade firmware package updated by the smart device through the PC is deployed in the local server. This method of firmware upgrade has nothing to do with the version number size of the preset upgrade firmware package.

[0058] The software upgrade system of the smart home appliance includes two modes: online upgrade and offline upgrade. The offline upgrade mode includes PC-side upgrade in the factory environment and mobile phone-side applet upgrade in the after-sales environment. It can meet the software upgrade requirements of smart home appliances in different states. It not only does not need to dismantle the equipment and save labor costs, but also improves the upgrade efficiency and solves the problem that the WiFi module is not networked and affects the software upgrade efficiency.

[0059] In some embodiments, the mobile app is configured to: establish a connection with the WiFi module according to the WiFi and Bluetooth hotspots identified by the SN;

[0060] Acquire current software information from the WiFi module; wherein the software information includes: software version information of the WiFi module, model information of the electronic control terminal, and software version information of the electronic control terminal;

[0061] Access the cloud management platform according to the current software information to query the update of the WiFi module and the electronic control terminal software;

[0062] If a software upgrade firmware package that needs to be updated is found, the upgrade firmware package is downloaded from the cloud management platform to the mobile phone; the upgrade firmware package includes the WiFi module upgrade firmware and the electronic control terminal upgrade firmware;

[0063] The WiFi module is configured to: obtain the upgrade firmware package through Bluetooth or WiFi channel;

[0064] Restarting automatically according to the firmware content of the WiFi module upgrade firmware to update the WiFi module;

[0065] The electronic control terminal upgrade firmware is transmitted to the electronic control terminal through the Xmodem protocol to update the electronic control terminal.

[0066] It should be understood that the SN identifier is the unique identification code of the product, and the mobile app distinguishes and identifies the WiFi module based on the SN identifier. The Xmodem protocol is an asynchronous file transfer protocol widely used in serial communication. It uses 128-byte data blocks for transmission. Each data block contains a checksum for error detection, and can still operate effectively under limited resources. The Xmodem protocol also has a retransmission and verification mechanism, which ensures data integrity through the checksum mechanism and improves the reliability of data transmission.

[0067] The device is connected by scanning the QR code through the mobile app, and then the new version of the upgrade firmware package is obtained from the cloud management platform through the mobile app. This method is suitable for after-sales processing of products that are not equipped with a network, which saves labor costs and improves production efficiency.

[0068] In some embodiments, the WiFi module is further configured to: query the latest firmware information on the cloud management platform according to the current software information to obtain an upgrade configuration file;

[0069] Downloading the upgrade firmware package and verification code from the cloud management platform according to the upgrade configuration file;

[0070] The upgrade firmware package is parsed according to the verification code to verify the integrity and correctness of the firmware data in the upgrade firmware package.

[0071] The WiFi module parses and verifies the upgrade firmware package through the verification code, which can ensure the integrity and correctness of the firmware data, help prevent data from being tampered with or damaged during transmission, thereby ensuring the normal operation of the device and the security of user data. The above-mentioned automated upgrade process and real-time update mechanism can also reduce the need for manual maintenance and reduce maintenance costs.

[0072] In some embodiments, the WiFi module is further configured to: periodically send a firmware update query request to the cloud management platform;

[0073] The cloud management platform is configured to: perform update query according to the firmware update query request;

[0074] If a software upgrade firmware package that needs to be updated is found, the upgrade firmware package is sent to the WiFi module;

[0075] If no software upgrade firmware package that needs to be updated is found, information indicating that the current smart device has a higher version is sent to the WiFi module.

[0076] See also Figure 2 , specifically describes the data interaction process between the WiFi module and the cloud management platform. During the data interaction process, the WiFi module periodically queries the cloud-level management platform for the latest firmware information, requests firmware download by parsing the upgrade configuration file returned by the cloud management platform, and then verifies the integrity and correctness of its firmware data through the firmware data and verification code returned from the cloud management platform. After the firmware download fails or the network is interrupted, the WiFi module can re-download the firmware data or continue to download the remaining firmware data after connecting to the network.

[0077] The WiFi module can obtain the latest firmware version released by the manufacturer in a timely manner by sending a firmware update query request to the cloud management platform at regular intervals. This real-time update mechanism ensures that the system always runs in the best state, can fix known vulnerabilities and errors, and improve system performance and stability.

[0078] In some embodiments, the software upgrade firmware package that needs to be updated is an upgrade firmware package whose firmware version is higher than the current firmware version of the smart device, thereby reducing the occurrence of repeated upgrades of the smart device.

[0079] In some embodiments, the PC terminal is further configured to: configure a preset upgrade firmware package for the object to be upgraded on a local server, wherein the preset WiFi module upgrade firmware and the preset electronic control terminal upgrade firmware in the preset upgrade firmware package are distinguished by different naming conventions; establish a UDP communication connection with the WiFi module; obtain the download address of the preset upgrade firmware package through the local server and transmit it to the WiFi module.

[0080] It should be understood that the local server can be Lighttpd, which is a lightweight, high-performance open source network server software suitable for environments that require fast response and low resource consumption. In the process of using the PC to upgrade the firmware, it is necessary to deploy the preset upgrade firmware package in advance and start the local server. The PC also runs a set of software for UDP data communication with the WiFi module.

[0081] The WiFi module is also configured to: download a preset upgrade firmware package of the object to be upgraded according to the download address; restart itself according to the firmware content of the preset WiFi module upgrade firmware to update the WiFi module; and transmit the preset electric control terminal upgrade firmware to the electric control terminal via the Xmodem protocol to update the electric control terminal.

[0082] It should be understood that, in the process of downloading the preset upgrade firmware package of the object to be upgraded according to the download address, the preset upgrade firmware package can be stored in the backup area of ​​the WiFi module memory, and the storage starting address and total data length can be remembered for easy search and use.

[0083] The local server on the PC side is used to pre-configure the preset upgrade firmware package, and then the WiFi module is connected by scanning the code to establish UDP communication with the WiFi module and send the download address. The WiFi module actively downloads the preset upgrade firmware package. This method is suitable for batch accident handling of products before leaving the factory, and after the WiFi module obtains the preset upgrade firmware package configured locally, it does not need to compare the versions, and can directly force the update, which saves labor costs and improves production efficiency.

[0084] In some embodiments, the PC terminal is further configured to: detect a mode of the smart device terminal;

[0085] When the smart device is in user mode, a UDP communication connection is established with the WiFi module through the WiFi hotspot identified by the SN;

[0086] When the smart device is in factory mode, a UDP communication connection is established with the WiFi module through the WiFi hotspot identified by the MAC.

[0087] It should be understood that the SN identifier is a unique identification code of the product in user mode; the MAC identifier is a unique identification code of the product in factory mode.

[0088] By detecting the mode of the smart device, the PC can flexibly select different communication methods to adapt to different usage scenarios and needs, improving overall adaptability. Using the WiFi hotspot identified by the SN or the WiFi hotspot identified by the MAC to establish a UDP communication connection can achieve efficient data transmission. In addition, the UDP protocol has the characteristics of low latency and no connection, which is suitable for fast transmission of small amounts of data, thereby improving communication efficiency. When establishing a UDP communication connection, by using a specific identifier for identity authentication, it can be ensured that only authorized devices can establish a connection. This security mechanism enhances the security of the system and prevents unauthorized access and attacks.

[0089] In some embodiments, the PC is further configured to: detect the network status of the WiFi module;

[0090] When the network of the WiFi module is in AP state, a UDP communication connection is established with the WiFi module through the WiFi hotspot identified by the SN or MAC;

[0091] When the network of the WiFi module is in STA state, it is connected to the router connected to the WiFi module to establish a UDP communication connection in the same local area network.

[0092] It should be understood that the AP state refers to the wireless access point mode. In AP mode, the device acts as the core of the wireless network, manages the wireless network and provides wireless access services, allowing other wireless devices to access. The STA state refers to the wireless terminal device mode. In STA mode, the device is connected to an existing wireless network to access network resources or the Internet.

[0093] By detecting the network status of the WiFi module, the PC can flexibly select different communication methods, allowing the system to adapt to different network environments and requirements, improving overall adaptability.

[0094] In some embodiments, the WiFi module is further configured to: establish a handshake connection with the electronic control terminal via serial port data communication; and transmit the preset electronic control terminal upgrade firmware and upgrade instructions to the electronic control terminal according to the Xmodem protocol.

[0095] It should be understood that the electronic control end can be set in three states, namely, not prepared, preparing, and ready. When the electronic control end is in the preparing state, the WiFi module continues to send firmware upgrade requests until the electronic control end replies to the ready state. The handshake between the two parties is successful and the upgrade state can be entered.

[0096] The electronic control terminal is also configured to: start the upgrade according to the preset electronic control terminal upgrade firmware and upgrade instructions; and send the upgrade result to the WiFi module after the upgrade is completed.

[0097] It should be understood that when the electronic control terminal receives the upgrade instruction from the WiFi module, the program restarts and enters the upgrade mode. In the upgrade mode, the electronic control terminal and the WiFi module no longer respond to other commands, and the two parties agree to enter the file transfer protocol.

[0098] The WiFi module is also configured to restart the WiFi terminal program according to the upgrade result to update the electronic control terminal hardware version information and release the preset electronic control terminal upgrade firmware.

[0099] It should be understood that after the upgrade is successful, the WiFi module and the electronic control end return to normal mode, and the electronic control end software version is also updated accordingly. In some embodiments, the WiFi module and the electronic control end also establish a timeout exit mechanism to ensure that the normal mode before the upgrade can still be entered when the upgrade fails.

[0100] See also Figure 3 The handshake interaction process between the WiFi module and the electric control end includes two stages. In the handshake stage, the WiFi module sends serial port data to the electric control end to request the electric control firmware upgrade. After receiving the request command, the electric control end starts to enter the boot program and replies the result of being ready to the WiFi module through the serial port. After the electric control end is ready to upgrade, it is in the Xmodem data receiving state, and it regularly sends Xmodem handshake data to the serial port of the WiFi module. After the WiFi module receives the information that the electric control end is ready to upgrade, it also starts to enter the Xmodem function and receive the handshake information. In the data packet sending and receiving stage, the WiFi module starts to read the electric control firmware data in the buffer area and sends it to the electric control end through Xmodem until the data transmission is completed; after the boot program of the electric control end receives the last packet of Xmodem data, it verifies the overall data information. If the data is correct, it returns the correct data verification mark to the WiFi module through Xmodem, then exits the boot program and starts running the new firmware. Otherwise, it returns the data verification error mark to the WiFi module through Xmodem, and continues to wait for the firmware upgrade request sent by the WiFi module in the boot program.

[0101] By establishing a handshake connection between the WiFi module and the electronic control end, and using the Xmodem protocol to transmit the upgrade firmware and instructions, an efficient upgrade process can be achieved. During the upgrade process, the handshake connection and the use of the Xmodem protocol can ensure the security of data transmission and prevent unauthorized access and attacks. Due to the use of serial data communication and the Xmodem protocol, the upgrade process has high real-time and reliability. The upgrade status of the electronic control end can be monitored in real time, and the WiFi end program can be restarted immediately after the upgrade is completed to ensure the stability of the system. In addition, the WiFi module can release the preset upgrade firmware as needed to avoid taking up too much storage space.

[0102] Some embodiments of the present application also provide a software upgrade method for a smart home appliance, which is applied to the software upgrade system for the smart home appliance described in the above embodiment, and the method includes:

[0103] When the smart device is connected to the router to be in an online state, the smart device obtains an upgrade firmware package through the cloud management platform to upgrade the smart device;

[0104] When the smart device is not connected to the router and is in an offline state, the smart device obtains an upgrade firmware package on the cloud management platform through a mobile phone applet to upgrade the smart device; or the smart device obtains a preset upgrade firmware package through a PC to upgrade the smart device.

[0105] The above method includes two methods: online upgrade and offline upgrade. The offline upgrade method includes PC upgrade in factory environment and mobile app upgrade in after-sales environment. It can meet the software upgrade requirements of smart home appliances in different states. It not only does not need to dismantle the equipment and save labor costs, but also improves the upgrade efficiency and solves the problem that the WiFi module is not equipped with a network and affects the software upgrade efficiency.

[0106] It can be seen from the above technical solutions that the present application provides a software upgrade system and method for smart home appliances, the system comprising: a smart device end, a PC end, a mobile phone end applet, a router and a cloud management platform; the smart device end comprises a WiFi module and an electric control end, the WiFi module and the electric control end are communicatively connected; the mobile phone end applet and the PC end are both communicatively connected to the WiFi module; a local server is provided in the PC end, and a preset upgrade firmware package is configured in the local server for upgrading the smart device end; when the smart device end is connected to the router to be in an online state, the smart device end obtains the upgrade firmware package through the cloud management platform to upgrade the smart device; when the smart device end is not connected to the router to be in an offline state, the smart device end obtains the upgrade firmware package on the cloud management platform through the mobile phone end applet to upgrade the smart device; or the smart device end obtains the preset upgrade firmware package through the PC end to upgrade the smart device, so as to solve the problem that the WiFi module has not been networked and affects the software upgrade efficiency.

[0107] Similar parts between the embodiments provided in this application can be referenced to each other. The specific implementation methods provided above are only a few examples under the general concept of this application and do not constitute a limitation on the protection scope of this application. For those skilled in the art, any other implementation methods expanded based on the scheme of this application without creative work belong to the protection scope of this application.

Claims

1. A software upgrade system for smart home appliances, characterized in that: include: Smart device, PC, mobile applets, routers and cloud management platform; The smart device end includes a WiFi module and an electric control end, and the WiFi module is communicatively connected to the electric control end; the mobile end applet and the PC end are both communicatively connected to the WiFi module; a local server is provided in the PC end, and a preset upgrade firmware package is configured in the local server for upgrading the smart device end; the smart device end is configured as follows: When the smart device is connected to the router to be in an online state, the smart device obtains an upgrade firmware package through the cloud management platform to upgrade the smart device; When the smart device is not connected to the router and is in an offline state, the smart device obtains an upgrade firmware package on the cloud management platform through the mobile app to upgrade the smart device; Alternatively, the smart device obtains a preset upgrade firmware package through the PC to upgrade the smart device.

2. The software upgrade system for smart home appliances according to claim 1, characterized in that: The mobile app is configured to: establish a connection with the WiFi module according to the WiFi and Bluetooth hotspots identified by the SN; Acquire current software information from the WiFi module; wherein the software information includes: software version information of the WiFi module, model information of the electronic control terminal, and software version information of the electronic control terminal; Access the cloud management platform according to the current software information to query the update of the WiFi module and the electronic control terminal software; If a software upgrade firmware package that needs to be updated is found, the upgrade firmware package is downloaded from the cloud management platform to the mobile phone; the upgrade firmware package includes the WiFi module upgrade firmware and the electronic control terminal upgrade firmware; The WiFi module is configured to: obtain the upgrade firmware package through Bluetooth or WiFi channel; Restarting automatically according to the firmware content of the WiFi module upgrade firmware to update the WiFi module; The electronic control terminal upgrade firmware is transmitted to the electronic control terminal through the Xmodem protocol to update the electronic control terminal.

3. The software upgrade system for smart home appliances according to claim 2, characterized in that: The WiFi module is further configured to: query the latest firmware information on the cloud management platform according to the current software information to obtain an upgrade configuration file; Downloading the upgrade firmware package and verification code from the cloud management platform according to the upgrade configuration file; The upgrade firmware package is parsed according to the verification code to verify the integrity and correctness of the firmware data in the upgrade firmware package.

4. The software upgrade system for smart home appliances according to claim 2, characterized in that: The WiFi module is further configured to: periodically send a firmware update query request to the cloud management platform; The cloud management platform is configured to: perform update query according to the firmware update query request; If a software upgrade firmware package that needs to be updated is found, the upgrade firmware package is sent to the WiFi module; If no software upgrade firmware package that needs to be updated is found, information indicating that the current smart device has a higher version is sent to the WiFi module.

5. The software upgrade system for smart home appliances according to claim 4, characterized in that: The software upgrade firmware package that needs to be updated is an upgrade firmware package whose firmware version is higher than the current firmware version of the smart device.

6. The software upgrade system for smart home appliances according to claim 1, characterized in that: The PC terminal is also configured as follows: Configure a preset upgrade firmware package of the object to be upgraded on the local server, wherein the preset WiFi module upgrade firmware and the preset electric control terminal upgrade firmware in the preset upgrade firmware package are distinguished by different naming conventions; Establishing a UDP communication connection with the WiFi module; Obtaining a download address of a preset upgrade firmware package through the local server and transmitting the address to the WiFi module; The WiFi module is also configured as: Download the preset upgrade firmware package of the object to be upgraded according to the download address; Restarting automatically according to the firmware content of the preset WiFi module upgrade firmware to update the WiFi module; The preset electronic control terminal upgrade firmware is transmitted to the electronic control terminal through the Xmodem protocol to update the electronic control terminal.

7. The software upgrade system for smart home appliances according to claim 6, characterized in that: The PC terminal is also configured as follows: Detecting a mode of the smart device; When the smart device is in user mode, a UDP communication connection is established with the WiFi module through the WiFi hotspot identified by the SN; When the smart device is in factory mode, a UDP communication connection is established with the WiFi module through the WiFi hotspot identified by the MAC.

8. The software upgrade system for smart home appliances according to claim 6, characterized in that: The PC terminal is also configured as follows: Detecting the network status of the WiFi module; When the network of the WiFi module is in AP state, a UDP communication connection is established with the WiFi module through the WiFi hotspot identified by the SN or MAC; When the network of the WiFi module is in STA state, it is connected to the router connected to the WiFi module to establish a UDP communication connection in the same local area network.

9. The software upgrade system for smart home appliances according to claim 6, characterized in that: The WiFi module is further configured to: establish a handshake connection with the electronic control terminal via serial port data communication; Transmitting the preset electronic control terminal upgrade firmware and upgrade instructions to the electronic control terminal according to the Xmodem protocol; The electronic control terminal is also configured as: Initiate the upgrade according to the preset electronic control terminal upgrade firmware and upgrade instructions; After the upgrade is completed, the upgrade result is sent to the WiFi module; The WiFi module is also configured as: Restart the WiFi terminal program according to the upgrade result to update the electronic control terminal hardware version information and release the preset electronic control terminal upgrade firmware.

10. A method for upgrading software of a smart home appliance, characterized in that: The software upgrade system for a smart home appliance according to any one of claims 1 to 9, the method comprising: When the smart device is connected to the router to be in an online state, the smart device obtains an upgrade firmware package through the cloud management platform to upgrade the smart device; When the smart device is not connected to the router and is in an offline state, the smart device obtains an upgrade firmware package on the cloud management platform through a mobile phone applet to upgrade the smart device; or the smart device obtains a preset upgrade firmware package through a PC to upgrade the smart device.

Citation Information

Cited By

  • Method and system for upgrading riding type mower component software based on VCU

    CN121560350A