WO2018049970A1 - Hotspot network switching method and terminal - Google Patents

Hotspot network switching method and terminal Download PDF

Info

Publication number
WO2018049970A1
WO2018049970A1 PCT/CN2017/098850 CN2017098850W WO2018049970A1 WO 2018049970 A1 WO2018049970 A1 WO 2018049970A1 CN 2017098850 W CN2017098850 W CN 2017098850W WO 2018049970 A1 WO2018049970 A1 WO 2018049970A1
Authority
WO
WIPO (PCT)
Prior art keywords
hotspot
terminal
data transfer
data
network
Prior art date
Application number
PCT/CN2017/098850
Other languages
French (fr)
Chinese (zh)
Inventor
方振
谢琴
Original Assignee
广东欧珀移动通信有限公司
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 广东欧珀移动通信有限公司 filed Critical 广东欧珀移动通信有限公司
Publication of WO2018049970A1 publication Critical patent/WO2018049970A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/26Reselection being triggered by specific parameters by agreed or negotiated communication parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/18Selecting a network or a communication service
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface
    • H04W36/144Reselecting a network or an air interface over a different radio air interface technology
    • H04W36/1443Reselecting a network or an air interface over a different radio air interface technology between licensed networks

Abstract

Provided are a hotspot network switching method and terminal. The method comprises: when data to be transferred in a first terminal needs to be transferred to a second terminal, establishing a first data transfer hotspot based on a first hotspot network; where the first terminal supports a second hotspot network, detecting whether the second terminal supports the second hotspot network; and if the second terminal supports the second hotspot network, switching the first data transfer hotspot to a second data transfer hotspot, wherein the second data transfer hotspot is established based on the second hotspot network. According to the embodiments of the present invention, after switching a first hotspot network to a second hotspot network, which has a higher data transmission rate, a first terminal establishes a second data transfer hotspot based on the second hotspot network, so as to enable the transmission rates of the first terminal and the second terminal to be higher based on the data transfer hotspot, thereby improving data transfer efficiency.

Description

热点网络切换方法及终端Hotspot network switching method and terminal 技术领域Technical field
本发明涉及通信领域,具体涉及一种热点网络切换方法及终端。The present invention relates to the field of communications, and in particular, to a hotspot network switching method and a terminal.
背景技术Background technique
随着信息时代的发展,智能手机已经成为每个人生活的信息中枢,但面对手机产品快速迭代,用户频繁更换手机,为了保持新旧两机在软件环境和数据资料上的一致,目前普遍使用的方法是对手机上的资料进行备份与恢复,从而将手机上的数据资源从一个手机转移至另一个手机中,也即数据转移,数据转移可以完成包括通讯录、信息(短信、彩信)、通话记录、日程、图片、音频、视频、文档、应用程序甚至应用程序数据、备忘录、闹钟、浏览器书签、旧手机的偏好设置等一切数据的迁移工作。With the development of the information age, smart phones have become the information hub for everyone's life, but in the face of rapid iteration of mobile phone products, users frequently change mobile phones, in order to maintain the consistency of the new and old machines in the software environment and data, currently widely used The method is to backup and restore the data on the mobile phone, thereby transferring the data resources on the mobile phone from one mobile phone to another mobile phone, that is, data transfer, and the data transfer can complete including address book, information (sms, multimedia message), and call. Recording, scheduling, images, audio, video, documents, applications and even application data, memos, alarms, browser bookmarks, preferences for old phones, etc.
发明内容Summary of the invention
本发明实施例提供了一种热点网络切换方法及终端,可以在数据转移过程中将终端从低传输速率的热点网络切换到高传输速率的热点网络,提高数据转移数据转移效率。The embodiment of the invention provides a hotspot network switching method and a terminal, which can switch a terminal from a low transmission rate hotspot network to a high transmission rate hotspot network in a data transfer process, thereby improving data transfer data transfer efficiency.
本发明实施例第一方面提供一种热点网络切换方法,包括:A first aspect of the embodiments of the present invention provides a hotspot network switching method, including:
当需要将第一终端中的待转移数据转移至第二终端时,基于第一热点网络建立第一数据转移热点并通过所述第一数据转移热点建立所述第一终端与所述第二终端之间的通信连接;Establishing a first data transfer hotspot based on the first hotspot network and establishing the first terminal and the second terminal by using the first data transfer hotspot when the data to be transferred in the first terminal needs to be transferred to the second terminal Communication connection between
在所述第一终端支持第二热点网络的情况下检测所述第二终端是否支持第二热点网络,所述第二热点网络的数据传输速率高于所述第一热点网络;If the second terminal supports the second hotspot network, detecting whether the second terminal supports the second hotspot network, where the data transmission rate of the second hotspot network is higher than the first hotspot network;
若第二终端支持第二热点网络,则将所述第一数据转移热点切换至第二数据转移热点,所述第二数据转移热点基于所述第二热点网络建立。And if the second terminal supports the second hotspot network, the first data transfer hotspot is switched to the second data transfer hotspot, and the second data transfer hotspot is established based on the second hotspot network.
本发明实施例第二方面提供一种热点网络切换装置,包括:A second aspect of the embodiments of the present invention provides a hotspot network switching apparatus, including:
建立模块,用于当需要将第一终端中的待转移数据转移至第二终端时,基于第一热点网络建立第一数据转移热点并通过所述第一数据转移热点建立所述第一终端与所述第二终端之间的通信连接;Establishing a module, when the data to be transferred in the first terminal needs to be transferred to the second terminal, establishing a first data transfer hotspot based on the first hotspot network, and establishing the first terminal by using the first data transfer hotspot a communication connection between the second terminals;
检测模块,用于在所述第一终端支持第二热点网络的情况下检测所述第二终端是否支持第二热点网络,所述第二热点网络的数据传输速率高于所述第一热点网络;a detecting module, configured to detect, when the first terminal supports the second hotspot network, whether the second terminal supports the second hotspot network, where the data transmission rate of the second hotspot network is higher than the first hotspot network ;
切换模块,用于若第二终端支持第二热点网络,则将所述第一数据转移热点切换至第二数据转移热点,所述第二数据转移热点基于所述第二热点网络建立。And a switching module, configured to switch the first data transfer hotspot to a second data transfer hotspot if the second terminal supports the second hotspot network, where the second data transfer hotspot is established based on the second hotspot network.
本发明实施例第三方面提供一种终端,包括:A third aspect of the embodiments of the present invention provides a terminal, including:
存储有可执行程序代码的存储器; a memory storing executable program code;
与所述存储器耦合的处理器;a processor coupled to the memory;
所述处理器调用所述存储器中存储的所述可执行程序代码,执行本发明第一方面所述的方法。The processor invokes the executable program code stored in the memory to perform the method of the first aspect of the invention.
本发明实施例第四方面提供了一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行第一方面中任意一个方法。A fourth aspect of the embodiments of the present invention provides a computer readable storage medium, wherein the computer readable storage medium stores instructions, when executed on a computer, causing the computer to execute any one of the first aspects method.
在本发明实施例提供的技术方案中,当需要将第一终端中的待转移数据转移至第二终端时,基于第一热点网络建立第一数据转移热点并通过所述第一数据转移热点建立所述第一终端与所述第二终端之间的通信连接;在所述第一终端支持第二热点网络的情况下检测所述第二终端是否支持第二热点网络,所述第二热点网络的数据传输速率高于所述第一热点网络;若第二终端支持第二热点网络,则将所述第一数据转移热点切换至第二数据转移热点,所述第二数据转移热点基于所述第二热点网络建立。通过从第一热点网络切换至数据传输速率更高的第二热点网络后,第一终端再基于该第二热点网络建立第二数据转移热点,从而使得第一终端和第二终端基于该数据转移热点的传输速率更高,提高数据转移效率。In the technical solution provided by the embodiment of the present invention, when the data to be transferred in the first terminal needs to be transferred to the second terminal, the first data transfer hotspot is established based on the first hotspot network and established by using the first data transfer hotspot. a communication connection between the first terminal and the second terminal; if the first terminal supports the second hotspot network, detecting whether the second terminal supports the second hotspot network, the second hotspot network The data transmission rate is higher than the first hotspot network; if the second terminal supports the second hotspot network, the first data transfer hotspot is switched to the second data transfer hotspot, and the second data transfer hotspot is based on the The second hotspot network is established. After switching from the first hotspot network to the second hotspot network with a higher data transmission rate, the first terminal establishes a second data transfer hotspot based on the second hotspot network, so that the first terminal and the second terminal are based on the data transfer. The hotspot has a higher transfer rate and improves data transfer efficiency.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图1-a是本发明实施例提供的热点网络切换系统的网络架构图;FIG. 1 is a network architecture diagram of a hotspot network switching system according to an embodiment of the present invention;
图1-b是本发明实施例提供的一种热点网络切换方法的流程示意图;FIG. 1 is a schematic flowchart of a hotspot network switching method according to an embodiment of the present disclosure;
图2是本发明实施例提供的数据转移热点验证示意图;2 is a schematic diagram of data hotspot verification according to an embodiment of the present invention;
图3是本发明实施例提供的一种热点网络切换方法的流程示意图;3 is a schematic flowchart of a hotspot network switching method according to an embodiment of the present invention;
图4是本发明实施例提供的一种热点网络切换方法的流程示意图;4 is a schematic flowchart of a hotspot network switching method according to an embodiment of the present invention;
图5是本发明实施例提供的一种热点网络切换方法的流程示意图;FIG. 5 is a schematic flowchart of a hotspot network switching method according to an embodiment of the present disclosure;
图6是本发明实施例提供的一种热点网络切换装置的结构示意图;FIG. 6 is a schematic structural diagram of a hotspot network switching apparatus according to an embodiment of the present invention;
图7是本发明实施例提供的一种热点网络切换装置的结构示意图;FIG. 7 is a schematic structural diagram of a hotspot network switching apparatus according to an embodiment of the present invention;
图8是本发明实施例提供的一种终端的结构示意图;FIG. 8 is a schematic structural diagram of a terminal according to an embodiment of the present disclosure;
图9是本发明实施例提供的一种终端的结构示意图。FIG. 9 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
具体实施方式detailed description
数据转移为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。 基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. The examples are only a part of the embodiments of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts shall fall within the scope of the present invention.
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”和“第三”等是用于区别不同对象,而非用于描述特定顺序。此外,术语“包括”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second" and "third" and the like in the specification and claims of the present invention and the above drawings are used to distinguish different objects, and are not intended to describe a specific order. Moreover, the term "comprise" and any variants thereof are intended to cover a non-exclusive inclusion. For example, a process, method, system, product, or device that comprises a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units not listed, or alternatively Other steps or units inherent to these processes, methods, products or equipment.
本发明实施例的一种热点网络切换方法,包括:当需要将第一终端中的待转移数据转移至第二终端时,基于第一热点网络建立第一数据转移热点并通过所述第一数据转移热点建立所述第一终端与所述第二终端之间的通信连接;A hotspot network switching method according to an embodiment of the present invention includes: when a data to be transferred in a first terminal needs to be transferred to a second terminal, establishing a first data transfer hotspot based on the first hotspot network and passing the first data Transferring a hotspot to establish a communication connection between the first terminal and the second terminal;
在所述第一终端支持第二热点网络的情况下检测所述第二终端是否支持第二热点网络,所述第二热点网络的数据传输速率高于所述第一热点网络;If the second terminal supports the second hotspot network, detecting whether the second terminal supports the second hotspot network, where the data transmission rate of the second hotspot network is higher than the first hotspot network;
若第二终端支持第二热点网络,则将所述第一数据转移热点切换至第二数据转移热点,所述第二数据转移热点基于所述第二热点网络建立。And if the second terminal supports the second hotspot network, the first data transfer hotspot is switched to the second data transfer hotspot, and the second data transfer hotspot is established based on the second hotspot network.
首先参见图1-a,图1-a是本发明实施例提供的热点网络切换系统的网络架构图,在图1-a所示的网络架构图中,第一终端100和第二终端200均可以为手机、平板电脑等移动智能终端,在本发明实施例中,第一终端100为数据转移传送方,第二终端200为数据转移接收方,第一终端100通过建立数据转移热点,然后第二终端200连接到该数据转移热点上,从而建立第一终端100与第二终端200之间的通信连接,第一终端100基于该通信连接将待转移数据转移至第二终端200,从而完成数据转移过程。Referring to FIG. 1-a, FIG. 1 is a network architecture diagram of a hotspot network switching system according to an embodiment of the present invention. In the network architecture diagram shown in FIG. 1-a, both the first terminal 100 and the second terminal 200 are configured. In the embodiment of the present invention, the first terminal 100 is a data transfer transmitter, the second terminal 200 is a data transfer receiver, and the first terminal 100 establishes a data transfer hotspot, and then the first terminal 100 The second terminal 200 is connected to the data transfer hotspot to establish a communication connection between the first terminal 100 and the second terminal 200, and the first terminal 100 transfers the data to be transferred to the second terminal 200 based on the communication connection, thereby completing the data. Transfer process.
在本发明实施例中,该数据转移热点可以默认建立在2.4G热点网络上,但由于2.4G热点网络的数据传输速率较慢,所以可考虑在第一终端100和第二终端200均支持5G网络的情况下,将数据转移热点从2.4G热点网络切换至5G热点网络。In the embodiment of the present invention, the data transfer hotspot may be established on the 2.4G hotspot network by default, but since the data transmission rate of the 2.4G hotspot network is slow, it may be considered that both the first terminal 100 and the second terminal 200 support 5G. In the case of the network, the data transfer hotspot is switched from the 2.4G hotspot network to the 5G hotspot network.
参见图1-b,图1-b是本发明实施例提供的一种热点网络切换方法的流程示意图。其中,如图1-b所示,该热点网络切换方法可以包括以下步骤:Referring to FIG. 1-b, FIG. 1-b is a schematic flowchart of a hotspot network switching method according to an embodiment of the present invention. As shown in FIG. 1-b, the hotspot network switching method may include the following steps:
S101、当需要将第一终端中的待转移数据转移至第二终端时,基于第一热点网络建立第一数据转移热点并通过所述第一数据转移热点建立所述第一终端与所述第二终端之间的通信连接。S101. When the data to be transferred in the first terminal needs to be transferred to the second terminal, establish a first data transfer hotspot based on the first hotspot network, and establish the first terminal and the first by using the first data transfer hotspot. The communication connection between the two terminals.
其中,待转移数据是指第一终端中的应用或文件数据等,例如可以为通讯录、信息(短信、彩信)、通话记录、日程、图片、音频、视频、文档、应用程序甚至应用程序数据、备忘录、闹钟、浏览器书签、旧手机的偏好设置等一切数据。将预设数据从第一终端转移至第二终端的过程也即“手机搬家”。The data to be transferred refers to an application or file data in the first terminal, and may be, for example, an address book, an information (sms, a multimedia message), a call record, a schedule, a picture, an audio, a video, a document, an application, or even an application data. , memo, alarm clock, browser bookmarks, old phone preferences, and more. The process of transferring preset data from the first terminal to the second terminal is also called "mobile phone moving."
在本发明实施例中,该第一热点网络可以为2.4G热点网络。 In the embodiment of the present invention, the first hotspot network may be a 2.4G hotspot network.
其中,数据转移热点是指在需要将第一终端中的预设数据转移至第二终端时,为了建立在第一终端与第二终端之间的一个点对点的数据通道,而设置在第一终端的一个热点,从而第二终端可以通过该数据转移热点建立第一终端与第二终端之间的一个数据连接,然后再通过该数据通道可以实现在第一终端和第二终端之间的数据传输,并且在此时不需要借助于其它任何如数据网络或无线保真WiFi等通讯连接,但如果此时第一终端与第二终端之间的数据网络为连接状态,将使得将第一终端中的预设数据转移至第二终端的过程中也会消耗数据网络的流量。The data transfer hotspot refers to a point-to-point data channel established between the first terminal and the second terminal when the preset data in the first terminal needs to be transferred to the second terminal, and is set in the first terminal. a hotspot, so that the second terminal can establish a data connection between the first terminal and the second terminal through the data transfer hotspot, and then data transmission between the first terminal and the second terminal can be implemented through the data channel And at this time, it is not necessary to resort to any other communication connection such as data network or wireless fidelity WiFi, but if the data network between the first terminal and the second terminal is connected at this time, the first terminal will be The process of transferring the preset data to the second terminal also consumes the traffic of the data network.
在一个实施例中,可以通过在第一终端和第二终端中安装一数据转移应用,从而当需要将第一终端中的预设数据转移至第二终端时,可同时打开第一终端与第二终端中的该应用。In an embodiment, a data transfer application may be installed in the first terminal and the second terminal, so that when the preset data in the first terminal needs to be transferred to the second terminal, the first terminal and the first terminal may be simultaneously opened. The application in the second terminal.
在一个实施例中,用户可以通过该应用操作终端建立数据转移热点。以触发数据转移过程。In one embodiment, the user can establish a data transfer hotspot through the application operating terminal. To trigger the data transfer process.
在一个实施例中,当建立第一终端和第二终端之间的通信连接后,第一终端和第二终端之间可以通过该通信连接进行通信,从而可以交换信息判断对方是否支持第二热点网络。In an embodiment, after establishing a communication connection between the first terminal and the second terminal, the first terminal and the second terminal can communicate through the communication connection, so that information can be exchanged to determine whether the other party supports the second hot spot. The internet.
S102、在所述第一终端支持第二热点网络的情况下检测所述第二终端是否支持第二热点网络,所述第二热点网络的数据传输速率高于所述第一热点网络。S102. If the first terminal supports the second hotspot network, check whether the second terminal supports the second hotspot network, where the data transmission rate of the second hotspot network is higher than the first hotspot network.
在本发明实施例中,当第一热点网络为2.4G热点网络时,该第二热点网络可以为5G热点网络。In the embodiment of the present invention, when the first hotspot network is a 2.4G hotspot network, the second hotspot network may be a 5G hotspot network.
在本发明实施例中,2.4G的网络目前最大的速度不超过9MB/s,5G网络目前手机真实测试数据表明最大速度可以达到25MB/s。In the embodiment of the present invention, the current maximum speed of the 2.4G network does not exceed 9MB/s, and the actual test data of the mobile phone of the 5G network indicates that the maximum speed can reach 25MB/s.
在本发明实施例中,只有在第一终端和第二终端均支持5G热点网络的情况下才能基于5G热点网络重新建立连接,此时第一终端才选择切换热点网络。In the embodiment of the present invention, the connection can be re-established based on the 5G hotspot network only when both the first terminal and the second terminal support the 5G hotspot network, and the first terminal selects to switch the hotspot network.
S103、若第二终端支持第二热点网络,则将所述第一数据转移热点切换至第二数据转移热点,所述第二数据转移热点基于所述第二热点网络建立。S103. If the second terminal supports the second hotspot network, switch the first data transfer hotspot to the second data transfer hotspot, where the second data transfer hotspot is established based on the second hotspot network.
在一个实施例中,当第一终端与第二终端基于第一数据转移热点建立通信连接后,向第二终端发送请求询问其是否支持第二热点网络,从而第二终端将会将其是否支持第二热点网络的信息发送给第一终端。In an embodiment, after the first terminal establishes a communication connection with the second terminal based on the first data transfer hotspot, sending a request to the second terminal to ask whether it supports the second hotspot network, so whether the second terminal will support it or not The information of the second hotspot network is sent to the first terminal.
在一个实施例中,第一终端可以将其是否支持第二热点网络的信息发送给第二终端。In one embodiment, the first terminal may send information of whether it supports the second hotspot network to the second terminal.
可以看出,本发明实施例提供的技术方案中,当需要将第一终端中的待转移数据转移至第二终端时,基于第一热点网络建立第一数据转移热点并通过所述第一数据转移热点建立所述第一终端与所述第二终端之间的通信连接;在所述第一终端支持第二热点网络的情况下检测所述第二终端是否支持第二热点网络,所述第二热点网络的数据传输速率高于所述第一热点网络;若第二终端支持第二热点网络,则将所述第一数据转移热点切换至第二数据转移热点,所述第二数据转移热点基于所述第二热点网络建立。通过从第一热点网络切换至 数据传输速率更高的第二热点网络后,第一终端再基于该第二热点网络建立第二数据转移热点,从而使得第一终端和第二终端基于该数据转移热点的传输速率更高,提高数据转移效率。It can be seen that, in the technical solution provided by the embodiment of the present invention, when the data to be transferred in the first terminal needs to be transferred to the second terminal, the first data transfer hotspot is established based on the first hotspot network and passes the first data. Transmitting a hotspot to establish a communication connection between the first terminal and the second terminal; and detecting, in the case that the first terminal supports the second hotspot network, whether the second terminal supports the second hotspot network, The data transmission rate of the second hotspot network is higher than the first hotspot network; if the second terminal supports the second hotspot network, the first data transfer hotspot is switched to the second data transfer hotspot, and the second data transfer hotspot Established based on the second hotspot network. Switching from the first hotspot network to After the second hotspot network with a higher data transmission rate, the first terminal establishes a second data transfer hotspot based on the second hotspot network, so that the first terminal and the second terminal increase the transmission rate based on the data transfer hotspot, and improve Data transfer efficiency.
在一个实施例中,若第一终端最初就是基于网络传输速率高的热点网络建立热点的,此时不需要去切换热点网络。In an embodiment, if the first terminal initially establishes a hotspot based on the hotspot network with a high network transmission rate, there is no need to switch the hotspot network at this time.
在一个实施例中,所述方法还包括:所述将所述第一数据转移热点切换至第二数据转移热点之后,所述方法还包括:In an embodiment, the method further includes: after the switching the first data transfer hotspot to the second data transfer hotspot, the method further includes:
接收所述第二终端发送的热点连接请求;Receiving a hotspot connection request sent by the second terminal;
通过所述第二数据转移热点建立所述第一终端与所述第二终端之间的通信连接以响应所述热点连接请求。Establishing, by the second data transfer hotspot, a communication connection between the first terminal and the second terminal in response to the hotspot connection request.
可以理解,在第一终端建立第二数据转移热点后,第一终端和第二终端可基于该第二数据转移热点建立通信连接。It can be understood that after the first terminal establishes the second data transfer hotspot, the first terminal and the second terminal can establish a communication connection based on the second data transfer hotspot.
在一个实施例中,所述基于第一热点网络建立第一数据转移热点之后,所述方法还包括:In an embodiment, after the first data hotspot is established based on the first hotspot network, the method further includes:
对所述第一数据转移热点设置热点名称及热点密码;Setting a hotspot name and a hotspot password for the first data transfer hotspot;
所述通过所述第一数据转移热点建立所述第一终端与所述第二终端之间的通信连接,包括:The establishing, by the first data transfer hotspot, the communication connection between the first terminal and the second terminal includes:
接收所述第二终端发送的验证密码;Receiving a verification password sent by the second terminal;
在所述验证密码与所述热点密码匹配时通过所述第一数据转移热点建立所述第一终端与所述第二终端之间的通信连接。Establishing a communication connection between the first terminal and the second terminal by using the first data transfer hotspot when the verification password matches the hotspot password.
其中,热点密码是指用于验证连接到第一终端建立的第二终端的身份的密码。The hotspot password refers to a password used to verify the identity of the second terminal connected to the first terminal.
其中,验证密码是指在第二终端请求连接至第一终端时,第一终端所需要第二终端输入的验证密码。The verification password refers to the verification password input by the second terminal required by the first terminal when the second terminal requests to connect to the first terminal.
在一个实施例中,在第一终端建立数据转移热点的同时提示用户输入加密密码。In one embodiment, the user is prompted to enter an encrypted password while the first terminal establishes a data transfer hotspot.
在一个实施例中,在第二终端向第一终端发送连接请求时,第一终端接收到该连接请求后,指示第二终端输入验证密码,然后在第二终端的界面弹出一对话框,指示用户输入验证密码。参见图2,图2是本发明实施例提供的数据转移热点验证示意图。In an embodiment, when the second terminal sends a connection request to the first terminal, after receiving the connection request, the first terminal instructs the second terminal to input the verification password, and then pops up a dialog box on the interface of the second terminal, indicating The user enters a verification password. Referring to FIG. 2, FIG. 2 is a schematic diagram of data hotspot verification according to an embodiment of the present invention.
可以理解,通过第一终端设置该数据转移热点的加密密码,然后在其它终端请求接入该数据转移热点时,只在其它终端发送的鉴权验证密码与该数据转移热点匹配时,才通过该连接请求,从而防止其它不法终端连接至第一终端的数据转移热点,提高通信安全。It can be understood that the encrypted password of the data transfer hotspot is set by the first terminal, and then when the other terminal requests access to the data transfer hotspot, only when the authentication verification password sent by the other terminal matches the data transfer hotspot, The connection request is made to prevent other illegal terminals from connecting to the data transfer hotspot of the first terminal, thereby improving communication security.
在一个实施例中,所述通过所述第一数据转移热点建立所述第一终端与所述第二终端之间的通信连接之后,所述方法还包括:In an embodiment, after the establishing a communication connection between the first terminal and the second terminal by using the first data transfer hotspot, the method further includes:
保存所述第一终端与所述第二终端之间的所述通信连接配置,所述通信连接配置包括所述热点名称、所述第二终端标识、所述通信连接的服务器地址以 及所述通信连接的端口。And saving the communication connection configuration between the first terminal and the second terminal, where the communication connection configuration includes the hotspot name, the second terminal identifier, and a server address of the communication connection. And the port of the communication connection.
其中,热点名称是指用于标识第一终端所建立的热点的名称,第二终端标识是指用于标识第二终端的标识,通信连接的服务器地址以及通信连接的端口是指用于标识第一终端与第二终端建立连接时所用的服务器地址以及端口,从而下次第一终端与第二终端建立连接时仍可基于该服务器地址以及端口建立。The hotspot name is used to identify the name of the hotspot established by the first terminal, and the second terminal identifier is used to identify the identifier of the second terminal, the server address of the communication connection, and the port of the communication connection are used to identify the The server address and port used by the terminal to establish a connection with the second terminal, so that the next time the first terminal establishes a connection with the second terminal, the server address and the port can still be established based on the server address and the port.
在一个实施例中,该通信连接配置还可以包括热点密码。In one embodiment, the communication connection configuration may also include a hotspot password.
在一个实施例中,所述保存所述第一终端与所述第二终端之间的所述通信连接配置之后,所述方法还包括:In an embodiment, after the saving the communication connection configuration between the first terminal and the second terminal, the method further includes:
当所述第一终端切换至第二数据转移热点之后接收到所述第二终端的热点连接请求时,基于所述通信连接配置建立所述第一终端与所述第二终端之间的通信连接。Establishing a communication connection between the first terminal and the second terminal based on the communication connection configuration when the first terminal switches to the second data transfer hotspot and receives the hotspot connection request of the second terminal .
可以理解,通过保存该通信连接配置,从而能使得下次第一终端与第二终端建立连接时,可以基于该通信连接配置进行建立,提高连接效率。It can be understood that by saving the communication connection configuration, when the connection between the first terminal and the second terminal is established next time, the communication connection configuration can be established to improve the connection efficiency.
在一个实施例中,所述基于第一热点网络建立第一数据转移热点之后,所述方法还包括:In an embodiment, after the first data hotspot is established based on the first hotspot network, the method further includes:
生成二维码以使所述第二终端通过所述二维码获取并保存第一数据转移热点配置,所述第一数据转移热点配置包括所述第一数据转移热点的热点名称、所述第一数据转移热点的热点密码、所述第一数据转移热点的服务端地址以及所述第一转移热点的端口;Generating a two-dimensional code to enable the second terminal to acquire and save a first data transfer hotspot configuration by using the two-dimensional code, where the first data transfer hotspot configuration includes a hotspot name of the first data transfer hotspot, the first a hotspot password of a data transfer hotspot, a server address of the first data transfer hotspot, and a port of the first transfer hotspot;
在所述第一数据转移热点切换至第二数据转移热点,接收所述第二终端基于所述第一数据转移热点配置所发送的热点连接请求,所述热点连接请求包括所述第一数据转移热点的热点密码;Switching to the second data transfer hotspot at the first data transfer hotspot, receiving the hotspot connection request sent by the second terminal based on the first data transfer hotspot configuration, the hotspot connection request including the first data transfer Hotspot password for hotspots;
通过所述热点连接请求并基于所述第一数据转移热点配置建立所述第一终端与所述第二终端之间的通信连接。Establishing a communication connection between the first terminal and the second terminal by using the hotspot connection request and based on the first data transfer hotspot configuration.
举例说明,在本发明的一个示例中,A手机首先通过2.4G建立带有密码的第一数据转移热点后,生成二维码,并建立服务端;然后B手机通过扫描二维码,得知A手机的第一数据转移热点的热点名称,第一数据转移热点的热点密码,第一数据转移热点的服务端地址以及第一数据转移热点的端口,并保存在B手机中。然后B手机先连接A手机的热点,连接后,再通过Socket方式连接A手机的服务端建立TCP连接。建立连接后,B手机发送是否支持5G网络的信息给A手机,当A手机支持5G网络时,A手机回复支持5G网络信息给B手机,然后此时A手机断开原有的2.4G的第一数据转移热点,并改用5G网络建立新的第二数据转移热点。然后B手机不间断扫描网络,搜索之前记录下来的第一数据转移热点的热点名称。由于第一数据转移热点和第二数据转移热点均为A手机的热点,所以热点名称和密码保持不变,从而当B手机扫描到A手机的热点名称后,选择该热点,再通过之前的密码进行连接该第二数据转移热点,最后B手机通过服务端地址和端口建立TCP连接并通信,然后基于该连接可将实现从A手机到B手机的数据转移过程。 For example, in an example of the present invention, the A mobile phone first generates a two-dimensional code by establishing a first data transfer hotspot with a password through 2.4G, and establishes a server; then the B mobile phone scans the two-dimensional code to learn that The hotspot name of the first data transfer hotspot of the A mobile phone, the hotspot password of the first data transfer hotspot, the server address of the first data transfer hotspot, and the port of the first data transfer hotspot, and are saved in the B mobile phone. Then the B mobile phone first connects to the hotspot of the A mobile phone, and after connecting, connects to the server of the A mobile phone through the Socket to establish a TCP connection. After the connection is established, the B mobile phone sends information about whether to support the 5G network to the A mobile phone. When the A mobile phone supports the 5G network, the A mobile phone replies to support the 5G network information to the B mobile phone, and then the A mobile phone disconnects the original 2.4G. A data transfer hotspot, and use a 5G network to establish a new second data transfer hotspot. Then the B mobile phone continuously scans the network and searches for the hotspot name of the first data transfer hotspot recorded before. Since the first data transfer hotspot and the second data transfer hotspot are hotspots of the A mobile phone, the hotspot name and password remain unchanged, so that when the B mobile phone scans the hotspot name of the A mobile phone, select the hotspot, and then pass the previous password. The second data transfer hotspot is connected, and finally the B mobile phone establishes a TCP connection and communicates through the server address and the port, and then the data transfer process from the A mobile phone to the B mobile phone can be implemented based on the connection.
可以理解,第一终端通过以二维码的形式记录热点配置,并使第二终端获知并保存,从而第二终端可以通过所保存的热点配置接入第一终端的新的热点,提高热点接入效率。It can be understood that the first terminal records the hotspot configuration in the form of a two-dimensional code, and makes the second terminal know and save, so that the second terminal can access the new hotspot of the first terminal through the saved hotspot configuration, and improve the hotspot connection. Efficiency.
在一个实施例中,,所述第一终端接收用户的数据转移热点的建立请求之后,所述方法还包括:In an embodiment, after the first terminal receives the establishment request of the data transfer hotspot of the user, the method further includes:
判断所述第一终端的无线保真WiFi的当前状态是否为开启状态;Determining whether the current state of the wireless fidelity WiFi of the first terminal is an open state;
若所述第一终端的无线保真WiFi的当前状态为开启状态,则关闭所述WiFi。If the current state of the wireless fidelity WiFi of the first terminal is an open state, the WiFi is turned off.
可以理解,当需要在终端中建立热点时,需要保证终端的WiFi处于关闭状态,所以可以判断终端中的WiFi是否为关闭状态,并在不是关闭状态下关闭终端中的WiFi,以保证热点能顺利建立。It can be understood that when the hotspot needs to be established in the terminal, it is necessary to ensure that the WiFi of the terminal is in the closed state, so it can be determined whether the WiFi in the terminal is in the off state, and the WiFi in the terminal is turned off in the off state to ensure that the hotspot can be smoothly. set up.
在一个实施例中,所述建立所述第一终端与所述第二终端之间的数据连接之后,所述方法还包括:In an embodiment, after the establishing a data connection between the first terminal and the second terminal, the method further includes:
对所述数据连接设置数据连接名称,所述数据连接名称用于唯一标识所述第一终端与所述第二终端之间的数据连接。And setting a data connection name to the data connection, where the data connection name is used to uniquely identify a data connection between the first terminal and the second terminal.
在一个实施例中,当有第三终端连接至第一终端时,可再设置一数据连接名称用于标识第一终端与第三终端之间的数据连接。In an embodiment, when a third terminal is connected to the first terminal, a data connection name may be further set to identify a data connection between the first terminal and the third terminal.
可以理解,通过设置数据连接名称,所以当下次第二终端再将连接到第一终端时,则可以通过名称识别该数据连接,也防止其它终端冒充第二终端连接至第一终端中,提高通信安全。It can be understood that by setting the data connection name, when the second terminal is connected to the first terminal again, the data connection can be identified by the name, and the other terminal is prevented from posing as the second terminal to connect to the first terminal, thereby improving communication. Safety.
在一个实施例中,当第二终端连接至第一终端时,由于第一终端中保存有第一终端与第二终端的数据连接名称,所以此时不需要再对第二终端进行验证。In an embodiment, when the second terminal is connected to the first terminal, since the data connection name of the first terminal and the second terminal is saved in the first terminal, the second terminal does not need to be verified at this time.
在一个实施例中,所述建立数据转移热点之后,所述方法还包括:In an embodiment, after the establishing a data transfer hotspot, the method further includes:
以第一预设时间为周期对外发送信标Beacon广播,所述Beacon中包括所述数据连接的数据连接名称;Transmitting a beacon Beacon broadcast to the first preset time period, where the Beacon includes a data connection name of the data connection;
判断所述数据连接是否建立;Determining whether the data connection is established;
若所述第二终端在超过预设时间阀值时没有建立所述数据连接,则将所述第一预设时间设置为第二预设时间,所述第二预设时间大于所述第一预设时间。If the second terminal does not establish the data connection when the preset time threshold is exceeded, setting the first preset time to a second preset time, where the second preset time is greater than the first Preset time.
可以理解,由于第一终端需要在第一预设时间后外发包括数据连接名称的广播,所以若第一终端与第二终端在第一预设时间内没有建立好数据连接,可以延长广播周期时间,以保证新的数据连接能够建立,保证广播内容的正确。It can be understood that, since the first terminal needs to send a broadcast including the data connection name after the first preset time, if the first terminal and the second terminal do not establish a data connection within the first preset time, the broadcast period may be extended. Time to ensure that new data connections can be established and that the broadcast content is correct.
为了便于更好理解和实施本发明实施例的上述方案,下面结合一些具体的应用场景进行举例说明。In order to facilitate the better understanding and implementation of the foregoing solutions of the embodiments of the present invention, the following is exemplified in conjunction with some specific application scenarios.
请参见图3,图3是本发明实施例提供的一种热点网络切换方法的流程示意图。图3所示的方法中,与图1所示方法相同或类似的内容可以参考图1中的详细描述,此处不再赘述。其中,如图3所示,该热点网络切换方法可以包括以下步骤:Referring to FIG. 3, FIG. 3 is a schematic flowchart of a hotspot network switching method according to an embodiment of the present invention. For the method shown in FIG. 3, the same or similar content as the method shown in FIG. 1 can be referred to the detailed description in FIG. 1, and details are not described herein again. As shown in FIG. 3, the hotspot network switching method may include the following steps:
S301、当需要将第一终端中的待转移数据转移至第二终端时,基于第一热 点网络建立第一数据转移热点并通过第一数据转移热点建立第一终端与第二终端之间的通信连接。S301. When the data to be transferred in the first terminal needs to be transferred to the second terminal, based on the first heat The point network establishes a first data transfer hotspot and establishes a communication connection between the first terminal and the second terminal through the first data transfer hotspot.
S302、在第一终端支持第二热点网络的情况下检测第二终端是否支持第二热点网络,第二热点网络的数据传输速率高于所述第一热点网络。S302. If the second terminal supports the second hotspot network, detecting whether the second terminal supports the second hotspot network, where the data transmission rate of the second hotspot network is higher than the first hotspot network.
S303、若第二终端支持第二热点网络,则将第一数据转移热点切换至第二数据转移热点,第二数据转移热点基于第二热点网络建立。S303. If the second terminal supports the second hotspot network, switch the first data transfer hotspot to the second data transfer hotspot, and the second data transfer hotspot is established based on the second hotspot network.
S304、接收第二终端发送的热点连接请求。S304. Receive a hotspot connection request sent by the second terminal.
S305、通过第二数据转移热点建立第一终端与第二终端之间的通信连接以响应热点连接请求。S305. Establish a communication connection between the first terminal and the second terminal by using the second data transfer hotspot to respond to the hotspot connection request.
本发明实施例通过从第一热点网络切换至数据传输速率更高的第二热点网络后,第一终端再基于该第二热点网络建立第二数据转移热点,从而使得第一终端和第二终端基于该数据转移热点的传输速率更高,提高数据转移效率。After the first hotspot network is switched to the second hotspot network with a higher data transmission rate, the first terminal establishes a second data transfer hotspot based on the second hotspot network, so that the first terminal and the second terminal are The transmission rate based on the data transfer hotspot is higher, and the data transfer efficiency is improved.
参见图4,图4是本发明实施例提供的一种热点网络切换方法的流程示意图。图4所示的方法中,与图1所示方法相同或类似的内容可以参考图1中的详细描述,此处不再赘述。其中,如图4所示,该热点网络切换方法可以包括以下步骤:Referring to FIG. 4, FIG. 4 is a schematic flowchart diagram of a hotspot network switching method according to an embodiment of the present invention. For the method shown in FIG. 4, the same or similar content as the method shown in FIG. 1 can be referred to the detailed description in FIG. 1, and details are not described herein again. As shown in FIG. 4, the hotspot network switching method may include the following steps:
S401、当需要将第一终端中的待转移数据转移至第二终端时,基于第一热点网络建立第一数据转移热点。S401. When the data to be transferred in the first terminal needs to be transferred to the second terminal, establish a first data transfer hotspot based on the first hotspot network.
S402、对第一数据转移热点设置热点名称及热点密码。S402. Set a hotspot name and a hotspot password for the first data transfer hotspot.
S403、接收第二终端发送的验证密码。S403. Receive a verification password sent by the second terminal.
S404、在验证密码与热点密码匹配时通过第一数据转移热点建立第一终端与第二终端之间的通信连接。S404. Establish a communication connection between the first terminal and the second terminal by using the first data transfer hotspot when the verification password matches the hotspot password.
S405、保存第一终端与第二终端之间的通信连接配置。S405. Save a communication connection configuration between the first terminal and the second terminal.
其中,所述通信连接配置包括所述热点名称、所述第二终端标识、所述通信连接的服务器地址以及所述通信连接的端口。The communication connection configuration includes the hotspot name, the second terminal identifier, a server address of the communication connection, and a port of the communication connection.
S406、在第一终端支持第二热点网络的情况下检测第二终端是否支持第二热点网络,第二热点网络的数据传输速率高于第一热点网络。S406. If the first terminal supports the second hotspot network, check whether the second terminal supports the second hotspot network, where the data transmission rate of the second hotspot network is higher than the first hotspot network.
S407、若第二终端支持第二热点网络,则将第一数据转移热点切换至第二数据转移热点,第二数据转移热点基于第二热点网络建立。S407. If the second terminal supports the second hotspot network, switch the first data transfer hotspot to the second data transfer hotspot, and the second data transfer hotspot is established based on the second hotspot network.
S408、接收到第二终端的热点连接请求时,基于该通信连接配置建立第一终端与第二终端之间的通信连接。S408. When receiving the hotspot connection request of the second terminal, establish a communication connection between the first terminal and the second terminal based on the communication connection configuration.
本发明实施例通过保存通信连接配置,从而能使得下次第一终端与第二终端建立连接时,可以基于该通信连接配置进行建立,提高连接效率。In the embodiment of the present invention, the communication connection configuration is saved, so that when the first terminal establishes a connection with the second terminal, the communication connection configuration can be established to improve the connection efficiency.
参见图5,图5是本发明实施例提供的一种热点网络切换方法的流程示意图。图5所示的方法中,与图1所示方法相同或类似的内容可以参考图1中的详细描述,此处不再赘述。其中,如图5所示,该热点网络切换方法可以包括以下步 骤:Referring to FIG. 5, FIG. 5 is a schematic flowchart of a hotspot network switching method according to an embodiment of the present invention. For the method shown in FIG. 5, the same or similar content as the method shown in FIG. 1 can be referred to the detailed description in FIG. 1, and details are not described herein again. As shown in FIG. 5, the hotspot network switching method may include the following steps. Step:
S501、当需要将第一终端中的待转移数据转移至第二终端时,基于第一热点网络建立第一数据转移热点并通过第一数据转移热点建立第一终端与第二终端之间的通信连接。S501. When the data to be transferred in the first terminal needs to be transferred to the second terminal, establish a first data transfer hotspot based on the first hotspot network, and establish communication between the first terminal and the second terminal by using the first data transfer hotspot. connection.
S502、生成二维码以使第二终端通过二维码获取并保存第一数据转移热点配置。S502. Generate a two-dimensional code, so that the second terminal acquires and saves the first data transfer hotspot configuration by using the two-dimensional code.
其中,第一数据转移热点配置包括所述第一数据转移热点的热点名称、所述第一数据转移热点的热点密码、所述第一数据转移热点的服务端地址以及所述第一转移热点的端口。The first data transfer hotspot configuration includes a hotspot name of the first data transfer hotspot, a hotspot password of the first data transfer hotspot, a server address of the first data transfer hotspot, and the first transfer hotspot. port.
S503、在第一数据转移热点切换至第二数据转移热点时,接收第二终端基于第一数据转移热点配置所发送的热点连接请求,该热点连接请求包括第一数据转移热点的热点密码。S503. When the first data transfer hotspot switches to the second data transfer hotspot, receive the hotspot connection request sent by the second terminal according to the first data transfer hotspot configuration, where the hotspot connection request includes a hotspot password of the first data transfer hotspot.
S504、通过热点连接请求并基于第一数据转移热点配置建立第一终端与第二终端之间的通信连接。S504. Establish a communication connection between the first terminal and the second terminal by using a hotspot connection request and based on the first data transfer hotspot configuration.
本发明实施例通过以二维码的形式记录热点配置,并使第二终端获知并保存,从而第二终端可以通过所保存的热点配置接入第一终端的新的热点,提高热点接入效率。In the embodiment of the present invention, the hotspot configuration is recorded in the form of a two-dimensional code, and the second terminal is learned and saved, so that the second terminal can access the new hotspot of the first terminal through the saved hotspot configuration, thereby improving hotspot access efficiency. .
本发明实施例还提供一种热点网络切换装置,该装置包括:The embodiment of the invention further provides a hotspot network switching device, the device comprising:
建立模块,用于当需要将第一终端中的待转移数据转移至第二终端时,基于第一热点网络建立第一数据转移热点并通过所述第一数据转移热点建立所述第一终端与所述第二终端之间的通信连接;Establishing a module, when the data to be transferred in the first terminal needs to be transferred to the second terminal, establishing a first data transfer hotspot based on the first hotspot network, and establishing the first terminal by using the first data transfer hotspot a communication connection between the second terminals;
检测模块,用于在所述第一终端支持第二热点网络的情况下检测所述第二终端是否支持第二热点网络,所述第二热点网络的数据传输速率高于所述第一热点网络;a detecting module, configured to detect, when the first terminal supports the second hotspot network, whether the second terminal supports the second hotspot network, where the data transmission rate of the second hotspot network is higher than the first hotspot network ;
切换模块,用于若第二终端支持第二热点网络,则将所述第一数据转移热点切换至第二数据转移热点,所述第二数据转移热点基于所述第二热点网络建立。And a switching module, configured to switch the first data transfer hotspot to a second data transfer hotspot if the second terminal supports the second hotspot network, where the second data transfer hotspot is established based on the second hotspot network.
具体的,请参见图6,图6是本发明实施例提供的一种热点网络切换装置的结构示意图,用于实现本发明实施例公开的热点网络切换方法。其中,该装置可以集成在第一终端中,或独立与第一终端存在,在此对该装置的物理实现不予限定。其中,如图6所示,该装置600可以包括:Specifically, please refer to FIG. 6. FIG. 6 is a schematic structural diagram of a hotspot network switching apparatus according to an embodiment of the present invention, which is used to implement a hotspot network switching method according to an embodiment of the present invention. The device may be integrated in the first terminal or exist independently with the first terminal, where the physical implementation of the device is not limited. Wherein, as shown in FIG. 6, the device 600 can include:
建立模块610、检测模块620和切换模块630。A module 610, a detection module 620, and a switching module 630 are established.
其中,建立模块610,用于当需要将第一终端中的待转移数据转移至第二终端时,基于第一热点网络建立第一数据转移热点并通过所述第一数据转移热点建立所述第一终端与所述第二终端之间的通信连接;The establishing module 610 is configured to establish a first data transfer hotspot based on the first hotspot network and establish the first data transfer hotspot by using the first hotspot network when the data to be transferred in the first terminal needs to be transferred to the second terminal a communication connection between a terminal and the second terminal;
检测模块620,用于在所述第一终端支持第二热点网络的情况下检测所述第二终端是否支持第二热点网络,所述第二热点网络的数据传输速率高于所述 第一热点网络;The detecting module 620 is configured to detect, when the first terminal supports the second hotspot network, whether the second terminal supports the second hotspot network, where the data transmission rate of the second hotspot network is higher than the First hotspot network;
切换模块630,用于若第二终端支持第二热点网络,则将所述第一数据转移热点切换至第二数据转移热点,所述第二数据转移热点基于所述第二热点网络建立。The switching module 630 is configured to switch the first data transfer hotspot to a second data transfer hotspot if the second terminal supports the second hotspot network, where the second data transfer hotspot is established based on the second hotspot network.
可以理解的是,本实施例的装置600的各功能模块的功能可根据上述方法实施例中的方法具体实现,其具体实现过程可以参照上述方法实施例的相关描述,此处不再赘述。It is to be understood that the functions of the functional modules of the apparatus 600 of the present embodiment may be specifically implemented according to the method in the foregoing method embodiments. For the specific implementation process, refer to the related description of the foregoing method embodiments, and details are not described herein again.
可以看出,本实施例的方案中,当需要将第一终端中的待转移数据转移至第二终端时,基于第一热点网络建立第一数据转移热点并通过所述第一数据转移热点建立所述第一终端与所述第二终端之间的通信连接;在所述第一终端支持第二热点网络的情况下检测所述第二终端是否支持第二热点网络,所述第二热点网络的数据传输速率高于所述第一热点网络;若第二终端支持第二热点网络,则将所述第一数据转移热点切换至第二数据转移热点,所述第二数据转移热点基于所述第二热点网络建立。通过从第一热点网络切换至数据传输速率更高的第二热点网络后,第一终端再基于该第二热点网络建立第二数据转移热点,从而使得第一终端和第二终端基于该数据转移热点的传输速率更高,提高数据转移效率。It can be seen that, in the solution of the embodiment, when the data to be transferred in the first terminal needs to be transferred to the second terminal, the first data transfer hotspot is established based on the first hotspot network and established by using the first data transfer hotspot. a communication connection between the first terminal and the second terminal; if the first terminal supports the second hotspot network, detecting whether the second terminal supports the second hotspot network, the second hotspot network The data transmission rate is higher than the first hotspot network; if the second terminal supports the second hotspot network, the first data transfer hotspot is switched to the second data transfer hotspot, and the second data transfer hotspot is based on the The second hotspot network is established. After switching from the first hotspot network to the second hotspot network with a higher data transmission rate, the first terminal establishes a second data transfer hotspot based on the second hotspot network, so that the first terminal and the second terminal are based on the data transfer. The hotspot has a higher transfer rate and improves data transfer efficiency.
请参见图7,图7是本发明实施例提供的热点网络切换装置的结构示意图,用于实现本发明实施例公开的热点网络切换方法。其中,图7所示的热点网络切换装置是由图6所示的热点网络切换装置进行优化得到的。图7所示的热点网络切换装置除了包括图6所示的热点网络切换装置的模块及功能之外,还有以下扩展:Referring to FIG. 7, FIG. 7 is a schematic structural diagram of a hotspot network switching apparatus according to an embodiment of the present invention, which is used to implement a hotspot network switching method disclosed in an embodiment of the present invention. The hotspot network switching device shown in FIG. 7 is optimized by the hotspot network switching device shown in FIG. 6. The hotspot network switching apparatus shown in FIG. 7 has the following extensions in addition to the modules and functions of the hotspot network switching apparatus shown in FIG. 6:
在一个实施例中,In one embodiment,
所述热点网络切换装置700还包括:The hotspot network switching apparatus 700 further includes:
第一接收模块740,用于接收所述第二终端发送的热点连接请求;The first receiving module 740 is configured to receive a hotspot connection request sent by the second terminal;
所述建立模块710还用于通过所述第二数据转移热点建立所述第一终端与所述第二终端之间的通信连接以响应所述热点连接请求。The establishing module 710 is further configured to establish, by using the second data transfer hotspot, a communication connection between the first terminal and the second terminal in response to the hotspot connection request.
在一个实施例中,所述热点网络切换装置700还包括:In an embodiment, the hotspot network switching apparatus 700 further includes:
设置模块750,用于对所述第一数据转移热点设置热点名称及热点密码;The setting module 750 is configured to set a hotspot name and a hotspot password for the first data transfer hotspot;
所述建立模块710具体用于:The establishing module 710 is specifically configured to:
接收所述第二终端发送的验证密码;Receiving a verification password sent by the second terminal;
在所述验证密码与所述热点密码匹配时通过所述第一数据转移热点建立所述终端与所述第二终端之间的通信连接。Establishing a communication connection between the terminal and the second terminal by using the first data transfer hotspot when the verification password matches the hotspot password.
在一个实施例中,所述热点网络切换装置700还包括:In an embodiment, the hotspot network switching apparatus 700 further includes:
保存模块760,用于保存所述第一终端与所述第二终端之间的所述通信连接配置,所述通信连接配置包括所述热点名称、所述第二终端标识、所述通信连接的服务器地址以及所述通信连接的端口。 a saving module 760, configured to save the communication connection configuration between the first terminal and the second terminal, where the communication connection configuration includes the hotspot name, the second terminal identifier, and the communication connection The server address and the port of the communication connection.
在一个实施例中,所述建立模块710还用于当所述第一终端切换至第二数据转移热点之后接收到所述第二终端的热点连接请求时,基于所述通信连接配置建立所述第一终端与所述第二终端之间的通信连接。In an embodiment, the establishing module 710 is further configured to establish, according to the communication connection configuration, the hotspot connection request of the second terminal after the first terminal switches to the second data transfer hotspot. A communication connection between the first terminal and the second terminal.
在一个实施例中,所述热点网络切换装置700还包括:In an embodiment, the hotspot network switching apparatus 700 further includes:
生成模块770,用于生成二维码以使所述第二终端通过所述二维码获取并保存第一数据转移热点配置,所述第一数据转移热点配置包括所述第一数据转移热点的热点名称、所述第一数据转移热点的热点密码、所述第一数据转移热点的服务端地址以及所述第一转移热点的端口;a generating module 770, configured to generate a two-dimensional code, so that the second terminal acquires and saves a first data transfer hotspot configuration by using the two-dimensional code, where the first data transfer hotspot configuration includes the first data transfer hotspot a hotspot name, a hotspot password of the first data transfer hotspot, a server address of the first data transfer hotspot, and a port of the first transfer hotspot;
第二接收模块780,用于在所述第一数据转移热点切换至第二数据转移热点,接收所述第二终端基于所述第一数据转移热点配置所发送的热点连接请求,所述热点连接请求包括所述第一数据转移热点的热点密码;The second receiving module 780 is configured to switch to the second data transfer hotspot in the first data transfer hotspot, and receive the hotspot connection request sent by the second terminal based on the first data transfer hotspot configuration, where the hotspot connection is Requesting a hotspot password including the first data transfer hotspot;
所述建立模块710还用于通过所述热点连接请求并基于所述第一数据转移热点配置建立所述第一终端与所述第二终端之间的通信连接。The establishing module 710 is further configured to establish, by using the hotspot connection request, a communication connection between the first terminal and the second terminal according to the first data transfer hotspot configuration.
在一个实施例中,所述装置还包括:In one embodiment, the apparatus further includes:
第三接收模块790,用于接收用户的述转移热点的建立请求;The third receiving module 790 is configured to receive a request for establishing a transfer hotspot of the user;
判断模块791,用于判断所述第一终端的无线保真WiFi的当前状态是否为开启状态;The determining module 791 is configured to determine whether the current state of the wireless fidelity WiFi of the first terminal is an open state;
关闭模块792,用于若所述第一终端的无线保真WiFi的当前状态为开启状态,则关闭所述无线保真WiFi。The closing module 792 is configured to close the wireless fidelity WiFi if the current state of the wireless fidelity WiFi of the first terminal is an open state.
在一个实施例中,所述建立模块710还用于:建立所述第一终端与所述第二终端之间的数据连接之后;In an embodiment, the establishing module 710 is further configured to: after establishing a data connection between the first terminal and the second terminal;
所述设置模块750还用于:对所述数据连接设置数据连接名称,所述数据连接名称用于唯一标识所述第一终端与所述第二终端之间的数据连接。The setting module 750 is further configured to: set a data connection name to the data connection, where the data connection name is used to uniquely identify a data connection between the first terminal and the second terminal.
在一个实施例中,所述装置还包括:In one embodiment, the apparatus further includes:
发送模块793,用于建立第一数据转移热点之后,以第一预设时间为周期对外发送信标Beacon广播,所述Beacon中包括所述数据连接的数据连接名称;The sending module 793 is configured to send a beacon broadcast to the beacon in a first preset time period after the first data transfer hotspot is established, where the Beacon includes the data connection name of the data connection;
所述判断模块792还用于:判断所述数据连接是否建立;The determining module 792 is further configured to: determine whether the data connection is established;
所述设置模块750还用于:若所述第二终端在超过预设时间阀值时没有建立所述数据连接,则将所述第一预设时间设置为第二预设时间,所述第二预设时间大于所述第一预设时间。The setting module 750 is further configured to: if the second terminal does not establish the data connection when a preset time threshold is exceeded, set the first preset time to a second preset time, where the The second preset time is greater than the first preset time.
可以理解的是,本实施例的热点网络切换装置700的各功能模块的功能可根据上述方法实施例中的方法具体实现,其具体实现过程可以参照上述方法实施例的相关描述,此处不再赘述。It is to be understood that the functions of the functional modules of the hotspot network switching apparatus 700 of the present embodiment may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiments, and Narration.
可以看出,本实施例的方案中,当需要将第一终端中的待转移数据转移至第二终端时,基于第一热点网络建立第一数据转移热点并通过所述第一数据转移热点建立所述第一终端与所述第二终端之间的通信连接;在所述第一终端支持第二热点网络的情况下检测所述第二终端是否支持第二热点网络,所述第二热点网络的数据传输速率高于所述第一热点网络;若第二终端支持第二热点网 络,则将所述第一数据转移热点切换至第二数据转移热点,所述第二数据转移热点基于所述第二热点网络建立。通过从第一热点网络切换至数据传输速率更高的第二热点网络后,第一终端再基于该第二热点网络建立第二数据转移热点,从而使得第一终端和第二终端基于该数据转移热点的传输速率更高,提高数据转移效率。It can be seen that, in the solution of the embodiment, when the data to be transferred in the first terminal needs to be transferred to the second terminal, the first data transfer hotspot is established based on the first hotspot network and established by using the first data transfer hotspot. a communication connection between the first terminal and the second terminal; if the first terminal supports the second hotspot network, detecting whether the second terminal supports the second hotspot network, the second hotspot network Data transmission rate is higher than the first hotspot network; if the second terminal supports the second hotspot network And the first data transfer hotspot is switched to the second data transfer hotspot, and the second data transfer hotspot is established based on the second hotspot network. After switching from the first hotspot network to the second hotspot network with a higher data transmission rate, the first terminal establishes a second data transfer hotspot based on the second hotspot network, so that the first terminal and the second terminal are based on the data transfer. The hotspot has a higher transfer rate and improves data transfer efficiency.
参见图8,图8是本发明实施例提供的终端的结构示意图。该终端800可以是上述实施例中的第一终端。如图8所示,该终端800可以包括:至少一个输入设备801;至少一个输出设备802;至少一个处理器803,例如CPU;和存储器804,上述输入设备801、输出设备802、处理器803和存储器804通过总线805连接。Referring to FIG. 8, FIG. 8 is a schematic structural diagram of a terminal according to an embodiment of the present invention. The terminal 800 can be the first terminal in the above embodiment. As shown in FIG. 8, the terminal 800 may include: at least one input device 801; at least one output device 802; at least one processor 803, such as a CPU; and a memory 804, the input device 801, the output device 802, the processor 803, and The memory 804 is connected by a bus 805.
上述存储器804可以是高速RAM存储器,也可为非不稳定的存储器(non-volatile memory),例如磁盘存储器。上述存储器604用于存储一组程序代码,上述输入设备801、输出设备802和处理器803用于调用存储器804中存储的程序代码,执行如下操作:The above memory 804 may be a high speed RAM memory or a non-volatile memory such as a disk memory. The above-mentioned memory 604 is used to store a set of program codes, and the input device 801, the output device 802, and the processor 803 are used to call the program code stored in the memory 804, and perform the following operations:
上述处理器803,用于当需要将第一终端中的待转移数据转移至第二终端时,基于第一热点网络建立第一数据转移热点并通过所述第一数据转移热点建立所述第一终端与所述第二终端之间的通信连接。The processor 803 is configured to: when the data to be transferred in the first terminal needs to be transferred to the second terminal, establish a first data transfer hotspot based on the first hotspot network, and establish the first by using the first data transfer hotspot A communication connection between the terminal and the second terminal.
上述处理器803,还用于在所述第一终端支持第二热点网络的情况下检测所述第二终端是否支持第二热点网络,所述第二热点网络的数据传输速率高于所述第一热点网络;The processor 803 is further configured to detect, when the first terminal supports the second hotspot network, whether the second terminal supports the second hotspot network, where the data transmission rate of the second hotspot network is higher than the first a hotspot network;
上述处理器803,还用于若第二终端支持第二热点网络,则将所述第一数据转移热点切换至第二数据转移热点,所述第二数据转移热点基于所述第二热点网络建立。The processor 803 is further configured to: if the second terminal supports the second hotspot network, switch the first data transfer hotspot to the second data transfer hotspot, where the second data transfer hotspot is established based on the second hotspot network .
上述处理器803,还用于接收所述第二终端发送的热点连接请求;The processor 803 is further configured to receive a hotspot connection request sent by the second terminal;
通过所述第二数据转移热点建立所述第一终端与所述第二终端之间的通信连接以响应所述热点连接请求。Establishing, by the second data transfer hotspot, a communication connection between the first terminal and the second terminal in response to the hotspot connection request.
上述处理器803,还用于对所述第一数据转移热点设置热点名称及热点密码;The processor 803 is further configured to: set a hotspot name and a hotspot password to the first data transfer hotspot;
接收所述第二终端发送的验证密码;Receiving a verification password sent by the second terminal;
在所述验证密码与所述热点密码匹配时通过所述第一数据转移热点建立所述第一终端与所述第二终端之间的通信连接。Establishing a communication connection between the first terminal and the second terminal by using the first data transfer hotspot when the verification password matches the hotspot password.
上述处理器803,还用于:The processor 803 is further configured to:
保存所述第一终端与所述第二终端之间的所述通信连接配置,所述通信连接配置包括所述热点名称、所述第二终端标识、所述通信连接的服务器地址以及所述通信连接的端口Saving the communication connection configuration between the first terminal and the second terminal, the communication connection configuration including the hotspot name, the second terminal identifier, a server address of the communication connection, and the communication Connected port
上述处理器803还用于当所述第一终端切换至第二数据转移热点之后接收到所述第二终端的热点连接请求时,基于所述通信连接配置建立所述第一终端与所述第二终端之间的通信连接。 The processor 803 is further configured to: when the first terminal receives the hotspot connection request of the second terminal after switching to the second data transfer hotspot, establish the first terminal and the first The communication connection between the two terminals.
上述处理器803还用于:The processor 803 is further configured to:
生成二维码以使所述第二终端通过所述二维码获取并保存第一数据转移热点配置,所述第一数据转移热点配置包括所述第一数据转移热点的热点名称、所述第一数据转移热点的热点密码、所述第一数据转移热点的服务端地址以及所述第一转移热点的端口;Generating a two-dimensional code to enable the second terminal to acquire and save a first data transfer hotspot configuration by using the two-dimensional code, where the first data transfer hotspot configuration includes a hotspot name of the first data transfer hotspot, the first a hotspot password of a data transfer hotspot, a server address of the first data transfer hotspot, and a port of the first transfer hotspot;
在所述第一数据转移热点切换至第二数据转移热点,接收所述第二终端基于所述第一数据转移热点配置所发送的热点连接请求,所述热点连接请求包括所述第一数据转移热点的热点密码;Switching to the second data transfer hotspot at the first data transfer hotspot, receiving the hotspot connection request sent by the second terminal based on the first data transfer hotspot configuration, the hotspot connection request including the first data transfer Hotspot password for hotspots;
通过所述热点连接请求并基于所述第一数据转移热点配置建立所述第一终端与所述第二终端之间的通信连接。Establishing a communication connection between the first terminal and the second terminal by using the hotspot connection request and based on the first data transfer hotspot configuration.
上述处理器803还用于:接收用户的述转移热点的建立请求;The processor 803 is further configured to: receive a request for establishing a transfer hotspot of the user;
判断所述第一终端的无线保真WiFi的当前状态是否为开启状态;Determining whether the current state of the wireless fidelity WiFi of the first terminal is an open state;
若所述第一终端的无线保真WiFi的当前状态为开启状态,则关闭所述无线保真WiFi。If the current state of the wireless fidelity WiFi of the first terminal is an open state, the wireless fidelity WiFi is turned off.
上述处理器803还用于:所述建立所述第一终端与所述第二终端之间的数据连接之后,所述方法还包括:The processor 803 is further configured to: after the establishing a data connection between the first terminal and the second terminal, the method further includes:
对所述数据连接设置数据连接名称,所述数据连接名称用于唯一标识所述第一终端与所述第二终端之间的数据连接。And setting a data connection name to the data connection, where the data connection name is used to uniquely identify a data connection between the first terminal and the second terminal.
上述处理器803还用于:所述建立第一数据转移热点之后,所述方法还包括:The processor 803 is further configured to: after the establishing the first data transfer hotspot, the method further includes:
以第一预设时间为周期对外发送信标Beacon广播,所述Beacon中包括所述数据连接的数据连接名称;Transmitting a beacon Beacon broadcast to the first preset time period, where the Beacon includes a data connection name of the data connection;
判断所述数据连接是否建立;Determining whether the data connection is established;
若所述第二终端在超过预设时间阀值时没有建立所述数据连接,则将所述第一预设时间设置为第二预设时间,所述第二预设时间大于所述第一预设时间。If the second terminal does not establish the data connection when the preset time threshold is exceeded, setting the first preset time to a second preset time, where the second preset time is greater than the first Preset time.
可以理解的是,本实施例的终端800的各功能模块的功能可根据上述方法实施例中的方法具体实现,其具体实现过程可以参照上述方法实施例的相关描述,此处不再赘述。It is to be understood that the functions of the functional modules of the terminal 800 of the present embodiment may be specifically implemented according to the method in the foregoing method embodiments. For the specific implementation process, refer to the related description of the foregoing method embodiments, and details are not described herein again.
可以看出,本实施例的方案中,当需要将第一终端中的待转移数据转移至第二终端时,基于第一热点网络建立第一数据转移热点并通过所述第一数据转移热点建立所述第一终端与所述第二终端之间的通信连接;在所述第一终端支持第二热点网络的情况下检测所述第二终端是否支持第二热点网络,所述第二热点网络的数据传输速率高于所述第一热点网络;若第二终端支持第二热点网络,则将所述第一数据转移热点切换至第二数据转移热点,所述第二数据转移热点基于所述第二热点网络建立。通过从第一热点网络切换至数据传输速率更高的第二热点网络后,第一终端再基于该第二热点网络建立第二数据转移热点,从而使得第一终端和第二终端基于该数据转移热点的传输速率更高,提高数据转移效率。 It can be seen that, in the solution of the embodiment, when the data to be transferred in the first terminal needs to be transferred to the second terminal, the first data transfer hotspot is established based on the first hotspot network and established by using the first data transfer hotspot. a communication connection between the first terminal and the second terminal; if the first terminal supports the second hotspot network, detecting whether the second terminal supports the second hotspot network, the second hotspot network The data transmission rate is higher than the first hotspot network; if the second terminal supports the second hotspot network, the first data transfer hotspot is switched to the second data transfer hotspot, and the second data transfer hotspot is based on the The second hotspot network is established. After switching from the first hotspot network to the second hotspot network with a higher data transmission rate, the first terminal establishes a second data transfer hotspot based on the second hotspot network, so that the first terminal and the second terminal are based on the data transfer. The hotspot has a higher transfer rate and improves data transfer efficiency.
在一个实施例中,所述终端为手机,下面结合图9对手机的各个构成部件进行具体的介绍:In one embodiment, the terminal is a mobile phone, and the following describes the components of the mobile phone in conjunction with FIG. 9:
RF电路910可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器980处理;另外,将设计上行的数据发送给基站。通常,RF电路910包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路910还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobile communication,GSM)、通用分组无线服务(General Packet Radio Service,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 transmitting signals during and after receiving or transmitting information, in particular, after receiving the downlink information of the base station, and processing it to the processor 980; in addition, transmitting the designed uplink data to the base station. Generally, 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 can also communicate with the network and other devices via wireless communication. The above wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (Code Division). Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), E-mail, 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 software programs and modules stored in the memory 920. The memory 920 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a lock screen picture display method), and the like; and the storage data area may be stored according to the use of the mobile phone. The created data (lock screen images with different resolutions and compression ratios) and so on. Moreover, memory 920 can include high speed random access memory, and can 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 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function controls of the handset. Specifically, the input unit 930 can 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 on or near the user (such as a user using a finger, a stylus, or the like on the touch panel 931 or near the touch panel 931. Operation), and drive the corresponding connecting device according to a preset program. Optionally, the touch panel 931 can include two parts: a touch detection device and a touch controller. Wherein, the touch detection device detects the touch orientation of the user, and detects a 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 the touch information into contact coordinates, and sends the touch information. The processor 980 is provided and can receive commands from the processor 980 and execute them. 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 also include other input devices 932. Specifically, other input devices 932 may include, but are not limited to, a physical keyboard, at least one of a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, a joystick, and the like.
显示单元940可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元940可包括显示面板941,可选的,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板941。进一步的,触控面板931可覆盖显示面板941,当触控面板931检测到在其上或附近的触摸操作后,传送给处理器980以 确定触摸事件的类型,随后处理器980根据触摸事件的类型在显示面板941上提供相应的视觉输出。虽然在图9中,触控面板931与显示面板941是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板931与显示面板941集成而实现手机的输入和输出功能。The display unit 940 can be used to display information input by the user or information provided to the user as well as various menus of the mobile phone. The display unit 940 can include a display panel 941. Alternatively, the display panel 941 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like. Further, the touch panel 931 can cover the display panel 941, and when the touch panel 931 detects a touch operation on or near the touch panel 931, it is transmitted to the processor 980. The type of touch event is determined, and processor 980 then provides a corresponding visual output on display panel 941 depending on the type of touch event. Although the touch panel 931 and the display panel 941 are used as two independent components to implement the input and input functions of the mobile phone in FIG. 9, in some embodiments, the touch panel 931 and the display panel 941 may be integrated. Realize the input and output functions of the phone.
手机还可包括至少一种传感器950,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板941的亮度,接近传感器可在手机移动到耳边时,关闭显示面板941和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The handset may also include at least one type of sensor 950, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 941 according to the brightness of the ambient light, and the proximity sensor may close the display panel 941 and/or when the mobile phone moves 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). When it is stationary, it can detect the magnitude and direction of gravity. It can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
音频电路960、扬声器961,传声器962可提供用户与手机之间的音频接口。音频电路960可将接收到的音频数据转换后的电信号,传输到扬声器961,由扬声器961转换为声音信号输出;另一方面,传声器962将收集的声音信号转换为电信号,由音频电路960接收后转换为音频数据,再将音频数据输出处理器980处理后,经RF电路910以发送给比如另一手机,或者将音频数据输出至存储器920以便进一步处理。An audio circuit 960, a speaker 961, and a microphone 962 can provide an audio interface between the user and the handset. The audio circuit 960 can transmit the converted electrical data of the received audio data to the speaker 961, and convert it into a sound signal output by the speaker 961. On the other hand, the microphone 962 converts the collected sound signal into an electrical signal, and the audio circuit 960 After receiving, it is converted into audio data, and then processed by the audio data output processor 980, sent to the other mobile phone via the RF circuit 910, or outputted to the memory 920 for further processing.
WiFi属于短距离无线传输技术,手机通过WiFi模块970可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图9示出了WiFi模块970,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-range wireless transmission technology, and the mobile phone can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 970, which provides users with wireless broadband Internet access. Although FIG. 9 shows the WiFi module 970, it can be understood that it does not belong to the essential configuration of the mobile phone, and can be omitted as needed 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 handset, which connects various portions of the entire handset using various interfaces and lines, by executing or executing software programs and/or modules stored in the memory 920, and invoking data stored in the memory 920, executing The phone's various functions and processing data, so that the overall monitoring of the phone. Optionally, the processor 980 may include one or more processing units; preferably, the processor 980 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like. The modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 980.
手机还包括给各个部件供电的电源990(比如电池),优选的,电源可以通过电源管理系统与处理器980逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The handset also includes a power source 990 (such as a battery) that supplies power to the various components. Preferably, the power source can be logically coupled to the processor 980 through a power management system to manage functions such as charging, discharging, and power management through the power management system.
尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown, the mobile phone may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
前述实施例中,各步骤方法流程可以基于图9所示的终端的结构实现。In the foregoing embodiment, each step method flow may be implemented based on the structure of the terminal shown in FIG. 9.
本发明实施例还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时包括上述方法实施例中记载的任何热点网络切换方法的部分或全部步骤。 The embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium can store a program, and the program includes some or all of the steps of any hotspot network switching method described in the foregoing method embodiments.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should understand that the present invention is not limited by the described action sequence. Because certain steps may be performed in other sequences or concurrently in accordance with the present invention. In addition, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above embodiments, the descriptions of the various embodiments are different, and the details that are not detailed in a certain embodiment can be referred to the related descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided herein, it should be understood that the disclosed apparatus may be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical or otherwise.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明的各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a U disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, and the like. .
以上所述,以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。 The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the embodiments are modified, or some of the technical features are replaced by equivalents; and the modifications or substitutions do not deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims (20)

  1. 一种热点网络切换方法,其特征在于,所述方法包括:A hotspot network switching method, the method comprising:
    当需要将第一终端中的待转移数据转移至第二终端时,基于第一热点网络建立第一数据转移热点并通过所述第一数据转移热点建立所述第一终端与所述第二终端之间的通信连接;Establishing a first data transfer hotspot based on the first hotspot network and establishing the first terminal and the second terminal by using the first data transfer hotspot when the data to be transferred in the first terminal needs to be transferred to the second terminal Communication connection between
    在所述第一终端支持第二热点网络的情况下检测所述第二终端是否支持第二热点网络,所述第二热点网络的数据传输速率高于所述第一热点网络;If the second terminal supports the second hotspot network, detecting whether the second terminal supports the second hotspot network, where the data transmission rate of the second hotspot network is higher than the first hotspot network;
    若第二终端支持第二热点网络,则将所述第一数据转移热点切换至第二数据转移热点,所述第二数据转移热点基于所述第二热点网络建立。And if the second terminal supports the second hotspot network, the first data transfer hotspot is switched to the second data transfer hotspot, and the second data transfer hotspot is established based on the second hotspot network.
  2. 根据权利要求1所述的方法,其特征在于,所述将所述第一数据转移热点切换至第二数据转移热点之后,所述方法还包括:The method according to claim 1, wherein after the switching the first data transfer hotspot to the second data transfer hotspot, the method further comprises:
    接收所述第二终端发送的热点连接请求;Receiving a hotspot connection request sent by the second terminal;
    通过所述第二数据转移热点建立所述第一终端与所述第二终端之间的通信连接以响应所述热点连接请求。Establishing, by the second data transfer hotspot, a communication connection between the first terminal and the second terminal in response to the hotspot connection request.
  3. 根据权利要求1或2所述的方法,其特征在于,所述基于第一热点网络建立第一数据转移热点之后,所述方法还包括:The method according to claim 1 or 2, wherein after the first data hotspot is established based on the first hotspot network, the method further includes:
    对所述第一数据转移热点设置热点名称及热点密码;Setting a hotspot name and a hotspot password for the first data transfer hotspot;
    所述通过所述第一数据转移热点建立所述第一终端与所述第二终端之间的通信连接,包括:The establishing, by the first data transfer hotspot, the communication connection between the first terminal and the second terminal includes:
    接收所述第二终端发送的验证密码;Receiving a verification password sent by the second terminal;
    在所述验证密码与所述热点密码匹配时通过所述第一数据转移热点建立所述第一终端与所述第二终端之间的通信连接。Establishing a communication connection between the first terminal and the second terminal by using the first data transfer hotspot when the verification password matches the hotspot password.
  4. 根据权利要求3所述的方法,其特征在于,所述通过所述第一数据转移热点建立所述第一终端与所述第二终端之间的通信连接之后,所述方法还包括:The method according to claim 3, wherein after the establishing a communication connection between the first terminal and the second terminal by using the first data transfer hotspot, the method further comprises:
    保存所述第一终端与所述第二终端之间的所述通信连接配置,所述通信连接配置包括所述热点名称、所述第二终端标识、所述通信连接的服务器地址以及所述通信连接的端口。Saving the communication connection configuration between the first terminal and the second terminal, the communication connection configuration including the hotspot name, the second terminal identifier, a server address of the communication connection, and the communication Connected port.
  5. 根据权利要求4所述的方法,其特征在于,所述保存所述第一终端与所述第二终端之间的所述通信连接配置之后,所述方法还包括:The method according to claim 4, wherein after the saving the communication connection configuration between the first terminal and the second terminal, the method further comprises:
    当所述第一终端切换至第二数据转移热点之后接收到所述第二终端的热点连接请求时,基于所述通信连接配置建立所述第一终端与所述第二终端之间的通信连接。 Establishing a communication connection between the first terminal and the second terminal based on the communication connection configuration when the first terminal switches to the second data transfer hotspot and receives the hotspot connection request of the second terminal .
  6. 根据权利要求4所述的方法,其特征在于,所述基于第一热点网络建立第一数据转移热点之后,所述方法还包括:The method according to claim 4, wherein after the first data hotspot is established based on the first hotspot network, the method further includes:
    生成二维码以使所述第二终端通过所述二维码获取并保存第一数据转移热点配置,所述第一数据转移热点配置包括所述第一数据转移热点的热点名称、所述第一数据转移热点的热点密码、所述第一数据转移热点的服务端地址以及所述第一转移热点的端口;Generating a two-dimensional code to enable the second terminal to acquire and save a first data transfer hotspot configuration by using the two-dimensional code, where the first data transfer hotspot configuration includes a hotspot name of the first data transfer hotspot, the first a hotspot password of a data transfer hotspot, a server address of the first data transfer hotspot, and a port of the first transfer hotspot;
    在所述第一数据转移热点切换至第二数据转移热点时,接收所述第二终端基于所述第一数据转移热点配置所发送的热点连接请求,所述热点连接请求包括所述第一数据转移热点的热点密码;Receiving, by the second terminal, a hotspot connection request sent by the second terminal based on the first data transfer hotspot configuration, where the first data transfer hotspot is switched to the second data transfer hotspot, the hotspot connection request includes the first data Transfer hotspot passwords for hotspots;
    通过所述热点连接请求并基于所述第一数据转移热点配置建立所述第一终端与所述第二终端之间的通信连接。Establishing a communication connection between the first terminal and the second terminal by using the hotspot connection request and based on the first data transfer hotspot configuration.
  7. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:
    接收用户的述转移热点的建立请求;Receiving a request for establishing a transfer hotspot of the user;
    判断所述第一终端的无线保真WiFi的当前状态是否为开启状态;Determining whether the current state of the wireless fidelity WiFi of the first terminal is an open state;
    若所述第一终端的无线保真WiFi的当前状态为开启状态,则关闭所述无线保真WiFi。If the current state of the wireless fidelity WiFi of the first terminal is an open state, the wireless fidelity WiFi is turned off.
  8. 根据权利要求1所述的方法,其特征在于,所述建立所述第一终端与所述第二终端之间的数据连接之后,所述方法还包括:The method according to claim 1, wherein after the establishing a data connection between the first terminal and the second terminal, the method further comprises:
    对所述数据连接设置数据连接名称,所述数据连接名称用于唯一标识所述第一终端与所述第二终端之间的数据连接。And setting a data connection name to the data connection, where the data connection name is used to uniquely identify a data connection between the first terminal and the second terminal.
  9. 根据权利要求1所述的方法,其特征在于,所述建立第一数据转移热点之后,所述方法还包括:The method according to claim 1, wherein after the establishing the first data transfer hotspot, the method further comprises:
    以第一预设时间为周期对外发送信标Beacon广播,所述Beacon中包括所述数据连接的数据连接名称;Transmitting a beacon Beacon broadcast to the first preset time period, where the Beacon includes a data connection name of the data connection;
    判断所述数据连接是否建立;Determining whether the data connection is established;
    若所述第二终端在超过预设时间阀值时没有建立所述数据连接,则将所述第一预设时间设置为第二预设时间,所述第二预设时间大于所述第一预设时间。If the second terminal does not establish the data connection when the preset time threshold is exceeded, setting the first preset time to a second preset time, where the second preset time is greater than the first Preset time.
  10. 一种热点网络切换装置,其特征在于,所述装置包括:A hotspot network switching device, characterized in that the device comprises:
    建立模块,用于当需要将第一终端中的待转移数据转移至第二终端时,基于第一热点网络建立第一数据转移热点并通过所述第一数据转移热点建立所述第一终端与所述第二终端之间的通信连接;Establishing a module, when the data to be transferred in the first terminal needs to be transferred to the second terminal, establishing a first data transfer hotspot based on the first hotspot network, and establishing the first terminal by using the first data transfer hotspot a communication connection between the second terminals;
    检测模块,用于在所述第一终端支持第二热点网络的情况下检测所述第二终端是否支持第二热点网络,所述第二热点网络的数据传输速率高于所述第一热点网络; a detecting module, configured to detect, when the first terminal supports the second hotspot network, whether the second terminal supports the second hotspot network, where the data transmission rate of the second hotspot network is higher than the first hotspot network ;
    切换模块,用于若第二终端支持第二热点网络,则将所述第一数据转移热点切换至第二数据转移热点,所述第二数据转移热点基于所述第二热点网络建立。And a switching module, configured to switch the first data transfer hotspot to a second data transfer hotspot if the second terminal supports the second hotspot network, where the second data transfer hotspot is established based on the second hotspot network.
  11. 根据权利要求10所述的装置,其特征在于,所述装置还包括:The device according to claim 10, wherein the device further comprises:
    第一接收模块,用于接收所述第二终端发送的热点连接请求;a first receiving module, configured to receive a hotspot connection request sent by the second terminal;
    所述建立模块还用于通过所述第二数据转移热点建立所述第一终端与所述第二终端之间的通信连接以响应所述热点连接请求。The establishing module is further configured to establish, by using the second data transfer hotspot, a communication connection between the first terminal and the second terminal in response to the hotspot connection request.
  12. 根据权利要求10或11所述的装置,其特征在于,所述装置还包括:The device according to claim 10 or 11, wherein the device further comprises:
    设置模块,用于对所述第一数据转移热点设置热点名称及热点密码;a setting module, configured to set a hotspot name and a hotspot password for the first data transfer hotspot;
    所述建立模块具体用于:The establishing module is specifically configured to:
    接收所述第二终端发送的验证密码;Receiving a verification password sent by the second terminal;
    在所述验证密码与所述热点密码匹配时通过所述第一数据转移热点建立所述第一终端与所述第二终端之间的通信连接。Establishing a communication connection between the first terminal and the second terminal by using the first data transfer hotspot when the verification password matches the hotspot password.
  13. 根据权利要求12所述的装置,其特征在于,所述装置还包括:The device of claim 12, wherein the device further comprises:
    保存模块,用于保存所述第一终端与所述第二终端之间的所述通信连接配置,所述通信连接配置包括所述热点名称、所述第二终端标识、所述通信连接的服务器地址以及所述通信连接的端口。a saving module, configured to save the communication connection configuration between the first terminal and the second terminal, where the communication connection configuration includes the hotspot name, the second terminal identifier, and the server connected to the communication The address and the port of the communication connection.
  14. 根据权利要求13所述的装置,其特征在于,The device of claim 13 wherein:
    所述建立模块还用于当所述第一终端切换至第二数据转移热点之后接收到所述第二终端的热点连接请求时,基于所述通信连接配置建立所述第一终端与所述第二终端之间的通信连接。The establishing module is further configured to: when the first terminal switches to the second data transfer hotspot, receive the hotspot connection request of the second terminal, establish the first terminal and the first based on the communication connection configuration The communication connection between the two terminals.
  15. 根据权利要求13所述的终端设置,其特征在于,所述装置还包括:The terminal device according to claim 13, wherein the device further comprises:
    生成模块,用于生成二维码以使所述第二终端通过所述二维码获取并保存第一数据转移热点配置,所述第一数据转移热点配置包括所述第一数据转移热点的热点名称、所述第一数据转移热点的热点密码、所述第一数据转移热点的服务端地址以及所述第一转移热点的端口;a generating module, configured to generate a two-dimensional code, to enable the second terminal to acquire and save a first data transfer hotspot configuration by using the two-dimensional code, where the first data transfer hotspot configuration includes a hotspot of the first data transfer hotspot a name, a hotspot password of the first data transfer hotspot, a server address of the first data transfer hotspot, and a port of the first transfer hotspot;
    第二接收模块,用于在所述第一数据转移热点切换至第二数据转移热点时,接收所述第二终端基于所述第一数据转移热点配置所发送的热点连接请求,所述热点连接请求包括所述第一数据转移热点的热点密码;a second receiving module, configured to receive, when the first data transfer hotspot switches to the second data transfer hotspot, the hotspot connection request sent by the second terminal based on the first data transfer hotspot configuration, the hotspot connection Requesting a hotspot password including the first data transfer hotspot;
    所述建立模块还用于通过所述热点连接请求并基于所述第一数据转移热点配置建立所述终端与所述第二终端之间的通信连接。The establishing module is further configured to establish a communication connection between the terminal and the second terminal by using the hotspot connection request and based on the first data transfer hotspot configuration.
  16. 根据权利要求10所述的装置,其特征在于,所述装置还包括: The device according to claim 10, wherein the device further comprises:
    第三接收模块,用于接收用户的述转移热点的建立请求;a third receiving module, configured to receive a request for establishing a transfer hotspot of the user;
    判断模块,用于判断所述第一终端的无线保真WiFi的当前状态是否为开启状态;a determining module, configured to determine whether a current state of the wireless fidelity WiFi of the first terminal is an open state;
    关闭模块,用于若所述第一终端的无线保真WiFi的当前状态为开启状态,则关闭所述无线保真WiFi。And the closing module is configured to close the wireless fidelity WiFi if the current state of the wireless fidelity WiFi of the first terminal is an open state.
  17. 根据权利要求10所述的装置,其特征在于,The device of claim 10 wherein:
    所述建立模块还用于:建立所述第一终端与所述第二终端之间的数据连接之后;The establishing module is further configured to: after establishing a data connection between the first terminal and the second terminal;
    所述设置模块还用于:对所述数据连接设置数据连接名称,所述数据连接名称用于唯一标识所述第一终端与所述第二终端之间的数据连接。The setting module is further configured to: set a data connection name to the data connection, where the data connection name is used to uniquely identify a data connection between the first terminal and the second terminal.
  18. 根据权利要求10所述的装置,其特征在于,所述装置还包括:The device according to claim 10, wherein the device further comprises:
    发送模块,用于建立第一数据转移热点之后,以第一预设时间为周期对外发送信标Beacon广播,所述Beacon中包括所述数据连接的数据连接名称;a sending module, configured to send a beacon broadcast to the beacon in a first preset time period after the first data transfer hotspot is established, where the Beacon includes a data connection name of the data connection;
    所述判断模块还用于:判断所述数据连接是否建立;The determining module is further configured to: determine whether the data connection is established;
    所述设置模块还用于:若所述第二终端在超过预设时间阀值时没有建立所述数据连接,则将所述第一预设时间设置为第二预设时间,所述第二预设时间大于所述第一预设时间。The setting module is further configured to: if the second terminal does not establish the data connection when a preset time threshold is exceeded, set the first preset time to a second preset time, the second The preset time is greater than the first preset time.
  19. 一种终端,其特征在于,所述终端包括:A terminal, wherein the terminal comprises:
    存储有可执行程序代码的存储器;a memory storing executable program code;
    与所述存储器耦合的处理器;a processor coupled to the memory;
    所述处理器调用所述存储器中存储的所述可执行程序代码,执行如权利要求1至9任一项所述的方法。The processor invokes the executable program code stored in the memory to perform the method of any one of claims 1 to 9.
  20. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行如权利要求1至9中任意一个方法。 A computer readable storage medium, wherein the computer readable storage medium stores instructions that, when run on a computer, cause the computer to perform the method of any one of claims 1 to 9.
PCT/CN2017/098850 2016-09-14 2017-08-24 Hotspot network switching method and terminal WO2018049970A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610826596.X 2016-09-14
CN201610826596.XA CN106454975A (en) 2016-09-14 2016-09-14 Hotspot network switching method and terminal equipment

Publications (1)

Publication Number Publication Date
WO2018049970A1 true WO2018049970A1 (en) 2018-03-22

Family

ID=58167958

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/098850 WO2018049970A1 (en) 2016-09-14 2017-08-24 Hotspot network switching method and terminal

Country Status (2)

Country Link
CN (1) CN106454975A (en)
WO (1) WO2018049970A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106454975A (en) * 2016-09-14 2017-02-22 广东欧珀移动通信有限公司 Hotspot network switching method and terminal equipment
CN106850862B (en) * 2017-03-31 2021-05-25 青岛海信移动通信技术股份有限公司 Method and device for migrating data from sending end to receiving end
CN111356209B (en) * 2020-02-17 2022-04-26 Oppo广东移动通信有限公司 Multi-frequency WiFi hotspot opening method and device, storage medium and electronic equipment
CN113507515A (en) * 2021-07-05 2021-10-15 维沃移动通信有限公司 Data transmission method and device, electronic equipment and storage medium
CN114157659B (en) * 2022-02-10 2022-06-21 荣耀终端有限公司 File sharing method and terminal equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104168667A (en) * 2014-09-05 2014-11-26 北京奇虎科技有限公司 Data acquisition method, device and system
CN105392169A (en) * 2015-10-19 2016-03-09 小米科技有限责任公司 File transmission method, device and system
US20160174277A1 (en) * 2014-12-12 2016-06-16 Samsung Electronics Co., Ltd. Method of connecting wireless network and electronic device thereof
CN106454975A (en) * 2016-09-14 2017-02-22 广东欧珀移动通信有限公司 Hotspot network switching method and terminal equipment
CN106714279A (en) * 2016-11-14 2017-05-24 广东欧珀移动通信有限公司 Hot spot network switching method and terminal equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101605138A (en) * 2009-07-14 2009-12-16 中兴通讯股份有限公司 Document transmission method and terminal
CN103368611A (en) * 2012-03-27 2013-10-23 腾讯科技(深圳)有限公司 Method and mobile terminal for file transfer
CN103929755A (en) * 2013-01-15 2014-07-16 华为技术有限公司 Communication method and device
CN104955119B (en) * 2014-03-26 2019-11-26 南京中兴新软件有限责任公司 A kind of method for switching network based on flow, device and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104168667A (en) * 2014-09-05 2014-11-26 北京奇虎科技有限公司 Data acquisition method, device and system
US20160174277A1 (en) * 2014-12-12 2016-06-16 Samsung Electronics Co., Ltd. Method of connecting wireless network and electronic device thereof
CN105392169A (en) * 2015-10-19 2016-03-09 小米科技有限责任公司 File transmission method, device and system
CN106454975A (en) * 2016-09-14 2017-02-22 广东欧珀移动通信有限公司 Hotspot network switching method and terminal equipment
CN106714279A (en) * 2016-11-14 2017-05-24 广东欧珀移动通信有限公司 Hot spot network switching method and terminal equipment

Also Published As

Publication number Publication date
CN106454975A (en) 2017-02-22

Similar Documents

Publication Publication Date Title
US11057376B2 (en) Method, apparatus, and system for controlling intelligent device, and storage medium
WO2018049971A1 (en) Hotspot network switching method and terminals
WO2018049970A1 (en) Hotspot network switching method and terminal
WO2018121148A1 (en) Communication resource selection method, hand-held intelligent terminal and access device
TWI512525B (en) Method and system for associating two terminals with each other, terminal and computer-readable storage medium
WO2018049886A1 (en) Hotspot establishment method and terminal device
WO2018049912A1 (en) Data transmission method and related devices
WO2018049913A1 (en) Data transmission method and related devices
US11343233B2 (en) Node control method and related apparatus in distributed system
WO2018049881A1 (en) Data migration method and device
WO2018049894A1 (en) Data transmission method and device
WO2018103443A1 (en) Network positioning method and terminal device
WO2015131768A1 (en) Video processing method, apparatus and system
CN106657165B (en) Network attack defense method, server and terminal
BR112016018783B1 (en) METHOD, APPARATUS, DEVICE AND INTERCOMMUNICATION SYSTEM
WO2018049969A1 (en) Hotspot establishment method and related device
WO2016192511A1 (en) Method and apparatus for remotely deleting information
WO2019128179A1 (en) Method and apparatus for data transmission between mobile terminals, and mobile terminal
WO2019001188A1 (en) Data processing method, terminal and base station
WO2014094600A1 (en) Mobile terminal and method for reducing power consumption thereof
CN108012270B (en) Information processing method, equipment and computer readable storage medium
WO2023236972A1 (en) Communication environment security warning method and apparatus, terminal device, and storage medium
WO2021027713A1 (en) Uplink transmission method, uplink transmission control method, and related device
CN107864086B (en) Information rapid sharing method, mobile terminal and computer readable storage medium
WO2018161788A1 (en) Multimedia data sharing method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17850172

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17850172

Country of ref document: EP

Kind code of ref document: A1