CN105933924B - A kind of presence detection method, device and the terminal of information exchange software - Google Patents

A kind of presence detection method, device and the terminal of information exchange software Download PDF

Info

Publication number
CN105933924B
CN105933924B CN201610246914.5A CN201610246914A CN105933924B CN 105933924 B CN105933924 B CN 105933924B CN 201610246914 A CN201610246914 A CN 201610246914A CN 105933924 B CN105933924 B CN 105933924B
Authority
CN
China
Prior art keywords
terminal
interactive software
software
information
counting variable
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.)
Active
Application number
CN201610246914.5A
Other languages
Chinese (zh)
Other versions
CN105933924A (en
Inventor
龚敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610246914.5A priority Critical patent/CN105933924B/en
Publication of CN105933924A publication Critical patent/CN105933924A/en
Application granted granted Critical
Publication of CN105933924B publication Critical patent/CN105933924B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses presence detection method, device and the terminals of a kind of information exchange software.This method comprises: counting variable is arranged for the first terminal, and count initialized variate-value is 0 after first terminal is based on interactive software and second terminal establishes communication connection;When first terminal sends communication information to second terminal based on interactive software, the transmission state of the communication information is monitored;If monitoring that the current value of the counting variable to send failure, is added 1 by the transmission state;If the current value for calculating variable is greater than the preset threshold, it is determined that the interactive software of the second terminal is in not presence.Using this method, information communication mechanism can be based only upon and complete the message communicating of terminal and the presence of interactive software is detected, network bandwidth resources when significantly saving terminal room communication occupy;In addition, also reducing the erroneous judgement probability when presence detection to interactive software, the user experience is improved.

Description

A kind of presence detection method, device and the terminal of information exchange software
Technical field
The present embodiments relate to computer application technology more particularly to a kind of presences of information exchange software Detection method, device and terminal.
Background technique
Currently, two terminals for being linked into same Wireless LAN hot spot can be after starting specific software based on specific Software establishes communication connection, is achieved in information exchange between the two.For example, passing through in intelligent terminal and intelligent sound box respective Wireless communication module be linked into the same WLAN hot spot (mainly Wi-Fi hotspot), and be respectively started and be integrated in intelligence After specific software in terminal and intelligent sound box, it will be able to the communication connection between intelligent terminal and intelligent sound box is established, with reality The now reception and transmission of message between the two or instruction, so that intelligent sound box or intelligent terminal be made to be based on received message or instruction The operation set.
For any two terminal, when the two establishes communication connection progress information exchange, need to allow being integrated in the two On specific software be online, just can guarantee that interactive information is received by other side in this way, wherein presence can solve Be interpreted as: each terminal and the same WLAN accessed are in connection status, and the specific software in each terminal keeps opening Open state.Therefore, it is necessary to detect the presence of two terminal specific softwares.
Existing presence detection, is based primarily upon a heartbeat detection mechanism, i.e., based on the specific software of first terminal To set the period (as set the period as 5 seconds) to the specific software of second terminal transmission heartbeat message, when continuous several times are to second When the specific software of terminal sends heartbeat message failure, it is believed that the specific software of first terminal has been not at presence;Herein Period, when the specific software of second terminal never has the heartbeat message for receiving first terminal transmission, then it is assumed that first eventually The specific software at end has also been not at presence.
There are certain drawbacks: 1) the heartbeat detection mechanism and end when based on the progress presence detection of heartbeat detection mechanism Information communication mechanism between end works at the same time, and the two requires occupied bandwidth resource, has thereby resulted in bandwidth resources and has additionally occupied, Influence network transfer speeds when terminal room message communicating;2) when the network signal of WLAN is unstable, it is easy to occur Terminal repeatedly sends or receives the case where heartbeat message failure, and the specific software of distant terminal can be judged to not existing by terminal at this time Line, in fact, terminal is still in network connection state (only network signal is unstable) at this time and specific software is also at unlatching State.Therefore, the probability for presence erroneous judgement occur is increased based on the detection method, reduces user experience.
Summary of the invention
The purpose of the present invention is to propose to presence detection method, device and the terminals of a kind of information exchange software.With excellent Change and the presence of specific software is detected when carrying out message communicating based on terminal specific software.
On the one hand, the embodiment of the invention provides a kind of presence detection methods of information exchange software, comprising:
After first terminal is based on interactive software and second terminal establishes communication connection, counted for first terminal setting Variable, and the value for initializing the counting variable is 0;
When first terminal sends communication information to the second terminal based on interactive software, the communication information is monitored Transmission state, wherein the communication information includes current state information and/or effect of the first terminal for information exchange In the control instruction information of the second terminal;
If monitoring that the current value of the counting variable to send failure, is added 1 by the transmission state;
If the current value for calculating variable is greater than the preset threshold, it is determined that the interactive software of the second terminal In not presence.
On the other hand, the embodiment of the invention provides a kind of presence detection method of information exchange software, the devices Configuration is in first terminal, comprising:
Counting variable initial module, for after establishing communication connection based on interactive software and second terminal, setting to be counted Variable, and the value for initializing the counting variable is 0;
State monitoring module is sent, for monitoring when sending communication information to the second terminal based on interactive software The transmission state of the communication information, wherein the communication information includes the current state information and/or work for information exchange Control instruction information for the second terminal;
The first computing module of variate-value, for when monitoring the transmission state to send failure, the counting to be become The current value of amount adds 1;
Presence determining module, for determining institute when the current value for calculating variable is greater than the preset threshold The interactive software for stating second terminal is in not presence.
Another aspect, the embodiment of the invention provides a kind of terminal, which is integrated with letter provided in an embodiment of the present invention Cease the presence detection device of interactive software.
The embodiment of the invention provides presence detection method, device and the terminal of a kind of information exchange software, this hairs Bright method can be summarized as: firstly, first terminal interactive software and second terminal are established and communicated to connect, be arranged in first terminal Counting variable and initializing variable value are 0;Then, interactive software is based in first terminal send communication information to second terminal When, the transmission state of the communication information is monitored, and variate-value is added 1 when monitoring transmission state to send failure;Finally, really Determine the relationship of variate-value and preset threshold, and determines that the interactive software of second terminal is in not when variate-value is greater than preset threshold Presence.Utilize this method, on the one hand, be based only upon terminal room information communication mechanism can be achieved with interactive software in threadiness State detection is not needed upon the presence detection that specific heartbeat detection mechanism carries out, thereby saves when terminal communicates Network bandwidth resources occupy;On the other hand, the method for the present invention only carries out transmission status monitoring when terminal room sends communication information, Compared with existing setting heartbeat message sending cycle, the interaction times of terminal room message are considerably reduced, thus accordingly The erroneous judgement probability of presence is reduced, user experience is promoted.
Detailed description of the invention
Fig. 1 is a kind of process signal of the presence detection method for information exchange software that the embodiment of the present invention one provides Figure;
Fig. 2 is a kind of process signal of presence detection method of information exchange software provided by Embodiment 2 of the present invention Figure;
Fig. 3 is a kind of process signal of the presence detection method for information exchange software that the embodiment of the present invention three provides Figure;
Fig. 4 is a kind of preferred implementation of the presence detection method for information exchange software that the embodiment of the present invention four provides Example;
Fig. 5 is a kind of structural frames of the presence detection device for information exchange software that the embodiment of the present invention five provides Figure.
Specific embodiment
To further illustrate the technical scheme of the present invention below with reference to the accompanying drawings and specific embodiments.It is understood that It is that specific embodiment described herein is used only for explaining the present invention rather than limiting the invention.It further needs exist for illustrating , only the parts related to the present invention are shown for ease of description, in attached drawing rather than entire infrastructure.
It should be noted that presence detection method provided by the embodiment of the present invention is suitable for building based on interactive software Any terminal in two terminals of vertical communication connection a, that is, terminal can be achieved to another terminal interaction software presence Mutually detection.The terminal communicated to connect is established using detection method provided by the invention detection distant terminal interactive software in threadiness It, only need to be using terminal itself as first terminal when state.Therefore, for the ease of statement, the present embodiment will establish its communicated to connect In a terminal as first terminal, another terminal is as second terminal, only with first terminal to second terminal interactive software Presence detection state the detection process of interactive software presence provided by the invention.
Embodiment one
Fig. 1 is a kind of process signal of the presence detection method for information exchange software that the embodiment of the present invention one provides Figure, this method are suitable for the case where interactive software that is based on carries out presence detection when to information interaction among terminals, can be with It is executed by the presence detection device of information exchange software, wherein the device can be implemented by software and/or hardware, and generally collect Cheng Yu is established based on interactive software in the terminal of communication connection.
As shown in Figure 1, a kind of presence detection method for information exchange software that the embodiment of the present invention one provides, specifically Including operating as follows:
S101, it is based on after interactive software and second terminal establish communication connection in first terminal, is that the first terminal is set The value set counting variable, and initialize the counting variable is 0.
In the present embodiment, the first terminal and second terminal specifically can refer to smart phone, tablet computer, intelligent sound Case and smart television etc. can carry out the electronic equipment of terminal message communication based on the interactive software of installation.In general, described First terminal can be described as based on the process that interactive software and second terminal establish communication connection: first terminal and the second end first The wireless communication module that end is based respectively on itself is linked into same WLAN, and then two terminals, which are separately turned on, is mounted thereon For end message interaction interactive software, two terminals can receive other side transmission communication connection establish message after, can Determine that the foundation of two terminals communicates to connect successfully.It should be noted that for the first terminal and second terminal, if really The interactive software for determining itself is online, and receives any communication message of other side's transmission, it is believed that two terminals are built Communication connection is stood.
In the present embodiment, it in order to which whether the interactive software for detecting distant terminal is online, is established in two terminals After communication connection, respective counting variable can be set in two terminals.By taking first terminal as an example, in first terminal and second terminal After establishing communication connection based on interactive software, counting variable is set in first terminal, and the value for initializing the counting variable is 0.The value of the counting variable, which is particularly used in, determines whether the interactive software of second terminal is online.
S102, first terminal be based on interactive software to the second terminal send communication information when, monitor the communication The transmission state of message, wherein the communication information include the first terminal for the current state information of information exchange and/ Or act on the control instruction information of the second terminal.
In the present embodiment, the presence detection method of interactive software provided by the invention, compared with prior art, no The periodic heartbeat messages for being used expressly for detection transmission state are reset, but are only based on interactive software to second in first terminal When terminal sends communication information, just start the monitoring to the transmission state of transmitted communication information.It has therefore saved on transmitted The bandwidth resources that heartbeat message occupies, so that more bandwidth resources are used for the transmission of communication information.
In the present embodiment, the communication information may include: the current operating state information and/or effect of first terminal In the control instruction information of second terminal.The current operating state information specifically can be regarded as first terminal and second terminal is logical When letter interaction, the work state information for the first terminal for needing that second terminal is allowed to understand, illustratively, if first terminal is intelligence Speaker, second terminal are intelligent terminal, then the music progress msg that intelligent sound box is sent to intelligent terminal can regard intelligence as The work state information of energy speaker;The control instruction information specifically can be regarded as first terminal and second terminal communication interaction When, for controlling the command information of second terminal, illustratively, if first terminal is intelligent terminal, second terminal is intelligent sound Case, then the music switching command that intelligent terminal is sent can regard the control instruction information of intelligent terminal as.
If S103, monitoring that the current value of the counting variable to send failure, is added 1 by the transmission state.
In the present embodiment, it is to be understood that the transmission of communication information needs to be based on specifically to disappear when terminal room communicates Transport protocol, such as File Transfer Protocol, Telnet agreement or smtp protocol are ceased, when based on these agreements transmission message, can generally be led to Special packet field or the judgment criterion of agreement are crossed to determine whether the transmission state of message sends successfully or send failure.Cause This, it is believed that the present embodiment need to only set monitoring operation to monitor the transmission state of communication information.
In the present embodiment, it when monitoring transmission state to send failure, needs to carry out the current value of counting variable Add 1 operation.
If S104, the current value for calculating variable are greater than the preset threshold, it is determined that the friendship of the second terminal Mutual software is in not presence.
In the present embodiment, the preset threshold specifically can be regarded as the maximum time that terminal allows communication information to send failure Number.The preset threshold can be manually set and also be set by system default, it is preferable that the range of settable preset threshold is 3 times. In the present embodiment, when the current value of counting variable is greater than preset threshold, so that it may think to be sent out from first terminal to second terminal The frequency of failure of communication information is sent to reach the maximum times allowed, at the interactive software that just can determine the second terminal at this time In not presence.
The embodiment of the present invention one provide a kind of information exchange software presence detection method, only first terminal to When second terminal sends communication information, the monitoring of the transmission state of progress updates count variable value after monitoring to send failure, The size for being based ultimately upon count variable value and preset threshold determines whether interactive software is in interaction mode.Skill provided by the invention Art scheme, compared with existing heartbeat detection mechanism, on the one hand, the information communication mechanism for being based only upon terminal room can be achieved with interacting The presence of software detects, and is not needed upon the presence detection that specific heartbeat detection mechanism carries out, thereby saves Network bandwidth resources when terminal communicates occupy;On the other hand, the method for the present invention is only carried out when terminal room sends communication information Status monitoring is sent, compared with existing setting heartbeat message sending cycle, considerably reduces the interaction time of terminal room message Thus number reduces the erroneous judgement probability of presence accordingly, promote user experience.
Embodiment two
Fig. 2 is a kind of process signal of presence detection method of information exchange software provided by Embodiment 2 of the present invention Figure.The embodiment of the present invention two on the basis of above-described embodiment to optimize, and the present embodiment is in step " if the calculating variable Current value be greater than the preset threshold, it is determined that the interactive software of the second terminal is in not presence " before, also increase Step is added:, will be described if monitoring that the transmission state is to send successfully and the current value of the counting variable is not 0 The current value of counting variable is initialized as 0, and returns to the monitoring operation for executing the transmission state.
As shown in Fig. 2, a kind of presence detection method of information exchange software provided by Embodiment 2 of the present invention, specifically Including operating as follows:
S201, it is based on after interactive software and second terminal establish communication connection in first terminal, is that the first terminal is set The value set counting variable, and initialize the counting variable is 0.
S202, first terminal be based on interactive software to the second terminal send communication information when, monitor the communication The transmission state of message.
In the present embodiment, step S201 and S202 have been discussed in detail in example 1, and I will not elaborate.The present invention Embodiment two optimizes the different disposal operation for different monitoring results, which thereby enhances the accurate of presence testing result Property.
S203, judge whether the transmission state is to send successfully, if so, executing S204;If it is not, then executing S206.
In the present embodiment, it can determine the monitoring result of monitored transmission state, and judge in the monitoring result Communication information sends whether state is to send successfully, if so, executable S204;If it is not, then needing to be implemented S206.
Whether S204, the current value for judging the counting variable are 0, execute S202 if so, returning;If it is not, then executing S205。
In the present embodiment, if it is to send successfully that the communication information in identified monitoring result, which sends state, also Whether the current value for needing to judge the counting variable is 0.If so, can return to the transmission shape that S202 re-executes communication information The monitoring operation of state, if it is not, then needing to be implemented S205.
S205, the current value of the counting variable is initialized as 0, returns execute S202 later.
In the present embodiment, if the communication information in identified monitoring result sends state to send successfully, and institute The current value for stating counting variable is not 0, then needs to be implemented S205 for the current value of the counting variable and be initialized as 0.It executes The operation of S205, can be cumulative to avoid the repetition of count variable value, because sending communication information to second terminal in first terminal When, in fact it could happen that sending state for the first time is to send failure, and it is to send successful situation that second, which sends state, at this point, if not The current value of counting variable clear 0, then when third time transmission state is to send failure again, count variable value will be based on upper one Secondary value continues to add up, but secondary transmission state is successfully, to show that communication information does not continuously transmit failure, if meter Number variable value continues to add up based on last, will result in the inaccuracy of testing result, reduces the detection efficiency of presence.
S206, judge whether the current value of the counting variable is greater than preset threshold, if so, executing S207;If it is not, then It returns and executes S202.
In the present embodiment, first terminal is based primarily upon the current of counting variable for the presence detection of second terminal The size relation of value and preset threshold determines, if the current value of counting variable is less than or equal to preset threshold, shows to communicate Maximum allowable number has not been reached yet in the transmission frequency of failure of message, must not believe that second terminal is not presence, needs Return to the monitoring operation that S202 re-executes the transmission state of communication information;If the current value of the counting variable is greater than default The operation of S207 then can be performed in threshold value.
S207, determine that the interactive software of the second terminal is in not presence.
In the present embodiment, when the current value of the counting variable is greater than preset threshold, it is believed that the interaction of second terminal Software is in not presence.
A kind of presence detection method of information exchange software provided by Embodiment 2 of the present invention, further increases meter The setting operation of number variable value is not 0 and sends state at this time to be to send successfully, needs that change will be counted if calculating variate-value Magnitude is initialized as 0.Using this method, network bandwidth resources occupancy is not only optimized, further ensure that presence is examined Thus the accuracy of survey reduces the erroneous judgement of presence detection, further promotes user experience.
Embodiment three
Fig. 3 is a kind of process signal of the presence detection method for information exchange software that the embodiment of the present invention three provides Figure.The present embodiment three is optimized based on above-described embodiment, in the present embodiment, first terminal be based on interactive software with After second terminal establishes communication connection, advanced optimize and include: the first terminal obtains the network mark of the second terminal Know and record, wherein the network identity is after the second terminal is based on wireless communication module access WLAN hot spot Corresponding internet protocol address.
Further, after determining that the interactive software in the second terminal is in not presence, further includes: described First terminal stops sending communication information to the second terminal, and the network identity of the second terminal is whole from described first It is deleted in the record list at end.
As shown in figure 3, a kind of presence detection method for information exchange software that the embodiment of the present invention three provides, specifically Including operating as follows:
S301, first terminal are based on interactive software and second terminal is established and communicated to connect.
S302, counting variable is set for the first terminal, the value for initializing the counting variable is that 0 and first are whole End obtains the network identity and record of the second terminal.
In the present embodiment, optimization increases the operation that first terminal obtains and records second terminal network identity, described Network identity specifically can be regarded as the second terminal and be based on corresponding net after wireless communication module access WLAN hot spot Network protocol address.The network identity is particularly used in which the terminal for making first terminal clear and itself establishing communication connection has A bit, and the corresponding second terminal of the first terminal network identity is allow to send related communication message.
S303, first terminal be based on interactive software to the second terminal send communication information when, monitor the communication The transmission state of message.
S304, judge whether the transmission state is to send successfully, if so, executing S305;If it is not, then executing S307.
Whether S305, the current value for judging the counting variable are 0, execute S303 if so, returning;If it is not, then executing S306。
S306, the current value of the counting variable is initialized as 0, returns execute S303 later.
S307, judge whether the current value of the counting variable is greater than preset threshold, if so, executing S308;If it is not, then It returns and executes S303.
S308, determine that the interactive software of the second terminal is in not presence.
In the present embodiment, the operating process of above-mentioned S303~S308 is discussed in detail in the above-described embodiments, here not It is described in detail again.
S309, first terminal stop sending communication information to the second terminal, and by the network mark of the second terminal Knowledge is deleted from the record list of the first terminal.
In the present embodiment, after the interactive software for determining the second terminal is in not presence, first terminal is just It can terminate to the second terminal and send communication information, because the interactive software of second terminal has been in not presence, phase When in the communication connection of first terminal and second terminal disconnection, first terminal is not necessarily to send to communicate to second terminal again to disappear Breath, therefore, first terminal can also delete the network identity of second terminal from the record list of the first terminal.
The presence detection method for a kind of information exchange software that the embodiment of the present invention three provides, in above-described embodiment On the basis of advanced optimize increase terminal based on interactive software establish communication connection after obtain bipartite network mark operation, also Optimization increases the concrete operations after first terminal determines second terminal online.Using this method, net is not only optimized Network bandwidth resources occupy, and ensure that the accuracy of presence detection, and also effective having ensured is logical when terminal room communicates with each other Believe efficiency, avoids the invalid communication of terminal room.
Further, the embodiment of the present invention three, which also optimizes, includes: when the first terminal receives the second terminal Interactive software send communication information when, determine that the interactive software of the second terminal is online;If described There are the network identities of the second terminal in the record list of one terminal, then re-execute to the second terminal interactive software Presence detect operation;If the network identity of the second terminal is not present in the record list of the first terminal, The network identity of the second terminal is then obtained and recorded, and re-executes the presence to the second terminal interactive software Detection operation.
In the present embodiment, if the presence detection side of first terminal interactive software based on the embodiment of the present invention Method detects that the interactive software of second terminal is in not presence, then can be by the network identity of second terminal from record list Middle deletion, and no longer communication information is sent to second terminal.The embodiment of the present invention is further set on this basis, That is, no matter whether first terminal detects that the interactive software of second terminal is in not presence, as long as first terminal receives The communication information that second terminal is sent based on interactive software, then first terminal, which is believed that, still establishes communication link with second terminal It connects, there are interactive relations, at this point, can be based on being received if first terminal deletes the network identity of second terminal Communication information redefine and record the network identity of second terminal, re-execute exist to second terminal interactive software later The operation of line state-detection;If can directly re-execute there are the network identity of second terminal in first terminal to described The presence of two terminal interaction softwares detects operation.This kind of way can further reduce the erroneous judgement of presence, To guarantee that terminal room interactively communicated is normally carried out, user experience is promoted.
Example IV
Fig. 4 is a kind of preferred implementation of the presence detection method for information exchange software that the embodiment of the present invention four provides Example.The embodiment of the present invention is using intelligent terminal and intelligent sound box based on the message communicating of interactive software as application background.In this reality It applies in example, the intelligent terminal and intelligent sound box can regard first terminal as, be based on presence detection side provided by the invention Method detects the presence of the interactive software of other side.Illustratively, in the present embodiment, eventually using intelligent sound box as first End, for intelligent terminal is as second terminal, be specifically described intelligent sound box to the presence of interactive software in intelligent terminal into The process of row detection.
As shown in figure 4, a kind of presence of the information exchange software for preferred embodiment that the embodiment of the present invention four provides Detection method specifically includes as follows:
If S401, intelligent sound box receive the control instruction that intelligent terminal is sent based on interactive software, it is determined that intelligence Speaker and intelligent terminal are in communication connection status.
In the present embodiment, in order to lower the erroneous judgement of interactive software presence, as long as intelligent sound box receives intelligence The control instruction that terminal is sent based on interactive software is considered as intelligent sound box and intelligent terminal still in communication connection status
If set in intelligent sound box in the record list of S402, intelligent sound box there are the network identity of intelligent terminal Counting variable is set, and the initial count variable value is 0, executes S405 later.
Illustratively, the network identity of the intelligent terminal is the network ip address that intelligent terminal accesses WLAN.
If the network identity of intelligent terminal is not present in the record list of S403, intelligent sound box, S404 is executed.
S404, counting variable is set in intelligent sound box, and the initial count variable value is 0 and intelligent sound box obtains The network identity and record of intelligent terminal.
S405, intelligent sound box be based on interactive software to intelligent terminal send current working status message when, supervisory messages Transmission state.
Illustratively, the playback progress of currently playing music is sent to intelligent terminal based on interactive software by intelligent sound box, It is identical as actual play progress with the playback progress information for realizing shown in intelligent terminal broadcast interface.Wherein, currently playing The playback progress of music can regard the current working status message of intelligent sound box as.
If S406, monitoring the transmission state of message to send failure, the current value of the counting variable is added 1, And it returns and executes S405.
If S407, the transmission state for monitoring message are to send successfully and the current value of the counting variable is not 0, The current value of the counting variable is initially 0, and returns and executes S405.
If the current value of S408, the counting variable is greater than preset threshold, it is determined that at the interactive software of intelligent terminal In not presence.
S409, intelligent sound box stop sending communication information to the intelligent terminal, and by the network mark of the intelligent terminal Knowledge is deleted from the record list of the first terminal.
It should be noted that the presence that the present embodiment provides only using intelligent sound box as first terminal detected Journey, but and limit first terminal as intelligent sound box, likewise, can also be achieved in using intelligent terminal as first terminal to intelligence The detection of the presence of the interactive software of energy speaker.
The embodiment of the present invention four provides a kind of preferred embodiment of the presence detection method of information exchange software.Tool After body illustrates intelligent sound box to the intelligent terminal of communication connection is established based on interactive software, exist to intelligent terminal interactive software The detection process of linear state.It can thus be seen that detection method provided in an embodiment of the present invention, can be not take up network communication In the case where broadband resource, the efficient presence for detecting terminal interaction software, while effectively reducing presence detection Misoperation probability, the user experience is improved.
Embodiment five
Fig. 5 is a kind of structural frames of the presence detection device for information exchange software that the embodiment of the present invention five provides Figure.The interactive software that the presence detection device is based on when being suitable for information interaction among terminals carries out presence detection The case where.The device can be implemented by software and/or hardware, and generally be integrated in the terminal that communication connection is established based on interactive software In.As shown in figure 5, the presence detection device includes: counting variable initial module 51, sends state monitoring module 52, becomes The first computing module of magnitude 53 and presence determining module 54
Counting variable initial module 51, for after being based on interactive software and second terminal foundation communication connection, setting to be counted Number variable, and the value for initializing the counting variable is 0;
State monitoring module 52 is sent, for supervising when sending communication information to the second terminal based on interactive software Survey the transmission state of the communication information, wherein the communication information include for information exchange current state information and/or Act on the control instruction information of the second terminal;
The first computing module of variate-value 53, for when monitor the transmission state for send failure when, by the counting The current value of variable adds 1;
Presence determining module 54, for determining when the current value for calculating variable is greater than the preset threshold The interactive software of the second terminal is in not presence.
In the present embodiment, which passes through counting variable initial module 51 soft based on interaction first The value that after part and second terminal establish communication connection, counting variable is arranged, and initializes the counting variable is 0;Then pass through State monitoring module 52 is sent when sending communication information to the second terminal based on interactive software, monitors the communication information Transmission state;Later through the first computing module of variate-value 53 when monitoring the transmission state to send failure, by institute The current value for stating counting variable adds 1;Eventually by presence determining module 54 when the current value for calculating variable is greater than institute When stating preset threshold, determine that the interactive software of the second terminal is in not presence.
The presence detection device for a kind of information exchange software that the embodiment of the present invention five provides, on the one hand, be based only upon The information communication mechanism of terminal room can be achieved with the presence detection of interactive software, be not needed upon specific heartbeat detection machine The presence detection that system carries out, network bandwidth resources when thereby saving terminal communication occupy;On the other hand, side of the present invention Method only carries out transmission status monitoring when terminal room sends communication information, compared with existing setting heartbeat message sending cycle, The interaction times of terminal room message are considerably reduced, thus reduce the erroneous judgement probability of presence accordingly, is promoted and is used Family experience.
Further, the presence detection device, further includes:
The second computing module of variate-value, for when monitoring that the transmission state is to send successfully and the counting variable When current value is not 0, the current value of the counting variable is initialized as 0, and returns to the monitoring behaviour for executing the transmission state Make.
On the basis of the above embodiments, the presence detection device, further includes:
Network identity obtains module, is used for after establishing communication connection based on interactive software and second terminal, described in acquisition The network identity and record of second terminal, wherein the network identity is that the second terminal is accessed based on wireless communication module Corresponding internet protocol address after WLAN hot spot.
Further, the presence detection device, further includes:
First processing module, for stopping after determining that the interactive software in the second terminal is in not presence Communication information only is sent to the second terminal, and the network identity of the second terminal is arranged from the record of the first terminal It is deleted in table.
In addition, the presence detection device, further includes: Second processing module
Correspondingly, the Second processing module, is specifically used for:
When the communication information that the interactive software for receiving the second terminal is sent, the interaction of the second terminal is determined Software is online;
If re-executed there are the network identity of the second terminal in the record list of the first terminal to institute State the presence detection operation of second terminal interactive software;
If the network identity of the second terminal is not present in the record list of the first terminal, obtains and record The network identity of the second terminal, and re-execute the presence detection operation to the second terminal interactive software.
Embodiment six
The embodiment of the present invention six provides a kind of terminal, which is integrated with a kind of information exchange provided by the above embodiment The presence detection device of software.Software can be interacted by the presence detection method of execution information interactive software Presence detection.
Illustratively, the terminal, which specifically can refer to mobile phone, tablet computer, intelligent sound box, smart television etc., can be based on handing over Mutual software establishes the electronic equipment of communication connection.Based on the terminal, the message that information communication mechanism completes terminal can be based only upon The detection of the presence of communication and interactive software, network bandwidth resources when significantly saving terminal communication occupy; In addition, also greatly reducing the erroneous judgement probability when presence detection to interactive software, and then the user experience is improved.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (11)

1. a kind of presence detection method of information exchange software, applied to the terminal for establishing communication connection based on interactive software In characterized by comprising
After first terminal is based on interactive software and second terminal establishes communication connection, counts and become for first terminal setting Amount, and the value for initializing the counting variable is 0;
When first terminal sends communication information to the second terminal based on interactive software, the transmission of the communication information is monitored State, wherein the communication information includes the first terminal for the current state information of information exchange and/or acts on institute State the control instruction information of second terminal;
If monitoring that the current value of the counting variable to send failure, is added 1 by the transmission state;
If the current value of the counting variable is greater than preset threshold, it is determined that the interactive software of the second terminal, which is in, not to exist Linear state;
Wherein, the first terminal and the second terminal are linked into same WLAN.
2. if the method according to claim 1, wherein the current value in the counting variable is greater than default threshold Value, it is determined that the interactive software of the second terminal is in front of not presence, further includes:
If monitoring that the transmission state is to send successfully and the current value of the counting variable is not 0, by the counting The current value of variable is initialized as 0, and returns to the monitoring operation for executing the transmission state.
3. according to the method described in claim 2, it is characterized in that, described be based on interactive software and second terminal in first terminal After establishing communication connection, further includes:
The first terminal obtains the network identity and record of the second terminal, wherein the network identity is described second Terminal is based on corresponding internet protocol address after wireless communication module access WLAN hot spot.
4. according to the method described in claim 3, it is characterized in that, determining the interactive software in the second terminal in not After presence, further includes:
The first terminal stops sending communication information to the second terminal, and by the network identity of the second terminal from institute It states in the record list of first terminal and deletes.
5. method according to claim 1 to 4, which is characterized in that further include:
When the communication information that the interactive software that the first terminal receives the second terminal is sent, determine that described second is whole The interactive software at end is online;
If re-executed there are the network identity of the second terminal in the record list of the first terminal to described The presence of two terminal interaction softwares detects operation;
If the network identity of the second terminal is not present in the record list of the first terminal, described in acquisition and record The network identity of second terminal, and re-execute the presence detection operation to the second terminal interactive software.
6. a kind of presence detection device of information exchange software is configured at the terminal for establishing communication connection based on interactive software In characterized by comprising
Counting variable initial module is used for after first terminal is based on interactive software and second terminal establishes communication connection, is arranged Counting variable, and the value for initializing the counting variable is 0;
State monitoring module is sent, sends communication information to the second terminal for being based on interactive software in the first terminal When, monitor the transmission state of the communication information, wherein the communication information includes the first terminal for information exchange Current state information and/or the control instruction information for acting on the second terminal;
The first computing module of variate-value, for when monitor the transmission state for send failure when, by the counting variable Current value adds 1;
Presence determining module, for when the current value of the counting variable is greater than preset threshold, determining that described second is whole The interactive software at end is in not presence;
Wherein, the first terminal and the second terminal are linked into same WLAN.
7. device according to claim 6, which is characterized in that further include:
The second computing module of variate-value, for when monitor the transmission state be send successfully and the counting variable it is current When value is not 0, the current value of the counting variable is initialized as 0, and return to the monitoring operation for executing the transmission state.
8. device according to claim 6, which is characterized in that further include:
Network identity obtains module, for obtaining described second after establishing communication connection based on interactive software and second terminal The network identity and record of terminal, wherein the network identity is that the second terminal is based on wireless communication module access wirelessly Corresponding internet protocol address after local area network hot spot.
9. device according to claim 8, which is characterized in that further include:
First processing module, for determining that the interactive software in the second terminal is in not after presence, stop to The second terminal sends communication information, and by the network identity of the second terminal from the record list of the first terminal It deletes.
10. according to any device of claim 6-9, which is characterized in that further include: Second processing module;
Correspondingly, the Second processing module, is specifically used for:
When the communication information that the interactive software for receiving the second terminal is sent, the interactive software of the second terminal is determined It is online;
If re-executed there are the network identity of the second terminal in the record list of the first terminal to described The presence of two terminal interaction softwares detects operation;
If the network identity of the second terminal is not present in the record list of the first terminal, described in acquisition and record The network identity of second terminal, and re-execute the presence detection operation to the second terminal interactive software.
11. a kind of terminal, which is characterized in that the terminal is integrated with such as the information exchange software as described in claim 6-10 is any Presence detection device.
CN201610246914.5A 2016-04-20 2016-04-20 A kind of presence detection method, device and the terminal of information exchange software Active CN105933924B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610246914.5A CN105933924B (en) 2016-04-20 2016-04-20 A kind of presence detection method, device and the terminal of information exchange software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610246914.5A CN105933924B (en) 2016-04-20 2016-04-20 A kind of presence detection method, device and the terminal of information exchange software

Publications (2)

Publication Number Publication Date
CN105933924A CN105933924A (en) 2016-09-07
CN105933924B true CN105933924B (en) 2019-09-27

Family

ID=56838458

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610246914.5A Active CN105933924B (en) 2016-04-20 2016-04-20 A kind of presence detection method, device and the terminal of information exchange software

Country Status (1)

Country Link
CN (1) CN105933924B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101764722A (en) * 2009-12-21 2010-06-30 中兴通讯股份有限公司 Method for detecting link and device and system thereof
US8018842B2 (en) * 2007-07-19 2011-09-13 Alaxala Networks Corporation Counter multi-failure system and common link terminal device used therein
CN104468265A (en) * 2014-11-19 2015-03-25 北京国双科技有限公司 Method and device for detecting online states of local area network terminals

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8018842B2 (en) * 2007-07-19 2011-09-13 Alaxala Networks Corporation Counter multi-failure system and common link terminal device used therein
CN101764722A (en) * 2009-12-21 2010-06-30 中兴通讯股份有限公司 Method for detecting link and device and system thereof
CN104468265A (en) * 2014-11-19 2015-03-25 北京国双科技有限公司 Method and device for detecting online states of local area network terminals

Also Published As

Publication number Publication date
CN105933924A (en) 2016-09-07

Similar Documents

Publication Publication Date Title
EP2853109B1 (en) Method for detecting cause of radio link failure or handover failure
US11832322B2 (en) Wireless backhaul communication processing method and related device
EP1843620A2 (en) Mobile communications system, base station apparatus, user equipment, and inter-cell handover control method for use therewith
CN101931982A (en) Network failure positioning method and device
WO2018227494A1 (en) Measurement gap configuration method, apparatus, device, terminal and system
CN105392185B (en) A kind of networking method of smart machine, apparatus and system
WO2017193825A1 (en) Method and device for performing data transmission
CN104780580B (en) A kind of Wi-Fi mobile networking methods of energy consumption balance
CN105025541A (en) Migration method and device for virtual base station in baseband pool
US20200120745A1 (en) D2d communication method, remote user equipment, and relay user equipment
WO2019165629A1 (en) Session management method and apparatus, and communication system
CN111830844A (en) Intelligent equipment control method and device and intelligent household control panel
CN109314723A (en) A kind of method, apparatus and terminal for realizing data service
CN111064552B (en) Intelligent device control method and device, electronic device and storage medium
CN110351827A (en) A kind of wireless self-networking method and system based on Sub-GHz
TW201820909A (en) Management device and management method thereof for cloud of radio access network and user equipment
TWI775009B (en) Base station and data transmission method thereof for mobile communication system
CN112351456A (en) Network connection method, device, storage medium and electronic equipment
EP2903344A1 (en) Server device capable of analyzing communication behavior, control method for mobile terminal, and computer program
CN107484214B (en) Internet of things access point frequency point selection method and device
KR101590018B1 (en) method for coupling femtocell with WiFi AP in SDN
CN102711159A (en) ZigBee protocol-based method and system for processing lost node
CN105933924B (en) A kind of presence detection method, device and the terminal of information exchange software
KR20170021876A (en) Offloading of a wireless node authentication with core network
JP6516039B2 (en) Gateway apparatus, communication system, power saving control method and power saving control program

Legal Events

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

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant