WO2018049971A1 - Hotspot network switching method and terminals - Google Patents

Hotspot network switching method and terminals Download PDF

Info

Publication number
WO2018049971A1
WO2018049971A1 PCT/CN2017/098852 CN2017098852W WO2018049971A1 WO 2018049971 A1 WO2018049971 A1 WO 2018049971A1 CN 2017098852 W CN2017098852 W CN 2017098852W WO 2018049971 A1 WO2018049971 A1 WO 2018049971A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
hotspot
data transfer
data
network
Prior art date
Application number
PCT/CN2017/098852
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
Priority to CN201610825435.9A priority Critical patent/CN106658623A/en
Priority to CN201610825435.9 priority
Application filed by 广东欧珀移动通信有限公司 filed Critical 广东欧珀移动通信有限公司
Publication of WO2018049971A1 publication Critical patent/WO2018049971A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters used to improve the performance of a single terminal
    • H04W36/26Reselection being triggered by specific parameters used to improve the performance of a single terminal 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

Abstract

Disclosed are a hotspot network switching method and terminals. The method comprises: when to-be-transferred data in a first terminal needs to be transferred to a second terminal, establishing a first data transfer hotspot on the basis of a first hotspot network; determining whether the remaining power of the first terminal is greater than or equal to a preset power; if yes, detecting whether the second terminal supports a second hotspot network in the case that the first terminal supports the second hotspot network; if the second terminal supports the second hotspot network, switching from the first data transfer hotspot to a second data transfer hotspot. According to embodiments of the present invention, the remaining power of a terminal is determined and the hotspot network of the terminal is switched from a first hotspot network to a second hotspot network only when the remaining power of the terminal is greater than a preset power, so that a hotspot network type can be determined by taking the terminal power and a network transmission rate into consideration, thus improving the user experience.

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.
手机在进行数据迁移时,都是通过一个手机建立无线热点,然后另一手机连接至该无线热点然后进行数据传输,目前手机在建立无线热点时,可以通过2.4G的热点网络或5G热点网络建立热点进行通信,基于5G热点网络所建立的通信连接的传输效率高,但必然导致高功耗。When the mobile phone performs data migration, it establishes a wireless hotspot through one mobile phone, and then another mobile phone connects to the wireless hotspot and then performs data transmission. Currently, when the mobile phone establishes a wireless hotspot, the mobile phone can establish through a 2.4G hotspot network or a 5G hotspot network. The hotspot communicates, and the communication connection established based on the 5G hotspot network has high transmission efficiency, but inevitably leads to high power consumption.
发明内容Summary of the invention
本发明实施例提供了一种热点网络切换方法及终端,可以提高数据迁移效率的同时降低终端功耗,提高操作灵活性。The embodiment of the invention provides a hotspot network switching method and a terminal, which can improve data migration efficiency while reducing terminal power consumption and improve operation flexibility.
本发明实施例第一方面提供一种热点网络切换方法,包括: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 a first communication connection between;
判断所述第一终端的剩余电量是否大于或等于预设电量;Determining whether the remaining power of the first terminal is greater than or equal to a preset power;
若所述第一终端的剩余电量大于或等于预设电量,则在所述第一终端支持第二热点网络的情况下检测所述第二终端是否支持第二热点网络,所述第二热点网络的数据传输速率高于所述第一热点网络;If the remaining power of the first terminal is greater than or equal to the preset power, detecting whether the second terminal supports the second hotspot network, where the second terminal supports the second hotspot network, where the second hotspot network The data transmission rate 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 first communication connection between the second terminals;
判断模块,用于判断所述第一终端的剩余电量是否大于或等于预设电量;a determining module, configured to determine whether the remaining power of the first terminal is greater than or equal to a preset power;
检测模块,用于若所述第一终端的剩余电量大于或等于预设电量,则在所述第一终端支持第二热点网络的情况下检测所述第二终端是否支持第二热点 网络,所述第二热点网络的数据传输速率高于所述第一热点网络;a detecting module, configured to detect, when the first terminal supports the second hotspot network, whether the second terminal supports the second hotspot if the remaining power of the first terminal is greater than or equal to the preset power a network, 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 first communication connection between the first terminal and the second terminal; determining whether the remaining power of the first terminal is greater than or equal to a preset power; if the remaining power of the first terminal is greater than or equal to a preset If the first terminal supports the second hotspot network, the second hotspot network is detected, and the data transmission rate of the second hotspot network is higher than the first hotspot network; The second terminal supports the second hotspot network, and then switches 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. By determining the remaining power of the terminal, and selecting only when the remaining power of the terminal is greater than the preset power, the hotspot network of the terminal is switched from the first hotspot network to the second hotspot network, so that the hotspot network can be determined by weighing the terminal power and the network transmission rate. Type to enhance the user experience.
附图说明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 embodiment of the invention provides a hotspot network switching method and a terminal, so as to select whether to switch the hotspot network according to the power of the terminal, improve the data transfer efficiency, reduce the power consumption of the terminal, and improve the operation flexibility.
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is an embodiment of the invention, but 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 Determining a first communication connection between the first terminal and the second terminal; determining whether the remaining power of the first terminal is greater than or equal to a preset power; if the remaining power of the first terminal is greater than or If the first terminal supports the second hotspot network, the second terminal detects 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. 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 ("mobile phone moving") transmitting party, the second terminal 200 is a data transfer receiving party, and the first terminal 100 is established. Data transfer hotspot, then the second terminal 200 is connected to the data transfer hotspot, thereby establishing 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 based on the communication connection. The terminal 200, thereby completing the data transfer process. In the embodiment of the present invention, data migration has the same meaning as data transfer, and both refer to a process in which data is transmitted from the first terminal to the second terminal.
在本发明实施例中,该数据转移热点可以默认建立在2.4G热点网络上,但如果在数据转移过程中对数据传输速率要求较高的情况下,可考虑在第一终端 100和第二终端200均支持5G网络的情况下,将数据转移热点从2.4G热点网络切换至5G热点网络,但如果此时终端电量不高时也切换至5G热点网络将有可能导致终端由于电量不够而无法使用,所以本发明实施例综合考虑了终端电量来对热点网络进行切换。In the embodiment of the present invention, the data transfer hotspot may be established on the 2.4G hotspot network by default, but if the data transmission rate is required to be high in the data transfer process, the first terminal may be considered. If both the 100 and the second terminal 200 support the 5G network, the data transfer hotspot is switched from the 2.4G hotspot network to the 5G hotspot network. However, if the terminal power is not high at this time, the switch to the 5G hotspot network may cause the terminal to be The power is not enough to be used, so the embodiment of the present invention comprehensively considers the power of the terminal to switch the hotspot network.
首先参见图1,图1是本发明实施例提供的一种热点网络切换方法的流程示意图。其中,如图1所示,该热点网络切换方法可以包括以下步骤:Referring first to FIG. 1, FIG. 1 is a schematic flowchart of a hotspot network switching method according to an embodiment of the present invention. As shown in FIG. 1 , 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 first 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 data transfer.
在本发明实施例中,该第一热点网络可以为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.
更进一步地,用户可以通过该应用操作终端建立数据转移热点。以触发数据转移过程。Further, the user can establish a data transfer hotspot through the application operation terminal. To trigger the data transfer process.
更进一步地,当建立第一终端和第二终端之间的通信连接后,第一终端和第二终端之间可以通过该通信连接进行通信,从而可以交换信息判断对方是否支持第二热点网络。Further, 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 hotspot network.
S102、判断所述第一终端的剩余电量是否大于或等于预设电量。S102. Determine whether the remaining power of the first terminal is greater than or equal to a preset power.
其中,预设电量是指终端预设的一个用于支撑终端可以正常使用一定时间的电量。The preset power is a preset power for the terminal to support the terminal for a certain period of time.
在一个实施例中,在本发明实施例中,该预设电量可以为终端总电量的10%-30%。In an embodiment, in the embodiment of the present invention, the preset power may be 10%-30% of the total power of the terminal.
优选地,该预设电量可以为20%。Preferably, the preset power amount may be 20%.
S103、若所述第一终端的剩余电量大于或等于预设电量,则在所述第一终 端支持第二热点网络的情况下检测所述第二终端是否支持第二热点网络,所述第二热点网络的数据传输速率高于所述第一热点网络。S103. If the remaining power of the first terminal is greater than or equal to a preset power, the first terminal is If the second hotspot network is supported, the second hotspot network is detected, and 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.
在本发明实施例中,通过第一热点网络建立的通信连接传输速率低,但功耗小,通过第二热点网络建立的通信连接传输速率高,但功耗大。In the embodiment of the present invention, the communication connection established by the first hotspot network has a low transmission rate, but the power consumption is small, and the communication connection established through the second hotspot network has a high transmission rate but large power consumption.
在本发明实施例中,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热点网络的情况下基于5G热点网络重新建立连接,此时第一终端才选择切换热点网络。In the embodiment of the present invention, since the power consumption of the 5G hotspot network is large, when the remaining power of the terminal is greater than the preset power, the terminal can ensure that the terminal has sufficient power to support the 5G in both the first terminal and the second terminal. In the case of a hotspot network, the connection is re-established based on the 5G hotspot network, and the first terminal selects to switch the hotspot network.
S104、若第二终端支持第二热点网络,则将所述第一数据转移热点切换至第二数据转移热点,所述第二数据转移热点基于所述第二热点网络建立。S104. 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.
具体地,当第一终端与第二终端基于第一数据转移热点建立通信连接后,向第二终端发送请求询问其是否支持第二热点网络,从而第二终端将会将其是否支持第二热点网络的信息发送给第一终端。Specifically, 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 that the second terminal will support the second hotspot. The information of the network is sent to the first terminal.
更进一步地,第一终端可以将其是否支持第二热点网络的信息发送给第二终端。Further, the first terminal may send information about 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. Determining a first communication connection between the first terminal and the second terminal; determining whether the remaining power of the first terminal is greater than or equal to a preset power; if the remaining power of the first terminal is greater than or If the first terminal supports the second hotspot network, the second terminal detects 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. 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. By determining the remaining power of the terminal, and selecting only when the remaining power of the terminal is greater than the preset power, the hotspot network of the terminal is switched from the first hotspot network to the second hotspot network, so that the hotspot network can be determined by weighing the terminal power and the network transmission rate. Type to enhance the user experience.
在一个实施例中,若第一终端最初就是基于网络传输速率高的热点网络建立热点的,而此时检测到终端电量低于预设电量时,则将第一终端从网络传输速率高的热点网络切换至网络传输速率低的热点网络。In an embodiment, if the first terminal initially establishes a hotspot based on the hotspot network with a high network transmission rate, and detects that the terminal power is lower than the preset power, the first terminal transmits the hotspot with a high rate from the network. The network switches to a hotspot network with a low network transmission rate.
在一个实施例中,若第一终端最初就是基于网络传输速率低的热点网络建立热点的,而此时检测到终端电量低于预设电量时,此时不切换第一终端的热点网络。In an embodiment, if the first terminal initially establishes a hotspot based on the hotspot network with a low network transmission rate, and detects that the terminal power is lower than the preset power, the hotspot network of the first terminal is not switched at this time.
在一个实施例中,所述方法还包括:In an embodiment, the method further includes:
若所述第一终端的剩余电量小于预设电量,则通过所述第一通信连接将所 述第一终端中的待转移数据转移至所述第二终端,所述第一通信连接基于所述第一数据转移热点建立。If the remaining power of the first terminal is less than the preset power, the first communication connection is The data to be transferred in the first terminal is transferred to the second terminal, and the first communication connection is established based on the first data transfer hotspot.
举例说明,在本发明的一个示例中,当需要在手机A和手机B之间进行数据转移时,首先基于2.4G的热点网络建立第一数据转移热点,然后在终端电量大于20%时,为了提高数据传输速率,所以此时将热点网络切换至5G热点网络,而如果此时终端电量小于20%,此时不切换热点网络。For example, in an example of the present invention, when data transfer between the mobile phone A and the mobile phone B is required, the first data transfer hotspot is first established based on the 2.4G hotspot network, and then when the terminal power is greater than 20%, The data transmission rate is increased, so the hotspot network is switched to the 5G hotspot network at this time, and if the terminal power is less than 20% at this time, the hotspot network is not switched at this time.
可以理解,在第一终端的剩余电量不够时,直接通过功耗小的第一通信连接进行数据传输,可保证第一终端的正常使用。It can be understood that when the remaining power of the first terminal is insufficient, the data transmission is directly performed through the first communication connection with low power consumption, and the normal use of the first terminal can be ensured.
更进一步地,当第一终端的剩余电量小于预设电量时,此时也可向用户发送一对话框,用于询问用户是否切换热点网络,参见图2,图2是本发明实施例提供的热点网络切换示意图。Further, when the remaining power of the first terminal is less than the preset power, a dialog box may be sent to the user to query whether the user switches the hotspot network. Referring to FIG. 2, FIG. 2 is a schematic diagram of the embodiment of the present invention. Schematic diagram of hotspot network switching.
在一个实施例中,所述判断所述第一终端的剩余电量是否大于或等于预设电量之前,所述方法还包括:In an embodiment, before the determining whether the remaining power of the first terminal is greater than or equal to the preset power, the method further includes:
判断所述预设待转移数据是否大于或等于预设流量;Determining whether the preset to-be-transferred data is greater than or equal to a preset traffic;
若所述预设待转移数据小于预设流量,则基于所述第一通信连接将所述第一终端中的待转移数据转移至所述第二终端。And if the preset to-be-transferred data is smaller than the preset traffic, transferring the to-be-transferred data in the first terminal to the second terminal based on the first communication connection.
举例说明,在本发明的一个示例中,若需要将手机A中的通讯录转移至手机B中,此时由于通讯录的流量较小,所以此时当第一终端是基于数据传输速率低的热点网络建立时,则直接通过该热点网络建立的连接进行通信。For example, in an example of the present invention, if the address book in the mobile phone A needs to be transferred to the mobile phone B, at this time, since the traffic of the address book is small, the first terminal is based on a low data transmission rate. When the hotspot network is established, the communication is directly established through the connection established by the hotspot network.
在一个实施例中,所述方法还包括:In an embodiment, the method further includes:
若所述预设待转移数据是否大于或等于预设流量,则执行判断所述第一终端的剩余电量是否大于或等于预设电量的步骤。If the preset to-be-transferred data is greater than or equal to the preset traffic, perform a step of determining whether the remaining power of the first terminal is greater than or equal to the preset power.
可以理解,在待转移数据的流量比较小时,不进行网络切换,只有在待转移数据的流量比较大时,再执行后续步骤,可提高数据转移效率。It can be understood that when the traffic of the data to be transferred is relatively small, the network switching is not performed, and only when the traffic of the data to be transferred is relatively large, the subsequent steps are performed, thereby improving the data transfer efficiency.
在一个实施例中,所述将所述第一数据转移热点切换至第二数据转移热点之后,所述方法还包括:In an embodiment, after the switching the first data transfer hotspot to the second data transfer hotspot, the method further includes:
通过所述第二数据转移热点建立所述第一终端与所述第二终端之间的第二通信连接;Establishing, by the second data transfer hotspot, a second communication connection between the first terminal and the second terminal;
基于所述第二通信连接将所述第一终端中的待转移数据转移至所述第二终端。Transferring data to be transferred in the first terminal to the second terminal based on the second communication connection.
在一个实施例中,所述基于第一热点网络建立第一数据转移热点之后,所述方法还包括: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;
在所述第一数据转移热点切换至第二数据转移热点后,接收所述第二终端基于所述第一数据转移热点配置所发送的热点连接请求,所述热点连接请求包 括所述第一数据转移热点的热点密码;Receiving, after the first data transfer hotspot is switched 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 request packet a hotspot password of the first data transfer hotspot;
通过所述热点连接请求并基于所述第一数据转移热点配置建立所述第一终端与所述第二终端之间的第二通信连接。Establishing, by the hotspot connection request, a second communication connection between the first terminal and the second terminal 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 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.
具体地,在第一终端建立数据转移热点的同时提示用户输入加密密码。Specifically, the user is prompted to input an encrypted password while the first terminal establishes a data transfer hotspot.
具体地,在第二终端向第一终端发送连接请求时,第一终端接收到该连接请求后,指示第二终端输入验证密码,然后在第二终端的界面弹出一对话框,指示用户输入验证密码。Specifically, when the second terminal sends the 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 to instruct the user to input the verification. password.
可以理解,通过第一终端设置该数据转移热点的加密密码,然后在其它终端请求接入该数据转移热点时,只在其它终端发送的鉴权验证密码与该数据转 移热点匹配时,才通过该连接请求,从而防止其它不法终端连接至第一终端的数据转移热点,提高通信安全。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 the authentication verification password sent by the other terminal and the data transfer When the hotspot matching is performed, the connection request is passed, thereby preventing 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:
保存所述第一终端与所述第二终端之间的所述通信连接配置,所述通信连接配置包括所述热点名称、所述第二终端标识、所述通信连接的服务器地址以及所述通信连接的端口。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.
其中,热点名称是指用于标识第一终端所建立的热点的名称,第二终端标识是指用于标识第二终端的标识,通信连接的服务器地址以及通信连接的端口是指用于标识第一终端与第二终端建立连接时所用的服务器地址以及端口,从而下次第一终端与第二终端建立连接时仍可基于该服务器地址以及端口建立。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.
更进一步地,该通信连接配置还可以包括热点密码。Further, the communication connection configuration may further 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 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.
更进一步,当有第三终端连接至第一终端时,可再设置一数据连接名称用于标识第一终端与第三终端之间的数据连接。Further, 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.
更进一步地,当第二终端连接至第一终端时,由于第一终端中保存有第一终端与第二终端的数据连接名称,所以此时不需要再对第二终端进行验证。 Further, 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.
请参见图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, establish a first data transfer hotspot based on the first hotspot network, and establish a first between the first terminal and the second terminal by using the first data transfer hotspot. A communication connection.
S302、判断第一终端的剩余电量是否大于或等于预设电量。S302. Determine whether the remaining power of the first terminal is greater than or equal to the preset power.
S303、若第一终端的剩余电量大于或等于预设电量,则在第一终端支持第二热点网络的情况下检测第二终端是否支持第二热点网络,该第二热点网络的数据传输速率高于第一热点网络。S303. If the remaining power of the first terminal is greater than or equal to the preset power, the second terminal detects whether the second terminal supports the second hotspot network, where the second hotspot network has a high data transmission rate. In the first hotspot network.
在一个实施例中,若所述第一终端的剩余电量小于预设电量,则执行步骤S305。In an embodiment, if the remaining power of the first terminal is less than the preset power, step S305 is performed.
S304、若第二终端支持第二热点网络,则将第一数据转移热点切换至第二数据转移热点,第二数据转移热点基于第二热点网络建立。S304. 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.
S305、若第一终端的剩余电量小于预设电量,则通过第一通信连接将第一终端中的待转移数据转移至第二终端,该第一通信连接基于所述第一数据转移热点建立。S305. If the remaining power of the first terminal is less than the preset power, transfer the data to be transferred in the first terminal to the second terminal by using the first communication connection, where the first communication connection is established based on the first data transfer hotspot.
本发明实施例通过判断终端的剩余电量,并只在终端的剩余电量大于预设电量时才选择将终端的热点网络从第一热点网络切换至第二热点网络,而在第一终端的剩余电量小于预设电量时,直接利用第一热点网络进行数据转移,从而可权衡终端电量与网络传输速率决定热点网络类型,提升用户体验。The embodiment of the present invention determines the remaining power of the terminal, and selects to switch the hotspot network of the terminal from the first hotspot network to the second hotspot network only when the remaining power of the terminal is greater than the preset power, and the remaining power in the first terminal When the power is less than the preset power, the data is directly transferred by using the first hotspot network, so that the power of the terminal and the network transmission rate can be weighed to determine the type of the hotspot network, thereby improving the user experience.
参见图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, and establish a first between the first terminal and the second terminal by using the first data transfer hotspot. A communication connection.
S402、判断预设待转移数据是否大于或等于预设流量。S402. Determine whether the preset data to be transferred is greater than or equal to the preset traffic.
在一个实施例中,若预设待转移数据小于预设流量,则执行步骤S403。In an embodiment, if the preset data to be transferred is smaller than the preset traffic, step S403 is performed.
在一个实施例中,若预设待转移数据是否大于或等于预设流量,则执行步骤S404。In an embodiment, if the data to be transferred is preset to be greater than or equal to the preset traffic, step S404 is performed.
S403、若预设待转移数据小于预设流量,则基于第一通信连接将第一终端中的待转移数据转移至所述第二终端。S403. If the preset data to be transferred is smaller than the preset traffic, transfer the data to be transferred in the first terminal to the second terminal according to the first communication connection.
S404、若预设待转移数据大于或等于预设流量,则判断第一终端的剩余电量是否大于或等于预设电量。 S404. If the preset data to be transferred is greater than or equal to the preset traffic, determine whether the remaining power of the first terminal is greater than or equal to the preset power.
S405、若第一终端的剩余电量大于或等于预设电量,则在第一终端支持第二热点网络的情况下检测第二终端是否支持第二热点网络,该第二热点网络的数据传输速率高于第一热点网络。S405. If the remaining power of the first terminal is greater than or equal to the preset power, detect whether the second terminal supports the second hotspot network if the first terminal supports the second hotspot network, where the data transmission rate of the second hotspot network is high. In the first hotspot network.
S406、若第二终端支持第二热点网络,则将第一数据转移热点切换至第二数据转移热点,第二数据转移热点基于第二热点网络建立。S406. 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.
本发明实施例通过判断搬家项目流量的大小,从而在待转移数据的流量比较小时,不进行网络切换,只有在待转移数据的流量比较大时,再执行后续步骤,可提高数据转移效率。When the traffic of the data to be transferred is relatively small, the network switching is not performed, and the subsequent steps are performed to improve the data transfer 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:
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 a first between the first terminal and the second terminal by using the first data transfer hotspot. A communication connection.
S502、判断第一终端的剩余电量是否大于或等于预设电量。S502. Determine whether the remaining power of the first terminal is greater than or equal to the preset power.
S503、若第一终端的剩余电量大于或等于预设电量,则在第一终端支持第二热点网络的情况下检测第二终端是否支持第二热点网络,该第二热点网络的数据传输速率高于第一热点网络。S503. If the remaining power of the first terminal is greater than or equal to the preset power, detect whether the second terminal supports the second hotspot network if the first terminal supports the second hotspot network, where the data transmission rate of the second hotspot network is high. In the first hotspot network.
在一个实施例中,若所述第一终端的剩余电量小于预设电量,则执行步骤S507。In an embodiment, if the remaining power of the first terminal is less than the preset power, step S507 is performed.
S504、若第二终端支持第二热点网络,则将第一数据转移热点切换至第二数据转移热点,第二数据转移热点基于第二热点网络建立。S504. 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.
S505、通过所述第二数据转移热点建立所述第一终端与所述第二终端之间的第二通信连接。S505. Establish a second communication connection between the first terminal and the second terminal by using the second data transfer hotspot.
S506、基于所述第二通信连接将所述第一终端中的待转移数据转移至所述第二终端。S506. Transfer data to be transferred in the first terminal to the second terminal based on the second communication connection.
S507、若第一终端的剩余电量小于预设电量,则通过第一通信连接将第一终端中的待转移数据转移至第二终端,该第一通信连接基于所述第一数据转移热点建立。S507. If the remaining power of the first terminal is less than the preset power, transfer the data to be transferred in the first terminal to the second terminal by using the first communication connection, where the first communication connection is established based on the first data transfer hotspot.
本发明实施例通过判断终端的剩余电量,并只在终端的剩余电量大于预设电量时才选择将终端的热点网络从第一热点网络切换至第二热点网络,而在第一终端的剩余电量小于预设电量时,直接利用第一热点网络进行数据转移,从而可权衡终端电量与网络传输速率决定热点网络类型,提升用户体验。The embodiment of the present invention determines the remaining power of the terminal, and selects to switch the hotspot network of the terminal from the first hotspot network to the second hotspot network only when the remaining power of the terminal is greater than the preset power, and the remaining power in the first terminal When the power is less than the preset power, the data is directly transferred by using the first hotspot network, so that the power of the terminal and the network transmission rate can be weighed to determine the type of the hotspot network, thereby improving the user experience.
本发明实施例还提供一种热点网络切换装置,该热点网络切换装置包括:The embodiment of the present invention further provides a hotspot network switching device, where the hotspot network switching device includes:
建立模块,用于当需要将第一终端中的待转移数据转移至第二终端时,基 于第一热点网络建立第一数据转移热点并通过所述第一数据转移热点建立所述第一终端与所述第二终端之间的第一通信连接;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 in the first hotspot network and establishing a first communication connection between the first terminal and the second terminal by using the first data transfer hotspot;
判断模块,用于判断所述第一终端的剩余电量是否大于或等于预设电量;a determining module, configured to determine whether the remaining power of the first terminal is greater than or equal to a preset power;
检测模块,用于若所述第一终端的剩余电量大于或等于预设电量,则在所述第一终端支持第二热点网络的情况下检测所述第二终端是否支持第二热点网络,所述第二热点网络的数据传输速率高于所述第一热点网络;a detecting module, configured to detect, when the first terminal supports the second hotspot network, whether the second terminal supports the second hotspot network, if the remaining power of the first terminal is greater than or equal to the preset power 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. As shown in FIG. 6, the hotspot network switching apparatus 600 may include:
建立模块610、判断模块620检测模块630和切换模块640。The establishing module 610 and the determining module 620 detect the module 630 and the switching module 640.
其中,建立模块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 first communication connection between a terminal and the second terminal.
判断模块620,用于判断所述第一终端的剩余电量是否大于或等于预设电量。The determining module 620 is configured to determine whether the remaining power of the first terminal is greater than or equal to a preset power.
检测模块630,用于若所述第一终端的剩余电量大于或等于预设电量,则在所述终端支持第二热点网络的情况下检测所述第二终端是否支持第二热点网络,所述第二热点网络的数据传输速率高于所述第一热点网络。The detecting module 630 is configured to detect whether the second terminal supports the second hotspot network if the terminal supports the second hotspot network if the remaining power of the first terminal is greater than or equal to the preset power. The data transmission rate of the second hotspot network is higher than the first hotspot network.
切换模块640,用于若第二终端支持第二热点网络,则将所述第一数据转移热点切换至第二数据转移热点,所述第二数据转移热点基于所述第二热点网络建立。The switching module 640 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 hotspot network switching device 600 of the present embodiment may be specifically implemented according to the method in the foregoing method embodiments, 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 this embodiment, 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 hotspot network is established. a data transfer hotspot and establishing a first communication connection between the first terminal and the second terminal by using the first data transfer hotspot; determining whether the remaining power of the first terminal is greater than or equal to a preset power; If the remaining power of the first terminal is greater than or equal to the preset power, detecting whether the second terminal supports the second hotspot network, where the second terminal supports the second hotspot network, where 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. By determining the remaining power of the terminal, and selecting only when the remaining power of the terminal is greater than the preset power, the hotspot network of the terminal is switched from the first hotspot network. To the second hotspot network, the terminal power and network transmission rate can be weighed to determine the hotspot network type, and the user experience is improved.
请参见图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:
在一个实施例中,所述热点网络切换装置700还包括:In an embodiment, the hotspot network switching apparatus 700 further includes:
转移模块750,用于若所述第一终端的剩余电量小于预设电量,则通过所述第一通信连接将所述第一终端中的待转移数据转移至所述第二终端,所述第一通信连接基于所述第一数据转移热点建立。The transfer module 750 is configured to transfer, to the second terminal, the data to be transferred in the first terminal by using the first communication connection, if the remaining power of the first terminal is less than the preset power. A communication connection is established based on the first data transfer hotspot.
在一个实施例中,所述判断模块720还用于判断所述预设待转移数据是否大于或等于预设流量;In an embodiment, the determining module 720 is further configured to determine whether the preset data to be transferred is greater than or equal to a preset traffic;
所述转移模块750还用于若所述预设待转移数据小于预设流量,则基于所述第一通信连接将所述第一终端中的待转移数据转移至所述第二终端。The transfer module 750 is further configured to: if the preset to-be-transferred data is smaller than the preset traffic, transfer the data to be transferred in the first terminal to the second terminal based on the first communication connection.
在一个实施例中,所述热点网络切换装置700还包括:In an embodiment, the hotspot network switching apparatus 700 further includes:
所述判断模块720还用于若所述预设待转移数据是否大于或等于预设流量,则执行判断所述第一终端的剩余电量是否大于或等于预设电量的步骤。The determining module 720 is further configured to: if the preset to-be-transferred data is greater than or equal to the preset traffic, perform the step of determining whether the remaining power of the first terminal is greater than or equal to the preset power.
在一个实施例中,所述建立模块710还用于通过所述第二数据转移热点建立所述第一终端与所述第二终端之间的第二通信连接;In an embodiment, the establishing module 710 is further configured to establish, by using the second data transfer hotspot, a second communication connection between the first terminal and the second terminal;
所述转移模块750还用于基于所述第二通信连接将所述第一终端中的待转移数据转移至所述第二终端。The transfer module 750 is further configured to transfer data to be transferred in the first terminal to the second terminal based on the second communication connection.
在一个实施例中,所述热点网络切换装置还包括:In an embodiment, the hotspot network switching device further includes:
生成模块760,用于生成二维码以使所述第二终端通过所述二维码获取并保存第一数据转移热点配置,所述第一数据转移热点配置包括所述第一数据转移热点的热点名称、所述第一数据转移热点的热点密码、所述第一数据转移热点的服务端地址以及所述第一转移热点的端口;a generating module 760, 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 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;
接收模块770,用于在所述第一数据转移热点切换至第二数据转移热点后,接收所述第二终端基于所述第一数据转移热点配置所发送的热点连接请求,所述热点连接请求包括所述第一数据转移热点的热点密码;The receiving module 770 is configured to receive, after 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 request 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 second communication connection between the first terminal and the second terminal according to the first data transfer hotspot configuration.
在一个实施例中,装置700还包括:In one embodiment, the apparatus 700 further includes:
设置模块780,用于基于第一热点网络建立第一数据转移热点之后,对所述第一数据转移热点设置热点名称及热点密码;The setting module 780 is configured to set a hotspot name and a hotspot password for the first data transfer hotspot after the first data transfer hotspot is established based on the first hotspot network;
所述建立模块710还用于:The establishing module 710 is further 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.
在一个实施例中,装置700还包括:In one embodiment, the apparatus 700 further includes:
保存模块710,用于通过所述第一数据转移热点建立所述第一终端与所述第二终端之间的通信连接之后,保存所述第一终端与所述第二终端之间的所述通信连接配置,所述通信连接配置包括所述热点名称、所述第二终端标识、所述通信连接的服务器地址以及所述通信连接的端口。a saving module 710, configured to save the communication between the first terminal and the second terminal after establishing a communication connection between the first terminal and the second terminal by using the first data transfer hotspot A communication connection configuration including the hotspot name, the second terminal identification, a server address of the communication connection, and a port of the communication connection.
在一个实施例中,所述建立模块还用于:In an embodiment, the establishing module is further configured to:
保存所述第一终端与所述第二终端之间的所述通信连接配置之后,当所述第一终端切换至第二数据转移热点之后接收到所述第二终端的热点连接请求时,基于所述通信连接配置建立所述第一终端与所述第二终端之间的通信连接。After the communication connection configuration between the first terminal and the second terminal is saved, when the first terminal switches to the second data transfer hotspot and receives the hotspot connection request of the second terminal, based on The communication connection configuration establishes a communication connection between the first terminal and the second terminal.
可以理解的是,本实施例的热点网络切换装置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.
可以看出,本发明实施例提供的技术方案中,当需要将第一终端中的待转移数据转移至第二终端时,基于第一热点网络建立第一数据转移热点并通过所述第一数据转移热点建立所述第一终端与所述第二终端之间的第一通信连接;判断所述终端700的剩余电量是否大于或等于预设电量;若所述第一终端的剩余电量大于或等于预设电量,则在所述第一终端支持第二热点网络的情况下检测所述第二终端是否支持第二热点网络,所述第二热点网络的数据传输速率高于所述第一热点网络;若第二终端支持第二热点网络,则将所述第一数据转移热点切换至第二数据转移热点,所述第二数据转移热点基于所述第二热点网络建立。通过判断终端的剩余电量,并只在终端的剩余电量大于预设电量时才选择将终端的热点网络从第一热点网络切换至第二热点网络,从而可权衡终端电量与网络传输速率决定热点网络类型,提升用户体验。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. Determining a first communication connection between the first terminal and the second terminal; determining whether the remaining power of the terminal 700 is greater than or equal to a preset power; if the remaining power of the first terminal is greater than or equal to If the first terminal supports the second hotspot network, the second terminal detects 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. By determining the remaining power of the terminal, and selecting only when the remaining power of the terminal is greater than the preset power, the hotspot network of the terminal is switched from the first hotspot network to the second hotspot network, so that the hotspot network can be determined by weighing the terminal power and the network transmission rate. Type to enhance the user experience.
参见图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 first communication connection between the terminal and the second terminal.
上述处理器803,还用于判断所述第一终端的剩余电量是否大于或等于预 设电量;The processor 803 is further configured to determine whether the remaining power of the first terminal is greater than or equal to a pre- Set the amount of electricity;
上述处理器803,还用于若所述第一终端的剩余电量大于或等于预设电量,则在所述第一终端支持第二热点网络的情况下检测所述第二终端是否支持第二热点网络,所述第二热点网络的数据传输速率高于所述第一热点网络。The processor 803 is further configured to: if the first terminal supports the second hotspot network, if the second terminal supports the second hotspot, if the remaining power of the first terminal is greater than or equal to the preset power, The network, the data transmission rate of the second hotspot network is higher than the first 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: if the remaining power of the first terminal is less than the preset power, transfer the data to be transferred in the first terminal to the second terminal by using the first communication connection, where The first communication connection is established based on the first data transfer hotspot.
上述处理器803,还用于判断所述预设待转移数据是否大于或等于预设流量;The processor 803 is further configured to determine whether the preset data to be transferred is greater than or equal to a preset traffic;
若所述预设待转移数据小于预设流量,则基于所述第一通信连接将所述第一终端中的待转移数据转移至所述第二终端。And if the preset to-be-transferred data is smaller than the preset traffic, transferring the to-be-transferred data in the first terminal to the second terminal based on the first communication connection.
上述处理器803,还用于若所述预设待转移数据是否大于或等于预设流量,则执行判断所述第一终端的剩余电量是否大于或等于预设电量的步骤。The processor 803 is further configured to: if the preset to-be-transferred data is greater than or equal to the preset traffic, perform the step of determining whether the remaining power of the first terminal is greater than or equal to the preset power.
上述处理器803,还用于通过所述第二数据转移热点建立所述第一终端与所述第二终端之间的第二通信连接;The processor 803 is further configured to establish, by using the second data transfer hotspot, a second communication connection between the first terminal and the second terminal;
基于所述第二通信连接将所述第一终端中的待转移数据转移至所述第二终端Transferring data to be transferred in the first terminal to the second terminal based on the second communication connection
上述处理器803,还用于生成二维码以使所述第二终端通过所述二维码获取并保存第一数据转移热点配置,所述第一数据转移热点配置包括所述第一数据转移热点的热点名称、所述第一数据转移热点的热点密码、所述第一数据转移热点的服务端地址以及所述第一转移热点的端口;The processor 803 is further 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 a hotspot name of the hotspot, 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;
在所述第一数据转移热点切换至第二数据转移热点后,接收所述第二终端基于所述第一数据转移热点配置所发送的热点连接请求,所述热点连接请求包括所述第一数据转移热点的热点密码;Receiving, after the first data transfer hotspot is switched to the second data transfer hotspot, the hotspot connection request sent by the second terminal based on the first data transfer hotspot configuration, where the hotspot connection request includes the first data Transfer hotspot passwords for hotspots;
通过所述热点连接请求并基于所述第一数据转移热点配置建立所述终端与所述第二终端之间的第二通信连接。Establishing a second communication connection between the terminal and the second terminal based on the hotspot connection request and based on the first data transfer hotspot configuration.
上述处理器803,还用于基于第一热点网络建立第一数据转移热点之后,对所述第一数据转移热点设置热点名称及热点密码;The processor 803 is further configured to: after establishing the first data transfer hotspot based on the first hotspot network, set a hotspot name and a hotspot password to 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.
上述处理器803,还用于通过所述第一数据转移热点建立所述第一终端与所述第二终端之间的通信连接之后,保存所述第一终端与所述第二终端之间的 所述通信连接配置,所述通信连接配置包括所述热点名称、所述第二终端标识、所述通信连接的服务器地址以及所述通信连接的端口。The processor 803 is further configured to: after establishing a communication connection between the first terminal and the second terminal by using the first data transfer hotspot, save 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.
上述处理器803,还用于保存所述第一终端与所述第二终端之间的所述通信连接配置之后,当所述第一终端切换至第二数据转移热点之后接收到所述第二终端的热点连接请求时,基于所述通信连接配置建立所述第一终端与所述第二终端之间的通信连接。The processor 803 is further configured to: after saving the communication connection configuration between the first terminal and the second terminal, receiving the second after the first terminal switches to the second data transfer hotspot When the hotspot connection request of the terminal is requested, a communication connection between the first terminal and the second terminal is established based on the communication connection configuration.
可以理解的是,本实施例的终端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 this embodiment, 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 hotspot network is established. a data transfer hotspot and establishing a first communication connection between the first terminal and the second terminal by using the first data transfer hotspot; determining whether the remaining power of the first terminal is greater than or equal to a preset power; If the remaining power of the first terminal is greater than or equal to the preset power, detecting whether the second terminal supports the second hotspot network, where the second terminal supports the second hotspot network, where 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. By determining the remaining power of the terminal, and selecting only when the remaining power of the terminal is greater than the preset power, the hotspot network of the terminal is switched from the first hotspot network to the second hotspot network, so that the hotspot network can be determined by weighing the terminal power and the network transmission rate. Type to enhance the user experience.
在一个实施例中,所述终端为手机,下面结合图9对所述手机的各个构成部件进行具体的介绍:In an embodiment, the terminal is a mobile phone, and specific components of the mobile phone are specifically described below with reference to 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 store the data. The area can store data created according to the use of the mobile phone (lock screen pictures with different resolutions and compression ratios) and the like. 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. When the touch panel 931 detects a touch operation on or near the touch panel 931, the touch panel 931 transmits to the processor 980 to determine the type of the touch event, and then the processor 980 according to the touch event. The type provides a corresponding visual output on display panel 941. 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 Converted to audio data after receiving, and then output audio data to processor 980 After processing, it is sent via RF circuit 910 to, for example, another handset, or audio data is output to 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. You can choose some or all of them according to actual needs. The unit is 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 a first communication connection between;
    判断所述第一终端的剩余电量是否大于或等于预设电量;Determining whether the remaining power of the first terminal is greater than or equal to a preset power;
    若所述第一终端的剩余电量大于或等于预设电量,则在所述第一终端支持第二热点网络的情况下检测所述第二终端是否支持第二热点网络,所述第二热点网络的数据传输速率高于所述第一热点网络;If the remaining power of the first terminal is greater than or equal to the preset power, detecting whether the second terminal supports the second hotspot network, where the second terminal supports the second hotspot network, where the second hotspot network The data transmission rate 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 of claim 1 further comprising:
    若所述第一终端的剩余电量小于预设电量,则通过所述第一通信连接将所述第一终端中的待转移数据转移至所述第二终端,所述第一通信连接基于所述第一数据转移热点建立。Transferring data to be transferred in the first terminal to the second terminal by using the first communication connection, if the remaining power of the first terminal is less than a preset power, the first communication connection is based on the The first data transfer hotspot is established.
  3. 根据权利要求2所述的方法,其特征在于,所述判断所述第一终端的剩余电量是否大于或等于预设电量之前,所述方法还包括:The method according to claim 2, wherein the method further comprises: before determining whether the remaining power of the first terminal is greater than or equal to a preset power, the method further comprising:
    判断所述预设待转移数据是否大于或等于预设流量;Determining whether the preset to-be-transferred data is greater than or equal to a preset traffic;
    若所述预设待转移数据小于预设流量,则基于所述第一通信连接将所述第一终端中的待转移数据转移至所述第二终端。And if the preset to-be-transferred data is smaller than the preset traffic, transferring the to-be-transferred data in the first terminal to the second terminal based on the first communication connection.
  4. 根据权利要求3所述的方法,其特征在于,所述方法还包括:The method of claim 3, wherein the method further comprises:
    若所述预设待转移数据是否大于或等于预设流量,则执行判断所述第一终端的剩余电量是否大于或等于预设电量的步骤。If the preset to-be-transferred data is greater than or equal to the preset traffic, perform a step of determining whether the remaining power of the first terminal is greater than or equal to the preset power.
  5. 根据权利要求1或2所述的方法,其特征在于,所述将所述第一数据转移热点切换至第二数据转移热点之后,所述方法还包括:The method according to claim 1 or 2, wherein after the switching the first data transfer hotspot to the second data transfer hotspot, the method further comprises:
    通过所述第二数据转移热点建立所述第一终端与所述第二终端之间的第二通信连接;Establishing, by the second data transfer hotspot, a second communication connection between the first terminal and the second terminal;
    基于所述第二通信连接将所述第一终端中的待转移数据转移至所述第二终端。Transferring data to be transferred in the first terminal to the second terminal based on the second communication connection.
  6. 根据权利要求1所述的方法,其特征在于,所述基于第一热点网络建立第一数据转移热点之后,所述方法还包括:The method according to claim 1, 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 the first data transfer through the two-dimensional code a hotspot configuration, where 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 The port that transfers the hotspot;
    在所述第一数据转移热点切换至第二数据转移热点后,接收所述第二终端基于所述第一数据转移热点配置所发送的热点连接请求,所述热点连接请求包括所述第一数据转移热点的热点密码;Receiving, after the first data transfer hotspot is switched to the second data transfer hotspot, the hotspot connection request sent by the second terminal based on the first data transfer hotspot configuration, where the hotspot connection request includes the first data Transfer hotspot passwords for hotspots;
    通过所述热点连接请求并基于所述第一数据转移热点配置建立所述第一终端与所述第二终端之间的第二通信连接。Establishing, by the hotspot connection request, a second communication connection between the first terminal and the second terminal based on the first data transfer hotspot configuration.
  7. 根据权利要求1所述的方法,其特征在于,所述基于第一热点网络建立第一数据转移热点之后,所述方法还包括:The method according to claim 1, 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.
  8. 根据权利要求1所述的方法,其特征在于,所述通过所述第一数据转移热点建立所述第一终端与所述第二终端之间的通信连接之后,所述方法还包括:The method according to claim 1, 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.
  9. 根据权利要求8所述的方法,其特征在于,所述保存所述第一终端与所述第二终端之间的所述通信连接配置之后,所述方法还包括:The method according to claim 8, 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 .
  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 first communication connection between the second terminals;
    判断模块,用于判断所述第一终端的剩余电量是否大于或等于预设电量;a determining module, configured to determine whether the remaining power of the first terminal is greater than or equal to a preset power;
    检测模块,用于若所述第一终端的剩余电量大于或等于预设电量,则在所述第一终端支持第二热点网络的情况下检测所述第二终端是否支持第二热点网络,所述第二热点网络的数据传输速率高于所述第一热点网络; a detecting module, configured to detect, when the first terminal supports the second hotspot network, whether the second terminal supports the second hotspot network, if the remaining power of the first terminal is greater than or equal to the preset power 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 transfer module, configured to transfer data to be transferred in the first terminal to the second terminal by using the first communication connection, if the remaining power of the first terminal is less than a preset power, the first A communication connection is established based on the first data transfer hotspot.
  12. 根据权利要求11所述的装置,其特征在于,The device of claim 11 wherein:
    所述判断模块还用于判断所述预设待转移数据是否大于或等于预设流量;The determining module is further configured to determine whether the preset to-be-transferred data is greater than or equal to a preset traffic;
    所述转移模块还用于若所述预设待转移数据小于预设流量,则基于所述第一通信连接将所述第一终端中的待转移数据转移至所述第二终端。The transfer module is further configured to: if the preset to-be-transferred data is smaller than the preset traffic, transfer the to-be-transferred data in the first terminal to the second terminal based on the first communication connection.
  13. 根据权利要求12所述的装置,其特征在于,The device according to claim 12, characterized in that
    所述判断模块还用于若所述预设待转移数据是否大于或等于预设流量,则执行判断所述第一终端的剩余电量是否大于或等于预设电量的步骤。The determining module is further configured to: if the preset to-be-transferred data is greater than or equal to the preset traffic, perform the step of determining whether the remaining power of the first terminal is greater than or equal to the preset power.
  14. 根据权利要求10或11所述的装置,其特征在于,Device according to claim 10 or 11, characterized in that
    所述建立模块还用于通过所述第二数据转移热点建立所述第一终端与所述第二终端之间的第二通信连接;The establishing module is further configured to establish, by using the second data transfer hotspot, a second communication connection between the first terminal and the second terminal;
    所述转移模块还用于基于所述第二通信连接将所述第一终端中的待转移数据转移至所述第二终端。The transfer module is further configured to transfer data to be transferred in the first terminal to the second terminal based on the second communication connection.
  15. 根据权利要求10所述的装置,其特征在于,所述装置还包括:The device according to claim 10, 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 receiving module, configured to: after the first data transfer hotspot switches to the second data transfer hotspot, receive a hotspot connection request sent by the second terminal based on the first data transfer hotspot configuration, where the hotspot connection request includes a hotspot password of the first data transfer hotspot;
    所述建立模块还用于通过所述热点连接请求并基于所述第一数据转移热点配置建立所述第一终端与所述第二终端之间的第二通信连接。The establishing module is further configured to establish a second 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.
  16. 根据权利要求10所述的装置,其特征在于,所述装置还包括:The device according to claim 10, 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 further 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.
  17. 根据权利要求10所述的装置,其特征在于,所述装置还包括:The device according to claim 10, 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.
  18. 根据权利要求17所述的装置,其特征在于,所述建立模块还用于:The device according to claim 17, wherein the establishing module is further configured to:
    当所述第一终端切换至第二数据转移热点之后接收到所述第二终端的热点连接请求时,基于所述通信连接配置建立所述第一终端与所述第二终端之间的通信连接。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 .
  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/098852 2016-09-14 2017-08-24 Hotspot network switching method and terminals WO2018049971A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610825435.9A CN106658623A (en) 2016-09-14 2016-09-14 Hotspot network switching method and terminal equipment
CN201610825435.9 2016-09-14

Publications (1)

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

Family

ID=58852543

Family Applications (1)

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

Country Status (2)

Country Link
CN (1) CN106658623A (en)
WO (1) WO2018049971A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111356209A (en) * 2020-02-17 2020-06-30 Oppo广东移动通信有限公司 Multi-frequency WiFi hotspot opening method and device, storage medium and electronic equipment

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106658623A (en) * 2016-09-14 2017-05-10 广东欧珀移动通信有限公司 Hotspot network switching method and terminal equipment
CN110708747A (en) * 2019-09-18 2020-01-17 Tcl移动通信科技(宁波)有限公司 Data transmission rate adjusting method, system, storage medium and mobile terminal
CN111787599A (en) * 2020-08-06 2020-10-16 Oppo(重庆)智能科技有限公司 WIFI frequency band selection method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101897124A (en) * 2007-12-14 2010-11-24 微软公司 Computer radio electric installation with pre-defined configuration set
CN103369714A (en) * 2013-06-17 2013-10-23 华为技术有限公司 Method and device for establishing data connection and terminal equipment
CN105391470A (en) * 2015-11-28 2016-03-09 广东欧珀移动通信有限公司 Network switching method, apparatus and terminal
CN105392169A (en) * 2015-10-19 2016-03-09 小米科技有限责任公司 File transmission method, device and system
CN106658623A (en) * 2016-09-14 2017-05-10 广东欧珀移动通信有限公司 Hotspot network switching method and terminal equipment
CN106688284A (en) * 2014-09-19 2017-05-17 高通股份有限公司 Collaborative demand-based dual-mode wi-fi network control to optimize wireless power and performance

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101897124A (en) * 2007-12-14 2010-11-24 微软公司 Computer radio electric installation with pre-defined configuration set
CN103369714A (en) * 2013-06-17 2013-10-23 华为技术有限公司 Method and device for establishing data connection and terminal equipment
CN106688284A (en) * 2014-09-19 2017-05-17 高通股份有限公司 Collaborative demand-based dual-mode wi-fi network control to optimize wireless power and performance
CN105392169A (en) * 2015-10-19 2016-03-09 小米科技有限责任公司 File transmission method, device and system
CN105391470A (en) * 2015-11-28 2016-03-09 广东欧珀移动通信有限公司 Network switching method, apparatus and terminal
CN106658623A (en) * 2016-09-14 2017-05-10 广东欧珀移动通信有限公司 Hotspot network switching method and terminal equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111356209A (en) * 2020-02-17 2020-06-30 Oppo广东移动通信有限公司 Multi-frequency WiFi hotspot opening method and device, storage medium and electronic equipment
CN111356209B (en) * 2020-02-17 2022-04-26 Oppo广东移动通信有限公司 Multi-frequency WiFi hotspot opening method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN106658623A (en) 2017-05-10

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
TWI512525B (en) Method and system for associating two terminals with each other, terminal and computer-readable storage medium
WO2017202348A1 (en) Video playing method and device, and computer storage medium
WO2018049969A1 (en) Hotspot establishment method and related device
WO2018049897A1 (en) Data backup method and device
WO2018049912A1 (en) Data transmission method and related devices
WO2018049913A1 (en) Data transmission method and related devices
WO2018049887A1 (en) Data transmission processing method and terminal device
WO2018049886A1 (en) Hotspot establishment method and terminal device
WO2018049881A1 (en) Data migration method and device
WO2015131768A1 (en) Video processing method, apparatus and system
WO2018049894A1 (en) Data transmission method and device
CN107864086B (en) Information rapid sharing method, mobile terminal and computer readable storage medium
WO2018049970A1 (en) Hotspot network switching method and terminal
WO2019029618A1 (en) Ims voice call network switching method, storage device and mobile terminal
WO2018049968A1 (en) Hotspot establishment method and terminals
WO2014094600A1 (en) Mobile terminal and method for reducing power consumption thereof
WO2018049903A1 (en) Data migration method and related devices
WO2019076250A1 (en) Push message management method and related products
WO2018161788A1 (en) Multimedia data sharing method and device
WO2019109987A1 (en) Mobile terminal, processing method for using fingerprint to perform recording operation, and storage medium
WO2017000495A1 (en) Method and device for adding contacts
WO2019034054A1 (en) Mobile terminal-based nfc stress testing method and system, and storage device
WO2018049901A1 (en) Data migration method and related devices

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: 17850173

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase in:

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17850173

Country of ref document: EP

Kind code of ref document: A1