Data communication method and system based on household storage scene
By monitoring Wi-Fi network signals and heartbeat packets in real time, recording and marking data timing, and switching to Bluetooth network, the data loss and duplication problems during the upload of energy storage system data in the household storage scenario are solved, and the stable and complete upload of data is achieved.
Patent Information
- Application Number
- CN202411780513.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-05
- Publication Date
- 2025-03-07
AI Technical Summary
In the household storage scenario, data loss and duplication are prone to data upload when uploading the operating data of the energy storage system, resulting in unstable and incomplete data upload.
By obtaining the Wi-Fi network signal strength and heartbeat packet information between the collector and the router, the network situation is monitored in real time. When the network situation does not meet the preset requirements, record the time point, store and mark the data, and switch to the Bluetooth network for data transmission to ensure the stable and complete upload of the data.
It effectively avoids data loss and duplication caused by Wi-Fi network problems, and realizes stable and complete upload of the operating data of the energy storage system to the cloud.
Smart Images

Figure CN119584233A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of network communication technology, and in particular to a data communication method and system based on a household storage scenario. Background Art
[0002] In order to increase the proportion of green energy in power generation as quickly as possible, energy storage has become an indispensable part of the global carbon neutrality strategy. The energy storage system includes multiple modules such as battery modules, inverter modules and load modules. In order to achieve safe management of the energy storage system, the data corresponding to each module of the energy storage system needs to be monitored on the cloud.
[0003] With the continuous development of distributed energy storage, the demand for safe management and control of energy storage systems is increasing, and more and more energy storage systems need to be managed. For household storage scenarios, since the main target group is families, the structure of each family and the purchased routers are different, resulting in uneven network capabilities, causing problems such as data loss and duplication. Summary of the invention
[0004] In response to the above-mentioned problems and technical needs, the applicant has proposed a data communication method and system based on a household storage scenario, so as to solve the problems of data loss and duplication that occur when uploading the operating data of the energy storage system in the household storage scenario in the prior art, and to achieve stable and complete uploading of the operating data of the energy storage system in the household storage scenario to the cloud.
[0005] The embodiment of the present application provides a data communication method based on a household storage scenario, which is applied to a collector, wherein the collector includes: Wi-Fi and Bluetooth, and the method includes:
[0006] Obtaining a first signal strength of a Wi-Fi network between the collector and the router, and a first heartbeat packet corresponding to a preset time interval between the collector and the router, wherein the collector sends the operating data of the energy storage system to the cloud via the Wi-Fi network;
[0007] When it is determined that any one of the first signal strength and the first heartbeat packet indicates that the network condition does not meet the preset required network, the time point when the Wi-Fi network problem is determined is recorded, and the operation data of the energy storage system starting from the time point is stored and marked;
[0008] Acquire a second signal strength of the Bluetooth network between the collector and the mobile terminal, and a second heartbeat packet corresponding to a preset time interval between the mobile terminal and the cloud;
[0009] When it is determined that the network status represented by the second signal strength and the second heartbeat packet meets the preset required network, the data communication mode is switched from the Wi-Fi network to the Bluetooth network, and the marked operating data and the operating data of the energy storage system after the network switching are sent to the mobile terminal through the Bluetooth network, so that the mobile terminal sends the operating data to the cloud.
[0010] According to a data communication method based on a household storage scenario in one embodiment of the present application, after determining that any one of the first signal strength and the first heartbeat packet represents that the network situation does not meet the preset demand network situation, it also includes:
[0011] Determine whether the current moment is in the data reporting phase or the data receiving phase;
[0012] In the case where it is determined that the current moment is in the data reporting stage, executing the step of storing and marking the operation data of the energy storage system starting from the time point;
[0013] When it is determined that the current moment is in the data receiving stage, sending the policy data received from the cloud starting from the time point to the mobile terminal;
[0014] The strategy data is obtained by the cloud based on the operation data and network conditions of the energy storage system.
[0015] According to a data communication method based on a household energy storage scenario in one embodiment of the present application, after recording the time point when the Wi-Fi network problem is determined and storing and marking the operation data of the energy storage system starting from the time point, it also includes:
[0016] When it is determined that the system is not connected to the Bluetooth network, the data collection frequency is reduced to a first preset collection frequency, and the collected operation data of the energy storage system is sent to the cloud via the Wi-Fi network;
[0017] A data receiving instruction for indicating data reception returned by the cloud is received, and after receiving the data receiving instruction, the operation data of the energy storage system corresponding to the next data collection frequency is sent to the cloud via the Wi-Fi network.
[0018] According to a data communication method based on a household storage scenario in one embodiment of the present application, after the collected operation data of the energy storage system is sent to the cloud via a Wi-Fi network, the method further includes:
[0019] When it is determined that the data receiving instruction has not been received, the operating data of the energy storage system corresponding to the current data collection frequency is sent to the cloud again via the Wi-Fi network, and when the number of retransmissions is greater than a preset number of times, the data reporting type and the first reporting time point of the operating data of the energy storage system corresponding to the current data collection frequency are determined, and the data reporting type, the first reporting time point and the operating data of the energy storage system corresponding to the current data collection frequency are stored.
[0020] According to a data communication method based on a household storage scenario in one embodiment of the present application, after storing the operation data of the energy storage system corresponding to the current data collection frequency, the method further includes:
[0021] When it is determined that any one of the first signal strength and the first heartbeat packet represents that the network condition meets the preset required network, the stored data reporting type, the first reporting time point and the operating data of the energy storage system are sent to the cloud via the Wi-Fi network.
[0022] According to a data communication method based on a household storage scenario in one embodiment of the present application, a first basis for determining a Wi-Fi network problem includes: the first signal strength is less than a first preset signal strength and greater than a second preset signal strength, wherein the first preset signal strength is greater than the second preset signal strength;
[0023] The second judgment basis of the Wi-Fi network problem includes: the average delay of the heartbeat packets at the preset time interval is greater than the first preset delay, and / or each delay in consecutive preset frames is greater than the second preset delay, wherein the first preset delay is greater than the second preset delay.
[0024] According to a data communication method based on a household storage scenario according to an embodiment of the present application, the method further includes:
[0025] When it is determined that the first signal strength is less than the second preset signal strength and the average delay is greater than a third preset delay, the system is in an offline state, and the operation data of the energy storage system is collected and stored based on a preset second preset collection frequency, wherein the third preset delay is greater than the first preset delay;
[0026] When it is determined that the first signal strength is less than the second preset signal strength and each delay in consecutive preset frames is greater than a fourth preset delay, it is in an offline state, and the operation data of the energy storage system is collected and stored based on a preset second preset collection frequency, wherein the fourth preset delay is greater than the second preset delay.
[0027] The embodiment of the present application also provides a data communication system based on a household storage scenario, the system comprising: a collector, a mobile terminal and a cloud;
[0028] The collector is connected to the cloud through a Wi-Fi network, the collector is connected to the mobile terminal through a Bluetooth network and a Wi-Fi network, and the mobile terminal is connected to the cloud through a Wi-Fi network and a mobile network;
[0029] The collector is used to send the operating data of the energy storage system to the cloud via the Wi-Fi network;
[0030] The collector is used to obtain a first signal strength of the Wi-Fi network with the router, and a first heartbeat packet corresponding to a preset time interval between the collector and the router; when it is determined that any one of the first signal strength and the first heartbeat packet indicates that the network condition does not meet the preset demand network, record the time point when the Wi-Fi network problem is determined, and store and mark the operation data of the energy storage system from the time point; obtain a second signal strength of the Bluetooth network with the mobile terminal, and a second heartbeat packet corresponding to a preset time interval between the mobile terminal and the cloud; when it is determined that the second signal strength and the second heartbeat packet indicate that the network condition meets the preset demand network, switch the data communication mode from the Wi-Fi network to the Bluetooth network, and send the marked operation data and the operation data of the energy storage system after the network switching to the mobile terminal via the Bluetooth network;
[0031] The mobile terminal is used to send the operating data to the cloud via a Wi-Fi network or a mobile network.
[0032] According to a data communication system based on a household storage scenario in one embodiment of the present application, the cloud is used to identify a data uploading device corresponding to the operation data, and store the operation data belonging to the same data uploading device together;
[0033] Wherein, the data uploading device includes: the different collectors and different mobile terminals.
[0034] According to a data communication system based on a household storage scenario in one embodiment of the present application, the mobile terminal is used to send a network name and a network password corresponding to a router to the collector based on a Bluetooth network;
[0035] The collector connects to the Wi-Fi network based on the network name and the password.
[0036] The data communication method and system based on the household storage scenario provided by the embodiment of the present application obtains the first signal strength of the Wi-Fi network between the collector and the router, and the first heartbeat packet corresponding to the preset time interval between the collector and the router, wherein the collector sends the operation data of the energy storage system to the cloud through the Wi-Fi network. The present application monitors the network status of the Wi-Fi network between the collector and the cloud in real time, and can timely detect network problems to avoid data loss due to network problems in the Wi-Fi network; when it is determined that any one of the first signal strength and the first heartbeat packet indicates that the network status does not meet the preset demand network, the time point of determining the Wi-Fi network problem is recorded, and the operation data of the energy storage system starting from the time point is stored and marked. When it is determined that the Wi-Fi network does not meet the preset demand network, the present application performs data storage and marking operations, thereby providing an effective data basis for preventing data loss and data duplication.
[0037] Furthermore, the second signal strength of the Bluetooth network between the collector and the mobile terminal, and the second heartbeat packet corresponding to the preset time interval between the mobile terminal and the cloud are obtained. When it is determined that the WiFi network does not meet the preset demand network, the application makes a judgment on the Bluetooth network to ensure that the data can still be uploaded to the cloud in real time; when it is determined that the second signal strength and the second heartbeat packet represent that the network situation meets the preset demand network, the data communication mode is switched from the Wi-Fi network to the Bluetooth network, and the marked operation data and the operation data of the energy storage system after the network switching are sent to the mobile terminal through the Bluetooth network, so that the mobile terminal sends the operation data to the cloud. This process also uploads the marked data to the cloud, which can enable the cloud to perform deduplication operations based on the tags, avoiding the problem of data duplication.
[0038] It can be seen that the present application effectively solves the problems of data loss and duplication that occur when uploading the operating data of the energy storage system in the household storage scenario, and realizes the stable and complete uploading of the operating data of the energy storage system in the household storage scenario to the cloud. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0040] Figure 1 It is a flowchart of a data communication method based on a household storage scenario provided in an embodiment of the present application;
[0041] Figure 2It is a structural diagram of a data communication system based on a household storage scenario provided in an embodiment of the present application;
[0042] Figure 3 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0043] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0044] The embodiment of the present application provides a data communication method based on a household storage scenario. The method can be applied to a collector, which includes: Wi-Fi and Bluetooth. Some other descriptions in the embodiment of the present application are for illustrative purposes and are not used to limit the scope of protection of the present application. They will not be described one by one later. The specific implementation of the method is as follows Figure 1 As shown:
[0045] Step 101, obtaining a first signal strength of a Wi-Fi network between a collector and a router, and a first heartbeat packet corresponding to a preset time interval between the collector and the router.
[0046] Among them, the collector sends the operating data of the energy storage system to the cloud via the Wi-Fi network.
[0047] Step 102, when it is determined that any one of the first signal strength and the first heartbeat packet indicates that the network condition does not meet the preset required network, record the time point when the Wi-Fi network problem is determined, and store and mark the operation data of the energy storage system starting from the time point.
[0048] Step 103, obtaining a second signal strength of the Bluetooth network between the collector and the mobile terminal, and a second heartbeat packet corresponding to a preset time interval between the mobile terminal and the cloud.
[0049] Step 104, when it is determined that the second signal strength and the second heartbeat packet represent a network condition that meets the preset required network, the data communication mode is switched from the Wi-Fi network to the Bluetooth network, and the marked operating data and the operating data of the energy storage system after the network switching are sent to the mobile terminal via the Bluetooth network, so that the mobile terminal sends the operating data to the cloud.
[0050] The data communication method based on the household storage scenario provided in the embodiment of the present application obtains the first signal strength of the Wi-Fi network between the collector and the router, and the first heartbeat packet corresponding to the preset time interval between the collector and the router, wherein the collector sends the operation data of the energy storage system to the cloud via the Wi-Fi network. The present application monitors the network status of the Wi-Fi network between the collector and the cloud in real time, and can promptly detect network problems to avoid data loss due to network problems in the Wi-Fi network; when it is determined that any one of the first signal strength and the first heartbeat packet indicates that the network status does not meet the preset demand network, the time point of determining the Wi-Fi network problem is recorded, and the operation data of the energy storage system starting from the time point is stored and marked. When it is determined that the Wi-Fi network does not meet the preset demand network, the present application performs data storage and marking operations, thereby providing an effective data basis for preventing data loss and data duplication.
[0051] Furthermore, the second signal strength of the Bluetooth network between the collector and the mobile terminal, and the second heartbeat packet corresponding to the preset time interval between the mobile terminal and the cloud are obtained. When it is determined that the WiFi network does not meet the preset demand network, the application makes a judgment on the Bluetooth network to ensure that the data can still be uploaded to the cloud in real time; when it is determined that the second signal strength and the second heartbeat packet represent that the network situation meets the preset demand network, the data communication mode is switched from the Wi-Fi network to the Bluetooth network, and the marked operation data and the operation data of the energy storage system after the network switching are sent to the mobile terminal through the Bluetooth network, so that the mobile terminal sends the operation data to the cloud. This process also uploads the marked data to the cloud, which can enable the cloud to perform deduplication operations based on the tags, avoiding the problem of data duplication.
[0052] It can be seen that the present application effectively solves the problems of data loss and duplication that occur when uploading the operating data of the energy storage system in the household storage scenario, and realizes the stable and complete uploading of the operating data of the energy storage system in the household storage scenario to the cloud.
[0053] In a specific embodiment, the first judgment basis of the Wi-Fi network problem includes: the first signal strength is less than the first preset signal strength and greater than the second preset signal strength.
[0054] The first preset signal strength is greater than the second preset signal strength.
[0055] The second judgment basis of the Wi-Fi network problem includes: the average delay of the heartbeat packets at the preset time interval is greater than the first preset delay, and / or each delay in consecutive preset frames is greater than the second preset delay.
[0056] The first preset delay is greater than the second preset delay.
[0057] For example, the first preset signal strength is -70dBm, and the second preset signal strength is -90dBm.
[0058] Specifically, when the first signal strength is greater than or equal to the first preset signal strength, it is determined to be a good signal strength; when the first signal strength is less than the first preset signal strength and greater than the second preset signal strength, it is determined to be a poor signal strength; when the first signal strength is less than or equal to the second preset signal strength, it is determined to be a weak signal strength, which is no longer suitable for data transmission.
[0059] For example, the first preset delay is 75 ms, and the second preset delay is 50 ms.
[0060] Specifically, taking the example of 5 signal frames corresponding to the preset time interval, if the average delay of heartbeat packets of 5 consecutive frames is greater than the first preset delay, and / or each delay of heartbeat packets of 5 consecutive frames is greater than the second preset delay, it is determined that the signal is unstable.
[0061] In a specific embodiment, after determining that any one of the first signal strength and the first heartbeat packet indicates that the network condition does not meet the preset required network condition, determine whether the current moment is in the data reporting stage or the data receiving stage; if it is determined that the current moment is in the data reporting stage, execute the steps of storing and marking the operating data of the energy storage system starting from the time point; if it is determined that the current moment is in the data receiving stage, send the policy data received from the cloud starting from the time point to the mobile terminal.
[0062] Among them, the strategy data is obtained on the cloud based on the operating data and network conditions of the energy storage system.
[0063] Specifically, when the collector transmits data based on the Wi-Fi network, since both the first judgment basis and the second judgment basis indicate that the network condition is good, Bluetooth will enter a dormant state at this time, and only the Wi-Fi network will be used to report data. In this process, the collector reports directly to the cloud through the Wi-Fi network. At this time, the data is also reported to the mobile terminal through the Wi-Fi network, and then the mobile terminal reports the data to the cloud. The two lines run independently and do not affect each other. At this time, the cloud performs data deduplication processing. For example, for the data reported at the same time point, one copy is randomly deleted and another copy is stored.
[0064] Specifically, in addition to reporting data to the cloud, the collector also needs to receive data transmitted from the cloud and perform data communication and collection based on the data transmitted from the cloud.
[0065] Therefore, after determining that any one of the first signal strength and the first heartbeat packet represents that the network condition does not meet the preset required network condition, it is necessary to determine whether the current moment is in the data reporting stage or the data receiving stage.
[0066] During the data reporting phase, the Wi-Fi network is still transmitting data, so backup processing is required. The data is marked and stored in a cache area, and then sent to the mobile terminal via the Bluetooth network to prevent data loss.
[0067] In the data receiving stage, the policy data received from the cloud starting from the time point is also sent to the mobile terminal via the Bluetooth network in the later stage, so that the mobile terminal can send the collected data corresponding to the policy data, the time point corresponding to the network problem and the marked data to the cloud via the cellular network and other network methods. At this time, the cloud sends two data packets based on the above information, one to the collector and one to the mobile terminal. In this process, the mobile terminal's cache includes the data packet until the next retransmission starts.
[0068] This application can effectively avoid the problem of data loss caused by sudden disconnection of the Wi-Fi network, and achieve continuous and stable data transmission even if the Wi-Fi network is disconnected.
[0069] In a specific embodiment, the time point when the Wi-Fi network problem is determined is recorded, and after the operation data of the energy storage system starting from the time point is stored and marked, when it is determined that the Bluetooth network is not connected, the data collection frequency is reduced to the first preset collection frequency, and the collected operation data of the energy storage system is sent to the cloud via the Wi-Fi network. A data receiving instruction for indicating data reception returned by the cloud is received, and after receiving the data receiving instruction, the operation data of the energy storage system corresponding to the next data collection frequency is sent to the cloud via the Wi-Fi network.
[0070] In a specific embodiment, after the collected operating data of the energy storage system is sent to the cloud via the Wi-Fi network, when it is determined that no data receiving instruction has been received, the operating data of the energy storage system corresponding to the current data collection frequency is sent to the cloud again via the Wi-Fi network, and when the number of retransmissions is greater than a preset number, the data reporting type and the first reporting time point of the operating data of the energy storage system corresponding to the current data collection frequency are determined, and the data reporting type, the first reporting time point and the operating data of the energy storage system corresponding to the current data collection frequency are stored.
[0071] In a specific embodiment, after storing the operating data of the energy storage system corresponding to the current data collection frequency, when it is determined that any one of the first signal strength and the first heartbeat packet represents that the network condition meets the preset demand network, the stored data reporting type, the first reporting time point and the operating data of the energy storage system are sent to the cloud via the Wi-Fi network.
[0072] Specifically, when the network conditions of the Wi-Fi network do not meet the preset required network, but no Bluetooth signal is found and the Bluetooth network cannot be connected, the collector needs to automatically reduce the collection frequency and enter a low collection frequency. In addition, each time data is uploaded to the cloud, the return data from the cloud needs to be followed up. If no data receiving instruction from the cloud is received, the collector automatically resends. When the automatic resend exceeds 3 times, the collector automatically stores the data. At this time, it is also necessary to determine the first reporting time point and data reporting type, and store the first reporting time point and data reporting type as the unique identifier of the operating data.
[0073] The network status of the Wi-Fi network is continuously determined. When it is determined that any one of the first signal strength and the first heartbeat packet indicates that the network status meets the preset required network, the automatically stored data is packaged and sent to the cloud. The cloud receives the packaged data and stores it in the corresponding data set based on the first reporting time point and data reporting type.
[0074] Among them, different collectors correspond to different data sets.
[0075] Among them, since the communication between the device and the cloud adopts the MQTT method, there are topics. Different topic messages will go through different channels and will also be stored in different business databases. The data reporting types include: daily reporting, alarm reporting, telemetry response reporting, etc.
[0076] In a specific embodiment, when it is determined that the second judgment basis is that the average delay is greater than the third preset delay and / or each delay is greater than the fourth preset delay, the Wi-Fi network is turned off and switched to the Bluetooth network. At this time, the collector uses the Bluetooth network to resume transmission based on the packet sequence number (mark) transmitted using the WiFi network.
[0077] Among them, the third preset delay is greater than the first preset delay, and the fourth preset delay is greater than the second preset delay.
[0078] For example, the third preset delay is 120 ms, and the fourth preset delay is 80 ms.
[0079] The present application realizes the ability of breakpoint resumption by assisting the transmission of data packets with the help of mobile terminals.
[0080] In a specific embodiment, when it is determined that the first signal strength is less than the second preset signal strength and the average delay is greater than the third preset delay, it is in an offline state, and the operation data of the energy storage system is collected and stored based on the preset second preset collection frequency. When it is determined that the first signal strength is less than the second preset signal strength and each delay in consecutive preset frames is greater than the fourth preset delay, it is in an offline state, and the operation data of the energy storage system is collected and stored based on the preset second preset collection frequency.
[0081] Specifically, the network conditions can be graded, for example, the signal strength is less than or equal to -90dBm for the third level strength, the signal strength is less than -70dBm and greater than -90dBm for the second level strength, and the signal strength is greater than or equal to -70dBm for the first level strength. For another example, the average delay is greater than 75ms and / or each delay is greater than 50ms for the first level Bluetooth delay, and the average delay is greater than 120ms and / or each delay is greater than 80ms for the second level delay.
[0082] Specifically, when both the Wi-Fi network and the Bluetooth network trigger the third level of strength or the second level of delay, it means that the capabilities of the Wi-Fi network and the Bluetooth network are not good. At this time, the collector enters the offline state and enters the low-frequency data collection stage, and the collected data is stored locally. After the Bluetooth network is restored, the Bluetooth network is used to sub-packetize the data and transmit it to the mobile terminal, which is then forwarded to the cloud by the mobile terminal. After the Wi-Fi network is restored, the data is directly packaged and sent to the cloud.
[0083] After the WiFi network and Bluetooth network are restored at the same time, in order to ensure that packaging is not repeated, the collector uses a sequential pointer method when storing data. When confirming the return of the cloud, it moves the pointer to the next area to be transmitted, thereby ensuring the integrity of the data.
[0084] Specifically, data shard storage is composed of basic fixed slices, for example, 64 bytes form one slice. One data can be stored in multiple slices, and the start of each data is determined by the data header.
[0085] In a specific embodiment, when data communication is performed based on a Wi-Fi network, a first preset reporting frequency is used to transmit the operating data of the energy storage system; when data communication is performed based on a Bluetooth network, a second preset reporting frequency is used to transmit the operating data of the energy storage system.
[0086] The first preset reporting frequency is greater than the second preset reporting frequency.
[0087] Specifically, when data communication is performed based on a Wi-Fi network, data transmission is performed at a high frequency; when data communication is performed based on a Bluetooth network, data transmission is performed at a low frequency.
[0088] In addition, the preset values in this application, such as preset delay, preset collection frequency, preset reporting frequency, preset signal strength, etc., are not fixed, but are determined by the cloud based on the operation data of the energy storage system uploaded by the collector and the network conditions, and then sent to the collector after the cloud determines it. The specific determination method can be to store the corresponding relationship table in advance and obtain it by looking up the table.
[0089] This application monitors the network status in real time, switches between Wi-Fi network and Bluetooth network in a timely manner, and processes the data by adding tags when switching. It solves the problems of data loss and duplication when uploading the operating data of the energy storage system in the household storage scenario, and realizes the stable and complete upload of the operating data of the energy storage system in the household storage scenario to the cloud.
[0090] The embodiment of the present application also provides a data communication system based on a household storage scenario. The specific implementation of the system can refer to the description of the data communication method based on the household storage scenario, and the repeated parts will not be repeated. Figure 2 As shown, the system includes: a collector 201, a mobile terminal 202 and a cloud 203.
[0091] The collector 201 is connected to the cloud 203 through a Wi-Fi network, the collector 201 is connected to the mobile terminal 202 through a Bluetooth network and a Wi-Fi network, and the mobile terminal 202 is connected to the cloud 203 through a Wi-Fi network and a mobile network.
[0092] The collector 201 is used to send the operating data of the energy storage system to the cloud 203 via the Wi-Fi network.
[0093] The collector 201 is used to obtain the first signal strength of the Wi-Fi network between the router and the collector, and the first heartbeat packet corresponding to the preset time interval between the collector and the router; when it is determined that any one of the first signal strength and the first heartbeat packet indicates that the network situation does not meet the preset demand network, record the time point when the Wi-Fi network problem is determined, store and mark the operation data of the energy storage system from the time point; obtain the second signal strength of the Bluetooth network between the mobile terminal 202 and the mobile terminal 202 and the cloud 203 corresponding to the preset time interval; when it is determined that the second signal strength and the second heartbeat packet indicate that the network situation meets the preset demand network, switch the data communication mode from the Wi-Fi network to the Bluetooth network, and send the marked operation data and the operation data of the energy storage system after the network switching to the mobile terminal 202 through the Bluetooth network.
[0094] The mobile terminal 202 is used to send the operation data to the cloud 203 via a Wi-Fi network or a mobile network.
[0095] Specifically, the energy storage system corresponding to the collector 201 includes: inverters, batteries, household loads and other equipment, and each energy storage system corresponds to a collector 201. The collector 201 communicates data with downstream devices and has the ability to connect to a Wi-Fi network to upload data to the cloud 203. It also has a Bluetooth communication function and can connect to a mobile terminal 202 to upload data to the cloud 203.
[0096] Specifically, a matching software application (APP application) is installed on the mobile terminal 202, which can receive data sent by the collector 201 when the mobile terminal is connected to the Internet (Wi-Fi network and / or Bluetooth network), and upload the data to the cloud 203 to realize the function of assisting Internet access.
[0097] Specifically, the cloud 203 includes a data receiver, a data storage, a model optimizer and a data transmitter. The data receiver receives data sent by different collectors 201 and data sent by mobile terminals 202, and stores the data of the same device in the data storage by identification. At the same time, the device information of each collector 201 and / or mobile terminal is collected, the device information is input into the model optimizer for model optimization, and the output result of the model is transmitted to the data transmitter to issue different communication strategies to different devices.
[0098] In a specific embodiment, the cloud 203 is used to identify the data uploading device corresponding to the operation data, and store the operation data belonging to the same data uploading device together.
[0099] The data uploading devices include: different collectors 201 and different mobile terminals 202 .
[0100] Among them, the data uploading device uploads information such as the unique identification of the device, signal strength, device networking status, reporting frequency, single delay time, etc.
[0101] The cloud 203 includes a policy determination model, which optimizes the model through the data uploaded by the data uploading device, so that the policy determination model outputs a policy corresponding to the uploaded data.
[0102] In a specific embodiment, the mobile terminal 202 is used to send the network name and network password corresponding to the router to the collector 201 based on the Bluetooth network. The collector 201 connects to the Wi-Fi network based on the network name and password.
[0103] Figure 3 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 3 As shown, the electronic device may include: a processor 301, a communication interface 302, a memory 303 and a communication bus 304, wherein the processor 301, the communication interface 302 and the memory 303 communicate with each other through the communication bus 304. The processor 301 may call the logic instructions in the memory 303 to execute the data communication method based on the user storage scenario.
[0104] In addition, the logic instructions in the above-mentioned memory 303 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0105] On the other hand, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the data communication method based on the user storage scenario provided by the above methods.
[0106] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the data communication method based on the household storage scenario provided in the above-mentioned embodiments.
[0107] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0108] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0109] Finally, it should be noted that the above is only the preferred implementation of the present application, and the present application is not limited to the above embodiments. It is understood that other improvements and changes directly derived or associated by those skilled in the art without departing from the spirit and concept of the present application should be considered to be included in the scope of protection of the present application.
Claims
1. A data communication method based on household storage scenario, characterized in that: Applied to a collector, the collector includes: Wi-Fi and Bluetooth, the method includes: Obtaining a first signal strength of a Wi-Fi network between the collector and the router, and a first heartbeat packet corresponding to a preset time interval between the collector and the router, wherein the collector sends the operating data of the energy storage system to the cloud via the Wi-Fi network; When it is determined that any one of the first signal strength and the first heartbeat packet indicates that the network condition does not meet the preset required network, the time point when the Wi-Fi network problem is determined is recorded, and the operation data of the energy storage system starting from the time point is stored and marked; Acquire a second signal strength of the Bluetooth network between the collector and the mobile terminal, and a second heartbeat packet corresponding to a preset time interval between the mobile terminal and the cloud; When it is determined that the network status represented by the second signal strength and the second heartbeat packet meets the preset required network, the data communication mode is switched from the Wi-Fi network to the Bluetooth network, and the marked operating data and the operating data of the energy storage system after the network switching are sent to the mobile terminal through the Bluetooth network, so that the mobile terminal sends the operating data to the cloud.
2. The data communication method based on household storage scenario according to claim 1 is characterized in that: After determining that any one of the first signal strength and the first heartbeat packet represents that the network situation does not meet the preset required network situation, the method further includes: Determine whether the current moment is in the data reporting phase or the data receiving phase; In the case where it is determined that the current moment is in the data reporting stage, executing the step of storing and marking the operation data of the energy storage system starting from the time point; When it is determined that the current moment is in the data receiving stage, sending the policy data received from the cloud starting from the time point to the mobile terminal; The strategy data is obtained by the cloud based on the operation data and network conditions of the energy storage system.
3. The data communication method based on household storage scenario according to claim 1 is characterized in that: After recording the time point when the Wi-Fi network problem is determined and storing and marking the operation data of the energy storage system starting from the time point, the method further includes: When it is determined that the system is not connected to the Bluetooth network, the data collection frequency is reduced to a first preset collection frequency, and the collected operation data of the energy storage system is sent to the cloud via the Wi-Fi network; A data receiving instruction for indicating data reception returned by the cloud is received, and after receiving the data receiving instruction, the operation data of the energy storage system corresponding to the next data collection frequency is sent to the cloud via the Wi-Fi network.
4. The data communication method based on household storage scenario according to claim 3 is characterized in that: After the collected operation data of the energy storage system is sent to the cloud via the Wi-Fi network, the method further includes: When it is determined that the data receiving instruction has not been received, the operating data of the energy storage system corresponding to the current data collection frequency is sent to the cloud again via the Wi-Fi network, and when the number of retransmissions is greater than a preset number of times, the data reporting type and the first reporting time point of the operating data of the energy storage system corresponding to the current data collection frequency are determined, and the data reporting type, the first reporting time point and the operating data of the energy storage system corresponding to the current data collection frequency are stored.
5. The data communication method based on household storage scenario according to claim 4 is characterized in that: After storing the operating data of the energy storage system corresponding to the current data collection frequency, it also includes: When it is determined that any one of the first signal strength and the first heartbeat packet represents that the network condition meets the preset required network, the stored data reporting type, the first reporting time point and the operating data of the energy storage system are sent to the cloud via the Wi-Fi network.
6. The data communication method based on household storage scenario according to any one of claims 1 to 5, characterized in that: A first judgment basis of a Wi-Fi network problem includes: the first signal strength is less than a first preset signal strength and greater than a second preset signal strength, wherein the first preset signal strength is greater than the second preset signal strength; The second judgment basis of the Wi-Fi network problem includes: the average delay of the heartbeat packets at the preset time interval is greater than the first preset delay, and / or each delay in consecutive preset frames is greater than the second preset delay, wherein the first preset delay is greater than the second preset delay.
7. The data communication method based on household storage scenario according to claim 6 is characterized in that: The method further comprises: When it is determined that the first signal strength is less than the second preset signal strength and the average delay is greater than a third preset delay, the system is in an offline state, and the operation data of the energy storage system is collected and stored based on a preset second preset collection frequency, wherein the third preset delay is greater than the first preset delay; When it is determined that the first signal strength is less than the second preset signal strength and each delay in consecutive preset frames is greater than a fourth preset delay, it is in an offline state, and the operation data of the energy storage system is collected and stored based on a preset second preset collection frequency, wherein the fourth preset delay is greater than the second preset delay.
8. A data communication system based on household storage scenario, characterized in that: The system includes: a collector, a mobile terminal and a cloud; The collector is connected to the cloud through a Wi-Fi network, the collector is connected to the mobile terminal through a Bluetooth network and a Wi-Fi network, and the mobile terminal is connected to the cloud through a Wi-Fi network and a mobile network; The collector is used to send the operating data of the energy storage system to the cloud via the Wi-Fi network; The collector is used to obtain a first signal strength of the Wi-Fi network with the router, and a first heartbeat packet corresponding to a preset time interval between the collector and the router; when it is determined that any one of the first signal strength and the first heartbeat packet indicates that the network condition does not meet the preset demand network, record the time point when the Wi-Fi network problem is determined, and store and mark the operation data of the energy storage system from the time point; obtain a second signal strength of the Bluetooth network with the mobile terminal, and a second heartbeat packet corresponding to a preset time interval between the mobile terminal and the cloud; when it is determined that the second signal strength and the second heartbeat packet indicate that the network condition meets the preset demand network, switch the data communication mode from the Wi-Fi network to the Bluetooth network, and send the marked operation data and the operation data of the energy storage system after the network switching to the mobile terminal via the Bluetooth network; The mobile terminal is used to send the operating data to the cloud via a Wi-Fi network or a mobile network.
9. The data communication system based on household storage scenario according to claim 8 is characterized in that: The cloud is used to identify the data uploading device corresponding to the operation data, and store the operation data belonging to the same data uploading device together; Wherein, the data uploading device includes: the different collectors and different mobile terminals.
10. The data communication system based on household storage scenario according to claim 8, characterized in that: The mobile terminal is used to send the network name and network password corresponding to the router to the collector based on the Bluetooth network; The collector connects to the Wi-Fi network based on the network name and the password.