CN104317659A - Routing inspection method and routing inspection device - Google Patents

Routing inspection method and routing inspection device Download PDF

Info

Publication number
CN104317659A
CN104317659A CN201410568976.9A CN201410568976A CN104317659A CN 104317659 A CN104317659 A CN 104317659A CN 201410568976 A CN201410568976 A CN 201410568976A CN 104317659 A CN104317659 A CN 104317659A
Authority
CN
China
Prior art keywords
time period
patrol task
section time
current
task cycle
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
CN201410568976.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 Sinohytec Co Ltd
Original Assignee
Beijing Sinohytec 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 Sinohytec Co Ltd filed Critical Beijing Sinohytec Co Ltd
Priority to CN201410568976.9A priority Critical patent/CN104317659A/en
Publication of CN104317659A publication Critical patent/CN104317659A/en
Pending legal-status Critical Current

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a routing inspection method and a routing inspection device. The routing inspection method comprises the following steps of acquiring a current routing inspection task period; acquiring a current standard section time bucket; determining a target section time bucket in a current routing inspection task period according to the current standard section time bucket; and carrying out a routing inspection task on a routing inspection object in the current standard section time bucket. The current routing inspection task period comprises a plurality of section time buckets; the durations of the section time buckets are the same; the optional adjacent section time buckets are connected to one another end to end; and each section time bucket is used for performing routing inspection on an objective routing inspection object in the current standard section time bucket. By the routing inspection method and the routing inspection device, the problem that hardware configuration resources of a server cannot meet requirements of all intercurrent routing inspection tasks in the same routing inspection period in the correlation technique is solved.

Description

Method for inspecting and device
Technical field
The present invention relates to Internet of Things field, in particular to a kind of method for inspecting and device.
Background technology
Along with developing rapidly of mobile radio communication, the development of Internet of Things (e.g., car networking) is also more and more faster.For car networked system, its critical function is that vehicle is patrolled and examined.Wherein, it is at car networked system platform normal operation period that vehicle is patrolled and examined, and periodically detects the historical failure data of the vehicle of having networked, and predicts according to the operation conditions of the historical failure data detected to vehicle future time instance.
In the related, the general mode adopting centralized dispatching patrolled and examined by vehicle, that is, arrive at patrol task scheduling instance one, start all patrol tasks immediately.The number of vehicles that the few and each patrol task of patrol task is patrolled and examined within a certain performance period is limited, more the mode of centralized dispatching can perform one by the hardware configuration improving server and write patrol task.But, along with the continuous increase of number of vehicles in car networking, and under requiring that car networked system platform can fast, effectively complete the background of patrol task, only upgrade server hardware configuration cannot meet vehicle and patrolled and examined demand, such as, once patrol task is more, and patrol and examine vehicle more time, car networked system cannot ensure sufficient Resourse Distribute to each concurrent patrol task.Therefore, because online vehicles also gets more and more, if the car networked system platform that neither one is powerful, then, when vehicle breaks down, quick position fault will be difficult to and provide solution.
For in correlation technique in same polling period, server hardware resource allocation cannot meet the problem of the demand of all concurrent patrol tasks, not yet proposes effective solution at present.
Summary of the invention
Fundamental purpose of the present invention is to provide a kind of method for inspecting and device, and to solve in correlation technique in same polling period, server hardware resource allocation cannot meet the problem of the demand of all concurrent patrol tasks.
To achieve these goals, according to an aspect of the present invention, a kind of method for inspecting is provided.The method comprises: obtain the current patrol task cycle, the described current patrol task cycle is the cycle for patrolling and examining multiple object to be inspected, the described current patrol task cycle comprises multiple section time period, the duration of described multiple section time period is identical, and the section time period of arbitrary neighborhood is end to end, each described section time period is for patrolling and examining the partial objects in described multiple object to be inspected; Obtain the current base section time period, the duration of described current base section time period is identical with the duration of described section time; The target slice time period in the described current patrol task cycle is determined according to the described current base section time period, the described target slice time period is the time period in described multiple section time period, and the partial objects in described multiple objects to be inspected that the described target slice time period is corresponding is that target patrols and examines object; And within the described current base section time period, object execution patrol task is patrolled and examined to described target.
Further, the current patrol task cycle comprises the first current patrol task cycle and the second current patrol task cycle, described object to be inspected comprises first and patrols and examines object and second and patrol and examine object, obtains the current patrol task cycle to comprise: obtain the described first current patrol task cycle; Obtain the described second current patrol task cycle, determine that the target slice time period in the described current patrol task cycle comprises according to the described current base section time period: determine the first object section time period in the described first current patrol task cycle according to the described current base section time period, the partial objects in multiple first objects to be inspected that the described first object section time period is corresponding is that first object patrols and examines object; The second target slice time period in the described second current patrol task cycle is determined according to the described current base section time period, partial objects in multiple second objects to be inspected that the described second target slice time period is corresponding is that the second target patrols and examines object, described target is patrolled and examined to object within the described current base section time period and performs patrol task and comprise: within the described current base section time period, patrol and examine object and described second target to described first object patrol and examine object and perform patrol task.
Further, within the described current base section time period, patrol and examine object execution patrol task to described target to comprise: send and patrol and examine order; And according to described patrol and examine order to described target patrol and examine object perform patrol task, obtain the information of patrolling and examining.
Further, before the acquisition current patrol task cycle, described method for inspecting also comprises: the networking state detecting the object to be inspected corresponding to the described current patrol task cycle; And whether the described networking state judging the object to be inspected corresponding to the described current patrol task cycle detected is presence, wherein, if the described networking state judging the object to be inspected corresponding to the described current patrol task cycle detected is described presence, then obtain the described current patrol task cycle.
Further, after the networking state detecting the object to be inspected corresponding to the described current patrol task cycle, described method for inspecting also comprises: judge that whether the described networking state of the object to be inspected corresponding to the described current patrol task cycle detected is off-line state or as switching to described off-line state by described presence; And if judge that the described networking state of the object to be inspected corresponding to the described current patrol task cycle detected is described off-line state or for switch to described off-line state by described presence, then report the off-line alarm of the object to be inspected corresponding to the described current patrol task cycle.
To achieve these goals, according to a further aspect in the invention, a kind of inspection device is provided.This device comprises: the first acquiring unit, for obtaining the current patrol task cycle, the described current patrol task cycle is the cycle for patrolling and examining multiple object to be inspected, the described current patrol task cycle comprises multiple section time period, the duration of described multiple section time period is identical, and the section time period of arbitrary neighborhood is end to end, each described section time period is for patrolling and examining the partial objects in described multiple object to be inspected; Second acquisition unit, for obtaining the current base section time period, the duration of described current base section time period is identical with the duration of described section time; Determining unit, for determining the target slice time period in the described current patrol task cycle according to the described current base section time period, the described target slice time period is the time period in described multiple section time period, and the partial objects in described multiple objects to be inspected that the described target slice time period is corresponding is that target patrols and examines object; And performance element, perform patrol task for patrolling and examining object to described target within the described current base section time period.
Further, the current patrol task cycle comprises the first current patrol task cycle and the second current patrol task cycle, described object to be inspected comprises first and patrols and examines object and second and patrol and examine object, described first acquiring unit is also for obtaining the described first current patrol task cycle, and obtain the described second current patrol task cycle, described determining unit is also for determining the first object section time period in the described first current patrol task cycle according to the described current base section time period, partial objects in multiple first objects to be inspected that the described first object section time period is corresponding is that first object patrols and examines object, and the second target slice time period in the described second current patrol task cycle is determined according to the described current base section time period, partial objects in multiple second objects to be inspected that the described second target slice time period is corresponding is that the second target patrols and examines object, described performance element is is also patrolled and examined object perform patrol task for being patrolled and examined object and described second target to described first object within the described current base section time period.
Further, described performance element comprises: sending module, patrols and examines order for sending; And execution module, for patrolling and examining order described in basis, object execution patrol task being patrolled and examined to described target, obtaining the information of patrolling and examining.
Further, described inspection device also comprises: detecting unit, for before the acquisition current patrol task cycle, detects the networking state of the object to be inspected corresponding to the described current patrol task cycle; And first judging unit, for judging whether the described networking state of the object to be inspected corresponding to described current patrol task cycle of detecting is presence, wherein, described first acquiring unit also for when the described networking state of the object to be inspected corresponding to the described current patrol task cycle judging to detect is described presence, obtains the described current patrol task cycle.
Further, described inspection device also comprises: the second judging unit, for after the networking state detecting the object to be inspected corresponding to the described current patrol task cycle, judge that whether the described networking state of the object to be inspected corresponding to the described current patrol task cycle detected is off-line state or as switching to described off-line state by described presence; And Alarm Unit, for at the described networking state of the object to be inspected corresponding to the described current patrol task cycle judging to detect be described off-line state or for switching to described off-line state by described presence time, report the off-line alarm of the object to be inspected corresponding to the described current patrol task cycle.
Pass through the present invention, adopt and obtain the current patrol task cycle, the current patrol task cycle is the cycle for patrolling and examining multiple object to be inspected, the current patrol task cycle comprises multiple section time period, the duration of multiple section time period is identical, and the section time period of arbitrary neighborhood is end to end, each section time period is for patrolling and examining the partial objects in multiple object to be inspected; Obtain the current base section time period, the duration of current base section time period is identical with the duration of section time; The target slice time period in the current patrol task cycle is determined according to the current base section time period, the target slice time period is the time period in multiple section time period, and the partial objects in the object multiple to be inspected that the target slice time period is corresponding is that target patrols and examines object; And within the current base section time period, object execution patrol task is patrolled and examined to target, to solve in correlation technique in same polling period, server hardware resource allocation cannot meet the problem of the demand of all concurrent patrol tasks, and then the concurrent quantity reaching the patrol task reduced in the same time period is to prevent the effect of server hardware resource allocation deficiency.
Accompanying drawing explanation
The accompanying drawing forming a application's part is used to provide a further understanding of the present invention, and schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the process flow diagram of the method for inspecting according to the embodiment of the present invention;
Fig. 2 is patrol task cycle according to the embodiment of the present invention, time period of section and patrol and examine the schematic diagram of the relation between number of vehicles; And
Fig. 3 is the schematic diagram of the inspection device according to the embodiment of the present invention.
Embodiment
It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.Below with reference to the accompanying drawings and describe the present invention in detail in conjunction with the embodiments.
Better the present invention program is understood in order to make those skilled in the art, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the embodiment of a part of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, the every other embodiment obtained under those of ordinary skill in the art do not make creative work prerequisite, all should belong to protection scope of the present invention.
It should be noted that, term " first ", " second " etc. in instructions of the present invention and claims and above-mentioned accompanying drawing are for distinguishing similar object, and need not be used for describing specific order or precedence.Should be appreciated that the data used like this can be exchanged in the appropriate case, so as embodiments of the invention described herein can with except here diagram or describe those except order implement.In addition, term " comprises " and " having " and their any distortion, and intention is to cover not exclusive comprising.
It should be noted that, the present invention can be applied to but be not limited to be applied to car networked system, elaborates the present invention below to be applied to car networked system.
According to embodiments of the invention, provide a kind of method for inspecting, this method for inspecting is used for the patrol task cycle to be divided into multiple section time period, and according to the benchmark section time period, the object to be inspected corresponding to each section time period is carried out task and patrolled and examined, achieve the object that the object all to be inspected in the patrol task cycle is patrolled and examined by group.This method for inspecting may operate on computer-processing equipment.
Fig. 1 is the process flow diagram of the method for inspecting according to the embodiment of the present invention.As shown in Figure 1, the method comprises following step S102 to step S108:
Step S102, obtains the current patrol task cycle.
The current patrol task cycle can for the cycle for patrolling and examining multiple object to be inspected, the current patrol task cycle comprises multiple section time period, the duration of multiple section time period is identical, and the section time period of arbitrary neighborhood is end to end, each section time period is for patrolling and examining the partial objects in multiple object to be inspected, also namely, the mode of section time period is adopted to carry out packet transaction to the object to be inspected in the patrol task cycle.Wherein, object to be inspected can be vehicle to be inspected.Be that the present invention will be described in detail for vehicle to be inspected for object to be inspected below.
The current patrol task cycle can comprise one or more.When the current patrol task cycle comprises multiple, the Cycle Length in multiple current patrol task cycle can be different.
Such as, current time is 8:00, the current patrol task cycle comprises: period 1 T1, second round T2 and period 3 T3, wherein, in the period 1, vehicle A1, A2 to be inspected can be patrolled and examined, in the second cycle, vehicle B1, B2, B3, B4 to be inspected can be patrolled and examined, in the period 3, vehicle C1, C2, C3, C4, C5, C6 to be inspected can be patrolled and examined; T1=5min, T2=10min, T3=15min, with the duration of 5min benchmark section time period, then T1 comprises 1 section time period t 11, T2 and comprises 2 sections time period t 21, t22, T3 and comprise 3 section time period t 31, t32, t33.
Step S104, obtains the current base section time period.
The duration of current base section time period is identical with the duration of section time.In actual applications, according to user's request, 24 hours can be divided into fragment reference time of several durations such as grade, such as, each reference time, fragment can be 5min.After having divided, division result (that is, fragment reference time preset) can be stored, thus in use, the benchmark section time period (that is, current base section time period) of current time can have been obtained from memory storage.
Step S106, determines the target slice time period in the current patrol task cycle according to the current base section time period.
The target slice time period can be the time period in multiple section time period, and the partial objects in the object multiple to be inspected that the target slice time period is corresponding is that target patrols and examines object.Particularly, time period of current base can being cut into slices mated with each time period of cutting into slices in the current patrol task cycle.If the match is successful, then using the section time period that the match is successful as the target slice time period.
Such as, situation 1, suppose that the current base section time period is 8:00 ~ 8:05, respectively it was mated with each time period of cutting into slices in T1, T2 and T3, through coupling, t31 in t21, T3 in t11, T2 in T1 is the target slice time period, and now, target is patrolled and examined object and comprised: A1, A2, B1, B2, C1, C2; Situation 2, supposes that the current base section time period is 8:05 ~ 8:10, it is mated with each time period of cutting into slices in T1, T2 and T3 respectively, through coupling, t32 in t22, T3 in T2 is the target slice time period, and now, target is patrolled and examined object and comprised: B3, B4, C3, C4; Situation 3, the current base section time period is 8:10 ~ 8:15, it is mated with each time period of cutting into slices in T1, T2 and T3 respectively, and through coupling, the t33 in T3 is the target slice time period, and now, target is patrolled and examined object and comprised: C5, C6.
Step S108, patrols and examines object to target and performs patrol task within the current base section time period.
Such as, in aforesaid situation 1 ~ 3, be in 8:00 ~ 8:05 in the current base section time period, patrol task can be performed to A1, A2, B1, B2, C1, C2, also namely, need to A1, A2, B1, B2, C1, C2 totally 6 concurrent patrol tasks perform and patrol and examine; Be in 8:05 ~ 8:10 in the current base section time period, patrol task can be performed to B3, B4, C3, C4, also, need to B3, B4, C3, C4 totally 4 concurrent patrol tasks perform and patrol and examine; Be in 8:10 ~ 8:15 in the current base section time period, patrol task can be performed to C5, C6, also, need to C5, C6 totally 2 concurrent patrol tasks perform and patrol and examine.
But, if not in accordance with above-mentioned method for inspecting of the present invention, then need T1 at current time, object whole to be inspected corresponding to T2 and T3 performs patrol task, also be, need A1 at current time, A2, B1, B2, B3, B4, C1, C2, C3, C4, C5, C6 all performs patrol task, obviously, adopt above-mentioned method for inspecting of the present invention, can by above-mentioned A1, A2, B1, B2, B3, B4, C1, C2, C3, C4, C5, C6 be dispersed in different concurrent time engrave, thus the quantity of patrol task decreased at particular moment concurrent object to be inspected.
By the present invention, adopt and obtain the current patrol task cycle; Obtain the current base section time period; The target slice time period in the current patrol task cycle is determined according to the current base section time period; And within the current base section time period, object execution patrol task is patrolled and examined to target, owing to adopting time slice algorithm, can divide into groups to the object to be inspected corresponding to the patrol task cycle according to the section time period, and by the object slice time period sequence trigger switch patrol task to be inspected in each group after grouping, reach the concurrent quantity of the patrol task reduced in the same time period to prevent the effect of server hardware resource allocation deficiency.
It should be noted that, time slice algorithm involved in the present invention is to needing the object to be inspected of poll to divide on time dimension.Can be separate on microcosmic between each section time period, macroscopically can be integrally.In addition, the smallest particles degree of the section time period in the patrol task cycle can not be too little, the too little quantity that can increase grouped task, and too little meeting causes the operation burden of system to increase; Can not be too large, too conference causes the effect and the meaning that lose grouping, is not inconsistent with practical application.Such as, can according to user's request, the granularity of section time period is set as 5min, so all patrol task cycles are cycle of n*5min (n>=1), vehicle set to be inspected evenly can be divided into n group, the vehicle to be inspected in every group be assigned on each benchmark section time period and perform patrol task.It should be noted that, the smallest particles degree of section time period of the present invention can set according to actual needs, is not limited to 5min.
Such as, as shown in Figure 2, be respectively 5min, 15min and 30min to introduce this time slice algorithm for the patrol task cycle, wherein, suppose that the duration of section time period is 5min, and each benchmark section time period is also 5min.When patrol task cycle T=5min, it is i that every 5min patrols and examines vehicle number; When patrol task cycle T=15min, it is j/3 that every 5min patrols and examines vehicle number; When patrol task cycle T=30min, it is k/6 that every 5min patrols and examines vehicle number.Within above-mentioned 3 patrol task cycles, every 5min patrols and examines vehicle number=5min and patrols and examines vehicle number+15min and patrol and examine vehicle number/3+30min wheel and patrol and examine vehicle number/6=i+j/3+k/6, and prerequisite 15min is patrolled and examined vehicle to be divided into 3 groups, and 30min patrols and examines vehicle and is divided into 6 groups.
Particularly, as shown in Figure 2, it is n that every 5min need patrol and examine vehicle fleet size, needs to perform polling operation at each 5min.The patrol task cycle is that the vehicle to be inspected of 15min can be divided into 15/5=3 group, the vehicle number to be inspected of 3 groups is respectively j1, j2, j3, the patrol task of patrolling and examining j1 is performed at first, the 4th, the 7th 5min, perform the patrol task of patrolling and examining j2 at second, the 5th, the 8th 5min, perform the patrol task of patrolling and examining j3 at the 3rd, the 6th, the 9th 5min; The patrol task cycle is that the vehicle to be inspected of 30min can be divided into 30/5=6 group, the vehicle number to be inspected of 6 groups is respectively k1, k2, k3, k4, k5, k6, the patrol task of patrolling and examining k1 is performed at first 5min, second 5min performs the patrol task of patrolling and examining k2, by that analogy, do not repeat them here.
By the embodiment of the present invention, patrol and examine vehicle carry out dividing into groups to perform patrol task owing to treating according to above-mentioned time slice algorithm, therefore, it is possible to ensure to patrol and examine the vehicle being spaced apart 5min, every 5min performs a poll; Patrol and examine the vehicle being spaced apart 15min, every 15min performs a poll; Patrol and examine the vehicle being spaced apart 30min, every 30min performs and once patrols and examines, and then the concurrent quantity reaching the patrol task reduced in the same time period is to prevent the effect of server hardware resource allocation deficiency.
In embodiments of the present invention, the current patrol task cycle can comprise: the first current patrol task cycle and the second current patrol task cycle, object to be inspected can comprise: first patrols and examines object and second patrols and examines object.Like this, aforesaid step S102 to step S108 can comprise respectively:
Step S102 comprises: obtained for the first current patrol task cycle; And the second current patrol task cycle of acquisition.
Step S104 comprises: determine the first object section time period in the first current patrol task cycle according to the current base section time period, and the partial objects in multiple first objects to be inspected that the first object section time period is corresponding is that first object patrols and examines object; And determined in the second current patrol task cycle the second target slice time period according to the current base section time period, the partial objects in multiple second objects to be inspected that the second target slice time period is corresponding is that the second target patrols and examines object.
Step S106, identical with the step S106 in previous embodiment, do not repeat them here.
Step S108, patrols and examines object to first object within the current base section time period and the second target patrols and examines object execution patrol task.
In embodiments of the present invention, within the current base section time period, patrol and examine object execution patrol task to target can comprise:
S2, sends and patrols and examines order.
S4, patrolling and examining object execution patrol task according to patrolling and examining order to target, obtaining the information of patrolling and examining.
In embodiments of the present invention, before the acquisition current patrol task cycle, this method for inspecting can also comprise:
S6, detects the networking state of the object to be inspected corresponding to the current patrol task cycle.
S8, judges whether the networking state of the object to be inspected corresponding to the current patrol task cycle detected is presence.
Wherein, if the networking state judging the object to be inspected corresponding to the current patrol task cycle detected is presence, then the current patrol task cycle is obtained.
In embodiments of the present invention, after the networking state detecting the object to be inspected corresponding to the current patrol task cycle, this method for inspecting can also comprise:
S10, judges that whether the networking state of the object to be inspected corresponding to the current patrol task cycle detected is off-line state or as switching to off-line state by presence.
S12, if judge that the networking state of the object to be inspected corresponding to the current patrol task cycle detected is off-line state or for switch to off-line state by presence, then reports the off-line alarm of the object to be inspected corresponding to the current patrol task cycle.
Such as, when normal program operation patrolled and examined by vehicle, patrolling and examining in program is the patrol task run in units of smallest particles degree 5min, wherein, treats patrol and examine the step that vehicle carries out training in rotation and can comprise based on time slice algorithm:
S14, whether real-time judge arrives the patrol task cycle, if arrive the patrol task cycle, will perform following patrol task step; Otherwise perform and repeat S14;
S16, when arriving the patrol task cycle, inquire about the vehicle to be inspected that this patrols and examines each involved patrol task cycle, such as, these vehicles to be inspected can comprise: the vehicle in 5min patrol task cycle, the 15min patrol task cycle belongs to this vehicle of patrolling and examining (15/3), and the 30min patrol task cycle belongs to this vehicle of patrolling and examining (30/6);
S18, the vehicle of this being patrolled and examined is one group and adds in patrol task concurrent thread pond, such as, is one group adds in patrol task concurrent thread pond with 20 vehicles;
S20, sends vehicle to vehicle to be inspected and patrols and examines order;
S22, according to each information of vehicles detection vehicle presence;
S24, judges in each thread, whether vehicle presence changes, if changed, performs S26, if do not changed, performs S28;
S26, if vehicle-state becomes presence from off-line state, reports vehicle to recover on-line alarm by car networked system; If vehicle-state becomes off-line state from presence, report the alarm of vehicle off-line by car networked system;
S28, receives and processes the response data of vehicle feedback to be inspected;
S30, judges whether the vehicle whole to be inspected that this is patrolled and examined is finished.If this vehicle whole to be inspected of patrolling and examining is not finished, then perform S18, next is organized vehicle to be inspected and join continuation execution in concurrent thread pond; If this vehicle whole to be inspected of patrolling and examining is finished, performs S14, revert to poll and patrol and examine program, prepare next patrol task.
In addition, this time slice algorithm can also be used for the function such as vehicle condition data acquisition, the directed monitoring of vehicle-state of car networked system.
By the embodiment of the present invention, patrol task temporally Slicing Algorithm is treated and is patrolled and examined vehicle and carry out training in rotation, can effectively equally loaded, improves the execution efficiency of vehicle patrol task in car networked system.
It should be noted that, can perform in the computer system of such as one group of computer executable instructions in the step shown in the process flow diagram of accompanying drawing, and, although show logical order in flow charts, but in some cases, can be different from the step shown or described by order execution herein.
According to embodiments of the invention, provide a kind of inspection device, this inspection device is used for.It should be noted that, the method for inspecting that the embodiment of the present invention provides can be performed by the inspection device of the embodiment of the present invention, and the inspection device of the embodiment of the present invention also may be used for the method for inspecting performing the embodiment of the present invention.
Fig. 3 is the schematic diagram of the inspection device according to the embodiment of the present invention.As shown in Figure 3, this device comprises: the first acquiring unit 302, second acquisition unit 304, determining unit 306 and performance element 308.
First acquiring unit 302 may be used for obtaining the current patrol task cycle.The current patrol task cycle can for the cycle for patrolling and examining multiple object to be inspected, the current patrol task cycle comprises multiple section time period, the duration of multiple section time period is identical, and the section time period of arbitrary neighborhood is end to end, each section time period is for patrolling and examining the partial objects in multiple object to be inspected, also namely, the mode of section time period is adopted to carry out packet transaction to the object to be inspected in the patrol task cycle.Wherein, object to be inspected can be vehicle to be inspected.Be that the present invention will be described in detail for vehicle to be inspected for object to be inspected below.
The current patrol task cycle can comprise one or more.When the current patrol task cycle comprises multiple, the Cycle Length in multiple current patrol task cycle can be different.
Such as, current time is 8:00, the current patrol task cycle comprises: period 1 T1, second round T2 and period 3 T3, wherein, in the period 1, vehicle A1, A2 to be inspected can be patrolled and examined, in the second cycle, vehicle B1, B2, B3, B4 to be inspected can be patrolled and examined, in the period 3, vehicle C1, C2, C3, C4, C5, C6 to be inspected can be patrolled and examined; T1=5min, T2=10min, T3=15min, with the duration of 5min benchmark section time period, then T1 comprises 1 section time period t 11, T2 and comprises 2 sections time period t 21, t22, T3 and comprise 3 section time period t 31, t32, t33.
Second acquisition unit 304 may be used for obtaining the current base section time period, and the duration of current base section time period is identical with the duration of section time.In actual applications, according to user's request, 24 hours can be divided into fragment reference time of several durations such as grade, such as, each reference time, fragment can be 5min.After having divided, division result (that is, fragment reference time preset) can be stored, thus in use, the benchmark section time period (that is, current base section time period) of current time can have been obtained from memory storage.
Determining unit 306 may be used for the target slice time period determined according to the current base section time period in the current patrol task cycle.The target slice time period can be the time period in multiple section time period, and the partial objects in the object multiple to be inspected that the target slice time period is corresponding is that target patrols and examines object.Particularly, time period of current base can being cut into slices mated with each time period of cutting into slices in the current patrol task cycle.If the match is successful, then using the section time period that the match is successful as the target slice time period.
Such as, situation 1, suppose that the current base section time period is 8:00 ~ 8:05, respectively it was mated with each time period of cutting into slices in T1, T2 and T3, through coupling, t31 in t21, T3 in t11, T2 in T1 is the target slice time period, and now, target is patrolled and examined object and comprised: A1, A2, B1, B2, C1, C2; Situation 2, supposes that the current base section time period is 8:05 ~ 8:10, it is mated with each time period of cutting into slices in T1, T2 and T3 respectively, through coupling, t32 in t22, T3 in T2 is the target slice time period, and now, target is patrolled and examined object and comprised: B3, B4, C3, C4; Situation 3, the current base section time period is 8:10 ~ 8:15, it is mated with each time period of cutting into slices in T1, T2 and T3 respectively, and through coupling, the t33 in T3 is the target slice time period, and now, target is patrolled and examined object and comprised: C5, C6.
Performance element 308 may be used for patrolling and examining object to target within the current base section time period and performs patrol task.
Such as, in aforesaid situation 1 ~ 3, be in 8:00 ~ 8:05 in the current base section time period, patrol task can be performed to A1, A2, B1, B2, C1, C2, also namely, need to A1, A2, B1, B2, C1, C2 totally 6 concurrent patrol tasks perform and patrol and examine; Be in 8:05 ~ 8:10 in the current base section time period, patrol task can be performed to B3, B4, C3, C4, also, need to B3, B4, C3, C4 totally 4 concurrent patrol tasks perform and patrol and examine; Be in 8:10 ~ 8:15 in the current base section time period, patrol task can be performed to C5, C6, also, need to C5, C6 totally 2 concurrent patrol tasks perform and patrol and examine.
But, if not in accordance with above-mentioned method for inspecting of the present invention, then need T1 at current time, object whole to be inspected corresponding to T2 and T3 performs patrol task, also be, need A1 at current time, A2, B1, B2, B3, B4, C1, C2, C3, C4, C5, C6 all performs patrol task, obviously, adopt above-mentioned method for inspecting of the present invention, can by above-mentioned A1, A2, B1, B2, B3, B4, C1, C2, C3, C4, C5, C6 be dispersed in different concurrent time engrave, thus the quantity of patrol task decreased at particular moment concurrent object to be inspected.
By the present invention, adopt and obtain the current patrol task cycle; Obtain the current base section time period; The target slice time period in the current patrol task cycle is determined according to the current base section time period; And within the current base section time period, object execution patrol task is patrolled and examined to target, owing to adopting time slice algorithm, can divide into groups to the object to be inspected corresponding to the patrol task cycle according to the section time period, and by the object slice time period sequence trigger switch patrol task to be inspected in each group after grouping, reach the concurrent quantity of the patrol task reduced in the same time period to prevent the effect of server hardware resource allocation deficiency.
It should be noted that, time slice algorithm involved in the present invention is to needing the object to be inspected of poll to divide on time dimension.Can be separate on microcosmic between each section time period, macroscopically can be integrally.In addition, the smallest particles degree of the section time period in the patrol task cycle can not be too little, the too little quantity that can increase grouped task, and too little meeting causes the operation burden of system to increase; Can not be too large, too conference causes the effect and the meaning that lose grouping, is not inconsistent with practical application.Such as, can according to user's request, the granularity of section time period is set as 5min, so all patrol task cycles are cycle of n*5min (n>=1), vehicle set to be inspected evenly can be divided into n group, the vehicle to be inspected in every group be assigned on each benchmark section time period and perform patrol task.It should be noted that, the smallest particles degree of section time period of the present invention can set according to actual needs, is not limited to 5min.
Such as, as shown in Figure 2, be respectively 5min, 15min and 30min to introduce this time slice algorithm for the patrol task cycle, wherein, suppose that the duration of section time period is 5min, and each benchmark section time period is also 5min.When patrol task cycle T=5min, it is i that every 5min patrols and examines vehicle number; When patrol task cycle T=15min, it is j/3 that every 5min patrols and examines vehicle number; When patrol task cycle T=30min, it is k/6 that every 5min patrols and examines vehicle number.Within above-mentioned 3 patrol task cycles, every 5min patrols and examines vehicle number=5min and patrols and examines vehicle number+15min and patrol and examine vehicle number/3+30min wheel and patrol and examine vehicle number/6=i+j/3+k/6, and prerequisite 15min is patrolled and examined vehicle to be divided into 3 groups, and 30min patrols and examines vehicle and is divided into 6 groups.
Particularly, as shown in Figure 2, it is n that every 5min need patrol and examine vehicle fleet size, needs to perform polling operation at each 5min.The patrol task cycle is that the vehicle to be inspected of 15min can be divided into 15/5=3 group, the vehicle number to be inspected of 3 groups is respectively j1, j2, j3, the patrol task of patrolling and examining j1 is performed at first, the 4th, the 7th 5min, perform the patrol task of patrolling and examining j2 at second, the 5th, the 8th 5min, perform the patrol task of patrolling and examining j3 at the 3rd, the 6th, the 9th 5min; The patrol task cycle is that the vehicle to be inspected of 30min can be divided into 30/5=6 group, the vehicle number to be inspected of 6 groups is respectively k1, k2, k3, k4, k5, k6, the patrol task of patrolling and examining k1 is performed at first 5min, second 5min performs the patrol task of patrolling and examining k2, by that analogy, do not repeat them here.
By the embodiment of the present invention, patrol and examine vehicle carry out dividing into groups to perform patrol task owing to treating according to above-mentioned time slice algorithm, therefore, it is possible to ensure to patrol and examine the vehicle being spaced apart 5min, every 5min performs a poll; Patrol and examine the vehicle being spaced apart 15min, every 15min performs a poll; Patrol and examine the vehicle being spaced apart 30min, every 30min performs and once patrols and examines, and then the concurrent quantity reaching the patrol task reduced in the same time period is to prevent the effect of server hardware resource allocation deficiency.
In embodiments of the present invention, the current patrol task cycle comprises the first current patrol task cycle and the second current patrol task cycle, object to be inspected comprises first and patrols and examines object and second and patrol and examine object, first acquiring unit can also be used for obtaining for the first current patrol task cycle, and obtains for the second current patrol task cycle; Determining unit can also be used for the first object section time period determined according to the current base section time period in the first current patrol task cycle, partial objects in multiple first objects to be inspected that the first object section time period is corresponding is that first object patrols and examines object, and the second target slice time period in the second current patrol task cycle is determined according to the current base section time period, the partial objects in multiple second objects to be inspected that the second target slice time period is corresponding is that the second target patrols and examines object; Performance element can also be used for patrolling and examining object and the second target to first object within the current base section time period and patrol and examine object and perform patrol task.
In embodiments of the present invention, performance element can comprise: sending module and execution module.Sending module is used for transmission and patrols and examines order.Execution module is used for patrolling and examining object execution patrol task according to patrolling and examining order to target, obtains the information of patrolling and examining.
In embodiments of the present invention, this inspection device can also comprise: detecting unit and the first judging unit.Detecting unit is used for, before the acquisition current patrol task cycle, detecting the networking state of the object to be inspected corresponding to the current patrol task cycle.First judging unit is for judging whether the networking state of the object to be inspected corresponding to current patrol task cycle of detecting is presence.Wherein, the first acquiring unit can also be used for, when the networking state of the object to be inspected corresponding to the current patrol task cycle judging to detect is presence, obtaining the current patrol task cycle.
In embodiments of the present invention, this inspection device can also comprise: the second judging unit and Alarm Unit.Second judging unit is used for after the networking state detecting the object to be inspected corresponding to the current patrol task cycle, judges that whether the networking state of the object to be inspected corresponding to the current patrol task cycle detected is off-line state or as switching to off-line state by presence.Alarm Unit be used for the networking state of the object to be inspected corresponding to the current patrol task cycle judging to detect be off-line state or for switching to off-line state by presence time, report the off-line alarm of the object to be inspected corresponding to the current patrol task cycle.
Obviously, those skilled in the art should be understood that, above-mentioned of the present invention each module or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on network that multiple calculation element forms, alternatively, they can realize with the executable program code of calculation element, thus, they can be stored and be performed by calculation element in the storage device, or they are made into each integrated circuit modules respectively, or the multiple module in them or step are made into single integrated circuit module to realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a method for inspecting, is characterized in that, comprising:
Obtain the current patrol task cycle, the described current patrol task cycle is the cycle for patrolling and examining multiple object to be inspected, the described current patrol task cycle comprises multiple section time period, the duration of described multiple section time period is identical, and the section time period of arbitrary neighborhood is end to end, each described section time period is for patrolling and examining the partial objects in described multiple object to be inspected;
Obtain the current base section time period, the duration of described current base section time period is identical with the duration of described section time;
The target slice time period in the described current patrol task cycle is determined according to the described current base section time period, the described target slice time period is the time period in described multiple section time period, and the partial objects in described multiple objects to be inspected that the described target slice time period is corresponding is that target patrols and examines object; And
Within the described current base section time period, object is patrolled and examined to described target and perform patrol task.
2. method for inspecting according to claim 1, is characterized in that, the current patrol task cycle comprises the first current patrol task cycle and the second current patrol task cycle, and described object to be inspected comprises first and patrols and examines object and second and patrol and examine object,
Obtaining the current patrol task cycle comprises: obtain the described first current patrol task cycle; Obtain the described second current patrol task cycle,
Determine that the target slice time period in the described current patrol task cycle comprises according to the described current base section time period: determine the first object section time period in the described first current patrol task cycle according to the described current base section time period, the partial objects in multiple first objects to be inspected that the described first object section time period is corresponding is that first object patrols and examines object; Determine the second target slice time period in the described second current patrol task cycle according to the described current base section time period, the partial objects in multiple second objects to be inspected that the described second target slice time period is corresponding is that the second target patrols and examines object,
Within the described current base section time period, patrol and examine object perform patrol task comprise described target: within the described current base section time period, patrol and examine object and described second target to described first object patrol and examine object and perform patrol task.
3. method for inspecting according to claim 1, is characterized in that, patrols and examines object execution patrol task comprise within the described current base section time period to described target:
Order is patrolled and examined in transmission; And
According to described patrol and examine order to described target patrol and examine object perform patrol task, obtain the information of patrolling and examining.
4. method for inspecting according to claim 1, is characterized in that, before the acquisition current patrol task cycle, described method for inspecting also comprises:
Detect the networking state of the object to be inspected corresponding to the described current patrol task cycle; And
Whether the described networking state of the object to be inspected corresponding to the described current patrol task cycle that judgement detects is presence,
Wherein, if the described networking state judging the object to be inspected corresponding to the described current patrol task cycle detected is described presence, then the described current patrol task cycle is obtained.
5. method for inspecting according to claim 4, is characterized in that, after the networking state detecting the object to be inspected corresponding to the described current patrol task cycle, described method for inspecting also comprises:
Judge that whether the described networking state of the object to be inspected corresponding to the described current patrol task cycle detected is off-line state or as switching to described off-line state by described presence; And
If judge that the described networking state of the object to be inspected corresponding to the described current patrol task cycle detected is described off-line state or for switch to described off-line state by described presence, then report the off-line alarm of the object to be inspected corresponding to the described current patrol task cycle.
6. an inspection device, is characterized in that, comprising:
First acquiring unit, for obtaining the current patrol task cycle, the described current patrol task cycle is the cycle for patrolling and examining multiple object to be inspected, the described current patrol task cycle comprises multiple section time period, the duration of described multiple section time period is identical, and the section time period of arbitrary neighborhood is end to end, each described section time period is for patrolling and examining the partial objects in described multiple object to be inspected;
Second acquisition unit, for obtaining the current base section time period, the duration of described current base section time period is identical with the duration of described section time;
Determining unit, for determining the target slice time period in the described current patrol task cycle according to the described current base section time period, the described target slice time period is the time period in described multiple section time period, and the partial objects in described multiple objects to be inspected that the described target slice time period is corresponding is that target patrols and examines object; And
Performance element, performs patrol task for patrolling and examining object to described target within the described current base section time period.
7. inspection device according to claim 6, is characterized in that, the current patrol task cycle comprises the first current patrol task cycle and the second current patrol task cycle, and described object to be inspected comprises first and patrols and examines object and second and patrol and examine object,
Described first acquiring unit also for obtaining the described first current patrol task cycle, and obtains the described second current patrol task cycle,
Described determining unit is also for determining the first object section time period in the described first current patrol task cycle according to the described current base section time period, partial objects in multiple first objects to be inspected that the described first object section time period is corresponding is that first object patrols and examines object, and the second target slice time period in the described second current patrol task cycle is determined according to the described current base section time period, partial objects in multiple second objects to be inspected that the described second target slice time period is corresponding is that the second target patrols and examines object
Described performance element is is also patrolled and examined object perform patrol task for being patrolled and examined object and described second target to described first object within the described current base section time period.
8. inspection device according to claim 6, is characterized in that, described performance element comprises:
Sending module, patrols and examines order for sending; And
Execution module, patrolling and examining object execution patrol task for patrolling and examining order described in basis to described target, obtaining the information of patrolling and examining.
9. inspection device according to claim 6, is characterized in that, described inspection device also comprises:
Detecting unit, for before the acquisition current patrol task cycle, detects the networking state of the object to be inspected corresponding to the described current patrol task cycle; And
First judging unit, for judging whether the described networking state of the object to be inspected corresponding to described current patrol task cycle of detecting is presence,
Wherein, described first acquiring unit also for when the described networking state of the object to be inspected corresponding to the described current patrol task cycle judging to detect is described presence, obtains the described current patrol task cycle.
10. inspection device according to claim 9, is characterized in that, described inspection device also comprises:
Second judging unit, for after the networking state detecting the object to be inspected corresponding to the described current patrol task cycle, judge that whether the described networking state of the object to be inspected corresponding to the described current patrol task cycle detected is off-line state or as switching to described off-line state by described presence; And
Alarm Unit, for at the described networking state of the object to be inspected corresponding to the described current patrol task cycle judging to detect be described off-line state or for switching to described off-line state by described presence time, report the off-line alarm of the object to be inspected corresponding to the described current patrol task cycle.
CN201410568976.9A 2014-10-22 2014-10-22 Routing inspection method and routing inspection device Pending CN104317659A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410568976.9A CN104317659A (en) 2014-10-22 2014-10-22 Routing inspection method and routing inspection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410568976.9A CN104317659A (en) 2014-10-22 2014-10-22 Routing inspection method and routing inspection device

Publications (1)

Publication Number Publication Date
CN104317659A true CN104317659A (en) 2015-01-28

Family

ID=52372894

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410568976.9A Pending CN104317659A (en) 2014-10-22 2014-10-22 Routing inspection method and routing inspection device

Country Status (1)

Country Link
CN (1) CN104317659A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109887119A (en) * 2019-02-28 2019-06-14 苏州真趣信息科技有限公司 A kind of method and system of the monitoring monitoring time based on iBeacon

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102158364A (en) * 2011-05-05 2011-08-17 瑞斯康达科技发展股份有限公司 Time slice scheduling-based device polling method and device
CN103077083A (en) * 2013-01-09 2013-05-01 苏州亿倍信息技术有限公司 Method and system for processing tasks
CN103077086A (en) * 2013-01-09 2013-05-01 苏州亿倍信息技术有限公司 Method and system for controlling task distribution
CN103346902A (en) * 2013-06-19 2013-10-09 北京华胜天成科技股份有限公司 Method and system for data collection and scheduling
CN103903312A (en) * 2012-12-27 2014-07-02 中国移动通信集团河南有限公司 Method and device for executing automatic inspection

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102158364A (en) * 2011-05-05 2011-08-17 瑞斯康达科技发展股份有限公司 Time slice scheduling-based device polling method and device
CN103903312A (en) * 2012-12-27 2014-07-02 中国移动通信集团河南有限公司 Method and device for executing automatic inspection
CN103077083A (en) * 2013-01-09 2013-05-01 苏州亿倍信息技术有限公司 Method and system for processing tasks
CN103077086A (en) * 2013-01-09 2013-05-01 苏州亿倍信息技术有限公司 Method and system for controlling task distribution
CN103346902A (en) * 2013-06-19 2013-10-09 北京华胜天成科技股份有限公司 Method and system for data collection and scheduling

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109887119A (en) * 2019-02-28 2019-06-14 苏州真趣信息科技有限公司 A kind of method and system of the monitoring monitoring time based on iBeacon

Similar Documents

Publication Publication Date Title
CN102739802B (en) Service application-oriented IT centralized operation and maintenance analyzing system
CN106130786B (en) A kind of detection method and device of network failure
CN102929773B (en) information collecting method and device
CN108989136B (en) Business end-to-end performance monitoring method and device
CN105677462A (en) Distributed task system based on internet of things and business processing method
US20040148138A1 (en) System, method and model for autonomic management of enterprise applications
CN111082960B9 (en) Data processing method and device
CN105471595A (en) Fault processing management device and fault processing management method
CN106776243B (en) Monitoring method and device for monitoring software
CN100461707C (en) Method and system for realizing automatic detection for simple network managing protocol agent
CN113516244B (en) Intelligent operation and maintenance method and device, electronic equipment and storage medium
CN113051019A (en) Flow task execution control method, device and equipment
CN106154992A (en) Production system and the control method of production system
CN107463476A (en) The acquisition methods and device of information
CN105516658A (en) Monitoring equipment control method and device
TWI448975B (en) Dispersing-type algorithm system applicable to image monitoring platform
CN104317659A (en) Routing inspection method and routing inspection device
CN117221089A (en) Equipment monitoring method, server and equipment monitoring system
CN105849699A (en) Method for controlling data center configuration device
CN111835583A (en) Attribute inspection method and device for products of Internet of things and computer equipment
CN104104555B (en) Monitoring method, system, control terminal and actuating station
CN103095786B (en) Online service request recognition methods, system, server and line server cluster
Li et al. Verifying stochastic behaviors of decentralized self-adaptive systems: A formal modeling and simulation based approach
CN109857533A (en) A kind of timed task dispatching method, device and intelligent terminal
CN109358983A (en) Server data processing method, device and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 100083 Zhongguancun Dongsheng Science Park, No. 66 Xiao Dong Road, Beijing, Haidian District B-6C701

Applicant after: BEIJING SINOHYTEC CO., LTD.

Address before: 100083 room 4500, LCD building, Tsinghua University, Beijing, Haidian District

Applicant before: Beijing SinoHytec Co., Ltd.

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20150128

RJ01 Rejection of invention patent application after publication