CN106792798B - Connection detection method and device for remote assistance of mobile terminal - Google Patents

Connection detection method and device for remote assistance of mobile terminal Download PDF

Info

Publication number
CN106792798B
CN106792798B CN201611064998.7A CN201611064998A CN106792798B CN 106792798 B CN106792798 B CN 106792798B CN 201611064998 A CN201611064998 A CN 201611064998A CN 106792798 B CN106792798 B CN 106792798B
Authority
CN
China
Prior art keywords
connection
remote assistance
detection
receiver
state
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
CN201611064998.7A
Other languages
Chinese (zh)
Other versions
CN106792798A (en
Inventor
吴俊霖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qizhi Business Consulting Co ltd
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201611064998.7A priority Critical patent/CN106792798B/en
Publication of CN106792798A publication Critical patent/CN106792798A/en
Application granted granted Critical
Publication of CN106792798B publication Critical patent/CN106792798B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/08Protocols specially adapted for terminal emulation, e.g. Telnet
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • H04W40/12Communication route or path selection, e.g. power-based or shortest path routing based on transmission quality or channel quality
    • H04W40/14Communication route or path selection, e.g. power-based or shortest path routing based on transmission quality or channel quality based on stability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • H04W40/22Communication route or path selection, e.g. power-based or shortest path routing using selective relaying for reaching a BTS [Base Transceiver Station] or an access point

Landscapes

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

Abstract

本发明提供了一种移动终端远程协助的连线探测方法及装置,其中移动终端远程协助的连线探测方法包括:通过网络向远程协助的接收方发起远程协助的连线请求;对所述发送方与所述接收方之间存在的多个中继站点提供的多条连线进行连线探测,其中,各连线按如下步骤进行探测:通过该连线发出探测信号;经该连线首次接收到所述接收方针对所述探测信号的响应消息时,将该连线的状态切换至运作中但不稳定的连线状态;在指定时间内,根据该连线的信号探测响应结果确定该连线是否能够稳定运行;选择能够稳定运行的连线在所述发送方与所述接收方间建立远程协助。采用本发明能够提高网络稳定性,缩短数据传输时间,保证数据准确性,提升用户体验。

Figure 201611064998

The invention provides a connection detection method and device for remote assistance of a mobile terminal, wherein the connection detection method for remote assistance of a mobile terminal includes: initiating a connection request for remote assistance to a receiver of remote assistance through a network; The connection detection is performed on multiple connections provided by multiple relay sites existing between the receiver and the receiver, wherein each connection is detected according to the following steps: sending a detection signal through the connection; receiving the first time through the connection When the receiver responds to the probe signal, the state of the connection is switched to an active but unstable connection state; within a specified time, the connection is determined according to the signal probe response result of the connection. Whether the line can run stably; select a line that can run stably to establish remote assistance between the sender and the receiver. The invention can improve network stability, shorten data transmission time, ensure data accuracy, and improve user experience.

Figure 201611064998

Description

移动终端远程协助的连线探测方法及装置Connection detection method and device for remote assistance of mobile terminal

技术领域technical field

本发明涉及互联网技术领域,特别是涉及一种移动终端远程协助的连线探测方法及装置。The invention relates to the field of Internet technology, and in particular, to a connection detection method and device for remote assistance of a mobile terminal.

背景技术Background technique

随着互联网技术的快速发展,基于移动互联网技术的移动终端远程协助服务也越来越普及,在日常生活中被用户广泛地运用。比如,用户在遇到一些自己尚不能解决的事情时,可以非常方便地通过移动终端远程协助寻求帮助。所以,随着移动终端远程协助服务日趋成熟和普及,对网络的性能要求越来越高,随之,对移动终端之间远程协助时信号传输的稳定性要求也变的越来越高。With the rapid development of Internet technology, mobile terminal remote assistance services based on mobile Internet technology are becoming more and more popular, and are widely used by users in daily life. For example, when a user encounters something that cannot be solved by himself, he can very conveniently seek help through remote assistance through a mobile terminal. Therefore, as the mobile terminal remote assistance service becomes more and more mature and popular, the performance requirements of the network are getting higher and higher, and subsequently, the stability requirements of signal transmission during remote assistance between mobile terminals are also becoming higher and higher.

现有技术中,不同用户的移动终端可能来自不同的运营商,或者用户的移动终端为同一运营商,但有的用户可能使用WIFI网络,有的用户可能使用2G、3G、4G网络,这种情况下,在进行移动终端远程协助时,信号容易出现不稳定的状态,有时还可能会出现数据包丢失的问题,给用户带来许多不便。In the prior art, the mobile terminals of different users may be from different operators, or the mobile terminals of users may be from the same operator, but some users may use WIFI networks, and some users may use 2G, 3G, and 4G networks. Under certain circumstances, when performing remote assistance of the mobile terminal, the signal is prone to unstable state, and sometimes the problem of data packet loss may occur, which brings a lot of inconvenience to the user.

因此,现在亟需一种能够确保移动终端之间远程协助时数据可以稳定、快速且完整传输的连线方式来提高网络性能,进而提升用户体验。Therefore, there is an urgent need for a connection method that can ensure stable, fast and complete transmission of data during remote assistance between mobile terminals to improve network performance and thus improve user experience.

发明内容SUMMARY OF THE INVENTION

鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的移动终端远程协助的连线探测方法和相应的探测装置。In view of the above problems, the present invention is proposed to provide a connection detection method and a corresponding detection device for remote assistance of a mobile terminal that overcome the above problems or at least partially solve the above problems.

依据本发明实施例的一个方面,提供了一种移动终端远程协助的连线探测方法,应用于远程协助的发起方,所述方法包括:According to an aspect of the embodiments of the present invention, a connection detection method for remote assistance of a mobile terminal is provided, which is applied to an initiator of remote assistance, and the method includes:

通过网络向远程协助的接收方发起远程协助的连线请求;Initiate a remote assistance connection request to the remote assistance recipient through the network;

对所述发送方与所述接收方之间存在的多个中继站点提供的多条连线进行连线探测,其中,各连线按如下步骤进行探测:Perform connection detection on multiple connections provided by multiple relay sites existing between the sender and the receiver, where each connection is detected according to the following steps:

通过该连线发出探测信号;经该连线首次接收到所述接收方针对所述探测信号的响应消息时,将该连线的状态切换至运作中但不稳定的连线状态;在指定时间内,根据该连线的信号探测响应结果确定该连线是否能够稳定运行;Send out a probe signal through the connection; when the receiver's response message to the probe signal is received for the first time through the connection, switch the state of the connection to an active but unstable connection state; at a specified time Inside, determine whether the connection can run stably according to the signal detection response result of the connection;

选择能够稳定运行的连线在所述发送方与所述接收方间建立远程协助。Select a stable connection to establish remote assistance between the sender and the receiver.

可选的,在指定时间内,根据该连线的信号探测响应结果确定该连线是否能够稳定运行,包括:Optionally, within a specified time, determine whether the connection can run stably according to the signal detection response result of the connection, including:

在所述指定时间内,确定是否能够继续接收到来自所述接收方的响应消息时;When determining whether the response message from the receiver can continue to be received within the specified time;

若是,将该连线的状态修改为可运行状态,并确定该连线为稳定运行状态;If so, modify the state of the connection to an operational state, and determine that the connection is in a stable operation state;

若否,则确定该连线已中断。If not, it is determined that the connection has been interrupted.

可选的,在指定时间内,根据该连线的信号探测响应结果确定该连线是否能够稳定运行,还包括:Optionally, within a specified time, determine whether the connection can run stably according to the signal detection response result of the connection, further including:

在所述指定时间内对该连线进行循环探测,得到循环探测结果;Perform loop detection on the connection within the specified time to obtain a loop detection result;

结合该连线的当前连线状态和所述循环探测结果,进一步确定该连线是否能够稳定运行。Combining the current connection state of the connection and the loop detection result, it is further determined whether the connection can run stably.

可选的,结合该连线的当前连线状态和所述循环探测结果,进一步确定该连线是否能够稳定运行,包括:Optionally, combining the current connection state of the connection and the loop detection result, it is further determined whether the connection can run stably, including:

若该连线的当前连线状态为运作中但不稳定,且所述循环探测结果为探测失败次数不大于预设阈值,则确定该连线能够稳定运行;If the current connection state of the connection is in operation but unstable, and the cycle detection result is that the number of detection failures is not greater than the preset threshold, it is determined that the connection can run stably;

若该连线的当前连线状态为运行中,且所述循环探测结果为探测失败次数大于所述预设阈值,则确定该连线切换至运作中但不稳定的连线状态。If the current connection state of the connection is running, and the cycle detection result is that the number of detection failures is greater than the preset threshold, it is determined that the connection is switched to the running but unstable connection state.

可选的,若结合连线的当前连线状态和所述循环探测结果确定出至少两条连线能够稳定运行,选择能够稳定运行的连线在所述发送方与所述接收方间建立远程协助还包括:Optionally, if it is determined that at least two connections can run stably based on the current connection state of the connection and the loop detection result, select the connection that can run stably to establish a remote connection between the sender and the receiver. Assistance also includes:

进一步比较各连线循环探测失败的次数;Further compare the number of loop detection failures of each connection;

选择循环探测失败次数最少的连线在所述发送方与所述接收方间建立远程协助。The connection with the least number of failed round-robin probes is selected to establish remote assistance between the sender and the receiver.

可选的,选择能够稳定运行的连线在所述发送方与所述接收方间建立远程协助,还包括:Optionally, selecting a connection that can run stably to establish remote assistance between the sender and the receiver, further comprising:

当能够稳定运行的连线存在多条时,结合如下至少之一的参数确定出最优的连线:所述接收方上次收到数据包的时间,各连线的延迟时间RTT;When there are multiple connections that can run stably, the optimal connection is determined in combination with at least one of the following parameters: the last time the receiver received the data packet, and the delay time RTT of each connection;

选择最优的连线在所述发送方和所述接收方间建立远程协助。Selecting the optimal connection establishes remote assistance between the sender and the receiver.

可选的,对所述发送方与所述接收方之间存在的多个中继站点提供的多条连线进行连线探测,还包括:Optionally, performing connection detection on multiple connections provided by multiple relay sites existing between the sender and the receiver, further comprising:

采用预设规则在所述多个中继站点提供的多条连线中选择进行连线探测的至少一条连线;Selecting at least one connection for connection detection among the multiple connections provided by the multiple relay sites by using a preset rule;

对选择出的至少一条连线进行连线探测;Perform connection detection on at least one selected connection;

其中,所述预设规则包括下列至少之一:Wherein, the preset rules include at least one of the following:

本次连线之前已被选择过的连线;The connection that has been selected before this connection;

非运行中状态且之前已被探测成功的连线中,距当前最久没有被探测过的连线;Among the connections that are not running and have been successfully detected before, the connection that has not been detected for the longest time;

距当前最久没有被探测过的连线。The connection that has not been probed for the longest time.

可选的,所述方法还包括:Optionally, the method further includes:

若远程协助的网络环境发生变化,则重新在所述发起方和所述接收方间选择连线以建立远程协助。If the network environment of the remote assistance changes, the connection between the initiator and the receiver is re-selected to establish the remote assistance.

可选的,所述远程协助的网络环境发生变化,包括下列至少之一:Optionally, the network environment of the remote assistance changes, including at least one of the following:

所述网络环境中有新的连线生成;A new connection is generated in the network environment;

所述网络环境中有连线被销毁;A connection in the network environment is destroyed;

所述网络环境中有连线的状态被更改;The state of the connection in the network environment is changed;

所述接收端接收到远程的探测信号;the receiver receives a remote detection signal;

所述接收端接收到远程的数据包。The receiving end receives the remote data packet.

可选的,所述探测信号为因特网探测器PING。Optionally, the detection signal is an Internet probe PING.

依据本发明实施例的另一个方面,提供了一种移动终端远程协助的连线探测装置,应用于远程协助的发起方,所述装置包括:According to another aspect of the embodiments of the present invention, a connection detection device for remote assistance of a mobile terminal is provided, which is applied to an initiator of remote assistance, and the device includes:

连线请求发起模块,适于通过网络向远程协助的接收方发起远程协助的连线请求;The connection request initiating module is suitable for initiating a connection request for remote assistance to the recipient of the remote assistance through the network;

连线探测模块,适于对所述发送方与所述接收方之间存在的多个中继站点提供的多条连线进行连线探测,其中,各连线按如下步骤进行探测:通过该连线发出探测信号;经该连线首次接收到所述接收方针对所述探测信号的响应消息时,将该连线的状态切换至运作中但不稳定的连线状态;在指定时间内,根据该连线的信号探测响应结果确定该连线是否能够稳定运行;The connection detection module is adapted to perform connection detection on multiple connections provided by multiple relay sites existing between the sender and the receiver, wherein each connection is detected according to the following steps: through the connection The line sends out a detection signal; when the receiver's response message to the detection signal is received through the connection for the first time, the state of the connection is switched to an operating but unstable connection state; within a specified time, according to the The signal detection response result of the connection determines whether the connection can operate stably;

远程协助建立模块,适于选择能够稳定运行的连线在所述发送方与所述接收方间建立远程协助。The remote assistance establishing module is adapted to select a connection that can run stably to establish remote assistance between the sender and the receiver.

可选的,所述连线探测模块还适于:Optionally, the connection detection module is further adapted to:

在所述指定时间内,确定是否能够继续接收到来自所述接收方的响应消息时;When determining whether the response message from the receiver can continue to be received within the specified time;

若是,将该连线的状态修改为可运行状态,并确定该连线为稳定运行状态;If so, modify the state of the connection to an operational state, and determine that the connection is in a stable operation state;

若否,则确定该连线已中断。If not, it is determined that the connection has been interrupted.

可选的,所述连线探测模块还适于:Optionally, the connection detection module is further adapted to:

在所述指定时间内对该连线进行循环探测,得到循环探测结果;Perform loop detection on the connection within the specified time to obtain a loop detection result;

结合该连线的当前连线状态和所述循环探测结果,进一步确定该连线是否能够稳定运行。Combining the current connection state of the connection and the loop detection result, it is further determined whether the connection can run stably.

可选的,所述连线探测模块还适于:Optionally, the connection detection module is further adapted to:

若该连线的当前连线状态为运作中但不稳定,且所述循环探测结果为探测失败次数不小于预设阈值,则确定该连线能够稳定运行;If the current connection status of the connection is in operation but unstable, and the cycle detection result is that the number of detection failures is not less than the preset threshold, it is determined that the connection can run stably;

若该连线的当前连线状态为运行中,且所述循环探测结果为探测失败次数大于所述预设阈值,则确定该连线切换至运作中但不稳定的连线状态。If the current connection state of the connection is running, and the cycle detection result is that the number of detection failures is greater than the preset threshold, it is determined that the connection is switched to the running but unstable connection state.

可选的,所述远程协助建立模块还适于:Optionally, the remote assistance establishing module is further adapted to:

若结合连线的当前连线状态和所述循环探测结果确定出至少两条连线能够稳定运行,进一步比较各连线循环探测失败的次数;If it is determined that at least two connections can run stably in combination with the current connection state of the connection and the cycle detection result, further compare the number of times that the cycle detection fails for each connection;

选择循环探测失败次数最少的连线在所述发送方与所述接收方间建立远程协助。The connection with the least number of failed round-robin probes is selected to establish remote assistance between the sender and the receiver.

可选的,所述远程协助建立模块还适于:Optionally, the remote assistance establishing module is further adapted to:

当能够稳定运行的连线存在多条时,结合如下至少之一的参数确定出最优的连线:所述接收方上次收到数据包的时间,各连线的延迟时间RTT;When there are multiple connections that can run stably, the optimal connection is determined in combination with at least one of the following parameters: the last time the receiver received the data packet, and the delay time RTT of each connection;

选择最优的连线在所述发送方和所述接收方间建立远程协助。Selecting the optimal connection establishes remote assistance between the sender and the receiver.

可选的,所述连线探测模块还适于:Optionally, the connection detection module is further adapted to:

采用预设规则在所述多个中继站点提供的多条连线中选择进行连线探测的至少一条连线;Selecting at least one connection for connection detection among the multiple connections provided by the multiple relay sites by using a preset rule;

对选择出的至少一条连线进行连线探测;Perform connection detection on at least one selected connection;

其中,所述预设规则包括下列至少之一:Wherein, the preset rules include at least one of the following:

本次连线之前已被选择过的连线;The connection that has been selected before this connection;

非运行中状态且之前已被探测成功的连线中,距当前最久没有被探测过的连线;Among the connections that are not running and have been successfully detected before, the connection that has not been detected for the longest time;

距当前最久没有被探测过的连线。The connection that has not been probed for the longest time.

可选的,所述装置还包括:Optionally, the device further includes:

重启模块,适于若远程协助的网络环境发生变化,则重新在所述发起方和所述接收方间选择连线以建立远程协助。The restarting module is adapted to re-select a connection between the initiator and the receiver to establish the remote assistance if the network environment of the remote assistance changes.

可选的,所述重启模块中的远程协助的网络环境发生变化,包括下列至少之一:Optionally, the network environment of the remote assistance in the restart module changes, including at least one of the following:

所述网络环境中有新的连线生成;A new connection is generated in the network environment;

所述网络环境中有连线被销毁;A connection in the network environment is destroyed;

所述网络环境中有连线的状态被更改;The state of the connection in the network environment is changed;

所述接收端接收到远程的探测信号;the receiver receives a remote detection signal;

所述接收端接收到远程的数据包。The receiving end receives the remote data packet.

可选的,所述探测信号为因特网探测器PING。Optionally, the detection signal is an Internet probe PING.

依据本发明实施例的又一个方面,提供了一种移动终端,包括处理器和存储器:According to yet another aspect of the embodiments of the present invention, a mobile terminal is provided, including a processor and a memory:

所述存储器用于存储执行上述任一项移动终端远程协助的连线探测方法的程序;The memory is used to store a program for executing any of the above-mentioned connection detection methods for remote assistance of a mobile terminal;

所述处理器被配置为用于执行所述存储器中存储的程序。The processor is configured to execute programs stored in the memory.

依据本发明实施例的又一个方面,提供了一种计算机存储介质,用于储存为上述移动终端远程协助的连线探测装置所用的计算机软件指令,其包含用于执行上述方面为移动终端远程协助的连线探测装置所设计的程序。According to yet another aspect of the embodiments of the present invention, a computer storage medium is provided for storing computer software instructions used by the connection detection device for the above-mentioned remote assistance of the mobile terminal. The program designed by the connection detection device.

本发明实施例,为了解决在移动终端远程协助时,由于用户的移动终端所属的运营商不同,或者属同一运营商时用户使用的网络不同,从而导致的移动终端远程协助过程中网络信号不稳定以及经常性的出现数据包丢失的问题,提出了一种移动终端远程协助的连线探测方法。该方法的实现能够在移动终端进行远程协助时为用户提供一条优质的传输通道,以满足数据能够通过该通道达到快速、完整、稳定传输的目的,同时可以提高网络的安全性能,确保数据的准确性,提升用户体验。具体地,对移动终端远程协助之间的连线进行探测,首先,远程协助的发起方可以通过网络向远程协助的接收方发起远程协助的连线请求,在远程协助的接收方收到连线请求的信号后,对该信号做出响应,表明两者之间的传输通道是连通的,远程协助的发送方接收到响应后可以在该传输通道上建立连接,进行相应的数据传输。但是,远程协助的发送方和接收方之间存在多条连接通道,为了确保信号的稳定性和数据的准确性,可以对发送方与接收方之间存在的多个中继站点提供的多条连线进行连线探测,以找到信号传输最稳定、传输速度最快的一条通道在发送方和接收方之间建立远程协助。在对每一具体连线进行探测时,可以通过该连线发出探测信号,该连线的接收方接收到探测信号后会做出响应。确定该连线是连通的之后,本实施例提供的移动终端远程协助的连线探测方法,将该连线的状态切换至运作中但不稳定的连线状态,而并不是在确定该连线连通之后直接将连线状态切换至运作中。这种状态切换的转变避免了探测信号后续在传输通道出现中断或其他问题而导致连线中断时,之前确定的稳定状态又会出现不稳定的状况,进一步提高了传输的稳定性。在连线处于运作中但不稳定的连线状态时,可以在指定时间内,根据该连线的信号探测响应结果确定该连线是否能够稳定运行,为选择出一条最优的连线提供了重要基础。最终,根据探测结果选择能够稳定运行的连线在发送方与接收方之间建立远程协助。由此可见,采用本发明实施例提供的方法,可以在移动终端远程协助时,为用户提供一条能够确保信号稳定、快速传输的连接通道。避免出现信号中断以及数据包丢失等问题,提高了网络的稳定性,缩短了数据传输时间,保证了数据准确性,提升了用户体验,为用户提供了极大便利。In the embodiment of the present invention, in order to solve the problem that the network signal is unstable during the remote assistance of the mobile terminal during the remote assistance of the mobile terminal due to the different operators that the user's mobile terminal belongs to, or the different networks used by the user when they belong to the same operator And the problem of frequent data packet loss, a connection detection method for remote assistance of mobile terminals is proposed. The implementation of the method can provide a high-quality transmission channel for users when the mobile terminal performs remote assistance, so as to meet the purpose of fast, complete and stable data transmission through this channel, and at the same time, it can improve the security performance of the network and ensure the accuracy of the data. properties to enhance the user experience. Specifically, the connection between the remote assistance of the mobile terminal is detected. First, the initiator of the remote assistance can initiate a connection request for the remote assistance to the receiver of the remote assistance through the network, and the receiver of the remote assistance receives the connection. After receiving the requested signal, it responds to the signal, indicating that the transmission channel between the two is connected. After receiving the response, the sender of the remote assistance can establish a connection on the transmission channel and perform corresponding data transmission. However, there are multiple connection channels between the sender and receiver of remote assistance. In order to ensure the stability of the signal and the accuracy of the data, the multiple connection channels provided by the multiple relay sites between the sender and the receiver can be Line detection is performed to find the channel with the most stable signal transmission and the fastest transmission speed to establish remote assistance between the sender and the receiver. When detecting each specific connection, a detection signal can be sent through the connection, and the receiver of the connection will respond after receiving the detection signal. After it is determined that the connection is connected, the connection detection method for remote assistance of a mobile terminal provided in this embodiment switches the state of the connection to an active but unstable connection state, instead of determining the connection After connecting, switch the connection state to running directly. This transition of state switching prevents the previously determined stable state from becoming unstable when the detection signal is subsequently interrupted or other problems cause the connection to be interrupted, which further improves the transmission stability. When the connection is in the running but unstable connection state, it can be determined whether the connection can run stably according to the signal detection response result of the connection within a specified time, which provides an optimal connection for selecting an optimal connection. important foundation. Finally, according to the detection results, select a connection that can run stably to establish remote assistance between the sender and the receiver. It can be seen that, by using the method provided by the embodiment of the present invention, a connection channel that can ensure stable and fast signal transmission can be provided for the user when the mobile terminal is assisted remotely. It avoids problems such as signal interruption and data packet loss, improves network stability, shortens data transmission time, ensures data accuracy, improves user experience, and provides users with great convenience.

上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solutions of the present invention, in order to be able to understand the technical means of the present invention more clearly, it can be implemented according to the content of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand , the following specific embodiments of the present invention are given.

根据下文结合附图对本发明具体实施例的详细描述,本领域技术人员将会更加明了本发明的上述以及其他目的、优点和特征。The above and other objects, advantages and features of the present invention will be more apparent to those skilled in the art from the following detailed description of the specific embodiments of the present invention in conjunction with the accompanying drawings.

附图说明Description of drawings

通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are for the purpose of illustrating preferred embodiments only and are not to be considered limiting of the invention. Also, the same components are denoted by the same reference numerals throughout the drawings. In the attached image:

图1是根据本发明一个实施例的移动终端远程协助的连线探测方法的处理流程图;1 is a process flow diagram of a connection detection method for remote assistance of a mobile terminal according to an embodiment of the present invention;

图2是根据本发明一个实施例的移动终端远程协助之间的多种连线方式示意图;2 is a schematic diagram of multiple connection modes between remote assistance of a mobile terminal according to an embodiment of the present invention;

图3是根据本发明一个实施例的采用预设规则选择被探测的连线的三种方式图;3 is a diagram of three ways to select a detected connection by using a preset rule according to an embodiment of the present invention;

图4是根据本发明一个实施例的对发送方与接收方之间存在的多个中继站点提供的各连线进行探测的处理流程图;4 is a process flow chart of detecting each connection provided by multiple relay sites existing between a sender and a receiver according to an embodiment of the present invention;

图5是根据本发明一个实施例的移动终端远程协助的连线的现有状态迁移图;Fig. 5 is the existing state transition diagram of the connection of the remote assistance of the mobile terminal according to an embodiment of the present invention;

图6是根据本发明一个实施例的移动终端远程协助的连线的本发明状态迁移图;Fig. 6 is the state transition diagram of the present invention of the connection of the remote assistance of the mobile terminal according to an embodiment of the present invention;

图7是根据本发明一个实施例的移动终端远程协助的连线探测装置的示意性框图;7 is a schematic block diagram of a connection detection device for remote assistance of a mobile terminal according to an embodiment of the present invention;

图8是根据本发明一个实施例的移动终端远程协助的连线探测装置的另一个示意性框图;以及FIG. 8 is another schematic block diagram of a connection detection device for remote assistance of a mobile terminal according to an embodiment of the present invention; and

图9是根据本发明一个实施例的移动终端的结构示意图。FIG. 9 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.

具体实施方式Detailed ways

下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided so that the present disclosure will be more thoroughly understood, and will fully convey the scope of the present disclosure to those skilled in the art.

为解决上述技术问题,本发明实施例提供了一种移动终端远程协助的连线探测方法。图1是根据本发明一个实施例的移动终端远程协助的连线探测方法的处理流程图。如图1所示,移动终端远程协助的连线探测方法至少包括步骤S102至步骤S106:In order to solve the above technical problem, an embodiment of the present invention provides a connection detection method for remote assistance of a mobile terminal. FIG. 1 is a process flow diagram of a connection detection method for remote assistance of a mobile terminal according to an embodiment of the present invention. As shown in FIG. 1 , the connection detection method for remote assistance of the mobile terminal includes at least steps S102 to S106:

步骤S102、通过网络向远程协助的接收方发起远程协助的连线请求;Step S102, initiating a connection request for remote assistance to the recipient of the remote assistance through the network;

步骤S104、对发送方与接收方之间存在的多个中继站点提供的多条连线(connection)进行连线探测,其中,各连线按如下步骤进行探测:Step S104, performing connection detection on multiple connections (connections) provided by multiple relay sites existing between the sender and the receiver, wherein each connection is detected according to the following steps:

通过该连线发出探测信号;经该连线首次接收到接收方针对探测信号的响应消息时,将该连线的状态切换至运作中但不稳定的连线状态;在指定时间内,根据该连线的信号探测响应结果确定该连线是否能够稳定运行;Send a detection signal through the connection; when the receiver's response message to the detection signal is received through the connection for the first time, the connection state is switched to an operating but unstable connection state; within a specified time, according to the connection The signal detection response result of the connection determines whether the connection can operate stably;

步骤S106、选择能够稳定运行的连线在发送方与接收方间建立远程协助。Step S106, select a connection that can run stably to establish remote assistance between the sender and the receiver.

本发明实施例,为了解决在移动终端远程协助时,由于用户的移动终端所属的运营商不同,或者属同一运营商时用户使用的网络不同,从而导致的移动终端远程协助过程中网络信号不稳定以及经常性的出现数据包丢失的问题,提出了一种移动终端远程协助的连线探测方法。该方法的实现能够在移动终端进行远程协助时为用户提供一条优质的传输通道,以满足数据能够达到快速、完整、稳定传输的目的,同时可以提高网络的安全性能,确保数据的准确性,提升用户体验。具体地,对移动终端远程协助之间的连线进行探测,首先,远程协助的发起方可以通过网络向远程协助的接收方发起远程协助的连线请求,在远程协助的接收方收到连线请求的信号后,对该信号做出响应,表明两者之间的传输通道是连通的,远程协助的发送方接收到响应后可以在该传输通道上建立连接,进行相应的数据传输。但是,远程协助的发送方和接收方之间存在多条连接通道,为了确保信号的稳定性和数据的准确性,可以对发送方与接收方之间存在的多个中继站点提供的多条连线进行连线探测,以找到传输信号最稳定、传输速度最快的一条通道在发送方与接收方之间建立远程协助。在对每一具体连线进行探测时,可以通过该连线发出探测信号,该连线的接收方接收到探测信号后会做出响应。确定该连线是连通的之后,本实施例提供的移动终端远程协助的连线探测方法,将该连线的状态切换至运作中但不稳定的连线状态,而并不是在确定该连线连通之后直接将连线状态切换至运作中。这种状态切换的转变避免了探测信号后续在传输通道出现中断或其他问题而导致连线中断时,之前确定的稳定状态又会出现不稳定的状况,进一步提高了传输的稳定性。在连线处于运作中但不稳定的连线状态时,可以在指定时间内,根据该连线的信号探测响应结果确定该连线是否能够稳定运行,为选择出一条最优的连线提供了重要基础。最终,根据探测结果选择能够稳定运行的连线在发送方与接收方之间建立远程协助。由此可见,采用本发明实施例提供的方法,可以在移动终端远程协助时,为用户提供一条能够确保信号稳定、快速传输的连接通道。避免出现信号中断以及数据包丢失等问题,提高了网络的稳定性,缩短了数据传输时间,保证了数据准确性,提升了用户体验,为用户提供了极大便利。In the embodiment of the present invention, in order to solve the problem that the network signal is unstable during the remote assistance of the mobile terminal during the remote assistance of the mobile terminal due to the different operators that the user's mobile terminal belongs to, or the different networks used by the user when they belong to the same operator And the problem of frequent data packet loss, a connection detection method for remote assistance of mobile terminals is proposed. The implementation of the method can provide a high-quality transmission channel for the user when the mobile terminal performs remote assistance, so as to meet the purpose of fast, complete and stable data transmission, and at the same time, it can improve the security performance of the network, ensure the accuracy of the data, and improve the user experience. Specifically, the connection between the remote assistance of the mobile terminal is detected. First, the initiator of the remote assistance can initiate a connection request for the remote assistance to the receiver of the remote assistance through the network, and the receiver of the remote assistance receives the connection. After receiving the requested signal, it responds to the signal, indicating that the transmission channel between the two is connected. After receiving the response, the sender of the remote assistance can establish a connection on the transmission channel and perform corresponding data transmission. However, there are multiple connection channels between the sender and receiver of remote assistance. In order to ensure the stability of the signal and the accuracy of the data, the multiple connection channels provided by the multiple relay sites between the sender and the receiver can be Line detection is carried out to find a channel with the most stable transmission signal and the fastest transmission speed, and establish remote assistance between the sender and the receiver. When detecting each specific connection, a detection signal can be sent through the connection, and the receiver of the connection will respond after receiving the detection signal. After it is determined that the connection is connected, the connection detection method for remote assistance of a mobile terminal provided in this embodiment switches the state of the connection to an active but unstable connection state, instead of determining the connection After connecting, switch the connection state to running directly. This transition of state switching prevents the previously determined stable state from becoming unstable when the detection signal is subsequently interrupted or other problems cause the connection to be interrupted, which further improves the transmission stability. When the connection is in the running but unstable connection state, it can be determined whether the connection can run stably according to the signal detection response result of the connection within a specified time, which provides an optimal connection for selecting an optimal connection. important foundation. Finally, according to the detection results, select a connection that can run stably to establish remote assistance between the sender and the receiver. It can be seen that, by using the method provided by the embodiment of the present invention, a connection channel that can ensure stable and fast signal transmission can be provided for the user when the mobile terminal is assisted remotely. It avoids problems such as signal interruption and data packet loss, improves network stability, shortens data transmission time, ensures data accuracy, improves user experience, and provides users with great convenience.

具体地,在利用本发明实施例提供的移动终端远程协助的连线探测方法时,以用户经常用到的移动终端(手机、平板电脑等,后续以常用的手机为例)远程协助为例。比如,用户A所持的移动终端为本次远程协助的发起方(为方便辨别,后简称用户A),用户B所持的移动终端为本次远程协助的接收方(后简称用户B)。利用本发明实施例提供的方法,远程协助的发起方(即用户A)通过网络向远程协助的接收方(即用户B)发起手机远程协助的连线请求,用户B接收到该连线请求信号后,对该请求信号做出相应的反馈。如果用户B接受请求,则远程协助的连线接通,用户A、B可以通过该连线进行远程协助。如果用户B拒绝请求,则远程协助的连线中断。其间,在用户B接受请求后,远程协助可以通过多条连线来进行。图2是根据本发明一个实施例的移动终端远程协助之间的多种连线方式的示意图。如图2所示,用户A与用户B之间可以通过直接传递的方式建立连接,也可以通过中转服务器来建立连接。P2P(Peer to Peer,对等网络)是一种在对等者(Peer)之间分配任务和工作负载的分布式应用架构,是对等计算模型在应用层形成的一种组网或网络形式。STUN(SimpleTraversal of UDP over NATS,NAT(Network Address Translation,网络地址转换)的UDP简单穿越)是一种网络协议,它允许位于NAT(或多重NAT)后的客户端找出自己的公网地址,查出自己位于哪种类型的NAT之后以及NAT为某一个本地端口所绑定的网络端口。UDP(UserDatagram Protocol,用户数据报协议),是OSI(Open System Interconnection,开放式系统互联)参考模型中一种无连接的传输层协议,提供面向事务的简单不可靠信息传送服务。TCP(Transmission Control Protocol,传输控制协议)是一种面向连接的、可靠的、基于字节流的传输层通信协议。在用户A和用户B之间进行远程协助时可以选择不同的连线建立连接。在本实施例中,用户A是发起连线的一方(ICE_CONTROLLING),用户B是接收连线的一方(ICE_CONTROLLED)。建立连接时,连接状态(connect state)分为两种:已连线(connected)和未连线(not connected)(TCP连线才会有未连线状态)。接收状态(receive state,下行传输)分为两种:接收未运作(not receiving)和接收运作中(receiving)。写状态(writestate,上行传输)分为四种:初始状态(init)、传送运作中,但不稳定(unreliable)、传送运作中(writable)和传送超时(timeout)。Specifically, when using the connection detection method for remote assistance of a mobile terminal provided by the embodiment of the present invention, the remote assistance of a mobile terminal (mobile phone, tablet computer, etc., which is commonly used as an example in the following) is often used by users as an example. For example, the mobile terminal held by user A is the initiator of this remote assistance (hereinafter referred to as user A), and the mobile terminal held by user B is the recipient of this remote assistance (hereinafter referred to as user B). Using the method provided by the embodiment of the present invention, the initiator of the remote assistance (that is, user A) initiates a connection request for the remote assistance of the mobile phone to the recipient of the remote assistance (that is, user B) through the network, and user B receives the connection request signal Then, make corresponding feedback to the request signal. If user B accepts the request, the connection for remote assistance is connected, and users A and B can perform remote assistance through the connection. If user B rejects the request, the connection to the remote assistance is interrupted. Meanwhile, after the user B accepts the request, the remote assistance can be performed through multiple connections. FIG. 2 is a schematic diagram of multiple connection manners between remote assistance of a mobile terminal according to an embodiment of the present invention. As shown in FIG. 2 , a connection can be established between user A and user B through direct transfer, or through a transit server. P2P (Peer to Peer, peer-to-peer network) is a distributed application architecture that distributes tasks and workloads among peers (Peers), and is a networking or network form formed by a peer-to-peer computing model at the application layer. . STUN (SimpleTraversal of UDP over NATS, UDP Simple Traversal of NAT (Network Address Translation)) is a network protocol that allows clients behind NAT (or multiple NATs) to find out their own public network address, Find out which type of NAT you are behind and which network port the NAT is bound to a local port. UDP (User Datagram Protocol, User Datagram Protocol) is a connectionless transport layer protocol in the OSI (Open System Interconnection, Open System Interconnection) reference model, providing a transaction-oriented simple and unreliable information transmission service. TCP (Transmission Control Protocol, Transmission Control Protocol) is a connection-oriented, reliable, byte stream-based transport layer communication protocol. When performing remote assistance between user A and user B, you can select different connections to establish a connection. In this embodiment, user A is the party that initiates the connection (ICE_CONTROLLING), and user B is the party that receives the connection (ICE_CONTROLLED). When establishing a connection, the connection state (connect state) is divided into two types: connected (connected) and not connected (not connected) (the TCP connection will have a disconnected state). The receiving state (receive state, downlink transmission) is divided into two types: not receiving (not receiving) and receiving (receiving). The write state (writestate, upstream transmission) is divided into four types: initial state (init), transmission in operation, but unstable (unreliable), transmission in operation (writable), and transmission timeout (timeout).

相应的,中转服务器的布建选择及连线方式的选择会直接影响连线的品质,因此,为了在远程协助时,信号能够更加稳定,数据传输能够更加流畅,可以对用户A与用户B之间存在的多个中继站点提供的多条连线进行连线探测,以找到一条最优的连接通道在用户A、B之间建立连接。Correspondingly, the choice of relay server deployment and connection method will directly affect the quality of the connection. Therefore, in order to make the signal more stable and the data transmission smoother during remote assistance, the connection between user A and user B can be improved. Multiple connections provided by multiple relay sites between users are used for connection detection to find an optimal connection channel to establish a connection between users A and B.

进一步,对用户A与用户B之间存在的多个中继站点提供的多条连线进行探测,可以采用预设规则在上述多个中继站点提供的多条连线中选择进行连线的至少一条连线。采用预设规则选择被探测的连线时可以有多种方式,图3示出的是根据本发明一个实施例的采用预设规则选择被探测的连线的三种方式图。如图3所示:Further, to detect multiple connections provided by multiple relay sites existing between user A and user B, a preset rule can be used to select at least one connection from the multiple connections provided by the multiple relay sites. connect. There are many ways to select a detected connection by using a preset rule. FIG. 3 shows a diagram of three ways to select a detected connection by using a preset rule according to an embodiment of the present invention. As shown in Figure 3:

第一种,可以选择本次连线之前已被选择过的连线(Selected connection)。First, you can select the selected connection before this connection (Selected connection).

第二种,可以选择非运行中状态且之前已被探测成功的连线中,距当前最久没有被探测过的连线(非writable且曾经ping成功的connection中,最久没有ping的connection)。Second, you can select the connection that is not running and has been successfully detected before, the connection that has not been detected for the longest time (the connection that is not writable and has been successfully pinged, the connection that has not been pinged for the longest time) .

第三种,可以选择距当前最久没有被探测过的连线(最久没有ping的connection)。Third, you can select the connection that has not been probed for the longest time (the connection that has not been pinged for the longest time).

根据上述方法选择出连线后,本实施例提出了一种对该连线进行具体探测的探测方法。图4是根据本发明一个实施例的对发送方与接收方之间存在的多个中继站点提供的各连线进行探测的处理流程图。如图4所示,该探测方法至少包括步骤S402至步骤S406:After the connection is selected according to the above method, this embodiment proposes a detection method for performing specific detection on the connection. FIG. 4 is a process flow chart of detecting each connection provided by a plurality of relay sites existing between a sender and a receiver according to an embodiment of the present invention. As shown in FIG. 4 , the detection method includes at least steps S402 to S406:

步骤S402、通过该连线发出探测信号;Step S402, sending a detection signal through the connection;

步骤S404、经该连线首次接收到接收方针对探测信号的响应消息时,将该连线的状态切换至运作中但不稳定的连线状态;Step S404, when the response message of the receiver to the probe signal is received for the first time through the connection, the state of the connection is switched to an active but unstable connection state;

步骤S406、在指定时间内,根据该连线的信号探测响应结果确定该连线是否能够稳定运行。Step S406 , within a specified time, determine whether the connection can run stably according to the signal detection response result of the connection.

具体地,用户A可以通过该连线发出探测信号PING(Packet Internet Groper)。PING是Windows、Unix和Linux系统下的一个命令,也是一种因特网包探索器,用来检查网络是否通畅或者测定网络连接速度。利用网络上机器IP地址的唯一性,给目标IP地址发送一个数据包,再要求对方返回一个同样大小的数据包来确定两网络机器是否连接相通,并且确定具体时延是多少。可以每隔固定时间,尝试选择一个连线发出PING(有可能选不出来,选不出来就不发送),此时,分为两种模式:频繁模式和一般模式。频繁模式是每隔48ms向选择出的连线发一次PING,一般模式是每隔250ms向选择出的连线发一次PING。还可以设定一个最短时间间隔,每经该时间间隔向选择出的连线发一次PING,该时间间隔可以根据所选择的连线的状态来确定。因此,在步骤S402执行结束后,用户B接收到用户A发送的该探测信号,并针对该信号做出相应反馈,当用户A经该连线首次接收到用户B针对探测信号的响应消息时,将该连线的状态进行相应的切换。Specifically, user A can send a detection signal PING (Packet Internet Groper) through the connection. PING is a command under Windows, Unix and Linux systems. It is also an Internet packet explorer used to check whether the network is smooth or to measure the speed of the network connection. Using the uniqueness of the IP address of the machine on the network, send a data packet to the target IP address, and then ask the other party to return a data packet of the same size to determine whether the two network machines are connected and determine the specific delay. You can try to select a connection to send PING every fixed time (it may not be selected, and it will not be sent if it cannot be selected). At this time, it is divided into two modes: frequent mode and general mode. The frequent mode is to send a PING to the selected connection every 48ms, and the general mode is to send a PING to the selected connection every 250ms. A shortest time interval can also be set, and PING is sent to the selected connection every time interval, and the time interval can be determined according to the state of the selected connection. Therefore, after the execution of step S402 is completed, user B receives the detection signal sent by user A, and makes corresponding feedback for the signal. When user A receives the response message of user B for the detection signal for the first time through the connection, Switch the state of the connection accordingly.

图5示出了根据本发明一个实施例的移动终端远程协助的连线的现有状态迁移图。如图5所示,用户A通过该连线发出探测信号,用户B接收到用户A发送的探测信号并做出反馈,产生连接的初始状态(步骤51),当用户A经该连线首次接收到用户B针对该信号的响应消息时,将该连线的状态切换至运作中(步骤52),若在该状态之后太久没有收到针对探测信号的响应消息,则将该状态切换至运作中但不稳定(步骤53),若在运作中但不稳定的状态下收到响应消息,则将连线状态再次切换至运作中(步骤54),若太久没有收到响应消息,则传送超时(步骤55),该连线方式被销毁(destroy)(步骤57)。若连线状态处于传送运作中且有相同的网络成本(network cost)与优先级(priority)时,则传送超时(步骤56),该连线方式被销毁(步骤57)。但此时在用手机进行远程协助时,有可能会出现原来网络信号稳定但是经过一段时间之后网络信号不稳定的情况,无法避免信号中断等问题。FIG. 5 shows an existing state transition diagram of the connection of the remote assistance of the mobile terminal according to an embodiment of the present invention. As shown in FIG. 5 , user A sends a detection signal through the connection, and user B receives the detection signal sent by user A and gives feedback to generate the initial state of the connection (step 51 ). When user A receives the detection signal through the connection for the first time When the response message for the signal from user B arrives, the state of the connection is switched to active (step 52 ), and if no response message to the probe signal is received after this state, the state is switched to active Moderate but unstable (step 53), if a response message is received in the running but unstable state, switch the connection state to running again (step 54), if no response message is received for too long, transmit Timeout (step 55), the connection is destroyed (step 57). If the connection state is in transmission operation and has the same network cost and priority, the transmission times out (step 56 ), and the connection is destroyed (step 57 ). However, when using a mobile phone for remote assistance at this time, there may be a situation where the original network signal is stable but the network signal is unstable after a period of time, and problems such as signal interruption cannot be avoided.

为此,本发明实施例执行步骤S404,图6示出了根据本发明一个实施例的移动终端远程协助的连线的本发明状态迁移图。如图6所示,用户B接收到用户A发送的探测信号并做出反馈,则产生连接的初始状态(步骤61),当用户A经该连线首次接收到用户B针对该信号的响应消息时,若网络情况可以明显地确定为稳定状态,此时,为了加快建立连线的速度,可以将连线直接设定为运作中的状态并尝试进行传输(步骤62-a),若不能明确网络的稳定性,则将该连线的状态切换至运作中但不稳定(步骤62-b),此时在用手机进行远程协助时,用户并不会像现有技术中的直接认为网络处于稳定状态,而是认为网络处于不稳定状态,进而可以继续进行信号探测,找到更稳定的连线以避免信号中断等问题。To this end, the embodiment of the present invention executes step S404, and FIG. 6 shows a state transition diagram of the present invention of the connection of the remote assistance of the mobile terminal according to an embodiment of the present invention. As shown in FIG. 6 , user B receives the probe signal sent by user A and gives feedback, and generates the initial state of the connection (step 61 ). When user A receives the response message from user B to the signal for the first time through the connection At this time, if the network situation can be clearly determined to be a stable state, at this time, in order to speed up the establishment of the connection, the connection can be directly set to the running state and try to transmit (step 62-a). If the network is stable, the connection status is switched to running but unstable (step 62-b). At this time, when using the mobile phone for remote assistance, the user does not directly think that the network is in a state of In the stable state, the network is considered to be in an unstable state, and then signal detection can be continued to find a more stable connection to avoid problems such as signal interruption.

步骤S404执行结束之后,确定用户A与用户B之间的连线处于运作中但不稳定的状态,为了找到更稳定的连线,继续进行信号探测,执行步骤S406,在指定时间内,根据该连线的信号探测响应结果进一步确定该连线是否能够稳定运行。在根据该连线的信号探测响应结果进一步判断连线的稳定状态时,可以分为两个方面:After the execution of step S404 is completed, it is determined that the connection between user A and user B is in an operating but unstable state. In order to find a more stable connection, the signal detection is continued, and step S406 is executed. The signal probe response results of the connection further determine whether the connection can operate stably. When further judging the stable state of the connection according to the signal detection response result of the connection, it can be divided into two aspects:

第一个方面,在指定时间内,确定是否能够继续接收到来自接收方的响应消息。In the first aspect, it is determined whether the response message from the receiver can continue to be received within the specified time.

具体的,对连线的信号探测响应结果进行分析判断,如果用户A在指定时间内能够继续接收到来自用户B的响应消息,说明该连线一直处于连通状态,可以提供给用户进行数据传输,进而将该连线的状态修改为可运行状态,并确定该连线为稳定运行状态。如果用户A在指定时间内接收不到来自用户B的响应消息,说明该连线已经中断,则将该连线销毁,不再考虑。Specifically, the signal detection response result of the connection is analyzed and judged. If user A can continue to receive response messages from user B within the specified time, it means that the connection is always connected and can be provided to the user for data transmission. Then, the state of the connection is modified to an operable state, and it is determined that the connection is in a stable operation state. If user A does not receive a response message from user B within the specified time, indicating that the connection has been interrupted, the connection will be destroyed and not considered.

第二个方面,在指定时间内对该连线进行循环探测,得到循环探测结果,进而,结合该连线的当前连线状态和循环探测结果,进一步确定该连线是否能够稳定运行。In the second aspect, the connection is cyclically detected within a specified time to obtain a cyclic detection result, and further, it is further determined whether the connection can run stably by combining the current connection state of the connection and the cyclic detection result.

具体的,当连线第一次进入到运作中但不稳定的状态时,开始循环探测,每一轮尝试PING10次。其中,若有连线尚未完成基本的PING次数,或者连线的状态不稳定时,可以采取频繁探测模式,每隔48ms向该连线发一次PING。在对选择本次连线之前已经选择过的连线进行循环探测时,若该连线处于运作中但不稳定的状态,可以每隔900ms向该连线发一次PING。若该连线处于运作中状态时,可以每隔2500ms向该连线发一次PING,此时应至少发5次PING,若有尚未回应的PING,其发出的时间不超过2倍平均RTT(Round-Trip Time,延迟时间)。在对之间备份的连线进行循环探测时,可以每隔2500ms向该连线发一次PING。若用户A与用户B之间的连线状态为运作中但不稳定的状态,此时,可以结合循环探测结果进一步确定该连线是否能够稳定运行。当循环探测结果为探测失败次数不大于预设阈值时,说明该连线目前状态比较稳定。正如图6所示,若预设阈值为3,当循环探测结果的探测失败次数为0、1、2、3时,表明探测失败次数不大于预设阈值,确定该连线能够稳定运行,则将该连线状态切换至运行中(步骤63)。若用户A与用户B之间的连线状态为运行中,此时,也可以结合循环探测结果进一步确定该连线是否能够稳定运行。当循环探测结果为探测失败次数大于预设阈值时,说明该连线目前状态不稳定,如图6,预设阈值为3,当循环探测结果的探测失败次数为4、5、6、7……时,表明探测失败次数大于预设阈值,确定该连线运行不稳定,则将该连线切换至运作中但不稳定的连线状态(步骤64)。若在该状态下太久没有收到针对探测信号的响应消息,则传送超时(步骤65),该连线方式被销毁(步骤66)。Specifically, when the connection first enters the running but unstable state, the loop detection starts, and PING is attempted 10 times in each round. Among them, if there is a connection that has not completed the basic PING times, or the state of the connection is unstable, the frequent detection mode can be adopted, and a PING is sent to the connection every 48ms. When cyclic detection is performed on the connection that has been selected before this connection is selected, if the connection is in a running but unstable state, a PING can be sent to the connection every 900ms. If the connection is in operation, you can send a PING to the connection every 2500ms, and at least 5 times of PING should be sent at this time. -Trip Time, delay time). When cyclic detection is performed on the backup connection between them, a PING can be sent to the connection every 2500ms. If the state of the connection between user A and user B is in the running but unstable state, at this time, it can be further determined whether the connection can run stably in combination with the loop detection result. When the cycle detection result is that the number of detection failures is not greater than the preset threshold, it means that the current state of the connection is relatively stable. As shown in Figure 6, if the preset threshold is 3, when the number of detection failures in the cycle detection result is 0, 1, 2, and 3, it indicates that the number of detection failures is not greater than the preset threshold, and it is determined that the connection can run stably, then The connection state is switched to running (step 63). If the connection status between user A and user B is running, at this time, it can also be further determined whether the connection can run stably in combination with the loop detection result. When the cycle detection result is that the number of detection failures is greater than the preset threshold, it means that the current state of the connection is unstable. As shown in Figure 6, the preset threshold is 3, and when the cycle detection result has a detection failure number of 4, 5, 6, 7... ..., it indicates that the number of detection failures is greater than the preset threshold, and it is determined that the connection is unstable, and the connection is switched to an active but unstable connection state (step 64). If the response message for the probe signal is not received for too long in this state, the transmission times out (step 65 ), and the connection mode is destroyed (step 66 ).

在上述步骤执行结束后,若结合连线的当前连线状态和循环探测结果确定出至少两条连线能够稳定运行,在选择能够稳定运行的连线在发送方与接收方间建立远程协助时,可以进一步地比较各连线循环探测失败的次数,循环探测失败次数越少连线的稳定性越高,可以选择循环探测失败次数最少的连线在发送方与接收方间建立远程协助。比如,若结合连线的当前连线状态和循环探测结果确定出三条连线能够稳定运行,其中,第一条连线的循环探测失败次数为1,第二条连线的循环探测失败次数为2,第三条连线的循环探测失败次数为3,则选择循环探测失败次数最少的第一条连线在发送方与接收方之间建立远程协助。After the above steps are executed, if it is determined that at least two connections can run stably based on the current connection state of the connection and the loop detection result, when selecting a connection that can run stably to establish remote assistance between the sender and the receiver , the number of cyclic detection failures of each connection can be further compared. The fewer the number of cyclic detection failures, the higher the stability of the connection. The connection with the least number of cyclic detection failures can be selected to establish remote assistance between the sender and the receiver. For example, if it is determined that three connections can run stably based on the current connection state of the connection and the loop detection result, the number of loop detection failures of the first connection is 1, and the number of loop detection failures of the second connection is 2. If the number of loop detection failures of the third connection is 3, select the first connection with the least number of loop detection failures to establish remote assistance between the sender and the receiver.

进一步地,在选择能够稳定运行的连线在发送方与接收方之间建立远程协助时,除上述的选择判定方法,若能够稳定运行的连线存在多条时,还可以参考接收方上次收到数据包的时间,或者各连线的延迟时间RTT等参数,选择出最优的连线在发送方和接收方之间建立远程协助。比如,当连线处于运作中的状态时,若有超过5次PING尚未回复,且时间间隔皆已经超过了平均RTT,且尚未回复的PING中,最早发出的时间间隔超过5000ms,则将该连线切换至运作中但不稳定的状态。当连线处于运作中但不稳定的状态或者初始状态时,若尚未回复的PING中,最早发出的时间间隔超过5000ms,则传送超时,该连线的连接方式被销毁。Further, when selecting a connection that can run stably to establish remote assistance between the sender and the receiver, in addition to the above selection determination method, if there are multiple connections that can run stably, you can also refer to the last time the receiver The time of receiving the data packet, or the delay time RTT of each connection and other parameters, select the optimal connection to establish remote assistance between the sender and the receiver. For example, when the connection is in operation, if there are more than 5 PINGs that have not been replied yet, and the time interval has exceeded the average RTT, and among the PINGs that have not been replied, the earliest sent out time interval exceeds 5000ms, the connection will be The line switches to a working but unstable state. When the connection is in the running but unstable state or the initial state, if the time interval of the earliest sent PING exceeds 5000ms, the transmission will time out and the connection method of the connection will be destroyed.

在选择出最优的连线在发送方与接收方之间建立远程协助之后,若远程协助的网络环境发生变化,比如网络环境中有新的连线生成(有新的connection产生(candidate发生变化))、网络环境中有连线被销毁(connection被destroy)、网络环境中有连线的状态被更改(connection的connection state或receive state或write state发生变化)、接收端接收到远程的探测信号(ICE_CONTROLLED端收到远程的ping)或者接收端接收到远程的数据包(ICE_CONTROLLED端收到远程的数据包)等等,则重新在发起方与接收方之间选择连线以建立远程协助。After selecting the optimal connection to establish remote assistance between the sender and the receiver, if the network environment for remote assistance changes, for example, a new connection is generated in the network environment (a new connection is generated (candidate changes). )), the connection in the network environment is destroyed (connection is destroyed), the state of the connection in the network environment is changed (the connection state or receive state or write state of the connection changes), the receiver receives a remote detection signal (ICE_CONTROLLED end receives a remote ping) or the receiver receives a remote data packet (ICE_CONTROLLED end receives a remote data packet), etc., then re-select the connection between the initiator and the receiver to establish remote assistance.

综上可知,采用本发明实施例提供的移动终端远程协助的连线探测方法,可以在移动终端远程协助时,为用户提供一条能够确保信号稳定、快速传输的连接通道。避免出现信号中断以及数据包丢失等问题,提高了网络稳定性,缩短了数据传输时间,保证了数据准确性,提升了用户体验,为用户提供了极大便利。To sum up, using the connection detection method for remote assistance of a mobile terminal provided by the embodiments of the present invention can provide a user with a connection channel that can ensure stable and fast signal transmission when the mobile terminal is assisted remotely. It avoids problems such as signal interruption and data packet loss, improves network stability, shortens data transmission time, ensures data accuracy, improves user experience, and provides users with great convenience.

基于同一发明构思,本发明实施例还提供了一种移动终端远程协助的连线探测装置。图7示出了根据本发明一个实施例的移动终端远程协助的连线探测装置的示意性框图。如图7所示,移动终端远程协助的连线探测装置至少包括:Based on the same inventive concept, an embodiment of the present invention also provides a connection detection device for remote assistance of a mobile terminal. FIG. 7 shows a schematic block diagram of a connection detection apparatus for remote assistance of a mobile terminal according to an embodiment of the present invention. As shown in Figure 7, the connection detection device for remote assistance of the mobile terminal at least includes:

连线请求发起模块710,适于通过网络向远程协助的接收方发起远程协助的连线请求;A connection request initiating module 710, adapted to initiate a connection request for remote assistance to the recipient of the remote assistance through the network;

连线探测模块720,与连线请求发起模块710耦合,适于对发送方与接收方之间存在的多个中继站点提供的多条连线进行连线探测,其中,各连线按如下步骤进行探测:通过该连线发出探测信号;经该连线首次接收到接收方针对探测信号的响应消息时,将该连线的状态切换至运作中但不稳定的连线状态;在指定时间内,根据该连线的信号探测响应结果确定该连线是否能够稳定运行;The connection detection module 720, coupled to the connection request initiating module 710, is adapted to perform connection detection on multiple connections provided by multiple relay sites existing between the sender and the receiver, wherein each connection is as follows Probe: send out a probe signal through the connection; when the receiver's response message to the probe signal is received through the connection for the first time, switch the state of the connection to an active but unstable connection state; within a specified time , according to the signal detection response result of the connection to determine whether the connection can run stably;

远程协助建立模块730,与连线探测模块720耦合,适于选择能够稳定运行的连线在发送方与接收方间建立远程协助。The remote assistance establishment module 730, coupled with the connection detection module 720, is adapted to select a connection that can run stably to establish remote assistance between the sender and the receiver.

在一个优选的实施例中,连线探测模块720还适于:In a preferred embodiment, the connection detection module 720 is further adapted to:

在指定时间内,确定是否能够继续接收到来自接收方的响应消息时;When it is determined whether it can continue to receive the response message from the receiver within the specified time;

若是,将该连线的状态修改为可运行状态,并确定该连线为稳定运行状态;If so, modify the state of the connection to an operational state, and determine that the connection is in a stable operation state;

若否,则确定该连线已中断。If not, it is determined that the connection has been interrupted.

在一个优选的实施例中,连线探测模块720还适于:In a preferred embodiment, the connection detection module 720 is further adapted to:

在指定时间内对该连线进行循环探测,得到循环探测结果;Perform loop detection on the connection within the specified time to obtain the loop detection result;

结合该连线的当前连线状态和循环探测结果,进一步确定该连线是否能够稳定运行。Combined with the current connection state of the connection and the loop detection result, it is further determined whether the connection can run stably.

在一个优选的实施例中,连线探测模块720还适于:In a preferred embodiment, the connection detection module 720 is further adapted to:

若该连线的当前连线状态为运作中但不稳定,且循环探测结果为探测失败次数不小于预设阈值,则确定该连线能够稳定运行;If the current connection status of the connection is running but unstable, and the cycle detection result is that the number of detection failures is not less than the preset threshold, it is determined that the connection can run stably;

若该连线的当前连线状态为运行中,且循环探测结果为探测失败次数大于预设阈值,则确定该连线切换至运作中但不稳定的连线状态。If the current connection state of the connection is running, and the cycle detection result is that the number of detection failures is greater than the preset threshold, it is determined that the connection is switched to the connection state in operation but not stable.

在一个优选的实施例中,远程协助建立模块730还适于:In a preferred embodiment, the remote assistance establishing module 730 is further adapted to:

若结合连线的当前连线状态和循环探测结果确定出至少两条连线能够稳定运行,进一步比较各连线循环探测失败的次数;If it is determined that at least two connections can run stably based on the current connection state of the connection and the loop detection result, further compare the number of loop detection failures of each connection;

选择循环探测失败次数最少的连线在发送方与接收方间建立远程协助。Select the connection with the least number of loop probe failures to establish remote assistance between sender and receiver.

在一个优选的实施例中,远程协助建立模块730还适于:In a preferred embodiment, the remote assistance establishing module 730 is further adapted to:

当能够稳定运行的连线存在多条时,结合如下至少之一的参数确定出最优的连线:接收方上次收到数据包的时间,各连线的延迟时间RTT;When there are multiple connections that can run stably, the optimal connection is determined by combining at least one of the following parameters: the last time the receiver received the data packet, and the delay time RTT of each connection;

选择最优的连线在发送方和接收方间建立远程协助。Choose the optimal connection to establish remote assistance between sender and receiver.

在一个优选的实施例中,连线探测模块720还适于:In a preferred embodiment, the connection detection module 720 is further adapted to:

采用预设规则在多个中继站点提供的多条连线中选择进行连线探测的至少一条连线;Using preset rules to select at least one connection for connection detection among multiple connections provided by multiple relay sites;

对选择出的至少一条连线进行连线探测;Perform connection detection on at least one selected connection;

其中,预设规则包括下列至少之一:The preset rules include at least one of the following:

本次连线之前已被选择过的连线;The connection that has been selected before this connection;

非运行中状态且之前已被探测成功的连线中,距当前最久没有被探测过的连线;Among the connections that are not running and have been successfully detected before, the connection that has not been detected for the longest time;

距当前最久没有被探测过的连线。The connection that has not been probed for the longest time.

在一个优选的实施例中,如图8所示,移动终端远程协助的连线探测装置还包括:In a preferred embodiment, as shown in FIG. 8 , the connection detection device for remote assistance of the mobile terminal further includes:

重启模块740,与远程协助建立模块730耦合,适于若远程协助的网络环境发生变化,则重新在发起方和接收方间选择连线以建立远程协助。The restarting module 740, coupled with the remote assistance establishing module 730, is adapted to re-select the connection between the initiator and the receiver to establish the remote assistance if the network environment of the remote assistance changes.

在一个优选的实施例中,重启模块740中的远程协助的网络环境发生变化,包括下列至少之一:In a preferred embodiment, the network environment of the remote assistance in the restart module 740 changes, including at least one of the following:

网络环境中有新的连线生成;A new connection is generated in the network environment;

网络环境中有连线被销毁;The connection in the network environment is destroyed;

网络环境中有连线的状态被更改;The status of the connection in the network environment is changed;

接收端接收到远程的探测信号;The receiver receives the remote detection signal;

接收端接收到远程的数据包。The receiver receives the remote data packet.

在一个优选的实施例中,探测信号为因特网探测器。In a preferred embodiment, the probe signal is an Internet probe.

此外,本发明实施例还提供了一种移动终端,如图9所示,包括处理器和存储器:存储器用于存储执行上述任意一个优选实施例或其组合所提供的移动终端远程协助的连线探测方法的程序;In addition, an embodiment of the present invention also provides a mobile terminal, as shown in FIG. 9 , including a processor and a memory: the memory is used to store the connection for executing the remote assistance of the mobile terminal provided by any one of the above preferred embodiments or a combination thereof Procedures for detection methods;

处理器被配置为用于执行存储器中存储的程序。The processor is configured to execute programs stored in the memory.

为了便于说明,图9仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明实施例方法部分。该移动终端可以包括手机、平板电脑、PDA(PersonalDigital Assistant,个人数字处理)、POS(Point of Sales,销售终端)、车载电脑等任意终端设备,以终端为手机为例:For the convenience of description, FIG. 9 only shows the part related to the embodiment of the present invention, and the specific technical details are not disclosed, please refer to the method part of the embodiment of the present invention. The mobile terminal may include any terminal equipment such as a mobile phone, a tablet computer, a PDA (Personal Digital Assistant, personal digital processing), a POS (Point of Sales, a sales terminal), a vehicle-mounted computer, etc. The terminal is a mobile phone as an example:

图9示出的是与本发明实施例提供的移动终端相关的手机的部分结构的框图。参考图9,手机包括:射频(Radio Frequency,RF)电路910、存储器920、输入单元930、显示单元940、传感器950、音频电路960、无线保真(wirelessfidelity,WiFi)模块970、处理器980、以及电源990等部件。本领域技术人员可以理解,图9中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。FIG. 9 is a block diagram showing a partial structure of a mobile phone related to a mobile terminal provided by an embodiment of the present invention. 9 , the mobile phone includes: a radio frequency (RF) circuit 910, a memory 920, an input unit 930, a display unit 940, a sensor 950, an audio circuit 960, a wireless fidelity (WiFi) module 970, a processor 980, And components such as power supply 990. Those skilled in the art can understand that the structure of the mobile phone shown in FIG. 9 does not constitute a limitation on the mobile phone, and may include more or less components than shown, or combine some components, or arrange different components.

下面结合图9对手机的各个构成部件进行具体的介绍:Below in conjunction with Figure 9, each component of the mobile phone will be introduced in detail:

RF电路910可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器980处理;另外,将设计上行的数据发送给基站。通常,RF电路910包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low NoiseAmplifier,LNA)、双工器等。此外,RF电路910还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(GlobalSystem of Mobile communication,GSM)、通用分组无线服务(General Packet RadioService,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。The RF circuit 910 can be used for receiving and sending signals during sending and receiving of information or during a call. In particular, after receiving the downlink information of the base station, it is processed by the processor 980; in addition, the designed uplink data is sent to the base station. Typically, the RF circuit 910 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, RF circuitry 910 may communicate with networks and other devices via wireless communications. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access) , CDMA), Wideband Code Division Multiple Access (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), email, Short Messaging Service (Short Messaging Service, SMS) and the like.

存储器920可用于存储软件程序以及模块,处理器980通过运行存储在存储器920的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器920可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器920可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 920 can be used to store software programs and modules, and the processor 980 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 920 . The memory 920 may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of the mobile phone (such as audio data, phone book, etc.), etc. Additionally, memory 920 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.

输入单元930可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元930可包括触控面板931以及其他输入设备932。触控面板931,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板931上或在触控面板931附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板931可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器980,并能接收处理器980发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板931。除了触控面板931,输入单元930还可以包括其他输入设备932。具体地,其他输入设备932可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 930 may be used to receive inputted numerical or character information, and generate key signal input related to user setting and function control of the mobile phone. Specifically, the input unit 930 may include a touch panel 931 and other input devices 932 . The touch panel 931, also referred to as a touch screen, can collect touch operations made by the user on or near it (such as the user's finger, stylus, etc., any suitable object or accessory on or near the touch panel 931). operation), and drive the corresponding connection device according to the preset program. Optionally, the touch panel 931 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the touch controller. To the processor 980, and can receive the command sent by the processor 980 and execute it. In addition, the touch panel 931 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 931 , the input unit 930 may further include other input devices 932 . Specifically, other input devices 932 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, joysticks, and the like.

显示单元940可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元940可包括显示面板941,可选的,可以采用液晶显示器(Liquid CrystalDisplay,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板941。进一步的,触控面板931可覆盖显示面板941,当触控面板931检测到在其上或附近的触摸操作后,传送给处理器980以确定触摸事件的类型,随后处理器980根据触摸事件的类型在显示面板941上提供相应的视觉输出。虽然在图9中,触控面板931与显示面板941是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板931与显示面板941集成而实现手机的输入和输出功能。The display unit 940 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 940 may include a display panel 941. Optionally, the display panel 941 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like. Further, the touch panel 931 can cover the display panel 941. When the touch panel 931 detects a touch operation on or near it, it transmits it to the processor 980 to determine the type of the touch event, and then the processor 980 determines the type of the touch event according to the touch event. Type provides corresponding visual output on display panel 941 . Although in FIG. 9, the touch panel 931 and the display panel 941 are used as two independent components to realize the input and input functions of the mobile phone, in some embodiments, the touch panel 931 and the display panel 941 can be integrated to form Realize the input and output functions of the mobile phone.

手机还可包括至少一种传感器950,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板941的亮度,接近传感器可在手机移动到耳边时,关闭显示面板941和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The cell phone may also include at least one sensor 950, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor can include an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 941 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 941 and/or when the mobile phone is moved to the ear. or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes), and can detect the magnitude and direction of gravity when it is stationary. games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. Repeat.

音频电路960、扬声器961,传声器962可提供用户与手机之间的音频接口。音频电路960可将接收到的音频数据转换后的电信号,传输到扬声器961,由扬声器961转换为声音信号输出;另一方面,传声器962将收集的声音信号转换为电信号,由音频电路960接收后转换为音频数据,再将音频数据输出处理器980处理后,经RF电路910以发送给比如另一手机,或者将音频数据输出至存储器920以便进一步处理。The audio circuit 960, the speaker 961, and the microphone 962 can provide an audio interface between the user and the mobile phone. The audio circuit 960 can convert the received audio data into an electrical signal, and transmit it to the speaker 961, and the speaker 961 converts it into a sound signal for output; on the other hand, the microphone 962 converts the collected sound signal into an electrical signal, which is converted by the audio circuit 960 After receiving, it is converted into audio data, and then the audio data is output to the processor 980 for processing, and then sent to, for example, another mobile phone through the RF circuit 910, or the audio data is output to the memory 920 for further processing.

WiFi属于短距离无线传输技术,手机通过WiFi模块970可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图9示出了WiFi模块970,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-distance wireless transmission technology. The mobile phone can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 970. It provides users with wireless broadband Internet access. Although FIG. 9 shows the WiFi module 970, it can be understood that it is not a necessary component of the mobile phone, and can be completely omitted as required within the scope of not changing the essence of the invention.

处理器980是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器920内的软件程序和/或模块,以及调用存储在存储器920内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器980可包括一个或多个处理单元;优选的,处理器980可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器980中。The processor 980 is the control center of the mobile phone, using various interfaces and lines to connect various parts of the entire mobile phone, by running or executing the software programs and/or modules stored in the memory 920, and calling the data stored in the memory 920. Various functions of the mobile phone and processing data, so as to monitor the mobile phone as a whole. Optionally, the processor 980 may include one or more processing units; preferably, the processor 980 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc. , the modem processor mainly deals with wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 980.

手机还包括给各个部件供电的电源990(比如电池),优选的,电源可以通过电源管理系统与处理器980逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile phone also includes a power supply 990 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 980 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system.

尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown, the mobile phone may also include a camera, a Bluetooth module, and the like, which will not be repeated here.

采用本发明实施例提供的移动终端远程协助的连线探测方法及装置能够达到如下有益效果:Using the connection detection method and device for remote assistance of a mobile terminal provided by the embodiments of the present invention can achieve the following beneficial effects:

本发明实施例,为了解决在移动终端远程协助时,由于用户的移动终端所属的运营商不同,或者属同一运营商时用户使用的网络不同,从而导致的移动终端远程协助过程中网络信号不稳定以及经常性的出现数据包丢失的问题,提出了一种移动终端远程协助的连线探测方法。该方法的实现能够在移动终端进行远程协助时为用户提供一条优质的传输通道,以满足数据能够达到完整、稳定、快速传输的目的,同时可以提高网络的安全性能,确保数据的准确性,提升用户体验。具体地,对移动终端远程协助之间的连线进行探测,首先,远程协助的发起方可以通过网络向远程协助的接收方发起远程协助的连线请求,在远程协助的接收方收到连线请求的信号后,对该信号做出响应,表明两者之间的传输通道是连通的,远程协助的发送方接收到响应后可以在该传输通道上建立连接,进行相应的数据传输。但是,远程协助的发送方和接收方之间存在多条连接通道,为了确保信号的稳定性和数据的准确性,可以对发送方与接收方之间存在的多个中继站点提供的多条连线进行连线探测,以找到传输信号最稳定、传输速度最快的一条通道。在对每一具体连线进行探测时,可以通过该连线发出探测信号,该连线的接收方接收到探测信号后会做出响应。确定该连线是连通的之后,本实施例提供的移动终端远程协助的连线探测方法,将该连线的状态切换至运作中但不稳定的连线状态,而并不是在确定该连线连通之后直接将连线状态切换至运作中。这种状态切换的转变避免了探测信号后续在传输通道出现中断或其他问题而导致连线中断时,之前确定的稳定状态又会出现不稳定的状况,进一步提高了传输的稳定性。在连线处于运作中但不稳定的连线状态时,可以在指定时间内,根据该连线的信号探测响应结果确定该连线是否能够稳定运行,为选择出一条最优的连线提供了重要基础。最终,根据探测结果选择能够稳定运行的连线在发送方与接收方之间建立远程协助。由此可见,采用本发明实施例提供的方法,可以在移动终端远程协助时,为用户提供一条信号传输稳定、快速的连接通道。避免出现信号中断以及数据包丢失等问题,提高了网络的稳定性,缩短了数据传输时间,保证了数据准确性,提升了用户体验,为用户提供了极大便利。In the embodiment of the present invention, in order to solve the problem that the network signal is unstable during the remote assistance of the mobile terminal during the remote assistance of the mobile terminal due to the different operators that the user's mobile terminal belongs to, or the different networks used by the user when they belong to the same operator And the problem of frequent data packet loss, a connection detection method for remote assistance of mobile terminals is proposed. The implementation of the method can provide a high-quality transmission channel for the user when the mobile terminal performs remote assistance, so as to meet the purpose of achieving complete, stable and fast data transmission, and at the same time, it can improve the security performance of the network, ensure the accuracy of the data, and improve the user experience. Specifically, the connection between the remote assistance of the mobile terminal is detected. First, the initiator of the remote assistance can initiate a connection request for the remote assistance to the receiver of the remote assistance through the network, and the receiver of the remote assistance receives the connection. After receiving the requested signal, it responds to the signal, indicating that the transmission channel between the two is connected. After receiving the response, the sender of the remote assistance can establish a connection on the transmission channel and perform corresponding data transmission. However, there are multiple connection channels between the sender and receiver of remote assistance. In order to ensure the stability of the signal and the accuracy of the data, the multiple connection channels provided by the multiple relay sites between the sender and the receiver can be Line detection is performed to find the channel with the most stable transmission signal and the fastest transmission speed. When detecting each specific connection, a detection signal can be sent through the connection, and the receiver of the connection will respond after receiving the detection signal. After it is determined that the connection is connected, the connection detection method for remote assistance of a mobile terminal provided in this embodiment switches the state of the connection to an active but unstable connection state, instead of determining the connection After connecting, switch the connection state to running directly. This transition of state switching prevents the previously determined stable state from becoming unstable when the detection signal is subsequently interrupted or other problems cause the connection to be interrupted, which further improves the transmission stability. When the connection is in the running but unstable connection state, it can be determined whether the connection can run stably according to the signal detection response result of the connection within a specified time, which provides an optimal connection for selecting an optimal connection. important foundation. Finally, according to the detection results, select a connection that can run stably to establish remote assistance between the sender and the receiver. It can be seen that, by using the method provided by the embodiment of the present invention, a connection channel with stable and fast signal transmission can be provided for the user when the mobile terminal is assisted remotely. It avoids problems such as signal interruption and data packet loss, improves network stability, shortens data transmission time, ensures data accuracy, improves user experience, and provides users with great convenience.

在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. It will be understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.

类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it is to be understood that in the above description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together into a single embodiment, figure, or its description. This disclosure, however, should not be construed as reflecting an intention that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.

本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art will understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. The modules or units or components in the embodiments may be combined into one module or unit or component, and further they may be divided into multiple sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method so disclosed may be employed in any combination, unless at least some of such features and/or procedures or elements are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.

此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will appreciate that although some of the embodiments described herein include certain features, but not others, included in other embodiments, that combinations of features of different embodiments are intended to be within the scope of the invention within and form different embodiments. For example, in the claims, any of the claimed embodiments may be used in any combination.

本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的移动终端远程协助的连线探测设备中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。Various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all of some or all of the components in the connection detection device for remote assistance of the mobile terminal according to the embodiment of the present invention. Full functionality. The present invention can also be implemented as apparatus or apparatus programs (eg, computer programs and computer program products) for performing part or all of the methods described herein. Such a program implementing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such signals may be downloaded from Internet sites, or provided on carrier signals, or in any other form.

应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-described embodiments illustrate rather than limit the invention, and that alternative embodiments may be devised by those skilled in the art without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several different elements and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. do not denote any order. These words can be interpreted as names.

至此,本领域技术人员应认识到,虽然本文已详尽示出和描述了本发明的多个示例性实施例,但是,在不脱离本发明精神和范围的情况下,仍可根据本发明公开的内容直接确定或推导出符合本发明原理的许多其他变型或修改。因此,本发明的范围应被理解和认定为覆盖了所有这些其他变型或修改。By now, those skilled in the art will recognize that, although various exemplary embodiments of the present invention have been illustrated and described in detail herein, the present invention may still be implemented in accordance with the present disclosure without departing from the spirit and scope of the present invention. The content directly determines or derives many other variations or modifications consistent with the principles of the invention. Accordingly, the scope of the present invention should be understood and deemed to cover all such other variations or modifications.

Claims (15)

1.一种移动终端远程协助的连线探测方法,应用于远程协助的发送方,包括:1. A connection detection method for remote assistance of a mobile terminal, applied to a sender of remote assistance, comprising: 通过网络向远程协助的接收方发起远程协助的连线请求;Initiate a remote assistance connection request to the remote assistance recipient through the network; 对发送方与所述接收方之间存在的多个中继站点提供的多条连线进行连线探测,其中,各连线按如下步骤进行探测:Perform connection detection on multiple connections provided by multiple relay sites existing between the sender and the receiver, where each connection is detected according to the following steps: 通过该连线发出探测信号;经该连线首次接收到所述接收方针对所述探测信号的响应消息时,将该连线的状态切换至运作中但不稳定的连线状态;在指定时间内,根据该连线的信号探测响应结果确定该连线是否能够稳定运行;Send out a probe signal through the connection; when the receiver's response message to the probe signal is received for the first time through the connection, switch the state of the connection to an active but unstable connection state; at a specified time Inside, determine whether the connection can run stably according to the signal detection response result of the connection; 选择能够稳定运行的连线在所述发送方与所述接收方间建立远程协助;Selecting a connection that can operate stably to establish remote assistance between the sender and the receiver; 其中,在指定时间内,根据该连线的信号探测响应结果确定该连线是否能够稳定运行,包括:Wherein, within the specified time, it is determined whether the connection can run stably according to the signal detection response result of the connection, including: 在所述指定时间内,确定是否能够继续接收到来自所述接收方的响应消息;若是,将该连线的状态修改为可运行状态,并确定该连线为稳定运行状态;若否,则确定该连线已中断;Within the specified time, determine whether the response message from the receiver can continue to be received; if so, modify the state of the connection to an operable state, and determine that the connection is in a stable operation state; if not, then determine that the connection has been disconnected; 在所述指定时间内对该连线进行循环探测,得到循环探测结果;结合该连线的当前连线状态和所述循环探测结果,进一步确定该连线是否能够稳定运行;Perform loop detection on the connection within the specified time to obtain a cycle detection result; further determine whether the connection can run stably by combining the current connection state of the connection and the cycle detection result; 其中,所述方法还包括:若远程协助的网络环境发生变化,则重新在所述发送方和所述接收方间选择连线以建立远程协助。Wherein, the method further includes: if the network environment of the remote assistance changes, re-selecting a connection between the sender and the receiver to establish the remote assistance. 2.根据权利要求1所述的方法,其中,结合该连线的当前连线状态和所述循环探测结果,进一步确定该连线是否能够稳定运行,包括:2. The method according to claim 1, wherein, further determining whether the connection can run stably by combining the current connection state of the connection and the loop detection result, comprising: 若该连线的当前连线状态为运作中但不稳定,且所述循环探测结果为探测失败次数不大于预设阈值,则确定该连线能够稳定运行;If the current connection state of the connection is in operation but unstable, and the cycle detection result is that the number of detection failures is not greater than the preset threshold, it is determined that the connection can run stably; 若该连线的当前连线状态为运行中,且所述循环探测结果为探测失败次数大于所述预设阈值,则确定该连线切换至运作中但不稳定的连线状态。If the current connection state of the connection is running, and the cycle detection result is that the number of detection failures is greater than the preset threshold, it is determined that the connection is switched to the running but unstable connection state. 3.根据权利要求1或2所述的方法,其中,若结合连线的当前连线状态和所述循环探测结果确定出至少两条连线能够稳定运行,选择能够稳定运行的连线在所述发送方与所述接收方间建立远程协助还包括:3. The method according to claim 1 or 2, wherein if it is determined that at least two connections can run stably based on the current connection state of the connection and the loop detection result, the connection that can run stably is selected to be Establishing remote assistance between the sender and the receiver further includes: 进一步比较各连线循环探测失败的次数;Further compare the number of loop detection failures of each connection; 选择循环探测失败次数最少的连线在所述发送方与所述接收方间建立远程协助。The connection with the least number of failed round-robin probes is selected to establish remote assistance between the sender and the receiver. 4.根据权利要求1或2所述的方法,其中,选择能够稳定运行的连线在所述发送方与所述接收方间建立远程协助,还包括:4. The method according to claim 1 or 2, wherein selecting a connection capable of stable operation to establish remote assistance between the sender and the receiver, further comprising: 当能够稳定运行的连线存在多条时,结合如下至少之一的参数确定出最优的连线:所述接收方上次收到数据包的时间,各连线的延迟时间RTT;When there are multiple connections that can run stably, the optimal connection is determined in combination with at least one of the following parameters: the last time the receiver received the data packet, and the delay time RTT of each connection; 选择最优的连线在所述发送方和所述接收方间建立远程协助。Selecting the optimal connection establishes remote assistance between the sender and the receiver. 5.根据权利要求1或2所述的方法,其中,对所述发送方与所述接收方之间存在的多个中继站点提供的多条连线进行连线探测,还包括:5. The method according to claim 1 or 2, wherein, performing connection detection on multiple connections provided by multiple relay sites existing between the sender and the receiver, further comprising: 采用预设规则在所述多个中继站点提供的多条连线中选择进行连线探测的至少一条连线;Selecting at least one connection for connection detection among the multiple connections provided by the multiple relay sites by using a preset rule; 对选择出的至少一条连线进行连线探测;Perform connection detection on at least one selected connection; 其中,所述预设规则包括下列至少之一:Wherein, the preset rules include at least one of the following: 本次连线之前已被选择过的连线;The connection that has been selected before this connection; 非运行中状态且之前已被探测成功的连线中,距当前最久没有被探测过的连线;Among the connections that are not running and have been successfully detected before, the connection that has not been detected for the longest time; 距当前最久没有被探测过的连线。The connection that has not been probed for the longest time. 6.根据权利要求1所述的方法,其中,所述远程协助的网络环境发生变化,包括下列至少之一:6. The method according to claim 1, wherein the network environment of the remote assistance changes, including at least one of the following: 所述网络环境中有新的连线生成;A new connection is generated in the network environment; 所述网络环境中有连线被销毁;A connection in the network environment is destroyed; 所述网络环境中有连线的状态被更改;The state of the connection in the network environment is changed; 所述接收端接收到远程的探测信号;the receiver receives a remote detection signal; 所述接收端接收到远程的数据包。The receiving end receives the remote data packet. 7.根据权利要求1或2所述的方法,其中,所述探测信号为因特网探测器PING。7. The method of claim 1 or 2, wherein the probe signal is an internet probe PING. 8.一种移动终端远程协助的连线探测装置,应用于远程协助的发送方,包括:8. A connection detection device for remote assistance of a mobile terminal, applied to a sender of remote assistance, comprising: 连线请求发起模块,适于通过网络向远程协助的接收方发起远程协助的连线请求;The connection request initiating module is suitable for initiating a connection request for remote assistance to the recipient of the remote assistance through the network; 连线探测模块,适于对发送方与所述接收方之间存在的多个中继站点提供的多条连线进行连线探测,其中,各连线按如下步骤进行探测:通过该连线发出探测信号;经该连线首次接收到所述接收方针对所述探测信号的响应消息时,将该连线的状态切换至运作中但不稳定的连线状态;在指定时间内,根据该连线的信号探测响应结果确定该连线是否能够稳定运行;The connection detection module is adapted to perform connection detection on multiple connections provided by multiple relay sites existing between the sender and the receiver, wherein each connection is detected according to the following steps: detection signal; when the receiver's response message to the detection signal is received through the connection for the first time, the state of the connection is switched to an operating but unstable connection state; within a specified time, according to the connection The signal detection response result of the line determines whether the connection can operate stably; 远程协助建立模块,适于选择能够稳定运行的连线在所述发送方与所述接收方间建立远程协助;a remote assistance establishment module, adapted to select a connection that can run stably to establish remote assistance between the sender and the receiver; 其中,所述连线探测模块还适于:Wherein, the connection detection module is also suitable for: 在所述指定时间内,确定是否能够继续接收到来自所述接收方的响应消息时;若是,将该连线的状态修改为可运行状态,并确定该连线为稳定运行状态;若否,则确定该连线已中断;When determining whether the response message from the receiver can continue to be received within the specified time; if so, modify the state of the connection to an operable state, and determine that the connection is in a stable operation state; if not, then it is determined that the connection has been interrupted; 在所述指定时间内对该连线进行循环探测,得到循环探测结果;结合该连线的当前连线状态和所述循环探测结果,进一步确定该连线是否能够稳定运行;Perform loop detection on the connection within the specified time to obtain a cycle detection result; further determine whether the connection can run stably by combining the current connection state of the connection and the cycle detection result; 其中,所述装置还包括:重启模块,适于若远程协助的网络环境发生变化,则重新在所述发送方和所述接收方间选择连线以建立远程协助。Wherein, the apparatus further includes: a restarting module, adapted to re-select a connection between the sender and the receiver to establish the remote assistance if the network environment of the remote assistance changes. 9.根据权利要求8所述的装置,其中,所述连线探测模块还适于:9. The apparatus of claim 8, wherein the link detection module is further adapted to: 若该连线的当前连线状态为运作中但不稳定,且所述循环探测结果为探测失败次数不小于预设阈值,则确定该连线能够稳定运行;If the current connection status of the connection is in operation but unstable, and the cycle detection result is that the number of detection failures is not less than the preset threshold, it is determined that the connection can run stably; 若该连线的当前连线状态为运行中,且所述循环探测结果为探测失败次数大于所述预设阈值,则确定该连线切换至运作中但不稳定的连线状态。If the current connection state of the connection is running, and the cycle detection result is that the number of detection failures is greater than the preset threshold, it is determined that the connection is switched to the running but unstable connection state. 10.根据权利要求8或9所述的装置,其中,所述远程协助建立模块还适于:10. The apparatus of claim 8 or 9, wherein the remote assistance establishment module is further adapted to: 若结合连线的当前连线状态和所述循环探测结果确定出至少两条连线能够稳定运行,进一步比较各连线循环探测失败的次数;If it is determined that at least two connections can run stably in combination with the current connection state of the connection and the cycle detection result, further compare the number of times that the cycle detection fails for each connection; 选择循环探测失败次数最少的连线在所述发送方与所述接收方间建立远程协助。The connection with the least number of failed round-robin probes is selected to establish remote assistance between the sender and the receiver. 11.根据权利要求8或9所述的装置,其中,所述远程协助建立模块还适于:11. The apparatus of claim 8 or 9, wherein the remote assistance establishment module is further adapted to: 当能够稳定运行的连线存在多条时,结合如下至少之一的参数确定出最优的连线:所述接收方上次收到数据包的时间,各连线的延迟时间RTT;When there are multiple connections that can run stably, the optimal connection is determined in combination with at least one of the following parameters: the last time the receiver received the data packet, and the delay time RTT of each connection; 选择最优的连线在所述发送方和所述接收方间建立远程协助。Selecting the optimal connection establishes remote assistance between the sender and the receiver. 12.根据权利要求8或9所述的装置,其中,所述连线探测模块还适于:12. The apparatus according to claim 8 or 9, wherein the connection detection module is further adapted to: 采用预设规则在所述多个中继站点提供的多条连线中选择进行连线探测的至少一条连线;Selecting at least one connection for connection detection among the multiple connections provided by the multiple relay sites by using a preset rule; 对选择出的至少一条连线进行连线探测;Perform connection detection on at least one selected connection; 其中,所述预设规则包括下列至少之一:Wherein, the preset rule includes at least one of the following: 本次连线之前已被选择过的连线;The connection that has been selected before this connection; 非运行中状态且之前已被探测成功的连线中,距当前最久没有被探测过的连线;Among the connections that are not running and have been successfully detected before, the connection that has not been detected for the longest time; 距当前最久没有被探测过的连线。The connection that has not been probed for the longest time. 13.根据权利要求8所述的装置,其中,所述重启模块中的远程协助的网络环境发生变化,包括下列至少之一:13. The apparatus according to claim 8, wherein the network environment of the remote assistance in the restarting module changes, including at least one of the following: 所述网络环境中有新的连线生成;A new connection is generated in the network environment; 所述网络环境中有连线被销毁;A connection in the network environment is destroyed; 所述网络环境中有连线的状态被更改;The state of the connection in the network environment is changed; 所述接收端接收到远程的探测信号;The receiver receives a remote detection signal; 所述接收端接收到远程的数据包。The receiving end receives the remote data packet. 14.根据权利要求8或9所述的装置,其中,所述探测信号为因特网探测器PING。14. The apparatus of claim 8 or 9, wherein the probe signal is an internet probe PING. 15.一种移动终端,包括处理器和存储器:15. A mobile terminal comprising a processor and a memory: 所述存储器用于存储执行权利要求1至7任一项方法的程序;The memory is used to store a program for executing the method of any one of claims 1 to 7; 所述处理器被配置为用于执行所述存储器中存储的程序。The processor is configured to execute programs stored in the memory.
CN201611064998.7A 2016-11-28 2016-11-28 Connection detection method and device for remote assistance of mobile terminal Active CN106792798B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611064998.7A CN106792798B (en) 2016-11-28 2016-11-28 Connection detection method and device for remote assistance of mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611064998.7A CN106792798B (en) 2016-11-28 2016-11-28 Connection detection method and device for remote assistance of mobile terminal

Publications (2)

Publication Number Publication Date
CN106792798A CN106792798A (en) 2017-05-31
CN106792798B true CN106792798B (en) 2020-09-11

Family

ID=58902070

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611064998.7A Active CN106792798B (en) 2016-11-28 2016-11-28 Connection detection method and device for remote assistance of mobile terminal

Country Status (1)

Country Link
CN (1) CN106792798B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107666676B (en) * 2017-09-14 2021-01-01 浙江工业大学 An online control method for maximizing system throughput in an energy-intensive wireless relay network
CN110544834B (en) * 2018-05-28 2021-05-07 华硕电脑股份有限公司 Antenna system and restarting method thereof

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101815098A (en) * 2010-04-14 2010-08-25 中兴通讯股份有限公司 Point-to-point remote assistance method, system and terminal in IP multimedia subsystem
CN103718532A (en) * 2013-03-26 2014-04-09 华为技术有限公司 Data transmission method, apparatus and terminal device
CN103905463A (en) * 2014-04-21 2014-07-02 北京邮电大学 Connecting management and control method suitable for multi-path transmitting
CN104410509A (en) * 2014-10-16 2015-03-11 宁波菊风系统软件有限公司 A multipath data transmitting method based on quality evaluation
CN104539531A (en) * 2014-12-25 2015-04-22 网宿科技股份有限公司 Data transmission method and device
WO2016128644A1 (en) * 2015-02-13 2016-08-18 Orange Method for selecting network connection hubs

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150046558A1 (en) * 2013-03-15 2015-02-12 Google Inc. System and method for choosing lowest latency path

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101815098A (en) * 2010-04-14 2010-08-25 中兴通讯股份有限公司 Point-to-point remote assistance method, system and terminal in IP multimedia subsystem
CN103718532A (en) * 2013-03-26 2014-04-09 华为技术有限公司 Data transmission method, apparatus and terminal device
CN103905463A (en) * 2014-04-21 2014-07-02 北京邮电大学 Connecting management and control method suitable for multi-path transmitting
CN104410509A (en) * 2014-10-16 2015-03-11 宁波菊风系统软件有限公司 A multipath data transmitting method based on quality evaluation
CN104539531A (en) * 2014-12-25 2015-04-22 网宿科技股份有限公司 Data transmission method and device
WO2016128644A1 (en) * 2015-02-13 2016-08-18 Orange Method for selecting network connection hubs

Also Published As

Publication number Publication date
CN106792798A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN102832975B (en) Data transmission method, data transmission device and terminal with touch screen
US20200128003A1 (en) Method, apparatus, and system for controlling intelligent device, and storage medium
CN107896272B (en) Call control method and device
WO2015090248A1 (en) Server overload protection method and device
WO2016150270A1 (en) Method and apparatus for processing group session message
CN108040091B (en) Data processing method, device and storage medium
CN104133728B (en) Method and device for communication between processes
CN109309696B (en) Folder transmission method, sender, receiver, and storage medium
CN103347003B (en) A kind of Voice over Internet method, Apparatus and system
CN106341809B (en) Data transmission method and equipment
WO2018049971A1 (en) Hotspot network switching method and terminals
CN106454810A (en) A method and terminal equipment for establishing a hotspot
WO2021078215A1 (en) Method for cross-terminal switching of cloud game and related device
WO2018049970A1 (en) Hotspot network switching method and terminal
WO2014094600A1 (en) Mobile terminal and method for reducing power consumption thereof
WO2015117554A1 (en) Data processing method, apparatus, and terminal device
CN106792798B (en) Connection detection method and device for remote assistance of mobile terminal
JP2023508739A (en) Multicast service transmission method, transmission processing method and related equipment
CN105847408B (en) A kind of method, device and equipment that data are synchronous
CN105577712B (en) A kind of file uploading method, device and system
CN113873684B (en) Connection establishment method and device based on local area network, terminal equipment and storage medium
CN105025064B (en) Download the method, apparatus and system of file
WO2017000495A1 (en) Method and device for adding contacts
CN108323236A (en) An interactive method and terminal
CN107317828A (en) Document down loading method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee after: Beijing Qizhi Business Consulting Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

CP03 Change of name, title or address
TR01 Transfer of patent right

Effective date of registration: 20240111

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Beijing Qizhi Business Consulting Co.,Ltd.

TR01 Transfer of patent right