Data transmission method and household energy storage system

By dynamically switching between WiFi and Bluetooth links in the home energy storage system, the problem of unstable data transmission in the home environment is solved, achieving stability and reliability of data transmission and ensuring the normal operation of the home energy storage system.

CN121815307APending Publication Date: 2026-04-07SHENZHEN HELLO TECH ENERGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-05
Publication Date
2026-04-07

AI Technical Summary

Technical Problem

In home energy storage systems, data transmission is unstable due to factors in the home environment, especially the high packet loss rate of WiFi links and the low transmission rate of Bluetooth, making it difficult to meet the transmission requirements of high-speed, low-latency data such as HEMS adjustment commands and battery overcharge/over-discharge alarms.

Method used

By monitoring the status of WiFi and Bluetooth links, one is dynamically selected as the primary link and the other as the backup link. When the primary link loses packets, the system switches to the backup link to retransmit the data. Combined with data fragmentation, priority transmission, and link status monitoring, the data transmission strategy is optimized.

Benefits of technology

It significantly improves the stability and reliability of data transmission, avoids link instability caused by a single communication method, and ensures the real-time charging and discharging control and safety protection of home energy storage systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121815307A_ABST
    Figure CN121815307A_ABST
Patent Text Reader

Abstract

The invention discloses a data transmission method and a household energy storage system, and the data transmission method is used for the household energy storage system, and comprises the steps: monitoring the states of a WiFi link and a Bluetooth link; based on the states of the WiFi link and the Bluetooth link, taking one of the WiFi link and the Bluetooth link as a main link, and taking the other of the WiFi link and the Bluetooth link as a supplementary transmission link; a main link is adopted to transmit data; and when the main link loses packets, the lost packets of the main link are subjected to supplementary transmission by adopting the supplementary transmission link. Therefore, according to the data transmission method provided by the invention, the main link for transmitting complete data and the supplementary transmission link for supplementary transmission of lost packets are switched through the states of the WiFi link and the Bluetooth link, and data transmission is carried out by using double links, so that the stability of the data is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of energy storage technology, and in particular to a data transmission method for a home energy storage system and a home energy storage system. Background Technology

[0002] Home energy storage systems require real-time exchange of various key data, such as the battery's SOC (State of Charge) and SOH (State of Health), inverter output power, grid interconnection power, and load power consumption data. The efficient transmission of this data directly impacts the energy storage system's charging and discharging control, safety protection, and energy dispatch. However, due to factors in the home environment, data transmission is often unstable. Summary of the Invention

[0003] This application provides a data transmission method, data transmission device, home energy storage system, and storage medium for a home energy storage system.

[0004] The data transmission method of this application includes: Monitor the status of WiFi and Bluetooth links; Based on the status of the WiFi link and the Bluetooth link, one of the WiFi link and the Bluetooth link is designated as the primary link, and the other is designated as the supplementary transmission link; Data is transmitted using the aforementioned main link; When the main link loses packets, the retransmission link is used to retransmit the lost packets from the main link.

[0005] In some implementations, the step of designating one of the WiFi link and the Bluetooth link as the primary link and the other as a retransmission link based on the states of the WiFi link and the Bluetooth link includes: If the packet loss rate of the WiFi link is less than or equal to a preset packet loss value, the WiFi link will be used as the main link and the Bluetooth link will be used as the retransmission link. If the packet loss rate of the WiFi link is greater than the preset packet loss value, the Bluetooth link will be used as the main link and the WiFi link will be used as the retransmission link.

[0006] In some embodiments, the data transmission method further includes: When the data exceeds a preset number of bytes, the data is fragmented so that the main link or the supplementary transmission link can transmit the fragmented data.

[0007] In some implementations, transmitting complete data using the main link includes: The data is divided into multiple priorities based on the response time requirement; The main link is used to transmit data based on the priority of the data.

[0008] In some implementations, the use of the main link to transmit data based on the priority of the data includes: When the data has multiple priorities, the bandwidth ratio of the main link is allocated according to the priority of the data, wherein the higher the priority of the data, the larger the allocated bandwidth ratio; Based on the allocated bandwidth percentage, the data of each priority level is transmitted using the main link.

[0009] In some implementations, the use of the main link to transmit data based on the priority of the data includes: When the highest priority data transmission is triggered, the bandwidth of the main link is allocated to the highest priority data for other priority data, and the main link transmits the data according to the allocated bandwidth.

[0010] In some implementations, the use of the main link to transmit data based on the priority of the data includes: The data with the lowest priority is transmitted using the main link during off-peak electricity hours.

[0011] In some embodiments, the data transmission method further includes: When no data transmission requirement is detected, the WiFi module is controlled to enter deep sleep mode, and the Bluetooth module is controlled to enter periodic wake-up mode. When a data transmission request other than the lowest priority is detected, the Bluetooth module is controlled to wake up the WiFi module.

[0012] In some embodiments, the data transmission method further includes: If the amount of the lowest priority data exceeds a predetermined amount, the lowest priority data will be compressed before transmission.

[0013] In some embodiments, the data transmission method further includes: When the power of the home energy storage system is less than or equal to the preset power and the energy storage power is not being charged, the WiFi link is turned off and the highest priority data is transmitted using the Bluetooth link.

[0014] This application also provides a data transmission device, including: The monitoring module is used to monitor the status of the WiFi and Bluetooth links; The determination module is used to determine, based on the states of the WiFi link and the Bluetooth link, one of the WiFi link and the Bluetooth link as the primary link and the other as the supplementary transmission link; The transmission module is used to transmit data using the main link, and to retransmit lost packets of the main link using the retransmission link when packets are lost on the main link.

[0015] This application also provides a home energy storage system, including a memory and a processor. The memory stores a computer-readable program, and the processor executes the computer-readable program to implement the steps of the data transmission method.

[0016] This application also provides a computer-readable storage medium storing one or more computer programs that can be executed by one or more processors to implement the data transmission method described above.

[0017] In the data transmission method, data transmission device, home energy storage system, and storage medium of this application, the main link used for transmitting complete data and the supplementary transmission link used for retransmitting lost packets are switched by the states of the WiFi link and the Bluetooth link, and data transmission is carried out using dual links, which improves the stability of the data. Attached Figure Description

[0018] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the following description of the embodiments taken in conjunction with the accompanying drawings, wherein: Figure 1 This is a flowchart illustrating a data transmission method according to certain embodiments of this application.

[0019] Figure 2 This is a schematic diagram of a data transmission device according to certain embodiments of this application.

[0020] Figure 3-10 This is a flowchart illustrating a data transmission method according to certain embodiments of this application. Detailed Implementation

[0021] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain this application, and should not be construed as limiting this application.

[0022] Home energy storage systems require real-time exchange of various key data, such as the battery's SOC (State of Charge) and SOH (State of Health), inverter output power, grid-connected power, and load power consumption data. The efficient transmission of this data directly impacts the energy storage system's charging and discharging control, safety protection, and energy dispatch. However, factors in the home environment, such as wall obstructions, electromagnetic interference from appliances (e.g., microwave ovens, routers), channel congestion, and long distances, lead to high packet loss rates in WiFi links. Traditional Bluetooth (BLE) transmission rates are low, making it difficult to meet the high-speed, low-latency data transmission requirements of HEMS (Energy Management System) adjustment commands and battery overcharge / over-discharge alarms.

[0023] In view of this, please refer to Figure 1 This application provides a data transmission method for a home energy storage system, the data transmission method including: 01. Monitor the status of WiFi and Bluetooth links; 02. Based on the status of the WiFi link and Bluetooth link, one of the WiFi link and Bluetooth link is used as the main link, and the other is used as the supplementary transmission link; 03. Data is transmitted using the main link; 04. When the main link loses packets, the packet loss of the main link is retransmitted using a retransmission link.

[0024] Please see Figure 2 This application also provides a data transmission device 10 for a home energy storage system. The data transmission device 10 includes a monitoring module 110, a determination module 120, and a transmission module 130. Step 01 can be implemented by the monitoring module 110, step 02 can be implemented by the determination module 120, and steps 03 and 04 can be implemented by the transmission module 130.

[0025] Alternatively, the monitoring module 110 is used to monitor the status of the WiFi link and the Bluetooth link, the determination module 120 is used to determine one of the WiFi link and the Bluetooth link as the main link and the other as the supplementary link based on the status of the WiFi link and the Bluetooth link, and the transmission module 130 can be used to transmit data using the main link, and to supplement the lost packets of the main link using the supplementary link when the main link loses packets.

[0026] Please see Figure 3 This application also provides a home energy storage system, which includes a memory and a processor. The memory stores a computer-readable program, and the processor is used to monitor the status of WiFi links and Bluetooth links. Based on the status of WiFi links and Bluetooth links, one of the WiFi links and Bluetooth links is used as the main link and the other is used as a supplementary link. Data is transmitted using the main link, and when the main link loses packets, the supplementary link is used to retransmit the lost packets of the main link.

[0027] The data transmission method, data transmission device 10, and home energy storage system of this application dynamically select one of the WiFi link and Bluetooth link as the main transmission channel and the other as the supplementary transmission channel based on the status of the WiFi link and Bluetooth link. When the main link loses packets, it automatically switches to the supplementary transmission link to retransmit the data. This significantly improves the reliability and continuity of data transmission in complex wireless environments, effectively overcomes the link instability problem that is easily caused by interference, obstruction, or congestion when using a single communication method, and improves the stability of the data.

[0028] It is worth noting that a home energy storage system is an energy storage device installed in a home setting. It is usually based on a battery, combined with photovoltaic modules, inverters, controllers and other components. It can charge the battery when the grid electricity price is low or generate electricity from renewable energy sources such as solar power for storage. During peak electricity demand, power outages or when electricity prices are high, it releases electricity to power home appliances. It has functions such as peak shaving and valley filling, improving the autonomy of electricity use, reducing electricity costs, providing power to the grid to generate income, and providing backup power in emergencies. At the same time, it can monitor and regulate the amount of electricity, providing a safe, economical and flexible energy solution for home electricity use.

[0029] The data transmission device 10 can exist in hardware or software form. The data transmission device 10 can be a standalone component independent of the home energy storage system. Alternatively, the data transmission device 10 can be part of a home energy storage system and integrated within it in hardware or software form; in other words, the home energy storage system includes the data transmission device 10. For example, when the data transmission device 10 is integrated into the home energy storage system as part of it, it can be integrated within a processor.

[0030] Specifically, a home energy storage system may include energy storage battery pack systems, photovoltaic inverters, smart meters, load control terminals, and home energy storage gateways.

[0031] The energy storage battery pack system is the core of a home energy storage system. It can use high-energy-density, long-cycle-life lithium-ion batteries or lithium iron phosphate batteries. The battery cells are combined in series and parallel to form a voltage and capacity level that meets the household's electricity needs. Battery selection can be flexibly configured based on the household's photovoltaic installed capacity, electrical load, and energy storage requirements. For example, an energy storage battery pack system can use a 48V DC voltage and a capacity of 10kW.

[0032] Photovoltaic inverters are used to convert the direct current (DC) generated by photovoltaic (PV) devices into alternating current (AC) that meets grid standards or household load requirements, while simultaneously enabling bidirectional energy flow control. PV inverters can be bidirectional grid-connected inverters, possessing both DC / AC (direct current to alternating current) and AC / DC (alternating current to direct current) bidirectional conversion capabilities. During periods of sufficient sunlight, the DC power generated by the PV modules, after DC / AC conversion by the inverter, is partly supplied directly to household loads to meet immediate electricity needs; the other part is converted back to DC via AC / DC conversion to charge the energy storage battery system, storing surplus energy. When PV power generation far exceeds household load requirements and the energy storage battery is fully charged, the inverter can feed the excess energy into the public grid.

[0033] A smart meter can be an intelligent energy metering device with bidirectional metering function, capable of simultaneously measuring the energy a household purchases from the grid and the energy a household supplies to the grid. It can also collect electricity consumption parameters such as total household electricity load, voltage, current, and power factor. In addition, it can also have data storage and query functions, and can store recent electricity consumption data.

[0034] A load control terminal is used to precisely control and dynamically adjust various household electrical appliances based on energy supply and demand and user needs, thereby optimizing load operation. There can be one or multiple load control terminals; for example, a load control terminal could consist of three smart sockets.

[0035] A home energy storage gateway is the core control and data interaction center of a home energy storage system. It integrates communication modules such as WiFi and Bluetooth, enabling communication with the energy storage battery pack system, photovoltaic inverter, smart meter, and load control terminal via these modules. This establishes WiFi and Bluetooth links, allowing data transmission between the gateway and these components. The transmitted data may include, but is not limited to, HEMS (Energy Management System) adjustment commands, battery overcharge / over-discharge alarm data, inverter fault and alarm codes, battery data (such as battery SOC / SOH values), real-time battery charge / discharge power data, and statistical data (such as daily electricity consumption reports and battery cycle counts).

[0036] For WiFi and Bluetooth links, the home energy storage gateway can also integrate a link status monitoring unit, which can monitor the WiFi and Bluetooth links. The monitored content may include, but is not limited to, key parameters such as link connection status (online / offline), signal strength (e.g., WiFi RSSI value, Bluetooth received signal strength), data transmission rate, channel occupancy (e.g., 2.4GHz band interference), packet loss rate, and latency. The gateway can also comprehensively assess the status of the WiFi and Bluetooth links based on the data monitored by the link status monitoring unit.

[0037] The main link refers to the link with the strongest overall performance and the highest adaptability to current business needs, selected based on the real-time status of the WiFi and Bluetooth links, and is used to undertake the transmission of core data. The supplementary transmission link refers to the auxiliary transmission link used in conjunction with the main link. It is used for rapid retransmission when the main link loses packets, times out, or the data packets are damaged, real-time synchronous backup of critical data, and seamless takeover of transmission tasks when the main link deteriorates or is suddenly interrupted, ensuring uninterrupted business. The working status of the supplementary transmission link can be dynamically adjusted according to the performance of the main link.

[0038] It is worth noting that main link packet loss refers to the phenomenon in data transmission where, due to factors such as electromagnetic interference, signal obstruction, and bandwidth congestion in the home environment, the data packets sent by the sender on the dynamically designated main transmission channel (WiFi link or Bluetooth link) fail to be fully received or successfully acknowledged by the receiver (such as gateway or terminal device). Main link packet loss can lead to incomplete data transmission of battery SOC / SOH parameters, charge and discharge control commands, and other data transmitted on that link, increased latency, and may even affect the normal operation of the core functions of the home energy storage system.

[0039] When both the WiFi and Bluetooth links are functioning normally, the WiFi link can be used as the primary link, and the Bluetooth link as a supplementary link. This allows the WiFi link to transmit data, and in case of packet loss on the WiFi link, the Bluetooth link can be used to retransmit the lost packets. Conversely, if the WiFi link becomes abnormal (e.g., excessive packet loss) while the Bluetooth link remains normal, the Bluetooth link should be immediately switched to the primary link. This leverages Bluetooth's short-range anti-interference advantage to maintain continuous transmission of core data, while the WiFi link continues to serve as a supplementary link, accurately retransmitting lost packets from the primary link. If the Bluetooth link becomes abnormal (e.g., its speed is too low), the WiFi link should be switched to the primary link for data transmission, while the Bluetooth link continues to serve as a supplementary link to retransmit lost packets from the WiFi link.

[0040] In this way, by coordinating the main link and the supplementary transmission link, the contradiction between the easy interruption of high-speed links and the slow transmission of anti-interference links in traditional single-link transmission is resolved, effectively avoiding problems such as inaccurate charging and discharging control and delayed safety protection of home energy storage systems caused by data interruption.

[0041] Please see Figure 3 In some implementations, step 02 includes: 021. When the packet loss rate of the WiFi link is less than or equal to the preset packet loss value, the WiFi link is used as the primary link and the Bluetooth link is used as the retransmission link; or 022. When the packet loss rate of the WiFi link is greater than the preset packet loss value, the Bluetooth link will be used as the main link and the WiFi link will be used as the retransmission link.

[0042] In some implementations, sub-steps 021-022 can be implemented by the determining module 120. In other words, the determining module 120 can be used to use the WiFi link as the main link and the Bluetooth link as the retransmission link when the packet loss rate of the WiFi link is less than or equal to a preset packet loss value; or to use the Bluetooth link as the main link and the WiFi link as the retransmission link when the packet loss rate of the WiFi link is greater than the preset packet loss value.

[0043] In some implementations, the processor can also be used to use the WiFi link as the main link and the Bluetooth link as the retransmission link when the packet loss rate of the WiFi link is less than or equal to a preset packet loss value; or to use the Bluetooth link as the main link and the WiFi link as the retransmission link when the packet loss rate of the WiFi link is greater than the preset packet loss value.

[0044] It is worth noting that the preset packet loss value can be a value set by the system in advance. The preset packet loss value can be related to the characteristics of the WiFi link. The preset packet loss value can be 5%, 8%, 10%, 15%, 20% or even higher, etc., with no specific limit.

[0045] For example, the preset packet loss value can be 10%. That is to say, when the packet loss rate of the WiFi link is ≤10%, the WiFi link is used as the main link and the Bluetooth link is used as the retransmission link. In this way, the bandwidth advantage of the WiFi link can be maximized to transmit high-throughput data. When the packet loss rate of the WiFi link is >10%, the Bluetooth link is used as the main link and the WiFi link is used as the retransmission link. In this way, the Bluetooth link can resist electromagnetic interference from home appliances such as microwave ovens and routers by virtue of its frequency hopping communication characteristics, and ensure data integrity.

[0046] In addition to determining the primary or supplementary transmission link based on the packet loss rate of the WiFi link, the transmission rate of the WiFi link can also be considered when selecting the primary or supplementary transmission link. When the transmission rate of the WiFi link is high and the packet loss rate of the WiFi link is low (less than or equal to the preset packet loss value), the WiFi link is used as the primary link and the Bluetooth link is used as the supplementary transmission link. When the transmission rate of the WiFi link is low or the packet loss rate of the WiFi link is too high (greater than the preset packet loss value), the Bluetooth link is used as the primary link and the WiFi link is used as the supplementary transmission link.

[0047] For example, if the packet loss rate of the WiFi link is ≤10% and the transmission rate is ≥10Mbps, set the WiFi link as the primary link and the Bluetooth link as the supplementary link. If the packet loss rate of the WiFi link is >10%, or the transmission rate is <5Mbps, switch the Bluetooth link to the primary link and the WiFi link to the supplementary link.

[0048] In one example, the link monitoring showed that the RSSI of the WiFi link was -65dBm, the packet loss rate was 8%, and the transmission rate was 15Mbps. The RSSI of the Bluetooth link was -55dBm and the transmission rate was 2Mbps. WiFi was determined to be the main link. The battery SOC was 90%, and the real-time battery charging and discharging power data and statistical data were transmitted through WiFi. Bluetooth was used as a supplementary transmission link.

[0049] When packet loss occurs on the WiFi link as the primary data transmission link, the Bluetooth link, acting as a retransmission link, detects the packet loss and automatically initiates a retransmission to retransmit the lost data. However, when offline, the inverter's electromagnetic interference increases, causing the WiFi packet loss rate to rise to 22% and the transmission rate to drop to 4Mbps; the Bluetooth packet loss rate is 9% and the transmission rate is 2Mbps. In this case, a link switch is initiated, determining Bluetooth as the primary link and WiFi as the retransmission link.

[0050] In this way, by setting a preset packet loss rate threshold to judge and dynamically switch between the primary and secondary transmission links, it can adapt to the complex and ever-changing wireless channel conditions in the home environment, always prioritizing the link with the lower packet loss rate as the primary transmission channel. This ensures the real-time forwarding of critical data such as battery status and alarm commands and the highest achievable transmission success rate, effectively avoiding systemic communication interruptions caused by the continuous deterioration of a single link, and significantly improving the reliability of data transmission.

[0051] Please see Figure 4 In some implementations, the data transmission method further includes: 05. When the data exceeds the preset number of bytes, the data is fragmented so that the main link or the supplementary transmission link can transmit the fragmented data.

[0052] In some implementations, step 05 can be implemented by the transmission module 130. Alternatively, the transmission module 130 can be used to fragment the data when the data is larger than a preset number of bytes, so that the main link or the supplementary transmission link can transmit the fragmented data.

[0053] In some implementations, the processor can also be used to fragment the data when the data is larger than a preset number of bytes, so that the main link or the supplementary link can transmit the fragmented data.

[0054] The preset byte size can be 256 bytes, 512 bytes, 1024 bytes, 2048 bytes, etc., and the specific size is not limited. For example, if the preset byte size is 512 bytes, the data will be fragmented when the transmitted data is greater than 512 bytes. The transmitted data will be split into multiple independent data fragments of the preset fragment size (e.g., 512 bytes). For example, when the transmitted data is 912 bytes, one independent data fragment is 512 bytes and the other independent data fragment is 400 bytes.

[0055] After data is fragmented, the main link transmits independent data modules sequentially. If packet loss occurs on the main link, for example, when transmitting data at the WiFi link level, the third fragment is lost, the Bluetooth retransmission link detects the packet loss and automatically initiates the retransmission of that fragment. The retransmitted data carries "fragment ID=3+total number of fragments=8+data CRC check". After the receiving end reassembles the fragments, the data is verified.

[0056] In this way, by introducing a data fragmentation mechanism when transmitting large amounts of data, data packets exceeding a preset number of bytes are split into multiple data fragments for independent transmission, improving compatibility with low-speed links such as Bluetooth, and effectively avoiding transmission failures or excessive delays caused by congestion or interference on the channel due to excessively large single data transmissions. Thus, in complex home wireless environments, it not only ensures the integrity and timeliness of various monitoring and control commands, but also further enhances the overall efficiency of data transmission.

[0057] Please see Figure 5 In some implementations, step 03 includes: 031, categorize the data into multiple priorities based on the response time required; 032, data is transmitted based on data priority on the main link.

[0058] In some implementations, sub-steps 031-032 can be implemented by the transmission module 130. In other words, the transmission module 130 can be used to divide data into multiple priorities according to the response demand time, and to transmit data based on the priority of the data using the main link.

[0059] In some implementations, the processor can also be used to prioritize data according to response demand time and to transmit data based on data priority using the main link.

[0060] The number of priority levels can be 2, 3, 4, etc., with no specific limit. For example, in one example, data can be divided into P0, P1, and P2 levels based on response time. P0 level data is for urgent safety and has the highest priority. P0 level data may include, but is not limited to, battery overcharge / overdischarge alarms, inverter faults and alarm codes, with a response time ≤10ms. P1 level data is for reliability-critical data and has the next highest priority. P1 level data may include, but is not limited to, battery SOC / SOH values ​​and real-time power data, with a response time ≤50ms. P2 level data is for general data and has the lowest priority. P2 level data may include, but is not limited to, daily electricity consumption reports and battery cycle counts, with a response time ≤1000ms. If different priority data exist, the main link prioritizes transmitting the data with the higher priority.

[0061] In this way, by dividing data into multiple priorities according to response demand time, the main link can prioritize the transmission channel of data with high response demand during the transmission process, avoiding transmission congestion or core data delay caused by different types of data competing for link resources. At the same time, it ensures the timeliness and priority adaptability of core and critical data transmission, effectively avoiding the problem of delayed response to core demand caused by disordered resource allocation in home environments.

[0062] Please see Figure 6 In some implementations, step 032 includes: 0321. When data has multiple priorities, the bandwidth of the main link is allocated according to the data priority. The higher the data priority, the larger the bandwidth allocated. 0322, based on the allocated bandwidth ratio, uses the main link to transmit data of various priorities.

[0063] In some implementations, sub-steps 031-032 can be implemented by the transmission module 130. In other words, the transmission module 130 can be used to allocate the bandwidth ratio of the main link according to the data priority when the data has multiple priorities, wherein the higher the priority of the data, the larger the allocated bandwidth ratio; and based on the allocated bandwidth ratio, the main link is used to transmit data of each priority.

[0064] In some implementations, the processor can also be used to allocate the bandwidth of the main link according to the priority of the data when the data has multiple priorities, wherein the higher the priority of the data, the larger the allocated bandwidth ratio; and based on the allocated bandwidth ratio, the main link is used to transmit data of each priority.

[0065] For example, data is divided into P0, P1, and P2 levels according to the response time. P0 level data has a higher priority than P1 level data, and P1 level data has a higher priority than P2 level data. In this case, the main link prioritizes the transmission of P0 / P1 level data. The bandwidth share of P0 level data is greater than that of P1 level data, and the bandwidth share of P1 level data is greater than that of P2 level data (e.g., P0 level data occupies 70% of the main link bandwidth, P1 level data occupies 25% of the main link bandwidth, and P2 level data occupies 5% of the main link bandwidth).

[0066] In this way, by allocating the main link bandwidth to key data of the energy storage system with different response needs according to priority, and the higher the priority, the larger the bandwidth ratio, that is, based on the importance of data security and the real-time requirements, the transmission resources are allocated in a differentiated manner, which realizes the precise on-demand allocation of main link transmission resources. This avoids the congestion caused by low-priority data over-occupying link resources, and ensures that data with high response needs can obtain sufficient transmission bandwidth, effectively reducing the transmission delay and packet loss risk of core data, and further optimizing the utilization efficiency of limited link bandwidth.

[0067] Please see Figure 7 In some embodiments, step 032 further includes: 0323, when the highest priority data transmission is triggered, the bandwidth of the main link is allocated to the highest priority data for other priority data, and the main link transmits data according to the allocated bandwidth.

[0068] In some implementations, sub-step 0323 can be implemented by transmission module 130. In other words, transmission module 130 can be used to allocate the bandwidth of the main link to the highest priority data when the highest priority data transmission is triggered, and make the main link transmit data according to the allocated bandwidth.

[0069] In some implementations, the processor can also be used to allocate the bandwidth of the main link to the highest priority data when the highest priority data transmission is triggered, and to make the main link transmit data according to the allocated bandwidth.

[0070] When the highest priority data (such as battery overcharge / over-discharge alarm) is triggered, the main link bandwidth occupied by other priority data is immediately reclaimed, and most or all of the bandwidth is allocated to the highest priority data, so that the transmission response speed of the highest priority data is improved to within 10ms.

[0071] For example, the main link transmits P1 and P2 level data simultaneously, with P1 level bandwidth accounting for 75% and P2 level bandwidth accounting for 25%. If P0 level data (the highest priority data) is triggered, a portion of the bandwidth of P1 and P2 levels is allocated to P0 level data transmission, resulting in P0 level bandwidth occupying 75% of the main link bandwidth, P1 level bandwidth occupying 25% of the main link bandwidth, and P2 level bandwidth occupying 5% of the main link bandwidth. Alternatively, P1 and P2 level bandwidth can be allocated to P0 level data transmission, resulting in P0 level bandwidth occupying 100% of the main link bandwidth, thereby improving the transmission response speed of P0 level data to within 10ms.

[0072] In this way, when the transmission of the highest priority data (such as emergency safety alarms, critical charging and discharging emergency commands, etc.) is triggered, the bandwidth occupied by other priority data is allocated to the highest priority data by dynamically adjusting the main link bandwidth. This achieves emergency optimization of bandwidth resources, avoids transmission delays or loss caused by core data competing with other data for resources in emergency scenarios, and effectively prevents the escalation of security incidents. At the same time, normal bandwidth allocation is maintained in non-emergency scenarios, taking into account regular transmission needs and significantly improving the flexibility and security of data transmission strategies.

[0073] Please see Figure 8 In some embodiments, step 032 further includes: 0324, the lowest priority data is transmitted using the main link during off-peak electricity hours.

[0074] In some implementations, sub-step 0323 can be implemented by transmission module 130, or transmission module 130 can be used to transmit the lowest priority data during off-peak hours using the main link.

[0075] In some implementations, the processor can also be used to transmit the lowest priority data during off-peak hours using the main link.

[0076] In this way, low-priority data such as monthly electricity consumption statistics, system maintenance logs, and non-real-time status feedback are concentrated in the off-peak hours (such as 0-6 am) and transmitted by the main link, making full use of the advantages of low household electricity load, low link interference, and sufficient bandwidth during this period. On the one hand, this avoids low-priority data causing link congestion during peak hours and interfering with the transmission of high-priority data. On the other hand, it ensures the success rate of low-priority data transmission and avoids data backlog problems.

[0077] Additionally, it's worth noting that the lowest priority data typically has a large volume, resulting in more time-consuming and power-intensive transmission. Therefore, compression algorithms can be used to compress the lowest priority data before transmission, thereby reducing the amount of data transmitted and lowering transmission time and power consumption. The receiving end verifies the integrity of the data after decompression (through data fingerprint comparison) to ensure data accuracy.

[0078] Please see Figure 9 In some implementations, the data transmission method further includes: 07. When no data transmission requirement is detected, control the WiFi module to enter deep sleep mode and control the Bluetooth module to enter periodic wake-up mode.

[0079] 08. When a data transmission request other than the lowest priority is detected, control the Bluetooth module to wake up the WiFi module.

[0080] In some implementations, steps 07 and 08 can be implemented by the determining module 120. Alternatively, the determining module 120 can also control the WiFi module to enter a deep sleep mode and the Bluetooth module to enter a periodic wake-up mode when no data transmission requirement is detected. When a data transmission requirement other than the lowest priority is detected, the Bluetooth module is controlled to wake up the WiFi module.

[0081] In some implementations, the processor can also control the WiFi module to enter a deep sleep mode and control the Bluetooth module to enter a periodic wake-up mode when no data transmission requirement is detected, and control the Bluetooth module to wake up the WiFi module when other data transmission requirements except for the lowest priority are detected.

[0082] In one example, during the early morning hours when there is no data transmission, the WiFi module enters deep sleep, reducing power consumption to below 10% of normal operating levels. The Bluetooth module wakes up every 500ms to monitor for transmission requests. When the BMS detects a battery SOC of 25% (high-priority data), the Bluetooth module wakes the WiFi module with a 1ms pulse signal, allowing the WiFi module to transmit the data. The WiFi module's data transmission response latency is controlled to within 10ms. After data transmission is complete, the WiFi module returns to sleep mode.

[0083] In this way, by controlling the WiFi module to enter deep sleep mode when there is no data transmission demand, the power consumption of the module when idle is greatly reduced. At the same time, the Bluetooth module is kept in periodic wake-up mode, which ensures real-time monitoring of data transmission demand while taking into account low power consumption and avoids the delay in demand response caused by the module being completely asleep. When other data transmission demand besides the lowest priority is detected, the Bluetooth module quickly wakes up the WiFi module, which ensures that the corresponding link can be activated in time for medium and high priority data transmission, and avoids unnecessary energy waste caused by the WiFi module running continuously to maintain response speed.

[0084] Please see Figure 10 In some implementations, the data transmission method further includes: 09. When the power of the home energy storage system is less than or equal to the preset power and the energy storage power supply is not charging, the WiFi link is turned off and the highest priority data is transmitted via the Bluetooth link.

[0085] In some implementations, step 09 can be performed by the transmission module 130. Alternatively, the transmission module 130 can also shut down the WiFi link and use the Bluetooth link to transmit the highest priority data when the power of the home energy storage system is less than or equal to a preset power and the energy storage power supply is not charging.

[0086] In some implementations, the processor can also be used to shut down the WiFi link and use the Bluetooth link to transmit the highest priority data when the power of the home energy storage system is less than or equal to a preset power and the energy storage power is not being charged.

[0087] In one embodiment, after a power outage, the home energy storage system only powers the refrigerator and lighting. Electromagnetic interference from the photovoltaic inverter increases, the WiFi packet loss rate rises to 22%, and the transmission rate drops to 4Mbps; the Bluetooth packet loss rate is 9%, and the transmission rate is 2Mbps. Therefore, Bluetooth is determined to be the primary link, and WiFi is used as a supplementary link. The battery management system generates a low battery alarm data (highest priority data) with a battery SOC of 20%. The Bluetooth primary link prioritizes transmitting this data to the home energy storage gateway. Upon receiving this data, the home energy storage gateway immediately cuts off power to the lighting (non-critical load), maintaining power only for the refrigerator, and disables the WiFi module. Only the highest priority data is transmitted via Bluetooth. Furthermore, the Bluetooth module uses dynamic transmission power (30% lower than fixed power), further reducing the standby power consumption of the home energy storage system and extending its battery life.

[0088] Thus, for critical low-power scenarios where the home energy storage system's power is ≤ preset power and not charged, by shutting down the relatively high-power WiFi link and only retaining the Bluetooth link to transmit the highest priority data, the energy consumption of the data transmission process is reduced to the greatest extent, delaying further energy loss of the stored power, while ensuring the transmission needs of the highest priority data. This avoids the interruption of core data due to energy consumption limitations in low-power scenarios and effectively avoids the risk of energy depletion caused by disordered transmission when the power is low.

[0089] The above embodiments merely illustrate several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.

Claims

1. A data transmission method for a home energy storage system, characterized in that, include: Monitor the status of WiFi and Bluetooth links; Based on the status of the WiFi link and the Bluetooth link, one of the WiFi link and the Bluetooth link is designated as the primary link, and the other is designated as the supplementary transmission link; Data is transmitted using the aforementioned main link; When the main link loses packets, the retransmission link is used to retransmit the lost packets from the main link.

2. The data transmission method according to claim 1, characterized in that, The step of designating one of the WiFi link and the Bluetooth link as the primary link and the other as a supplementary transmission link based on the states of the WiFi link and the Bluetooth link includes: If the packet loss rate of the WiFi link is less than or equal to a preset packet loss value, the WiFi link will be used as the main link and the Bluetooth link will be used as the retransmission link. If the packet loss rate of the WiFi link is greater than the preset packet loss value, the Bluetooth link will be used as the main link and the WiFi link will be used as the retransmission link.

3. The data transmission method according to claim 1, characterized in that, The data transmission method further includes: When the data exceeds a preset number of bytes, the data is fragmented so that the main link or the supplementary transmission link can transmit the fragmented data.

4. The data transmission method according to claim 1, characterized in that, The transmission of complete data using the main link includes: The data is divided into multiple priorities based on the response time requirement; The main link is used to transmit data based on the priority of the data.

5. The data transmission method according to claim 4, characterized in that, The method of transmitting data based on the priority of the data using the main link includes: When the data has multiple priorities, the bandwidth ratio of the main link is allocated according to the priority of the data, wherein the higher the priority of the data, the larger the allocated bandwidth ratio; Based on the allocated bandwidth percentage, the data of each priority is transmitted using the main link.

6. The data transmission method according to claim 5, characterized in that, The method of transmitting data based on the priority of the data using the main link includes: When the highest priority data transmission is triggered, the bandwidth of the main link is allocated to the highest priority data for other priority data, and the main link transmits the data according to the allocated bandwidth.

7. The data transmission method according to claim 4, characterized in that, The method of transmitting data based on the priority of the data using the main link includes: The data with the lowest priority is transmitted using the main link during off-peak electricity hours.

8. The data transmission method according to claim 4, characterized in that, The data transmission method further includes: When no data transmission requirement is detected, the WiFi module is controlled to enter deep sleep mode, and the Bluetooth module is controlled to enter periodic wake-up mode. When a data transmission request other than the lowest priority is detected, the Bluetooth module is controlled to wake up the WiFi module.

9. The data transmission method according to claim 4, characterized in that, The data transmission method further includes: When the power of the home energy storage system is less than or equal to the preset power and the energy storage power is not being charged, the WiFi link is turned off and the highest priority data is transmitted using the Bluetooth link.

10. A home energy storage system, characterized in that, The method includes a memory and a processor, wherein the memory stores a computer-readable program, and the processor is configured to execute the computer-readable program to implement the steps of the method according to any one of claims 1-9.