Summary of the invention
Based on this, it is necessary to which for choosing in traditional heartbeat detection to heart beat cycle, precision is low, and computing resource consumption is big
The problem of, a kind of heart beat cycle method of adjustment, apparatus and system are provided.
To achieve the goals above, the embodiment of the invention provides a kind of heart beat cycle methods of adjustment, comprising the following steps:
Obtain client to be adjusted under each dimension relative client group it is data cached;Data cached includes the benchmark heart
Hop cycle data and history are in bit rate data;Each dimension includes one or more groups of clients;
It is multiplied, obtains in bit rate data with history to the baseline heart cycle data of relative client group under each dimension respectively
To the corresponding product of each dimension;The corresponding each product of each dimension that adds up, obtains the initial heart cycle of client to be adjusted;
By initial heart cycle plus preset minimum heart beat cycle, best heart beat cycle is obtained, and by client to be adjusted
Current heart beat cycle is held to be updated to best heart beat cycle.
Initial heart cycle is obtained into best heartbeat plus preset minimum heart beat cycle in one of the embodiments,
In the step of period:
Based on following formula, best heart beat cycle is obtained:
T is best heart beat cycle, and N is total dimension in multidimensional groups of clients heart cycle data library, TiFor client to be adjusted
End corresponds to the baseline heart cycle data of groups of clients, K in i-th dimensioniClient is corresponded in i-th dimension for client to be adjusted
The history of group is in bit rate data;A is preset minimum heart beat cycle.
The current heart beat cycle of client to be adjusted is updated to the step of best heart beat cycle in one of the embodiments,
Suddenly include:
When variance values are greater than preset threshold amplitude value, the current heart beat cycle of client to be adjusted is updated to
Best heart beat cycle;Variance values are the value of the amplitude of variation of the relatively current heart beat cycle of best heart beat cycle.
Obtain in one of the embodiments, client to be adjusted under each dimension relative client group it is data cached
The step of before include:
It inquires multidimensional and is grouped heart cycle data library, obtain corresponding to client to be adjusted corresponding client under each dimension
End group;Multidimensional grouping heart cycle data library is used to store the data cached of each groups of clients under each dimension;
Dimension includes any of the following or any combination: device type, deployment region and monitoring rank.
It further comprises the steps of: in one of the embodiments,
The history of each client in groups of clients is obtained in bit rate data;
Average value processing is carried out in bit rate data to the history of each client, obtains the history of corresponding groups of clients in bit rate
Data.
On the other hand, the embodiment of the invention also provides a kind of heart beat cycles to adjust device, comprising:
Data capture unit, for obtain client to be adjusted under each dimension relative client group it is data cached;
Data cached includes baseline heart cycle data and history in bit rate data;Each dimension includes one or more groups of clients;
Heart beat cycle processing unit, for respectively to relative client group under each dimension baseline heart cycle data and
History is multiplied in bit rate data, obtains the corresponding product of each dimension;The corresponding each product of each dimension that adds up, obtains visitor to be adjusted
The initial heart cycle at family end;
Heart beat cycle updating unit, for initial heart cycle plus preset minimum heart beat cycle, to be obtained the best heart
Hop cycle, and the current heart beat cycle of client to be adjusted is updated to best heart beat cycle.
On the other hand, the embodiment of the invention also provides a kind of heart beat cycles to adjust system, including server and connection
Each client of server;
Server is used to execute the step of heart beat cycle method of adjustment of above-mentioned any one.
Each client is separately connected server by communication interface in one of the embodiments,;
Communication interface is SPI interface, I2C interface, UART interface, CANBUS interface or Ethernet interface.
On the other hand, the embodiment of the invention also provides a kind of computer readable storage medium, it is stored thereon with computer
Program, when computer program is executed by a controller the step of realization any of the above-described heart beat cycle method of adjustment.
A technical solution in above-mentioned technical proposal is had the following advantages and beneficial effects:
Obtain client to be adjusted under each dimension relative client group it is data cached;Data cached includes the benchmark heart
Hop cycle data and history are in bit rate data;Each dimension includes one or more groups of clients;Respectively to phase under each dimension
It answers the baseline heart cycle data of groups of clients to be multiplied with history in bit rate data, obtains the corresponding product of each dimension;It is cumulative each
The corresponding each product of a dimension, obtains the initial heart cycle of client to be adjusted;By initial heart cycle plus it is preset most
Small heart beat cycle obtains best heart beat cycle, and the current heart beat cycle of client to be adjusted is updated to best heartbeat week
Phase.And then heart beat cycle can be dynamically adjusted according to the characteristic and practical operation situation of client, enable heartbeat detection resource
It is enough to be concentrated to client most in need, improve resource utilization and choose precision with heart beat cycle, with reach resource consumption and
Optimal balance between detection effect.
Specific embodiment
The application in order to facilitate understanding is described more fully the application below with reference to relevant drawings.In attached drawing
Give the preferred embodiment of the application.But the application can realize in many different forms, however it is not limited to this paper institute
The embodiment of description.On the contrary, purpose of providing these embodiments is make it is more thorough and comprehensive to disclosure of this application.
Traditional heartbeat detection technology mainly include the following types: 1, preset fixation heart beat cycle: server and client side
The heart beat cycle of upper preset fixation, then carries out heartbeat detection with fixed heart beat cycle.Or the meeting in preset heart beat cycle
Consider the location information of client, but is still heartbeat detection to be carried out with fixed heart beat cycle, but use the first after setting
Method can only carry out heartbeat detection with fixed heart beat cycle, cannot dynamically be adjusted according to the attribute and state of client;2,
Preset multiple and different heart beat cycle is then selecting one as optimal heart beat cycle: preset on server or client
Several heart beat cycles therefrom select an optimal heart beat cycle according to operation result after attempting operation with these heart beat cycles,
Heartbeat detection is then carried out with the optimal heart beat cycle, but is supplied using second method by the way that several heart beat cycles have been provided previously
Selection, precision is inadequate, and resource consumption is big;3, heart beat cycle: this method is adjusted according to cpu load and network link congestion situation
Heart beat cycle is mainly dynamically adjusted by the judgement of cpu load and network link congestion situation, but uses the third method
In view of cpu load and network resource usage situation, detects validity and accuracy is low.
And in the heart beat cycle method of adjustment of various embodiments of the present invention, it can be according to the characteristic and actual motion feelings of client
Condition dynamically adjusts heart beat cycle, so that heartbeat detection resource is concentrated to client most in need, improves resource utilization
With heartbeat detection validity, to reach the optimal balance between resource consumption and detection effect.
Heart beat cycle method of adjustment provided by the present application, can be applied in application environment as shown in Figure 1, wherein clothes
Business device 102 is separately connected each client 104.Wherein, server 102 can be utilized for signal processing and signal transmission etc., client
End 104 can be to server transport heart beat status message.Wherein, server 102 can use independent server either multiple clothes
The server cluster of business device composition is realized.
In one embodiment, as shown in Fig. 2, providing a kind of heart beat cycle method of adjustment, it is applied to Fig. 1 in this way
In server 102 for be illustrated, comprising the following steps:
Step S210, obtain client to be adjusted under each dimension relative client group it is data cached;It is data cached
Including baseline heart cycle data and history in bit rate data;Each dimension includes one or more groups of clients.
Wherein, baseline heart cycle data refers to the benchmark of client to be adjusted affiliated groups of clients under respective dimensions
Period.Baseline heart cycle data can be preset according to historical experience.History is client to be adjusted bit rate data value
End under respective dimensions affiliated groups of clients in bit rate data.History can be 1 (i.e. in the initial value of bit rate data
100%) Dynamic Maintenance more new historical rate data in place, can be carried out according to the actual motion situation in place of client later.Client
Group refers to corresponding to grouping of the client to be adjusted under respective dimensions.The corresponding baseline heart periodicity of one groups of clients
According to a history in bit rate data.It may include one under same dimension it should be noted that may include one or more dimensions
A or multiple client group, a groups of clients can correspond to one or more clients.Client to be adjusted is under different dimensions
With corresponding groups of clients.The groups of clients of client to be adjusted can be grouped according to the characteristic of client.For example, according to
Client is grouped in the characteristic of the dimension or the similitude of classification.
Specifically, according to client to be adjusted, corresponding groups of clients, server can obtain to be adjusted under each dimension
Client the data cached of relative client group under each dimension (includes baseline heart cycle data and history in bit rate number
According to).
Step S220, respectively to the baseline heart cycle data and history of relative client group under each dimension in bit rate number
According to multiplication, the corresponding product of each dimension is obtained;The corresponding each product of each dimension that adds up, obtains the initial heart of client to be adjusted
Hop cycle.
Wherein, initial heart cycle refers to calculating the intermediate result data that best heart beat cycle process obtains.
Specifically, respectively to client to be adjusted under each dimension the baseline heart cycle data of relative client group and
History is multiplied in bit rate data, obtains the corresponding product of each dimension.Each product corresponding to each dimension adds up, Jin Erke
Obtain the initial heart cycle of client to be adjusted.
Step S230 obtains best heart beat cycle by initial heart cycle plus preset minimum heart beat cycle, and will be to
The current heart beat cycle of adjustment client is updated to best heart beat cycle.
Wherein, minimum heart beat cycle refers to preset heart beat cycle constant.Heart beat cycle refers to visitor to be adjusted
Heart beat status message is transmitted to the period of server in family end.Best heart beat cycle refers to client transmissions heart beat status to be adjusted
Optimal period of the message to server.
Specifically, intermediate heart beat cycle is added preset minimum heart beat cycle by server, and then obtains client to be adjusted
The best heart beat cycle at end.The current heart beat cycle of client to be adjusted is updated to best heart beat cycle, and then realizes and treats
The heart beat cycle of adjustment client is optimized and revised.
In a specific embodiment, initial heart cycle is obtained into the best heart plus preset minimum heart beat cycle
In the step of hop cycle:
Based on following formula, the best heart beat cycle of client to be adjusted is obtained:
T is best heart beat cycle, and N is total dimension in multidimensional groups of clients heart cycle data library, TiFor client to be adjusted
Hold the baseline heart cycle data of the corresponding groups of clients in i-th dimension, KiFor client to be adjusted in i-th dimension corresponding visitor
The history of family end group is in bit rate data;A is preset minimum heart beat cycle.
In a specific embodiment, as shown in figure 3, further comprising the steps of:
Step S310 obtains the history of each client in groups of clients in bit rate data.
Wherein, the history of client can be 1.0 (i.e. 100%) in the initial value of bit rate data.
It specifically, can be according to the reality of client by the history of each client in acquisition groups of clients in bit rate data
Situation in place is run, carrys out Dynamic Maintenance and updates the history of groups of clients in bit rate data.
Step S320 carries out average value processing in bit rate data to the history of each client, obtains corresponding groups of clients
History is in bit rate data.
Specifically, the history of each client is added in bit rate data accumulation, the history obtained under the groups of clients is in place
The summation of rate data, the summation by history in bit rate data is removed in client terminal quantity, and then obtains corresponding to going through for the groups of clients
History is in bit rate data.The history for updating groups of clients under respective dimensions by Dynamic Maintenance makes it possible to basis in bit rate data
Client practical operation situation dynamically adjusts heart beat cycle, enables heartbeat detection resource to there is a client collection most in need
In, improve resource utilization and heartbeat detection validity.
In above-described embodiment, obtain client to be adjusted under each dimension relative client group it is data cached;Caching
Data include baseline heart cycle data and history in bit rate data;Each dimension includes one or more groups of clients;Respectively
It is multiplied with history in bit rate data to the baseline heart cycle data of relative client group under each dimension, it is corresponding to obtain each dimension
Product;The corresponding each product of each dimension that adds up, obtains the initial heart cycle of client to be adjusted;By initial heart cycle
In addition preset minimum heart beat cycle, obtains best heart beat cycle, and the current heart beat cycle of client to be adjusted is updated to
Best heart beat cycle.And then heart beat cycle can be dynamically adjusted according to the characteristic and practical operation situation of client, make heartbeat
Detecting resource can concentrate to client most in need, improve resource utilization and choose precision with heart beat cycle, to reach
Optimal balance between resource consumption and detection effect.
In one embodiment, as shown in figure 4, providing a kind of heart beat cycle method of adjustment, it is applied to Fig. 1 in this way
In server 102 for be illustrated, comprising the following steps:
Step S410, obtain client to be adjusted under each dimension relative client group it is data cached;It is data cached
Including baseline heart cycle data and history in bit rate data;Each dimension includes one or more groups of clients.
Wherein, the particular content process of above-mentioned steps S410 can refer to content above, and details are not described herein again.
Step S420, respectively to the baseline heart cycle data and history of relative client group under each dimension in bit rate number
According to multiplication, the corresponding product of each dimension is obtained;The corresponding each product of each dimension that adds up, obtains the initial heart of client to be adjusted
Hop cycle.
Wherein, the particular content process of above-mentioned steps S420 can refer to content above, and details are not described herein again.
Step S430 obtains best heart beat cycle by initial heart cycle plus preset minimum heart beat cycle.
Wherein, the particular content process of above-mentioned steps S430 can refer to content above, and details are not described herein again.
Step S440, when variance values are greater than preset threshold amplitude value, by the current heartbeat of client to be adjusted
Period is updated to best heart beat cycle;Variance values are the amplitude of variation of the relatively current heart beat cycle of best heart beat cycle
Value.
Specifically, server can calculate best heart beat cycle after getting the best heart beat cycle of client to be adjusted
The amplitude of variation of relatively current heart beat cycle, and then obtain corresponding to the variance values of best heart beat cycle.Server is becoming
When changing range value greater than preset threshold amplitude value, the current heart beat cycle of client to be adjusted is updated to best heartbeat week
Phase avoids excessively frequently adjusting heart beat cycle, improves heart beat cycle and chooses efficiency, with reach resource consumption and detection effect it
Between optimal balance.
Further, a threshold amplitude value is set, when amplitude of variation of the best heart beat cycle than current heart beat cycle
When value is greater than the threshold amplitude value, the current heart beat cycle of client to be adjusted is updated to best heart beat cycle, is otherwise kept
The current heart beat cycle of client to be adjusted is constant.For example, the threshold amplitude value can be set as 20%, it is assumed that client to be adjusted
Holding current heart beat cycle is 5s (second), if being 5.5s, change of the 5.5s relative to 5s by the best heart beat cycle being calculated
Change amplitude is (5.5-5)/5=10%, is less than threshold amplitude value (20%), then the heart beat cycle of client to be adjusted remains unchanged
(it is still 5s), does not adjust.If the best heart beat cycle being calculated is 7s, 7s is (7-5)/5 relative to the amplitude of variation of 5s
=40%, it is greater than threshold amplitude value (20%), then the current heart beat cycle of client to be adjusted is updated to best heart beat cycle
(7s)。
Based on the present embodiment, according to the baseline heart cycle data of different dimensions different clients group and history in bit rate number
According to the best heart beat cycle for calculating client to be adjusted is combined, makes full use of similar client to have the characteristics that similitude, be
Client provides more accurate heart beat cycle.
In one embodiment, as shown in figure 5, providing a kind of heart beat cycle method of adjustment, it is applied to Fig. 1 in this way
In server 102 for be illustrated, comprising the following steps:
Step S510, inquiry multidimensional are grouped heart cycle data library, obtain corresponding to client to be adjusted under each dimension
Corresponding groups of clients;Multidimensional grouping heart cycle data library is used to store the data cached of each groups of clients under each dimension;Dimension
Degree includes any of the following or any combination: device type, deployment region and monitoring rank.
Wherein, multidimensional grouping groups of clients heart cycle data library refer to according to different dimensions and client features into
The heart cycle data library of row client packets.The corresponding baseline heart of groups of clients is stored in heart cycle data library respectively
Cycle data and history are in bit rate data.
Specifically, server can be grouped heart cycle data library by inquiring preset multidimensional, obtain corresponding to visitor to be adjusted
Family end corresponding groups of clients under each dimension, and then the baseline heart cycle data and history of relative client group can be obtained
In bit rate data.
Further, each dimension can establish certain amount of group.For example, device type dimension: A type client
It is one group for one group, Type B client;Deployment region dimension: groups of clients can be carried out according to geographical location, such as is placed on certain
The client in building is a groups of clients, and the client for being deployed in an other building is a groups of clients;Monitor rank dimension
Degree: high, normal, basic three monitoring rank can be divided into according to monitoring rank needs.
Step S520, obtain client to be adjusted under each dimension relative client group it is data cached;It is data cached
Including baseline heart cycle data and history in bit rate data;Each dimension includes one or more groups of clients.
Wherein, the particular content process of above-mentioned steps S520 can refer to content above, and details are not described herein again.
Step S530, respectively to the baseline heart cycle data and history of relative client group under each dimension in bit rate number
According to multiplication, the corresponding product of each dimension is obtained;The corresponding each product of each dimension that adds up, obtains the initial heart of client to be adjusted
Hop cycle.
Wherein, the particular content process of above-mentioned steps S530 can refer to content above, and details are not described herein again.
Step S540 obtains best heart beat cycle by initial heart cycle plus preset minimum heart beat cycle, and will be to
The adjustment client current phychology period is updated to best heart beat cycle
Wherein, the particular content process of above-mentioned steps S540 can refer to content above, and details are not described herein again.
Based on the present embodiment, according to the baseline heart cycle data of different dimensions different clients group and history in bit rate number
According to come combine calculate client heart beat cycle, make full use of similar client to have the characteristics that similitude, provided for client
More accurate heart beat cycle setting, and heart beat cycle can be dynamically adjusted according to client practical operation situation, make the heart
Jumping detection resource can concentrate to client most in need, improve resource utilization and heartbeat detection validity.
In one embodiment, as shown in fig. 6, being the multidimensional groups of clients schematic diagram of heart beat cycle method of adjustment.It is each
A dimension can establish certain amount of group.If dimension 1 includes 5 groups of clients (G11, G12, G13, G14 and G15);Dimension
Degree 2 includes 3 groups of clients (G31, G32 comprising 6 groups of clients (G21, G22, G23, G24, G25 and G26) and dimension 3
And G33).
Specifically, heart beat cycle base value can be established respectively from dimensions such as device type, deployment region, monitoring ranks
According to each dimension can establish certain amount of group, and the different baseline heart periods can be set in different groups.Different visitors
The history of family end group can be set to 100% in the initial value of bit rate, later according to the actual motion of client situation in place, to move
State safeguards more new historical rate data in place.
By taking device type, deployment region and monitoring three dimensions of rank as an example, as shown in fig. 7, device type is the 1st dimension,
Deployment region is the 2nd dimension, and monitoring rank is the 3rd dimension.1st dimension device type is divided into 5 groups (G11, G12, G13, G14, G15), and the 2nd
Dimension deployment region is divided into 6 groups (G21, G22, G23, G24, G25, G26), and the 3rd dimension monitoring rank is divided into 3 groups (G31, G32, G33).
Wherein, the value of reference period can be configured according to the actual situation, and history can be set to 100% in the initial value of bit rate, it
Afterwards according to the actual motion of client situation in place, carry out Dynamic Maintenance more new historical rate data in place.
According to the characteristic of client, the groups of clients to match is distributed for it in different dimensions, and store in the database.
Such as client to be adjusted, in device type dimension, it belongs to G11 groups of clients;In deployment region dimension, it belongs to G23 client
End group;Belong to G33 groups of clients in monitoring rank dimension, then its corresponding groups of clients is G11, G23 and G33 respectively, such as
Shown in Fig. 8.Reference period corresponding with relative client group and history are respectively T in bit rateG11、TG23、TG33、KG11、KG23With
KG33.That is the client T to be adjusted1=TG11, T2=TG23, T3=TG33, K1=KG11, K2=KG23And K3=KG33.It then should be wait adjust
The best heart beat cycle of whole client are as follows:
Assuming that A=0.5s, the history at certain moment is K in bit rateG11=0.55, KG23=0.95, KG33=0.9, then at this time should
The best heart beat cycle of client to be adjusted are as follows:
T=2*0.55+1.0*0.85+1.0*0.9+0.5=3.35s.
Round up after retaining decimal point 1 (i.e. the precision of 0.1s), obtains 3.4s.
Assuming that the current heart beat cycle of client to be adjusted be 3s, then best heart beat cycle 3.4s relative to variation width
Degree is (3.4-3)/3=13.3%, is less than threshold amplitude (20%), then this heart beat cycle, which remains unchanged, (is still 5s), does not have to
Adjustment.
After a period of time, the history at certain moment is K in bit rateG11=0.85, KG23=0.98, KG33=0.9, then this
When the client best heart beat cycle be
T=TG11×KG11+TG23×KG23+TG33×KG33+A
=2*0.95+1.0*0.98+1.0*0.9+0.5=4.28s.
Round up after retaining decimal point 1 (i.e. the precision of 0.1s), obtains 4.3s.Best heart beat cycle 4.3s relative to
The amplitude of variation of current heart beat cycle is (4.3-3)/3=43%, is greater than threshold amplitude (20%), then by the client to be adjusted
End heart beat cycle is adjusted to 4.3s.
Based on the present embodiment, according to the baseline heart cycle data of different dimensions different clients group and history in bit rate number
According to come combine calculate client heart beat cycle, make full use of similar client to have the characteristics that similitude, provided for client
More accurate heart beat cycle setting, and heart beat cycle can be dynamically adjusted according to client practical operation situation, make the heart
Jumping detection resource can concentrate to client most in need, improve resource utilization and heartbeat detection validity.
It should be understood that although each step in the flow chart of Fig. 2 to Fig. 5 is successively shown according to the instruction of arrow,
But these steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly state otherwise herein, these
There is no stringent sequences to limit for the execution of step, these steps can execute in other order.Moreover, Fig. 2 is into Fig. 5
At least part step may include that perhaps these sub-steps of multiple stages or stage are not necessarily same to multiple sub-steps
One moment executed completion, but can execute at different times, and the execution in these sub-steps or stage sequence is also not necessarily
Be successively carry out, but can at least part of the sub-step or stage of other steps or other steps in turn or
Alternately execute.
In one embodiment, as shown in figure 9, providing a kind of heart beat cycle adjustment device, which includes:
Data capture unit 910, for obtaining the caching number of client to be adjusted relative client group under each dimension
According to;Data cached includes baseline heart cycle data and history in bit rate data;Each dimension includes one or more clients
Group.
Heart beat cycle processing unit 920, for the baseline heart periodicity respectively to relative client group under each dimension
It is multiplied according to history in bit rate data, obtains the corresponding product of each dimension;The corresponding each product of each dimension that adds up, obtains wait adjust
The initial heart cycle of whole client.
Heart beat cycle updating unit 930, for plus preset minimum heart beat cycle, obtaining best initial heart cycle
Heart beat cycle, and the current heart beat cycle of client to be adjusted is updated to best heart beat cycle.
Specific about heart beat cycle adjustment device limits the limit that may refer to above for heart beat cycle method of adjustment
Fixed, details are not described herein.Modules in above-mentioned heart beat cycle adjustment device can fully or partially through software, hardware and its
Combination is to realize.Above-mentioned each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also be with
It is stored in the memory in computer equipment in a software form, in order to which processor calls the above modules of execution corresponding
Operation.
In one embodiment, as shown in Figure 10, a kind of heart beat cycle adjustment system, server 110 and company are provided
Each client 120 of server 110 is connect, server 110 is used to execute the step of the heart beat cycle method of adjustment of above-mentioned any one
It is rapid:
Obtain client to be adjusted under each dimension relative client group it is data cached;Data cached includes the benchmark heart
Hop cycle data and history are in bit rate data;Each dimension includes one or more groups of clients;
It is multiplied, obtains in bit rate data with history to the baseline heart cycle data of relative client group under each dimension respectively
To the corresponding product of each dimension;The corresponding each product of each dimension that adds up, obtains the initial heart cycle of client to be adjusted;
By initial heart cycle plus preset minimum heart beat cycle, best heart beat cycle is obtained, and by client to be adjusted
Current heart beat cycle is held to be updated to best heart beat cycle.
Further, server 110 is also used to perform the steps of
When variance values are greater than preset threshold amplitude value, the current heart beat cycle of client to be adjusted is updated to
Best heart beat cycle;Variance values are the value of the amplitude of variation of the relatively current heart beat cycle of best heart beat cycle.
Further, server 210 is also used to perform the steps of
It inquires multidimensional and is grouped heart cycle data library, obtain corresponding to client to be adjusted corresponding client under each dimension
End group;Multidimensional grouping heart cycle data library is used to store the data cached of each groups of clients under each dimension;
Dimension includes any of the following or any combination: device type, deployment region and monitoring rank.
Further, server 210 is also used to perform the steps of
The history of each client in groups of clients is obtained in bit rate data;
Average value processing is carried out in bit rate data to the history of each client, obtains the history of corresponding groups of clients in bit rate
Data.
In a specific embodiment, each client is separately connected server by communication interface;Communication interface is SPI
(Serial Peripheral Interface, Serial Peripheral Interface (SPI)) interface, I2C (Inter-Integrated Circuit,
A kind of serial communication bus) interface, UART (Universal Asynchronous Receiver/Transmitter, it is general different
Walk receiving-transmitting transmitter) interface, CANBUS (Controller Area Net-work Bus) interface or Ethernet interface.
Specifically, server and client side is connected by a kind of communication link, the interaction for heart beat status message.Service
Communication link between device and client can be TCP/IP network communication link, be also possible to SPI, I2C, UART, CANBUS
Etc. other communication links.Multidimensional groups of clients heart cycle data library is established according to the different characteristics of client on the server
(baseline heart cycle data and history comprising different dimensions different clients group are in bit rate data).Server is based on client
Affiliated groups of clients obtains corresponding baseline heart cycle data and is gone through from the multidimensional groups of clients heart cycle data library
History obtains best heart beat cycle in bit rate data after calculation processing, realizes that dynamic adjusts the client corresponding heartbeat week
Phase.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated
Machine program performs the steps of when being executed by processor
Obtain client to be adjusted under each dimension relative client group it is data cached;Data cached includes the benchmark heart
Hop cycle data and history are in bit rate data;Each dimension includes one or more groups of clients;
It is multiplied, obtains in bit rate data with history to the baseline heart cycle data of relative client group under each dimension respectively
To the corresponding product of each dimension;The corresponding each product of each dimension that adds up, obtains the initial heart cycle of client to be adjusted;
By initial heart cycle plus preset minimum heart beat cycle, best heart beat cycle is obtained, and by client to be adjusted
Current heart beat cycle is held to be updated to best heart beat cycle.
Further, it is performed the steps of when computer program is executed by processor
When variance values are greater than preset threshold amplitude value, the current heart beat cycle of client to be adjusted is updated to
Best heart beat cycle;Variance values are the value of the amplitude of variation of the relatively current heart beat cycle of best heart beat cycle.
Further, it is performed the steps of when computer program is executed by processor
It inquires multidimensional and is grouped heart cycle data library, obtain corresponding to client to be adjusted corresponding client under each dimension
End group;Multidimensional grouping heart cycle data library is used to store the data cached of each groups of clients under each dimension;
Dimension includes any of the following or any combination: device type, deployment region and monitoring rank.
Further, it is performed the steps of when computer program is executed by processor
The history of each client in groups of clients is obtained in bit rate data;
Average value processing is carried out in bit rate data to the history of each client, obtains the history of corresponding groups of clients in bit rate
Data.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer
In read/write memory medium, the computer program is when being executed, it may include such as the stream of the embodiment of above-mentioned each division operation method
Journey.Wherein, to any of memory, storage, database or other media used in each embodiment provided herein
Reference, may each comprise non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), can
Programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory
It may include random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is with a variety of shapes
Shi Ke get, such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram
(DDRSDRAM), enhanced SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus
(Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram
(RDRAM) etc..
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality
It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited
In contradiction, all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously
It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art
It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application
Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.