CN105337800A - Polling frequency adjustment method and polling frequency adjustment device - Google Patents

Polling frequency adjustment method and polling frequency adjustment device Download PDF

Info

Publication number
CN105337800A
CN105337800A CN201510729460.2A CN201510729460A CN105337800A CN 105337800 A CN105337800 A CN 105337800A CN 201510729460 A CN201510729460 A CN 201510729460A CN 105337800 A CN105337800 A CN 105337800A
Authority
CN
China
Prior art keywords
server
client
poll frequency
frequency
current data
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.)
Granted
Application number
CN201510729460.2A
Other languages
Chinese (zh)
Other versions
CN105337800B (en
Inventor
王元波
刘国东
侯恩星
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510729460.2A priority Critical patent/CN105337800B/en
Publication of CN105337800A publication Critical patent/CN105337800A/en
Application granted granted Critical
Publication of CN105337800B publication Critical patent/CN105337800B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • H04L43/103Active monitoring, e.g. heartbeat, ping or trace-route with adaptive polling, i.e. dynamically adapting the polling rate
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management

Abstract

The invention relates to a polling frequency adjustment method and a polling frequency adjustment device. The method comprises the steps of acquiring the current data interaction situation between a server and a client, and adjusting the polling frequency at which the client sends a data query request to the server according to the current data interaction situation. Through the technical scheme, the polling frequency is adjusted automatically to an appropriate value according to the actual interaction situation between the server and the client. Therefore, the situation in which data updating cannot be known in time when the polling frequency is too low and the situation in which the stress on the server is too heavy when the polling frequency is too high are avoided, and the user experience is improved.

Description

Poll frequency method of adjustment and device
Technical field
The disclosure relates to data interaction technology field, particularly relates to poll frequency method of adjustment and device.
Background technology
Sometimes, client is in order to some data of Real-time Obtaining or state change, and need some interface of continuous poll to obtain data, the underfrequency of poll can cause can not knowing Data Update in time, and the too high meeting of frequency of poll causes server stress excessive.
Summary of the invention
Disclosure embodiment provides a kind of poll frequency method of adjustment and device, comprises following technical scheme:
According to the first aspect of disclosure embodiment, provide a kind of poll frequency method of adjustment, described method comprises:
Obtain the current data interaction scenario between server and client;
According to described current data interaction scenario, adjust described client sends poll frequency from data inquiry request to described server.
In one embodiment, the current data interaction scenario between described acquisition server and client, comprising:
Monitor the currency of the parameter for showing described current data interaction scenario.
In one embodiment, described parameter comprises:
In preset time period before current time, the current data frequency of interaction between described server and described client or the mutual quantity of current data; Or
In preset time period before current time, the user operation frequency of described client.
In one embodiment, described according to described current data interaction scenario, adjust described client sends poll frequency from data inquiry request to described server, comprising:
From at least two the described range of parameter values preset, determine the targeted parameter value scope belonging to currency of described parameter;
According to the corresponding relation of each range of parameter values and poll frequency at least two the described range of parameter values preset, determine the target poll frequency that described targeted parameter value scope is corresponding;
The poll frequency of described client to described server transmission data inquiry request is adjusted according to described target poll frequency.
In one embodiment, when described method is used for server, described method also comprises:
Send the poll frequency after adjustment to described client, described client is used for sending described data inquiry request according to the poll frequency after described adjustment to described server.
In one embodiment, when described method is used for client, described method also comprises:
Obtain the poll frequency after adjustment;
Described data inquiry request is sent to described server according to the poll frequency after described adjustment.
According to the second aspect of disclosure embodiment, provide a kind of poll frequency adjusting device, described device comprises:
First acquisition module, for obtaining the current data interaction scenario between server and client;
Adjusting module, for according to described current data interaction scenario, adjusts described client sends poll frequency from data inquiry request to described server.
In one embodiment, described first acquisition module comprises:
Monitoring submodule, for monitoring the currency of the parameter for showing described current data interaction scenario.
In one embodiment, described parameter comprises:
In preset time period before current time, the current data frequency of interaction between described server and described client or the mutual quantity of current data; Or
In preset time period before current time, the user operation frequency of described client.
In one embodiment, described adjusting module comprises:
First determines submodule, for from least two the described range of parameter values preset, determines the targeted parameter value scope belonging to currency of described parameter;
Second determines submodule, for the corresponding relation according to each range of parameter values and poll frequency at least two the described range of parameter values preset, determines the target poll frequency that described targeted parameter value scope is corresponding;
Adjustment submodule, for adjusting the poll frequency of described client to described server transmission data inquiry request according to described target poll frequency.
In one embodiment, when described device is used for server, described device also comprises:
First sending module, for sending the poll frequency after adjustment to described client, described client is used for sending described data inquiry request according to the poll frequency after described adjustment to described server.
In one embodiment, when described device is used for client, described device also comprises:
Second acquisition module, for obtaining the poll frequency after adjustment;
Second sending module, for sending described data inquiry request according to the poll frequency after described adjustment to described server.
According to the third aspect of disclosure embodiment, a kind of poll frequency adjusting device is provided, comprises:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
Obtain the current data interaction scenario between server and client;
According to described current data interaction scenario, adjust described client sends poll frequency from data inquiry request to described server.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect:
Technique scheme, the poll frequency of data inquiry request can be sent, as adjusted poll frequency according to the user operation frequency etc. of the data interaction frequency between preset time period server and client, data interaction quantity or client according to the data interaction situation adjustment user end to server between server and client side.Like this, actual interaction scenario according to server and client side adjusts to suitable poll frequency automatically, both avoided causing because poll frequency is too low and can not knowing Data Update in time, and avoided again causing because poll frequency is too high server stress excessive, thus promoted the experience of user.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in specification and to form the part of this specification, shows and meets embodiment of the present disclosure, and is used from specification one and explains principle of the present disclosure.
Fig. 1 is the flow chart of the poll frequency method of adjustment according to an exemplary embodiment.
Fig. 2 is the flow chart of a kind of poll frequency method of adjustment according to an exemplary embodiment.
Fig. 3 is the flow chart of the another kind of poll frequency method of adjustment according to an exemplary embodiment.
Fig. 4 is the flow chart of another the poll frequency method of adjustment according to an exemplary embodiment.
Fig. 5 is the flow chart of another the poll frequency method of adjustment according to an exemplary embodiment.
Fig. 6 is the block diagram of the poll frequency adjusting device according to an exemplary embodiment.
Fig. 7 is the block diagram of the first acquisition module in the poll frequency adjusting device according to an exemplary embodiment.
Fig. 8 is the block diagram of adjusting module in the poll frequency adjusting device according to an exemplary embodiment.
Fig. 9 is the block diagram of a kind of poll frequency adjusting device according to an exemplary embodiment.
Figure 10 is the block diagram of the another kind of poll frequency adjusting device according to an exemplary embodiment.
Figure 11 is a kind of block diagram being applicable to poll frequency adjusting device according to an exemplary embodiment.
Figure 12 is the block diagram that another kind according to an exemplary embodiment is applicable to poll frequency adjusting device.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Execution mode described in following exemplary embodiment does not represent all execution modes consistent with the disclosure.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present disclosure are consistent.
Disclosure embodiment provides a kind of poll frequency method of adjustment, and the method can be used for needs and server carries out in the terminal equipment of data interaction, as shown in Figure 1, and the method comprising the steps of S101-S102:
In step S101, obtain the current data interaction scenario between server and client;
In step s 102, according to current data interaction scenario, adjustment user end to server sends the poll frequency of data inquiry request.
In this embodiment, the poll frequency of data inquiry request can be sent according to the data interaction situation adjustment user end to server between server and client side, like this, automatically suitable poll frequency is adjusted to alternately according to real data, both avoided causing because poll frequency is too low and can not knowing Data Update in time, avoid again causing server stress excessive because poll frequency is too high, thus promote the experience of user.
As shown in Figure 2, in one embodiment, above-mentioned steps S101 comprises step S201:
In step s 201, the currency of the parameter for showing current data interaction scenario is monitored.Wherein, parameter comprises: in the preset time period before current time, the current data frequency of interaction between server and client or the mutual quantity of current data; Or in the preset time period before current time, the user operation frequency of client.
In this embodiment, can according to the current data frequency of interaction between the preset time period server before current time and client, or current data mutual quantity adjustment poll frequency, such as, if the current data frequency of interaction monitored or the mutual excessive number of current data, illustrate that current poll frequency is too high, poll frequency can be reduced, if the current data frequency of interaction monitored or the mutual quantity of current data too low, illustrate that current poll frequency is too low, can poll frequency be raised.
Or, poll frequency can be adjusted according to the user operation frequency of client in the preset time period before current time.Such as, if the user operation frequency monitoring client is low, illustrate that user seldom uses this user end to server to send request of data, then poll frequency can be reduced, if the user operation frequency monitoring client is high, illustrate that user often uses this user end to server to send request of data, then can raise poll frequency.
As shown in Figure 3, in one embodiment, above-mentioned steps S102 comprises step S301-S303:
In step S301, from least two range of parameter values preset, determine the targeted parameter value scope belonging to currency of parameter; In this embodiment, according to the setting command received, the scope of at least two parameter values can be preset, and the poll frequency that each range of parameter values is corresponding.
In step s 302, according to the corresponding relation of each range of parameter values and poll frequency at least two range of parameter values preset, the target poll frequency that targeted parameter value scope is corresponding is determined;
In step S303, send the poll frequency of data inquiry request according to target poll frequency adjustment user end to server.
In this embodiment, at least two range of parameter values preset, the targeted parameter value scope belonging to currency of parameter can be determined, the poll frequency corresponding according to the currency of the scope determination parameter of this targeted parameter value.Wherein, when parameter is in the preset time period before current time, during the user operation frequency of client, range of parameter values and poll frequency can positive correlations, i.e. user operation frequency is relatively large, the poll frequency of its correspondence is also relatively large, and user operation frequency is relatively little, and the poll frequency of its correspondence is also relatively little.When parameter is in the preset time period before current time, when the current data frequency of interaction between server and client or the mutual quantity of current data, range of parameter values and poll frequency can inverse correlations, such as, when preset value higher than correspondence of current data frequency of interaction or the mutual quantity of current data, now illustrate that server stress is relatively large, poll frequency can be reduced, namely corresponding poll frequency is relatively little, when preset value lower than correspondence of current data frequency of interaction or the mutual quantity of current data, now illustrate that server stress is relatively little, poll frequency can be increased, namely corresponding poll frequency is relatively large.
Technique scheme is described in detail below with specific embodiment.Such as, preset time period is 3 minutes, three data interaction quantitative ranges are preset, be respectively 5-20 time, 20-50 time, 50-100 time, wherein the poll frequency of 5-20 correspondence is A second/time, the poll frequency of 20-50 correspondence is B second/time, the poll frequency of 50-100 correspondence is C second/time, then 3 minutes before the monitoring current time mutual quantity of current data between server and client, and the mutual quantity of such as current data is 25 times, then determine that corresponding poll frequency is B second/time, thus make client that poll frequency is adjusted to B second/time.
Wherein, said method both can be applicable to client, can be applicable to again in server.
As shown in Figure 4, when said method is used for server, method also comprises step S401:
In step S401, send the poll frequency after adjustment to client, client is used for the poll frequency after according to adjustment and sends data inquiry request to server.
In this embodiment, if said method is applied to server, then determine the poll frequency after adjusting by server, and produce feedback when running into the polling request that client is initiated, poll frequency after adjustment is fed back to client, thus makes client can send data inquiry request according to the poll frequency after this adjustment.
As shown in Figure 5, in one embodiment, when method is used for client, method also comprises step S501-S502:
In step S501, obtain the poll frequency after adjustment;
In step S502, send data inquiry request according to the poll frequency after adjustment to server.
In this embodiment, if said method is applied to client, then directly can obtain the poll frequency after adjustment by client, thus make client can send data inquiry request according to the poll frequency after this adjustment.
Following is disclosure device embodiment, may be used for performing disclosure embodiment of the method.
Fig. 6 is the block diagram of a kind of poll frequency adjusting device according to an exemplary embodiment, and this device can realize becoming the some or all of of terminal or server by software, hardware or both combinations.As shown in Figure 6, this poll frequency adjusting device comprises:
First acquisition module 61 is configured to obtain the current data interaction scenario between server and client;
Adjusting module 62 is configured to according to described current data interaction scenario, adjusts described client sends poll frequency from data inquiry request to described server.
As shown in Figure 7, in one embodiment, described first acquisition module 61 comprises:
Monitoring submodule 71 is configured to the currency of the parameter of monitoring for showing described current data interaction scenario.
In one embodiment, described parameter comprises:
In preset time period before current time, the current data frequency of interaction between described server and described client or the mutual quantity of current data; Or
In preset time period before current time, the user operation frequency of described client.
As shown in Figure 8, in one embodiment, described adjusting module 62 comprises:
First determines that submodule 81 is configured to, from least two the described range of parameter values preset, determine the targeted parameter value scope belonging to currency of described parameter;
Second determines that submodule 82 is configured to, according to the corresponding relation of each range of parameter values and poll frequency at least two the described range of parameter values preset, determine the target poll frequency that described targeted parameter value scope is corresponding;
Adjustment submodule 83 is configured to adjust the poll frequency of described client to described server transmission data inquiry request according to described target poll frequency.
As shown in Figure 9, in one embodiment, when described device is used for server, described device also comprises:
First sending module 91 is configured to the poll frequency after sending adjustment to described client, and described client is used for sending described data inquiry request according to the poll frequency after described adjustment to described server.
As shown in Figure 10, in one embodiment, when described device is used for client, described device also comprises:
Second acquisition module 1001 is configured to the poll frequency after obtaining adjustment;
Second sending module 1002 is configured to the poll frequency after according to described adjustment and sends described data inquiry request to described server.
According to the third aspect of disclosure embodiment, a kind of poll frequency adjusting device is provided, comprises:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
Obtain the current data interaction scenario between server and client;
According to described current data interaction scenario, adjust described client sends poll frequency from data inquiry request to described server.
Above-mentioned processor also can be configured to:
Current data interaction scenario between described acquisition server and client, comprising:
Monitor the currency of the parameter for showing described current data interaction scenario.
Above-mentioned processor also can be configured to:
Described parameter comprises:
In preset time period before current time, the current data frequency of interaction between described server and described client or the mutual quantity of current data; Or
In preset time period before current time, the user operation frequency of described client.
Above-mentioned processor also can be configured to:
Described according to described current data interaction scenario, adjust described client sends poll frequency from data inquiry request to described server, comprising:
From at least two the described range of parameter values preset, determine the targeted parameter value scope belonging to currency of described parameter;
According to the corresponding relation of each range of parameter values and poll frequency at least two the described range of parameter values preset, determine the target poll frequency that described targeted parameter value scope is corresponding;
The poll frequency of described client to described server transmission data inquiry request is adjusted according to described target poll frequency.
Above-mentioned processor also can be configured to:
When described method is used for server, described method also comprises:
Send the poll frequency after adjustment to described client, described client is used for sending described data inquiry request according to the poll frequency after described adjustment to described server.
Above-mentioned processor also can be configured to:
When described method is used for client, described method also comprises:
Obtain the poll frequency after adjustment;
Described data inquiry request is sent to described server according to the poll frequency after described adjustment.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations has been described in detail in about the embodiment of the method, will not elaborate explanation herein.
Figure 11 is a kind of block diagram for poll frequency adjusting device according to an exemplary embodiment, and this device is applicable to terminal equipment.Such as, device 1100 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, flat-panel devices, Medical Devices, body-building equipment, personal digital assistant etc.
Device 1100 can comprise following one or more assembly: processing components 1102, memory 1104, power supply module 1106, multimedia groupware 1108, audio-frequency assembly 1110, the interface 1112 of I/O (I/O), sensor cluster 1114, and communications component 1116.
The integrated operation of the usual control device 1100 of processing components 1102, such as with display, call, data communication, camera operation and record operate the operation be associated.Treatment element 1102 can comprise one or more processor 1120 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 1102 can comprise one or more module, and what be convenient between processing components 1102 and other assemblies is mutual.Such as, processing unit 1102 can comprise multi-media module, mutual with what facilitate between multimedia groupware 1108 and processing components 1102.
Memory 1104 is configured to store various types of data to be supported in the operation of equipment 1100.The example of these data comprises for any application program of operation on device 1100 or the instruction of method, contact data, telephone book data, message, picture, video etc.Memory 1104 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk or CD.
The various assemblies that electric power assembly 1106 is device 1100 provide electric power.Electric power assembly 1106 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for device 1100 and be associated.
Multimedia groupware 1108 is included in the screen providing an output interface between described device 1100 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Described touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant to described touch or slide and pressure.In certain embodiments, multimedia groupware 1108 comprises a front-facing camera and/or post-positioned pick-up head.When equipment 1100 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 1110 is configured to export and/or input audio signal.Such as, audio-frequency assembly 1110 comprises a microphone (MIC), and when device 1100 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The audio signal received can be stored in memory 1104 further or be sent via communications component 1116.In certain embodiments, audio-frequency assembly 1110 also comprises a loud speaker, for output audio signal.
I/O interface 1112 is for providing interface between processing components 1102 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor cluster 1114 comprises one or more transducer, for providing the state estimation of various aspects for device 1100.Such as, sensor cluster 1114 can detect the opening/closing state of equipment 1100, the relative positioning of assembly, such as described assembly is display and the keypad of device 1100, the position of all right checkout gear 1100 of sensor cluster 1114 or device 1100 assemblies changes, the presence or absence that user contacts with device 1100, the variations in temperature of device 1100 orientation or acceleration/deceleration and device 1100.Sensor cluster 1114 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor cluster 1114 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor cluster 1114 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communications component 1116 is configured to the communication being convenient to wired or wireless mode between device 1100 and other equipment.Device 1100 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communication component 1116 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communication component 1116 also comprises near-field communication (NFC) module, to promote junction service.Such as, can based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 1100 can be realized, for performing said method by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the memory 1104 of instruction, above-mentioned instruction can perform said method by the processor 1120 of device 1100.Such as, described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc.
Figure 12 is the block diagram of a kind of device for poll frequency adjustment according to an exemplary embodiment.Such as, device 1200 may be provided in a server.Device 1200 comprises processing components 1222, and it comprises one or more processor further, and the memory resource representated by memory 1232, can such as, by the instruction of the execution of processing unit 1222, application program for storing.The application program stored in memory 1232 can comprise each module corresponding to one group of instruction one or more.In addition, processing components 1222 is configured to perform instruction, to perform the above method.
Device 1200 can also comprise the power management that a power supply module 1226 is configured to final controlling element 1200, and a wired or wireless network interface 1250 is configured to device 1200 to be connected to network, and input and output (I/O) interface 1258.Device 1200 can operate the operating system based on being stored in memory 1232, such as WindowsServerTM, MacOSXTM, UnixTM, LinuxTM, FreeBSDTM or similar.
A kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is performed by the processor of device 1100 or 1200, make device 1100 or 1200 can perform above-mentioned poll frequency method of adjustment, described method comprises:
Obtain the current data interaction scenario between server and client;
According to described current data interaction scenario, adjust described client sends poll frequency from data inquiry request to described server.
In one embodiment, the current data interaction scenario between described acquisition server and client, comprising:
Monitor the currency of the parameter for showing described current data interaction scenario.
In one embodiment, described parameter comprises:
In preset time period before current time, the current data frequency of interaction between described server and described client or the mutual quantity of current data; Or
In preset time period before current time, the user operation frequency of described client.
In one embodiment, described according to described current data interaction scenario, adjust described client sends poll frequency from data inquiry request to described server, comprising:
From at least two the described range of parameter values preset, determine the targeted parameter value scope belonging to currency of described parameter;
According to the corresponding relation of each range of parameter values and poll frequency at least two the described range of parameter values preset, determine the target poll frequency that described targeted parameter value scope is corresponding;
The poll frequency of described client to described server transmission data inquiry request is adjusted according to described target poll frequency.
In one embodiment, when described method is used for server, described method also comprises:
Send the poll frequency after adjustment to described client, described client is used for sending described data inquiry request according to the poll frequency after described adjustment to described server.
In one embodiment, when described method is used for client, described method also comprises:
Obtain the poll frequency after adjustment;
Described data inquiry request is sent to described server according to the poll frequency after described adjustment.
Those skilled in the art, at consideration specification and after putting into practice disclosed herein disclosing, will easily expect other embodiment of the present disclosure.The application is intended to contain any modification of the present disclosure, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present disclosure and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Specification and embodiment are only regarded as exemplary, and true scope of the present disclosure and spirit are pointed out by claim below.
Should be understood that, the disclosure is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.The scope of the present disclosure is only limited by appended claim.

Claims (13)

1. a poll frequency method of adjustment, is characterized in that, comprising:
Obtain the current data interaction scenario between server and client;
According to described current data interaction scenario, adjust described client sends poll frequency from data inquiry request to described server.
2. method according to claim 1, is characterized in that, the current data interaction scenario between described acquisition server and client, comprising:
Monitor the currency of the parameter for showing described current data interaction scenario.
3. method according to claim 2, is characterized in that, described parameter comprises:
In preset time period before current time, the current data frequency of interaction between described server and described client or the mutual quantity of current data; Or
In preset time period before current time, the user operation frequency of described client.
4. method according to claim 3, is characterized in that, described according to described current data interaction scenario, adjusts described client sends poll frequency from data inquiry request to described server, comprising:
From at least two the described range of parameter values preset, determine the targeted parameter value scope belonging to currency of described parameter;
According to the corresponding relation of each range of parameter values and poll frequency at least two the described range of parameter values preset, determine the target poll frequency that described targeted parameter value scope is corresponding;
The poll frequency of described client to described server transmission data inquiry request is adjusted according to described target poll frequency.
5. method according to claim 1, is characterized in that, when described method is used for server, described method also comprises:
Send the poll frequency after adjustment to described client, described client is used for sending described data inquiry request according to the poll frequency after described adjustment to described server.
6. method according to claim 1, is characterized in that, when described method is used for client, described method also comprises:
Obtain the poll frequency after adjustment;
Described data inquiry request is sent to described server according to the poll frequency after described adjustment.
7. a poll frequency adjusting device, is characterized in that, comprising:
First acquisition module, for obtaining the current data interaction scenario between server and client;
Adjusting module, for according to described current data interaction scenario, adjusts described client sends poll frequency from data inquiry request to described server.
8. device according to claim 7, is characterized in that, described first acquisition module comprises:
Monitoring submodule, for monitoring the currency of the parameter for showing described current data interaction scenario.
9. device according to claim 8, is characterized in that,
Described parameter comprises:
In preset time period before current time, the current data frequency of interaction between described server and described client or the mutual quantity of current data; Or
In preset time period before current time, the user operation frequency of described client.
10. device according to claim 9, is characterized in that, described adjusting module comprises:
First determines submodule, for from least two the described range of parameter values preset, determines the targeted parameter value scope belonging to currency of described parameter;
Second determines submodule, for the corresponding relation according to each range of parameter values and poll frequency at least two the described range of parameter values preset, determines the target poll frequency that described targeted parameter value scope is corresponding;
Adjustment submodule, for adjusting the poll frequency of described client to described server transmission data inquiry request according to described target poll frequency.
11. devices according to claim 7, is characterized in that, when described device is used for server, described device also comprises:
First sending module, for sending the poll frequency after adjustment to described client, described client is used for sending described data inquiry request according to the poll frequency after described adjustment to described server.
12. devices according to claim 7, is characterized in that, when described device is used for client, described device also comprises:
Second acquisition module, for obtaining the poll frequency after adjustment;
Second sending module, for sending described data inquiry request according to the poll frequency after described adjustment to described server.
13. 1 kinds of poll frequency adjusting devices, is characterized in that, comprising:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
Obtain the current data interaction scenario between server and client;
According to described current data interaction scenario, adjust described client sends poll frequency from data inquiry request to described server.
CN201510729460.2A 2015-10-30 2015-10-30 Poll frequency method of adjustment and device Active CN105337800B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510729460.2A CN105337800B (en) 2015-10-30 2015-10-30 Poll frequency method of adjustment and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510729460.2A CN105337800B (en) 2015-10-30 2015-10-30 Poll frequency method of adjustment and device

Publications (2)

Publication Number Publication Date
CN105337800A true CN105337800A (en) 2016-02-17
CN105337800B CN105337800B (en) 2019-02-22

Family

ID=55288112

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510729460.2A Active CN105337800B (en) 2015-10-30 2015-10-30 Poll frequency method of adjustment and device

Country Status (1)

Country Link
CN (1) CN105337800B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105872853A (en) * 2016-05-27 2016-08-17 乐视控股(北京)有限公司 Polling control method, device and system
CN106445841A (en) * 2016-09-27 2017-02-22 广东欧珀移动通信有限公司 Control method and device of data transmission
CN109672545A (en) * 2017-10-16 2019-04-23 中兴通讯股份有限公司 A kind of method, apparatus, equipment and storage medium handling link detection message
CN109862540A (en) * 2017-11-30 2019-06-07 北京嘀嘀无限科技发展有限公司 Information cuing method, equipment and system
CN112040252A (en) * 2020-07-24 2020-12-04 北京达佳互联信息技术有限公司 Statistical method and device for reporting request quantity, electronic equipment and storage medium
CN112130936A (en) * 2020-09-23 2020-12-25 平安科技(深圳)有限公司 Polling-based data calling method, device, equipment and storage medium
CN113994274A (en) * 2019-04-10 2022-01-28 豪倍公司 Network pressure testing
US20220046070A1 (en) * 2018-12-07 2022-02-10 Slack Technologies, Llc Reservation management for polling requests in a communication system
CN114175748A (en) * 2019-10-24 2022-03-11 深圳市欢太科技有限公司 Communication frequency adjusting method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110016226A1 (en) * 2009-07-14 2011-01-20 Ashwin Swaminathan Methods and Apparatus for Updating Index Information While Adding and Updating Documents in a Distributed Network
CN103780692A (en) * 2014-01-13 2014-05-07 中国科学院计算技术研究所 Data access method and system for key value storage
CN104035979A (en) * 2014-05-26 2014-09-10 小米科技有限责任公司 Object recommendation method and related device
CN104168274A (en) * 2014-08-05 2014-11-26 广州华多网络科技有限公司 Data obtaining request processing method, client sides and server
CN104881104A (en) * 2015-03-11 2015-09-02 小米科技有限责任公司 Intelligent equipment, intelligent equipment performance improvement method and intelligent equipment performance improvement device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110016226A1 (en) * 2009-07-14 2011-01-20 Ashwin Swaminathan Methods and Apparatus for Updating Index Information While Adding and Updating Documents in a Distributed Network
CN103780692A (en) * 2014-01-13 2014-05-07 中国科学院计算技术研究所 Data access method and system for key value storage
CN104035979A (en) * 2014-05-26 2014-09-10 小米科技有限责任公司 Object recommendation method and related device
CN104168274A (en) * 2014-08-05 2014-11-26 广州华多网络科技有限公司 Data obtaining request processing method, client sides and server
CN104881104A (en) * 2015-03-11 2015-09-02 小米科技有限责任公司 Intelligent equipment, intelligent equipment performance improvement method and intelligent equipment performance improvement device

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105872853A (en) * 2016-05-27 2016-08-17 乐视控股(北京)有限公司 Polling control method, device and system
CN106445841A (en) * 2016-09-27 2017-02-22 广东欧珀移动通信有限公司 Control method and device of data transmission
CN106445841B (en) * 2016-09-27 2019-08-06 Oppo广东移动通信有限公司 A kind of data transfer control method and device
CN109672545B (en) * 2017-10-16 2022-04-15 中兴通讯股份有限公司 Method, device, equipment and storage medium for processing link detection message
CN109672545A (en) * 2017-10-16 2019-04-23 中兴通讯股份有限公司 A kind of method, apparatus, equipment and storage medium handling link detection message
CN109862540A (en) * 2017-11-30 2019-06-07 北京嘀嘀无限科技发展有限公司 Information cuing method, equipment and system
US11582271B2 (en) * 2018-12-07 2023-02-14 Salesforce, Inc. Reservation management for polling requests in a communication system
US20220046070A1 (en) * 2018-12-07 2022-02-10 Slack Technologies, Llc Reservation management for polling requests in a communication system
CN113994274B (en) * 2019-04-10 2024-03-29 豪倍公司 Network pressure testing
CN113994274A (en) * 2019-04-10 2022-01-28 豪倍公司 Network pressure testing
CN114175748A (en) * 2019-10-24 2022-03-11 深圳市欢太科技有限公司 Communication frequency adjusting method and device, electronic equipment and storage medium
CN114175748B (en) * 2019-10-24 2024-04-19 深圳市欢太科技有限公司 Communication frequency adjusting method, device, electronic equipment and storage medium
CN112040252A (en) * 2020-07-24 2020-12-04 北京达佳互联信息技术有限公司 Statistical method and device for reporting request quantity, electronic equipment and storage medium
CN112130936A (en) * 2020-09-23 2020-12-25 平安科技(深圳)有限公司 Polling-based data calling method, device, equipment and storage medium
CN112130936B (en) * 2020-09-23 2023-12-19 平安科技(深圳)有限公司 Data calling method, device, equipment and storage medium based on polling

Also Published As

Publication number Publication date
CN105337800B (en) 2019-02-22

Similar Documents

Publication Publication Date Title
CN105337800A (en) Polling frequency adjustment method and polling frequency adjustment device
CN104318741A (en) Bluetooth device control method and device
CN104407592A (en) Method and device for regulating running state of smart home device
CN104185304B (en) A kind of method and device accessing WI-FI network
CN105433904A (en) Sleep state detection method, device and system
CN104461510A (en) Notification message displaying method and device
CN104766005A (en) Management method and device for application software access authority
CN105159523A (en) Target function enabling method, apparatus and system
CN105553688A (en) Equipment working state setting method, device and system
CN104618511A (en) Intelligent device detection method and device
CN105516586A (en) Picture shooting method, device and system
CN104090735A (en) Picture projection method and device
CN103986821A (en) Method, equipment and system for carrying out parameter adjustment
CN105183188A (en) Screen control method and device of electronic equipment
CN105100074A (en) Data operation processing method, device and terminal equipment
CN104735670A (en) Network access method and device
CN105337839A (en) Exchange group control method and device
CN105204542A (en) Motor vibration control method and device
CN105430715A (en) Method and apparatus for controlling WIFI scanning
CN105302412A (en) Method and apparatus for displaying state of smart device
CN104112459A (en) Method and apparatus for playing audio data
CN104539662A (en) Information transmission method and device
CN105554064A (en) Method and device for setting head portrait
CN104767857A (en) Telephone calling method and device based on cloud name cards
CN104159283A (en) Method and device for controlling message transmission

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant