CN103795554A - Terminal state managing method, device and system - Google Patents

Terminal state managing method, device and system Download PDF

Info

Publication number
CN103795554A
CN103795554A CN201210420837.2A CN201210420837A CN103795554A CN 103795554 A CN103795554 A CN 103795554A CN 201210420837 A CN201210420837 A CN 201210420837A CN 103795554 A CN103795554 A CN 103795554A
Authority
CN
China
Prior art keywords
terminal
server
applies
terminal applies
described terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201210420837.2A
Other languages
Chinese (zh)
Inventor
田鹏斌
冯柯
同磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201210420837.2A priority Critical patent/CN103795554A/en
Publication of CN103795554A publication Critical patent/CN103795554A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a terminal state managing method, a terminal and a server, and belongs to the communication technical field. The method comprises the following steps that: when being stared, a terminal application establishes a connection with a server in a family network through a remote management mode; and when being switched to background from foreground, the terminal application transmits background state switching information to the server such that the server can stop transmitting remote user interface data to a terminal corresponding to the terminal application according to the background state switching information. According to the terminal state managing method, device and system of the invention, when being switched to the background from the foreground, the terminal application transmits state changing information to the server, such that server can know the current state of the terminal application and judges whether to transmit the remote user interface data to the terminal corresponding to the terminal application according to the state of the terminal application, and therefore, network flows can be saved.

Description

A method for office terminal state, device and system
Technical field
The present invention relates to communication technical field, the particularly method of a kind of office terminal state, device and system.
Background technology
Along with the development of the communication technology, domestic network system is universal gradually in people's life.This system is that user uses the home network terminal application in the intelligent terminal such as panel computer or mobile phone to carry out the mutual of remote subscriber interface data with home network server, controls and uses with the resource in home network and equipment.
In prior art, user operates one or more intelligent terminals and is connected to the one family webserver and it is controlled and use, and for example user controls the operation of a Set Top Box of one or more panel computer controls.
Realizing in process of the present invention, inventor finds that prior art at least exists following problem:
When the terminal applies of the terminal processes user interface data using as user is switched to background state or is minimized by foreground state, server still can send remote subscriber interface data to this terminal, cause the waste of Internet resources.
Summary of the invention
The problem that cannot determine the current state of terminal applies in order to solve server in prior art, the embodiment of the present invention provides the method for a kind of office terminal state, device and system.Described technical scheme is as follows:
On the one hand, provide the method for a kind of office terminal state, described method comprises:
Terminal applies connects by the server in mode and the home network of telemanagement while startup;
In the time that described terminal applies is switched to backstage by foreground, send and switch background state information to described server, make described server suspend to terminal corresponding to described terminal applies and send remote subscriber interface data according to described switching background state information.
On the other hand, provide the method for a kind of office terminal state, described method comprises:
The terminal corresponding with terminal applies connects;
Be while switching background state information when receiving the state information of described terminal transmission, suspend to terminal corresponding to described terminal applies and send remote subscriber interface data.
On the one hand, provide the terminal of a kind of office terminal state, described terminal comprises:
Module is set up in the first connection, while startup, connects by the mode of telemanagement and the server of home network for terminal applies;
Switch background state module, for in the time that described terminal applies is switched to backstage by foreground, send and switch background state information to described server, make described server suspend to terminal corresponding to described terminal applies and send remote subscriber interface data according to described switching background state information.
On the other hand, provide the server of a kind of office terminal state, described server comprises:
Module is set up in the second connection, connects for the terminal corresponding with terminal applies;
Background state arranges module, for being while switching background state information when receiving the state information of described terminal transmission, suspends to terminal corresponding to described terminal applies and sends remote subscriber interface data.
On the one hand, provide the system of a kind of office terminal state, described system comprises: terminal and server; It is characterized in that,
Described terminal comprises:
Module is set up in the first connection, while startup, connects by the mode of telemanagement and the server of home network for terminal applies;
Switch background state module, for in the time that described terminal applies is switched to backstage by foreground, send and switch background state information to described server, make described server suspend to terminal corresponding to described terminal applies and send remote subscriber interface data according to described switching background state information;
Described server comprises:
Module is set up in the second connection, connects for the terminal corresponding with terminal applies;
Background state arranges module, for being while switching background state information when receiving the state information of described terminal transmission, suspends to terminal corresponding to described terminal applies and sends remote subscriber interface data.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
By in the time that terminal applies switches to background state by foreground state, send the information of change state to server, make server can know the current residing state of terminal applies, and judge whether to send remote subscriber interface data to terminal corresponding to terminal applies according to the state of terminal applies, save network traffics.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing of required use during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the method flow diagram of the office terminal state that provides of the embodiment of the present invention one;
Fig. 2 is the method flow diagram of the office terminal state that provides of the embodiment of the present invention two;
Fig. 3 is the method flow diagram of the office terminal state that provides of the embodiment of the present invention three;
Fig. 4 is the Signalling exchange figure of the method for the office terminal state that provides of the embodiment of the present invention three;
Fig. 5 is the terminal structure schematic diagram of the office terminal state that provides of the embodiment of the present invention four;
Fig. 6 is the server architecture schematic diagram of the office terminal state that provides of the embodiment of the present invention five;
Fig. 7 is the system configuration schematic diagram of the office terminal state that provides of the embodiment of the present invention six.
embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Embodiment mono-
The embodiment of the present invention provides the method for a kind of office terminal state, referring to Fig. 1.
It should be noted that, the embodiment of the present invention is take end side as executive agent, sends corresponding information according to the state of current terminal applies to server.
Method flow comprises:
101: terminal applies connects by the server in mode and the home network of telemanagement while startup;
102: in the time that described terminal applies is switched to backstage by foreground, sends and switch background state information to described server, make described server suspend to terminal corresponding to described terminal applies and send remote subscriber interface data according to described switching background state information.
The embodiment of the present invention is by the time that terminal applies switches to background state by foreground state, send the information of change state to server, make server can know the current residing state of terminal applies, and judge whether to send remote subscriber interface data to terminal corresponding to terminal applies according to the state of terminal applies, save network traffics.
Embodiment bis-
The embodiment of the present invention provides the method for a kind of office terminal state, referring to Fig. 2.
It should be noted that, the embodiment of the present invention is take server side as executive agent, manages the state of connected terminal.
Method flow comprises:
201: the terminal corresponding with terminal applies connects;
202: be while switching background state information when receiving the state information of described terminal transmission, suspend to terminal corresponding to described terminal applies and send remote subscriber interface data.
The embodiment of the present invention is by the time that terminal applies switches to background state by foreground state, send the information of change state to server, make server can know the current residing state of terminal applies, and judge whether to send remote subscriber interface data to terminal corresponding to terminal applies according to the state of terminal applies, save network traffics.
Embodiment tri-
The embodiment of the present invention provides the method for a kind of office terminal state, referring to Fig. 3.
It should be noted that, the present invention is to the illustrating of embodiment mono-and embodiment bis-, and by the interaction flow between end side and server side, the mode of the office terminal state in the embodiment of the present invention is described in detail.
Method flow comprises:
301: terminal applies connects by the server in mode and the home network of telemanagement while startup.
After terminal applies starts, after terminal connects by data network and server, server can send remote subscriber interface data to terminal applies by data network.
In the time that terminal and first server connect, terminal is set up a heartbeat object listing, for storing and the mark of the server of its maintenance connection status, by this heartbeat object listing, terminal can be safeguarded the connection status of connected one or more servers.In the time that server and first terminal connect, server is set up a terminal list, for storing and the mark of the terminal of its maintenance connection status, wherein in terminal list, also preserve the state information of the mark correspondence of each terminal, so that server judges whether to send remote subscriber interface data to terminal according to the state information of each terminal.In server, be provided with timer, can send heartbeat message to each connected terminal respectively and carry out timing, do not receive the heartbeat message of terminal transmission when exceeding the preassigned time, to these terminal cumulative record expired times.
In the time that terminal connects other servers, need this server identification add heartbeat object listing so that terminal according to heart beat cycle to the Servers-all transmission heartbeat message being connected with its maintenance in heartbeat object listing; In the time that terminal disconnects with the server being connected, need server identification corresponding in heartbeat object listing to delete, after this no longer send heartbeat message to this server.
Further, terminal creates heartbeat send-thread, for according to the preassigned time, sends heartbeat message to connected server.Server end starts heartbeat watcher thread, the heartbeat message sending for receiving connected terminal to server.
302: the terminal that server is corresponding with terminal applies connects.
303: terminal sends heartbeat message every Preset Time to described server, for maintaining the presence of terminal corresponding to described terminal applies at described server, at least there is a station server in described heartbeat message in wherein said home network.
Terminal is carried out timing according to preassigned heart beat cycle, in the time that heart beat cycle corresponding to timer arrives, the all servers that connect to terminal send respectively heartbeat message, wherein heartbeat message is for maintaining the presence of terminal at each server, the terminal that sends this heartbeat message with notification server is in normal operating conditions, in server, continue to keep the normal presence connecting, need server to send remote subscriber interface data to it.In embodiments of the present invention, heartbeat message is by UDP(User Datagram Protocol, User Datagram Protocol) agreement sends to server.
Further, at least comprise the mark of the terminal that sends heartbeat message in heartbeat message, the heartbeat message that server is sent different terminals is distinguished, to upgrade terminal that each heartbeat message the is corresponding state in server.
Therefore step 303 can be specially:
3031: carry out timing according to preassigned heart beat cycle.
3032: the mark of obtaining described server.
Wherein, in embodiments of the present invention, obtaining the step that keeps the mark of the server being connected with terminal, is the mark of obtaining each server in the heartbeat object listing by setting up in terminal.
3033: whenever heart beat cycle arrives, terminal sends described heartbeat message according to the mark of described server to described server.
304: server receives the heartbeat message that terminal corresponding to described terminal applies sends.
305: server, according to the heartbeat message of terminal transmission corresponding to described terminal applies, arranges the state of terminal corresponding to described terminal applies.
Concrete, the heartbeat message sending by resolving terminal, obtain the terminal iidentification that sends this heartbeat message in heartbeat message, the heartbeat message that definite terminal that is which is connected with server sends, maintains the presence of this terminal in server by this heartbeat message.
Determine the state of terminal in server according to heartbeat message, so that server judges whether to send remote subscriber interface data to terminal according to this state.Because terminal is to send heartbeat message according to the preassigned time to server under normal circumstances, therefore when server is received after the heartbeat message of a certain connected terminal transmission, obtain by resolving heartbeat message the terminal iidentification comprising in this heartbeat message, to maintain the presence of the terminal that in the terminal list creating in server, this terminal iidentification is corresponding.If due to the problem of the factors such as network, make the heartbeat message that this terminal sends within the preassigned time, normally not be sent to server, in server, can record so this terminal once overtime.
After this, if server is not received the heartbeat message that this terminal sends again within the preassigned time, the overtime number of times of cumulative record, in the time that overtime number of times reaches preassigned threshold value continuously, judge that this terminal and server disconnect, the state that this terminal terminal list in server is set is off-line state.
If server has been received the heartbeat message that terminal is sent when timer corresponding to certain terminal is not overtime, or server record terminal expired times for once or continuous several times do not receive heartbeat message, but while not exceeding preassigned threshold number, receive again heartbeat message, so now server confirms that under both of these case, terminal is presence, and this terminal is reset at timer corresponding to server and expired times.
Determining that after the state of terminal in server, the state by terminal corresponding terminal iidentification in the terminal list of server upgrades.
Therefore, step 305 can be specially:
3051: if receive the heartbeat message that terminal corresponding to described terminal applies sends within the preassigned time, server determines that terminal corresponding to described terminal applies is presence, continues normally to send remote subscriber interface data to terminal corresponding to described terminal applies;
3052: if do not receive within the preassigned time when number of times of heartbeat message does not exceed preassigned threshold number, receive the heartbeat message that terminal corresponding to described terminal applies sends, described in Servers installed, terminal corresponding to terminal applies is presence, continues normally to send remote subscriber interface data to terminal corresponding to described terminal applies;
3053: if server is not received when the number of times of heartbeat message exceedes preassigned threshold number within the preassigned time, do not receive the heartbeat message that terminal corresponding to described terminal applies sends, described in Servers installed, the state of terminal corresponding to terminal applies is off-line state, no longer sends remote subscriber interface data to terminal corresponding to described terminal applies.
Further, if after terminal all disconnects connected Servers-all, now the heartbeat object listing in terminal is empty, now heartbeat object listing is deleted, and is destroyed heartbeat send-thread.If after all terminals and server disconnect, now the terminal list in server is empty, now terminal list is deleted, and is destroyed heartbeat watcher thread.
306: the time-out count of resetting terminal corresponding to described terminal applies.
After server in step 3052 has been received the heartbeat message that terminal sends, although now timer has carried out overtime immediately to this terminal, now recover again transmission heartbeat message, the timer of this terminal of therefore resetting.
307: in the time that described terminal applies is switched to backstage by foreground, sends and switch background state information to described server, make described server suspend to terminal corresponding to described terminal applies and send remote subscriber interface data according to described switching background state information.
When terminal applies is in backstage or minimized state, now user cannot operate and without the program of the upper remote subscriber interface of operating terminal application, therefore now this terminal applies is not need to accept remote subscriber interface data.Therefore after terminal applies is placed in backstage or minimizes now in non-normal use state, send to server the information that switches to non-normal use state, wherein this switches to the terminal iidentification that carries this terminal in the information of non-normal use state, and notification server is now without sending remote subscriber interface data to terminal corresponding to this terminal iidentification.
308: be while switching background state information when receiving the state information of described terminal transmission, server time-out sends remote subscriber interface data to terminal corresponding to described terminal applies.
In the time that server receives the message of switching state of terminal transmission, according to the particular content of the status message switching, correspondence arranges this terminal state parameter in terminal list in server, make in the time of server issuing message, according to the state of each terminal in terminal list, only send message to the terminal of presence.Wherein, the signaling process figure that SOT state of termination is set as shown in Figure 4.
Concrete execution mode is: in the time receiving the message that switches to background state that terminal sends, in the terminal list of server, state corresponding this terminal iidentification is changed to background state from presence, now server, in sending remote subscriber interface data according to terminal list, does not send remote subscriber interface data to the terminal in background state.
309: in the time that described terminal applies is switched to foreground by backstage, sends and switch foreground state information to described server, make described server recover to send remote subscriber interface data to terminal corresponding to described terminal applies according to described switching foreground state information.
When terminal applies is from backstage or minimize while changing normal operating condition into, send to server the information that switches to normal operating condition, wherein this switches to the terminal iidentification that carries this terminal in the information of normal operating condition, and notification server now sends remote subscriber interface data to terminal again.
310: be while switching foreground state information when receiving the state information of described terminal transmission, server recovers to send remote subscriber interface data to terminal corresponding to described terminal applies.
In the time receiving the message that switches to foreground state that terminal sends, in the terminal list of server, state corresponding this terminal iidentification is changed to presence from background state, now server is according to the end message in terminal list, in the time that each information transmission cycle arrives, send remote subscriber interface data to the terminal that is in line states.
311: in the time that described terminal applies exits, send and exit information to described server, make described server no longer send remote subscriber interface data to terminal corresponding to described terminal applies.
Wherein, exit in information and can comprise terminal iidentification, make server confirm identity according to terminal iidentification.Server receives this and exits after information, according to this terminal iidentification, in the terminal list in server, end message corresponding this terminal iidentification is deleted, and makes server no longer send remote subscriber interface data to this terminal in the next information transmission cycle.
312: receive the information that exits that terminal corresponding to described terminal applies sends, the state of terminal corresponding to described terminal applies is set to off-line state, no longer sends remote subscriber interface data to terminal corresponding to described terminal applies.
Server exits in information the terminal receiving, extracts the identity of terminal iidentification confirmation terminal, is set to off-line state according to the state of definite terminal identity its corresponding terminal in terminal list.After this, server can not send remote subscriber interface data to the terminal of off-line state in the time of the information of transmission.
The embodiment of the present invention is by the time that terminal applies switches to background state by foreground state, send the information of change state to server, make server can know the current residing state of terminal applies, and judge whether to send remote subscriber interface data to terminal corresponding to terminal applies according to the state of terminal applies, save network traffics.And send heartbeat message by each server to being connected with terminal, realized terminal and maintained and the connection status of multiple servers simultaneously, the terminal applies that having avoided breaks causes cannot operate the phenomenon of home network resource, improved user's experience.
Embodiment tetra-
Referring to Fig. 5, the embodiment of the present invention provides the terminal of a kind of office terminal state, and this terminal comprises:
Module 501 is set up in the first connection, while startup, connects by the mode of telemanagement and the server of home network for terminal applies;
Switch background state module 502, for in the time that described terminal applies is switched to backstage by foreground, send and switch background state information to described server, make described server suspend to terminal corresponding to described terminal applies and send remote subscriber interface data according to described switching background state information.
In embodiment, preferred, described terminal also comprises:
Switch foreground block of state 503, for in the time that described terminal applies is switched to foreground by backstage, send and switch foreground state information to described server, make described server recover to send remote subscriber interface data to terminal corresponding to described terminal applies according to described switching foreground state information.
Preferably, described terminal also comprises:
Heartbeat message sending module 504, for sending heartbeat message every Preset Time to described server, for maintaining the presence of terminal corresponding to described terminal applies at described server, in wherein said home network, at least there is a station server in described heartbeat message.
Wherein, described heartbeat message sending module 504, comprising:
Timing unit 5041, for carrying out timing according to preassigned heart beat cycle;
Acquiring unit 5042, for obtaining the mark of described server;
Transmitting element 5043, for whenever heart beat cycle arrives, sends described heartbeat message according to the mark of described server to described server.
Preferably, described terminal also comprises:
Exit processing module 505, in the time that described terminal applies exits, send and exit information to described server, make described server no longer send remote subscriber interface data to terminal corresponding to described terminal applies.
The embodiment of the present invention is by the time that terminal applies switches to background state by foreground state, send the information of change state to server, make server can know the current residing state of terminal applies, and judge whether to send remote subscriber interface data to terminal corresponding to terminal applies according to the state of terminal applies, save network traffics.And send heartbeat message by each server to being connected with terminal, realized terminal and maintained and the connection status of multiple servers simultaneously, the terminal applies that having avoided breaks causes cannot operate the phenomenon of home network resource, improved user's experience.
Embodiment five
Referring to Fig. 6, the embodiment of the present invention provides the server of a kind of office terminal state, and this server comprises:
Module 601 is set up in the second connection, connects for the terminal corresponding with terminal applies;
Background state arranges module 602, for being while switching background state information when receiving the state information of described terminal transmission, suspends to terminal corresponding to described terminal applies and sends remote subscriber interface data.
In embodiment, preferred, described server also comprises:
Foreground state setting module 603, for being while switching foreground state information when receiving the state information of described terminal transmission, recovers to send remote subscriber interface data to terminal corresponding to described terminal applies.
Preferably, described server also comprises:
Receiver module 604, the heartbeat message sending for receiving terminal corresponding to described terminal applies;
Processing module 605, for the heartbeat message sending according to terminal corresponding to described terminal applies, arranges the state of terminal corresponding to described terminal applies.
Wherein, described processing module 605, comprising:
The first processing unit 6051, if for the heartbeat message of receiving that within the preassigned time terminal corresponding to described terminal applies sends, determine that terminal corresponding to described terminal applies is presence, continue normally to send remote subscriber interface data to terminal corresponding to described terminal applies;
The second processing unit 6052, if while not exceeding preassigned threshold number for the number of times of not receiving heartbeat message within the preassigned time, receive the heartbeat message that terminal corresponding to described terminal applies sends, it is presence that terminal corresponding to described terminal applies is set, and continues normally to send remote subscriber interface data to terminal corresponding to described terminal applies;
The 3rd processing unit 6053, if while exceeding preassigned threshold number for the number of times of not receiving heartbeat message within the preassigned time, do not receive the heartbeat message that terminal corresponding to described terminal applies sends, the state that terminal corresponding to described terminal applies is set is off-line state, no longer sends remote subscriber interface data to terminal corresponding to described terminal applies.
Preferably, described server also comprises:
Counter replacement module 606, for the time-out count of resetting terminal corresponding to described terminal applies.
Preferably, described server comprises:
Off-line state arranges module 607, the information that exits sending for receiving terminal corresponding to described terminal applies, the state of terminal corresponding to described terminal applies is set to off-line state, no longer sends remote subscriber interface data to terminal corresponding to described terminal applies.
The embodiment of the present invention is by the time that terminal applies switches to background state by foreground state, send the information of change state to server, make server can know the current residing state of terminal applies, and judge whether to send remote subscriber interface data to terminal corresponding to terminal applies according to the state of terminal applies, save network traffics.And send heartbeat message by each server to being connected with terminal, realized terminal and maintained and the connection status of multiple servers simultaneously, the terminal applies that having avoided breaks causes cannot operate the phenomenon of home network resource, improved user's experience.
Embodiment six
Referring to Fig. 7, the embodiment of the present invention provides the system of a kind of office terminal state, and this server comprises: terminal 701 and server 702; It is characterized in that,
Described terminal 701 comprises:
Module 7011 is set up in the first connection, while startup, connects by the mode of telemanagement and the server of home network for terminal applies;
Switch background state module 7012, for in the time that described terminal applies is switched to backstage by foreground, send and switch background state information to described server, make described server suspend to terminal corresponding to described terminal applies and send remote subscriber interface data according to described switching background state information;
Described server 702 comprises:
Module 7021 is set up in the second connection, connects for the terminal corresponding with terminal applies;
Background state arranges module 7022, for being while switching background state information when receiving the state information of described terminal transmission, suspends to terminal corresponding to described terminal applies and sends remote subscriber interface data.
The embodiment of the present invention is by the time that terminal applies switches to background state by foreground state, send the information of change state to server, make server can know the current residing state of terminal applies, and judge whether to send remote subscriber interface data to terminal corresponding to terminal applies according to the state of terminal applies, save network traffics.And send heartbeat message by each server to being connected with terminal, realized terminal and maintained and the connection status of multiple servers simultaneously, the terminal applies that having avoided breaks causes cannot operate the phenomenon of home network resource, improved user's experience.
One of ordinary skill in the art will appreciate that all or part of step that realizes above-described embodiment can complete by hardware, also can carry out the hardware that instruction is relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be read-only memory, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (23)

1. a method for office terminal state, is characterized in that, described method comprises:
Terminal applies connects by the server in mode and the home network of telemanagement while startup;
In the time that described terminal applies is switched to backstage by foreground, send and switch background state information to described server, make described server suspend to terminal corresponding to described terminal applies and send remote subscriber interface data according to described switching background state information.
2. method according to claim 1, it is characterized in that, it is described in the time that described terminal applies is switched to backstage by foreground, send to described server the background state information of switching, described server is suspended after terminal corresponding to described terminal applies sends remote subscriber interface data according to described switching background state information, and described method also comprises:
In the time that described terminal applies is switched to foreground by backstage, send and switch foreground state information to described server, make described server recover to send remote subscriber interface data to terminal corresponding to described terminal applies according to described switching foreground state information.
3. method according to claim 1, is characterized in that, after described terminal applies connects by the server in mode and the home network of telemanagement while startup, described method also comprises:
Sending heartbeat message every Preset Time to described server, for maintaining the presence of terminal corresponding to described terminal applies at described server, at least there is a station server in described heartbeat message in wherein said home network.
4. method according to claim 3, is characterized in that, described every server transmission heartbeat message described in Preset Time, comprising:
Carry out timing according to preassigned heart beat cycle;
Obtain the mark of described server;
Whenever heart beat cycle arrives, send described heartbeat message according to the mark of described server to described server.
5. method according to claim 1, is characterized in that, after described terminal applies connects by the server in mode and the home network of telemanagement while startup, described method also comprises:
In the time that described terminal applies exits, send and exit information to described server, make described server no longer send remote subscriber interface data to terminal corresponding to described terminal applies.
6. a method for office terminal state, is characterized in that, described method comprises:
The terminal corresponding with terminal applies connects;
Be while switching background state information when receiving the state information of described terminal transmission, suspend to terminal corresponding to described terminal applies and send remote subscriber interface data.
7. method according to claim 6, is characterized in that, described is while switching background state information when receiving the state information of described terminal transmission, suspends after terminal corresponding to described terminal applies sends remote subscriber interface data, and described method also comprises:
Be while switching foreground state information when receiving the state information of described terminal transmission, recover to send remote subscriber interface data to terminal corresponding to described terminal applies.
8. method according to claim 6, is characterized in that, after the described terminal corresponding with terminal applies connects, described method also comprises:
Receive the heartbeat message that terminal corresponding to described terminal applies sends;
According to the heartbeat message of terminal transmission corresponding to described terminal applies, the state of terminal corresponding to described terminal applies is set.
9. method according to claim 8, is characterized in that, described according to the heartbeat message of terminal transmission corresponding to described terminal applies, and the state of terminal corresponding to described terminal applies is set, and comprising:
If receive the heartbeat message that terminal corresponding to described terminal applies sends within the preassigned time, determine that terminal corresponding to described terminal applies is presence, continue normally to send remote subscriber interface data to terminal corresponding to described terminal applies;
If do not receive within the preassigned time when number of times of heartbeat message does not exceed preassigned threshold number, receive the heartbeat message that terminal corresponding to described terminal applies sends, it is presence that terminal corresponding to described terminal applies is set, and continues normally to send remote subscriber interface data to terminal corresponding to described terminal applies;
If do not receive within the preassigned time when number of times of heartbeat message exceedes preassigned threshold number, do not receive the heartbeat message that terminal corresponding to described terminal applies sends, the state that terminal corresponding to described terminal applies is set is off-line state, no longer sends remote subscriber interface data to terminal corresponding to described terminal applies.
10. method according to claim 9, it is characterized in that, when the number of times of not receiving heartbeat message if described within the preassigned time does not exceed preassigned threshold number, receive the heartbeat message that terminal corresponding to described terminal applies sends, it is presence that terminal corresponding to described terminal applies is set, continuation is normally after terminal corresponding to described terminal applies sends remote subscriber interface data, and described method also comprises:
The time-out count of resetting terminal corresponding to described terminal applies.
11. methods according to claim 6, is characterized in that, after the described terminal corresponding with terminal applies connects, described method also comprises:
Receive the information that exits that terminal corresponding to described terminal applies sends, the state of terminal corresponding to described terminal applies is set to off-line state, no longer sends remote subscriber interface data to terminal corresponding to described terminal applies.
The terminal of 12. 1 kinds of office terminal states, is characterized in that, described terminal comprises:
Module is set up in the first connection, while startup, connects by the mode of telemanagement and the server of home network for terminal applies;
Switch background state module, for in the time that described terminal applies is switched to backstage by foreground, send and switch background state information to described server, make described server suspend to terminal corresponding to described terminal applies and send remote subscriber interface data according to described switching background state information.
13. terminals according to claim 12, is characterized in that, described terminal also comprises:
Switch foreground block of state, for in the time that described terminal applies is switched to foreground by backstage, send and switch foreground state information to described server, make described server recover to send remote subscriber interface data to terminal corresponding to described terminal applies according to described switching foreground state information.
14. terminals according to claim 12, is characterized in that, described terminal also comprises:
Heartbeat message sending module, for sending heartbeat message every Preset Time to described server, for maintaining the presence of terminal corresponding to described terminal applies at described server, in wherein said home network, at least there is a station server in described heartbeat message.
15. terminals according to claim 14, is characterized in that, described heartbeat message sending module, comprising:
Timing unit, for carrying out timing according to preassigned heart beat cycle;
Acquiring unit, for obtaining the mark of described server;
Transmitting element, for whenever heart beat cycle arrives, sends described heartbeat message according to the mark of described server to described server.
16. terminals according to claim 12, is characterized in that, described terminal also comprises:
Exit processing module, in the time that described terminal applies exits, send and exit information to described server, make described server no longer send remote subscriber interface data to terminal corresponding to described terminal applies.
The server of 17. 1 kinds of office terminal states, is characterized in that, described server comprises:
Module is set up in the second connection, connects for the terminal corresponding with terminal applies;
Background state arranges module, for being while switching background state information when receiving the state information of described terminal transmission, suspends to terminal corresponding to described terminal applies and sends remote subscriber interface data.
18. servers according to claim 17, is characterized in that, described server also comprises:
Foreground state setting module, for being while switching foreground state information when receiving the state information of described terminal transmission, recovers to send remote subscriber interface data to terminal corresponding to described terminal applies.
19. servers according to claim 17, is characterized in that, described server also comprises:
Receiver module, the heartbeat message sending for receiving terminal corresponding to described terminal applies;
Processing module, for the heartbeat message sending according to terminal corresponding to described terminal applies, arranges the state of terminal corresponding to described terminal applies.
20. servers according to claim 19, is characterized in that, described processing module, comprising:
The first processing unit, if for the heartbeat message of receiving that within the preassigned time terminal corresponding to described terminal applies sends, determine that terminal corresponding to described terminal applies is presence, continue normally to send remote subscriber interface data to terminal corresponding to described terminal applies;
The second processing unit, if while not exceeding preassigned threshold number for the number of times of not receiving heartbeat message within the preassigned time, receive the heartbeat message that terminal corresponding to described terminal applies sends, it is presence that terminal corresponding to described terminal applies is set, and continues normally to send remote subscriber interface data to terminal corresponding to described terminal applies;
The 3rd processing unit, if while exceeding preassigned threshold number for the number of times of not receiving heartbeat message within the preassigned time, do not receive the heartbeat message that terminal corresponding to described terminal applies sends, the state that terminal corresponding to described terminal applies is set is off-line state, no longer sends remote subscriber interface data to terminal corresponding to described terminal applies.
21. servers according to claim 20, is characterized in that, described server also comprises:
Counter replacement module, for the time-out count of resetting terminal corresponding to described terminal applies.
22. servers according to claim 17, is characterized in that, described server comprises:
Off-line state arranges module, the information that exits sending for receiving terminal corresponding to described terminal applies, and the state of terminal corresponding to described terminal applies is set to off-line state, no longer sends remote subscriber interface data to terminal corresponding to described terminal applies.
The system of 23. 1 kinds of office terminal states, comprising: terminal and server; It is characterized in that,
Described terminal comprises:
Module is set up in the first connection, while startup, connects by the mode of telemanagement and the server of home network for terminal applies;
Switch background state module, for in the time that described terminal applies is switched to backstage by foreground, send and switch background state information to described server, make described server suspend to terminal corresponding to described terminal applies and send remote subscriber interface data according to described switching background state information;
Described server comprises:
Module is set up in the second connection, connects for the terminal corresponding with terminal applies;
Background state arranges module, for being while switching background state information when receiving the state information of described terminal transmission, suspends to terminal corresponding to described terminal applies and sends remote subscriber interface data.
CN201210420837.2A 2012-10-29 2012-10-29 Terminal state managing method, device and system Pending CN103795554A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210420837.2A CN103795554A (en) 2012-10-29 2012-10-29 Terminal state managing method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210420837.2A CN103795554A (en) 2012-10-29 2012-10-29 Terminal state managing method, device and system

Publications (1)

Publication Number Publication Date
CN103795554A true CN103795554A (en) 2014-05-14

Family

ID=50670880

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210420837.2A Pending CN103795554A (en) 2012-10-29 2012-10-29 Terminal state managing method, device and system

Country Status (1)

Country Link
CN (1) CN103795554A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104991850A (en) * 2015-06-27 2015-10-21 广州华多网络科技有限公司 Heartbeat package control method and apparatus for application program
CN105426244A (en) * 2015-12-30 2016-03-23 广东欧珀移动通信有限公司 Application process management method and application process management device
CN105530291A (en) * 2015-11-30 2016-04-27 深圳市元征软件开发有限公司 Method, device and system for obtaining diagnostic equipment state
CN106815065A (en) * 2015-11-27 2017-06-09 腾讯科技(深圳)有限公司 The awakening method and device of background application, electronic equipment
CN108718421A (en) * 2018-05-08 2018-10-30 深圳唱刻科技有限公司 A kind of requesting song control system and method
CN109743242A (en) * 2018-12-28 2019-05-10 联创汽车电子有限公司 CAN bus message control system and its control method
CN109889775A (en) * 2018-12-26 2019-06-14 视联动力信息技术股份有限公司 A kind of method and apparatus of data timeout treatment
CN110601914A (en) * 2019-08-05 2019-12-20 深圳市大拿科技有限公司 Method and system for monitoring survival state of server
CN111371631A (en) * 2018-12-25 2020-07-03 成都鼎桥通信技术有限公司 Heartbeat mechanism detection method, terminal device and storage medium
CN112087346A (en) * 2020-08-20 2020-12-15 深圳市元征科技股份有限公司 Diagnostic conversion box state determination method, upper computer and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101286955A (en) * 2007-02-21 2008-10-15 捷讯研究有限公司 Efficient transmission of presence update information to a presence service client
CN102447647A (en) * 2010-10-13 2012-05-09 腾讯科技(深圳)有限公司 Notification method, device and system based on new information

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101286955A (en) * 2007-02-21 2008-10-15 捷讯研究有限公司 Efficient transmission of presence update information to a presence service client
CN102447647A (en) * 2010-10-13 2012-05-09 腾讯科技(深圳)有限公司 Notification method, device and system based on new information

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104991850B (en) * 2015-06-27 2018-06-19 广州华多网络科技有限公司 The heartbeat packet control method and device of a kind of application program
CN104991850A (en) * 2015-06-27 2015-10-21 广州华多网络科技有限公司 Heartbeat package control method and apparatus for application program
CN106815065B (en) * 2015-11-27 2020-02-11 腾讯科技(深圳)有限公司 Background application awakening method and device and electronic equipment
CN106815065A (en) * 2015-11-27 2017-06-09 腾讯科技(深圳)有限公司 The awakening method and device of background application, electronic equipment
CN105530291A (en) * 2015-11-30 2016-04-27 深圳市元征软件开发有限公司 Method, device and system for obtaining diagnostic equipment state
CN105426244A (en) * 2015-12-30 2016-03-23 广东欧珀移动通信有限公司 Application process management method and application process management device
CN105426244B (en) * 2015-12-30 2019-03-22 Oppo广东移动通信有限公司 Application process management method and application process managing device
CN108718421A (en) * 2018-05-08 2018-10-30 深圳唱刻科技有限公司 A kind of requesting song control system and method
CN111371631B (en) * 2018-12-25 2022-04-19 成都鼎桥通信技术有限公司 Heartbeat mechanism detection method, terminal device and storage medium
CN111371631A (en) * 2018-12-25 2020-07-03 成都鼎桥通信技术有限公司 Heartbeat mechanism detection method, terminal device and storage medium
CN109889775A (en) * 2018-12-26 2019-06-14 视联动力信息技术股份有限公司 A kind of method and apparatus of data timeout treatment
CN109889775B (en) * 2018-12-26 2020-09-18 视联动力信息技术股份有限公司 Data timeout processing method and device
CN109743242B (en) * 2018-12-28 2021-06-08 联创汽车电子有限公司 CAN bus message control system and control method thereof
CN109743242A (en) * 2018-12-28 2019-05-10 联创汽车电子有限公司 CAN bus message control system and its control method
CN110601914A (en) * 2019-08-05 2019-12-20 深圳市大拿科技有限公司 Method and system for monitoring survival state of server
CN112087346A (en) * 2020-08-20 2020-12-15 深圳市元征科技股份有限公司 Diagnostic conversion box state determination method, upper computer and storage medium

Similar Documents

Publication Publication Date Title
CN103795554A (en) Terminal state managing method, device and system
CN101094157B (en) Method for implementing network interconnection by using link aggregation
CN100553213C (en) A kind of method and apparatus of WLAN abnormal quick restoring
CN104469970B (en) A kind of method and apparatus reconnecting data network
EP3101872B1 (en) Load balancing server for forwarding prioritized traffic from and to one or more prioritized auto-configuration servers
CN104898435B (en) Home services system and its fault handling method, household appliance, server
CN103686854A (en) Method and device for controlling AP
CN102082702A (en) Terminal alarm processing method, device and system thereof
CN102957623A (en) Maintenance method and equipment of neighborhood of border gate protocol
CN109040295A (en) Determination method and device, terminal and the storage medium of abnormal broken line
CN102624566A (en) Method, device and system for waking up calling terminal
CN101478615B (en) Link processing method, apparatus and system
CN106789279B (en) Gateway control method, remote control end control method and device
CN102882708A (en) Operation and maintenance auditing method, device and system
CN106411574B (en) Management control method and device
CN103716815A (en) Method for vehicle-mounted communication terminal to achieve dial-up internet access
CN103490964B (en) A kind of method and device for realizing that flexible configuration terminal accesses quantity
CN105553762A (en) Communication method and communication system between domestic appliance and mobile terminal and corresponding devices
CN103051484B (en) Session service processing method, system and Session Border Controll
CN106067857B (en) Method and device for preventing user from being forced off-line
CN101848165B (en) The method recovered after controlling interrupted communication link and interface board
CN101436953B (en) Management method and processing module for on-line announcement message of network appliance
CN116546079A (en) Method and device for data interaction, electronic device and interaction system
CN114826981B (en) System and method for realizing application resident in cloud mobile phone
CN108173707B (en) Method and device for controlling use of media resources

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20140514

RJ01 Rejection of invention patent application after publication