CN106850755A - Patrol and examine data processing method and system - Google Patents

Patrol and examine data processing method and system Download PDF

Info

Publication number
CN106850755A
CN106850755A CN201611235324.9A CN201611235324A CN106850755A CN 106850755 A CN106850755 A CN 106850755A CN 201611235324 A CN201611235324 A CN 201611235324A CN 106850755 A CN106850755 A CN 106850755A
Authority
CN
China
Prior art keywords
data
response
submitted
server
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.)
Pending
Application number
CN201611235324.9A
Other languages
Chinese (zh)
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.)
Beijing Yuanxin Science and Technology Co Ltd
Original Assignee
Beijing Yuanxin Science and Technology 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 Beijing Yuanxin Science and Technology Co Ltd filed Critical Beijing Yuanxin Science and Technology Co Ltd
Priority to CN201611235324.9A priority Critical patent/CN106850755A/en
Publication of CN106850755A publication Critical patent/CN106850755A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/59Providing operational support to end devices by off-loading in the network or by emulation, e.g. when they are unavailable

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

This application discloses data processing method and system is patrolled and examined, wherein methods described includes:In response to the request to server submission data, caching intends the data submitted to inspection terminal;Update local patrol task status information;In response to there is data network, the data are submitted to server.There is network environment and without network environment energy normal work, completing patrol task the invention enables cruising inspection system.

Description

Patrol and examine data processing method and system
Technical field
The application is related to the process field of electric numerical data, more particularly to patrols and examines data processing method and system.
Background technology
In modern cruising inspection system, staff carry inspection terminal perform patrol task when and/or afterwards, it is necessary to The data of patrol task implementing result are uploaded onto the server for enterprise's next step management or production and application.Due to secrecy, shielding Etc. reason, some patrol and examine place not network, it is impossible to realize that the instant upload of data is submitted to, and prior art is not corresponded to Solution, cause cruising inspection system normally to run.
The content of the invention
In order to overcome the deficiencies in the prior art, the technical problem to be solved in the present invention to be to provide one kind and patrol and examine data Processing method and system, it causes that cruising inspection system is having network environment and without network environment energy normal work, completing to patrol and examine and appoint Business.
In order to solve the above technical problems, the present invention patrols and examines data processing method, including:
In response to the request to server submission data, caching intends the data submitted to inspection terminal;
Update local patrol task status information;
In response to there is data network, the data are submitted to server.
It is described effective in response to data network as the improvement of the method for the invention, the data are submitted to service Device includes:In response to currently having data network or detecting the environment of inspection terminal from being changed into having network without network, retrieval is patrolled Examine the data cached upload task of terminal local;In response to there is upload task, one or more corresponding numbers of upload task are submitted to According to;Submitted to successfully in response to the data, delete the local corresponding upload task of inspection terminal and data cached.
Used as the further improvement of the method for the invention, methods described also includes:Submitted in response to the data and failed, The frequency of failure is counted.
Used as the further improvement of the method for the invention, methods described also includes:Counted in response to the frequency of failure More than predetermined threshold, the information for making inspection terminal be not successfully completed to user's display upload task.
Improved as the another kind of the method for the invention, methods described also includes:In response to from server request data Request and have network, the request of request data is sent to server;Inspection terminal receives the data that the server is returned; Screening has locally completed mission bit stream;Represent the data for receiving to user.
In order to solve the above technical problems, the present invention patrols and examines data handling system, including:
Cache module, for making inspection terminal in response to submitting the request of data to server, caching intends the data submitted to;
Update module, for updating local patrol task status information;
Module is submitted to, in response to there is data network, the data being submitted into server.
Used as the improvement of system of the present invention, the submission module includes:Retrieval submodule, in response to currently having Data network detects the environment of inspection terminal from being changed into having network without network, local data cached of retrieval inspection terminal Upload task;Submodule is submitted to, in response to there is upload task, submitting one or more corresponding data of upload task to;Delete Except submodule, for being submitted to successfully in response to the data, the local corresponding upload task of inspection terminal and data cached is deleted.
Further improved as system of the present invention, the system also includes:Counting submodule, in response to institute State data and submit failure to, the frequency of failure is counted.
Further improved as system of the present invention, the system also includes:Failure prompting submodule, for ringing Should be counted in the frequency of failure and be more than predetermined threshold, the information for making inspection terminal be not successfully completed to user's display upload task.
Improved as the another kind of system of the present invention, the system also includes:Sending module, in response to from clothes Be engaged in device request data request and have network, the request of request data is sent to server;Receiver module, for making to patrol and examine end End receives the data that the server is returned;Screening module, mission bit stream has locally been completed for screening;Result presentation module, For representing the data for receiving to user.
In order to solve the above technical problems, tangible computer computer-readable recording medium of the invention, including for performing of the invention patrolling Examine the computer program code of data processing method.
In order to solve the above technical problems, the present invention provides a kind of device, including at least one processor;And at least one deposit Reservoir, containing computer program code, at least one memory and the computer program code are configured to, with institute At least one processor is stated so that described device performs at least part of step that the present invention patrols and examines data processing method.
According to the present invention, the scene that data are submitted to treatment mechanism under online and offline pattern is different.It is first under line model Local patrol task state is first cached and updated, and task is added in upload queue, follow-up entity task is by upload mould Block is responsible for unifying upload, by the way of polled async.Under off-line mode, first by data buffer storage and local patrol task shape is updated State, when service processes receive network change to be notified, according to network condition, can automatically carry out data cached reporting.So as to, So that cruising inspection system is having network and without equal energy normal work under network environment, is completing patrol task.
After the detailed description of embodiment of the present invention is read in conjunction with the figure, other features of the invention and advantage will become more Plus it is clear.
Brief description of the drawings
Fig. 1 is the flow chart of the embodiment according to the inventive method.
Fig. 2 is the flow chart of another embodiment according to the inventive method.
Fig. 3 is the structural representation of the embodiment according to present system.
Fig. 4 is the structural representation of another embodiment according to present system.
For clarity, these accompanying drawings are figure that is schematic and simplifying, and they are only gived for understanding institute of the present invention Necessary details, and omit other details.
Specific embodiment
Embodiments of the present invention and embodiment are described in detail with reference to the accompanying drawings.
By detailed description given below, the scope of application of the invention will be evident that.It will be appreciated, however, that detailed While thin description and specific example show the preferred embodiment of the present invention, they are given only for illustration purpose.
Each step of the embodiment for patrolling and examining data processing method of the invention is carried out with reference to flow chart shown in Fig. 1 Illustrate.
In cruising inspection system, radio communication between inspection terminal and server.
In the step s 100, inspection terminal determines the type of the request in response to data sending request.If the request is Submit the request of data to server, then treatment proceeds to step S110, performs the flow for submitting data to;If the request be from Server obtains the request of data, then treatment proceeds to step S150, performs the flow of request data.
In step S110, the data for intending submitting to are that task result is buffered in inspection terminal local.
In step S112, the local task status information of inspection terminal is updated, the corresponding task shape of data submitted to will be intended State is changed to complete.
In step S114, it is determined that being to submit data or request data to.If submitting data to, then treatment proceeds to step S116;If request data, then treatment proceeds to step S160.
In step S116, it is determined whether there is network.If network, then treatment proceeds to step S152;Otherwise, process into Row arrives step S190, and treatment terminates.
In step S152, the data is activation that plan is submitted to server.Afterwards, treatment proceeds to step S154.
In step S154, server returns to the message for submitting success or failure to.Afterwards, treatment proceeds to step S156.
In step S156, inspection terminal determines that the data for receiving or message are directed to and submits to the request of data still to ask The request of data.If submitting data to, then treatment proceeds to step S190, and treatment terminates;If request data, then process Proceed to step S158.
In step S150, it is determined whether there is network.If network, then treatment proceeds to step S152 ';Otherwise, process Proceed to step S170.
In step S152 ', the request of request data is sent to server.Afterwards, treatment proceeds to step S154 '.
In step S154 ', data corresponding with the request of the request data are returned to inspection terminal by server.Afterwards Treatment proceeds to step S156.
In step S158, screening has locally completed mission bit stream.When the data of request are returned from server, and locally Task through completing is compared and screens.Do not completed but the mark in inspection terminal local data base for indicating on server It has been completed that, illustrated that local task has been completed, but not yet completing to submit to completes, it is necessary to this has locally been completed Task is weeded out and is presented to user again.For on server indicate do not complete but in the local database without task, explanation This is new task, it is necessary to be added in database, and user is then presented to again.After step S158, treatment proceeds to Step S112.
In step S160, the data i.e. task result of request is represented to user.Afterwards, treatment proceeds to step S190, treatment terminates.
In the case of step S150 is determined without network, treatment proceeds to step S170, and in step S170, end is patrolled and examined in retrieval The local data in end.Afterwards, treatment proceeds to step S160.
According to a kind of implementation method of the inventive method, after S116 determines to have network the step of method shown in Fig. 1, will The data is activation for intending submitting to includes to server, in step S202, the local data cached upload task of retrieval inspection terminal.It Afterwards, in step S204, whether the quantity of data cached upload task is determined more than 0, if greater than 0, then treatment proceeds to step S206;Otherwise, treatment proceeds to step S190, and treatment terminates.In step S206, one is submitted to upload the corresponding caching number of task According to.In step S208, it is determined whether submit to successfully, if submitted to successfully, treatment proceeds to step S210;Otherwise, process into Row arrives step S230.In step S210, the quantity that inspection terminal is locally uploaded task subtracts 1.Then, in step S212, delete Submit successful task in local upload task to and delete corresponding data cached, afterwards, treatment proceeds to step S204, carries out The upload process of next round.In step S220, if submitting failure to, the frequency of failure is set plus 1, afterwards, treatment proceeds to step Whether S230, determine the frequency of failure more than predetermined threshold, herein for example, 3, if the frequency of failure is less than or equal to predetermined threshold 3, then treatment proceeds to step S206, and otherwise, treatment proceeds to step S240, and upload task is shown not to the user of inspection terminal The information for successfully completing.
Fig. 3 shows the schematic diagram of the embodiment for patrolling and examining data handling system of the invention, and the system includes:It is slow Storing module 302, for making inspection terminal in response to submitting the request of data to server, caching intends the data submitted to;Update mould Block 304, for updating local patrol task status information;Module 306 is submitted to, in response to there is data network, by the number According to being submitted to server;Sending module 312, in response to the request from server request data and having network, by number of request According to request be sent to server;Receiver module 314, for making inspection terminal receive the data that the server is returned;Screening Module 316, mission bit stream has locally been completed for screening;Result presentation module 318, for representing the number for receiving to user According to.
Fig. 4 shows the schematic diagram of another embodiment for patrolling and examining data handling system of the invention, except combination Fig. 3 institutes Show with outside described each module, in this embodiment, submit to module 306 to include:Retrieval submodule 402, in response to current There is data network or detect the environment of inspection terminal from being changed into having network without network, the local caching number of retrieval inspection terminal According to the task of upload;Submodule 404 is submitted to, in response to there is upload task, submitting one or more corresponding numbers of upload task to According to;Delete submodule 406, for being submitted successfully in response to the data, the local corresponding upload task of deletion inspection terminal and It is data cached.The data handling system of patrolling and examining of the embodiment also includes:Counting submodule 408, for being carried in response to the data Failure is handed over, the frequency of failure is counted;Failure prompting submodule 410, predetermined threshold is more than for being counted in response to the frequency of failure Value, the information for making inspection terminal be not successfully completed to user's display upload task.
Multiple difference embodiments described herein or its special characteristic, structure or characteristic can be at one of the invention or many It is appropriately combined in individual implementation method.In addition, in some cases, if suitably, in flow chart and/or stream treatment description step Rapid order can be changed, and accurately must not necessarily be performed in the described sequence.In addition, multiple different aspects of the invention can be used Software, hardware, firmware or its other computer-implemented modules or device for combining and/or performing the function carry out reality Apply.Software implementation of the invention may include to be stored in computer-readable medium and by holding that one or more processors are performed Line code.Computer-readable medium may include computer hard disc driver, ROM, RAM, flash memory, pocket computer storage medium such as CD-ROM, DVD-ROM, flash disc drives and/or such as other devices with USB (USB) interface, and/or appoint What its appropriate tangible or non-of short duration computer-readable medium or executable code can be preserved thereon and by computing device Computer storage.The present invention can be used with reference to any appropriate operating system.
Unless explicitly stated otherwise, singulative as used herein " ", " being somebody's turn to do " include plural reference (i.e. with " at least one " The meaning).It will be further understood that terminology used herein " having ", " including " and/or "comprising" show to exist it is described Feature, step, operation, element and/or part, but do not preclude the presence or addition of one or more other features, step, behaviour Work, element, part and/or its combination.Term "and/or" as used in this includes one or more relevant items enumerated Any and all combination.
Some currently preferred embodiments of the present invention is foregoing described, it should be emphasized, however, that the present invention is not limited to these Embodiment, and can be the other manner realization in the range of present subject matter.Those skilled in the art can be in the technology of the present invention The inspiration of design and do not depart from various changes and modifications are made to the present invention on the basis of present invention, these deformations or change Still fall within protection scope of the present invention.

Claims (10)

1. one kind patrols and examines data processing method, it is characterised in that methods described includes:
In response to the request to server submission data, caching intends the data submitted to inspection terminal;
Update local patrol task status information;
In response to there is data network, the data are submitted to server.
2. method according to claim 1, it is characterised in that described in response to there is data network, the data are submitted to Include to server:
In response to currently having data network or detecting the environment of inspection terminal from being changed into having network without network, end is patrolled and examined in retrieval The local data cached upload task in end;
In response to there is upload task, one or more corresponding data of upload task are submitted to;
Submitted to successfully in response to the data, delete the local corresponding upload task of inspection terminal and data cached.
3. method according to claim 2, it is characterised in that methods described also includes:
Submitted in response to the data and failed, the frequency of failure is counted.
4. method according to claim 3, it is characterised in that methods described also includes:
Counted in response to the frequency of failure and be more than predetermined threshold, the letter for making inspection terminal be not successfully completed to user's display upload task Breath.
5. method according to claim 1, it is characterised in that methods described also includes:
In response to the request from server request data and there is network, the request of request data is sent to server;
Inspection terminal receives the data that the server is returned;
Screening has locally completed mission bit stream;
Represent the data for receiving to user.
6. one kind patrols and examines data handling system, it is characterised in that the system includes:
Cache module, for making inspection terminal in response to submitting the request of data to server, caching intends the data submitted to;
Update module, for updating local patrol task status information;
Module is submitted to, in response to there is data network, the data being submitted into server.
7. system according to claim 6, it is characterised in that the submission module includes:
Retrieval submodule, for being had from being changed into without network in response to currently having data network or detecting the environment of inspection terminal Network, the local data cached upload task of retrieval inspection terminal;
Submodule is submitted to, in response to there is upload task, submitting one or more corresponding data of upload task to;
Submodule is deleted, for being submitted to successfully in response to the data, the local corresponding upload task of inspection terminal is deleted and is delayed Deposit data.
8. system according to claim 7, it is characterised in that the system also includes:
Counting submodule, fails for being submitted in response to the data, and the frequency of failure is counted.
9. system according to claim 8, it is characterised in that the system also includes:
Failure prompting submodule, predetermined threshold is more than for being counted in response to the frequency of failure, inspection terminal is shown to user The information that biography task is not successfully completed.
10. system according to claim 6, it is characterised in that the system also includes:
Sending module, in response to the request from server request data and having network, the request of request data is sent to Server;
Receiver module, for making inspection terminal receive the data that the server is returned;
Screening module, mission bit stream has locally been completed for screening;
Result presentation module, for representing the data for receiving to user.
CN201611235324.9A 2016-12-28 2016-12-28 Patrol and examine data processing method and system Pending CN106850755A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611235324.9A CN106850755A (en) 2016-12-28 2016-12-28 Patrol and examine data processing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611235324.9A CN106850755A (en) 2016-12-28 2016-12-28 Patrol and examine data processing method and system

Publications (1)

Publication Number Publication Date
CN106850755A true CN106850755A (en) 2017-06-13

Family

ID=59113632

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611235324.9A Pending CN106850755A (en) 2016-12-28 2016-12-28 Patrol and examine data processing method and system

Country Status (1)

Country Link
CN (1) CN106850755A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110351750A (en) * 2019-06-21 2019-10-18 绿漫科技有限公司 Data collaborative method of the property mobile terminal under weak net environment
WO2020034879A1 (en) * 2018-08-17 2020-02-20 菜鸟智能物流控股有限公司 Task processing method, apparatus, and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103546536A (en) * 2013-08-28 2014-01-29 北京清控人居环境研究院有限公司 Internet of things system of sewage treatment plant
CN204204052U (en) * 2015-01-08 2015-03-11 徐州中矿大华洋通信设备有限公司 Colliery downhole equipment point detection system
CN105407146A (en) * 2015-10-27 2016-03-16 成都艾克尔特医疗科技有限公司 Data synchronization method from wristband to APP to server
CN205283609U (en) * 2015-12-11 2016-06-01 山东科大机电科技股份有限公司 Data transmission module based on high in clouds service
WO2016106530A1 (en) * 2014-12-29 2016-07-07 刘一佳 Method for drawing attention to product feature during breakpoint continuous playback
CN105927276A (en) * 2016-05-05 2016-09-07 四川加联达工程技术有限公司 Subway shield segment posture monitoring management system based on mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103546536A (en) * 2013-08-28 2014-01-29 北京清控人居环境研究院有限公司 Internet of things system of sewage treatment plant
WO2016106530A1 (en) * 2014-12-29 2016-07-07 刘一佳 Method for drawing attention to product feature during breakpoint continuous playback
CN204204052U (en) * 2015-01-08 2015-03-11 徐州中矿大华洋通信设备有限公司 Colliery downhole equipment point detection system
CN105407146A (en) * 2015-10-27 2016-03-16 成都艾克尔特医疗科技有限公司 Data synchronization method from wristband to APP to server
CN205283609U (en) * 2015-12-11 2016-06-01 山东科大机电科技股份有限公司 Data transmission module based on high in clouds service
CN105927276A (en) * 2016-05-05 2016-09-07 四川加联达工程技术有限公司 Subway shield segment posture monitoring management system based on mobile terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020034879A1 (en) * 2018-08-17 2020-02-20 菜鸟智能物流控股有限公司 Task processing method, apparatus, and system
CN110351750A (en) * 2019-06-21 2019-10-18 绿漫科技有限公司 Data collaborative method of the property mobile terminal under weak net environment

Similar Documents

Publication Publication Date Title
CN110706069B (en) Exception handling method, device, server and system for order payment request
CN109391646B (en) Message middleware message acquisition method, device and system
TW201918050A (en) Message processing method and device
CN110633977A (en) Payment exception processing method and device and terminal equipment
CN107092628B (en) Time series data processing method and device
CN110599277A (en) Inventory deduction method and device
CN110995851B (en) Message processing method, device, storage medium and equipment
US20190188408A1 (en) Techniques for eventually consistent inheritance propagation for nested content item namespaces
US20200409566A1 (en) Key Value Store Using Progress Verification
US11789935B2 (en) Data aggregation with microservices
CN112256776B (en) Form repeated submission detection method and device, computer equipment and storage medium
CN108874912A (en) A kind of cancellation method and server
US20230370846A1 (en) Method and apparatus for detecting arbitrary account password reset logic vulnerability, and medium
CN110413413A (en) A kind of method for writing data, device, equipment and storage medium
CN106850755A (en) Patrol and examine data processing method and system
CN110188969B (en) Method and device for controlling task issuing
EP3811231A1 (en) Reducing data loss in remote databases
CN114327948A (en) Message processing method, device, equipment and storage medium
US12061895B2 (en) Predictive recycling of computer systems in a cloud environment
US20150100545A1 (en) Distributed database system and a non-transitory computer readable medium
CN108763517A (en) A kind of method and relevant device for deleting metadata
US20230289082A1 (en) Managing deduplication operations based on a likelihood of duplicability
US11334623B2 (en) Key value store using change values for data properties
CN114969072B (en) Data transmission method, device and equipment based on state machine and data persistence
CN109800184A (en) For the caching method of fritter input, system, device and can storage medium

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: 20170613