CN101771594B - Data storage system and data storage method - Google Patents

Data storage system and data storage method Download PDF

Info

Publication number
CN101771594B
CN101771594B CN2008103067690A CN200810306769A CN101771594B CN 101771594 B CN101771594 B CN 101771594B CN 2008103067690 A CN2008103067690 A CN 2008103067690A CN 200810306769 A CN200810306769 A CN 200810306769A CN 101771594 B CN101771594 B CN 101771594B
Authority
CN
China
Prior art keywords
data
web server
measuring instrument
route
network
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.)
Expired - Fee Related
Application number
CN2008103067690A
Other languages
Chinese (zh)
Other versions
CN101771594A (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.)
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
Original Assignee
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
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 Hongfujin Precision Industry Shenzhen Co Ltd, Hon Hai Precision Industry Co Ltd filed Critical Hongfujin Precision Industry Shenzhen Co Ltd
Priority to CN2008103067690A priority Critical patent/CN101771594B/en
Publication of CN101771594A publication Critical patent/CN101771594A/en
Application granted granted Critical
Publication of CN101771594B publication Critical patent/CN101771594B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a data storage method, which comprises the following steps: providing a Web server which is connected with a database server and a plurality of measuring instruments through a network; transmitting acquisition instructions to the measuring instruments according to stored routing paths by using the Web server; feeding acquired data back to the Web server by using the measuring instruments; when a first network connecting the Web server and the database server works normally, transmitting the data to the database server for storage; when the first network works abnormally, temporarily storing the data in a history document of the Web server; detecting whether the first network works normally or not at a certain time interval; and when the first network is detected to be work normally, acquiring the data from the history document and transmitting the data to the database server for storage. In addition, the invention also provides a data storage system.

Description

Data-storage system and method
Technical field
The present invention relates to a kind of data-storage system and method.
Background technology
At present, the computer network of enterprise has become the important means that enterprise undergoes technological transformation and improves enterprise management.Along with integrating with of China and world's information superhighway, enterprise will bring huge economic benefit and social benefit for enterprise through the computer network acquired information, and the office of enterprise and management all will develop towards efficient, quick, with no paper direction.
When utilizing the computer network image data, usually can be because having some setbacks of network caused the failure of image data.After the image data success, need be in database with the data storing that collects, often, need administrative staff's image data again because network undesired caused the storage failure.Waste great amount of time like this, reduced operating efficiency.
Summary of the invention
In view of above content, be necessary to provide a kind of data-storage system.Data can effectively be gathered by this system, and stores this data.
In view of above content, also be necessary to provide a kind of date storage method.This method can effectively be gathered data, and stores this data.
A kind of data-storage system; Be applied to Web server; This Web server is through network connection data storehouse server and a plurality of measuring instrument; This Web server comprises a data collection and supervisory controller, and said data acquisition and supervisory controller comprise: sending module, and the route that is used for storing according to Web server is sent acquisition instructions to measuring instrument; This route is said data acquisition and the last employed route of communicating by letter of supervisory controller and measuring instrument; The data that said measuring instrument feedback collects are to this Web server, when first network work that connects Web server and database server just often, this sending module also is used for sending said data to database server and preserves; Memory module is used for when said first network work is unusual, these data being temporary in the history document of Web server; Judge module, whether be used for detecting first network at regular intervals in proper working order; And acquisition module, be used for detecting this first network work just often when judge module, from said history document, obtain data, and through sending module these data that get access to are sent to said database server and preserve.
A kind of date storage method, this method comprise the steps: to provide a Web server, and this Web server is through network connection data storehouse server and a plurality of measuring instrument; This Web server sends acquisition instructions according to the route of being stored and gives measuring instrument, and this route is data acquisition and the last employed route of communicating by letter of supervisory controller and measuring instrument; This measuring instrument feeds back to said Web server with the data that collect; When connecting the first network operate as normal of Web server and database server, send in said data to the database server and preserve; When this first network work is unusual, these data are temporary in the history document of Web server; Whether detect first network at regular intervals in proper working order; And, from history document, obtain data and be sent to said database server and preserve when detecting this first network work just often.
Compared to prior art, said data-storage system and method can in time correct and change data and transmit route, guarantee that data can be stored in the database server.
Description of drawings
Fig. 1 is the hardware structure figure of data-storage system preferred embodiment of the present invention.
Fig. 2 is the functional block diagram of SCADA among Fig. 1.
Fig. 3 is the operation process chart of date storage method preferred embodiment of the present invention.
Fig. 4 is the operation process chart that the present invention changes the preferred embodiment of data acquisition path.
Embodiment
As shown in Figure 1, be the hardware structure figure of data-storage system preferred embodiment of the present invention.This system applies connects a database server 2 through first network 4, and is connected in a plurality of measuring instruments 3 through second network 5 in Web server 1.Said a plurality of measuring instrument 3 is used to measure same testee 6.This measuring instrument 3 is meant that flowmeter, ammeter etc. measure instrument.
Wherein, Web server 1 comprise a data collection and supervisory controller (Supervisory Control And DataAcquisition, SCADA) 10, be used to gather the measured data of measuring instrument 3.In this preferred embodiment, this measuring instrument 3 is a flowmeter, and the data that said SCADA10 gathers comprise electric current, voltage etc.
Particularly, said SCADA 10 sends acquisition instructions and gives measuring instrument 3, and the data that these measuring instrument 3 feedbacks are gathered are given SCADA 10, and then, SCADA 10 sends to database server 2 with these data and preserves.In the present embodiment, this database server 2 also has many routes that SCADA 10 communicates by letter with measuring instrument 3, and has the route that SCADA 10 and measuring instrument were communicated by letter for 3 last time in the Web server 1, like route A.When SCADA 10 sent acquisition instructions to this measuring instrument 3, preferably this route A was as the communicate by letter route of SCADA 10 with this measuring instrument 3.Said Web server 1 also has a history document 12.This history document 12 is used for when first network 4 breaks down, storing all data that said SCADA 10 sends to database server 2.
As shown in Figure 2, be the functional block diagram of SCADA 10 among Fig. 1.Said module is the software program section with specific function, and this software is stored in computer-readable recording medium or other memory device, can be carried out by computer or other calculation element that comprises processor, thus the serial flow process of completion storage.Said SCADA 10 comprises: sending module 101, judge module 102, acquisition module 103, update module 104 and memory module 105.
Wherein, sending module 101 is used for sending acquisition instructions to measuring instrument 3 through the route A of said Web server 1 storage
Judge module 102 is used to judge whether this Web server 1 receives 3 feedback data of this measuring instrument.When not receiving 3 feedback data of measuring instrument, this judge module 102 also is used to detect whether operate as normal of said second network 5, and whether promptly judge can proper communication between Web server 1 and the measuring instrument 3.
Acquisition module 103 is used for when said second network 5 is in proper working order, from database server 2, obtaining an other route, for example, route B, sending module 101 sends acquisition instructions through this route B and gives this measuring instrument 3.Update module 104 is used for changing the route A that Web server 1 is stored according to this route B.
Said sending module 101 also is used for when said second network, 5 operation irregularities, sends acquisition instructions to another measuring instrument 3 that links to each other with this Web server 1 according to the route A of storage in the Web server 1.
Said sending module 101 also is used for when Web server 1 receives 3 feedback data of measuring instrument, these data is sent in the database server 2 preserves.
Said memory module 105 also is used for when sending module 101 sends data to database server 2 failures, and these data are temporary to said history document 12.
In addition, said judge module 102 also is used for detecting at regular intervals one time first network 4, confirms whether this first network 4 can operate as normal.In this preferred embodiment, this certain hour can be 10 minutes.If this first network 4 is in proper working order, then said acquisition module 103 obtains data from history document 12, and through sending module 101 these data that get access to is sent to database server 2 and preserve.
As shown in Figure 3, be the operation process chart of date storage method preferred embodiment of the present invention.
Step S30, sending module 101 sends acquisition instructions to measuring instrument 3 according to the route A of storage in the Web server 1, and this route A is the route that SCADA 10 and measuring instrument were communicated by letter for 3 last time.
Step S31, measuring instrument 3 carries out data acquisition according to said acquisition instructions, and the data that collect are fed back to Web server 1 through route A.
Step S32, judge module 102 judge whether operate as normal of first network 4.If this first network 4 is in proper working order, then get into step S33.If these first network, 4 operation irregularities then get into step S34.
Step S33, sending module 101 are sent to 3 feedback data of said measuring instrument in the database server 2 and preserve, and process ends.
Step S34, memory module 105 is temporary in 3 feedback data of measuring instrument in the history document 12 of Web server 1, gets into step S35 then.
In step S35, whether said judge module 102 detects once this first network 4 at regular intervals also can operate as normal.In this preferred embodiment, this certain hour is meant 10 minutes.
If this first network 4 can get into operate as normal again after above-mentioned appearance is unusual, step S36 then, acquisition module 103 obtains data from said history document 12.
Step S37, sending module 104 sends in these data to the database server 2 to be preserved.
If the testing result of step S35 is a still operation irregularity of first network 4, then flow process goes to step S35, and whether continue to detect this first network 4 can also operate as normal.
In addition, present embodiment also can be realized when Web server 1 does not receive 3 feedback data of measuring instrument, reselecting the data acquisition path, and concrete work flow is as shown in Figure 4.
Step S40, judge module 102 detect whether operate as normal of said second network 5, and whether promptly judge can proper communication between Web server 1 and this measuring instrument 3.
When judge module 102 judged that second network 5 is in proper working order, step S41, acquisition module 103 obtained an other route from database server 2, like route B.
Step S42, update module 104 is changed the route A that is stored in the Web server 1 through this route B, and process ends.
Otherwise, when judge module 102 detects said second network, 5 operation irregularities, step S43, sending module 101 sends acquisition instructions to another measuring instrument 3 according to said route A, and process ends.
It should be noted last that; Above embodiment is only unrestricted in order to technical scheme of the present invention to be described; Although the present invention is specified with reference to preferred embodiment; Those of ordinary skill in the art should be appreciated that and can make amendment or be equal to replacement technical scheme of the present invention, and do not break away from the spirit and the scope of technical scheme of the present invention.

Claims (7)

1. data acquisition and supervisory controller are arranged in Web server, and this Web server is characterized in that through network connection data storehouse server and a plurality of measuring instrument said data acquisition and supervisory controller comprise:
Sending module; The route that is used for storing according to Web server is sent acquisition instructions to measuring instrument; This route is said data acquisition and the last employed route of communicating by letter of supervisory controller and measuring instrument; The data that said measuring instrument feedback collects are to this Web server, when first network work that connects Web server and database server just often, this sending module also is used for sending said data to database server and preserves;
Memory module is used for when said first network work is unusual, these data being temporary in the history document of Web server;
Judge module, whether be used for detecting first network at regular intervals in proper working order; And
Acquisition module is used for detecting this first network work just often when judge module, from said history document, obtains data, and through sending module these data that get access to is sent to said database server and preserves.
2. data acquisition as claimed in claim 1 and supervisory controller; It is characterized in that; Said judge module also is used for when Web server is not received said measuring instrument feedback data, judging whether second network that connects Web server and measuring instrument is in proper working order;
When said second network work just often, said acquisition module also is used for obtaining an other route from database server, sending module sends acquisition instructions to said measuring instrument through this route; And
When said second network work was unusual, the route that sending module also is used for storing according to Web server was sent acquisition instructions to another measuring instrument.
3. data acquisition as claimed in claim 2 and supervisory controller is characterized in that said data acquisition and supervisory controller also comprise update module, the route that the diversionary toute Web server that is used for obtaining according to acquisition module is stored.
4. data acquisition as claimed in claim 1 and supervisory controller is characterized in that, said certain hour is 10 minutes.
5. a date storage method is characterized in that, this method comprises the steps:
A Web server is provided, and this Web server is through network connection data storehouse server and a plurality of measuring instrument;
This Web server sends acquisition instructions according to the route of being stored and gives measuring instrument, and this route is data acquisition and the last employed route of communicating by letter of supervisory controller and measuring instrument;
This measuring instrument feeds back to said Web server with the data that collect;
When connecting the first network operate as normal of Web server and database server, send in said data to the database server and preserve;
When this first network work is unusual, these data are temporary in the history document of Web server;
Whether detect first network at regular intervals in proper working order; And
When detecting this first network work just often, from history document, obtain data and be sent to said database server and preserve.
6. date storage method as claimed in claim 5 is characterized in that, this method also comprises:
When Web server is not received said measuring instrument feedback data, judge whether second network that connects Web server and measuring instrument is in proper working order;
When this second network work just often, from database server, obtain an other route, send acquisition instructions to said measuring instrument through this route, and according to the route of storing in this diversionary toute Web server that obtains; And
When said second network work is unusual, send acquisition instructions to another measuring instrument according to the route of storing in the Web server.
7. date storage method as claimed in claim 5 is characterized in that, this method also comprises: said certain hour is 10 minutes.
CN2008103067690A 2008-12-31 2008-12-31 Data storage system and data storage method Expired - Fee Related CN101771594B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008103067690A CN101771594B (en) 2008-12-31 2008-12-31 Data storage system and data storage method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008103067690A CN101771594B (en) 2008-12-31 2008-12-31 Data storage system and data storage method

Publications (2)

Publication Number Publication Date
CN101771594A CN101771594A (en) 2010-07-07
CN101771594B true CN101771594B (en) 2012-07-18

Family

ID=42504208

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008103067690A Expired - Fee Related CN101771594B (en) 2008-12-31 2008-12-31 Data storage system and data storage method

Country Status (1)

Country Link
CN (1) CN101771594B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546739A (en) * 2011-05-19 2012-07-04 广东迅通科技股份有限公司 Disc managing method and disc managing system of monitoring device
CN102819464B (en) * 2012-01-13 2015-08-19 金蝶软件(中国)有限公司 The method and apparatus that document stores temporarily
JP5780217B2 (en) * 2012-07-03 2015-09-16 コニカミノルタ株式会社 Image forming apparatus and information processing program
TWI519149B (en) * 2013-08-22 2016-01-21 宇瞻科技股份有限公司 Set top box, data resetting method thereof and data registration method thereof
JP6216621B2 (en) * 2013-11-14 2017-10-18 株式会社日立製作所 Plant monitoring and control system
CN105282189A (en) * 2014-06-10 2016-01-27 江苏大泰信息技术有限公司 Safety data storage method applied to high-concurrence data environment
CN107094167B (en) * 2016-12-28 2020-02-04 北京星选科技有限公司 Data unloading method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6131096A (en) * 1998-10-05 2000-10-10 Visto Corporation System and method for updating a remote database in a network
CN101291259A (en) * 2007-04-18 2008-10-22 阿里巴巴集团控股有限公司 System and method for monitoring geographic position of website visitor and visiting status

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6131096A (en) * 1998-10-05 2000-10-10 Visto Corporation System and method for updating a remote database in a network
CN101291259A (en) * 2007-04-18 2008-10-22 阿里巴巴集团控股有限公司 System and method for monitoring geographic position of website visitor and visiting status

Also Published As

Publication number Publication date
CN101771594A (en) 2010-07-07

Similar Documents

Publication Publication Date Title
CN101771594B (en) Data storage system and data storage method
CN101023366B (en) A method of monitoring line faults in a medium voltage network
US9015310B2 (en) Communication system using server agents according to simple network management protocol
US20070033277A1 (en) Fault data management
CN102045192A (en) Apparatus and system for estimating network configuration
CN105531680A (en) Remote monitoring system, remote monitoring method, and program
WO2020003460A1 (en) Abnormality detection device
CN102387028A (en) Network system, network management server, and OAM test method
CN104750612B (en) Method of testing and device are carried out to file operation
CN109564537A (en) Log sending device, result collection system
CN104881729A (en) Electric power marketing system power failure information processing method, and electric power marketing system power failure information processing system
CN109542091A (en) A kind of excavator breakdown maintenance and reliability data management system and its application
JP6907726B2 (en) Data management system
US8307120B2 (en) Resource information managing device, system, method, and program
CN103975557B (en) The method and system of evaluation for sensor observation
JP5042154B2 (en) Data management system
CN105890810A (en) Setting method for temperature detecting equipment and grain condition detecting system
CN102621963A (en) Production monitoring system based on client
JP2021144639A (en) Asset information management system, and asset information management method
CN101253507B (en) Account false use detecting/suppressing device, data collecting device
CN102546739A (en) Disc managing method and disc managing system of monitoring device
CN107765123A (en) Detected rule update method and Electrical Safety monitoring system
CN102081519B (en) Method and device for collecting monitoring information of monitoring system
JP2007264921A (en) Performance information extraction program and apparatus
CN106953755A (en) A kind of energy monitoring method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120718

Termination date: 20141231

EXPY Termination of patent right or utility model