A data storage method, device, equipment, medium and product

By using an independently powered external memory and an internal dual-memory area scheme in the inverter, the problem of data storage anomalies during inverter operation is solved, and data continuity and reliability are achieved.

CN121050665BActive Publication Date: 2026-02-03NINGBO GINLONG TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202511605693.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-11-05
Publication Date
2026-02-03
Estimated Expiration
2045-11-05

AI Technical Summary

Technical Problem

Inverters face problems such as momentary power outages, communication interruptions, or fluctuations in operating status during operation, which can lead to abnormal data storage and affect the integrity and reliability of the data.

Method used

The basic data is stored in an external memory independent of the inverter power supply. The data is written to the first and second internal memory areas of the inverter respectively. Only when the operating state is stable, the data is synchronized to the second memory area according to a preset cycle. Finally, the data is written to the non-volatile internal memory to update the basic data in the external memory.

Benefits of technology

Even if the inverter experiences a momentary power outage or status fluctuation, the external memory can still retain the baseline data, ensuring data continuity and accuracy, avoiding data loss, and guaranteeing the integrity of historical data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121050665B_ABST
    Figure CN121050665B_ABST
Patent Text Reader

Abstract

The application provides a data storage method, device, equipment, medium and product, and relates to the technical field of data processing. The method stores basic data in an external memory independent of an inverter power supply. Even if the inverter is subjected to instantaneous power failure, the external memory can still retain the reference data, avoiding data loss. The basic data is synchronized to a first storage area and a second storage area of a first internal memory. When the inverter operating state is stable, the data of the first storage area and the second storage area is synchronized at a preset period and a write operation to a second internal memory is performed, avoiding the risk of data writing when the operating state fluctuates. Through the division of the two storage areas, it is ensured that the external display data is still accurate when the state fluctuates. After the second internal memory writes successfully, the basic data of the external memory is updated. Even if power failure occurs during the data writing process, the latest reference data can be restored through the external memory during the next inverter startup phase, ensuring the continuity of historical data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data processing technology, and in particular to a data storage method, apparatus, device, medium and product. Background Technology

[0002] Currently, in new energy application scenarios such as photovoltaics and energy storage, inverters, as core energy conversion devices, need to record and store key data such as power generation and date in real time during inverter operation. This key data is not only used for external display for users to view, but also needs to be stored as historical data for a long time to support subsequent analysis and statistics.

[0003] However, inverters operate in complex environments and may face issues such as momentary power outages, communication interruptions, or fluctuations in operating status, leading to data storage anomalies. Furthermore, if a power outage occurs during data writing to the storage module, incomplete data may be lost, resulting in discontinuous historical data and impacting the reliability of subsequent data applications. Summary of the Invention

[0004] This application provides a data storage method, apparatus, device, medium, and product to solve the problem of potential data anomalies in existing inverter power generation data storage.

[0005] Firstly, this application provides a data storage method, including:

[0006] During the inverter startup phase, basic data pre-stored in the external memory is acquired; wherein, the basic data includes the current date, the current day's power generation, and the previous day's power generation; the external memory and the inverter are powered by different power supply units;

[0007] The basic data is written to the first storage area and the second storage area of ​​the first internal memory of the inverter, respectively; wherein, the first storage area is the storage area for external display of power generation, and the second storage area is the storage area for actual power generation;

[0008] Determine whether the inverter's operating state is stable, and if the inverter's operating state is determined to be stable, write the data in the first storage area to the second storage area according to a preset cycle;

[0009] If the data in the first storage area is successfully written to the second storage area, the data in the second storage area is written to the second internal memory of the inverter.

[0010] If the data in the second storage area is successfully written to the second internal memory, the pre-stored basic data in the external memory is replaced with the data in the second storage area or the data in the second internal memory.

[0011] One possible design also includes:

[0012] If the inverter's operating state is determined to be unstable, monitor the displayed date on the monitoring system;

[0013] If it is determined that the displayed date of the system has changed, the value of yesterday's power generation in the first storage area is replaced with the value of today's power generation in the first storage area, and the value of today's power generation in the first storage area is cleared to zero.

[0014] In one possible design, after resetting the daily power generation value in the first storage area to zero, the following steps are also included:

[0015] Obtain the real-time power generation data of the inverter;

[0016] Based on the real-time power generation data, the daily power generation value in the first storage area is updated according to a preset update cycle.

[0017] In one possible design, determining whether the inverter's operating state is stable includes:

[0018] Obtain the continuous power-on duration of the inverter;

[0019] If the continuous power-on duration exceeds a preset duration threshold, the inverter is determined to be in a stable operating state.

[0020] If the continuous power-on duration is less than or equal to the preset duration threshold, the inverter is determined to be in an unstable operating state.

[0021] Alternatively, obtain the output power of the inverter;

[0022] When the output power is greater than a preset power threshold, the inverter is determined to be in a stable operating state.

[0023] If the output power is less than or equal to the preset power threshold, the inverter is determined to be in an unstable operating state.

[0024] In one possible design, determining that the inverter's operating state is stable when the continuous power-on duration exceeds a preset duration threshold includes:

[0025] If the continuous power-on duration exceeds the preset duration threshold, the anti-shake timing will be activated.

[0026] During the anti-shake timing, monitor whether the continuous power-on duration remains greater than the preset duration threshold;

[0027] If the continuous power-on duration during the anti-shake timing period remains greater than the preset duration threshold, then the inverter's operating state is determined to be stable.

[0028] In one possible design, writing the data in the second storage area to the second internal memory of the inverter includes:

[0029] Perform format validation on the data in the second storage area;

[0030] If the data in the second storage area has a format error, the valid data corresponding to the field with the format error is read from the first storage area;

[0031] Replace the data in the format-abnormal fields in the second storage area with the valid data;

[0032] If the data format in the second storage area is normal, the data in the second storage area is split according to the preset byte length to obtain multiple sub-data blocks;

[0033] The multiple sub-data blocks are sequentially written into the second internal memory of the inverter.

[0034] Secondly, this application provides a data storage device, comprising:

[0035] The acquisition module is used to acquire pre-stored basic data in the external memory during the inverter startup phase; wherein, the basic data includes the current date, the current day's power generation, and the previous day's power generation; the external memory and the inverter are powered by different power supply units;

[0036] The basic data writing module is used to write the basic data to the first storage area and the second storage area of ​​the first internal memory of the inverter, respectively; wherein, the first storage area is the storage area for external display of power generation, and the second storage area is the storage area for actual power generation;

[0037] The operating status judgment module is used to determine whether the operating status of the inverter is stable, and when the operating status of the inverter is determined to be stable, writes the data in the first storage area to the second storage area according to a preset cycle;

[0038] The second internal memory data writing module is used to write the data in the second storage area to the second internal memory of the inverter when the data in the first storage area is successfully written to the second storage area.

[0039] An external memory data writing module is used to replace the pre-stored basic data in the external memory with the data in the second memory or the data in the second internal memory when the data in the second memory area is successfully written to the second internal memory.

[0040] Thirdly, this application provides an electronic device, including: a processor, and a memory communicatively connected to the processor;

[0041] The memory stores computer-executed instructions;

[0042] The processor executes computer execution instructions stored in the memory to implement the method as described in any of the first aspects.

[0043] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any of the first aspects.

[0044] Fifthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the method described in any of the first aspects.

[0045] This application provides a data storage method, apparatus, device, medium, and product. The method uses an external memory independent of the inverter's power supply to store basic data. Even if the inverter experiences a momentary power outage, the external memory can still retain the reference data, preventing data loss due to power failure. By synchronizing the basic data to the first and second storage areas of a first internal memory, and synchronizing the data in the first and second storage areas at a preset cycle when the inverter's operating state is stable, and performing a write operation to the second internal memory, the risk of data write during operating state fluctuations is avoided. Furthermore, the dual storage areas work independently to ensure that the displayed data remains accurate even during communication interruptions or state fluctuations. Finally, after successful writing to the second internal memory, the basic data in the external memory is updated with the latest data. Even if a sudden power outage occurs during the data writing process, the latest reference data can be restored from the external memory during the next inverter startup phase, ensuring the continuity of historical data. Attached Figure Description

[0046] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0047] Figure 1 This application provides an example of a data storage method according to one embodiment of the present application, and includes an application scenario diagram.

[0048] Figure 2A schematic flowchart illustrating a data storage method according to an embodiment of this application;

[0049] Figure 3 A flowchart illustrating a data storage method provided in yet another embodiment of this application;

[0050] Figure 4 This is a schematic diagram of the structure of a data storage device provided in an embodiment of this application;

[0051] Figure 5 This is a structural example diagram of an electronic device provided in an embodiment of this application.

[0052] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0053] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0054] The collection, storage, use, processing, transmission, provision, and disclosure of financial data or user data involved in the technical solution of this application all comply with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0055] It should be noted that in the embodiments of this application, certain software, components, models and other existing solutions in the industry may be mentioned. These should be regarded as exemplary and are only intended to illustrate the feasibility of implementing the technical solution of this application. However, it does not mean that the applicant has used or necessarily used the solution.

[0056] To clearly understand the technical solution of this application, the solutions of the prior art will be described in detail first.

[0057] Currently, in new energy application scenarios such as photovoltaics and energy storage, inverters, as core energy conversion devices, need to record and store key data such as power generation and date in real time during inverter operation. This key data is not only used to display to users so that they can intuitively understand the inverter's operating status and energy output, but also stored as historical data for a long time, providing data basis for subsequent equipment operation analysis, energy statistics, fault diagnosis and other work.

[0058] However, inverters operate in complex environments and are often subject to various adverse factors, leading to significant risks in data storage. Firstly, momentary power outages may occur during inverter operation; if this happens while data is being written to the storage module, any incomplete data will be lost. Secondly, inverters may experience fluctuations in their operating status over long-term operation, such as unstable output power or momentary internal circuit anomalies. These fluctuations can affect the accuracy of data acquisition and writing, resulting in inaccurate or discontinuous stored data. Therefore, these data storage anomalies directly impact the integrity and reliability of historical inverter power generation data.

[0059] Therefore, when facing the technical problems of the existing technology mentioned above, in order to avoid the inverter facing situations where data is lost due to momentary power outages and inaccurate data acquisition and writing due to fluctuations in operating status, thus affecting data integrity and reliability, the following measures are taken: First, considering that momentary power outages can easily lead to data loss due to inverter power interruption, an external memory can be designed to be powered independently from the inverter to ensure that complete basic data can be acquired during the startup phase. Next, to meet the needs of both external data display and actual storage, the external memory is written into a dual storage area of ​​the first internal memory, achieving initial separation and backup of display and actual data. Furthermore, considering that fluctuations in the inverter's operating status affect data accuracy, the stability of the state needs to be assessed first, and data from the first storage area is periodically synchronized to the second storage area only when the state is stable to avoid data deviation during periods of fluctuation. Subsequently, to achieve long-term reliable data storage, the data from the second storage area is written into the non-volatile second internal memory. Finally, by updating the basic data in the external memory with the latest reliable data, the problem of data storage anomalies can be solved.

[0060] Figure 1 An application scenario diagram corresponding to a data storage method provided in an embodiment of this application is shown, such as... Figure 1 As shown, the application scenario provided in this embodiment includes: external memory 10, inverter 11, and data processing device 12. External memory 10 and inverter 11 are powered by different power supply units. Inverter 11 includes random access memory 111 and non-volatile memory 112. External memory 10, random access memory 111 and non-volatile memory 112 are all communicatively connected to data processing device 12.

[0061] Specifically, during the inverter 11 startup phase, the data processing device 12 acquires the pre-stored basic data in the external memory 10 and writes the basic data into the first and second storage areas of the random access memory 11, respectively. The basic data includes the current date, the current day's power generation, and the previous day's power generation. The first storage area is the power generation display storage area, and the second storage area is the actual power generation storage area. Afterward, the data processing device 12 determines whether the inverter 11's operating state is stable. If the inverter 11's operating state is determined to be stable, the data in the first storage area is written into the second storage area according to a preset cycle, and the data in the second storage area is written into the non-volatile memory 112. Finally, the data in the second storage area or the data in the non-volatile memory 112 is used to replace the pre-stored basic data in the external memory 10.

[0062] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.

[0063] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or modules, and may be electrical, mechanical, or other forms.

[0064] Figure 2 This is a flowchart illustrating a data storage method according to an embodiment of this application, as shown below. Figure 2 As shown, the execution subject in this embodiment is a data storage device. This data storage device can be implemented through a computer program, or through a medium storing the relevant computer program, such as a USB flash drive and / or optical disc; alternatively, it can be implemented through a physical device that integrates or installs the relevant computer program, such as a chip or electronic device. The electronic device may be a computer or a server, etc. The data storage method provided in this embodiment includes the following steps:

[0065] S201. During the inverter startup phase, the basic data pre-stored in the external memory is acquired. The basic data includes the current date, the current day's power generation, and the previous day's power generation. The external memory and the inverter are powered by different power supply units.

[0066] Optionally, during the inverter startup phase, a data acquisition command is first triggered to read pre-stored basic data from an external memory that is powered independently of the inverter. This basic data includes the current date, daily power generation, and yesterday's power generation. This basic data serves as the benchmark for subsequent data acquisition and storage by the inverter, ensuring seamless integration of data records after startup with historical data.

[0067] Optionally, in the initial stage, the pre-stored basic data can be values ​​preset by the staff, such as setting the daily power generation to 0 or the yesterday's power generation to 0.

[0068] Optionally, the external memory can be a BKP (Backup) storage module within the microcontroller, primarily used to save and restore critical data after system power failure or reset. Optionally, the BKP storage module can be powered by a coin cell battery. The coin cell battery capacity ensures data retention for ≥5 years even during prolonged inverter power outages. Optionally, data from the BKP storage module is read via an I2C (Inter-Integrated Circuit) interface.

[0069] It should be noted that the external storage device and the inverter are powered by different power supply units. When the inverter experiences a power outage due to a momentary power failure or power supply abnormality, the power supply unit of the external storage device remains unaffected and can still provide stable power to the external storage device. This ensures that the basic data stored in the external storage device will not be lost due to inverter power supply problems. For example, the inverter's power supply unit powers its internal circuits and data acquisition modules, while the external storage device's power supply unit can be independently connected to a backup power supply or a stable external power supply. The two power supply circuits are completely independent, providing a fundamental guarantee for the security of basic data.

[0070] S202. Write the basic data into the first storage area and the second storage area of ​​the first internal memory of the inverter respectively; wherein, the first storage area is the storage area for external display of power generation, and the second storage area is the storage area for actual power generation.

[0071] Optionally, after successfully acquiring the basic data from the external memory, the basic data is synchronously written to the first and second storage areas of the inverter's first internal memory. The first internal memory is a storage module integrated within the inverter, capable of rapid data writing and reading to meet real-time data processing requirements.

[0072] Furthermore, the first internal memory is pre-divided into a first storage area and a second storage area that are independent of each other.

[0073] The first storage area is a storage area for external display of power generation. The core function of the first storage area is to store updated power generation data and transmit the data to display modules, such as the display screen of the user terminal or the display interface of the remote monitoring platform, for users to view in real time.

[0074] The second storage area is the actual power generation storage area. Its function is to serve as a backup storage area for data, storing the raw, unprocessed actual power generation data. The data in the second storage area is only used for internal data transfer and backup, and is not directly provided to the outside world for data display services.

[0075] Optionally, the first internal memory can be RAM (Random Access Memory). RAM is a volatile memory that loses data after power failure. It is often used for temporary data storage for fast reading and writing by computers and other devices. Optionally, during the initialization phase of the inverter startup, two 16-byte storage areas can be allocated in RAM using a memory allocation function. The address of the first storage area can be "0x20000000" and the address of the second storage area can be "0x20000010".

[0076] It should be noted that the basic data is written to two functionally distinct storage areas: the first storage area ensures the real-time performance and availability of the data displayed externally; the second storage area stores the original data, providing a basis for subsequent data verification and recovery, thus preventing the loss of basic data due to corruption in a single storage area and improving data security at the storage area level.

[0077] S203. Determine whether the inverter's operating state is stable, and if the inverter's operating state is determined to be stable, write the data in the first storage area to the second storage area according to a preset cycle.

[0078] Optionally, after the basic data is written, the operating status of the inverter is monitored, and the operating parameters of the inverter, such as output voltage stability, output current fluctuation range, internal circuit temperature, and communication link status, are collected in real time. Based on the preset operating stability judgment criteria, it is determined whether the operating status of the inverter is stable.

[0079] The criteria for judging stable operation can be preset according to the inverter model and application scenario. For example, when the output voltage fluctuation range is within ±2%, the output current fluctuation range is within ±3%, and the communication link is uninterrupted and the continuous stable transmission time exceeds 5 seconds, the inverter is judged to be in a stable operating state. It should be noted that this embodiment does not limit how to judge the inverter's operating state, and can be flexibly set according to the actual application scenario.

[0080] Optionally, if the inverter's operating state is determined to be stable, a periodic data writing mechanism is initiated to write the data updated in real time in the first storage area to the second storage area according to a preset cycle.

[0081] The preset period is a pre-set data transmission time, such as 1 minute or 5 minutes. The preset period can be adjusted according to the actual data accuracy requirements.

[0082] It should be noted that when the inverter's operating state is unstable, data acquisition and transmission may deviate. Performing data writing operations under these conditions could easily lead to inaccurate stored data. Therefore, by first determining the inverter's operating state and only performing periodic data writing under stable conditions, the accuracy of the data written to the second storage area can be ensured. Furthermore, the periodic writing mechanism avoids excessive load on the storage module due to continuous real-time writing, balancing the data update frequency with the storage module's lifespan.

[0083] S204. If the data in the first storage area is successfully written to the second storage area, the data in the second storage area is written to the second internal memory of the inverter.

[0084] Optionally, after data in the first storage area is successfully written to the second storage area, a data verification mechanism is triggered to perform integrity verification on the data just written to the second storage area to confirm that the data is complete and error-free. Optionally, data verification can be performed through methods such as checksum or data length comparison.

[0085] Optionally, if the data verification passes, i.e., it is determined that the data in the first storage area has been successfully written to the second storage area, the complete data stored in the second storage area is written to the second internal memory of the inverter.

[0086] Optionally, the second internal memory can be a non-volatile memory, such as EEPROM or Flash. Non-volatile memory is characterized by its ability to retain data even after power loss and its large storage capacity, making it suitable for long-term storage of historical data. Optionally, data can be written to the historical data partition of the Flash memory via an SPI interface.

[0087] Optionally, a date tag is appended when writing data to the second internal memory.

[0088] It should be noted that writing data into the second internal memory is equivalent to creating a long-term historical data repository inside the inverter. When the second internal memory is selected as a non-volatile memory, it can further ensure that the data is not lost in the event of a short-term power outage of the inverter.

[0089] S205. If the data in the second storage area is successfully written to the second internal memory, the data in the second storage area or the data in the second internal memory is used to replace the pre-stored basic data in the external memory.

[0090] Optionally, after the data in the second storage area is successfully written to the second internal memory, the data verification process is restarted to verify the data written to the second internal memory to ensure that the data is complete and error-free. Optionally, if the data writing is confirmed to be successful, the data in the second storage area or the data in the second internal memory is selected to replace the pre-stored basic data in the external memory, according to the actual data update requirements.

[0091] For example, if the data in the second storage area is the latest periodically updated data and is consistent with the data in the second internal memory, the data in the second storage area can be directly used to replace the basic data in the external memory.

[0092] Optionally, when the second internal memory is Flash, the data in the second storage area can be successfully written by reading the Flash status register.

[0093] It should be noted that the basic data in the external memory serves as the data reference for the inverter's next startup. By updating the basic data with the latest information, it ensures that the data records after each inverter startup are based on the latest historical data, avoiding data gaps caused by outdated basic data and achieving continuous historical data continuity. Furthermore, the updated basic data remains stored in an independently powered external memory, ensuring its safety in case of anomalies during subsequent inverter operation.

[0094] This application provides a data storage method that uses an external memory independent of the inverter's power supply to store basic data. Even if the inverter experiences a momentary power outage, the external memory can still retain the reference data, avoiding data loss due to power failure. By synchronizing the basic data to the first and second storage areas of the first internal memory, the data in the first and second storage areas are synchronized at a preset cycle when the inverter's operating state is stable, and a write operation is performed to the second internal memory. This avoids the risk of data writes during fluctuations in operating state. In addition, the dual storage areas work separately to ensure that the displayed data remains accurate even when communication is interrupted or the state fluctuates. Finally, after the write operation to the second internal memory is successful, the basic data in the external memory is updated with the latest data. Even if a sudden power outage occurs during the data write process, the latest reference data can be restored from the external memory during the next inverter startup phase, ensuring the continuity of historical data.

[0095] It should be noted that the first storage area is dedicated to displaying data externally, and can quickly update and transmit data to meet users' needs for viewing real-time data; the second internal storage can be used as a non-volatile storage module to store historical data for a long time, meeting long-term storage requirements.

[0096] As an optional implementation, based on any of the above embodiments, the method further includes:

[0097] First, if the inverter's operating state is determined to be unstable, monitor the displayed date on the monitoring system.

[0098] Secondly, if it is determined that the system's displayed date has changed, the value of yesterday's power generation in the first storage area is replaced with the value of today's power generation in the first storage area, and the value of today's power generation in the first storage area is cleared to zero.

[0099] Optionally, when the inverter's operating state is determined to be unstable, a date monitoring mechanism is activated to monitor in real time whether the system's displayed date changes. The change in the system's displayed date corresponds to the switching of natural days, such as transitioning from 23:59:59 of the current day to 00:00:00 of the next day. The change in the system's displayed date is a key time node for the daily statistics of power generation data.

[0100] Optionally, if it is determined that the system's displayed date has changed, a data reset command is triggered to process the power generation data in the first storage area. Specifically, the power generation value of yesterday in the first storage area is directly replaced with the power generation value of today in the first storage area, and at the same time, the power generation value of today in the first storage area is cleared to zero.

[0101] It should be noted that the data processing only applies to the data in the first storage area and does not affect the data in the second storage area, the second internal memory, or the external memory. Specifically, yesterday's power generation in the first storage area is replaced with the original power generation for the current day to ensure that yesterday's power generation displayed after the date change accurately reflects the actual total power generation of the previous calendar day; while the current day's power generation is reset to zero so that the power generation data for the new date can be recalculated from 0, which conforms to users' cognitive habits of the current day's power generation and the logic of data statistics.

[0102] It should be noted that date switching is a core node in the daily division of power generation. Regardless of whether the inverter's operating status is stable, the values ​​of yesterday's power generation and today's power generation must be successfully linked. Otherwise, it will lead to cross-day miscalculations in subsequent data statistics, such as including yesterday's remaining power generation in today's data, or including yesterday's data in today's initial power generation. When the inverter's operating status is unstable, if we wait for the status to stabilize before processing the date switching data, the instability may last for a long time, resulting in the generation data for the new date being generated but not counted in time, or the old date's data not being archived in time, thus causing the displayed data to be inconsistent with the actual data.

[0103] It should also be noted that since the core function of the first storage area is external display, the data processing of the first storage area must prioritize real-time performance and statistical accuracy. The raw data stored in the second storage area, the long-term data stored in the second internal memory, and the basic data stored in the external memory all need to be synchronized and updated after the inverter's state stabilizes, in order to avoid data deviations caused by frequent data operations when the state is unstable.

[0104] It should also be noted that even when the inverter's operating status is unstable, the user's need to view real-time data does not disappear, especially the yesterday's and today's power generation figures after the date change. This data is crucial for users to understand the previous day's power generation results and assess the current day's power generation trend. By prioritizing the processing of data in the first storage area, it is ensured that even when the status is unstable, users can still view accurate cross-day power generation data. This avoids data display stagnation or errors due to instability, thus protecting the user's core data viewing experience.

[0105] As an optional implementation, based on any of the above embodiments, after clearing the daily power generation value in the first storage area to zero, the following steps are also included:

[0106] First, acquire the real-time power generation data of the inverter; second, based on the real-time power generation data, update the daily power generation value in the first storage area according to the preset update cycle.

[0107] Optionally, after resetting the daily power generation value in the first storage area to zero, the inverter's data acquisition module can be activated. This module, in conjunction with internal inverter components such as current and voltage sensors, collects real-time power generation parameters, such as output current, output voltage, and power generation duration. Based on power generation data calculation rules, it generates real-time power generation data for the inverter. For example, the power generation calculation formula could be: Real-time power generation = Output voltage × Output current × Power generation duration.

[0108] Optionally, after acquiring real-time power generation data, the daily power generation value in the first storage area is dynamically updated according to a preset update cycle.

[0109] The preset update cycle is a time period pre-set based on the user's need for real-time data. For example, if the user needs to frequently check the power generation status, the update cycle can be set to 10 seconds / time; if the user's real-time requirements are relatively low, it can be set to 1 minute / time.

[0110] Specifically, each time the daily power generation value is updated, the data acquisition module will add the latest calculated real-time power generation data to the current daily power generation value in the first storage area, and write the result of the addition to the first storage area, overwriting the original daily power generation value, thus completing a data update.

[0111] It should be noted that the update process in this embodiment only applies to the daily power generation data in the first storage area, and the update operation is not affected by whether the inverter's current operating state is stable. Even if the inverter is still in an unstable operating state, as long as the data acquisition module can normally acquire real-time power generation parameters, the data update can be completed according to the preset cycle.

[0112] As an optional implementation, based on any of the above embodiments, determining whether the inverter's operating state is stable specifically includes the following steps:

[0113] Obtain the continuous power-on duration of the inverter.

[0114] If the continuous power-on duration exceeds a preset duration threshold, the inverter's operating state is determined to be stable; if the continuous power-on duration is less than or equal to the preset duration threshold, the inverter's operating state is determined to be unstable.

[0115] Optionally, after the inverter starts up and completes basic data initialization, an internal timing module, such as a real-time clock chip or software timing program, is activated. This timing module continuously records the running time from the moment the inverter successfully powers on and begins to output power normally. When it is necessary to determine the operating status, the current cumulative continuous power-on time is obtained from the timing module through a data read command, that is, the continuous running time of the inverter since power-on.

[0116] The preset time threshold is a duration pre-set based on the inverter model, startup characteristics, and application scenario. For example, for small photovoltaic inverters, whose startup stabilization cycle is usually short, the preset time threshold can be set to 30 seconds; for large energy storage inverters, due to their more complex internal components, the startup stabilization cycle is longer, and it can be set to 5 minutes.

[0117] It should be noted that when the acquired continuous power-on duration exceeds the preset duration threshold, it indicates that the inverter has completed the unstable transition phase after startup, and all components have entered a stable working state. At this time, the inverter is determined to be in a stable operating state, and a stable state signal (high level) is output, allowing subsequent periodic data writing and other operations to be performed.

[0118] It should be noted that when the obtained continuous power-on duration is less than or equal to the preset duration threshold, it indicates that the inverter is still in the transition phase after startup. There may be voltage fluctuations and unstable power output in the internal components. At this time, the inverter is determined to be in an unstable operating state and outputs an unstable state signal (low level). The data writing operation needs to be suspended and only basic data monitoring and display are performed.

[0119] Alternatively, the following steps can be used to determine whether the inverter is operating stably:

[0120] Obtain the inverter's output power. If the output power is greater than a preset power threshold, the inverter's operating state is determined to be stable; if the output power is less than or equal to the preset power threshold, the inverter's operating state is determined to be unstable.

[0121] Optionally, during inverter operation, the output current and output voltage at the inverter's output terminal are collected in real time through a power detection module integrated within the inverter. Based on the collected real-time current and voltage data, the power detection module calculates the inverter's output power in real time according to the power calculation formula and stores this data in a temporary data buffer for use when determining the inverter's operating status.

[0122] Alternatively, the power calculation formula can be: Output power = Output voltage × Output current.

[0123] The preset power threshold is a power value pre-set based on the inverter's rated output power and the load characteristics of the application scenario. For example, for a photovoltaic inverter with a rated output power of 5kW, the output power is lower when the sunlight is weak. If the output power is lower than 500W, the data collection may be inaccurate due to large power fluctuations. In this case, the preset power threshold can be set to 500W. For energy storage inverters, if they are mainly used to stabilize the power supply to the load, the preset power threshold can be set to 10% of the rated output power. For example, if the rated power is 100kW, the preset power threshold can be set to 10kW.

[0124] Optionally, when the acquired output power is greater than the preset power threshold, it indicates that the inverter is currently in an effective load operation state, the power output is stable, all internal modules are working stably under normal load, and the accuracy of data acquisition and transmission is guaranteed. At this time, the inverter is determined to be in a stable operating state and outputs a stable state signal (high level).

[0125] Optionally, when the acquired output power is less than or equal to the preset power threshold, it indicates that the inverter may be in a light load or no load state. At this time, the internal power module may be intermittently working, the output voltage may fluctuate, and the data acquisition is easily interfered with. In this case, the inverter is determined to be in an unstable operating state and an unstable state signal (low level) is output.

[0126] It should be noted that the above two judgment methods can be used individually or in combination according to actual needs. For example, the stability of the startup phase can be determined first by the duration of continuous power-on, and then the stability of the operation phase can be determined by the output power after startup. Optionally, when the two judgment methods are used in combination, the stability conditions of both methods must be met simultaneously to determine that the inverter is operating stably, thereby further improving the accuracy of the judgment.

[0127] It should be noted that by converting the inverter's stable operating state into two quantifiable and monitorable indicators—continuous power-on duration and output power—a clear execution standard is provided for judging the operating state. Specifically, by utilizing the inherent characteristics of the inverter's startup and operation phases, the continuous power-on duration and output power, which are strongly correlated with state stability, are determined. By presetting reasonable thresholds, a judgment mechanism is established to determine stability once the parameters meet the standards, ensuring that the judgment results conform to both the inverter's hardware operating rules and the data storage requirements for state stability. Furthermore, the selectivity and combinability of the two judgment methods allow it to be adapted to different types of inverters and different application scenarios, improving the versatility of the solution.

[0128] As an optional implementation, based on any of the above embodiments, determining that the inverter's operating state is stable when the continuous power-on duration exceeds a preset duration threshold includes the following steps:

[0129] First, if the continuous power-on time exceeds the preset duration threshold, the image stabilization timer is activated.

[0130] Secondly, during the image stabilization timing, monitor whether the continuous power-on duration remains greater than the preset duration threshold.

[0131] Finally, if the continuous power-on duration during the anti-shake timing period remains greater than the preset duration threshold, the inverter's operating state is determined to be stable.

[0132] It should be noted that in this embodiment, when the continuous power-on duration obtained by the timing module exceeds the preset duration threshold, the inverter is not directly determined to be in a stable operating state. Instead, anti-shake timing is started first, and the validity of the continuous power-on duration is ensured through a fixed period of stability monitoring.

[0133] Specifically, when the continuous power-on duration is detected to exceed a preset duration threshold, the internal anti-shake timing module is triggered and the anti-shake timing period, i.e., the anti-shake duration, is set. This internal anti-shake timing module can be integrated into the timing module or implemented through a separate software timer. The anti-shake duration setting needs to consider the duration of power supply fluctuations that may occur during the inverter's power-on process, and is typically set to 1-5 seconds. For example, if the instantaneous fluctuations in the power grid generally do not exceed 2 seconds, the anti-shake duration is set to 3 seconds to ensure coverage of most instantaneous fluctuation scenarios and avoid situations where the anti-shake duration is too short to filter fluctuations or too long to cause delays in status judgment.

[0134] Optionally, after the anti-shake timing is started, the timing module continues to record the continuous power-on duration of the inverter in real time. The anti-shake monitoring unit reads the continuous power-on duration data at a high frequency (e.g., 100ms / time) and compares it with the preset duration threshold in real time to determine whether the continuous power-on duration is always greater than the preset duration threshold during the entire anti-shake timing period.

[0135] Optionally, if during the anti-shake timing period, a monitoring indicates that the continuous power-on duration is less than or equal to a preset duration threshold, the current anti-shake timing is immediately terminated. This could be due to a momentary power outage causing a brief interruption in timing, or data jumps in the timing module caused by interference. Optionally, the system waits for the trigger condition that the continuous power-on duration again exceeds the preset duration threshold before restarting the anti-shake timing.

[0136] Optionally, if all monitoring results meet the condition that the continuous power-on duration is greater than the preset duration threshold throughout the entire anti-shake timing cycle, it indicates that the continuous power-on duration has stably exceeded the threshold, and there is no misjudgment caused by instantaneous fluctuations. When the anti-shake timing ends normally, and the continuous power-on duration consistently remains greater than the preset duration threshold, the inverter's operating state is officially determined to be stable, and subsequent periodic data writing and other operations can be triggered.

[0137] It should be noted that inverters may be subject to momentary grid interference during operation, causing brief fluctuations in power supply on the order of milliseconds or seconds. These fluctuations may cause instantaneous jumps in the continuous power-on duration recorded by the timing module. If a single detected continuous power-on duration exceeding a preset threshold is directly used as the basis for stability judgment, this fluctuating state may be misjudged as a stable state, leading to data writing operations and resulting in data storage deviations. Furthermore, utilizing a jitter-resistant timing mechanism adds a fault-tolerant barrier to the operational status judgment, ensuring accuracy and avoiding subsequent data storage risks due to misjudgments. This improves overall system reliability and is particularly suitable for scenarios such as photovoltaic inverters in remote areas with poor grid stability and energy storage systems with multiple devices sharing the grid.

[0138] Figure 3 A flowchart illustrating a data storage method provided in another embodiment of this application is shown below. Figure 3 As shown in the figure, as an optional implementation, based on any of the above embodiments, writing the data in the second storage area to the second internal memory of the inverter includes the following steps:

[0139] S301. Perform format verification on the data in the second storage area.

[0140] It should be noted that after determining that data in the second storage area needs to be written to the second internal memory, the write operation is not performed directly, but the data in the second storage area is first validated in terms of format.

[0141] Optionally, read the complete data to be written from the second storage area, including fields such as the current date, the current day's power generation, and the previous day's power generation, and validate each field according to preset data format rules.

[0142] The preset data format rules must clearly define the data type, length, value range, and format identifier of each field. For example, the "Current Date" field must conform to the "YYYY-MM-DD" format and have a fixed length of 8 characters; the "Today's Power Generation" and "Yesterday's Power Generation" fields must be non-negative floating-point numbers with 2 decimal places.

[0143] Optionally, during the verification process, if all fields conform to the format rules, the data format in the second storage area is determined to be normal; if any field does not conform to the rules, the data in the second storage area is determined to have a format error, and the location and error type of the error field are recorded.

[0144] S302. If the data in the second storage area has a format error, read the valid data corresponding to the field with the format error from the first storage area.

[0145] S303. Replace the data in the format-abnormal field in the second storage area with valid data.

[0146] Optionally, if the data in the second storage area is determined to have a format anomaly, firstly, the specific anomaly field is located based on the location of the anomaly field in the format verification record; then, a data read command is sent to the first storage area to read the valid data corresponding to the anomaly field. This is because the initial data in the first and second storage areas is consistent, and the data in the first storage area is only used for external display and has not undergone multiple rounds of internal data flow, resulting in higher format stability. Therefore, the corresponding field data stored in the first storage area can be considered valid data. Finally, the valid data read from the first storage area is used to directly overwrite the data in the format anomaly field in the second storage area, completing the anomaly data repair.

[0147] For example, if the daily power generation field in the second storage area is "-5.23kWh", then the valid data "5.23kWh" for that field is read from the first storage area, the abnormal data in the second storage area is replaced, and after repair, it is verified again to confirm that the format is normal.

[0148] S304. If the data format in the second storage area is normal, the data in the second storage area is split according to the preset byte length to obtain multiple sub-data blocks.

[0149] S305. Write multiple sub-data blocks sequentially into the second internal memory of the inverter.

[0150] Optionally, if the data format of the second storage area is determined to be normal, the complete data in the second storage area is split into multiple sub-data blocks according to a preset byte length. The preset byte length is a byte length pre-set based on the maximum number of bytes that can be written in a single operation to the second internal memory.

[0151] For example, if the second internal memory can write a maximum of 64 bytes of data at a time, and the complete data in the second storage area is 128 bytes, then it is split into two sub-data blocks of a preset length of 64 bytes. If the complete data is 80 bytes, it is split into two sub-data blocks of "64 bytes + 16 bytes", and each sub-data block needs to be marked with a block sequence number (e.g., 01, 02) and the total number of blocks (e.g., 02) to facilitate subsequent reassembly and verification after writing.

[0152] It should be noted that during the splitting process, the integrity of the fields must be ensured to avoid splitting a single field into two sub-data blocks. If the preset byte length causes the field to be split, the splitting position will be automatically adjusted to ensure that the fields in each sub-data block are complete and recognizable.

[0153] Optionally, after data splitting is completed, each sub-data block is written to the second internal memory sequentially according to its sequence number. After all sub-data blocks have been successfully written, all sub-data blocks in the second internal memory are read, reassembled into complete data according to their sequence number and total number of blocks, and compared with the original data in the second storage area to confirm that the reassembled data is complete and error-free.

[0154] It should be noted that data in the second storage area may become formatted abnormally during transfer due to electromagnetic interference or momentary malfunctions of the storage module. Directly writing this data to the second internal memory could corrupt long-term stored data. By verifying the format and repairing the data in the first storage area, the anomalies can be corrected using the baseline data from the first storage area, ensuring that data written to the second internal memory remains valid and preventing the long-term storage of invalid data. Furthermore, different models of the second internal memory have a maximum limit on the number of bytes that can be written at one time. If the amount of data to be written exceeds this limit, the write operation will fail immediately. By splitting the data into preset byte lengths, the write capabilities of different hardware can be adapted, improving write efficiency.

[0155] Figure 4 This is a schematic diagram of the structure of a data storage device provided in an embodiment of this application, as shown below. Figure 4 As shown, the data storage device provided in this embodiment is located in an electronic device. Specifically, the data storage device 40 provided in this embodiment includes: an acquisition module 41, a basic data writing module 42, an operating status judgment module 43, a second internal memory data writing module 44, and an external memory data writing module 45.

[0156] Specifically, the acquisition module 41 is used to acquire pre-stored basic data in the external memory during the inverter startup phase; the basic data includes the current date, the current day's power generation, and the previous day's power generation; the external memory and the inverter are powered by different power supply units; the basic data writing module 42 is used to write the basic data to the first storage area and the second storage area of ​​the inverter's first internal memory respectively; the first storage area is the power generation display storage area, and the second storage area is the actual power generation storage area; the operating status judgment module 43 is used to determine whether the inverter's operating status is stable, and if the inverter's operating status is determined to be stable, write the data in the first storage area to the second storage area according to a preset cycle; the second internal memory data writing module 44 is used to write the data in the second storage area to the inverter's second internal memory if the data in the first storage area is successfully written to the second storage area; the external memory data writing module 45 is used to replace the pre-stored basic data in the external memory with the data in the second storage area or the data in the second internal memory if the data in the second storage area is successfully written to the second internal memory.

[0157] Optionally, the operating status judgment module 43 is further configured to: monitor the system's displayed date when it is determined that the inverter's operating status is unstable; and replace yesterday's power generation value in the first storage area with today's power generation value in the first storage area when it is determined that the system's displayed date has changed, and clear today's power generation value in the first storage area.

[0158] Optionally, a data storage device may further include a data update module.

[0159] Optionally, after clearing the daily power generation value in the first storage area to zero, the acquisition module 41 is also used to acquire the real-time power generation data of the inverter; the data update module is used to update the daily power generation value in the first storage area according to a preset update cycle based on the real-time power generation data.

[0160] Optionally, the operating status judgment module 43, when judging whether the operating status of the inverter is stable, is specifically used to: obtain the continuous power-on duration of the inverter; if the continuous power-on duration is greater than a preset duration threshold, determine that the operating status of the inverter is stable; if the continuous power-on duration is less than or equal to the preset duration threshold, determine that the operating status of the inverter is unstable; or, obtain the output power of the inverter; if the output power is greater than a preset power threshold, determine that the operating status of the inverter is stable; if the output power is less than or equal to the preset power threshold, determine that the operating status of the inverter is unstable.

[0161] Optionally, the operating status judgment module 43, when determining that the inverter's operating status is stable under the condition that the continuous power-on duration is greater than the preset duration threshold, specifically performs the following: when the continuous power-on duration is greater than the preset duration threshold, start anti-shake timing; during the anti-shake timing period, monitor whether the continuous power-on duration remains greater than the preset duration threshold; if the continuous power-on duration remains greater than the preset duration threshold during the anti-shake timing period, then determine that the inverter's operating status is stable.

[0162] Optionally, the second internal memory data writing module 44, when writing data from the second storage area to the second internal memory of the inverter, specifically performs the following: performs format verification on the data in the second storage area; if the data in the second storage area has a format error, reads the valid data corresponding to the format error field from the first storage area; replaces the data of the format error field in the second storage area with the valid data; if the data in the second storage area has a normal format, splits the data in the second storage area according to a preset byte length to obtain multiple sub-data blocks; and writes the multiple sub-data blocks sequentially to the second internal memory of the inverter.

[0163] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application, as shown below. Figure 5 As shown, the electronic device 50 provided in this embodiment includes a processor 52 and a memory 51 that is communicatively connected to the processor 52.

[0164] The memory 51 stores computer-executable instructions; the processor 52 executes the computer-executable instructions stored in the memory 51 to implement a data storage method provided in any of the above embodiments.

[0165] The program may include program code, which includes computer-executable instructions. Memory 51 may include high-speed RAM, and may also include non-volatile memory, such as at least one disk storage device.

[0166] In this embodiment, the memory 51 and the processor 52 are connected via a bus. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 5 The bus is represented by a single straight line, but this does not mean that there is only one bus or one type of bus.

[0167] This application also provides a computer-readable storage medium, which includes computer-executable instructions stored in the computer-readable storage medium. When the computer-executable instructions are executed by a processor, they are used to implement a data storage method provided in any of the above embodiments.

[0168] This application also provides a computer program product, including a computer program that, when executed by a processor, implements a data storage method provided in any of the above embodiments.

[0169] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to implement the solution of this embodiment according to actual needs.

[0170] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing unit, or each module can exist physically separately, or two or more modules can be integrated into one unit. The unit composed of the above modules can be implemented in hardware or in the form of hardware plus software functional units.

[0171] The integrated modules described above, implemented as software functional modules, can be stored in a computer-readable storage medium. These software functional modules, stored in a storage medium, include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute some steps of the methods of the various embodiments of this application.

[0172] It should be understood that the aforementioned processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. A general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly manifested as execution by a hardware processor, or execution by a combination of hardware and software modules within the processor.

[0173] The memory may include high-speed RAM, and may also include non-volatile storage (NVM), such as at least one disk storage device, and may also be a USB flash drive, external hard drive, read-only memory, disk or optical disc, etc.

[0174] The aforementioned storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer.

[0175] An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Alternatively, the storage medium can be an integral part of the processor. The processor and storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and storage medium can exist as discrete components in an electronic control unit or main control device.

[0176] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.

[0177] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

Claims

1. A data storage method, characterized in that, include: During the inverter startup phase, basic data pre-stored in the external memory is acquired; wherein, the basic data includes the current date, the current day's power generation, and the previous day's power generation; the external memory and the inverter are powered by different power supply units; The basic data is written to the first storage area and the second storage area of ​​the first internal memory of the inverter, respectively; wherein, the first storage area is the storage area for external display of power generation, and the second storage area is the storage area for actual power generation; Determine whether the inverter's operating state is stable, and if the inverter's operating state is determined to be stable, write the data in the first storage area to the second storage area according to a preset cycle; If the data in the first storage area is successfully written to the second storage area, the data in the second storage area is written to the second internal memory of the inverter. If the data in the second storage area is successfully written to the second internal memory, the pre-stored basic data in the external memory is replaced with the data in the second storage area or the data in the second internal memory.

2. The method according to claim 1, characterized in that, Also includes: If the inverter's operating state is determined to be unstable, monitor the displayed date on the monitoring system; If it is determined that the displayed date of the system has changed, the value of yesterday's power generation in the first storage area is replaced with the value of today's power generation in the first storage area, and the value of today's power generation in the first storage area is cleared to zero.

3. The method according to claim 2, characterized in that, After resetting the daily power generation value in the first storage area to zero, the process also includes: Obtain the real-time power generation data of the inverter; Based on the real-time power generation data, the daily power generation value in the first storage area is updated according to a preset update cycle.

4. The method according to claim 1, characterized in that, The determination of whether the inverter's operating state is stable includes: Obtain the continuous power-on duration of the inverter; If the continuous power-on duration exceeds a preset duration threshold, the inverter is determined to be in a stable operating state. If the continuous power-on duration is less than or equal to the preset duration threshold, the inverter is determined to be in an unstable operating state. Alternatively, obtain the output power of the inverter; When the output power is greater than a preset power threshold, the inverter is determined to be in a stable operating state. If the output power is less than or equal to the preset power threshold, the inverter is determined to be in an unstable operating state.

5. The method according to claim 4, characterized in that, Determining that the inverter's operating state is stable when the continuous power-on duration exceeds a preset duration threshold includes: If the continuous power-on duration exceeds the preset duration threshold, the anti-shake timing will be activated. During the anti-shake timing, monitor whether the continuous power-on duration remains greater than the preset duration threshold; If the continuous power-on duration during the anti-shake timing period remains greater than the preset duration threshold, then the inverter's operating state is determined to be stable.

6. The method according to any one of claims 1-5, characterized in that, The step of writing the data in the second storage area to the second internal memory of the inverter includes: Perform format validation on the data in the second storage area; If the data in the second storage area has a format error, the valid data corresponding to the field with the format error is read from the first storage area; Replace the data in the format-abnormal field in the second storage area with the valid data; If the data format in the second storage area is normal, the data in the second storage area is split according to the preset byte length to obtain multiple sub-data blocks; The multiple sub-data blocks are sequentially written into the second internal memory of the inverter.

7. A data storage device, characterized in that, include: The acquisition module is used to acquire pre-stored basic data in the external memory during the inverter startup phase; wherein, the basic data includes the current date, the current day's power generation, and the previous day's power generation; the external memory and the inverter are powered by different power supply units; The basic data writing module is used to write the basic data to the first storage area and the second storage area of ​​the first internal memory of the inverter, respectively; wherein, the first storage area is the storage area for external display of power generation, and the second storage area is the storage area for actual power generation; The operating status judgment module is used to determine whether the operating status of the inverter is stable, and when the operating status of the inverter is determined to be stable, writes the data in the first storage area to the second storage area according to a preset cycle; The second internal memory data writing module is used to write the data in the second storage area to the second internal memory of the inverter when the data in the first storage area is successfully written to the second storage area. An external memory data writing module is used to replace the pre-stored basic data in the external memory with the data in the second memory or the data in the second internal memory when the data in the second memory area is successfully written to the second internal memory.

8. An electronic device, characterized in that, include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory to implement the method as described in any one of claims 1-6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1-6.

10. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the method described in any one of claims 1-6.

Citation Information

Patent Citations

  • Inverter and update method of firmware program in inverter

    JP2016103114A

  • Apparatus for controlling inverter

    US20170308426A1