Upgrading method and system for intelligent household electrical appliance, storage medium and device
By receiving and parsing upgrade instructions in smart home appliances, determining the upgrade strategy and downloading the upgrade package, the problem of the existing technology in which the OTA upgrade package is larger than the storage capacity of the WiFi module OTA partition is solved, and the upgrade of the smart home appliance system and the reduction of hardware costs are achieved.
Patent Information
- Application Number
- CN202411591579.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-08
- Publication Date
- 2025-02-25
AI Technical Summary
The existing technology cannot effectively upgrade the smart home appliance system with OTA upgrade package larger than the storage capacity of the WiFi module OTA partition, resulting in an increase in hardware costs.
By receiving and analyzing the upgrade instructions sent by the IoT platform, obtaining the critical capacity value and upgrade capacity, and determining the target upgrade strategy. According to the ratio of critical capacity value to upgraded capacity, a subcontract download mode or a whole package download mode is adopted to achieve the upgrade of smart home appliance systems.
The upgrade of smart home appliance systems has been achieved, reducing hardware costs and avoiding the need to increase the hardware costs of smart home appliances.
Smart Images

Figure CN119521200A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of smart home technology, and more specifically, to an upgrade method and system, storage medium, and device for smart home appliances. Background Art
[0002] At present, with the rapid development of science and technology, the intelligence level of home appliances is increasing day by day. In order to improve the intelligence level of home appliances, the home appliance baseboard configured by the home appliances needs to update its application program regularly or irregularly. Based on this, how to realize the update and upgrade of the home appliance baseboard of the home appliances has become a technical problem that needs to be solved urgently.
[0003] In order to achieve the update and upgrade of the home appliance baseboard, the relevant technology discloses an upgrade method for smart home appliances, including: the smart home appliance is configured with a WiFi (Wireless Fidelity) module, and requests the Internet of Things platform to download an upgrade package through the WiFi module; when the upgrade package is downloaded, the upgrade package is sent to the home appliance baseboard to achieve the upgrade operation of the home appliance baseboard.
[0004] In the process of implementing the embodiments of the present disclosure, it is found that there are at least the following problems in the related art:
[0005] The Flash and RAM storage space configured in the WiFi module has a small capacity, and the OTA upgrade package sizes of different types of smart home appliances vary. The relevant technology can only upgrade the smart home appliance system whose OTA upgrade package is smaller than the storage capacity of the OTA partition of the WiFi module, but cannot upgrade the smart home appliance system whose OTA upgrade package is larger than the storage capacity of the OTA partition of the WiFi module. To achieve the latter upgrade operation, it is necessary to configure a WiFi module with a high OTA partition in the smart home appliance system, which increases the hardware cost of upgrading the smart home appliance system.
[0006] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0007] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical components or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.
[0008] The embodiments of the present disclosure provide a method, system, storage medium and device for upgrading smart home appliances, which implement system upgrades of smart home appliances in a manner that does not increase the hardware cost of the smart home appliances, thereby reducing the hardware cost of upgrading the smart home appliances.
[0009] In some embodiments, the method is applied to a WiFi module, and the WiFi module includes an over-the-air download technology OTA partition. The method includes: receiving and parsing an upgrade instruction sent by an Internet of Things platform to obtain a critical capacity value and an upgrade package capacity; wherein the critical capacity value is associated with the storage capacity of the OTA partition; determining a target upgrade strategy based on the critical capacity value and the upgrade package capacity; and sending a download request to the Internet of Things platform and downloading the upgrade package according to the target upgrade strategy.
[0010] In some embodiments, a target upgrade strategy is determined based on the critical capacity value and the upgrade package capacity, including: when the critical capacity value is less than the upgrade package capacity, determining the target upgrade strategy to be a sub-package download mode; or, when the critical capacity value is greater than or equal to the upgrade package capacity, determining the target upgrade strategy to be a whole package download mode.
[0011] In some embodiments, when the critical capacity value is less than the upgrade package capacity, a download request is sent to the Internet of Things platform and the upgrade package is downloaded according to the target upgrade strategy, including: determining the subpackage capacity of each upgrade subpackage as the critical capacity value; determining the number of subpackages according to the ratio of the upgrade package capacity to the critical capacity value; and sending a download request to the Internet of Things platform in turn according to the subpackage capacity and the number of subpackages of each upgrade subpackage and downloading each upgrade subpackage.
[0012] In some embodiments, according to the subpackage capacity and subpackage number of each upgrade subpackage, a download request is sent to the Internet of Things platform in turn and each upgrade subpackage is downloaded, including: determining the subpackage sequence number i of each upgrade subpackage; sending a download request to the Internet of Things platform, requesting to download the i-th upgrade subpackage; when the i-th upgrade subpackage is downloaded, judging the size of the subpackage sequence number i and the subpackage number; when the subpackage sequence number i is less than the subpackage number, updating the subpackage sequence number to i+1, returning to execute sending the download request and requesting to download the i+1-th upgrade subpackage; when the subpackage sequence number i is equal to the subpackage number, determining that the upgrade package download is complete.
[0013] In some embodiments, it also includes: after sending a download request to the Internet of Things platform and downloading the upgrade package according to the target upgrade strategy, sending an upgrade request to the home appliance baseboard; when an upgrade confirmation response is received, sending the upgrade package to the home appliance baseboard so that the home appliance baseboard upgrades the baseboard according to the upgrade package, and the upgrade confirmation response is generated by the home appliance baseboard when the upgrade request is received.
[0014] In some embodiments, the method is applied to an Internet of Things platform, and the WiFi module includes an over-the-air download technology OTA partition. The method includes: sending an upgrade instruction to the WiFi module to trigger the WiFi module to download an upgrade package; receiving a download request sent by the WiFi module, and sending an upgrade package to the WiFi module so that the WiFi module downloads the upgrade package according to a target upgrade strategy; wherein the download request is generated and sent by the WiFi module after receiving the upgrade instruction based on a critical capacity value and determining a target upgrade strategy.
[0015] In some embodiments, when the critical capacity value is less than the upgrade package capacity, a download request sent by the WiFi module is received, and an upgrade package is sent to the WiFi module so that the WiFi module downloads the upgrade package according to the target upgrade strategy, including: determining the subpackage capacity of each upgrade subpackage as the critical capacity value; determining the number of subpackages according to the ratio of the upgrade package capacity to the critical capacity value; receiving the download request sent by the WiFi module, and sending the i-th upgrade subpackage; when the subpackage sequence number i is less than the number of subpackages, receiving the download request sent by the WiFi module again and sending the i+1-th upgrade subpackage; wherein i represents the subpackage sequence number of the upgrade subpackage, and when the subpackage sequence number i is less than the number of subpackages, the WiFi module updates the subpackage sequence number i to i+1, and returns to execute sending a download request to request the i+1-th upgrade subpackage.
[0016] In some embodiments, the system includes: an Internet of Things platform, configured to send an upgrade instruction to a WiFi module to trigger the WiFi module to download an upgrade package; receive a download request sent by the WiFi module, and send an upgrade package to the WiFi module so that the WiFi module downloads the upgrade package according to a target upgrade strategy; wherein the download request is generated and sent by the WiFi module after receiving the upgrade instruction based on a critical capacity value and determining a target upgrade strategy; the WiFi module is configured to receive and parse the upgrade instruction sent by the Internet of Things platform, obtain a critical capacity value and an upgrade package capacity; determine a target upgrade strategy based on the critical capacity value and the upgrade package capacity; send a download request to the Internet of Things platform according to the target upgrade strategy and download the upgrade package; wherein the critical capacity value is associated with the storage capacity of the OTA partition; and a home appliance baseboard, configured to perform a baseboard upgrade based on the upgrade package downloaded by the WiFi module.
[0017] In some embodiments, the storage medium, the computer-readable storage medium includes a stored program, wherein the program executes the above-mentioned upgrade method for smart home appliances when running.
[0018] In some embodiments, the upgrade device for smart home appliances includes a memory and a processor, the memory stores a computer program, and the processor is configured to execute the above-mentioned upgrade method for smart home appliances through the computer program.
[0019] The upgrade method, system, storage medium and device for smart home appliances provided by the embodiments of the present disclosure can achieve the following technical effects:
[0020] The WiFi module receives and parses the upgrade command sent by the Internet of Things platform, obtains the critical capacity value and the capacity of the upgrade package, and then determines the corresponding target upgrade strategy based on the critical capacity value and the capacity of the upgrade package. Finally, a download request is sent to the Internet of Things platform and the upgrade package is downloaded according to the target upgrade strategy. The disclosed embodiment can execute different upgrade strategies according to the size of the critical capacity value associated with the upgrade package capacity and the OTA partition storage capacity. When the upgrade package capacity is large, the smart home appliance system can also be upgraded according to the corresponding upgrade strategy, thereby realizing the system upgrade of smart home appliances in a way that does not increase the hardware cost of smart home appliances, thereby reducing the hardware cost of smart home appliance upgrades.
[0021] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0023] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0024] Figure 1 is a schematic diagram of a hardware environment for a method for upgrading a smart home appliance according to an embodiment of the present application;
[0025] Figure 2 is a schematic diagram of an upgrade method for smart home appliances provided by an embodiment of the present disclosure;
[0026] Figure 3 is a schematic diagram of another method for upgrading a smart home appliance provided by an embodiment of the present disclosure;
[0027] Figure 4 is a schematic diagram of another method for upgrading a smart home appliance provided by an embodiment of the present disclosure;
[0028] Figure 5 is a schematic diagram of another method for upgrading a smart home appliance provided by an embodiment of the present disclosure;
[0029] Figure 6 is a schematic diagram of another method for upgrading a smart home appliance provided by an embodiment of the present disclosure;
[0030] Figure 7 is an application schematic diagram of an embodiment of the present disclosure;
[0031] Figure 8 is a schematic diagram of an upgrading device for smart home appliances provided by an embodiment of the present disclosure;
[0032] Fig. 9 It is a schematic diagram of a smart home appliance provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0033] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0034] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0035] According to one aspect of an embodiment of the present application, a method for upgrading smart home appliances is provided. The method for upgrading smart home appliances is widely used in smart home (Smart Home), smart home, smart home equipment ecology, smart residential (Intelligence House) ecology and other whole-house intelligent digital control application scenarios. Optionally, in this embodiment, the above-mentioned method for upgrading smart home appliances can be applied to Figure 1 In the hardware environment composed of smart home appliances 102 and Internet of Things platform 104 shown in FIG. Figure 1As shown, the Internet of Things platform 104 is connected to the smart home appliance 102 through the network, and can be used to provide services (such as application services, etc.) for the smart home appliances or clients installed on the smart home appliances. A database can be set up on the server of the Internet of Things platform or independently of the server to provide data storage services for the Internet of Things platform 104. Cloud computing and / or edge computing services can be configured on the server of the Internet of Things platform or independently of the server to provide data computing services for the Internet of Things platform 104.
[0036] The network may include but is not limited to at least one of the following: wired network, wireless network. The wired network may include but is not limited to at least one of the following: wide area network, metropolitan area network, local area network, and the wireless network may include but is not limited to at least one of the following: WiFi, Bluetooth. The smart home appliance 102 may be but is not limited to a PC, a mobile phone, a tablet computer, a smart air conditioner, a smart range hood, a smart refrigerator, a smart oven, a smart stove, a smart washing machine, a smart water heater, a smart washing equipment, a smart dishwasher, a smart projection equipment, a smart TV, a smart clothes drying rack, a smart curtain, a smart audio and video, a smart socket, a smart speaker, a smart speaker, a smart fresh air equipment, a smart kitchen and bathroom equipment, a smart bathroom equipment, a smart sweeping robot, a smart window cleaning robot, a smart mopping robot, a smart air purification equipment, a smart steamer, a smart microwave oven, a smart kitchen treasure, a smart purifier, a smart water dispenser, a smart door lock, etc.
[0037] The smart home appliance 102 includes a home appliance baseboard and a WiFi module. The WiFi module includes an OTA (Over-The-Air Technology) partition.
[0038] Combination Figure 2 As shown, the embodiment of the present disclosure provides an upgrade method for a smart home appliance, comprising:
[0039] S01, the WiFi module receives and analyzes the upgrade instruction sent by the IoT platform to obtain the critical capacity value and the upgrade package capacity, wherein the critical capacity value is associated with the storage capacity of the OTA partition.
[0040] In this step, the upgrade instruction includes a critical capacity value. The critical capacity value represents the upper capacity threshold of the entire package download upgrade package. It should be noted that the critical capacity value is less than the storage capacity of the OTA partition. As an example, the storage capacity of the OTA partition is 1964K, and the critical capacity value is 1536K.
[0041] S02, the WiFi module determines a target upgrade strategy according to the critical capacity value and the upgrade package capacity.
[0042] S03, the WiFi module sends a download request to the IoT platform according to the target upgrade strategy and downloads the upgrade package.
[0043] Using the upgrade method for smart home appliances provided by the embodiment of the present disclosure, the WiFi module receives and parses the upgrade instruction sent by the Internet of Things platform, obtains the critical capacity value and the upgrade package capacity, and then determines the corresponding target upgrade strategy based on the critical capacity value and the upgrade package capacity. Finally, a download request is sent to the Internet of Things platform and the upgrade package is downloaded according to the target upgrade strategy. The embodiment of the present disclosure can execute different upgrade strategies according to the size of the critical capacity value associated with the upgrade package capacity and the OTA partition storage capacity. When the upgrade package capacity is large, the smart home appliance system can also be upgraded according to the corresponding upgrade strategy, thereby realizing the system upgrade of smart home appliances in a way that does not increase the hardware cost of smart home appliances.
[0044] Optionally, the WiFi module determines a target upgrade strategy according to the critical capacity value and the upgrade package capacity, including:
[0045] When the critical capacity value is less than the upgrade package capacity, the WiFi module determines the target upgrade strategy as the packet download mode. Or,
[0046] When the critical capacity value is greater than or equal to the upgrade package capacity, the WiFi module determines the target upgrade strategy as the whole package download mode.
[0047] In this way, when the critical capacity value is less than the capacity of the upgrade package, it indicates that the capacity of the upgrade package is higher than the upper capacity threshold of the whole package download upgrade package, and the whole package download upgrade cannot be achieved. At this time, the sub-package download mode is adopted. When the critical capacity value is greater than or equal to the upgrade package capacity, it indicates that the upgrade package capacity is not higher than the upper capacity threshold of the whole package download upgrade package. At this time, the whole package download mode can be adopted. In this way, the embodiment of the present disclosure can determine the corresponding target upgrade strategy based on the size relationship between the critical capacity value and the upgrade package capacity, so that the smart home appliances can realize the system upgrade of the smart home appliances in a way that does not increase the hardware cost, thereby reducing the hardware cost of the smart home appliance upgrade.
[0048] It should be noted that the whole package download mode includes: the WiFi module sends a download request to the IoT platform; after receiving the download request, the IoT platform sends an upgrade package to the WiFi module. As an example, the IoT platform sends the upgrade package to the WiFi module, which can be: the IoT platform sends frame data corresponding to the data frame size corresponding to the upgrade package to the WiFi module in sequence until the upgrade package is sent.
[0049] Optionally, combined Figure 3 As shown in FIG. 1 , when the critical capacity value is less than the upgrade package capacity, the WiFi module sends a download request to the IoT platform according to the target upgrade strategy and downloads the upgrade package, including:
[0050] S11, the WiFi module determines the sub-packet capacity of each upgrade sub-packet as a critical capacity value.
[0051] S12, the WiFi module determines the number of subpacketization times according to the ratio of the upgrade package capacity to the critical capacity value.
[0052] In this step, the WiFi module determines the number of subpackaging according to the ratio of the upgrade package capacity to the critical capacity value, including: the WiFi module obtains the quotient and remainder of the upgrade package capacity and the critical capacity value; when the remainder is zero, the WiFi module determines the number of subpackaging as the quotient; when the remainder is a non-zero value, the WiFi module determines the number of subpackaging as the sum of the quotient and the value 1.
[0053] S13, the WiFi module sends a download request to the Internet of Things platform in sequence according to the subpacket capacity and subpacket number of each upgrade subpacket, and downloads each upgrade subpacket.
[0054] In this way, when the critical capacity value is less than the capacity of the upgrade package, the sub-package download mode is adopted. Specifically, since the critical capacity value represents the upper limit threshold of the capacity of the whole package downloading the upgrade package, in order to minimize the number of sub-packages, the embodiment of the present disclosure determines the sub-package capacity of each upgrade sub-package as the critical capacity value, and at the same time, determines the number of sub-packages according to the ratio of the upgrade package capacity to the critical capacity value. After determining the sub-package capacity and the number of sub-packages, the embodiment of the present disclosure sends a download request to the Internet of Things platform in sequence according to the sub-package capacity and the number of sub-packages of each upgrade package, and downloads each upgrade sub-package. As a result, the embodiment of the present disclosure can realize the sub-package download of the system upgrade package of the smart home appliance by splitting the upgrade package according to the upgrade package capacity and the upper limit threshold of the capacity of the whole package downloading the upgrade package, so that the smart home appliance can realize the system upgrade of the smart home appliance in a way that does not increase the hardware cost.
[0055] Optionally, combined Figure 4 As shown, the WiFi module sends download requests to the IoT platform in turn according to the subpacket capacity and subpacket times of each upgrade subpacket and downloads each upgrade subpacket, including:
[0056] S21, the WiFi module determines the sub-package sequence number i of each upgrade sub-package, wherein the initial value of i is 1.
[0057] S22, the WiFi module sends a download request to the IoT platform, requesting to download the i-th upgrade sub-package.
[0058] S23, when the i-th upgrade sub-package is downloaded, the WiFi module determines the size of the sub-package sequence number i and the number of sub-packages.
[0059] S24, when the sub-package number i is less than the number of sub-packages, the WiFi module updates the sub-package number to i+1, and returns to execute sending a download request and requesting to download the i+1th upgrade sub-package.
[0060] S25, when the sub-packet number i is equal to the number of sub-packet times, the WiFi module determines that the download of the upgrade package is complete.
[0061] In this way, the embodiment of the present disclosure first determines the subpackage sequence number i of each upgrade subpackage, and then sends a download request to the Internet of Things platform, requesting to download the i-th upgrade subpackage. When the i-th upgrade subpackage is downloaded, the size of the subpackage sequence number i and the number of subpackages is determined. If the subpackage sequence number i is less than the number of subpackages, it indicates that the upgrade package has not been fully downloaded. At this time, the subpackage sequence number is updated to i+1 and returns to execute the sending of the download request and request to download the i+1-th upgrade subpackage. If the subpackage sequence number i is equal to the number of subpackages, it indicates that the upgrade package has been fully downloaded and the download of the upgrade package ends. As a result, the WiFi module can split the upgrade package to implement the subpackage download mode, so that the smart home appliances can realize the system upgrade of smart home appliances without increasing the hardware cost.
[0062] Combination Figure 5 As shown, the embodiment of the present disclosure also provides an upgrade method for smart home appliances, including:
[0063] S31, the WiFi module receives and analyzes the upgrade instruction sent by the IoT platform, and obtains the critical capacity value and the upgrade package capacity, wherein the critical capacity value is associated with the storage capacity of the OTA partition.
[0064] S32, the WiFi module determines a target upgrade strategy according to the critical capacity value and the upgrade package capacity.
[0065] S33, the WiFi module sends a download request to the IoT platform according to the target upgrade strategy and downloads the upgrade package.
[0066] S34, the WiFi module sends a download request to the IoT platform according to the target upgrade strategy and downloads the upgrade package, and then sends an upgrade request to the home appliance baseboard.
[0067] S35, when receiving the upgrade confirmation response, the WiFi module sends an upgrade package to the home appliance baseboard, so that the home appliance baseboard upgrades the baseboard according to the upgrade package. The upgrade confirmation response is generated by the home appliance baseboard when receiving the upgrade request.
[0068] Using the upgrade method for smart home appliances provided by the embodiment of the present disclosure, the WiFi module receives and parses the upgrade instruction sent by the Internet of Things platform, obtains the critical capacity value and the capacity of the upgrade package, and then determines the corresponding target upgrade strategy based on the critical capacity value and the capacity of the upgrade package. Finally, a download request is sent to the Internet of Things platform and the upgrade package is downloaded according to the target upgrade strategy. After the WiFi module downloads the upgrade package, an upgrade request is sent to the home appliance baseboard to confirm with the home appliance baseboard whether it has an upgrade requirement. If an upgrade confirmation response is received, it is confirmed that the home appliance baseboard has an upgrade requirement. At this time, the WiFi module sends an upgrade package to the home appliance baseboard so that the home appliance baseboard upgrades the baseboard according to the upgrade package. The embodiment of the present disclosure can execute different upgrade strategies according to the size of the critical capacity value associated with the upgrade package capacity and the OTA partition storage capacity, and notify the home appliance baseboard to upgrade by generating an upgrade request. The embodiment of the present disclosure can realize the system upgrade of smart home appliances in a way that does not increase the hardware cost of smart home appliances.
[0069] Combination Figure 6 As shown, the embodiment of the present disclosure also provides an upgrade method for smart home appliances, including:
[0070] S41, the IoT platform sends an upgrade instruction to the WiFi module to trigger the WiFi module to download the upgrade package.
[0071] S42, the IoT platform receives the download request sent by the WiFi module, and sends the upgrade package to the WiFi module so that the WiFi module downloads the upgrade package according to the target upgrade strategy.
[0072] The download request is generated and sent by the WiFi module after receiving the upgrade instruction according to the critical capacity value and determining the target upgrade strategy.
[0073] Using the upgrade method for smart home appliances provided by the embodiment of the present disclosure, the Internet of Things platform sends an upgrade instruction to the WiFi module to trigger the WiFi module to download the upgrade package, and after receiving the download request sent by the WiFi module, sends the upgrade package to the WiFi module so that it downloads the upgrade package according to the target upgrade strategy. The embodiment of the present disclosure can execute different upgrade strategies according to the size of the critical capacity value associated with the upgrade package capacity and the OTA partition storage capacity. When the upgrade package capacity is large, the smart home appliance system can also be upgraded according to the corresponding upgrade strategy, thereby realizing the system upgrade of the smart home appliance in a way that does not increase the hardware cost of the smart home appliance.
[0074] Optionally, when the critical capacity value is less than the upgrade package capacity, receiving a download request sent by the WiFi module, and the IoT platform sending the upgrade package to the WiFi module so that the WiFi module downloads the upgrade package according to the target upgrade strategy, includes:
[0075] The IoT platform determines the subpackage capacity of each upgraded subpackage as the critical capacity value.
[0076] The IoT platform determines the number of subpackaging times based on the ratio of the upgrade package capacity to the critical capacity value.
[0077] The IoT platform receives the download request sent by the WiFi module and sends the i-th upgrade sub-package.
[0078] When the sub-package number i is less than the sub-package count, the IoT platform receives the download request sent by the WiFi module again and sends the i+1th upgrade sub-package. Where i represents the sub-package number of the upgrade sub-package. When the sub-package number i is less than the sub-package count, the WiFi module updates the sub-package number i to i+1, and returns to execute the download request to request the i+1th upgrade sub-package.
[0079] In this way, when the critical capacity value is less than the capacity of the upgrade package, the sub-package download mode is adopted. Specifically, since the critical capacity value represents the upper capacity threshold of the whole package download upgrade package, in order to minimize the number of sub-packages, the embodiment of the present disclosure determines the sub-package capacity of each upgrade sub-package as the critical capacity value, and at the same time, determines the number of sub-packages according to the ratio of the upgrade package capacity to the critical capacity value. After determining the sub-package capacity and the number of sub-packages, the Internet of Things platform receives the download request sent by the WiFi module and sends the i-th upgrade sub-package. If the sub-package sequence number i is less than the number of sub-packages, the Internet of Things platform receives the download request sent by the WiFi module again and sends the i+1-th upgrade sub-package. Thus, the Internet of Things platform can assist the WiFi module in realizing the sub-package download of the system upgrade package of the smart home appliance by splitting the upgrade package, so that the smart home appliance can realize the system upgrade of the smart home appliance in a way that does not increase the hardware cost.
[0080] It should be noted that, when the critical capacity value is less than the upgrade package capacity, the IoT platform receives a download request sent by the WiFi module and sends the upgrade package to the WiFi module so that the WiFi module downloads the upgrade package according to the target upgrade strategy. It also includes: when the sub-packet number i is equal to the number of sub-packetization times, the IoT platform confirms that the upgrade package download is complete.
[0081] Optionally, the method for upgrading the smart home appliance further includes:
[0082] The WiFi module receives and parses the upgrade command sent by the IoT platform, obtains the critical capacity value and the upgrade package capacity, and then sends an upgrade query request to the home appliance baseboard. The upgrade query request is used to determine whether the home appliance baseboard has the upgrade capability.
[0083] The WiFi module receives the upgrade query response sent by the home appliance baseboard, and the upgrade query response is used to indicate whether the home appliance baseboard has the upgrade capability.
[0084] When the upgrade response indicates that the upgrade capability is available, the WiFi module sends a version query request to the home appliance baseboard to query the version information.
[0085] The WiFi module receives the version information sent by the home appliance baseboard and sends it to the IoT platform so that the IoT platform can determine the upgrade package corresponding to the version information according to the version information. The version information is generated by the home appliance baseboard after receiving the version query request.
[0086] When the upgrade response indicates that the upgrade capability is not available, the WiFi module does not perform the operation.
[0087] In this way, the WiFi module can learn whether the home appliance baseboard has the upgrade capability by exchanging information with the home appliance baseboard, and after determining that it has the upgrade capability, it queries the version information of the home appliance baseboard and synchronizes the version information to the Internet of Things platform so that the Internet of Things platform can determine the upgrade package corresponding to the version information, thereby meeting the upgrade requirements of the home appliance baseboard.
[0088] Optionally, before the IoT platform sends an upgrade instruction to the WiFi module to trigger the WiFi module to download the upgrade package, the process further includes:
[0089] The IoT platform receives the version information sent by the WiFi module.
[0090] The IoT platform determines the upgrade package corresponding to the version information based on the version information.
[0091] It should be noted that after the IoT platform determines the upgrade package corresponding to the version information according to the version information, it also includes: the IoT platform sends a notification message to the user, and the notification message is used to confirm whether to upgrade the upgrade package corresponding to the version information. In the case of receiving the upgrade confirmation message from the user, the IoT platform generates an upgrade instruction. Among them, the upgrade confirmation message is generated when the user confirms the upgrade after receiving the notification message.
[0092] In this way, after receiving the version information and determining the corresponding upgrade package, the IoT platform sends a notification message to the user to ask him or her to confirm whether to upgrade the home appliance baseboard, so that the upgrade operation of the home appliance baseboard meets the user's needs.
[0093] In practical applications, combined with Figure 7 As shown, the upgrade method for smart home appliances specifically performs the following steps:
[0094] S100: The WiFi module sends an upgrade query request to the home appliance baseboard.
[0095] S101: After receiving the upgrade query request, the home appliance base plate sends an upgrade query response to the WiFi module, and the upgrade query indicates that the home appliance base plate has the upgrade capability.
[0096] S102: The WiFi module sends a version query request to the home appliance baseboard to query version information.
[0097] S103: After receiving the version query request, the home appliance baseboard generates version information and sends it to the WiFi module.
[0098] S104, the WiFi module receives the version information and sends it to the IoT platform.
[0099] S105, the IoT platform receives the version information and determines the corresponding upgrade package according to the version information.
[0100] S106, the IoT platform sends a notification message to the user.
[0101] S107, after receiving the notification message, the user sends a confirmation message to the Internet of Things platform.
[0102] S108, the IoT platform receives an upgrade confirmation message and generates an upgrade instruction. The upgrade confirmation message is generated when the user confirms the upgrade after receiving the notification message.
[0103] S109: The IoT platform sends an upgrade instruction to the WiFi module to trigger the WiFi module to download the upgrade package.
[0104] S110: The WiFi module receives and parses the upgrade instruction sent by the IoT platform to obtain the critical capacity value and the upgrade package capacity.
[0105] S111: The WiFi module determines the critical capacity value and the upgrade package capacity, and after confirmation, the critical capacity value is smaller than the upgrade package capacity, and determines the target upgrade strategy as the sub-package download mode.
[0106] S112: The WiFi module determines the sub-packet capacity of each upgrade sub-packet as a critical capacity value, and determines the number of sub-packet times according to the ratio of the upgrade package capacity to the critical capacity value.
[0107] S113: The WiFi module determines the sub-package sequence number i of each upgrade sub-package.
[0108] S114: The WiFi module sends a download request to the IoT platform, requesting to download the i-th upgrade sub-package.
[0109] S115: The IoT platform receives the download request and sends the i-th upgrade sub-package to the WiFi module.
[0110] S116: When the i-th upgrade sub-package is downloaded, the WiFi module determines the size of the sub-package number i and the number of sub-packages. If the sub-package number i is less than the number of sub-packages, the sub-package number is updated to i+1, and the process returns to S114.
[0111] S117: When the sub-packet number i is equal to the number of sub-packet times, the WiFi module determines that the download of the upgrade package is complete and executes S118.
[0112] S118: The WiFi module sends an upgrade request to the home appliance baseboard.
[0113] S119: After receiving the upgrade request, the home appliance baseboard sends an upgrade confirmation response to the WiFi module.
[0114] S120: When receiving the upgrade confirmation response, the WiFi module sends an upgrade package to the home appliance baseboard, so that the home appliance baseboard upgrades the baseboard according to the upgrade package.
[0115] The disclosed embodiment also provides an upgrade system for smart home appliances, including an Internet of Things platform, a WiFi module, and a home appliance baseboard.
[0116] The IoT platform is configured to send an upgrade instruction to the WiFi module to trigger the WiFi module to download the upgrade package. The IoT platform receives a download request sent by the WiFi module and sends the upgrade package to the WiFi module so that the WiFi module downloads the upgrade package according to the target upgrade strategy. The download request is generated and sent by the WiFi module after receiving the upgrade instruction according to the critical capacity value and the target upgrade strategy.
[0117] The WiFi module is configured to receive and parse the upgrade instruction sent by the IoT platform, obtain the critical capacity value and the capacity of the upgrade package, determine the target upgrade strategy according to the critical capacity value and the capacity of the upgrade package, send a download request to the IoT platform according to the target upgrade strategy, and download the upgrade package, wherein the critical capacity value is associated with the storage capacity of the OTA partition.
[0118] The home appliance baseboard is configured to upgrade the baseboard according to the upgrade package downloaded by the WiFi module.
[0119] By using the upgrade system for smart home appliances provided by the embodiments of the present disclosure, different upgrade strategies can be executed according to the size of the critical capacity value associated with the upgrade package capacity and the OTA partition storage capacity. When the upgrade package capacity is large, the smart home appliance system can also be upgraded according to the corresponding upgrade strategy, thereby realizing the system upgrade of the smart home appliance in a way that does not increase the hardware cost of the smart home appliance.
[0120] Combination Figure 8As shown, the embodiment of the present disclosure provides an upgrade device 70 for smart home appliances, including a processor 700 and a memory 701. Optionally, the device 70 may also include a communication interface 702 and a bus 703. The processor 700, the communication interface 702, and the memory 701 may communicate with each other through the bus 703. The communication interface 702 may be used for information transmission. The processor 700 may call the logic instructions in the memory 701 to execute the upgrade method for smart home appliances of the above embodiment.
[0121] In addition, the logic instructions in the memory 701 described above may be implemented in the form of software functional units and when sold or used as independent products, may be stored in a computer-readable storage medium.
[0122] The memory 701 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the method in the embodiment of the present disclosure. The processor 700 executes the function application and data processing by running the program instructions / modules stored in the memory 701, that is, the upgrade method for smart home appliances in the above embodiment is implemented.
[0123] The memory 701 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 701 may include a high-speed random access memory and may also include a non-volatile memory.
[0124] Combination Fig. 9 As shown, the embodiment of the present disclosure provides a smart home appliance 100, including: a home appliance body, and the above-mentioned upgrade device 70 for smart home appliances. The upgrade device 70 for smart home appliances is installed on the home appliance body. The installation relationship described here is not limited to placement inside the product body, but also includes installation connections with other components of the smart home appliance, including but not limited to physical connections, electrical connections or signal transmission connections, etc. It can be understood by those skilled in the art that the upgrade device 70 for smart home appliances can be adapted to a feasible home appliance body, thereby realizing other feasible embodiments.
[0125] An embodiment of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured to execute the above-mentioned upgrade method for smart home appliances.
[0126] The technical solution of the embodiment of the present disclosure can be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in the embodiment of the present disclosure. The aforementioned storage medium may be a non-transient storage medium, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and other media that can store program codes.
[0127] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent only possible changes. Unless explicitly required, separate components and functions are optional, and the order of operation may vary. The parts and features of some embodiments may be included in or replace the parts and features of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and the claims, unless the context clearly indicates, the singular forms of "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of listings containing one or more associated ones. In addition, when used in the present application, the term "comprise" and its variants "comprises" and / or comprising refer to the presence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the presence of other identical elements in the process, method or device comprising the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the various embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.
[0128] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. The technicians may use different methods for each specific application to implement the described functions, but such implementations should not be considered to exceed the scope of the embodiments of the present disclosure. The technicians may clearly understand that, for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above may refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0129] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units can be only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present disclosure may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit.
[0130] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and the block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.
Claims
1. A method for upgrading a smart home appliance, characterized in that: Applied to wireless fidelity WiFi modules, WiFi modules include over-the-air download technology OTA partitioning, methods include: Receive and parse the upgrade command sent by the IoT platform to obtain the critical capacity value and the upgrade package capacity; wherein the critical capacity value is associated with the storage capacity of the OTA partition; Determine the target upgrade strategy based on the critical capacity value and the upgrade package capacity; Send a download request to the IoT platform and download the upgrade package according to the target upgrade strategy.
2. The upgrading method according to claim 1, characterized in that: Determine the target upgrade strategy based on the critical capacity value and the upgrade package capacity, including: When the critical capacity value is less than the upgrade package capacity, the target upgrade strategy is determined to be a sub-package download mode; or, When the critical capacity value is greater than or equal to the upgrade package capacity, the target upgrade strategy is determined to be the whole package download mode.
3. The upgrading method according to claim 2, characterized in that: When the critical capacity value is less than the upgrade package capacity, a download request is sent to the IoT platform according to the target upgrade strategy and the upgrade package is downloaded, including: Determine the subpackage capacity of each upgraded subpackage as the critical capacity value; Determine the number of sub-packaging times according to the ratio of the upgrade package capacity to the critical capacity value; According to the sub-packaging capacity and sub-packaging times of each upgrade sub-packaging, download requests are sent to the IoT platform in turn and each upgrade sub-packaging is downloaded.
4. The upgrading method according to claim 3, characterized in that: According to the sub-packaging capacity and sub-packaging times of each upgrade sub-packaging, send download requests to the IoT platform in turn and download each upgrade sub-packaging, including: Determine the subpackage sequence number i of each upgrade subpackage; Send a download request to the IoT platform, requesting to download the i-th upgrade subpackage; When the i-th upgrade sub-package is downloaded, determine the size of the sub-package sequence number i and the number of sub-packages; When the subpackage number i is less than the number of subpackages, the subpackage number is updated to i+1, and the download request is sent back to request the download of the i+1th upgrade subpackage; When the sub-packaging sequence number i is equal to the number of sub-packaging times, it is determined that the downloading of the upgrade package is complete.
5. The upgrading method according to any one of claims 1 to 4, characterized in that: Also includes: After sending a download request to the IoT platform and downloading the upgrade package according to the target upgrade strategy, an upgrade request is sent to the home appliance baseboard; When an upgrade confirmation response is received, an upgrade package is sent to the home appliance baseboard, so that the home appliance baseboard upgrades the baseboard according to the upgrade package. The upgrade confirmation response is generated by the home appliance baseboard when it receives the upgrade request.
6. A method for upgrading a smart home appliance, characterized in that: Applied to the IoT platform, the wireless fidelity WiFi module includes over-the-air download technology OTA partitioning, and the methods include: Send an upgrade command to the WiFi module to trigger the WiFi module to download the upgrade package; Receive a download request sent by the WiFi module, and send an upgrade package to the WiFi module so that the WiFi module downloads the upgrade package according to a target upgrade strategy; The download request is generated and sent by the WiFi module after receiving the upgrade instruction according to the critical capacity value and determining the target upgrade strategy.
7. The upgrading method according to claim 6, characterized in that: When the critical capacity value is less than the upgrade package capacity, receiving a download request sent by the WiFi module, and sending the upgrade package to the WiFi module so that the WiFi module downloads the upgrade package according to the target upgrade strategy, including: Determine the subpackage capacity of each upgraded subpackage as the critical capacity value; Determine the number of sub-packaging times according to the ratio of the upgrade package capacity to the critical capacity value; Receive the download request sent by the WiFi module and send the i-th upgrade sub-package; When the subpackage number i is less than the number of subpackages, the download request sent by the WiFi module is received again and the i+1th upgrade subpackage is sent; wherein, i represents the subpackage number of the upgrade subpackage, and the WiFi module updates the subpackage number i to i+1 when the subpackage number i is less than the number of subpackages, and returns to execute the sending of the download request to request the i+1th upgrade subpackage.
8. An upgrade system for smart home appliances, characterized in that: include: The IoT platform is configured to send an upgrade instruction to the WiFi module to trigger the WiFi module to download the upgrade package; Receiving a download request sent by the WiFi module, and sending an upgrade package to the WiFi module so that the WiFi module downloads the upgrade package according to a target upgrade strategy; wherein the download request is generated and sent by the WiFi module after receiving the upgrade instruction according to a critical capacity value and determining a target upgrade strategy; The WiFi module is configured to receive and parse the upgrade instruction sent by the IoT platform, obtain the critical capacity value and the capacity of the upgrade package; determine the target upgrade strategy according to the critical capacity value and the capacity of the upgrade package; send a download request to the IoT platform and download the upgrade package according to the target upgrade strategy; wherein the critical capacity value is associated with the storage capacity of the OTA partition; The home appliance baseboard is configured to upgrade the baseboard according to the upgrade package downloaded by the WiFi module.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the upgrading method for smart home appliances according to any one of claims 1 to 7 when running.
10. An upgrade device for smart home appliances, comprising a memory and a processor, characterized in that: The memory stores a computer program, and the processor is configured to execute the upgrading method for a smart home appliance according to any one of claims 1 to 5 through the computer program.
Citation Information
Patent Citations
Wearable device upgrading method, wearable device and storage medium
CN110221856A
FOTA upgrading method based on small space
CN112817630A
Data storage method and intelligent household appliance
CN113504879A
Firmware upgrading method and device, equipment and storage medium
CN114265606A
Equipment remote upgrading method and device, terminal and storage medium
CN115421745A