CN107846309A - Suspension data forward method, electronic equipment and storage medium based on remote monitoring - Google Patents
Suspension data forward method, electronic equipment and storage medium based on remote monitoring Download PDFInfo
- Publication number
- CN107846309A CN107846309A CN201710986180.9A CN201710986180A CN107846309A CN 107846309 A CN107846309 A CN 107846309A CN 201710986180 A CN201710986180 A CN 201710986180A CN 107846309 A CN107846309 A CN 107846309A
- Authority
- CN
- China
- Prior art keywords
- judgment step
- server
- service data
- data
- stored
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0659—Management of faults, events, alarms or notifications using network fault recovery by isolating or reconfiguring faulty entities
- H04L41/0661—Management of faults, events, alarms or notifications using network fault recovery by isolating or reconfiguring faulty entities by reconfiguring faulty entities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
Abstract
The invention discloses the suspension data forward method based on remote monitoring, it comprises the following steps:Uploading step:Service data is uploaded onto the server;First judgment step:Judge whether server connection is interrupted, if so, service data is stored in into local data base, otherwise, repeat uploading step, and perform the second judgment step;Second judgment step:Judge whether server reconnects, if so, then performing the 3rd judgment step, otherwise, continue service data being stored in local data base;3rd judgment step:Judge whether be stored with service data in local data base, if so, obtaining the service data in the local data base and uploading onto the server, otherwise, return to the first judgment step.The present invention when being interrupted in connection procedure, in turn-off time length, data are stored automatically so that again establish connect when, by the data retransmission of earlier stored to server, prevent that data are not lost during middle connection breaking.
Description
Technical field
The present invention relates to data communication technology, more particularly to suspension data forward method based on remote monitoring, electronics are set
Standby and storage medium.
Background technology
Internet of Things remote data acquisition product is by Internet technology, will be distributed equipment operation and the state of different geographical
Information uploads onto the server, and centralization is presented in unified interaction platform, such as mobile phone, webpage, simplifies and reduces later stage O&M pipe
Manage cost.
But there is certain uncertainty in internet.In normal connection, may because of it is outside some can not antigen because,
Such as cable interrupts, server resets cause platform data air-conditioning is presented in certain time, can not intuitively confirm target device herein
Virtual condition in time.
The content of the invention
For overcome the deficiencies in the prior art, an object of the present invention is to provide a kind of suspension based on remote monitoring
Data forward method, it can independently will be switched off the data storage after connection in local, be uploaded automatically after recovering to connect.
The second object of the present invention is to provide a kind of electronic equipment, its can independently will be switched off the data storage after connection in
It is local, uploaded automatically after recovering to connect.
The third object of the present invention is to provide a kind of storage medium, its can independently will be switched off the data storage after connection in
It is local, uploaded automatically after recovering to connect.
An object of the present invention is realized using following technical scheme:
Suspension data forward method based on remote monitoring, comprises the following steps:
Uploading step:Service data is uploaded onto the server;
First judgment step:Judge whether server connection is interrupted, if so, service data then is stored in into local data
Storehouse, the second judgment step is performed afterwards, otherwise, repeat uploading step;
Second judgment step:Judge whether server reconnects, if so, then performing the 3rd judgment step, otherwise, continuing will fortune
Row data are stored in local data base;
3rd judgment step:Judge whether be stored with service data in local data base, if so, obtaining in the local data base
Service data simultaneously uploads onto the server, and otherwise, returns to the first judgment step.
Preferably, in uploading step, service data is uploaded onto the server, at the same it is also that a timing memory counter is clear
Zero, the cycle of the timing memory counter is the synchronizing cycle of server service data.
Preferably, the first judgment step specifically includes following sub-step:
Interrupt judgment step:Judge whether server connection is interrupted, overflow judgment step if so, then performing, otherwise, will be fixed
When memory counter reset, while service data is uploaded onto the server;
Overflow judgment step:Judge whether timing memory counter overflows, if so, service data then is stored in into local data
Storehouse, the second judgment step is performed afterwards, otherwise, repeat this step.
The second object of the present invention is realized using following technical scheme:
A kind of electronic equipment, including memory, processor and storage are on a memory and the calculating that can run on a processor
Machine program, following steps are realized during computer program described in the computing device:
Uploading step:Service data is uploaded onto the server;
First judgment step:Judge whether server connection is interrupted, if so, service data then is stored in into local data
Storehouse, the second judgment step is performed afterwards, otherwise, repeat uploading step;
Second judgment step:Judge whether server reconnects, if so, then performing the 3rd judgment step, otherwise, continuing will fortune
Row data are stored in local data base;
3rd judgment step:Judge whether be stored with service data in local data base, if so, obtaining in the local data base
Service data simultaneously uploads onto the server, and otherwise, returns to the first judgment step.
Preferably, in uploading step, service data is uploaded onto the server, at the same it is also that a timing memory counter is clear
Zero, the cycle of the timing memory counter is the synchronizing cycle of server service data.
Preferably, the first judgment step specifically includes following sub-step:
Interrupt judgment step:Judge whether server connection is interrupted, overflow judgment step if so, then performing, otherwise, will be fixed
When memory counter reset, while service data is uploaded onto the server;
Overflow judgment step:Judge whether timing memory counter overflows, if so, service data then is stored in into local data
Storehouse, the second judgment step is performed afterwards, otherwise, repeat this step.
The third object of the present invention is realized using following technical scheme:
A kind of storage medium, computer program is stored thereon with, such as right is realized when the computer program is executed by processor
It is required that the suspension data forward method described in any one of 1-3.
Compared with prior art, the beneficial effects of the present invention are:
The present invention in remote supervisory and control(ling) equipment and server connection procedure when interrupting, and in turn-off time length, automatically will
Data are stored so that again establish connection when, by the data retransmission of earlier stored to server, prevent middle connection breaking
When data do not lose.
Brief description of the drawings
Fig. 1 is the flow chart of the suspension data forward method based on remote monitoring of the present invention.
Embodiment
Below, with reference to accompanying drawing and embodiment, the present invention is described further:
The present invention provides a kind of suspension data forward method based on remote monitoring, as shown in figure 1, comprising the following steps:
S1:Service data is uploaded onto the server;
S2:Judge whether server connection is interrupted, if so, service data then is stored in into local data base, perform afterwards
S3, otherwise, service data is uploaded onto the server;
S3:Judge whether server reconnects, if so, then performing S4, otherwise, continue service data being stored in local data
Storehouse;
S4:Judge whether be stored with service data in local data base, if so, obtaining service data in the local data base simultaneously
Upload onto the server, otherwise, return to S2.
In normal state, service data constantly uploads onto the server, if connection is interrupted, in this section of interruption
In time, service data is stored to local data base, if do not interrupted, persistently uploaded onto the server.
In the case of interrupting, once detecting recovery connection, now service data uploads onto the server again, and by local number
Uploaded onto the server according to the service data stored in storehouse.
In the present invention, internal open has a timing memory counter, and in uploading step, service data is uploaded to
Server, while also reset the timing memory counter, the cycle of the timing memory counter is server service data
Synchronizing cycle.When with server establish connect when, the timing memory counter is reset immediately, when timing memory counter overflow,
Then data storage is got up.
Namely in S2, specifically include:
Interrupt judgment step:Judge whether server connection is interrupted, overflow judgment step if so, then performing, otherwise, will be fixed
When memory counter reset, while service data is uploaded onto the server;
Overflow judgment step:Judge whether timing memory counter overflows, if so, service data then is stored in into local data
Storehouse, S3 is performed afterwards, otherwise, repeats this step.
The continuous transmission method of service data is after equipment is connected with server, and server actively inquires whether local data base has
Data cached, circulation obtains if having finishes up to local data base all obtains.
The present invention also provides a kind of electronic equipment, including memory, processor and storage on a memory and can located
The computer program that runs on reason device, the step of computer program of computing device is realized, is as described in suspension data forward method
The step of it is identical, operation principle and flow are also identical, and therefore not to repeat here.
Still further aspect, the present invention also provide a kind of storage medium, are stored thereon with computer program, the computer program
Suspension data forward method of the present invention is realized when being executed by processor.
It will be apparent to those skilled in the art that technical scheme that can be as described above and design, make other various
Corresponding change and deformation, and all these changes and deformation should all belong to the protection domain of the claims in the present invention
Within.
Claims (7)
1. the suspension data forward method based on remote monitoring, it is characterised in that comprise the following steps:
Uploading step:Service data is uploaded onto the server;
First judgment step:Judge whether server connection is interrupted, if so, service data then is stored in into local data
Storehouse, the second judgment step is performed afterwards, otherwise, repeat uploading step;
Second judgment step:Judge whether server reconnects, if so, then performing the 3rd judgment step, otherwise, continuing will fortune
Row data are stored in local data base;
3rd judgment step:Judge whether be stored with service data in local data base, if so, obtaining in the local data base
Service data simultaneously uploads onto the server, and otherwise, returns to the first judgment step.
2. suspension data forward method as claimed in claim 1, it is characterised in that in uploading step, by service data
Server is reached, while also resets a timing memory counter, the cycle of the timing memory counter runs number for server
According to synchronizing cycle.
3. suspension data forward method as claimed in claim 2, it is characterised in that the first judgment step specifically includes following son
Step:
Interrupt judgment step:Judge whether server connection is interrupted, overflow judgment step if so, then performing, otherwise, will be fixed
When memory counter reset, while service data is uploaded onto the server;
Overflow judgment step:Judge whether timing memory counter overflows, if so, service data then is stored in into local data
Storehouse, the second judgment step is performed afterwards, otherwise, repeat this step.
4. a kind of electronic equipment, including memory, processor and storage are on a memory and the meter that can run on a processor
Calculation machine program, it is characterised in that realize following steps during computer program described in the computing device:
Uploading step:Service data is uploaded onto the server;
First judgment step:Judge whether server connection is interrupted, if so, service data then is stored in into local data
Storehouse, the second judgment step is performed afterwards, otherwise, repeat uploading step;
Second judgment step:Judge whether server reconnects, if so, then performing the 3rd judgment step, otherwise, continuing will fortune
Row data are stored in local data base;
3rd judgment step:Judge whether be stored with service data in local data base, if so, obtaining in the local data base
Service data simultaneously uploads onto the server, and otherwise, returns to the first judgment step.
5. electronic equipment as claimed in claim 4, it is characterised in that in uploading step, service data is uploaded to service
Device, while also reset a timing memory counter, the cycle of the timing memory counter is the synchronization of server service data
Cycle.
6. electronic equipment as claimed in claim 4, it is characterised in that the first judgment step specifically includes following sub-step:
Interrupt judgment step:Judge whether server connection is interrupted, overflow judgment step if so, then performing, otherwise, will be fixed
When memory counter reset, while service data is uploaded onto the server;
Overflow judgment step:Judge whether timing memory counter overflows, if so, service data then is stored in into local data
Storehouse, the second judgment step is performed afterwards, otherwise, repeat this step.
7. a kind of storage medium, is stored thereon with computer program, it is characterised in that the computer program is executed by processor
Suspension data forward methods of the Shi Shixian as described in claim any one of 1-3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710986180.9A CN107846309A (en) | 2017-10-20 | 2017-10-20 | Suspension data forward method, electronic equipment and storage medium based on remote monitoring |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710986180.9A CN107846309A (en) | 2017-10-20 | 2017-10-20 | Suspension data forward method, electronic equipment and storage medium based on remote monitoring |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107846309A true CN107846309A (en) | 2018-03-27 |
Family
ID=61661575
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710986180.9A Pending CN107846309A (en) | 2017-10-20 | 2017-10-20 | Suspension data forward method, electronic equipment and storage medium based on remote monitoring |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107846309A (en) |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108718330A (en) * | 2018-04-11 | 2018-10-30 | 国电中自(合肥)电气科技有限公司 | A kind of safety utilization of electric power early warning system |
CN108959153A (en) * | 2018-08-01 | 2018-12-07 | 广州视源电子科技股份有限公司 | A kind of all-in-one machine, the method, apparatus of data forward, equipment and storage medium |
CN108989463A (en) * | 2018-08-27 | 2018-12-11 | 浙江易享节能技术服务股份有限公司 | A kind of data processing method and device |
CN109246187A (en) * | 2018-08-02 | 2019-01-18 | 浙江中农在线电子商务有限公司 | Form data method for uploading and device |
CN109756642A (en) * | 2018-12-28 | 2019-05-14 | 中科院成都信息技术股份有限公司 | The control method and ballot paper image capturing system of ballot paper image capturing system |
CN110213299A (en) * | 2019-07-04 | 2019-09-06 | 广东工业大学 | A kind of more attribute authority encryption methods and device of suitable mobile cloud environment |
CN110618067A (en) * | 2019-09-20 | 2019-12-27 | 谢国宇 | Pollution tracking and tracing system and method based on monitoring service grid |
CN111107123A (en) * | 2018-10-29 | 2020-05-05 | 杭州海康威视数字技术股份有限公司 | Method and device for continuous transmission in broken network |
CN111311855A (en) * | 2020-01-15 | 2020-06-19 | 深圳市元征科技股份有限公司 | Method, device and related equipment for preventing illegal use of shared lifter |
CN112565463A (en) * | 2021-01-15 | 2021-03-26 | 江苏米塔网络科技服务有限公司 | Data breakpoint continuous transmission method |
CN112702427A (en) * | 2020-12-23 | 2021-04-23 | 武汉湖江科技有限公司 | Industrial internet data synchronization system |
CN113421355A (en) * | 2021-06-28 | 2021-09-21 | 浙江中控技术股份有限公司 | Industrial field short-distance data transmission system and inspection method |
CN114172609A (en) * | 2021-12-06 | 2022-03-11 | 深圳益邦阳光有限公司 | Data transmission method, device, equipment and medium |
WO2022081228A1 (en) * | 2020-10-13 | 2022-04-21 | Microsoft Technology Licensing, Llc | Offline support for a database cluster |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102613958A (en) * | 2012-02-13 | 2012-08-01 | 无锡市健维仪器有限公司 | Bluetooth-based wireless telemonitor system |
CN103490843A (en) * | 2013-09-22 | 2014-01-01 | 四川九洲电器集团有限责任公司 | Method for transmitting offline data from terminal to platform |
CN106375393A (en) * | 2016-08-30 | 2017-02-01 | 重庆钢铁集团电子有限责任公司 | Real-time data collection system and automatic recovery method after interruption of real-time data communication |
-
2017
- 2017-10-20 CN CN201710986180.9A patent/CN107846309A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102613958A (en) * | 2012-02-13 | 2012-08-01 | 无锡市健维仪器有限公司 | Bluetooth-based wireless telemonitor system |
CN103490843A (en) * | 2013-09-22 | 2014-01-01 | 四川九洲电器集团有限责任公司 | Method for transmitting offline data from terminal to platform |
CN106375393A (en) * | 2016-08-30 | 2017-02-01 | 重庆钢铁集团电子有限责任公司 | Real-time data collection system and automatic recovery method after interruption of real-time data communication |
Cited By (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108718330A (en) * | 2018-04-11 | 2018-10-30 | 国电中自(合肥)电气科技有限公司 | A kind of safety utilization of electric power early warning system |
CN108959153A (en) * | 2018-08-01 | 2018-12-07 | 广州视源电子科技股份有限公司 | A kind of all-in-one machine, the method, apparatus of data forward, equipment and storage medium |
CN109246187A (en) * | 2018-08-02 | 2019-01-18 | 浙江中农在线电子商务有限公司 | Form data method for uploading and device |
CN108989463B (en) * | 2018-08-27 | 2021-06-08 | 浙江易享节能技术服务股份有限公司 | Data processing method and device |
CN108989463A (en) * | 2018-08-27 | 2018-12-11 | 浙江易享节能技术服务股份有限公司 | A kind of data processing method and device |
CN111107123A (en) * | 2018-10-29 | 2020-05-05 | 杭州海康威视数字技术股份有限公司 | Method and device for continuous transmission in broken network |
CN109756642A (en) * | 2018-12-28 | 2019-05-14 | 中科院成都信息技术股份有限公司 | The control method and ballot paper image capturing system of ballot paper image capturing system |
CN110213299A (en) * | 2019-07-04 | 2019-09-06 | 广东工业大学 | A kind of more attribute authority encryption methods and device of suitable mobile cloud environment |
CN110213299B (en) * | 2019-07-04 | 2022-05-06 | 广东工业大学 | Multi-attribute authorization encryption method and device suitable for mobile cloud environment |
CN110618067A (en) * | 2019-09-20 | 2019-12-27 | 谢国宇 | Pollution tracking and tracing system and method based on monitoring service grid |
CN111311855A (en) * | 2020-01-15 | 2020-06-19 | 深圳市元征科技股份有限公司 | Method, device and related equipment for preventing illegal use of shared lifter |
CN111311855B (en) * | 2020-01-15 | 2022-08-09 | 深圳市元征科技股份有限公司 | Method, device and related equipment for preventing illegal use of shared lifter |
WO2022081228A1 (en) * | 2020-10-13 | 2022-04-21 | Microsoft Technology Licensing, Llc | Offline support for a database cluster |
US11429637B2 (en) | 2020-10-13 | 2022-08-30 | Microsoft Technology Licensing, Llc | Offline support for a database cluster |
CN112702427A (en) * | 2020-12-23 | 2021-04-23 | 武汉湖江科技有限公司 | Industrial internet data synchronization system |
CN112565463A (en) * | 2021-01-15 | 2021-03-26 | 江苏米塔网络科技服务有限公司 | Data breakpoint continuous transmission method |
CN113421355A (en) * | 2021-06-28 | 2021-09-21 | 浙江中控技术股份有限公司 | Industrial field short-distance data transmission system and inspection method |
CN114172609A (en) * | 2021-12-06 | 2022-03-11 | 深圳益邦阳光有限公司 | Data transmission method, device, equipment and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107846309A (en) | Suspension data forward method, electronic equipment and storage medium based on remote monitoring | |
CN107273031B (en) | Information flow page loading method and device | |
US10334309B2 (en) | Bullet screen display method and apparatus | |
CN102223416B (en) | Method and system for transmitting media file | |
CN104125206B (en) | The hardware environment adaptation method of a kind of client, device, server and system | |
CN109660639B (en) | Data uploading method, device, system and medium | |
CN104794396A (en) | Cross-site script vulnerability detection method and device | |
EP2790422B1 (en) | Bandwidth estimation-based streaming content processing method and apparatus of terminal | |
CN104965716A (en) | Icon updating method, client apparatus, and terminal apparatus | |
CN106293738B (en) | Expression image updating method and device | |
CN108174226A (en) | Transcoding device, method and the computer readable storage medium of live video | |
CN104394475A (en) | Streaming media file playing method and media player | |
CN103327051A (en) | Long-distance desktop management system and method | |
CN107463435A (en) | Application process priority management method, apparatus, storage medium and electronic equipment | |
CN106953898B (en) | Method and device for acquiring software package | |
CN109547647A (en) | Electrostatic interference control method and Related product | |
US9697184B2 (en) | Adjusting layout size of hyperlink | |
CN106294188A (en) | Memory space processing method and processing device | |
US10938773B2 (en) | Method and apparatus for synchronizing contact information and medium | |
CN104469394A (en) | Video resource acquiring method, background server, video client and system | |
CN106506249B (en) | Collecting method and device | |
CN109144782A (en) | A kind of data reconstruction method and device | |
CN103677519A (en) | Method for collecting multimedia resource, terminal and server | |
CN105430035A (en) | Network data uploading method and device | |
CN103412898A (en) | Method and device for optimizing webpage |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180327 |