Remote upgrading method, household energy storage device, mobile terminal and cloud server
By assessing the wide area network connectivity of home energy storage devices, and enabling remote upgrades either independently or via mobile terminals, the problem of the inability to uniformly upgrade home energy storage products has been solved, achieving universal remote upgrades and simplified management of the devices.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHANGHAI XUANYI NEW ENERGY DEV CO LTD
- Filing Date
- 2026-03-13
- Publication Date
- 2026-06-09
Smart Images

Figure CN122179316A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to, but is not limited to, the field of energy Internet of Things technology, and more specifically, to a remote upgrade method, a home energy storage device, a mobile terminal, and a cloud server. Background Technology
[0002] With the popularization of new energy technologies, the user base of home mobile energy storage products has grown rapidly. Modern home mobile energy storage products typically integrate multiple functional modules (such as BMS battery management system, inverter module, etc.), each with independent firmware.
[0003] Firmware upgrades are crucial for addressing potential security vulnerabilities in devices after they leave the factory, adjusting operating parameters, and expanding new features. Traditional OTA (Over-The-Air) upgrades heavily rely on the device's own wide-area network connectivity, such as Wi-Fi. However, many home portable energy storage products, due to cost control, power consumption limitations, or design simplification considerations, do not have Wi-Fi modules. These products typically only have short-range, low-power communication capabilities such as Bluetooth, and cannot directly connect to the internet, thus excluding them from the traditional OTA upgrade system.
[0004] Therefore, energy storage equipment manufacturers with different models and configurations (with or without Wi-Fi) of their product lines urgently need a unified upgrade management technology solution that can cover all home mobile energy storage products, realize centralized management and release of upgrade strategies, and simplify operation and maintenance complexity. Summary of the Invention
[0005] This disclosure provides a remote upgrade method for home energy storage devices, including: Obtain device information and determine whether the device has wide area network connectivity based on the information; If the device is determined to have WAN connectivity, an autonomous remote upgrade process is executed; if the device is determined not to have WAN connectivity, a remote upgrade process is completed using a mobile terminal; wherein the mobile terminal acts as a communication proxy between the device and the cloud server.
[0006] This disclosure provides a remote upgrade method applied to a mobile terminal, including: Send a user registration request to the cloud server to obtain the family account assigned by the cloud server to the user of the home energy storage device; Establish a short-range wireless communication connection with a home energy storage device, obtain information about the device, and determine whether the device has wide area network connectivity based on the information. If the device is determined to have WAN connectivity, then home network configuration information and home account identification information are sent to the device to enable the device to perform an autonomous remote upgrade process; if the device is determined not to have WAN connectivity, then it acts as a communication proxy between the device and the cloud server to perform a proxy upgrade process.
[0007] This disclosure provides a remote upgrade method applied to a cloud server, including: Receive a user registration request from a mobile terminal and register a family account for the user; wherein the user is a user of a home energy storage device; Obtain the device's WAN connectivity information, and depending on whether the device has WAN connectivity, select whether to complete the device registration, family account binding, and remote upgrade service subscription directly or indirectly through the mobile terminal as a communication proxy between the device and the cloud server. When firmware upgrades are detected on the device, a batch upgrade task is generated and an upgrade notification is sent to the mobile terminal corresponding to the device. After receiving the user authorization response from the mobile terminal in response to the upgrade notification, the corresponding upgrade method is selected according to the device's WAN connectivity: if the device has WAN connectivity, upgrade instructions are sent directly to the device in sequence according to the batch upgrade task, and the upgrade result information fed back by the device is received; if the device does not have WAN connectivity, upgrade instructions are sent to the mobile terminal in sequence according to the batch upgrade task, and the upgrade result information forwarded by the mobile terminal from the device is received.
[0008] This disclosure provides a home energy storage device, including: a memory and a processor. The memory stores a computer program, and when the computer program is executed by the processor, it implements the steps of the remote upgrade method applied to the home energy storage device described above.
[0009] This disclosure provides a mobile terminal, including a memory and a processor. The memory stores a computer program, which, when executed by the processor, implements the steps of the remote upgrade method applied to the mobile terminal described above.
[0010] This disclosure provides a cloud server, including a memory and a processor. The memory stores a computer program, which, when executed by the processor, implements the steps of the remote upgrade method applied to the cloud server described above.
[0011] The remote upgrade method, home energy storage device, mobile terminal, and cloud server provided in this disclosure embodiment allow the home energy storage device to acquire device information and determine whether it has wide area network (WAN) connectivity based on the information. If the device has WAN connectivity, it executes an autonomous remote upgrade process; if it does not have WAN connectivity, it completes the remote upgrade process using the mobile terminal. The mobile terminal acts as a communication proxy between the device and the cloud server. This remote upgrade solution fundamentally breaks the limitation of device hardware cost on upgradeability, greatly expands the physical form and cost boundaries of home energy storage devices that can support remote upgrades, and realizes the universality of remote upgrade capabilities for home energy storage devices. It enables home energy storage devices with heterogeneous underlying communication networks to be included in a unified remote upgrade management system, providing a convenient and reliable solution for the large-scale deployment and maintenance of IoT devices.
[0012] Other features and advantages of this application will be set forth in the following description, and will be apparent in part from the description, or may be learned by practicing the application. Other advantages of this application can be realized and obtained by means of the embodiments described in the description and the accompanying drawings. Attached Figure Description
[0013] The accompanying drawings are used to provide an understanding of the technical solutions of this application and constitute a part of the specification. They are used together with the embodiments of this application to explain the technical solutions of this application and do not constitute a limitation on the technical solutions of this application.
[0014] Figure 1 This is a flowchart of a remote upgrade method (home energy storage device) according to an embodiment of the present disclosure. Figure 2 A flowchart (mobile terminal) is shown for a remote upgrade method according to an embodiment of this disclosure. Figure 3 This is a flowchart of a remote upgrade method (cloud server) according to an embodiment of the present disclosure. Figure 4 This is a schematic diagram of the structure of a household energy storage device according to an embodiment of the present disclosure; Figure 5 This is a schematic diagram of the structure of a mobile terminal according to an embodiment of the present disclosure; Figure 6 This is a schematic diagram of the structure of a cloud server according to an embodiment of the present disclosure; Figure 7 This is a schematic diagram of the structure of a remote upgrade device according to an embodiment of the present disclosure; Figure 8 This is a flowchart of a remote upgrade method for a home energy storage device, as shown in Example 1 of this disclosure. Figure 9This is a flowchart of a remote upgrade method for a home energy storage device, which is Example 2 of this disclosure. Detailed Implementation
[0015] This disclosure describes several embodiments, but these descriptions are exemplary and not limiting, and it will be apparent to those skilled in the art that many more embodiments and implementations are possible within the scope of the embodiments described herein. Although many possible combinations of features are shown in the drawings and discussed in the detailed description, many other combinations of the disclosed features are also possible. Unless specifically limited, any feature or element of any embodiment may be used in combination with, or may replace, any feature or element of any other embodiment.
[0016] This disclosure includes and contemplates combinations of features and elements known to those skilled in the art. The embodiments, features, and elements disclosed in this disclosure may also be combined with any conventional features or elements to form unique inventive solutions. Any feature or element of any embodiment may also be combined with features or elements from other inventive solutions to form another unique inventive solution. Therefore, it should be understood that any feature shown and / or discussed in this disclosure may be implemented individually or in any suitable combination. Therefore, the embodiments are not limited except by the limitations imposed by the appended claims and their equivalents. Furthermore, various modifications and changes may be made within the scope of the appended claims.
[0017] Furthermore, in describing representative embodiments, the specification may have presented methods and / or processes as a specific sequence of steps. However, the method or process should not be limited to the specific order of steps described herein, to the extent that the method or process does not depend on the specific order of steps described herein. As will be understood by those skilled in the art, other sequences of steps are also possible. Therefore, the specific order of steps set forth in the specification should not be construed as a limitation of the claims. Moreover, the claims relating to the method and / or process should not be limited to the steps performed in the order written, and those skilled in the art will readily understand that these orders can be varied and still remain within the spirit and scope of the embodiments disclosed herein.
[0018] like Figure 1 As shown, one embodiment of this disclosure provides a remote upgrade method applied to a home energy storage device, including: Step S10: Obtain device information and determine whether the device has wide area network connectivity based on the information. Step S20: If it is determined that the device has wide area network (WAN) connectivity, then an autonomous remote upgrade process is executed; if it is determined that the device does not have WAN connectivity, then a remote upgrade process is completed using a mobile terminal; wherein, the mobile terminal acts as a communication proxy between the device and the cloud server.
[0019] In this embodiment of the remote upgrade method, the home energy storage device acquires device information and determines whether it has wide area network (WAN) connectivity based on the information. If the device is determined to have WAN connectivity, an autonomous remote upgrade process is executed. If the device is determined not to have WAN connectivity, a mobile terminal is used to complete the remote upgrade process. The mobile terminal acts as a communication proxy between the device and the cloud server. This remote upgrade method universalizes the remote upgrade capability of home energy storage devices, enabling home energy storage devices with heterogeneous underlying communication networks to be included in a unified remote upgrade management system.
[0020] In one exemplary embodiment of this disclosure, the mobile terminal includes: mobile phone, tablet computer, laptop computer, e-reader, wearable smart device, etc.
[0021] In an exemplary embodiment of this disclosure, determining whether the device has wide area network connectivity based on the information includes: The hardware configuration information in the information is analyzed; if the hardware configuration information indicates that the device integrates at least one of a wireless LAN access module or a cellular mobile communication module, the device is determined to have WAN connectivity capability; otherwise, the device is determined not to have WAN connectivity capability. The wireless LAN access module is mainly used to connect to local wireless networks (such as Wi-Fi in homes, offices, or public places), and ultimately accesses the WAN (Internet) through the router of that network. The cellular mobile communication module can directly access the cellular network of mobile operators (such as 4G, 5G), thereby accessing the WAN anytime, anywhere.
[0022] In an exemplary embodiment of this disclosure, performing an autonomous remote upgrade process includes executing the following steps S1-S6: Step S1: Establish a short-range wireless communication connection with the mobile terminal and send device information to the mobile terminal; the information includes device identification information and hardware configuration information; receive home network configuration information and home account identification information returned by the mobile terminal; Step S2: Initiate a device registration request to the cloud server and bind the device to the family account. Subscribe to the device's dedicated remote upgrade service topic based on the MQTT (Message Queuing Telemetry Transport) protocol and create an upgrade status feedback topic for the cloud server to subscribe to; wherein, the device registration request carries the device's identification information and the family account's identification information; Step S3: Receive the upgrade task message published by the cloud server through the upgrade service topic subscribed to by the device; Step S4: Based on the upgrade task message, send a request to the cloud server to download the corresponding new version firmware file, and perform integrity verification and security verification on the downloaded firmware file; Step S5: After successful verification, according to the target module identifier in the upgrade task message, the new firmware file is burned into the corresponding hardware module of this device to perform firmware upgrade; Step S6: Publish the upgrade result information to the upgrade status feedback topic.
[0023] Steps S1 and S2 are initialization steps performed when the device first accesses the network; steps S3 to S6 are upgrade execution steps that are repeatedly performed in response to various upgrade tasks issued by the cloud server during the device's lifecycle.
[0024] In one exemplary embodiment of this disclosure, the upgrade result information includes: an indication of successful upgrade and the updated firmware version number, or an indication of failed upgrade and a failure error code.
[0025] In an exemplary embodiment of this disclosure, the hardware module includes at least one of the following: a battery management system, an inverter module, a communication controller module, an energy management unit, and a safety protection module.
[0026] The battery management system and inverter module are the core hardware modules of a home energy storage device. They are responsible for the safe management and control of energy storage and the intelligent conversion of AC and DC power, respectively. The stability and performance of their firmware directly determine the efficiency, safety, and lifespan of the entire energy storage system. Other hardware modules, such as the communication controller module, energy management unit, and safety protection module, constitute the key auxiliary subsystems of the device. They are responsible for reliable network communication between the device and the cloud / local area network, intelligent scheduling of charging and discharging based on power load and electricity price signals, and real-time monitoring and protection against abnormal conditions such as overvoltage, overcurrent, and overtemperature.
[0027] In an exemplary embodiment of this disclosure, the device performs an autonomous remote upgrade process, including: When the remote upgrade task message contains multiple independent upgrade items, each independent upgrade item is upgraded sequentially; after completing the upgrade process for any independent upgrade item, the upgrade result information for that item is fed back to the cloud server.
[0028] In an exemplary embodiment of this disclosure, a remote upgrade process is completed using a mobile terminal, including performing the following steps S1-S3: Step S1: Establish a short-range wireless communication connection with the mobile terminal and send device information to the mobile terminal; wherein, the mobile terminal acts as the registration agent of the device, initiates a device registration request to the cloud server and binds the device to the corresponding family account, establishing a logical subscription relationship between the device and the remote upgrade service; the device information includes the device's identification information and hardware configuration information; the device registration request carries the device's identification information and the family account's identification information; Step S2: Receive the verified firmware file sent by the mobile terminal via a short-range wireless communication connection, and burn it to the target hardware module to perform a firmware upgrade; wherein, after receiving the remote upgrade task notification pushed by the cloud server according to the logical subscription relationship, the mobile terminal parses the notification to obtain the description information and verification credentials of the target firmware file, downloads the corresponding new version firmware file from the cloud server according to the description information, performs integrity verification and security verification on the downloaded firmware file using the verification credentials, and only transmits the verified firmware file to the device via a short-range wireless communication connection after successful verification; Step S3: Send an upgrade result message to the mobile terminal, and the mobile terminal forwards the upgrade result message to the cloud server; Step S1 is the initialization step executed when the device first accesses the network; steps S2 to S3 are upgrade execution steps that are repeatedly executed in response to various upgrade tasks issued by the cloud server during the device's life cycle.
[0029] In an exemplary embodiment of this disclosure, a remote upgrade process is completed using a mobile terminal, including: When the upgrade task message contains multiple independent upgrade items, the mobile terminal performs the following processes for each independent upgrade item in sequence: parsing the upgrade item, downloading the corresponding firmware file, verifying the downloaded file, and transmitting the verified file to the device. The device sequentially performs upgrade operations based on the received firmware files; After completing the upgrade operation for any independent upgrade item, the device sends an upgrade result message for that item to the mobile terminal, and the mobile terminal forwards the upgrade result message to the cloud server.
[0030] In an exemplary embodiment of this disclosure, the instructions for each independent upgrade item include at least one of the following information: firmware version number, download address of firmware file, integrity verification information (e.g., MD5 code), upgrade text, and risk warning information before upgrade.
[0031] like Figure 2 As shown, one embodiment of this disclosure provides a remote upgrade method applied to a mobile terminal, including: Step S10: Send a user registration request to the cloud server to obtain the family account assigned by the cloud server to the user of the home energy storage device; Step S20: Establish a short-range wireless communication connection with the home energy storage device, obtain information about the device, and determine whether the device has wide area network connectivity based on the information about the device. Step S30: If it is determined that the device has WAN connectivity, then send home network configuration information and home account identification information to the device to enable the device to perform an autonomous remote upgrade process; if it is determined that the device does not have WAN connectivity, then act as a communication proxy between the device and the cloud server to perform a proxy upgrade process.
[0032] In this embodiment of the remote upgrade method, the mobile terminal sends a user registration request to the cloud server to obtain a family account assigned by the cloud server to the user of the home energy storage device; establishes a short-range wireless communication connection with the home energy storage device, obtains the device's information, and determines whether the device has wide area network (WAN) connectivity based on the device information; if the device has WAN connectivity, the mobile terminal sends home network configuration information and family account identification information to the device, enabling the device to autonomously complete registration and binding on the cloud; if the device does not have WAN connectivity, the mobile terminal acts as a communication proxy between the device and the cloud server, executing a proxy upgrade process. This remote upgrade method adaptively adapts to two remote upgrade modes for home energy storage devices on the mobile terminal side. On the one hand, it enables high-end home energy storage devices with built-in WAN connectivity to conveniently and autonomously complete the entire upgrade process; on the other hand, it enables low-complexity, low-cost home energy storage devices without WAN connectivity to obtain the same remotely manageable upgrade capabilities as high-end devices through the proxy capability of the mobile terminal. This fundamentally breaks the limitation of device hardware cost on upgradeability, greatly expands the physical form and cost boundaries of home energy storage devices that can support remote upgrades, and provides a convenient and reliable solution for the large-scale deployment and operation and maintenance of IoT devices.
[0033] In one exemplary embodiment of this disclosure, the mobile terminal includes: mobile phone, tablet computer, laptop computer, e-reader, wearable smart device, etc.
[0034] In an exemplary embodiment of this disclosure, determining whether the device has wide area network connectivity based on the device's information includes: The hardware configuration information in the device information is analyzed; if the hardware configuration information indicates that the device integrates at least one of a wireless local area network access module or a cellular mobile communication module, the device is determined to have wide area network connectivity capability; otherwise, the device is determined not to have wide area network connectivity capability.
[0035] In an exemplary embodiment of this disclosure, the agent upgrade process includes: registration and binding, establishing a subscription relationship, obtaining upgrade files and transmitting them to the device, and receiving upgrade result information from the device and transmitting it to the cloud server.
[0036] In an exemplary embodiment of this disclosure, home network configuration information and home account identification information are sent to the device to enable the device to perform an autonomous remote upgrade process, including performing the following steps S1-S4: Step S1: Send home network configuration information and home account identification information to the device so that the device can use the information to complete cloud registration, account binding and MQTT service subscription; Step S2: Receive a batch upgrade task notification pushed by the cloud server based on the MQTT service subscribed to by the device, which contains an overview of at least one independent upgrade item; Step S3: Show the user the overview information in the batch upgrade task notification, and after obtaining unified authorization from the user, send an authorization confirmation to the cloud server so that the cloud server can send upgrade instructions for each independent upgrade item to the device in sequence. Step S4: Receive the upgrade result information of the device from the cloud server and present it to the user; Step S1 is the initialization step executed when the device first connects to the network; steps S2 to S4 are upgrade execution steps that are repeatedly executed in response to various remote upgrade tasks issued by the cloud server during the device's life cycle.
[0037] The overview information is user-friendly text explaining the content of this firmware upgrade. It is part of the user experience design and aims to inform users of the purpose and benefits of the upgrade in order to encourage users to authorize the upgrade.
[0038] In one exemplary embodiment of this disclosure, the upgrade result information includes: an indication of successful upgrade and the updated firmware version number, or an indication of failed upgrade and a failure error code.
[0039] This embodiment, in the efficient path of autonomous device upgrades, introduces a mobile terminal as a user authorization agent as a control node. This ensures that each upgrade is no longer a silent process but a controllable upgrade requiring user knowledge and permission, achieving an optimal balance between automation and user control. It constructs a unified device management experience and status visibility: regardless of the device's capabilities, the mobile terminal serves as a unified control panel and status dashboard for managing all devices. Users do not need to learn how to manage different devices or check status on multiple platforms; they can complete upgrade authorization and progress monitoring for all devices directly on the mobile terminal, achieving centralized and visualized management.
[0040] In an exemplary embodiment of this disclosure, a proxy upgrade process is performed as a communication proxy between a device and a cloud server, including performing the following steps S1-S6: Step S1: Extract the device's identification information from the device's information, use it as the device's registration agent, initiate a device registration request to the cloud server, bind the device to the corresponding family account, and establish a logical subscription relationship between the device and the remote upgrade service; wherein, the device registration request carries the device's identification information and the family account's identification information; Step S2: Receive a batch upgrade task notification pushed by the cloud server according to the logical subscription relationship, which contains an overview of at least one independent upgrade item; Step S3: Show the user the overview information in the batch upgrade task notification, and after obtaining unified authorization from the user, send authorization confirmation to the cloud server; Step S4: Receive upgrade instructions for each independent upgrade item sequentially from the cloud server in response to the authorization confirmation; Step S5: For the upgrade instruction of the currently received independent upgrade item, download the corresponding new version firmware file from the cloud server, and perform integrity verification and security verification using the verification credentials provided by the cloud; only after the verification is successful, transmit the verified firmware file to the device through a short-range wireless communication connection to trigger the device to burn the new version firmware file into the corresponding hardware module of the device and perform firmware upgrade; Step S6: Receive the upgrade result message from the device for the current independent upgrade item, and forward the upgrade result message to the cloud server; Step S1 is the initialization step executed when the device first connects to the network; steps S2 to S6 are upgrade execution steps that are repeatedly executed in response to various remote upgrade tasks issued by the cloud server during the device's life cycle.
[0041] This embodiment enables low-cost, low-power devices lacking WAN connectivity to achieve the same remote management and secure upgrade capabilities as high-end devices (with WAN connectivity) through a mobile terminal proxy, completely breaking the constraint of hardware cost on upgradeability. Through a collaborative mechanism of "batch tasks - sequential execution," centralized scheduling, sequential control, and atomic feedback are achieved for the upgrade process of multiple modules. This ensures that the upgrade process strictly adheres to the dependencies between modules, avoiding system risks caused by disordered upgrade order, and is particularly suitable for complex systems such as home energy storage devices.
[0042] like Figure 3 As shown, one embodiment of this disclosure provides a remote upgrade method applied to a cloud server, including: Step S10: Receive a user registration request from a mobile terminal and register a family account for the user; wherein, the user is a user of a home energy storage device; Step S20: Obtain the device's WAN connectivity information, and select whether the device has WAN connectivity to complete the device registration, family account binding, and remote upgrade service subscription directly or indirectly through the mobile terminal as a communication proxy between the device and the cloud server, depending on whether the device has WAN connectivity. Step S30: When it is detected that the device has firmware to be upgraded, a batch upgrade task is generated and an upgrade notification is sent to the mobile terminal corresponding to the device. After receiving the user authorization response from the mobile terminal in response to the upgrade notification, the corresponding upgrade method is selected according to the device's WAN connectivity: if the device has WAN connectivity, upgrade instructions are sent directly to the device in sequence according to the batch upgrade task and the upgrade result information fed back by the device is received; if the device does not have WAN connectivity, upgrade instructions are sent to the mobile terminal in sequence according to the batch upgrade task and the upgrade result information forwarded by the mobile terminal from the device is received.
[0043] In this embodiment of the remote upgrade method, the cloud server receives a user registration request from a mobile terminal and registers a family account for the user; wherein the user is a user of a home energy storage device; the server obtains the device's WAN connectivity information and, depending on whether the device has WAN connectivity, selects whether to directly complete the device registration, family account binding, and remote upgrade service subscription through the mobile terminal acting as a communication proxy between the device and the cloud server; when firmware to be upgraded is detected on the device, a batch upgrade task is generated and an upgrade notification is sent to the mobile terminal corresponding to the device; after receiving the user authorization response from the mobile terminal in response to the upgrade notification, the server selects the corresponding upgrade method based on the device's WAN connectivity: if the device has WAN connectivity, upgrade instructions are sent directly to the device according to the batch upgrade task, and the upgrade result information fed back by the device is received; if the device does not have WAN connectivity, upgrade instructions are sent to the mobile terminal according to the batch upgrade task, and the upgrade result information forwarded by the mobile terminal from the device is received. The above remote upgrade method uses centralized cloud control and designs a dual-channel upgrade mechanism to address the differences in network capabilities of home energy storage devices, achieving efficient, reliable, and universally applicable remote firmware upgrades.
[0044] In an exemplary embodiment of this disclosure, the WAN connectivity information of the device is obtained, and based on whether the home energy storage device has WAN connectivity, the device is selected to directly complete or indirectly complete the device registration, family account binding, and remote upgrade service subscription either through the mobile terminal acting as a communication proxy between the device and the cloud server. This includes: If a device registration request is received directly from the home energy storage device, it is determined that the home energy storage device has wide area network connectivity, and this information is recorded. The device registration request carries the device's identification information and the family account's identification information. After verifying the information carried in the device registration request, the device is officially registered and bound to the family account. Based on the MQTT (Message Queuing Telemetry Transport) protocol, a dedicated upgrade status feedback topic for the device is subscribed to. If a device registration request initiated by the mobile terminal is received, it is determined that the home energy storage device does not have wide area network connectivity, and this information is recorded; wherein, the device registration request carries the identification information of the device and the identification information of the family account; after verifying the information carried in the device registration request, the device is officially registered and bound to the family account; a logical subscription relationship between the device and the remote upgrade service is established.
[0045] The above method identifies the network communication capabilities of a device when it first connects to the cloud, and constructs a flexible, adaptive, and scalable device access and service framework, providing a systematic solution for the management of IoT devices in heterogeneous network environments.
[0046] In an exemplary embodiment of this disclosure, when the device has firmware to be upgraded, a batch upgrade task is generated and an upgrade notification is sent to the corresponding mobile terminal, including: When a new firmware version is detected, the aggregation strategy engine will automatically run to generate batch upgrade tasks; The aggregation strategy includes at least one of the following: Based on the dependencies between hardware modules, the firmware of multiple hardware modules that have strong dependencies or need to be upgraded synchronously is aggregated. Aggregate firmware for multiple hardware modules that are released in the same batch within the same time window.
[0047] In one exemplary embodiment of this disclosure, the upgrade notification includes an overview of each individual upgrade item in the batch upgrade task. This overview information is user-friendly text explaining the content of the firmware upgrade; it is part of the user experience design and aims to inform the user of the purpose and benefits of the upgrade, thereby encouraging the user to authorize the upgrade.
[0048] In an exemplary embodiment of this disclosure, the upgrade instruction includes at least one of the following information: firmware version number, download address of firmware file, integrity verification information (e.g., MD5 code), upgrade text, and risk warning information before upgrade.
[0049] In an exemplary embodiment of this disclosure, if the device has wide area network connectivity, upgrade instructions are sequentially sent to the device according to the batch upgrade task, and upgrade result information is received from the device, including: Through the dedicated MQTT remote upgrade service topic subscribed to by the device, upgrade instructions for each independent upgrade item are issued sequentially according to the order of batch upgrade tasks; After issuing the upgrade instruction for each individual upgrade item, obtain the upgrade result information published by the device in the upgrade status feedback topic.
[0050] In an exemplary embodiment of this disclosure, if the device has wide area network connectivity, after issuing upgrade instructions to the device sequentially according to the batch upgrade task and receiving upgrade result information from the device, the method further includes: The upgrade result information of the device is forwarded to the mobile terminal.
[0051] In an exemplary embodiment of this disclosure, the instructions for each independent upgrade item include at least one of the following information: firmware version number, download address of firmware file, integrity verification information (e.g., MD5 code), upgrade text, and risk warning information before upgrade.
[0052] like Figure 4 As shown, one embodiment of this disclosure provides a home energy storage device, including: an information acquisition module 100 and an upgrade module 200; The information acquisition module is configured to acquire device information and determine whether the device has wide area network connectivity based on the information. The upgrade module is configured to perform an autonomous remote upgrade process if it determines that the device has WAN connectivity; and to complete the remote upgrade process using a mobile terminal if it determines that the device does not have WAN connectivity. The mobile terminal acts as a communication proxy between the device and the cloud server.
[0053] In this embodiment, the home energy storage device's information acquisition module acquires device information and determines whether the device has wide area network (WAN) connectivity based on this information. If the upgrade module determines that the device has WAN connectivity, it executes an autonomous remote upgrade process; if it determines that the device does not have WAN connectivity, it completes the remote upgrade process using a mobile terminal. The mobile terminal acts as a communication proxy between the device and the cloud server. This technical solution achieves universality in remote upgrade capabilities for home energy storage devices, enabling all home energy storage devices, regardless of whether they have WAN connectivity, to be included in a unified remote upgrade management system.
[0054] In one exemplary embodiment of this disclosure, the mobile terminal includes: mobile phone, tablet computer, laptop computer, e-reader, wearable smart device, etc.
[0055] In an exemplary embodiment of this disclosure, the information acquisition module is configured to determine whether the device has wide area network (WAN) connectivity based on the information in the following manner: parsing the hardware configuration information in the information; when the hardware configuration information indicates that the device integrates at least one of a wireless local area network (WLAN) access module or a cellular mobile communication module, the device is determined to have WAN connectivity; otherwise, the device is determined not to have WAN connectivity.
[0056] In an exemplary embodiment of this disclosure, the upgrade module is configured to perform an autonomous remote upgrade process by executing the following steps S1-S6: Step S1: Establish a short-range wireless communication connection with the mobile terminal and send device information to the mobile terminal; the information includes device identification information and hardware configuration information; receive home network configuration information and home account identification information returned by the mobile terminal; Step S2: Initiate a device registration request to the cloud server and bind the device to the family account. Subscribe to the device's dedicated remote upgrade service topic based on the MQTT (Message Queuing Telemetry Transport) protocol and create an upgrade status feedback topic for the cloud server to subscribe to; wherein, the device registration request carries the device's identification information and the family account's identification information; Step S3: Receive the upgrade task message published by the cloud server through the upgrade service topic subscribed to by the device; Step S4: Based on the upgrade task message, send a request to the cloud server to download the corresponding new version firmware file, and perform integrity verification and security verification on the downloaded firmware file; Step S5: After successful verification, according to the target module identifier in the upgrade task message, the new firmware file is burned into the corresponding hardware module of this device to perform firmware upgrade; Step S6: Publish the upgrade result information to the upgrade status feedback topic.
[0057] Steps S1 and S2 are initialization steps performed when the device first accesses the network; steps S3 to S6 are upgrade execution steps that are repeatedly performed in response to various upgrade tasks issued by the cloud server during the device's lifecycle.
[0058] In one exemplary embodiment of this disclosure, the upgrade result information includes: an indication of successful upgrade and the updated firmware version number, or an indication of failed upgrade and a failure error code.
[0059] In an exemplary embodiment of this disclosure, the hardware module includes at least one of the following: a battery management system, an inverter module, a communication controller module, an energy management unit, and a safety protection module.
[0060] In an exemplary embodiment of this disclosure, the upgrade module is configured to perform an autonomous remote upgrade process in the following manner: when the remote upgrade task message contains multiple independent upgrade items, each independent upgrade item is upgraded sequentially; after completing the upgrade process for any independent upgrade item, the upgrade result information for that item is fed back to the cloud server.
[0061] In an exemplary embodiment of this disclosure, the upgrade module is configured to complete the remote upgrade process via a mobile terminal by executing the following steps S1-S3: Step S1: Establish a short-range wireless communication connection with the mobile terminal and send device information to the mobile terminal; wherein, the mobile terminal acts as the registration agent of the device, initiates a device registration request to the cloud server and binds the device to the corresponding family account, establishing a logical subscription relationship between the device and the remote upgrade service; the device information includes the device's identification information and hardware configuration information; the device registration request carries the device's identification information and the family account's identification information; Step S2: Receive the verified firmware file sent by the mobile terminal via a short-range wireless communication connection, and burn it to the target hardware module to perform a firmware upgrade; wherein, after receiving the remote upgrade task notification pushed by the cloud server according to the logical subscription relationship, the mobile terminal parses the notification to obtain the description information and verification credentials of the target firmware file, downloads the corresponding new version firmware file from the cloud server according to the description information, performs integrity verification and security verification on the downloaded firmware file using the verification credentials, and only transmits the verified firmware file to the device via a short-range wireless communication connection after successful verification; Step S3: Send an upgrade result message to the mobile terminal, and the mobile terminal forwards the upgrade result message to the cloud server; Step S1 is the initialization step executed when the device first accesses the network; steps S2 to S3 are upgrade execution steps that are repeatedly executed in response to various upgrade tasks issued by the cloud server during the device's life cycle.
[0062] In an exemplary embodiment of this disclosure, the upgrade module is configured to complete the remote upgrade process using a mobile terminal in the following manner: when the upgrade task message contains multiple independent upgrade items, the mobile terminal sequentially performs the following processing for each independent upgrade item: parsing the upgrade item, downloading the corresponding firmware file, verifying the downloaded file, and transmitting the verified file to the device; the device sequentially performs upgrade operations according to the received firmware file; after completing the upgrade operation for any independent upgrade item, the device sends an upgrade result message for that item to the mobile terminal, and the mobile terminal forwards the upgrade result message to the cloud server.
[0063] In an exemplary embodiment of this disclosure, the instructions for each independent upgrade item include at least one of the following information: firmware version number, download address of firmware file, integrity verification information (e.g., MD5 code), upgrade text, and risk warning information before upgrade.
[0064] like Figure 5 As shown, one embodiment of this disclosure provides a mobile terminal, including: a user registration module 100, an information acquisition module 200, and an upgrade module 300; The user registration module is configured to send a user registration request to the cloud server and obtain the family account assigned by the cloud server to the user of the home energy storage device. The information acquisition module is configured to establish a short-range wireless communication connection with the home energy storage device, acquire information about the device, and determine whether the device has wide area network connectivity based on the information. The upgrade module is configured to send home network configuration information and home account identification information to the device if it determines that the device has WAN connectivity, so that the device can perform an autonomous remote upgrade process; if it determines that the device does not have WAN connectivity, it acts as a communication proxy between the device and the cloud server and performs a proxy upgrade process.
[0065] In this embodiment, the mobile terminal establishes a short-range wireless communication connection with the home energy storage device, acquires the device's information, and determines whether the device has wide area network (WAN) connectivity based on this information. If the upgrade module determines that the device has WAN connectivity, it sends home network configuration information and home account identification information to the device, enabling the device to autonomously complete registration and binding in the cloud. If the module determines that the device does not have WAN connectivity, it acts as a communication proxy between the device and the cloud server, executing a proxy upgrade process. This remote upgrade method adaptively adapts to the two remote upgrade modes of home energy storage devices on the mobile terminal side. On the one hand, it enables high-end home energy storage devices with built-in WAN connectivity to conveniently and autonomously complete the entire upgrade process; on the other hand, it enables low-complexity, low-cost home energy storage devices without WAN connectivity to obtain the same remotely manageable upgrade capabilities as high-end devices through the proxy capability of the mobile terminal. This fundamentally breaks the limitation of device hardware cost on upgradeability, greatly expands the physical form and cost boundaries of home energy storage devices that can support remote upgrades, and provides a convenient and reliable solution for the large-scale deployment and operation and maintenance of IoT devices.
[0066] In one exemplary embodiment of this disclosure, the mobile terminal includes: mobile phone, tablet computer, laptop computer, e-reader, wearable smart device, etc.
[0067] In an exemplary embodiment of this disclosure, the information acquisition module is configured to determine whether the device has wide area network (WAN) connectivity capability based on the device's information in the following manner: parsing the hardware configuration information in the device's information; when the hardware configuration information indicates that the device integrates at least one of a wireless local area network (WLAN) access module or a cellular mobile communication module, determining that the device has WAN connectivity capability; otherwise, determining that the device does not have WAN connectivity capability.
[0068] In an exemplary embodiment of this disclosure, the agent upgrade process includes: registration and binding, establishing a subscription relationship, obtaining upgrade files and transmitting them to the device, and receiving upgrade result information from the device and transmitting it to the cloud server.
[0069] In an exemplary embodiment of this disclosure, the upgrade module is configured to send home network configuration information and home account identification information to the device by performing the following steps S1-S4, so that the device can perform an autonomous remote upgrade process: Step S1: Send home network configuration information and home account identification information to the device so that the device can use the information to complete cloud registration, account binding and MQTT service subscription; Step S2: Receive a batch upgrade task notification pushed by the cloud server based on the MQTT service subscribed to by the device, which contains an overview of at least one independent upgrade item; Step S3: Show the user the overview information in the batch upgrade task notification, and after obtaining unified authorization from the user, send an authorization confirmation to the cloud server so that the cloud server can send upgrade instructions for each independent upgrade item to the device in sequence. Step S4: Receive the final upgrade results of all firmware in the current batch of the device from the cloud server and present them to the user; Step S1 is the initialization step executed when the device first connects to the network; steps S2 to S4 are upgrade execution steps that are repeatedly executed in response to various remote upgrade tasks issued by the cloud server during the device's life cycle.
[0070] The overview information is user-friendly text explaining the content of this firmware upgrade. It is part of the user experience design and aims to inform users of the purpose and benefits of the upgrade in order to encourage users to authorize the upgrade.
[0071] In one exemplary embodiment of this disclosure, the upgrade result information includes: an indication of successful upgrade and the updated firmware version number, or an indication of failed upgrade and a failure error code.
[0072] This embodiment, in the efficient path of autonomous device upgrades, introduces a mobile terminal as a user authorization agent as a control node. This ensures that each upgrade is no longer a silent process but a controllable upgrade requiring user knowledge and permission, achieving an optimal balance between automation and user control. It constructs a unified device management experience and status visibility: regardless of the device's capabilities, the mobile terminal serves as a unified control panel and status dashboard for managing all devices. Users do not need to learn how to manage different devices or check status on multiple platforms; they can complete upgrade authorization and progress monitoring for all devices directly on the mobile terminal, achieving centralized and visualized management.
[0073] In an exemplary embodiment of this disclosure, the upgrade module is configured to act as a communication proxy between the device and the cloud server by performing the following steps S1-S6, thereby executing a proxy upgrade process: Step S1: Extract the device's identification information from the device's information, use it as the device's registration agent, initiate a device registration request to the cloud server, bind the device to the corresponding family account, and establish a logical subscription relationship between the device and the remote upgrade service; wherein, the device registration request carries the device's identification information and the family account's identification information; Step S2: Receive a batch upgrade task notification pushed by the cloud server according to the logical subscription relationship, which contains an overview of at least one independent upgrade item; Step S3: Show the user the overview information in the batch upgrade task notification, and after obtaining unified authorization from the user, send authorization confirmation to the cloud server; Step S4: Receive upgrade instructions for each independent upgrade item sequentially from the cloud server in response to the authorization confirmation; Step S5: For the upgrade instruction of the currently received independent upgrade item, download the corresponding new version firmware file from the cloud server, and perform integrity verification and security verification using the verification credentials provided by the cloud; only after the verification is successful, transmit the verified firmware file to the device through a short-range wireless communication connection to trigger the device to burn the new version firmware file into the corresponding hardware module of the device and perform firmware upgrade; Step S6: Receive the upgrade result message from the device for the current independent upgrade item, and forward the upgrade result message to the cloud server; Step S1 is the initialization step executed when the device first connects to the network; steps S2 to S6 are upgrade execution steps that are repeatedly executed in response to various remote upgrade tasks issued by the cloud server during the device's life cycle.
[0074] This embodiment enables low-cost, low-power devices lacking WAN connectivity to achieve the same remote management and secure upgrade capabilities as high-end devices (with WAN connectivity) through a mobile terminal proxy, completely breaking the constraint of hardware cost on upgradeability. Through a collaborative mechanism of "batch tasks - sequential execution," centralized scheduling, sequential control, and atomic feedback are achieved for the upgrade process of multiple modules. This ensures that the upgrade process strictly adheres to the dependencies between modules, avoiding system risks caused by disordered upgrade order, and is particularly suitable for complex systems such as home energy storage devices.
[0075] like Figure 6As shown, one embodiment of this disclosure provides a cloud server, including: a first registration module 100, a second registration module 200, and an upgrade module 300; The first registration module is configured to receive user registration requests from mobile terminals and register family accounts for the users; wherein, the users are users of home energy storage devices; The second registration module is set to obtain the device's WAN connectivity information and, depending on whether the device has WAN connectivity, select whether to complete the device registration directly or indirectly through the mobile terminal as a communication proxy between the device and the cloud server, complete the device registration, family account binding, and remote upgrade service subscription. The upgrade module is configured to, when detecting firmware updates to be performed on the device, aggregate and generate batch upgrade tasks and send upgrade notifications to the mobile terminal corresponding to the device; after receiving a user authorization response from the mobile terminal in response to the upgrade notification, select the corresponding upgrade method based on the device's WAN connectivity: if the device has WAN connectivity, upgrade instructions are sent directly to the device sequentially according to the batch upgrade tasks, and the upgrade result information fed back by the device is received; if the device does not have WAN connectivity, upgrade instructions are sent sequentially to the mobile terminal according to the batch upgrade tasks, and the upgrade result information forwarded by the mobile terminal from the device is received.
[0076] In this embodiment, the cloud server has a first registration module that receives a user registration request from a mobile terminal and registers a family account for the user; wherein the user is a user of a home energy storage device; a second registration module obtains the device's WAN connectivity information and, depending on whether the device has WAN connectivity, selects whether to complete the device registration, family account binding, and remote upgrade service subscription directly or indirectly through the mobile terminal as a communication proxy between the device and the cloud server; when the upgrade module detects that the device has firmware to be upgraded, it aggregates and generates batch upgrade tasks and sends upgrade notifications to the mobile terminal corresponding to the device; after receiving the user authorization response from the mobile terminal in response to the upgrade notification, it selects the corresponding upgrade method according to the device's WAN connectivity: if the device has WAN connectivity, it directly sends upgrade instructions to the device sequentially according to the batch upgrade tasks and receives upgrade result information from the device; if the device does not have WAN connectivity, it sends upgrade instructions to the mobile terminal sequentially according to the batch upgrade tasks and receives upgrade result information from the device forwarded by the mobile terminal. The aforementioned remote upgrade method is centrally controlled via the cloud and features a dual-channel upgrade mechanism designed to address the differences in network capabilities of home energy storage devices, enabling efficient, reliable, and universally applicable remote firmware upgrades.
[0077] In an exemplary embodiment of this disclosure, the second registration module is configured to, upon receiving a device registration request directly initiated by the home energy storage device, determine that the home energy storage device has wide area network (WAN) connectivity and record this information; wherein the device registration request carries the device's identification information and the family account's identification information; after verifying the information carried in the device registration request, formally register the device and bind it to the family account; subscribe to the device's dedicated upgrade status feedback topic based on the MQTT (Message Queuing Telemetry Transport) protocol; if a device registration request is received from the mobile terminal, determine that the home energy storage device does not have WAN connectivity and record this information; wherein the device registration request carries the device's identification information and the family account's identification information; after verifying the information carried in the device registration request, formally register the device and bind it to the family account; and establish a logical subscription relationship between the device and the remote upgrade service.
[0078] This embodiment identifies the device's network communication capabilities when the device first connects to the cloud, and constructs a flexible, adaptive, and scalable device access and service framework, providing a systematic solution for IoT device management in heterogeneous network environments.
[0079] In an exemplary embodiment of this disclosure, the upgrade module is configured to aggregate and generate batch upgrade tasks and send upgrade notifications to the corresponding mobile terminals when the device has firmware to be upgraded, in the following manner: when a new firmware version is detected, the aggregation strategy engine is automatically run to generate batch upgrade tasks; The aggregation strategy includes at least one of the following: Based on the dependencies between hardware modules, the firmware of multiple hardware modules that have strong dependencies or need to be upgraded synchronously is aggregated. Aggregate firmware for multiple hardware modules that are released in the same batch within the same time window.
[0080] In one exemplary embodiment of this disclosure, the upgrade notification includes an overview of each individual upgrade item in the batch upgrade task. This overview information is user-friendly text explaining the content of the firmware upgrade; it is part of the user experience design and aims to inform the user of the purpose and benefits of the upgrade, thereby encouraging the user to authorize the upgrade.
[0081] In an exemplary embodiment of this disclosure, the upgrade instruction includes at least one of the following information: firmware version number, download address of firmware file, integrity verification information (e.g., MD5 code), upgrade text, and risk warning information before upgrade.
[0082] In an exemplary embodiment of this disclosure, the upgrade module is configured to, if the device has wide area network connectivity, directly issue upgrade instructions to the device sequentially according to the batch upgrade tasks and receive upgrade result information from the device in the following manner: through the dedicated MQTT remote upgrade service topic subscribed by the device, issue upgrade instructions for each independent upgrade item sequentially according to the order of the batch upgrade tasks; after issuing the upgrade instructions for each independent upgrade item, obtain the upgrade result information issued by the device in the upgrade status feedback topic.
[0083] In an exemplary embodiment of this disclosure, the upgrade module is further configured to, if the device has wide area network connectivity, directly send upgrade instructions to the device sequentially according to the batch upgrade task and receive the upgrade result information fed back by the device, and then forward the final upgrade results of all firmware in the current batch of the device to the mobile terminal.
[0084] In an exemplary embodiment of this disclosure, the instructions for each independent upgrade item include at least one of the following information: firmware version number, download address of firmware file, integrity verification information (e.g., MD5 code), upgrade text, and risk warning information before upgrade.
[0085] This application provides a remote upgrade system, including: a home energy storage device, a mobile terminal, and a cloud server.
[0086] like Figure 7 As shown, this application embodiment provides a remote upgrade device, including: a memory and a processor. The memory stores a computer program, and when the computer program is executed by the processor, it implements the steps of the remote upgrade method applied to home energy storage devices, or the steps of the remote upgrade method applied to mobile terminals, or the steps of the remote upgrade method applied to cloud servers.
[0087] This disclosure provides a home energy storage device, including: a memory and a processor. The memory stores a computer program, and when the computer program is executed by the processor, it implements the steps of the remote upgrade method applied to the home energy storage device described above.
[0088] This disclosure provides a mobile terminal, including a memory and a processor. The memory stores a computer program, which, when executed by the processor, implements the steps of the remote upgrade method applied to the mobile terminal described above.
[0089] This disclosure provides a cloud server, including a memory and a processor. The memory stores a computer program, which, when executed by the processor, implements the steps of the remote upgrade method applied to the cloud server described above.
[0090] This application provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the above-described remote upgrade method.
[0091] Example 1 like Figure 8 As shown, a remote upgrade method for a home energy storage device (including a Wi-Fi module and a Bluetooth module) may include the following steps: Step S1: The mobile terminal (user app) sends a user registration request to the cloud server (cloud server) to obtain the family account assigned by the cloud server to the user of the home energy storage device (hereinafter referred to as the device); Step S2: The device (device end) establishes a Bluetooth connection with the mobile terminal and sends device information to the mobile terminal; the information includes the device's identification information and hardware configuration information; Step S3: The mobile terminal parses the hardware configuration information of the device. When it detects that the device's communication module integrates a Wi-Fi module, it determines that the device has wide area network connectivity and sends home network (home local area network built by Wi-Fi router) configuration information and home account identification information to the device. Step S4: The device completes network configuration to access the Internet based on the home network configuration information returned by the mobile terminal, initiates a device registration request to the cloud server and binds the device to the home account, subscribes to the device's dedicated remote upgrade service topic based on the MQTT (Message Queuing Telemetry Transport) protocol and creates an upgrade status feedback topic for the cloud server to subscribe to; wherein, the device registration request carries the device's identification information and the home account's identification information; Step S5: When the cloud server detects that the device has firmware to be upgraded, it aggregates and generates batch upgrade tasks and sends upgrade notifications to the mobile terminals corresponding to the devices. Step S6: The mobile terminal displays an overview of the batch upgrade task notification to the user, and after obtaining unified authorization from the user, sends an authorization confirmation to the cloud server; Step S7: The cloud server publishes upgrade instructions for each independent upgrade item in the order of the batch upgrade tasks through the dedicated MQTT remote upgrade service topic subscribed to by the device. Step S8: For each independent upgrade instruction, the device sends a request to the cloud server to download the corresponding new version firmware file, and performs integrity verification and security verification on the downloaded firmware file; after the verification is successful, the new version firmware file is burned into the corresponding hardware module of the device according to the target module identifier in the upgrade instruction, and the firmware upgrade is performed. Step S9: After each firmware upgrade is completed, the device publishes upgrade result information to the upgrade status feedback topic; Step S10: The cloud sends the final upgrade results of all firmware in the current batch of the device to the mobile terminal.
[0092] Example 2 like Figure 9 As shown, a remote upgrade method for a home energy storage device (with only a Bluetooth module) may include the following steps: Step S1: The mobile terminal (user app) sends a user registration request to the cloud server (cloud server) to obtain the family account assigned by the cloud server to the user of the home energy storage device (hereinafter referred to as the device); Step S2: The device (device end) establishes a Bluetooth connection with the mobile terminal and sends device information to the mobile terminal; the information includes the device's identification information and hardware configuration information; Step S3: The mobile terminal parses the hardware configuration information of the device. When it detects that the device's communication module only has a Bluetooth module, it determines that the device does not have wide area network connectivity and determines itself to act as a communication proxy between the device and the cloud server. Step S4: The mobile terminal extracts the device's identification information from the device's information, uses it as the device's registration agent, initiates a device registration request to the cloud server, binds the device to the corresponding family account, and establishes a logical subscription relationship between the device and the remote upgrade service; wherein, the device registration request carries the device's identification information and the family account's identification information; Step S5: The mobile terminal receives a batch upgrade task notification pushed by the cloud server according to the logical subscription relationship, which contains an overview of at least one independent upgrade item. Step S6: The mobile terminal displays an overview of the batch upgrade task notification to the user, and after obtaining unified authorization from the user, sends an authorization confirmation to the cloud server; Step S7: The mobile terminal receives upgrade instructions for each independent upgrade item sequentially from the cloud server in response to the authorization confirmation; Step S8: For the upgrade instruction of the currently received independent upgrade item, the mobile terminal downloads the corresponding new version firmware file from the cloud server and performs integrity verification and security verification using the verification credentials provided by the cloud; only after the verification is successful, the verified firmware file is transmitted to the device via a short-range wireless communication connection; Step S9: The device burns the new firmware file into the corresponding hardware module of the device and performs a firmware upgrade; Step S10: The device sends an upgrade result message to the mobile terminal for the current independent upgrade item; In step S11, the mobile terminal forwards the upgrade result message of each firmware to the cloud server in sequence.
[0093] It will be understood by those skilled in the art that all or some of the steps, systems, or apparatuses disclosed above, and their functional modules / units, can be implemented as software, firmware, hardware, or suitable combinations thereof. In hardware implementations, the division between functional modules / units mentioned above does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed collaboratively by several physical components. Some or all components may be implemented as software executed by a processor, such as a digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit (ASIC). Such software may be distributed on a computer-readable medium, which may include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term "computer storage medium" includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.
[0094] Furthermore, the terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined with "first," "second," etc., may explicitly or implicitly include at least one of that feature. In the description of this disclosure, "a plurality of" means at least two, such as two, three, etc., unless otherwise explicitly specified.
[0095] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this disclosure. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
Claims
1. A remote upgrade method for home energy storage devices, comprising: Obtain device information and determine whether the device has wide area network connectivity based on the information; If it is determined that the device has wide area network connectivity, then an autonomous remote upgrade process is executed; If it is determined that the device does not have wide area network connectivity, a remote upgrade process is completed using a mobile terminal; wherein, the mobile terminal acts as a communication proxy between the device and the cloud server.
2. The method according to claim 1, characterized in that: Determining whether this device has WAN connectivity based on the information provided includes: The hardware configuration information in the information is parsed; if the hardware configuration information indicates that the device integrates at least one of a wireless local area network access module or a cellular mobile communication module, it is determined that the device has wide area network connectivity capability; otherwise, it is determined that the device does not have wide area network connectivity capability.
3. The method according to claim 1, characterized in that: Perform the autonomous remote upgrade process, including the following steps S1-S6: Step S1: Establish a short-range wireless communication connection with the mobile terminal and send device information to the mobile terminal; the information includes device identification information and hardware configuration information; receive home network configuration information and home account identification information returned by the mobile terminal; Step S2: Initiate a device registration request to the cloud server and bind the device to the family account. Subscribe to the device's dedicated remote upgrade service topic based on the message queue telemetry transmission protocol and create an upgrade status feedback topic for the cloud server to subscribe to; wherein, the device registration request carries the device's identification information and the family account's identification information; Step S3: Receive the upgrade task message published by the cloud server through the upgrade service topic subscribed to by the device; Step S4: Based on the upgrade task message, send a request to the cloud server to download the corresponding new version firmware file, and perform integrity verification and security verification on the downloaded firmware file; Step S5: After successful verification, according to the target module identifier in the upgrade task message, the new firmware file is burned into the corresponding hardware module of this device to perform firmware upgrade; Step S6: Publish the upgrade result information to the upgrade status feedback topic; Steps S1 and S2 are initialization steps performed when the device first accesses the network; steps S3 to S6 are upgrade execution steps that are repeatedly performed in response to various upgrade tasks issued by the cloud server during the device's lifecycle.
4. The method according to claim 3, characterized in that: The device performs an autonomous remote upgrade process, including: When the remote upgrade task message contains multiple independent upgrade items, each independent upgrade item is upgraded sequentially; after completing the upgrade process for any independent upgrade item, the upgrade result information for that item is fed back to the cloud server.
5. The method according to claim 1, characterized in that: The remote upgrade process is completed using a mobile terminal, including the following steps S1-S3: Step S1: Establish a short-range wireless communication connection with the mobile terminal and send device information to the mobile terminal; wherein, the mobile terminal acts as the registration agent of the device, initiates a device registration request to the cloud server and binds the device to the corresponding family account, establishing a logical subscription relationship between the device and the remote upgrade service; the device information includes the device's identification information and hardware configuration information; the device registration request carries the device's identification information and the family account's identification information; Step S2: Receive the verified firmware file sent by the mobile terminal via a short-range wireless communication connection, and burn it to the target hardware module to perform a firmware upgrade; wherein, after receiving the remote upgrade task notification pushed by the cloud server according to the logical subscription relationship, the mobile terminal parses the notification to obtain the description information and verification credentials of the target firmware file, downloads the corresponding new version firmware file from the cloud server according to the description information, performs integrity verification and security verification on the downloaded firmware file using the verification credentials, and only transmits the verified firmware file to the device via a short-range wireless communication connection after successful verification; Step S3: Send an upgrade result message to the mobile terminal, and the mobile terminal forwards the upgrade result message to the cloud server; Step S1 is the initialization step executed when the device first accesses the network; steps S2 to S3 are upgrade execution steps that are repeatedly executed in response to various upgrade tasks issued by the cloud server during the device's life cycle.
6. The method according to claim 5, characterized in that: The remote upgrade process can be completed using a mobile device, including: When the upgrade task message contains multiple independent upgrade items, the mobile terminal performs the following processes for each independent upgrade item in sequence: parsing the upgrade item, downloading the corresponding firmware file, verifying the downloaded file, and transmitting the verified file to the device. The device sequentially performs upgrade operations based on the received firmware files; After completing the upgrade operation for any independent upgrade item, the device sends an upgrade result message for that item to the mobile terminal, and the mobile terminal forwards the upgrade result message to the cloud server.
7. A remote upgrade method, applied to a mobile terminal, comprising: Send a user registration request to the cloud server to obtain the family account assigned by the cloud server to the user of the home energy storage device; Establish a short-range wireless communication connection with a home energy storage device, obtain information about the device, and determine whether the device has wide area network connectivity based on the information. If it is determined that the device has wide area network connectivity, then home network configuration information and home account identification information are sent to the device to enable the device to perform an autonomous remote upgrade process; If it is determined that the device does not have WAN connectivity, then it acts as a communication proxy between the device and the cloud server, and performs a proxy upgrade process.
8. The method according to claim 7, characterized in that: Sending home network configuration information and home account identification information to the device to enable the device to perform an autonomous remote upgrade process, including performing the following steps S1-S4: Step S1: Send home network configuration information and home account identification information to the device so that the device can use the information to complete cloud registration, account binding and MQTT service subscription; Step S2: Receive a batch upgrade task notification pushed by the cloud server based on the MQTT service subscribed to by the device, which contains an overview of at least one independent upgrade item; Step S3: Show the user the overview information in the batch upgrade task notification, and after obtaining unified authorization from the user, send an authorization confirmation to the cloud server so that the cloud server can send upgrade instructions for each independent upgrade item to the device in sequence. Step S4: Receive the upgrade result information of the device from the cloud server and present it to the user; Step S1 is the initialization step executed when the device first connects to the network; steps S2 to S4 are upgrade execution steps that are repeatedly executed in response to various remote upgrade tasks issued by the cloud server during the device's life cycle.
9. The method according to claim 7, characterized in that: As a communication proxy between the device and the cloud server, it performs the proxy upgrade process, including the following steps S1-S6: Step S1: Extract the device's identification information from the device's information, use it as the device's registration agent, initiate a device registration request to the cloud server, bind the device to the corresponding family account, and establish a logical subscription relationship between the device and the remote upgrade service; wherein, the device registration request carries the device's identification information and the family account's identification information; Step S2: Receive a batch upgrade task notification pushed by the cloud server according to the logical subscription relationship, which contains an overview of at least one independent upgrade item; Step S3: Show the user the overview information in the batch upgrade task notification, and after obtaining unified authorization from the user, send authorization confirmation to the cloud server; Step S4: Receive upgrade instructions for each independent upgrade item sequentially from the cloud server in response to the authorization confirmation; Step S5: For the upgrade instruction of the currently received independent upgrade item, download the corresponding new version firmware file from the cloud server, and perform integrity verification and security verification using the verification credentials provided by the cloud; only after the verification is successful, transmit the verified firmware file to the device through a short-range wireless communication connection to trigger the device to burn the new version firmware file into the corresponding hardware module of the device and perform firmware upgrade; Step S6: Receive the upgrade result message from the device for the current independent upgrade item, and forward the upgrade result message to the cloud server; Step S1 is the initialization step executed when the device first connects to the network; steps S2 to S6 are upgrade execution steps that are repeatedly executed in response to various remote upgrade tasks issued by the cloud server during the device's life cycle.
10. A remote upgrade method applied to a cloud server, comprising: Receive a user registration request from a mobile terminal and register a family account for the user; wherein the user is a user of a home energy storage device; Obtain the device's WAN connectivity information, and depending on whether the device has WAN connectivity, select whether to complete the device registration, family account binding, and remote upgrade service subscription directly or indirectly through the mobile terminal as a communication proxy between the device and the cloud server. When firmware upgrades are detected on the device, a batch upgrade task is generated and an upgrade notification is sent to the mobile terminal corresponding to the device. After receiving the user authorization response from the mobile terminal in response to the upgrade notification, the corresponding upgrade method is selected according to the device's WAN connectivity: if the device has WAN connectivity, upgrade instructions are sent directly to the device in sequence according to the batch upgrade task, and the upgrade result information fed back by the device is received; if the device does not have WAN connectivity, upgrade instructions are sent to the mobile terminal in sequence according to the batch upgrade task, and the upgrade result information forwarded by the mobile terminal from the device is received.
11. The method according to claim 10, characterized in that: Obtain the device's WAN connectivity information, and based on whether the home energy storage device has WAN connectivity, select whether to directly complete the device registration, family account binding, and remote upgrade service subscription through the mobile terminal acting as a communication proxy between the device and the cloud server, including: If a device registration request is received directly from the home energy storage device, it is determined that the home energy storage device has wide area network connectivity, and this information is recorded; wherein, the device registration request carries the identification information of the device and the identification information of the family account; after verifying the information carried in the device registration request, the device is officially registered and bound to the family account; and the device's dedicated upgrade status feedback topic is subscribed to based on the message queue telemetry transmission protocol. If a device registration request initiated by the mobile terminal is received, it is determined that the home energy storage device does not have wide area network connectivity, and this information is recorded; wherein, the device registration request carries the identification information of the device and the identification information of the family account; after verifying the information carried in the device registration request, the device is officially registered and bound to the family account; a logical subscription relationship between the device and the remote upgrade service is established.
12. The method according to claim 11, characterized in that: When the device has firmware to be upgraded, a batch upgrade task is generated and an upgrade notification is sent to the corresponding mobile terminal, including: When a new firmware version is detected, the aggregation strategy engine will automatically run to generate batch upgrade tasks; The aggregation strategy includes at least one of the following: Based on the dependencies between hardware modules, the firmware of multiple hardware modules that have strong dependencies or need to be upgraded synchronously is aggregated. Aggregate firmware for multiple hardware modules that are released in the same batch within the same time window.
13. A household energy storage device, comprising: A memory and a processor, wherein the memory stores a computer program that, when executed by the processor, implements the steps of the remote upgrade method according to any one of claims 1-6.
14. A mobile terminal, comprising: A memory and a processor, the memory storing a computer program that, when executed by the processor, implements the steps of the remote upgrade method according to any one of claims 7-9.
15. A cloud server, comprising: A memory and a processor, the memory storing a computer program that, when executed by the processor, implements the steps of the remote upgrade method according to any one of claims 10-12.