CN109597585B - Data storage method and system - Google Patents

Data storage method and system Download PDF

Info

Publication number
CN109597585B
CN109597585B CN201811497653.XA CN201811497653A CN109597585B CN 109597585 B CN109597585 B CN 109597585B CN 201811497653 A CN201811497653 A CN 201811497653A CN 109597585 B CN109597585 B CN 109597585B
Authority
CN
China
Prior art keywords
storage
data
modules
storage module
current priority
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811497653.XA
Other languages
Chinese (zh)
Other versions
CN109597585A (en
Inventor
虞志文
吴文豪
林宝伟
任鹏
赵志刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201811497653.XA priority Critical patent/CN109597585B/en
Publication of CN109597585A publication Critical patent/CN109597585A/en
Application granted granted Critical
Publication of CN109597585B publication Critical patent/CN109597585B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0625Power saving in storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • G06F3/0631Configuration or reconfiguration of storage systems by allocating resources to storage systems

Abstract

The invention discloses a data storage method and a system, wherein the data storage method comprises the following steps: when data needs to be stored, the current priority storage module in the plurality of storage modules starts to store the data and communicates with other storage modules to inform that the storage modules are in a storage state; judging whether the data is stored completely, if so, ending the process, and if not, continuing the next step; judging whether the capacity of the current priority storage module is used up, if not, continuing to store, and if so, continuing to the next step; and informing other storage modules, wherein the next priority storage module in the other storage modules is used as the current priority storage module to start to store data. The invention can lead a plurality of storage modules to be automatically online and continuously stored.

Description

Data storage method and system
Technical Field
The present invention relates to a data storage method, and a data storage system for storing data using the data storage method.
Background
With the development of industrial automation, the demand of industrial field data storage gradually increases, and the demand for storage capacity also increases day by day, if a large-capacity storage module is adopted, although the demand for storage capacity can be solved, the cost is very expensive, if a plurality of relatively small-capacity storage modules are adopted for replacement, although the cost is reduced, when a plurality of storage modules exist simultaneously, only one module actually used at the same time is still needed, other modules are all in a standby state, and a bus or a control center needs to pay attention to the use condition of each current data storage module when reading and writing data, so that the bandwidth or resource of the bus or the control center is occupied.
Disclosure of Invention
In order to solve the technical problems that in the prior art, the cost of a single large-capacity storage module is high, and the management of a plurality of small-capacity storage modules consumes common resources, the invention provides a data storage method, which comprises the following steps:
when data needs to be stored, the current priority storage module in the plurality of storage modules starts to store the data and communicates with other storage modules to inform that the storage modules are in a storage state;
judging whether the data is stored completely, if so, ending the process, and if not, continuing the next step;
judging whether the capacity of the current priority storage module is used up, if not, continuing to store, and if so, continuing to the next step;
and informing other storage modules, wherein the next priority storage module in the other storage modules is used as the current priority storage module to start to store data.
Preferably, after receiving the notification of the stored state of the current priority storage module, the other storage modules enter the sleep state, and only retain the communication function.
Preferably, before determining whether the capacity is used up, determining whether a capacity value of the current priority storage module is smaller than or equal to a preset dangerous value, if so, notifying other storage modules by the current priority storage module, so that a next priority storage module in the other storage modules exits from a sleep state, enters a ready state, and waits for the current priority storage module to notify that the capacity is used up.
In a specific embodiment, the danger value is calculated in real time according to the current storage speed and the residual capacity before storage, or the danger value is a fixed value. The storage modules are connected through a bus. The memory modules can communicate with each other through a bus. The current priority storage module is a storage module with the capacity not used up and the address value being the minimum. The address values of the memory modules may be obtained from an address table created by each memory module during an initialization phase.
The invention also protects a data storage system for storing data by adopting the data storage method.
In one embodiment, the storage module comprises a storage unit for storing data, a communication unit for communicating with other storage modules, a storage management unit for calculating and managing the capacity of the storage module, and a power management unit for controlling the storage module to enter a standby state or a sleep state according to the data received by the communication unit.
According to the invention, the other memory modules on the bus are mutually communicated through the mutual communication of the memory modules, so that the other memory modules know the mutual dynamic state, CAN be automatically used online according to the use condition, and continuously store all data on the same bus, and the communication technology among the memory modules includes but is not limited to CAN, RS485, wireless and the like, so that the states of the other memory modules are obtained, the memory management is simplified, and the energy consumption of equipment is reduced.
Drawings
The invention is described in detail below with reference to examples and figures, in which:
FIG. 1 is a system connection diagram according to an embodiment of the present invention.
Fig. 2 is a block diagram of a memory module according to an embodiment of the present invention.
FIG. 3 is a flow chart of a method according to an embodiment of the present invention.
Detailed Description
The principles and embodiments of the present invention are described in detail below with reference to the accompanying drawings.
Fig. 1 is a schematic structural diagram of a data storage system, in which a plurality of storage modules are connected via a bus, and a plurality of storage modules with appropriate capacity are selected to be connected to the bus on a communication bus that needs to use the data storage modules, and the storage modules may communicate with each other by using the bus, or may communicate with each other by using a communication method other than the bus, for example, by using a wireless technology. Other modules for generating data are also connected to the bus.
As shown in fig. 2 and 3, each storage module monitors whether data needs to be stored on the bus, if not, the monitoring is continued, if data needs to be stored in other modules, the current priority data storage module stores the data in its own storage unit, and simultaneously, the communication unit sends a data frame to inform other storage modules that the other storage modules are in the stored state.
At the moment, the current priority storage module continuously stores data, whether the data are stored completely is judged in the storage process, if yes, the process is ended, if not, when the capacity value of the current priority storage module reaches a dangerous value, a data frame is sent to the outside through a communication unit, other storage modules are informed that the current priority storage module is fast full of the data frame, at the moment, the next priority storage module in other storage modules receiving the data frame exits from a dormant state, enters a ready state, waits for the current priority storage module to inform that the capacity of the current priority storage module is used up, and is ready to be stored. In this embodiment, the risk value is calculated in real time by the storage speed and the remaining capacity at the beginning of storage, and may be a fixed value, for example, 20%. The priority storage module can be a storage module which is not full and has the smallest address value, an address table can be created in the initialization stage during communication between the storage modules, data are firstly stored according to the storage module with the smallest address value in the address table, and then the data are sequentially moved downwards.
When the capacity of the current priority storage module is used up, the communication unit sends the data frame again to inform other storage modules that the capacity of the current priority storage module is used up, and the next priority storage module which is quitted from the dormant state quickly responds to the next priority storage module, sets the current priority storage module to start storage work, and stores subsequent data into the current priority storage module. And so on until the data storage is finished.
By the method and the system, the invention can realize the functions of matching a plurality of storage modules and automatically performing online work. And finally, data storage management is optimized, and the energy consumption of equipment is saved.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (9)

1. A method of storing data, comprising the steps of:
when data needs to be stored, the current priority storage module in the plurality of storage modules starts to store the data and communicates with other storage modules to inform that the storage modules are in a storage state; after receiving the notification of the stored state of the current priority storage module, the other storage modules enter a dormant state and only keep the communication function between the storage modules;
judging whether the data is stored completely, if so, ending the process, and if not, continuing the next step;
judging whether the capacity value of the current priority storage module is smaller than or equal to a preset dangerous value or not, if so, informing other storage modules of the current priority storage module to enable the next priority storage module in the other storage modules to exit from a dormant state, entering a ready state, and waiting for the current priority storage module to inform the current priority storage module that the capacity of the current priority storage module is used up;
judging whether the capacity of the current priority storage module is used up, if not, continuing to store, and if so, continuing to the next step;
and informing other storage modules, wherein the next priority storage module in the ready state in the other storage modules is used as the current priority storage module to start storing data.
2. The data storage method as claimed in claim 1, wherein the danger value is calculated in real time based on the current storage speed and the remaining capacity before storage, or the danger value is a fixed value.
3. The data storage method of claim 1, wherein the memory modules are connected by a bus.
4. A data storage method according to claim 3, wherein the memory modules communicate with each other via a bus or via wireless technology.
5. The data storage method of claim 1, wherein the current priority storage module is a storage module with an unspent capacity and a minimum address value.
6. The data storage method of claim 5, wherein the address values of the memory modules are obtained from an address table created during an initialization phase for each memory module.
7. A data storage system for storing data using the data storage method of any one of claims 1 to 6.
8. The data storage system of claim 7, wherein the storage module comprises: the device comprises a storage unit for storing data, a communication unit for communicating with other storage modules, and a storage management unit for calculating and managing the capacity of the storage modules.
9. The data storage system of claim 8, further comprising a power management unit that controls the storage module to enter a standby state or a sleep state based on the data received by the communication unit.
CN201811497653.XA 2018-12-07 2018-12-07 Data storage method and system Active CN109597585B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811497653.XA CN109597585B (en) 2018-12-07 2018-12-07 Data storage method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811497653.XA CN109597585B (en) 2018-12-07 2018-12-07 Data storage method and system

Publications (2)

Publication Number Publication Date
CN109597585A CN109597585A (en) 2019-04-09
CN109597585B true CN109597585B (en) 2020-06-30

Family

ID=65961555

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811497653.XA Active CN109597585B (en) 2018-12-07 2018-12-07 Data storage method and system

Country Status (1)

Country Link
CN (1) CN109597585B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101656098A (en) * 2008-08-20 2010-02-24 联想(北京)有限公司 Solid state hard disc, power supply management method thereof and terminal
CN103984509A (en) * 2014-06-11 2014-08-13 上海新储集成电路有限公司 Heterogeneous NAND type solid state disk and method for improving performance of heterogeneous NAND type solid state disk
CN105550122A (en) * 2015-12-07 2016-05-04 联想(北京)有限公司 Data processing method, storage device and electronic device
CN106663029A (en) * 2014-08-05 2017-05-10 高通股份有限公司 Directed event signaling for multiprocessor systems

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105228197A (en) * 2015-09-29 2016-01-06 青岛海尔智能家电科技有限公司 The system of selection of buffer memory business device, equipment and system
CN106453511B (en) * 2016-09-14 2019-04-16 Oppo广东移动通信有限公司 A kind of data back up method and equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101656098A (en) * 2008-08-20 2010-02-24 联想(北京)有限公司 Solid state hard disc, power supply management method thereof and terminal
CN103984509A (en) * 2014-06-11 2014-08-13 上海新储集成电路有限公司 Heterogeneous NAND type solid state disk and method for improving performance of heterogeneous NAND type solid state disk
CN106663029A (en) * 2014-08-05 2017-05-10 高通股份有限公司 Directed event signaling for multiprocessor systems
CN105550122A (en) * 2015-12-07 2016-05-04 联想(北京)有限公司 Data processing method, storage device and electronic device

Also Published As

Publication number Publication date
CN109597585A (en) 2019-04-09

Similar Documents

Publication Publication Date Title
JP2012527134A (en) Method, apparatus and system for controlling access point
WO2018082270A1 (en) Energy control method and control apparatus for power consumption system
CN107132904B (en) Control system and control method of DDR system
CN102253860A (en) Asynchronous operation method and asynchronous operation management device
CN108445802B (en) Robot sleep control method and circuit, communication device and robot
WO2014039331A1 (en) Transmitting beacon frames over a wireless data link
CN106792463A (en) The method for managing power supply and device of a kind of communication module
CN113746821A (en) Intelligent device control method and device, storage medium and electronic device
US11237583B2 (en) Method, device, and computer program product
CN109597585B (en) Data storage method and system
CN100559361C (en) Integrated circuit and be used for the method for storage access control
CN101742541A (en) Early warning method and system of base station service quit
US8423809B2 (en) Power consumption measuring and power transmission monitoring for data transfer
CN105282327A (en) Control method, electronic device and external device
CN103870206A (en) Caching data receiving and reading method and device and router cache device
US10409262B2 (en) Numerical controller for data request with variable data size
CN113259904B (en) Marine network system, method and computer readable storage medium
US20130185572A1 (en) Method and apparatus for achieving energy saving of data switching device
CN105828421A (en) Terminal and terminal power saving method
CN109814487B (en) Numerical control machine tool control method and device based on intelligent terminal
EP3197228A1 (en) Method and device for user access to base station
CN203119921U (en) Intelligent digital network system
CN106303087A (en) A kind of method and system controlling home router
CN113078708B (en) Control system for power supply equipment, control method, medium and electronic equipment thereof
CN207529371U (en) CPU fetchings system and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant