CN108093019A - The method for refreshing and terminal of a kind of information about firms - Google Patents
The method for refreshing and terminal of a kind of information about firms Download PDFInfo
- Publication number
- CN108093019A CN108093019A CN201611048968.7A CN201611048968A CN108093019A CN 108093019 A CN108093019 A CN 108093019A CN 201611048968 A CN201611048968 A CN 201611048968A CN 108093019 A CN108093019 A CN 108093019A
- Authority
- CN
- China
- Prior art keywords
- refresh interval
- network state
- information
- firms
- server
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
- H04L67/63—Routing a service request depending on the request content or context
Abstract
The method for refreshing and terminal of a kind of information about firms of the embodiment of the present invention, wherein, the described method includes:Request is initiated, the first information about firms is asked to server;Network state is detected, judges whether the network state meets preset need;When the network state meets the preset need, after the notice signaling triggering refresh operation sent by server, initiate to ask again according to fixed refresh interval, to obtain updated second information about firms;When the network state does not meet the preset need, after the notice signaling triggering refresh operation sent by server, initiate to ask again according to variable refresh interval, to obtain updated second information about firms.
Description
Technical field
The present invention relates to information refresh technique more particularly to the method for refreshing and terminal of a kind of information about firms.
Background technology
In information exchange, there are man-to-man interaction, one-to-many interaction, the interaction of multi-to-multi, these different interactions
Form may be constructed different information exchange groups.User wants application and adds in or be withdrawn into some information exchange group,
It will cause the change of information about firms in the group.Information about firms is that terminal is obtained from the server pull on backstage, different whole
End can be initiated to ask to background server, and to obtain information about firms, when room member changes, the server on backstage needs
Notice signaling is sent in real time to notify member's situation of change in all member rooms, the generation of various abnormal conditions, for example is notified
Signaling is lost, can cause it is not statistical uncertainty to the situation of change of information about firms really, so as to can not be reasonably to information exchange group
Resource is scheduled.However, in correlation technique, for the problem, effective solution there is no.
The content of the invention
In view of this, an embodiment of the present invention provides the method for refreshing and terminal of a kind of information about firms, solve at least existing
The problem of with the presence of technology.
A kind of method for refreshing of information about firms of the embodiment of the present invention, the described method includes:
Request is initiated, the first information about firms is asked to server;
Network state is detected, judges whether the network state meets preset need;
When the network state meets the preset need, refresh operation is triggered in the notice signaling sent by server
Afterwards, initiate to ask again according to fixed refresh interval, to obtain updated second information about firms;
When the network state does not meet the preset need, refresh behaviour in the notice signaling triggering sent by server
It after work, initiates to ask again according to variable refresh interval, to obtain updated second information about firms.
It is described to initiate to ask again according to fixed refresh interval in said program, to obtain updated second
Information about firms further includes:
First corrected parameter is obtained according to the network state;
Initial refresh interval T1 refresh interval T2, the T2 > to after correcting are adjusted according to the first corrected parameter
T1;
The T2 is determined as the fixed refresh interval, described in waiting time reaches and initiate again after the T2
Request.
In said program, the method further includes:It is described request is initiated according to fixed refresh interval again before,
Parsing obtains member's situation of change in the notice signaling sent by server;
The group total number of persons m obtained according to member's situation of change;
Judge the group total number of persons n stored according to the group total number of persons m that member's situation of change obtains with terminal local
With the presence or absence of difference, judging result is obtained;
If the judging result is m=n, there is no difference, triggering it is described according to fixed refresh interval again
It is secondary to initiate the request.
It is described to initiate to ask again according to variable refresh interval in said program, to obtain updated second
Information about firms further includes:
According to the network state obtain over time with relevant second corrected parameter of the network state of real time monitoring,
Second corrected parameter is variable element;
Initial refresh interval T1 refresh interval Ti to after correcting are adjusted according to second corrected parameter, it is described
Ti < T1, the Ti are the natural number more than 2;
The Ti is determined as the variable refresh interval, waiting time reach the Ti after initiate institute again
State request.
In said program, the method further includes:It is described request is initiated according to variable refresh interval again before,
Parsing obtains member's situation of change in the notice signaling sent by server;
The group total number of persons m obtained according to member's situation of change;
Judge the group total number of persons n stored according to the group total number of persons m that member's situation of change obtains with terminal local
With the presence or absence of difference, judging result is obtained;
If the judging result be m ≠ n, have differences, triggering it is described according to variable refresh interval again
Initiate the request.
In said program, the method further includes:
The frequency that the judging result is occurred by m ≠ n in preset time period is detected, obtains the abnormal frequency of members list
Rate;
The variable refresh interval is modified according to members list's abnormal frequency.
A kind of terminal of the embodiment of the present invention, the terminal include:
For initiating to ask, the first information about firms is asked to server for request unit;
Detection unit for detecting network state, judges whether the network state meets preset need;
First flashing processing units, for when the network state meets the preset need, being sent by server
Notice signaling triggering refresh operation after, initiate to ask again according to fixed refresh interval, to obtain updated the
Two information about firms;
Second flashing processing units, for when the network state does not meet the preset need, being sent out by server
After the notice signaling triggering refresh operation sent, initiate to ask again according to variable refresh interval, it is updated to obtain
Second information about firms.
In said program, first flashing processing units are further used for:
First corrected parameter is obtained according to the network state;
Initial refresh interval T1 refresh interval T2, the T2 > to after correcting are adjusted according to the first corrected parameter
T1;
The T2 is determined as the fixed refresh interval, described in waiting time reaches and initiate again after the T2
Request.
In said program, the terminal further includes:First trigger element, is used for:
Parsing obtains member's situation of change in the notice signaling sent by server;
The group total number of persons m obtained according to member's situation of change;
Judge the group total number of persons n stored according to the group total number of persons m that member's situation of change obtains with terminal local
With the presence or absence of difference, judging result is obtained;
If the judging result is m=n, there is no difference, triggering it is described according to fixed refresh interval again
It is secondary to initiate the request.
In said program, second flashing processing units are further used for:
According to the network state obtain over time with relevant second corrected parameter of the network state of real time monitoring,
Second corrected parameter is variable element;
Initial refresh interval T1 refresh interval Ti to after correcting are adjusted according to second corrected parameter, it is described
Ti < T1, the Ti are the natural number more than 2;
The Ti is determined as the variable refresh interval, waiting time reach the Ti after initiate institute again
State request.
In said program, the terminal further includes:Second trigger element, is used for:
Parsing obtains member's situation of change in the notice signaling sent by server;
The group total number of persons m obtained according to member's situation of change;
Judge the group total number of persons n stored according to the group total number of persons m that member's situation of change obtains with terminal local
With the presence or absence of difference, judging result is obtained;
If the judging result be m ≠ n, have differences, triggering it is described according to variable refresh interval again
Initiate the request.
In said program, the terminal further includes:Amending unit is used for:
The frequency that the judging result is occurred by m ≠ n in preset time period is detected, obtains the abnormal frequency of members list
Rate;
The variable refresh interval is modified according to members list's abnormal frequency.
The method for refreshing of the information about firms of the embodiment of the present invention includes:Request is initiated, the first member letter is asked to server
Breath;Network state is detected, judges whether the network state meets preset need;When the network state meets the default need
When asking, after the notice signaling triggering refresh operation sent by server, being initiated again according to fixed refresh interval please
It asks, to obtain updated second information about firms;When the network state does not meet the preset need, sent out by server
After the notice signaling triggering refresh operation sent, initiate to ask again according to variable refresh interval, it is updated to obtain
Second information about firms.
Using the embodiment of the present invention, different treatment mechanisms is selected by detecting network state, in the network state
When meeting the preset need, after the notice signaling triggering refresh operation sent by server, according between fixed refresh time
Every initiating request again, to obtain updated second information about firms;When the network state does not meet the preset need,
After the notice signaling triggering refresh operation sent by server, initiate to ask again according to variable refresh interval, with
To updated second information about firms.Different treatment mechanisms is selected by detecting network state, can guarantee whole system
Stability and avoid notice signaling cause extremely to information about firms variation mistake of statistics, so as to reasonably to information exchange
The resource of group is scheduled.
Description of the drawings
One optional hardware architecture diagram of mobile terminal of Fig. 1 each embodiments to realize the present invention;
Fig. 2 is the communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the schematic diagram for each side's hardware entities that information exchange is carried out in the embodiment of the present invention;
Fig. 4 is that a method of the embodiment of the present invention realizes flow diagram;
Fig. 5 is that the another method of the embodiment of the present invention realizes flow diagram;
Fig. 6 is the schematic diagram of a system architecture of the embodiment of the present invention;
Fig. 7-9 is to pull schematic diagram using the difference of the members list of the prior art;
Figure 10 is the realization flow chart using an application scenarios of the embodiment of the present invention.
Specific embodiment
The implementation of technical solution is described in further detail below in conjunction with the accompanying drawings.
The mobile terminal of each embodiment of the present invention is realized in description with reference to the drawings.In subsequent description, use
For representing the suffix of such as " module ", " component " or " unit " of element only for being conducive to the explanation of the embodiment of the present invention,
There is no specific meanings for itself.Therefore, " module " can be used mixedly with " component ".
In the following detailed description, numerous details is set forth, thoroughly to understand the present invention.But, for
For those of ordinary skill in the art, it is clear that the present invention can be put into practice without these specific details.In other feelings
Under condition, disclosed known method, process, component, circuit and network is not described in detail, to avoid embodiment is unnecessarily made
Various aspects are smudgy.
In addition, herein although term " first ", " second " etc. is employed many times describe various elements (or various threshold values or
Various applications or various instructions or various operations) etc., but these elements (or threshold value or application or instruction or operation) should not be by
The limitation of these terms.These terms are only intended to distinguish an element (or threshold value or application or instruction or operation) and another
Element (or threshold value or application or instruction or operation).For example, the first operation can be referred to as the second operation, the second operation can also
It is referred to as the first operation, without departing from the scope of the present invention, the first operation and the second operation are all operations, and simply the two is not
Identical operation.
Step in the embodiment of the present invention is not necessarily handled according to described sequence of steps, can be according to need
It asks selectively to upset step and resets the step either deleted in embodiment or the step increased in embodiment, the present invention
Step description in embodiment is optional sequential combination, does not represent all sequence of steps combination of the embodiment of the present invention,
Step order in embodiment is not construed as limiting the invention.
Term "and/or" in the embodiment of the present invention refers to including one or more of associated listed items
Any and whole possibility combination.It may also be noticed that:Where used in this disclosure, "comprises/comprising" specifies what is stated
Feature, integer, step, operation, the presence of element and/or component, but it is not excluded for other one or more features, integer, step
Suddenly, operation, element and/or the presence or addition of component and/or their group.
The intelligent terminal (such as mobile terminal) of the embodiment of the present invention can be implemented in a variety of manners.For example, the present invention is real
Apply mobile terminal described in example can include such as mobile phone, smart phone, laptop, digit broadcasting receiver,
Personal digital assistant (PDA, Personal Digital Assistant), tablet computer (PAD), portable media player
Mobile terminal and number TV, desktop computer of (PMP, Portable Media Player), guider etc. etc.
Deng fixed terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that except especially using
Outside the element of mobile purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
One optional hardware architecture diagram of mobile terminal of Fig. 1 each embodiments to realize the present invention.
Mobile terminal 100 can include communication unit 110, audio/video (A/V) input unit 120, user input unit
130th, request unit 140, detection unit 141, the first flashing processing units 142, the second flashing processing units 143, output unit
150th, storage unit 160, interface unit 170, processing unit 180 and power supply unit 190 etc..Fig. 1 is shown with various groups
The mobile terminal of part, it should be understood that being not required for implementing all components shown.Can alternatively it implement more or more
Few component.The element of mobile terminal will be discussed in more detail below.
Communication unit 110 generally includes one or more assemblies, allows mobile terminal 100 and wireless communication system or net
Radio communication between network (if mobile terminal replaced with fixed terminal, it is logical can also to carry out electricity by wired mode
Letter).For example, communication unit can include when being specially wireless communication unit broadcast reception unit 111, mobile comm unit 112,
At least one in wireless interconnected net unit 113, short-range communication unit 114 and location information unit 115, these units are optional
, it can be with additions and deletions according to different demands.
Broadcast reception unit 111 receives broadcast singal and/or broadcast via broadcast channel from external broadcast management server
Relevant information.Broadcast channel can include satellite channel and/or terrestrial channel.Broadcast management server can be generated and sent
The broadcast singal and/or broadcast related information that the server or reception of broadcast singal and/or broadcast related information generate before
And send it to the server of terminal.Broadcast singal can include TV broadcast singals, radio signals, data broadcasting
Signal etc..Moreover, broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast phase
Closing information can also provide via mobile communications network, and in this case, broadcast related information can be by mobile communication list
Member 112 receives.Broadcast singal can exist in a variety of manners, for example, its can with digital multimedia broadcasting (DMB,
Digital Multimedia Broadcasting) electronic program guides (EPG, Electronic Program Guide),
The electronic service guidebooks of digital video broadcast-handheld (DVB-H, Digital Video Broadcasting-Handheld)
The form of (ESG, Electronic Service Guide) etc. and exist.Broadcast reception unit 111 can be by using each
The broadcast system of type receives signal broadcast.Particularly, broadcast reception unit 111 can be by using such as multi-media broadcast
- ground (DMB-T, Digital Multimedia Broadcasting-Terrestrial), digital multimedia broadcasting-is broadcast to defend
Star (DMB-S, Digital Multimedia Broadcasting-Satellite), digital video broadcast-handheld (DVB-H),
Radio Data System, the received terrestrial digital broadcasting synthesis of forward link media (MediaFLO, Media Forward Link Only)
The number for servicing (ISDB-T, Integrated Services Digital Broadcasting-Terrestrial) etc. is wide
Broadcast system receives digital broadcasting.Broadcast reception unit 111 may be constructed such that the various broadcast systems for being adapted to provide for broadcast singal
And above-mentioned digit broadcasting system.The broadcast singal and/or broadcast related information received via broadcast reception unit 111 can be deposited
Storage is in memory 160 (or other types of storage medium).
Mobile comm unit 112 sends radio signals to base station (for example, access point, node B etc.), exterior terminal
And at least one in server and/or receive from it radio signal.Such radio signal can lead to including voice
Talk about signal, video calling signal or the various types of data for sending and/or receiving according to text and/or Multimedia Message.
Wireless interconnected net unit 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.The unit can be internally or externally
It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by the unit can include Wireless LAN (Wi-Fi, WLAN,
Wireless Local Area Networks), WiMAX (Wibro), worldwide interoperability for microwave accesses (Wimax), under high speed
Downlink packet access (HSDPA, High Speed Downlink Packet Access) etc..
Short-range communication unit 114 is for supporting the unit of short range communication.Some examples of short-range communication technology include indigo plant
Tooth, radio frequency identification (RFID, Radio Frequency Identification), Infrared Data Association (IrDA, Infrared
Data Association), ultra wide band (UWB, Ultra Wideband), purple honeybee etc..
Location information unit 115 is for checking or obtaining the unit of the location information of mobile terminal.Location information unit
Typical case be global positioning system (GPS, Global Positioning System).According to current technology, position letter
Interest statement member 115 calculates range information from three or more satellites and correct time information and should for the information of calculating
With triangulation, so as to calculate according to longitude, latitude and highly accurately three-dimensional current location information.Currently, for calculating
Position that the method for position and temporal information is calculated using three satellites and by using other satellite correction and
The error of temporal information.In addition, location information unit 115 can calculate speed by Continuous plus current location information in real time
Spend information.
A/V input units 120 are used to receive audio or video signal.A/V input units 120 can include 121 He of camera
Microphone 122, camera 121 in video acquisition mode or image capture mode by image capture apparatus obtain static images
Or the image data of video is handled.Treated, and picture frame may be displayed on display unit 151.It is handled through camera 121
Picture frame afterwards can be stored in storage unit 160 (or other storage mediums) or be sent via communication unit 110,
Two or more cameras 121 can be provided according to the construction of mobile terminal.Microphone 122 can be in telephone calling model, record
Sound (voice data) is received via microphone in pattern, speech recognition mode etc. operational mode, and can be by as
Acoustic processing is voice data.Audio that treated (voice) data can be converted in the case of telephone calling model can be through
The form that mobile communication base station is sent to by mobile comm unit 112 exports.Microphone 122 can implement various types of noises
(or inhibition) algorithm is eliminated to eliminate the noise or interference that (or inhibition) generates during audio signal is sended and received.
User input unit 130 can generate key input data to control each of mobile terminal according to order input by user
Kind operation.User input unit 130 allows user to input various types of information, and can include keyboard, mouse, touch tablet
(for example, sensitive component of detection variation of resistance, pressure, capacitance etc. caused by by contact), idler wheel, rocking bar etc.
Deng.Particularly, when touch tablet is superimposed upon in the form of layer on display unit 151, touch-screen can be formed.
For initiating to ask, the first information about firms is asked to server for request unit 140;Detection unit 141, for examining
Network state is surveyed, judges whether the network state meets preset need;First flashing processing units 142, for working as the net
When network state meets the preset need, after the notice signaling triggering refresh operation sent by server, according to fixed brush
New time interval is initiated to ask again, to obtain updated second information about firms;Second flashing processing units 143, for working as
When the network state does not meet the preset need, after the notice signaling triggering refresh operation sent by server, according to
Variable refresh interval initiates to ask again, to obtain updated second information about firms.
Interface unit 170 be used as at least one external device (ED) be connected with mobile terminal 100 can by interface.For example,
External device (ED) can include wired or wireless head-band earphone port, external power supply (or battery charger) port, wired or nothing
Line data port, memory card port, the port for device of the connection with recognition unit, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Recognition unit can store to verify that user uses each of mobile terminal 100
Kind of information and can include user identification unit (UIM, User Identify Module), client's recognition unit (SIM,
Subscriber Identity Module), Universal Subscriber recognition unit (USIM, Universal Subscriber
Identity Module) etc..In addition, the device with recognition unit (hereinafter referred to as " identification device ") can take intelligence
The form of card, therefore, identification device can be connected via port or other attachment devices with mobile terminal 100.Interface unit 170
It can be used for receiving the input (for example, data message, electric power etc.) from external device (ED) and transmit the input received
One or more elements in mobile terminal 100 can be used for transmitting data between mobile terminal and external device (ED).
In addition, when mobile terminal 100 is connected with external base, interface unit 170 may be used as allowing through it by electricity
Power provides to the path of mobile terminal 100 from pedestal or may be used as allowing to pass through it from the various command signals that pedestal inputs
It is transferred to the path of mobile terminal.The various command signals or electric power inputted from pedestal may be used as identifying that mobile terminal is
The no signal being accurately fitted on pedestal.Output unit 150 is configured to provide with vision, audio and/or tactile manner defeated
Go out signal (for example, audio signal, vision signal, vibration signal etc.).Output unit 150 can include display unit 151, sound
Frequency output unit 152 etc..
Display unit 151 may be displayed on the information handled in mobile terminal 100.For example, mobile terminal 100 can be shown
Relevant user interface (UI, User Interface) or graphic user interface (GUI, Graphical User Interface).
When mobile terminal 100 is in video calling pattern or image capture mode, display unit 151 can show the image of capture
And/or the image received, the UI or GUI that show video or image and correlation function etc..
Meanwhile when display unit 151 and touch tablet in the form of layer it is superposed on one another to form touch-screen when, display unit
151 may be used as input unit and output device.Display unit 151 can include liquid crystal display (LCD, Liquid
Crystal Display), thin film transistor (TFT) LCD (TFT-LCD, Thin Film Transistor-LCD), organic light-emitting diodes
It manages in (OLED, Organic Light-Emitting Diode) display, flexible display, three-dimensional (3D) display etc.
It is at least one.Some in these displays may be constructed such that transparence so that user to be allowed to be watched from outside, this is properly termed as
Transparent display, typical transparent display can be, for example, transparent organic light emitting diode (TOLED) display etc..According to
Specific desired embodiment, mobile terminal 100 can include two or more display units (or other display devices), example
Such as, mobile terminal can include outernal display unit (not shown) and inner display unit (not shown).Touch-screen can be used for examining
Survey touch input pressure and touch input position and touch input area.
Audio output unit 152 can mobile terminal be in call signal reception pattern, call mode, logging mode,
Speech recognition mode, broadcast reception mode are receiving or deposit in memory 160 by communication unit 110 when under isotypes
The voice data transducing audio signal of storage and output are sound.Moreover, audio output unit 152 can provide and mobile terminal
The 100 relevant audio output of specific function performed (for example, call signal receives sound, message sink sound etc.).Audio
Output unit 152 can include loud speaker, buzzer etc..
Storage unit 160 can store software program of the processing performed by processing unit 180 and control operation etc. or
Person can temporarily store the data (for example, telephone directory, message, still image, video etc.) that has exported or will export.
Moreover, storage unit 160 can store vibration and the audio letter on the various modes exported when touch is applied to touch-screen
Number data.
Storage unit 160 can include the storage medium of at least one type, the storage medium include flash memory, hard disk,
Multimedia card, card-type memory (for example, SD or DX memories etc.), random access storage device (RAM, Random Access
Memory), static random-access memory (SRAM, Static Random Access Memory), read-only memory (ROM,
Read Only Memory), electrically erasable programmable read-only memory (EEPROM, Electrically Erasable
Programmable Read Only Memory), programmable read only memory (PROM, Programmable Read Only
Memory), magnetic storage, disk, CD etc..Moreover, mobile terminal 100 can be with performing storage list by network connection
The network storage device cooperation of the store function of member 160.
The overall operation of the usually control mobile terminal of processing unit 180.For example, processing unit 180 perform with voice communication,
The relevant control of data communication, video calling etc. and processing.For another example, processing unit 180 can with execution pattern identifying processing, with
Input is drawn into the handwriting input performed on the touchscreen or picture and are identified as character or image.
Power supply unit 190 receives external power or internal power under the control of processing unit 180 and provides operation respectively
Appropriate electric power needed for element and component.
Various embodiments described herein can with use such as computer software, hardware or any combination thereof calculating
Machine readable medium is implemented.Implement for hardware, embodiment described herein can be by using application-specific IC
(ASIC, Application Specific Integrated Circuit), digital signal processor (DSP, Digital
Signal Processing), digital signal processing device (DSPD, Digital Signal Processing Device), can
Programmed logic device (PLD, Programmable Logic Device), field programmable gate array (FPGA, Field
Programmable Gate Array), processor, controller, microcontroller, microprocessor, be designed to perform it is described herein
At least one of the electronic unit of function implement, in some cases, such embodiment can be in processing unit
Implement in 180.For software implementation, the embodiment of such as process or function can be with allowing to perform at least one function or behaviour
The individual software unit made is implemented.Software code can be by the software application write with any appropriate programming language
(or program) is implemented, and software code can be stored in storage unit 160 and be performed by processing unit 180.Wherein, store
One particular hardware entity of unit 160 can be memory, and a particular hardware entity of processing unit 180 can be in order to control
Device.
So far, mobile terminal is described according to its function.In the following, for the sake of brevity, will description such as folded form,
Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc., which is used as, to be shown
Example.Therefore, the present invention can be applied to any kind of mobile terminal, and be not limited to slide type mobile terminal.
Mobile terminal 100 as shown in Figure 1 may be constructed such that using via frame or grouping send data it is all if any
Line and wireless communication system and satellite-based communication system operate.
The communication system that can be operated referring now to Fig. 2 descriptions mobile terminal wherein according to embodiments of the present invention.
Such communication system can use different air interface and/or physical layer.For example, used by communication system
Air interface includes such as frequency division multiple access (FDMA, Frequency Division Multiple Access), time division multiple acess
(TDMA, Time Division Multiple Access), CDMA (CDMA, Code Division Multiple
Access) and Universal Mobile Communication System (UMTS, Universal Mobile Telecommunications System) is (special
Not, Long Term Evolution (LTE, Long Term Evolution)), global system for mobile communications (GSM) etc..As unrestricted
Property example, following description is related to cdma communication system, but such introduction is equally applicable to other types of system.
With reference to figure 2, cdma wireless communication system can include multiple mobile terminals 100, multiple base station (BS, Base
Station) 270, base station controller (BSC, Base Station Controller) 275 and mobile switching centre (MSC,
Mobile Switching Center)280.MSC280 is configured to and Public Switched Telephony Network (PSTN, Public
Switched Telephone Network) 290 formation interfaces.MSC280 is also structured to can be coupled via back haul link
BSC275 to BS270 forms interface.Back haul link can be constructed according to any one of several known interfaces, described to connect
Mouth includes such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that it is as shown in Figure 2
System can include multiple BSC275.
Each BS 270 can service one or more subregions (or region), by multidirectional antenna or the day of direction specific direction
Each subregion of line covering is radially away from BS 270.Alternatively, each subregion can be by being used for two of diversity reception or more
Multiple antennas covers.Each BS 270, which may be constructed such that, supports multiple frequency distribution, and each frequency distribution has specific frequency
It composes (for example, 1.25MHz, 5MHz etc.).
What subregion and frequency were distributed, which intersects, can be referred to as CDMA Channel.BS 270 can also be referred to as base station transceiver
System (BTS, Base Transceiver Station) or other equivalent terms.In this case, term " base station "
It can be used for broadly representing single BSC275 and at least one BS 270.Base station can also be referred to as " cellular station ".It is alternatively, special
Multiple cellular stations can be referred to as by determining each subregion of BS 270.
As shown in Figure 2, broadcast singal is sent to by broadcsting transmitter (BT, Broadcast Transmitter) 295
The mobile terminal 100 of operation in system.Broadcast reception unit 111 as shown in Figure 1 is arranged at mobile terminal 100 to connect
Receive the broadcast singal sent by BT295.In fig. 2 it is shown that several satellites 300, such as global positioning system may be employed
(GPS) satellite 300.The help of satellite 300 positions at least one in multiple mobile terminals 100.
In fig. 2, multiple satellites 300 are depicted, it is understood that, any number of satellite can be utilized to obtain useful
Location information.Location information unit 115 as shown in Figure 1 is generally configured to coordinate to obtain what is wanted with satellite 300
Location information.It substitutes GPS tracking techniques or outside GPS tracking techniques, the position that can track mobile terminal can be used
Other technologies.In addition, at least one GPS satellite 300 can optionally or additionally handle satellite dmb transmission.
As a typical operation of wireless communication system, BS 270 receives the reverse strand from various mobile terminals 100
Road signal.Mobile terminal 100 usually participates in call, information receiving and transmitting and other types of communication.Certain base station receives each anti-
It is handled to link signal in specific BS 270.The data of acquisition are forwarded to relevant BSC275.BSC provides call
Resource allocation and the mobile management function of coordination including the soft switching process between BS 270.The number that BSC275 will also be received
According to MSC280 is routed to, provide to form the additional route service of interface with PSTN290.Similarly, PSTN290 with
MSC280 forms interface, and MSC and BSC275 form interface, and BSC275 correspondingly controls BS 270 with by forward link signals
It is sent to mobile terminal 100.
The mobile comm unit 112 of communication unit 110 is based on the access mobile communication built in mobile terminal in mobile terminal
Necessary data (including customer identification information and authentication information) the access movement of network (such as 2G/3G/4G mobile communications networks)
Communication network transmits mobile data (including upper for business such as web page browsing, the network multimedia broadcastings of mobile terminal user
Capable mobile data and the mobile data of downlink).
The wireless interconnected net unit 113 of communication unit 110 realizes nothing by running the related protocol function of hotspot
The function of line hot spot, hotspot supports multiple mobile terminal (the arbitrary mobile terminal outside mobile terminal) accesses, by multiple
Web page browsing, the net of mobile terminal user are connected as with the mobile communication between mobile comm unit 112 and mobile communications network
The business such as network multimedia transmit mobile data (the mobile communication number of mobile data and downlink including uplink
According to), since mobile terminal is substantially the mobile communication connection transmission mobile communication between multiplexing mobile terminal and communication network
Data, therefore the flow of the mobile data of mobile terminal consumption is included in mobile terminal by the charging entity of communication network side
Post and telecommunication tariff, so as to consume the data traffic for the mobile data that the post and telecommunication tariff that uses of mobile terminal signing includes.
Fig. 3 is the schematic diagram for each side's hardware entities that information exchange is carried out in the embodiment of the present invention, and Fig. 3 includes:Terminal
Equipment 1 and server 2.Wherein, terminal device 1 is made of terminal device 11-12, and terminal device passes through cable network or wireless
Network carries out information exchange with server.Terminal device includes the types such as mobile phone, desktop computer, PC machine, all-in-one machine.In information exchange
In, there is different information exchange groups, user wants application and adds in or be withdrawn into some information exchange group, can cause
The change of information about firms in the group.Information about firms is that terminal is obtained from the server pull on backstage, and different terminals can
Request is pulled to background server initiation, to obtain information about firms, when room member changes, the server on backstage needs in real time
Notice signaling is sent to notify member's situation of change in all member rooms, it is therefore an objective to be necessary to ensure that members list's number in room
It is consistent with membership, but the generation of various abnormal conditions, such as notice signaling are lost, and can cause the variation to information about firms
Situation is not statistical uncertainty really, so as to can not be reasonably scheduled to the resource of information exchange group.It is whole using the embodiment of the present invention
End can initiate pull request to server, with to server request information about firms, server is by issuing a notice signaling to lead to
Know member's situation of change in all member rooms (such as member adds in or member leaves), the purpose of notice signaling is the need to ensure that
Members list's number is consistent with membership in room, i.e. the validity in order to ensure table data, is all real in list
Data without puppet data, can really reflect that user adds in or leave member's situation of change of some information exchange group, with
Just rational management is carried out to the resource of information exchange group.The problem of may malfunctioning for notice signaling, terminal are worked as by detection
Preceding network state, if network state meets preset need, if network state is good, at this point, terminal is according to fixed refreshing
Time interval pulls request described in initiating again, to obtain updated information about firms, using fixed refresh interval, is
In order to ensure the overall stability of system;If network state does not meet preset need, as network state it is bad or very poor when, this
When communication signaling error probability it is very high, then request is pulled according to variable refresh interval is initiated again, with
Information about firms after being updated, the refresh interval can be set shorter than default time interval, can so be obtained in time
Newest notice signaling so as to avoid malfunctioning, but frequently refreshes, can influence whole system stability.By detecting net
Network state is adjusted, and can be taken into account system stability and be avoided the probability of system fault.Specifically, the processing logic of terminal
10 as shown in figure 3, including:S1, initiation pull request, and the first information about firms is asked to server;S2, detection network state, sentence
Whether the network state of breaking meets preset need, when network state meets preset need, in the notice sent by server
After signaling triggering refresh operation, initiated to pull request again according to fixed refresh interval, to obtain updated second
Information about firms;S3, detection network state, judge whether the network state meets preset need, when network state do not meet it is pre-
If it during demand, after the notice signaling triggering refresh operation sent by server, is sent out again according to variable refresh interval
Request is pulled described in rising, to obtain updated second information about firms.
The example of above-mentioned Fig. 3 is a system architecture example for realizing the embodiment of the present invention, and the embodiment of the present invention is not
It is limited to the system structure described in above-mentioned Fig. 3, based on the system architecture described in above-mentioned Fig. 3, proposes each embodiment of the method for the present invention.
The method for refreshing of the information about firms of the embodiment of the present invention, as shown in figure 4, the described method includes:Initiation pulls request,
The first information about firms (101) is asked to server.Network state is detected, judges whether the network state meets preset need
(102), by the detection to Network status, fixed or variable different flushing policies can be taken according to demand, in different brushes
It is re-initiated under the intervention of new strategy and pulls request, to be modified to the information about firms for being currently likely to occur mistake.For
For one in different flushing policies judges branch, when the network state meets the preset need, sent out by server
The notice signaling triggering refresh operation (103) sent, pulls request according to fixed refresh interval is initiated again, with
To updated second information about firms (104).It is net when network state meets the preset need in one practical application
Network is in good condition, the situation in perfect condition, and network is without fluctuation at this time, can set it is fixed refresh at intervals of T1, T1 can be with
It is to give tacit consent to, such as 5s or the stability for considering whole system, 5s is extended into 10s, 10s is also fixed brush
New time interval increases the fixed refresh interval, is to pull request in order to avoid sending too much, so as to increase network
Congestion, to multiple request interference of server etc..For another in different flushing policies judges branch, when described
When network state does not meet the preset need, the notice signaling sent by server triggers refresh operation (105), according to variable
Refresh interval initiate again it is described pull request, to obtain updated second information about firms (106).One reality should
It is that network state is not good or very poor enough when network state does not meet the preset need in, the feelings in undesirable state
Condition, at this time network there is fluctuation, variable refresh interval T2 can be set, for example, before acquiescence at intervals of T1=4s, use
T2 is adjusted, for example, turning down T2 to 3s, if still undesirable, continues to turn T2 to 2s, 1s etc. down.Using variable
Refresh interval, and variable refresh interval is less than the interval of acquiescence, and variable refresh interval can also continue to adjust, this is
The purpose of row measure be provided to ensure it is as much as possible within the as far as possible short time receive more accurate notice signaling, so as to
The situation of change of information about firms is accurately held, so as to avoid the probability of system fault, to improve to information about firms
The accuracy rate of situation of change (such as member adds in or member leaves) statistics, accuracy rate improve, and finally can ensure that room
Interior members list's number is consistent with membership, that is, ensures the validity of table data in terminal, is all real in list
Data without puppet data, can really reflect that user adds in or leave member's situation of change of some information exchange group, with
Just rational management is carried out to the resource of information exchange group.
The method for refreshing of the information about firms of the embodiment of the present invention, as shown in figure 5, the described method includes:Initiation pulls request,
The first information about firms (201) is asked to server.Network state is detected, judges whether the network state meets preset need
(202), by the detection to Network status, fixed or variable different flushing policies can be taken according to demand, in different brushes
It is re-initiated under the intervention of new strategy and pulls request, to be modified to the information about firms for being currently likely to occur mistake.For
For one in different flushing policies judges branch, when the network state meets the preset need, sent out by server
The notice signaling triggering refresh operation (203) sent, the first corrected parameter is obtained according to the network state, is corrected and is joined according to first
Number adjusts initial refresh interval T1 refresh interval T2, T2 > T1 (204) to after correcting.One practical application
In, when network state meets the preset need, be network state it is good, the situation in perfect condition, at this time network without
Fluctuation, can set it is fixed refresh at intervals of T1, T1 can be acquiescence, such as 5s or in view of whole system
5s is extended to 10s by stability, and 10s is also fixed refresh interval, increases the fixed refresh interval, be for
It avoids sending too much and pulls request, so as to increase network congestion, to multiple request interference of server etc..By the T2
Be determined as the fixed refresh interval, waiting time reach initiate again after the T2 described in pull request (205).It is right
For another in different flushing policies judges branch, when the network state does not meet the preset need, by taking
Be engaged in device send notice signaling triggering refresh operation (206), according to the network state obtain over time with real time monitoring
Relevant second corrected parameter of network state, second corrected parameter be variable element (207).It is corrected according to described second
The initial refresh interval T1 of parameter adjustment the refresh interval Ti to after correcting, the Ti < T1, the Ti are oneself more than 2
So number (208).It is that network state is not good enough or very when network state does not meet the preset need in one practical application
Difference, the situation in undesirable state, network, which exists, at this time fluctuates, and can set variable refresh interval Ti, such as silent before
Recognize at intervals of T1=4s, be adjusted using Ti, for example, turning down Ti to 3s, if still undesirable, continue to turn down Ti
To 2s, 1s etc., Ti can be a series of different parameters such as T2, T3, T4, and still, basic principle is:These parameters are all
Less than T1, in order to initiate to refresh within the shorter time, to pull information about firms again, to avoid losing due to notice signaling
The abnormal belts such as mistake carry out update failure or the mistake of information about firms.The Ti is determined as the variable refresh interval,
Waiting time reach initiate again after the Ti described in pull request (209).Using variable refresh interval, and variable refreshing
Interval can also continue to adjust less than the interval given tacit consent to, variable refresh interval, and the purpose of this series of measures is provided to really
Protect it is as much as possible within the as far as possible short time receives more accurate notice signaling, so as to the situation of change of information about firms into
Row is accurate to be held, so as to avoid the probability of system fault, with improve to the situation of change of information about firms (such as member add in or into
Member leaves) accuracy rate of statistics, accuracy rate improves, and finally can ensure that members list's number and membership in room
Unanimously, that is, ensure the validity of table data in terminal, be all real data in list, it, can be real without puppet data
Reflect that user adds in or leave member's situation of change of some information exchange group, so as to the resource of information exchange group into
Row rational management.
In the prior art, user for the first time enter room when pull all room information about firms, ought have afterwards member into
When going out room, the server on backstage can member's situation of change in all member rooms of real-time informing, it is such as all to current room into
Member issues a notice signaling to notify all into/out rooms of some member of room member, again while notice is all
Member room total number of persons in room, and the application layer of terminal is supplied to for interface display, but in the case of network jitter
When causing the notice signaling to lose, there is signaling of losing and withdraw from a room into room signaling and lose, especially in live streaming, directly
Room can frequently be passed in and out by broadcasting the member in room, due to caused by Network Abnormal notice signaling lose, spectators can be seen into
The maintenance of member's list brings larger performance issue, while also inevitably brings room membership and room member
The inconsistence problems of list.Using the embodiment of the present invention, when network has shake, i.e., network is not good enough logical in the presence of disengaging room loss
In the case of knowing signaling, variable refresh interval Ti can be set, for example, before acquiescence at intervals of T1=4s, carried out using Ti
Adjustment for example, turning down Ti to 3s, if still undesirable, continues to turn Ti to 2s, 1s etc. down, Ti can be T2, T3,
A series of different parameters such as T4, multiple dynamic refresh members list for live scene, realize dynamic refresh sound and regard
The members list in frequency room while ensureing that members list is consistent with membership, also ensures that user in the room takes
To be real user data.The notice signaling in user's disengaging room is not lost well in network condition, using solid
Interval of fixing time refresh and can keep the stabilization of system performance, do not increase additionally request between client and server/
Notice signaling expense.
The method for refreshing of the information about firms of the embodiment of the present invention, including:Initiation pulls request, to server request first into
Member's information.Network state is detected, judges whether the network state meets preset need, it, can by the detection to Network status
To take fixed or variable different flushing policies according to demand, re-initiate to pull under the intervention of different flushing policies and ask
It asks, to be modified to the information about firms for being currently likely to occur mistake.The notice signaling triggering sent by server refreshes behaviour
It is parsed after work, in the notice signaling that terminal is sent by server and obtains member's situation of change (adding in or leave group), according to institute
State the group total number of persons m that member's situation of change obtains.Judge the group total number of persons m obtained according to member's situation of change and end
The group total number of persons n being locally stored is held to obtain judging result with the presence or absence of difference.
Branch's (when network state meets the preset need) is judged for one in different flushing policies, if described
Judging result is m=n, then there is no difference, described pulled according to fixed refresh interval is initiated again of triggering please
It asks.Specifically, can set it is fixed refresh at intervals of T1, T1 can be acquiescence, such as 6s or in view of entire system
6s is extended to 8s by the stability of system, and 8s is also fixed refresh interval, increases the fixed refresh interval, is
Request is pulled in order to avoid sending too much, so as to increase network congestion, to multiple request interference of server etc..By described in
T2 is determined as the fixed refresh interval, waiting time reach initiate again after the T2 described in pull request.
Branch's (when network state does not meet the preset need) is judged for one in different flushing policies, if institute
Judging result is stated as m ≠ n, then is had differences, described pulled according to variable refresh interval is initiated again of triggering please
It asks.Specifically, variable refresh interval Ti can be set, for example, before acquiescence at intervals of T1=6s, be adjusted using Ti,
For example, turning down Ti to 5s, if still undesirable, continue to turn Ti to 4s, 3s, 2s down etc., Ti can be T2, T3, T4,
A series of different parameters such as Tn, still, basic principle is:These parameters are smaller than T1, in order in the shorter time
It is interior to initiate to refresh, to pull information about firms again, carry out information about firms more to avoid abnormal belts such as the loss due to notice signaling
New failure or mistake.The Ti is determined as the variable refresh interval, waiting time reaches after the Ti again
Request is pulled described in initiation.
Using the embodiment of the present invention, using variable refresh time interval and refresh waiting time, according to the network-like of user
Condition, user's members list's abnormal frequency carry out dynamic refresh members list.After refreshing every time, the next refresh interval of user
Refresh interval will be recalculated according to this dynamic refresh data.It is abnormal in members list according to the dynamic refresh mechanism
When refresh members list, repair that members list's number and total number of persons are inconsistent and members list holds pseudo- number of users so as to reach
According to, the problem of losing actual user data, while realize that Network status intelligently adapts to, the purpose of the high experience of high-quality network.In addition,
The present embodiment can also be used to weigh user network state quality situation, and whithin a period of time, user asks to refresh member in room
The number of list it is relatively low even without when, illustrate that its network quality is preferable;Conversely, illustrate that network state is poor, so as to feed back in
Application side does respective handling.Using from the background also can according to user ask refresh room members list frequency to user network state
It counts.
Based on above-mentioned each embodiment, the method for refreshing of the information about firms of the embodiment of the present invention further includes:Sentence described in detection
The frequency that disconnected result is occurred by m ≠ n in preset time period, obtains members list's abnormal frequency;According to the members list
Abnormal frequency is modified the variable refresh interval.In practical applications, when room member changes, backstage
Server needs to send notice signaling in real time to notify member's situation of change in all member rooms.It is carried in notice signaling
Group is interacted to member's situation of change, such as user's addition or leave message, can all bring the variation of member.Terminal receives server
After the notice signaling issued, parsing obtains member's situation of change, the group total number of persons m obtained according to member's situation of change,
When the group total number of persons m obtained according to member's situation of change and the group total number of persons n of terminal local storage have differences, say
It is bright the Loss of notice signaling occur due to the generation of various abnormal conditions, then trigger it is described according to variable refreshing when
Between be spaced again initiate described in pull request, in order to preferably be monitored, can detect the judging result be m ≠ n pre-
If the frequency that occurs in the period, obtains members list's abnormal frequency, so as to according to members list's abnormal frequency to institute
Variable refresh interval is stated to be modified.So as to count more accurate to the situation of change of information about firms, can more close
Reason is scheduled the resource of information exchange group.
The updating system of the information about firms of the embodiment of the present invention, as shown in fig. 6, including terminal 41 and server 42, terminal
41 can to server 42 initiate pull request, with to server request information about firms, server by issue a notice signaling with
Member's situation of change in all member rooms (such as member adds in or member leaves) is notified, if network state meets default need
It asks, if network state is good, at this point, terminal pulls request according to fixed refresh interval is initiated again, to obtain
Updated information about firms;If network state does not meet preset need, as network state it is bad or very poor when, at this time communication letter
The probability for making error is very high, then request is pulled according to variable refresh interval is initiated again, to be updated
Information about firms afterwards.Wherein, terminal 41 includes:For initiating to pull request, the first member is asked to server for request unit 411
Information;Detection unit 412 for detecting network state, judges whether the network state meets preset need;At first refreshing
Unit 413 is managed, for when the network state meets the preset need, brush to be triggered in the notice signaling sent by server
After new operation, request is pulled according to fixed refresh interval is initiated again, is believed with obtaining updated second member
Breath;Second flashing processing units 414, for when the network state does not meet the preset need, being sent by server
Notice signaling triggering refresh operation after, request is pulled according to variable refresh interval is initiated again, to obtain more
The second information about firms after new.
Using the embodiment of the present invention, terminal can be initiated to pull request to server, to ask information about firms to server,
Server by issuing a notice signaling with notify member's situation of change in all member rooms (such as member add in or member leave
Deng), the purpose of notice signaling is the need to ensure that in room that members list's number is consistent with membership, i.e., in order to ensure list number
According to validity, be all real data in list, without puppet data, can really reflect that user adds in or leaves some letter
Member's situation of change of breath interaction group, to carry out rational management to the resource of information exchange group.It can for notice signaling
The problem of malfunctioning, terminal is by detecting current network state, if network state meets preset need, as network state is good
It is good, at this point, terminal pulls request according to fixed refresh interval is initiated again, believed with obtaining updated member
Breath, is the overall stability in order to ensure system using fixed refresh interval;If network state does not meet default need
Ask, as network state it is bad or very poor when, at this time communication signaling error probability it is very high, then according to variable refresh time
Interval pulls request described in initiating again, and with information about firms after being updated, the ratio which can be set is given tacit consent to
Time interval is short, can so obtain newest notice signaling in time, so as to avoid malfunctioning, to improve the variation to information about firms
The accuracy rate of situation (such as member adds in or member leaves) statistics, accuracy rate improves, finally can ensure that in room into
Member's list numbers are consistent with membership, that is, ensure the validity of table data in terminal, be all real data in list,
Without puppet data, it can really reflect that user adds in or leave member's situation of change of some information exchange group, so as to right
The resource of information exchange group carries out rational management.But frequently refresh, whole system stability can be influenced.Pass through detection
Network state is adjusted, and can be taken into account system stability and be avoided the probability of system fault.
In one embodiment of the embodiment of the present invention, first flashing processing units are further used for:According to the net
Network state obtains the first corrected parameter;
Initial refresh interval T1 refresh interval T2, the T2 > to after correcting are adjusted according to the first corrected parameter
T1;The T2 is determined as the fixed refresh interval, waiting time reach initiate again after the T2 described in pull
Request.
In one embodiment of the embodiment of the present invention, the terminal further includes:First trigger element, is used for:By server
Parsing obtains member's situation of change in the notice signaling of transmission;The group total number of persons m obtained according to member's situation of change;Sentence
Being completely cured, it is poor to whether there is according to the group total number of persons n of the group total number of persons m that member's situation of change obtains and terminal local storage
It is different, obtain judging result;If the judging result is m=n, there is no difference, triggering it is described according to fixed refreshing when
Between be spaced again initiate described in pull request.
In one embodiment of the embodiment of the present invention, second flashing processing units are further used for:According to the net
Network state is obtained over time with relevant second corrected parameter of the network state of real time monitoring, and second corrected parameter is
Variable element;Initial refresh interval T1 refresh interval Ti, institute to after correcting are adjusted according to second corrected parameter
Ti < T1 are stated, the Ti is the natural number more than 2;The Ti is determined as the variable refresh interval, during wait
It is long reach initiate again after the Ti described in pull request.
In one embodiment of the embodiment of the present invention, the terminal further includes:Second trigger element, is used for:By server
Parsing obtains member's situation of change in the notice signaling of transmission;The group total number of persons m obtained according to member's situation of change;Sentence
Being completely cured, it is poor to whether there is according to the group total number of persons n of the group total number of persons m that member's situation of change obtains and terminal local storage
It is different, obtain judging result;It if the judging result is m ≠ n, has differences, triggering is described according to variable refresh time
Interval pulls request described in initiating again.
In one embodiment of the embodiment of the present invention, the terminal further includes:Amending unit is used for:Detect the judgement
As a result the frequency occurred by m ≠ n in preset time period obtains members list's abnormal frequency;It is different according to the members list
Normal frequency is modified the variable refresh interval.
Wherein, for the processor for being used for data processing, when performing processing, microprocessor, center may be employed
Processor (CPU, Central Processing Unit), digital signal processor (DSP, Digital Singnal
Processor) or programmable logic array (FPGA, Field-Programmable Gate Array) is realized;For storage
For medium, comprising operational order, which can be computer-executable code, be realized by the operational order
Each step in embodiments of the present invention information processing method flow.
It need to be noted that be:Above is referred to the description of terminal and server item, be with above method description it is similar,
Advantageous effect with method describes, and does not repeat.For the technical detail not disclosed in terminal and server embodiment of the present invention,
It refer to content described by the embodiment of the method for the present invention flow description.
The embodiment of the present invention is described below by taking a practical application scene as an example:
When room member changes, member's situation of change in all member rooms of background server real-time informing.Fig. 7 is existing
Technical solution member passes in and out a schematic diagram of room variation.It can be seen that under no network jitter, prior art processing room is used
The flow of family variation includes herein below:
One, all information about firms in room are pulled into room, as the left frame in Fig. 7 there are 6 members in the room;
Two, be connected to backstage notice signaling " Jim withdraws from a room, total number of persons 5 ", as Fig. 7 middle boxes processing after Jim
Not in members list, members list's number becomes 5;
Three are connected to backstage notice signaling, and " Bob enters room, and total number of persons 6 ", Bob is added in after being handled such as the left frame of Fig. 7
To under members list, members list's number becomes 6.
In whole process, room members list's number is consistent with total number of persons, and member is real number of users in room
According to.
However, flow shown in Fig. 7 is the situation of ideal situation, i.e. network non-jitter, in practical application, work as network jitter
When, the frequent disengaging notice signaling of member there may be loss situation, may cause at this time in room members list's number with into
Member's sum is inconsistent.Member after simultaneously, which changes, to cause the distortion of user data.Network jitter situation causes notice signaling
During loss, there is signaling of losing and withdraw from a room into room signaling and lose.Fig. 8 passes in and out room for prior art member and becomes
The another schematic diagram changed.It can be seen that under network jitter, new user enters room and the member of notice signaling loss changes feelings
Under condition, the flow of prior art processing room user variation includes herein below:
One, all information about firms in room are pulled into room, as the left frame of Fig. 8 there are 6 members in the room;
Two, backstage sends notice signaling, and " Bob enters room, and total number of persons 7 ", because network jitter causes this, signaling is lost
It loses, application layer does not do any response then, and if the middle boxes Bob of Fig. 8 is not added in members list, members list's number is still
6;
Three, be connected to backstage notice signaling " Jim withdraws from a room, total number of persons 6 ", as Fig. 8 left frame processing after Jim not
In members list, members list's number becomes 5, inconsistent with the total number of persons 6 that issues, while ought to be in members list
User Bob is not added, and is lost the data of real user in room.
Fig. 9 is another schematic diagram that prior art member passes in and out room variation.It can be seen that under network jitter, use
Family withdraw from a room and notice signaling lose member's situation of change under, the prior art processing room user variation flow include with
Lower content:
One, all information about firms in room are pulled into room, as the left frame of Fig. 9 there are 6 members in the room;
Two, backstage sends notice signaling, and " Jim withdraws from a room, total number of persons 5 ", because network jitter causes this, signaling is lost
It loses, application layer is not done any response then, if the middle boxes Jim of Fig. 9 is in members list, do not deleted, members list's number is still
It is 6;
Three, being connected to backstage notice signaling, " Bob enters room, total number of persons 6 ", new user after being handled such as the left frame of Fig. 9
Bob is had been added in members list, and members list's number becomes 7, inconsistent with the total number of persons 6 that issues, is withdrawn from a room simultaneously
Jim still in members list, save pseudo- user data (original user Jim), it is (all to the personal operation of pseudo- user at this time
As classroom is called the roll) will all it fail, personal data (pet name, signature, dynamic) change of pseudo- user in addition is not also re-synchronised to member
Under list.
For the above-mentioned exception occurred using the prior art, using the embodiment of the present invention, can with dynamic refresh members list,
Go dynamic refresh room members list's data according to current personal network's jitter conditions, network condition do not lose well user into
Go out in the case of the notice signaling in room, energy retention property is stablized, and does not increase request/notice between client and server additionally
Signaling consumption.In the case of the not good enough loss notice signaling in the presence of disengaging room of network, dynamic is gone according to current user data
Refresh members list to ensure the authenticity of member data.A dynamic refresh time interval and brush are maintained when into room
New waiting time, with according to user network situation, members list's abnormal frequency refreshes waiting time and carrys out dynamic refresh members list
Data.The program can be applied to arbitrary use room management member's mode, more demanding to system real time, and according to user network
Network state dynamic refresh is shown in the system of members list.
One specific implementation flow is as shown in Figure 10, including:
Step 401, into room, dynamic refresh time interval T=0 is set.
Step 402 pulls all information about firms in all room rooms, while pulls dynamic refresh time interval T conducts
Dynamic refresh time interval during members list's exception is found afterwards, and T can modify according to demand.
Step 403 judges whether user withdraws from a room, if left, terminates whole flow process, otherwise, continues to execute step
Rapid 404.
Step 404, the room member's change notification for being connected to background service.
Step 405 detects whether to enter room notice for new user, i.e., detection be newly into member or room member from
It opens.If new user enters, then step 406 is performed;Otherwise, step 407 is performed.
Step 406, new user enter, then add new user to members list, be transferred to and perform step 408.
Step 407, user withdraw from a room, then delete user from members list.
Step 408 refreshes members list.
Whether step 409, detection room members list abnormal, that is, detect members list's number and issue total number of persons whether
Match somebody with somebody, if without exception, that is, illustrate the two matching, at this point, members list's number, which is equal to, issues total number of persons, then return to execution step
403, without refresh list, continue next round user's change process;Otherwise, step 410 is performed.
Whether step 410, detection refresh interval meet, i.e. whether detecting distance last time refresh interval meets,
If conditions are not met, then perform step 411;Otherwise, execution step 402, active refresh list, while according between last time refresh time
This refresh interval T is used as every T and this refreshing waiting time weighted calculation time interval T '.
Step 411, update refresh waiting time, and refresh interval satisfaction is waited to re-initiate again and pulls request.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it
Its mode is realized.Apparatus embodiments described above are only schematical, for example, the division of the unit, is only
A kind of division of logic function can have other dividing mode, such as in actual implementation:Multiple units or component can combine or
It is desirably integrated into another system or some features can be ignored or does not perform.In addition, shown or discussed each composition portion
Point mutual coupling or direct-coupling or communication connection can be the INDIRECT COUPLINGs by some interfaces, equipment or unit
Or communication connection, can be electrical, mechanical or other forms.
The above-mentioned unit illustrated as separating component can be or may not be physically separate, be shown as unit
The component shown can be or may not be physical location, you can be located at a place, can also be distributed to multiple network lists
In member;Part or all of unit therein can be selected to realize the purpose of this embodiment scheme according to the actual needs.
In addition, each functional unit in various embodiments of the present invention can be fully integrated into a processing unit, also may be used
To be each unit individually as a unit, can also two or more units integrate in a unit;It is above-mentioned
The form that hardware had both may be employed in integrated unit is realized, can also be realized in the form of hardware adds SFU software functional unit.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can pass through
The relevant hardware of program instruction is completed, and foregoing program can be stored in a computer read/write memory medium, the program
Upon execution, the step of execution includes above method embodiment;And foregoing storage medium includes:It is movable storage device, read-only
Memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or
The various media that can store program code such as person's CD.
If alternatively, the above-mentioned integrated unit of the present invention is realized in the form of SFU software functional unit and is independent product
Sale in use, can also be stored in a computer read/write memory medium.Based on such understanding, the present invention is implemented
The technical solution of example substantially in other words can be embodied the part that the prior art contributes in the form of software product,
The computer software product is stored in a storage medium, and being used including some instructions (can be with so that computer equipment
It is personal computer, server or network equipment etc.) perform all or part of each embodiment the method for the present invention.
And foregoing storage medium includes:Movable storage device, ROM, RAM, magnetic disc or CD etc. are various can to store program code
Medium.
The above description is merely a specific embodiment, but protection scope of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in change or replacement, should all contain
Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.
Claims (12)
1. a kind of method for refreshing of information about firms, which is characterized in that the described method includes:
Request is initiated, the first information about firms is asked to server;
Network state is detected, judges whether the network state meets preset need;
When the network state meets the preset need, after the notice signaling triggering refresh operation sent by server,
It initiates to ask again according to fixed refresh interval, to obtain updated second information about firms;
When the network state does not meet the preset need, refresh operation is triggered in the notice signaling sent by server
Afterwards, initiate to ask again according to variable refresh interval, to obtain updated second information about firms.
2. according to the method described in claim 1, it is characterized in that, described initiate to ask again according to fixed refresh interval
It asks, to obtain updated second information about firms, further includes:
First corrected parameter is obtained according to the network state;
Initial refresh interval T1 refresh interval T2, the T2 > T1 to after correcting are adjusted according to the first corrected parameter;
The T2 is determined as the fixed refresh interval, waiting time reach initiate again after the T2 it is described please
It asks.
3. according to the method described in claim 2, it is characterized in that, the method further includes:It is described according to fixed refreshing when
Between be spaced again initiate request before,
Parsing obtains member's situation of change in the notice signaling sent by server;
The group total number of persons m obtained according to member's situation of change;
Judge whether is group total number of persons n that the group total number of persons m obtained according to member's situation of change stores with terminal local
It has differences, obtains judging result;
If the judging result is m=n, there is no differences, and triggering is described to be sent out again according to fixed refresh interval
Play the request.
4. according to the method described in claim 1, it is characterized in that, described initiate to ask again according to variable refresh interval
It asks, to obtain updated second information about firms, further includes:
It is obtained according to the network state over time with relevant second corrected parameter of the network state of real time monitoring, it is described
Second corrected parameter is variable element;
Initial refresh interval T1 refresh interval Ti, the Ti < to after correcting are adjusted according to second corrected parameter
T1, the Ti are the natural number more than 2;
The Ti is determined as the variable refresh interval, waiting time reach initiate again after the Ti it is described please
It asks.
5. according to the method described in claim 4, it is characterized in that, the method further includes:It is described according to variable refreshing when
Between be spaced again initiate request before,
Parsing obtains member's situation of change in the notice signaling sent by server;
The group total number of persons m obtained according to member's situation of change;
Judge whether is group total number of persons n that the group total number of persons m obtained according to member's situation of change stores with terminal local
It has differences, obtains judging result;
It if the judging result is m ≠ n, has differences, triggering is described to be initiated again according to variable refresh interval
The request.
6. according to the method described in claim 5, it is characterized in that, the method further includes:
The frequency that the judging result is occurred by m ≠ n in preset time period is detected, obtains members list's abnormal frequency;
The variable refresh interval is modified according to members list's abnormal frequency.
7. a kind of terminal, which is characterized in that the terminal includes:
For initiating to ask, the first information about firms is asked to server for request unit;
Detection unit for detecting network state, judges whether the network state meets preset need;
First flashing processing units, for when the network state meets the preset need, leading to what is sent by server
After knowing signaling triggering refresh operation, initiate to ask again according to fixed refresh interval, it is the second one-tenth updated to obtain
Member's information;
Second flashing processing units, for when the network state does not meet the preset need, what is sent by server
After notice signaling triggering refresh operation, initiate to ask again according to variable refresh interval, to obtain updated second
Information about firms.
8. terminal according to claim 7, which is characterized in that first flashing processing units are further used for:
First corrected parameter is obtained according to the network state;
Initial refresh interval T1 refresh interval T2, the T2 > T1 to after correcting are adjusted according to the first corrected parameter;
The T2 is determined as the fixed refresh interval, waiting time reach initiate again after the T2 it is described please
It asks.
9. terminal according to claim 8, which is characterized in that the terminal further includes:First trigger element, is used for:
Parsing obtains member's situation of change in the notice signaling sent by server;
The group total number of persons m obtained according to member's situation of change;
Judge whether is group total number of persons n that the group total number of persons m obtained according to member's situation of change stores with terminal local
It has differences, obtains judging result;
If the judging result is m=n, there is no differences, and triggering is described to be sent out again according to fixed refresh interval
Play the request.
10. terminal according to claim 7, which is characterized in that second flashing processing units are further used for:
It is obtained according to the network state over time with relevant second corrected parameter of the network state of real time monitoring, it is described
Second corrected parameter is variable element;
Initial refresh interval T1 refresh interval Ti, the Ti < to after correcting are adjusted according to second corrected parameter
T1, the Ti are the natural number more than 2;
The Ti is determined as the variable refresh interval, waiting time reach initiate again after the Ti it is described please
It asks.
11. terminal according to claim 10, which is characterized in that the terminal further includes:Second trigger element, is used for:
Parsing obtains member's situation of change in the notice signaling sent by server;
The group total number of persons m obtained according to member's situation of change;
Judge whether is group total number of persons n that the group total number of persons m obtained according to member's situation of change stores with terminal local
It has differences, obtains judging result;
It if the judging result is m ≠ n, has differences, triggering is described to be initiated again according to variable refresh interval
The request.
12. terminal according to claim 11, which is characterized in that the terminal further includes:Amending unit is used for:
The frequency that the judging result is occurred by m ≠ n in preset time period is detected, obtains members list's abnormal frequency;
The variable refresh interval is modified according to members list's abnormal frequency.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611048968.7A CN108093019B (en) | 2016-11-23 | 2016-11-23 | Member information refreshing method and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611048968.7A CN108093019B (en) | 2016-11-23 | 2016-11-23 | Member information refreshing method and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108093019A true CN108093019A (en) | 2018-05-29 |
CN108093019B CN108093019B (en) | 2020-12-04 |
Family
ID=62171764
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611048968.7A Active CN108093019B (en) | 2016-11-23 | 2016-11-23 | Member information refreshing method and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108093019B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110443674A (en) * | 2019-06-27 | 2019-11-12 | 口碑(上海)信息技术有限公司 | Order data pulls method and device, storage medium, computer equipment |
CN110704771A (en) * | 2018-06-22 | 2020-01-17 | 北京京东尚科信息技术有限公司 | Page abnormity monitoring method, system, device, electronic equipment and readable medium |
CN111177714A (en) * | 2019-12-19 | 2020-05-19 | 未鲲(上海)科技服务有限公司 | Abnormal behavior detection method and device, computer equipment and storage medium |
CN113271282A (en) * | 2020-02-14 | 2021-08-17 | 西安诺瓦星云科技股份有限公司 | Program updating method, device and system |
CN113411806A (en) * | 2021-06-21 | 2021-09-17 | 上海闻泰信息技术有限公司 | Mobile hotspot authorization checking method and device, storage medium and electronic equipment |
CN113688146A (en) * | 2021-08-23 | 2021-11-23 | 猪八戒股份有限公司 | Distributed architecture high-concurrency order search engine data refreshing method and system |
CN115525667A (en) * | 2022-10-12 | 2022-12-27 | 赫中企云(北京)信息服务有限公司 | Rule hot updating method during program operation |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1867108A (en) * | 2005-09-08 | 2006-11-22 | 华为技术有限公司 | POC service group member state informing process and apparatus |
CN101488887A (en) * | 2008-01-17 | 2009-07-22 | 日本电气株式会社 | Supervisory control method and supervisory control device |
CN101729571A (en) * | 2009-12-28 | 2010-06-09 | 广州游家信息技术有限公司 | Method, server and system for counting network on-line user number |
CN102202047A (en) * | 2010-03-24 | 2011-09-28 | 通用汽车环球科技运作有限责任公司 | Adaptive certificate distribution mechanism in vehicular networks using variable inter-certificate refresh period |
US20130268848A1 (en) * | 2012-04-05 | 2013-10-10 | Nokia Corporation | User event content, associated apparatus and methods |
CN103491513A (en) * | 2013-09-18 | 2014-01-01 | 深圳市金立通信设备有限公司 | Method for monitoring communication state and terminal |
CN103986792A (en) * | 2014-06-11 | 2014-08-13 | 腾讯科技(深圳)有限公司 | Group membership information synchronizing method, server and group membership information synchronizing system |
-
2016
- 2016-11-23 CN CN201611048968.7A patent/CN108093019B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1867108A (en) * | 2005-09-08 | 2006-11-22 | 华为技术有限公司 | POC service group member state informing process and apparatus |
CN101488887A (en) * | 2008-01-17 | 2009-07-22 | 日本电气株式会社 | Supervisory control method and supervisory control device |
CN101729571A (en) * | 2009-12-28 | 2010-06-09 | 广州游家信息技术有限公司 | Method, server and system for counting network on-line user number |
CN102202047A (en) * | 2010-03-24 | 2011-09-28 | 通用汽车环球科技运作有限责任公司 | Adaptive certificate distribution mechanism in vehicular networks using variable inter-certificate refresh period |
US20130268848A1 (en) * | 2012-04-05 | 2013-10-10 | Nokia Corporation | User event content, associated apparatus and methods |
CN103491513A (en) * | 2013-09-18 | 2014-01-01 | 深圳市金立通信设备有限公司 | Method for monitoring communication state and terminal |
CN103986792A (en) * | 2014-06-11 | 2014-08-13 | 腾讯科技(深圳)有限公司 | Group membership information synchronizing method, server and group membership information synchronizing system |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110704771A (en) * | 2018-06-22 | 2020-01-17 | 北京京东尚科信息技术有限公司 | Page abnormity monitoring method, system, device, electronic equipment and readable medium |
CN110704771B (en) * | 2018-06-22 | 2024-03-01 | 北京京东尚科信息技术有限公司 | Page abnormality monitoring method, system, device, electronic equipment and readable medium |
CN110443674A (en) * | 2019-06-27 | 2019-11-12 | 口碑(上海)信息技术有限公司 | Order data pulls method and device, storage medium, computer equipment |
CN110443674B (en) * | 2019-06-27 | 2021-09-07 | 口碑(上海)信息技术有限公司 | Order data pulling method and device, storage medium and computer equipment |
CN111177714A (en) * | 2019-12-19 | 2020-05-19 | 未鲲(上海)科技服务有限公司 | Abnormal behavior detection method and device, computer equipment and storage medium |
CN111177714B (en) * | 2019-12-19 | 2022-07-08 | 未鲲(上海)科技服务有限公司 | Abnormal behavior detection method and device, computer equipment and storage medium |
CN113271282A (en) * | 2020-02-14 | 2021-08-17 | 西安诺瓦星云科技股份有限公司 | Program updating method, device and system |
CN113411806A (en) * | 2021-06-21 | 2021-09-17 | 上海闻泰信息技术有限公司 | Mobile hotspot authorization checking method and device, storage medium and electronic equipment |
CN113411806B (en) * | 2021-06-21 | 2022-12-30 | 上海闻泰信息技术有限公司 | Mobile hotspot authorization checking method and device, storage medium and electronic equipment |
CN113688146A (en) * | 2021-08-23 | 2021-11-23 | 猪八戒股份有限公司 | Distributed architecture high-concurrency order search engine data refreshing method and system |
CN115525667A (en) * | 2022-10-12 | 2022-12-27 | 赫中企云(北京)信息服务有限公司 | Rule hot updating method during program operation |
Also Published As
Publication number | Publication date |
---|---|
CN108093019B (en) | 2020-12-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108093019A (en) | The method for refreshing and terminal of a kind of information about firms | |
CN105848268B (en) | A kind of method and terminal reducing power consumption | |
CN105827775B (en) | A kind of test method and system reducing MIPI interference | |
CN104714895B (en) | A kind of mobile terminal and its method and apparatus for improving the speed of service | |
CN106027795B (en) | A kind of switching method and terminal of double-sided screen | |
CN106299608B (en) | A kind of band spreading structure of terminal antenna | |
CN107659841A (en) | A kind of information processing method and terminal | |
CN106453382A (en) | Message pushing method and device | |
CN104917233B (en) | Charging control method, device and system | |
CN105611631A (en) | Method and device for distributing radio-frequency resources of mobile phone | |
CN108234556A (en) | A kind of backlog information based reminding method, terminal and server | |
CN106873936A (en) | Electronic equipment and information processing method | |
CN105682150A (en) | Multilink intelligent shunting method and mobile terminal | |
CN106095464B (en) | A kind of method and device of the seamless operation of application program | |
CN106375840A (en) | Screen projection device, mobile terminal and screen projection connection method | |
CN107038076A (en) | Component system and component interaction method | |
US11641311B2 (en) | Backhaul bandwidth adjusting method and apparatus | |
CN106507185A (en) | A kind of information processing method and projection terminal | |
CN106686236A (en) | Application-icon displaying device and method based on application states | |
CN106131305A (en) | A kind of control method and electronic equipment | |
CN107135298A (en) | Call blocking method and apparatus | |
CN106303059A (en) | Electronic equipment and information processing method | |
CN106785419A (en) | A kind of band spreading structure of terminal antenna | |
CN106199441B (en) | A kind of information about power display methods and terminal | |
CN105898158A (en) | Data processing method and electronic device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |