WO2018049968A1 - 热点建立方法及终端 - Google Patents

热点建立方法及终端 Download PDF

Info

Publication number
WO2018049968A1
WO2018049968A1 PCT/CN2017/098822 CN2017098822W WO2018049968A1 WO 2018049968 A1 WO2018049968 A1 WO 2018049968A1 CN 2017098822 W CN2017098822 W CN 2017098822W WO 2018049968 A1 WO2018049968 A1 WO 2018049968A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
data
preset
hotspot
establishing
Prior art date
Application number
PCT/CN2017/098822
Other languages
English (en)
French (fr)
Inventor
张海龙
Original Assignee
广东欧珀移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广东欧珀移动通信有限公司 filed Critical 广东欧珀移动通信有限公司
Publication of WO2018049968A1 publication Critical patent/WO2018049968A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/04Terminal devices adapted for relaying to or from another terminal or user

Definitions

  • the present invention relates to the field of communications, and in particular, to a hotspot establishing method and a terminal.
  • 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.
  • the wireless hotspot When the mobile phone performs data migration, the wireless hotspot is established through one terminal, and then the other terminal is connected to the wireless hotspot and then performs data transmission, but in the process, the mobile network data of the hotspot party may be consumed, and the data transfer process is performed.
  • the data transmitted is often large, and the mobile network data charges are often high, resulting in waste of resources.
  • the embodiment of the invention provides a hotspot establishing method and a terminal, which can save data traffic of a hot spot mobile network.
  • a first aspect of the embodiments of the present invention provides a method for establishing a hotspot, including:
  • the first terminal When the preset data in the first terminal needs to be transferred to the second terminal, the first terminal receives a request for establishing a data transfer hotspot of the user, where the data transfer hotspot is used to establish the first terminal and the first a point-to-point data channel between two terminals;
  • the data transfer hotspot establishes a data connection and transfers the preset data.
  • a second aspect of the embodiments of the present invention provides a hotspot establishing apparatus, including:
  • a receiving module configured to: when the preset data in the first terminal needs to be transferred to the second terminal, the first terminal receives a request for establishing a data transfer hotspot of the user, where the data transfer hotspot is used to establish the first a point-to-point data channel between the terminal and the second terminal;
  • a determining module configured to determine whether a current state of the data network of the first terminal is an open state
  • a third aspect of the embodiments of the present invention provides a terminal, including:
  • 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.
  • the first terminal when the preset data in the first terminal needs to be transferred to the second terminal, the first terminal receives a request for establishing a data transfer hotspot of the user, where a data transfer hotspot is used to establish a point-to-point data channel between the first terminal and the second terminal; determining whether a current state of the data network of the first terminal is an open state; and if the data network of the first terminal is Turning on the data network of the first terminal and establishing a data transfer hotspot, so that the data connection and the transfer between the first terminal and the second terminal are established based on the data transfer hotspot. Preset data.
  • the first terminal and the second terminal are connected to each other through the data transfer hotspot, and then the data in the first terminal is transferred to the first terminal.
  • the second terminal does not consume the data traffic of the first terminal and saves data network resources.
  • FIG. 1 is a network architecture diagram of a hotspot establishing system according to an embodiment of the present invention
  • FIG. 1 is a schematic flowchart of a hotspot establishing method according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of data hotspot verification according to an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart of a method for establishing a hotspot according to an embodiment of the present invention
  • FIG. 4 is a schematic flowchart of a hotspot establishing method according to an embodiment of the present invention.
  • FIG. 5 is a schematic flowchart of a method for establishing a hotspot according to an embodiment of the present invention
  • FIG. 6 is a schematic flowchart of a hotspot establishing method according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a hotspot establishing apparatus according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a hotspot establishing apparatus according to an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of a terminal according to an embodiment of the present disclosure.
  • FIG. 10 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • the embodiment of the invention provides a hotspot establishing method and a terminal, so as to save hot spot moving Network data traffic.
  • a method for establishing a hotspot includes: when the preset data in the first terminal needs to be transferred to the second terminal, the first terminal receives a request for establishing a data transfer hotspot of the user, and the data transfer The hotspot is used to establish a point-to-point data channel between the first terminal and the second terminal; determining whether the current state of the data network of the first terminal is an open state; if the current data network of the first terminal is current When the state is the on state, the data network of the first terminal is closed and a data transfer hotspot is established, so that the first terminal and the second terminal establish a data connection based on the data transfer hotspot and transfer the pre- Set the data.
  • FIG. 1 is a network architecture diagram of a hotspot establishing system according to an embodiment of the present invention.
  • both the first terminal 100 and the second terminal 200 can be configured.
  • the first terminal 100 is a data transfer transmitter
  • the second terminal 200 is a data transfer receiver
  • the first terminal 100 establishes a data transfer hotspot
  • the second The terminal 200 is connected to the data transfer hotspot to establish a communication connection between the first terminal 100 and the second terminal 200
  • the first terminal 100 transfers the preset data to the second terminal 200 based on the communication connection, thereby completing data transfer. process.
  • FIG. 1-b is a schematic flowchart of a first embodiment of a method for establishing a hotspot according to an embodiment of the present invention. As shown in FIG. 1-b, the hotspot establishing method may include the following steps:
  • the first terminal receives a request for establishing a data transfer hotspot of the user.
  • the data transfer hotspot is used to establish a point-to-point data channel between the first terminal and the second terminal.
  • the first terminal refers to a mobile intelligent terminal such as a mobile phone or a tablet computer; the second terminal refers to a mobile intelligent terminal such as a mobile phone or a tablet computer.
  • the preset data 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, and an application. All data to app data, memos, alarms, browser bookmarks, preferences for old phones, and more.
  • the process of transferring preset data from the first terminal to the second terminal is also data transfer.
  • 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.
  • 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 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.
  • the user can establish a data transfer hotspot through the application operating terminal. To trigger the data transfer process.
  • the data network refers to the mobile operator network that the terminal accesses, such as the 3rd Generation mobile communication technology (3G) or the 4G network.
  • 3G 3rd Generation mobile communication technology
  • 4G 4th Generation mobile communication technology
  • the second terminal may be connected to the data transfer hotspot, so that the first terminal and the second terminal may establish a data connection based on the data transfer hotspot and pass the data. Connection transfer preset data.
  • the first terminal when the preset data in the first terminal needs to be transferred to the second terminal, the first terminal receives a request for establishing a data transfer hotspot of the user, where the data is Deriving a hotspot for establishing a point-to-point data channel between the first terminal and the second terminal; determining whether a current state of the data network of the first terminal is an open state; if the data network of the first terminal is If the current state is the on state, the data network of the first terminal is closed and a data transfer hotspot is established, so that the first terminal and the second terminal establish a data connection based on the data transfer hotspot and transfer the Preset data.
  • the first terminal and the second terminal are connected to each other through the data transfer hotspot, and then the data in the first terminal is transferred to the first terminal.
  • the second terminal does not consume the data traffic of the first terminal and saves data network resources.
  • the method further includes:
  • the second terminal can request to connect to the data transfer hotspot to establish a data connection channel between the first terminal and the second terminal, and then based on the data connection channel. Data is transmitted between the first terminal and the second terminal, and no data traffic is consumed at this time.
  • the method further includes:
  • the connection request is made through the second terminal.
  • the encrypted 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.
  • the user is prompted to input an encrypted password while the first terminal establishes a data transfer hotspot.
  • FIG. 2 is a schematic diagram of data hotspot verification according to an embodiment of the present invention.
  • the encrypted password of the data transfer hotspot is set by the first terminal, and then when the other terminal requests to access the data transfer hotspot, the connection request is only passed when the verification password sent by the other terminal matches the data transfer hotspot. Therefore, the other illegal terminal is prevented from being connected to the data transfer hotspot of the first terminal, thereby improving communication security.
  • the method further includes:
  • the WiFi is turned off.
  • the method further includes:
  • a data connection name may be further set. And identifying a data connection between the first terminal and the third terminal.
  • 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.
  • the second terminal 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.
  • the method further includes:
  • the second terminal does not establish the data connection when the preset time threshold is exceeded, setting the first preset time to a second preset time, where the second preset time is greater than the first Preset time.
  • the broadcast period may be extended. Time to ensure that new data connections can be established and that the broadcast content is correct.
  • the method further includes:
  • the closing the data network of the first terminal and establishing a data transfer hotspot includes:
  • the data network of the first terminal is closed and a data transfer hotspot is established.
  • the preset data can be transmitted by using an open data network. Alternatively, in combination with the following methods, further judgment is made.
  • the data network or the data transfer hotspot can be selected according to the size of the preset data, thereby ensuring data transmission efficiency. It can be understood that the transmission rate of the data network is greater than the transmission rate of the data transfer hotspot.
  • the method further includes:
  • the closing the data network of the first terminal and establishing a data transfer hotspot includes:
  • the data network of the first terminal is closed and a data transfer hotspot is established.
  • the data network or the data transfer hotspot can be selected in combination with the remaining power of the first terminal, thereby saving the power of the first terminal.
  • the method further includes:
  • the current state of the data network of the first terminal is an open state, determining whether the network state of the data network reaches a preset standard
  • the closing the data network of the first terminal and establishing a data transfer hotspot includes:
  • the data network of the first terminal is closed and a data transfer hotspot is established.
  • the preset standard can be set to a preset data transmission rate threshold. That is, the data transmission rate of the data network reaches a preset standard, and the network state of the data network can be determined to be good and can be used for transmitting data.
  • the preset standard can also be set by other means, which is not limited herein.
  • the data network or the data transfer hotspot can be selected based on the network state, so that the transmission efficiency of the preset data can be ensured.
  • FIG. 3 is a schematic flowchart diagram of a second embodiment of a hotspot establishing method according to an embodiment of the present invention.
  • the hotspot establishing method may include the following steps:
  • the first terminal receives a request for establishing a data transfer hotspot of the user.
  • the data transfer hotspot is used to establish a point-to-point data channel between the first terminal and the second terminal.
  • the first terminal refers to a mobile intelligent terminal such as a mobile phone or a tablet computer; the second terminal refers to a mobile intelligent terminal such as a mobile phone or a tablet computer.
  • the preset data 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.
  • step S304 is directly performed.
  • the embodiment of the present invention makes the first terminal and the second by establishing a data transfer hotspot in the first terminal after the data network of the first terminal is closed, and then receiving the connection request of the second terminal and connecting to the data transfer hotspot. After the data connection is established between the terminals through the data transfer hotspot, the data in the first terminal is not consumed by the first terminal when the data in the first terminal is transferred to the second terminal, thereby saving data network resources.
  • FIG. 4 is a schematic flowchart diagram of a third embodiment of a hotspot establishing method according to an embodiment of the present invention.
  • the hotspot establishing method may include the following steps:
  • the first terminal receives a request for establishing a data transfer hotspot of the user.
  • the data transfer hotspot is used to establish a point-to-point data channel between the first terminal and the second terminal.
  • S402. Determine whether a current state of the data network of the first terminal is an open state.
  • the data transfer hotspot is directly established if the current state of the data network of the first terminal is the off state.
  • the verification password is an encrypted password
  • the data connection between the first terminal and the second terminal is established through a connection request of the second terminal.
  • connection request of the second terminal is rejected when the verification password is an encrypted password.
  • 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, the connection is only passed when the verification password sent by the other terminal matches the data transfer hotspot.
  • the request thereby preventing other illegal terminals from connecting to the data transfer hotspot of the first terminal, improves communication security.
  • FIG. 5 is a schematic flowchart diagram of a fourth embodiment of a hotspot establishing method according to an embodiment of the present invention.
  • the hotspot establishing method may include the following steps:
  • the first terminal receives a request for establishing a data transfer hotspot of the user.
  • the data transfer hotspot is used to establish a point-to-point data channel between the first terminal and the second terminal.
  • step S504 is directly performed.
  • the data transfer hotspot is directly established at this time.
  • the WiFi of the first terminal is detected and closed before the data transfer hotspot is established, thereby ensuring the smooth establishment of the hotspot.
  • FIG. 6 is a schematic flowchart diagram of a fifth embodiment of a hotspot establishing method according to an embodiment of the present invention.
  • the hotspot establishing method may include the following steps:
  • the first terminal receives a request for establishing a data transfer hotspot of the user.
  • the data transfer hotspot is used to establish a point-to-point data channel between the first terminal and the second terminal.
  • S602. Determine whether a current state of the data network of the first terminal is an open state.
  • the data transfer hotspot is directly established at this time.
  • the data connection name is used to uniquely identify a data connection between the first terminal and the second terminal.
  • S605 Send a beacon broadcast to the beacon in a first preset time period, where the Beacon includes a data connection name of the data connection.
  • the second terminal if the second terminal establishes the data connection within the first preset time, then Does not change the first preset time.
  • the embodiment of the present invention sends a Beacon broadcast to notify the second terminal whether the data connection is successfully established, and determines the setup time of the second terminal by using a preset time, when the first terminal and the second terminal are in the first preset time. There is no data connection established, and the broadcast cycle time can be extended to ensure that new data connections can be established and the broadcast content is correct.
  • the embodiment of the invention further provides a hotspot establishing device, the device comprising:
  • a receiving module configured to: when the preset data in the first terminal needs to be transferred to the second terminal, the first terminal receives a request for establishing a data transfer hotspot of the user, where the data transfer hotspot is used to establish the first a point-to-point data channel between the terminal and the second terminal;
  • a determining module configured to determine whether a current state of the data network of the first terminal is an open state
  • FIG. 7 is a schematic structural diagram of a first embodiment of a hotspot establishing apparatus according to an embodiment of the present invention, which is used to implement the hotspot establishing method disclosed in the embodiment of the present invention.
  • the hotspot establishing device 700 may be integrated in the first terminal, or may be independent of the first terminal, and the physical implementation of the hotspot establishing device is not limited.
  • the hotspot establishing apparatus 700 may include:
  • the receiving module 710, the determining module 720, and the establishing module 730 are the receiving module 710, the determining module 720, and the establishing module 730.
  • the receiving module 710 is configured to: when the preset data in the first terminal needs to be transferred to the second terminal, the first terminal receives a request for establishing a data transfer hotspot of the user, where the data transfer hotspot is used to establish the location A point-to-point data channel between the first terminal and the second terminal.
  • the first terminal refers to a mobile intelligent terminal such as a mobile phone or a tablet computer; the second terminal refers to a mobile intelligent terminal such as a mobile phone or a tablet computer.
  • the preset data 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.
  • the determining module 720 is configured to determine whether the current state of the data network of the first terminal is an open state.
  • the establishing module 730 is configured to: if the current state of the data network of the first terminal is an open state, shutting down the data network of the first terminal and establishing a data transfer hotspot, so that the first terminal and the second Establishing a data connection between the terminals based on the data transfer hotspot and transferring the preset data.
  • the first terminal when the preset data in the first terminal needs to be transferred to the second terminal, the first terminal receives a request for establishing a data transfer hotspot of the user, where the data is transferred.
  • the hotspot is used to establish a point-to-point data channel between the first terminal and the second terminal; determining whether the current state of the data network of the first terminal is an open state; if the current data network of the first terminal is current When the state is the on state, the data network of the first terminal is closed and a data transfer hotspot is established, so that the first terminal and the second terminal establish a data connection based on the data transfer hotspot and transfer the pre- Set the data.
  • the first terminal and the second terminal are connected to each other through the data transfer hotspot, and then the data in the first terminal is transferred to the first terminal.
  • the second terminal does not consume the data traffic of the first terminal and saves data network resources.
  • FIG. 8 is a schematic structural diagram of a second embodiment of a hotspot establishing apparatus according to an embodiment of the present invention, which is used to implement a hotspot establishing method disclosed in an embodiment of the present invention.
  • the device shown in Fig. 8 is optimized by the device shown in Fig. 7.
  • the apparatus shown in Fig. 8 has the following extensions in addition to the modules and functions of the apparatus shown in Fig. 7:
  • the receiving module 810 is further configured to: receive a connection request of the data transfer hotspot of the second terminal;
  • the establishing module 830 is further configured to: establish a data connection between the first terminal and the second terminal based on the data transfer hotspot in response to the connection request.
  • the apparatus 800 further includes:
  • the setting module 840 is configured to set an encryption password for the data transfer hotspot
  • the obtaining module 850 is configured to acquire a verification password sent by the second terminal when receiving the connection request of the second terminal;
  • the establishing module 830 is further configured to: when the verification password is the encrypted password, request, by using the connection of the second terminal, to establish a data connection between the first terminal and the second terminal .
  • the determining module 820 is further configured to determine whether a current state of the wireless fidelity WiFi of the first terminal is an open state
  • the device 800 further includes a shutdown module 860, configured to disable the WiFi if the current state of the wireless fidelity WiFi of the first terminal is an open state.
  • the setting module 840 is further configured to: set a data connection name to the data connection, where the data connection name is used to uniquely identify a data connection between the first terminal and the second terminal .
  • the apparatus 800 further includes:
  • the sending module 870 is configured to send a beacon broadcast to the beacon in a first preset time period, where the Beacon includes a data connection name of the data connection.
  • the determining module 820 is further configured to: determine whether the data connection is established;
  • the setting module 840 is further configured to: if the second terminal does not establish the data connection when a preset time threshold is exceeded, set the first preset time to a second preset time, where the Two presets The time is greater than the first preset time.
  • the determining module is further configured to: if the current state of the data network of the first terminal is an open state, determine whether the size of the preset data is less than a preset threshold;
  • the establishing module is further configured to: if the size of the preset data is smaller than the preset threshold, turn off the data network of the first terminal and establish a data transfer hotspot.
  • the determining module is further configured to: if the size of the preset data is greater than the preset threshold, determine whether the remaining power of the first terminal is greater than a preset power;
  • the establishing module is further configured to: if the remaining power of the first terminal is less than the preset power, turn off the data network of the first terminal and establish a data transfer hotspot.
  • the determining module is further configured to: if the current state of the data network of the first terminal is an open state, determine whether the network state of the data network reaches a preset standard;
  • the establishing module is further configured to: if the network status of the data network does not reach the preset criterion, close the data network of the first terminal and establish a data transfer hotspot.
  • the first terminal when the preset data in the first terminal needs to be transferred to the second terminal, the first terminal receives a request for establishing a data transfer hotspot of the user, where the data transfer hotspot is used.
  • the first terminal and the second terminal are connected to each other through the data transfer hotspot, and then the data in the first terminal is transferred to the first terminal.
  • the second terminal does not consume the data traffic of the first terminal and saves data network resources.
  • FIG. 9 is a schematic structural diagram of a first embodiment of a terminal according to an embodiment of the present invention.
  • the terminal 900 may be the first terminal in the above embodiment.
  • the terminal 900 may include: at least one input device 901; at least one output device 902; at least one processor 903, such as a CPU; and a memory 904, the input device 901, the output device 902, the processor 903, and The memory 904 is connected by a bus 905.
  • the above memory 904 may be a high speed RAM memory or a non-volatile memory such as a disk memory.
  • the above-mentioned memory 604 is used for storing a set of program codes, and the input device 901, the output device 902, and the processor 903 are used to call the program code stored in the memory 904, and perform the following operations:
  • the processor 903 is configured to: when the preset data in the first terminal needs to be transferred to the second terminal, the first terminal receives a request for establishing a data transfer hotspot of the user, where the data transfer hotspot is used to build Establishing a point-to-point data channel between the first terminal and the second terminal.
  • the processor 903 is further configured to determine whether a current state of the data network of the first terminal is an open state.
  • the processor 903 is further configured to: if the current state of the data network of the first terminal is the on state, shutting down the data network of the first terminal and establishing a data transfer hotspot, so that the first terminal and the Establishing a data connection between the second terminals based on the data transfer hotspot and transferring the preset data.
  • the processor 903 is further configured to receive a connection request of the data transfer hotspot of the second terminal.
  • the processor 903 is further configured to establish, according to the data transfer hotspot, a data connection between the first terminal and the second terminal in response to the connection request.
  • the processor 903 is further configured to set an encryption password for the data transfer hotspot.
  • the processor 903 is further configured to acquire the verification password sent by the second terminal when receiving the connection request of the second terminal.
  • the processor 903 is further configured to: when the verification password is the encrypted password, use the connection request of the second terminal to establish a data connection between the first terminal and the second terminal.
  • the processor 903 is further configured to determine whether a current state of the wireless fidelity WiFi of the first terminal is an open state.
  • the processor 903 is further configured to: if the current state of the wireless fidelity WiFi of the first terminal is an open state, turn off the WiFi.
  • the processor 903 is further configured to set a data connection name for the data connection, where the data connection name is used to uniquely identify a data connection between the first terminal and the second terminal.
  • the processor 903 is further configured to send a beacon broadcast to the beacon in a first preset time period, where the Beacon includes a data connection name of the data connection.
  • the second terminal does not establish the data connection when the preset time threshold is exceeded, setting the first preset time to a second preset time, where the second preset time is greater than the first Preset time.
  • the processor 903 is further configured to: if the current state of the data network of the first terminal is an open state, determine whether the size of the preset data is less than a preset threshold;
  • the closing the data network of the first terminal and establishing a data transfer hotspot includes:
  • the data network of the first terminal is closed and a data transfer hotspot is established.
  • the processor 903 is further configured to: if the size of the preset data is greater than the preset threshold, determine whether the remaining power of the first terminal is greater than a preset power;
  • the closing the data network of the first terminal and establishing a data transfer hotspot includes:
  • the data network of the first terminal is closed and a data transfer hotspot is established.
  • the processor 903 is further configured to: if the current state of the data network of the first terminal is open State, determining whether the network state of the data network reaches a preset standard;
  • the closing the data network of the first terminal and establishing a data transfer hotspot includes:
  • the data network of the first terminal is closed and a data transfer hotspot is established.
  • the first terminal when the preset data in the first terminal needs to be transferred to the second terminal, the first terminal receives a request for establishing a data transfer hotspot of the user, where the data transfer hotspot is used.
  • the first terminal and the second terminal are connected to each other through the data transfer hotspot, and then the data in the first terminal is transferred to the first terminal.
  • the second terminal does not consume the data traffic of the first terminal and saves data network resources.
  • the embodiment of the present invention further provides a more specific application scenario, as follows:
  • the first terminal is a mobile phone, and the following describes the components of the mobile phone in conjunction with FIG. 10:
  • the RF circuit 1010 can be used for receiving and transmitting signals during the transmission or reception of information or during a call. In particular, after receiving the downlink information of the base station, it is processed by the processor 1080. In addition, the uplink data is designed to be sent to the base station. Generally, RF circuit 1010 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 circuit 1010 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.
  • GSM Global System of Mobile communication
  • GPRS General Packet Radio Service
  • the memory 1020 can be used to store software programs and modules, and the processor 1080 executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory 1020.
  • the memory 1020 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a lock screen picture display method), and the like; and the storage data area may be stored according to the use of the mobile phone.
  • the created data (lock screen images with different resolutions and compression ratios) and so on.
  • memory 1020 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.
  • the input unit 1030 can be configured to receive input numeric or character information, and generate a user with the mobile phone Set and key signal input related to function control.
  • the input unit 1030 may include a touch panel 1031 and other input devices 1032.
  • the touch panel 1031 also referred to as a touch screen, can collect touch operations on or near the user (such as the user using a finger, a stylus, or the like on the touch panel 1031 or near the touch panel 1031. Operation), and drive the corresponding connecting device according to a preset program.
  • the touch panel 1031 may include two parts: a touch detection device and a touch controller.
  • 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 1080 is provided and can receive commands from the processor 1080 and execute them.
  • the touch panel 1031 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 1030 may also include other input devices 1032.
  • other input devices 1032 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.
  • a function key such as a volume control button, a switch button, etc.
  • a trackball such as a mouse, a joystick, and the like.
  • the display unit 1040 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 1040 may include a display panel 1041.
  • the display panel 1041 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
  • the touch panel 1031 may cover the display panel 1041, and when the touch panel 1031 detects a touch operation thereon or nearby, the touch panel 1031 transmits to the processor 1080 to determine the type of the touch event, and then the processor 1080 according to the touch event. The type provides a corresponding visual output on display panel 1041.
  • touch panel 1031 and the display panel 1041 are used as two independent components to implement the input and input functions of the mobile phone in FIG. 10, in some embodiments, the touch panel 1031 may be integrated with the display panel 1041. Realize the input and output functions of the phone.
  • the handset can also include at least one type of sensor 1050, such as a light sensor, motion sensor, and other sensors.
  • 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 1041 according to the brightness of the ambient light, and the proximity sensor may close the display panel 1041 and/or when the mobile phone moves to the ear. Or backlight.
  • 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.
  • the mobile phone 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.
  • 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
  • the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
  • An audio circuit 1060, a speaker 1061, and a microphone 1062 can provide an audio interface between the user and the handset.
  • the audio circuit 1060 can transmit the converted electrical data of the received audio data to the speaker 1061, and convert it into a sound signal output by the speaker 1061; on the other hand, the microphone 1062 converts the collected sound signal into an electrical signal, by the audio circuit 1060. After receiving, it is converted into audio data, and then processed by the audio data output processor 1080, sent to the other mobile phone via the RF circuit 1010, or outputted to the memory 1020 for further processing.
  • WiFi is a short-range wireless transmission technology.
  • the mobile phone can help users to send and receive emails, browse web pages and access streaming media through the WiFi module 1070. It provides users with wireless broadband Internet access. ask.
  • FIG. 10 shows the WiFi module 1070, it can be understood that it does not belong to the essential configuration of the mobile phone, and may be omitted as needed within the scope of not changing the essence of the invention.
  • the processor 1080 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 1020, and invoking data stored in the memory 1020, The phone's various functions and processing data, so that the overall monitoring of the phone.
  • the processor 1080 may include one or more processing units; preferably, the processor 1080 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 1080.
  • the mobile phone also includes a power source 1090 (such as a battery) that supplies power to various components.
  • a power source 1090 such as a battery
  • the power source can be logically coupled to the processor 1080 through a power management system to manage functions such as charging, discharging, and power management through the power management system.
  • the mobile phone may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • each step method flow can be implemented based on the structure of the terminal shown in FIG.
  • 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 establishing method described in the foregoing method embodiments.
  • the disclosed apparatus may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • 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.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical or otherwise.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • 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 a software functional unit. Formal realization.
  • 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.
  • 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. .

Landscapes

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

Abstract

本发明实施例公开了一种热点建立方法及终端,所述方法包括:当需要将第一终端中的预设数据转移至第二终端时,所述第一终端接收用户的数据转移热点的建立请求;判断所述第一终端的数据网络的当前状态是否为开启状态;若所述第一终端的数据网络的当前状态为开启状态,则关闭所述第一终端的数据网络并建立数据转移热点。本发明实施例通过在第一终端中建立数据转移热点之前关闭第一终端的数据网络,从而使得第一终端与第二终端之间通过该数据转移热点建立数据连接后,将第一终端中的数据转移至第二终端时不会消耗第一终端的数据流量,节约数据网络资源。

Description

热点建立方法及终端 技术领域
本发明涉及通信领域,具体涉及一种热点建立方法及终端。
背景技术
随着信息时代的发展,智能手机已经成为每个人生活的信息中枢,但面对手机产品快速迭代,用户频繁更换手机,为了保持新旧两机在软件环境和数据资料上的一致,目前普遍使用的方法是对手机上的资料进行备份与恢复,从而将手机上的数据资源从一个手机转移至另一个手机中,也即数据转移,数据转移可以完成包括通讯录、信息(短信、彩信)、通话记录、日程、图片、音频、视频、文档、应用程序甚至应用程序数据、备忘录、闹钟、浏览器书签、旧手机的偏好设置等一切数据的迁移工作。
手机进行数据迁移时,都是通过一个终端建立无线热点,然后另一终端连接至该无线热点然后进行数据传输,但是在该过程中将可能导致消耗热点方的移动网络数据,而数据转移过程所传输的数据往往比较庞大,移动网络数据资费又往往比较高,造成资源浪费。
发明内容
本发明实施例提供了一种热点建立方法及终端,可以节约热点方移动网络数据流量。
本发明实施例第一方面提供一种热点建立方法,包括:
当需要将第一终端中的预设数据转移至第二终端时,所述第一终端接收用户的数据转移热点的建立请求,所述数据转移热点用于建立所述第一终端与所述第二终端之间的点对点数据通道;
判断所述第一终端的数据网络的当前状态是否为开启状态;
若所述第一终端的数据网络的当前状态为开启状态,则关闭所述第一终端的数据网络并建立数据转移热点,以使所述第一终端与所述第二终端之间基于所述数据转移热点建立数据连接并转移所述预设数据。
本发明实施例第二方面提供一种热点建立装置,包括:
接收模块,用于当需要将第一终端中的预设数据转移至第二终端时,所述第一终端接收用户的数据转移热点的建立请求,所述数据转移热点用于建立所述第一终端与所述第二终端之间的点对点数据通道;
判断模块,用于判断所述第一终端的数据网络的当前状态是否为开启状态;
建立模块,用于若所述第一终端的数据网络的当前状态为开启状态,则关闭所述第一终端的数据网络并建立数据转移热点,以使所述第一终端与所述第二终端之间基于所述数据转移热点建立数据连接并转移所述预设数据。
本发明实施例第三方面提供一种终端,包括:
存储有可执行程序代码的存储器;
与所述存储器耦合的处理器;
所述处理器调用所述存储器中存储的所述可执行程序代码,执行本发明第一方面所述的方法。
本发明实施例第四方面提供了一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行第一方面中任意一个方法。
可以看出,在本发明实施例提供的技术方案中,当需要将第一终端中的预设数据转移至第二终端时,所述第一终端接收用户的数据转移热点的建立请求,所述数据转移热点用于建立所述第一终端与所述第二终端之间的点对点数据通道;判断所述第一终端的数据网络的当前状态是否为开启状态;若所述第一终端的数据网络的当前状态为开启状态,则关闭所述第一终端的数据网络并建立数据转移热点,以使所述第一终端与所述第二终端之间基于所述数据转移热点建立数据连接并转移所述预设数据。通过在第一终端中建立数据转移热点之前关闭第一终端的数据网络,从而使得第一终端与第二终端之间通过该数据转移热点建立数据连接后,将第一终端中的数据转移至第二终端时不会消耗第一终端的数据流量,节约数据网络资源。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1-a是本发明实施例提供的热点建立系统的网络架构图;
图1-b是本发明实施例提供的一种热点建立方法的流程示意图;
图2是本发明实施例提供的数据转移热点验证示意图;
图3是本发明实施例提供的一种热点建立方法的流程示意图;
图4是本发明实施例提供的一种热点建立方法的流程示意图;
图5是本发明实施例提供的一种热点建立方法的流程示意图;
图6是本发明实施例提供的一种热点建立方法的流程示意图;
图7是本发明实施例提供的一种热点建立装置的结构示意图;
图8是本发明实施例提供的一种热点建立装置的结构示意图;
图9是本发明实施例提供的一种终端的结构示意图;
图10是本发明实施例提供的一种终端的结构示意图。
具体实施方式
本发明实施例提供了一种热点建立方法及终端,以期可以节约热点方移动 网络数据流量。
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”和“第三”等是用于区别不同对象,而非用于描述特定顺序。此外,术语“包括”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。
本发明实施例的一种热点建立方法,包括:当需要将第一终端中的预设数据转移至第二终端时,所述第一终端接收用户的数据转移热点的建立请求,所述数据转移热点用于建立所述第一终端与所述第二终端之间的点对点数据通道;判断所述第一终端的数据网络的当前状态是否为开启状态;若所述第一终端的数据网络的当前状态为开启状态,则关闭所述第一终端的数据网络并建立数据转移热点,以使所述第一终端与所述第二终端之间基于所述数据转移热点建立数据连接并转移所述预设数据。
首先参见图1-a,图1-a是本发明实施例提供的热点建立系统的网络架构图,在图1-a所示的网络架构图中,第一终端100和第二终端200均可以为手机、平板电脑等移动智能终端,在本发明实施例中,第一终端100为数据转移传送方,第二终端200为数据转移接收方,第一终端100通过建立数据转移热点,然后第二终端200连接到该数据转移热点上,从而建立第一终端100与第二终端200之间的通信连接,第一终端100基于该通信连接将预设数据转移至第二终端200,从而完成数据转移过程。
参见图1-b,图1-b是本发明实施例提供的一种热点建立方法的第一实施例流程示意图。其中,如图1-b所示,该热点建立方法可以包括以下步骤:
S101、当需要将第一终端中的预设数据转移至第二终端时,所述第一终端接收用户的数据转移热点的建立请求。
其中,所述数据转移热点用于建立所述第一终端与所述第二终端之间的点对点数据通道。
其中,第一终端是指手机、平板电脑等移动智能终端;第二终端是指手机、平板电脑等移动智能终端。
其中,预设数据是指第一终端中的应用或文件数据等,例如可以为通讯录、信息(短信、彩信)、通话记录、日程、图片、音频、视频、文档、应用程序甚 至应用程序数据、备忘录、闹钟、浏览器书签、旧手机的偏好设置等一切数据。将预设数据从第一终端转移至第二终端的过程也即数据转移。
其中,数据转移热点是指在需要将第一终端中的预设数据转移至第二终端时,为了建立在第一终端与第二终端之间的一个点对点的数据通道,而设置在第一终端的一个热点,从而第二终端可以通过该数据转移热点建立第一终端与第二终端之间的一个数据连接,然后再通过该数据通道可以实现在第一终端和第二终端之间的数据传输,并且在此时不需要借助于其它任何如数据网络或无线保真WiFi等通讯连接,但如果此时第一终端与第二终端之间的数据网络为连接状态,将使得将第一终端中的预设数据转移至第二终端的过程中也会消耗数据网络的流量。
在一个实施例中,可以通过在第一终端和第二终端中安装一数据转移应用,从而当需要将第一终端中的预设数据转移至第二终端时,可同时打开第一终端与第二终端中的该应用。
在一个实施例中,用户可以通过该应用操作终端建立数据转移热点。以触发数据转移过程。
S102、判断所述第一终端的数据网络的当前状态是否为开启状态。
其中,数据网络是指终端所接入的移动运营商网络,例如第三代移动通信技术(the 3rd Generation mobile communication technology,简称3G)或4G网络,当终端开户数据网络时,此时当在第一终端和第二终端之间传输数据时,将需要消耗运营商网络流量,产生较高的流量资费。
S103、若所述第一终端的数据网络的当前状态为开启状态,则关闭所述第一终端的数据网络并建立数据转移热点,以使所述第一终端与所述第二终端之间基于所述数据转移热点建立数据连接并转移所述预设数据。
在本发明实施例中,当建立该数据转移热点后,第二终端则可以连接到该数据转移热点,从而第一终端和第二终端则可以基于该数据转移热点建立数据连接,并通过该数据连接转移预设数据。
更进一步地,若第一终端的数据网络的当前状态为关闭状态,则建立数据转移热点。
可以看出,本发明实施例提供的技术方案中,当需要将第一终端中的预设数据转移至第二终端时,所述第一终端接收用户的数据转移热点的建立请求,所述数据转移热点用于建立所述第一终端与所述第二终端之间的点对点数据通道;判断所述第一终端的数据网络的当前状态是否为开启状态;若所述第一终端的数据网络的当前状态为开启状态,则关闭所述第一终端的数据网络并建立数据转移热点,以使所述第一终端与所述第二终端之间基于所述数据转移热点建立数据连接并转移所述预设数据。通过在第一终端中建立数据转移热点之前关闭第一终端的数据网络,从而使得第一终端与第二终端之间通过该数据转移热点建立数据连接后,将第一终端中的数据转移至第二终端时不会消耗第一终端的数据流量,节约数据网络资源。
在一个实施例中,所述建立数据转移热点之后,所述方法还包括:
接收所述第二终端的所述数据转移热点的连接请求;
基于所述数据转移热点建立所述第一终端与所述第二终端之间的数据连接以响应所述连接请求。
可以理解,当将第一终端设置为数据转移热点后,从而第二终端可以请求连接到该数据转移热点建立第一终端与第二终端之间的数据连接通道,然后再基于该数据连接通道在第一终端与第二终端之间传输数据,并在此时不会消耗任何数据流量。
在一个实施例中,所述方法还包括:
对所述数据转移热点设置加密密码;
在接收到所述第二终端的所述连接请求时,获取所述第二终端发送的验证密码;
在所述验证密码为所述加密密码时,通过所述第二终端的所述连接请求。
其中,加密密码是指用于验证连接到第一终端建立的第二终端的身份的密码。
其中,验证密码是指在第二终端请求连接至第一终端时,第一终端所需要第二终端输入的验证密码。
具体地,在第一终端建立数据转移热点的同时提示用户输入加密密码。
具体地,在第二终端向第一终端发送连接请求时,第一终端接收到该连接请求后,指示第二终端输入验证密码,然后在第二终端的界面弹出一对话框,指示用户输入验证密码。参见图2,图2是本发明实施例提供的数据转移热点验证示意图。
可以理解,通过第一终端设置该数据转移热点的加密密码,然后在其它终端请求接入该数据转移热点时,只在其它终端发送的验证密码与该数据转移热点匹配时,才通过该连接请求,从而防止其它不法终端连接至第一终端的数据转移热点,提高通信安全。
在一个实施例中,所述第一终端接收用户的数据转移热点的建立请求之后,所述方法还包括:
判断所述第一终端的无线保真WiFi的当前状态是否为开启状态;
若所述第一终端的无线保真WiFi的当前状态为开启状态,则关闭所述WiFi。
可以理解,当需要在终端中建立热点时,需要保证终端的WiFi处于关闭状态,所以可以判断终端中的WiFi是否为关闭状态,并在不是关闭状态下关闭终端中的WiFi,以保证热点能顺利建立。
在一个实施例中,所述建立所述第一终端与所述第二终端之间的数据连接之后,所述方法还包括:
对所述数据连接设置数据连接名称,所述数据连接名称用于唯一标识所述第一终端与所述第二终端之间的数据连接。
更进一步,当有第三终端连接至第一终端时,可再设置一数据连接名称用 于标识第一终端与第三终端之间的数据连接。
可以理解,通过设置数据连接名称,所以当下次第二终端再将连接到第一终端时,则可以通过名称识别该数据连接,也防止其它终端冒充第二终端连接至第一终端中,提高通信安全。
更进一步地,当第二终端连接至第一终端时,由于第一终端中保存有第一终端与第二终端的数据连接名称,所以此时不需要再对第二终端进行验证。
在一个实施例中,所述建立数据转移热点之后,所述方法还包括:
以第一预设时间为周期对外发送信标Beacon广播,所述Beacon中包括所述数据连接的数据连接名称;
判断所述数据连接是否建立;
若所述第二终端在超过预设时间阀值时没有建立所述数据连接,则将所述第一预设时间设置为第二预设时间,所述第二预设时间大于所述第一预设时间。
可以理解,由于第一终端需要在第一预设时间后外发包括数据连接名称的广播,所以若第一终端与第二终端在第一预设时间内没有建立好数据连接,可以延长广播周期时间,以保证新的数据连接能够建立,保证广播内容的正确。
在一个实施例中,所述判断所述第一终端的数据网络的当前状态是否为开启状态之后,所述方法还包括:
若所述第一终端的数据网络的当前状态为开启状态,判断所述预设数据的大小是否小于预设阈值;
所述关闭所述第一终端的数据网络并建立数据转移热点,包括:
若所述预设数据的大小小于所述预设阈值,关闭所述第一终端的数据网络并建立数据转移热点。
可以理解地,若所述预设数据的大小大于所述预设阈值,则可以利用开启的数据网络传输该预设数据。或者,结合以下方法,作进一步判断。
通过上述方式,能够根据预设数据的大小选择数据网络或数据转移热点,从而保证数据传输效率。可以理解地,数据网络的传输速率大于数据转移热点的传输速率。
在一个实施例中,所述判断所述预设数据的大小是否小于预设阈值之后,所述方法还包括:
若所述预设数据的大小大于所述预设阈值,判断所述第一终端的剩余电量是否大于预设电量;
所述关闭所述第一终端的数据网络并建立数据转移热点,包括:
若所述第一终端的剩余电量小于所述预设电量,关闭所述第一终端的数据网络并建立数据转移热点。
通过上述方式,能够结合第一终端的剩余电量来选取数据网络或数据转移热点,从而能够节约第一终端的电量。
在一个实施例中,所述判断所述第一终端的数据网络的当前状态是否为开启状态之后,所述方法还包括:
若所述第一终端的数据网络的当前状态为开启状态,判断所述数据网络的网络状态是否达到预设标准;
所述关闭所述第一终端的数据网络并建立数据转移热点,包括:
若所述数据网络的网络状态未达到所述预设标准,关闭所述第一终端的数据网络并建立数据转移热点。
其中,如果网络状态达到预设标准,可以理解为网络状态佳;如果网络状态未达到预设标准,可以理解为网络状态差。预设标准可以设置为预设数据传输速率阈值,即数据网络的数据传输速率达到预设标准,则可以确定该数据网络的网络状态佳,能够用于传输数据。当然,预设标准还可以通过其他方式设置,在此不予限定。
通过上述方式,能够基于网络状态来选择数据网络或数据转移热点,从而能够保证预设数据的传输效率。
上述可选的实现方式中,还可以通过一个方式或多个方式的结合来执行,在此不予限定。
为了便于更好理解和实施本发明实施例的上述方案,下面结合一些具体的应用场景进行举例说明。
请参见图3,图3是本发明实施例提供的一种热点建立方法的第二实施例流程示意图。图3所示的方法中,与图1所示方法相同或类似的内容可以参考图1中的详细描述,此处不再赘述。其中,如图3所示,该热点建立方法可以包括以下步骤:
S301、当需要将第一终端中的预设数据转移至第二终端时,第一终端接收用户的数据转移热点的建立请求。
其中,所述数据转移热点用于建立所述第一终端与所述第二终端之间的点对点数据通道。
其中,第一终端是指手机、平板电脑等移动智能终端;第二终端是指手机、平板电脑等移动智能终端。
其中,预设数据是指第一终端中的应用或文件数据等,例如可以为通讯录、信息(短信、彩信)、通话记录、日程、图片、音频、视频、文档、应用程序甚至应用程序数据、备忘录、闹钟、浏览器书签、旧手机的偏好设置等一切数据。将预设数据从第一终端转移至第二终端的过程也即数据转移。
S302、判断第一终端的数据网络的当前状态是否为开启状态。
S303、若第一终端的数据网络的当前状态为开启状态,则关闭第一终端的数据网络并建立数据转移热点,以使第一终端与第二终端之间基于该数据转移热点建立数据连接并转移预设数据。
在一个实施例中,若第一终端的数据网络的当前状态为关闭状态,则直接执行步骤S304。
S304、接收第二终端的数据转移热点的连接请求。
S305、基于数据转移热点建立第一终端与第二终端之间的数据连接以响应该连接请求。
本发明实施例通过在关闭第一终端的数据网络后在第一终端中建立数据转移热点,然后再接收第二终端的连接请求并连接到该数据转移热点中,从而使得第一终端与第二终端之间通过该数据转移热点建立数据连接后,将第一终端中的数据转移至第二终端时不会消耗第一终端的数据流量,节约数据网络资源。
参见图4,图4是本发明实施例提供的一种热点建立方法的第三实施例流程示意图。图4所示的方法中,与图1所示方法相同或类似的内容可以参考图1中的详细描述,此处不再赘述。其中,如图4所示,该热点建立方法可以包括以下步骤:
S401、当需要将第一终端中的预设数据转移至第二终端时,第一终端接收用户的数据转移热点的建立请求。
其中,所述数据转移热点用于建立所述第一终端与所述第二终端之间的点对点数据通道。
S402、判断第一终端的数据网络的当前状态是否为开启状态。
S403、若第一终端的数据网络的当前状态为开启状态,则关闭第一终端的数据网络并建立数据转移热点,以使第一终端与第二终端之间基于该数据转移热点建立数据连接并转移预设数据。
在一个实施例中,若第一终端的数据网络的当前状态为关闭状态,则直接建立数据转移热点。
S404、对数据转移热点设置加密密码。
S405、在接收到第二终端的连接请求时,获取第二终端发送的验证密码。
S406、在验证密码为加密密码时,通过第二终端的连接请求并建立第一终端与第二终端之间的数据连接。
在一个实施例中,在验证密码为为加密密码时,拒绝第二终端的连接请求。
本发明实施例通过第一终端设置该数据转移热点的加密密码,然后在其它终端请求接入该数据转移热点时,只在其它终端发送的验证密码与该数据转移热点匹配时,才通过该连接请求,从而防止其它不法终端连接至第一终端的数据转移热点,提高通信安全。
参见图5,图5是本发明实施例提供的一种热点建立方法的第四实施例流程示意图。图5所示的方法中,与图1所示方法相同或类似的内容可以参考图1中的详细描述,此处不再赘述。其中,如图5所示,该热点建立方法可以包括以下步骤:
S501、当需要将第一终端中的预设数据转移至第二终端时,第一终端接收用户的数据转移热点的建立请求。
其中,所述数据转移热点用于建立所述第一终端与所述第二终端之间的点对点数据通道。
S502、判断第一终端的无线保真WiFi的当前状态是否为开启状态。
S503、若第一终端的无线保真WiFi的当前状态为开启状态,则关闭WiFi。
在一个实施例中,若第一终端的WiFi的当前状态不为开启状态,此时则直接执行步骤S504。
S504、判断第一终端的数据网络的当前状态是否为开启状态。
S505、若第一终端的数据网络的当前状态为开启状态,则关闭第一终端的数据网络并建立数据转移热点,以使第一终端与第二终端之间基于数据转移热点建立数据连接并转移预设数据。
在一个实施例中,若第一终端的数据网络的当前状态不为开启状态,此时则直接建立数据转移热点。
本发明实施例通过在建立数据转移热点之前检测并关闭第一终端的WiFi,从而保证热点的顺利建立。
参见图6,图6是本发明实施例提供的一种热点建立方法的第五实施例流程示意图。图6所示的方法中,与图1所示方法相同或类似的内容可以参考图1中的详细描述,此处不再赘述。其中,如图6所示,该热点建立方法可以包括以下步骤:
S601、当需要将第一终端中的预设数据转移至第二终端时,第一终端接收用户的数据转移热点的建立请求。
其中,数据转移热点用于建立所述第一终端与所述第二终端之间的点对点数据通道。
S602、判断第一终端的数据网络的当前状态是否为开启状态。
S603、若第一终端的数据网络的当前状态为开启状态,则关闭第一终端的数据网络并建立数据转移热点,以使第一终端与第二终端之间基于该数据转移热点建立数据连接并转移预设数据。
在一个实施例中,若第一终端的数据网络的当前状态不为开启状态,此时则直接建立数据转移热点。
S604、对数据连接设置数据连接名称。
其中,该数据连接名称用于唯一标识所述第一终端与所述第二终端之间的数据连接。
S605、以第一预设时间为周期对外发送信标Beacon广播,所述Beacon中包括数据连接的数据连接名称。
S606、判断该数据连接是否建立。
S607、若第二终端在超过预设时间阀值时没有建立该数据连接,则将第一预设时间设置为第二预设时间,所述第二预设时间大于所述第一预设时间。
在一个实施例中,若第二终端在第一预设时间内建立该数据连接,此时则 不改变第一预设时间。
本发明实施例通过发送Beacon广播,以通知第二终端该数据连接是否建立成功,并通过一预设时间来确定第二终端的建立时间,当第一终端与第二终端在第一预设时间内没有建立好数据连接,可以延长广播周期时间,以保证新的数据连接能够建立,保证广播内容的正确。
本发明实施例还提供一种热点建立装置,该装置包括:
接收模块,用于当需要将第一终端中的预设数据转移至第二终端时,所述第一终端接收用户的数据转移热点的建立请求,所述数据转移热点用于建立所述第一终端与所述第二终端之间的点对点数据通道;
判断模块,用于判断所述第一终端的数据网络的当前状态是否为开启状态;
建立模块,用于若所述第一终端的数据网络的当前状态为开启状态,则关闭所述第一终端的数据网络并建立数据转移热点,以使所述第一终端与所述第二终端之间基于所述数据转移热点建立数据连接并转移所述预设数据。
具体的,请参见图7,图7是本发明实施例提供的一种热点建立装置的第一实施例结构示意图,用于实现本发明实施例公开的热点建立方法。热点建立装置700可以集成在第一终端中,也可以独立于第一终端,对热点建立装置的物理实现不予限定。其中,如图7所示,该热点建立装置700可以包括:
接收模块710、判断模块720和建立模块730。
其中,接收模块710,用于当需要将第一终端中的预设数据转移至第二终端时,所述第一终端接收用户的数据转移热点的建立请求,所述数据转移热点用于建立所述第一终端与所述第二终端之间的点对点数据通道。
其中,第一终端是指手机、平板电脑等移动智能终端;第二终端是指手机、平板电脑等移动智能终端。
其中,预设数据是指第一终端中的应用或文件数据等,例如可以为通讯录、信息(短信、彩信)、通话记录、日程、图片、音频、视频、文档、应用程序甚至应用程序数据、备忘录、闹钟、浏览器书签、旧手机的偏好设置等一切数据。将预设数据从第一终端转移至第二终端的过程也即数据转移。
判断模块720,用于判断所述第一终端的数据网络的当前状态是否为开启状态。
建立模块730,用于若所述第一终端的数据网络的当前状态为开启状态,则关闭所述第一终端的数据网络并建立数据转移热点,以使所述第一终端与所述第二终端之间基于所述数据转移热点建立数据连接并转移所述预设数据。
可以理解的是,本实施例的热点建立装置700的各功能模块的功能可根据上述方法实施例中的方法具体实现,其具体实现过程可以参照上述方法实施例的相关描述,此处不再赘述。
可以看出,本实施例的方案中,当需要将第一终端中的预设数据转移至第二终端时,所述第一终端接收用户的数据转移热点的建立请求,所述数据转移 热点用于建立所述第一终端与所述第二终端之间的点对点数据通道;判断所述第一终端的数据网络的当前状态是否为开启状态;若所述第一终端的数据网络的当前状态为开启状态,则关闭所述第一终端的数据网络并建立数据转移热点,以使所述第一终端与所述第二终端之间基于所述数据转移热点建立数据连接并转移所述预设数据。通过在第一终端中建立数据转移热点之前关闭第一终端的数据网络,从而使得第一终端与第二终端之间通过该数据转移热点建立数据连接后,将第一终端中的数据转移至第二终端时不会消耗第一终端的数据流量,节约数据网络资源。
请参见图8,图8是本发明实施例提供的热点建立装置的第二实施例结构示意图,用于实现本发明实施例公开的热点建立方法。其中,图8所示的装置是由图7所示的装置进行优化得到的。图8所示的装置除了包括图7所示的装置的模块及功能之外,还有以下扩展:
在一个实施例中,所述接收模块810还用于:接收所述第二终端的所述数据转移热点的连接请求;
所述建立模块830还用于:基于所述数据转移热点建立所述第一终端与所述第二终端之间的数据连接以响应所述连接请求。
在一个实施例中,所述装置800还包括:
设置模块840,用于对所述数据转移热点设置加密密码;
获取模块850,用于在接收到所述第二终端的所述连接请求时,获取所述第二终端发送的验证密码;
所述建立模块830还用于:在所述验证密码为所述加密密码时,通过所述第二终端的所述连接请求并建立所述第一终端与所述第二终端之间的数据连接。
在一个实施例中,
所述判断模块820,还用于判断所述第一终端的无线保真WiFi的当前状态是否为开启状态;
所述装置800,还包括关闭模块860,用于若所述第一终端的无线保真WiFi的当前状态为开启状态,则关闭所述WiFi。
在一个实施例中,所述设置模块840还用于:对所述数据连接设置数据连接名称,所述数据连接名称用于唯一标识所述第一终端与所述第二终端之间的数据连接。
在一个实施例中,所述装置800还包括:
发送模块870,用于以第一预设时间为周期对外发送信标Beacon广播,所述Beacon中包括所述数据连接的数据连接名称;
所述判断模块820还用于:判断所述数据连接是否建立;
所述设置模块840还用于:若所述第二终端在超过预设时间阀值时没有建立所述数据连接,则将所述第一预设时间设置为第二预设时间,所述第二预设 时间大于所述第一预设时间。
在一个实施例中,所述判断模块还用于:若所述第一终端的数据网络的当前状态为开启状态,判断所述预设数据的大小是否小于预设阈值;
所述建立模块还用于:若所述预设数据的大小小于所述预设阈值,关闭所述第一终端的数据网络并建立数据转移热点。
在一个实施例中,所述判断模块还用于:若所述预设数据的大小大于所述预设阈值,判断所述第一终端的剩余电量是否大于预设电量;
所述建立模块还用于:若所述第一终端的剩余电量小于所述预设电量,关闭所述第一终端的数据网络并建立数据转移热点。
在一个实施例中,所述判断模块还用于:若所述第一终端的数据网络的当前状态为开启状态,判断所述数据网络的网络状态是否达到预设标准;
所述建立模块还用于:若所述数据网络的网络状态未达到所述预设标准,关闭所述第一终端的数据网络并建立数据转移热点。
可以理解的是,本实施例的装置800的各功能模块的功能可根据上述方法实施例中的方法具体实现,其具体实现过程可以参照上述方法实施例的相关描述,此处不再赘述。
可以看出,本实施例的方案中,当需要将第一终端中的预设数据转移至第二终端时,所述第一终端接收用户的数据转移热点的建立请求,所述数据转移热点用于建立所述第一终端与所述第二终端之间的点对点数据通道;判断所述第一终端的数据网络的当前状态是否为开启状态;若所述第一终端的数据网络的当前状态为开启状态,则关闭所述第一终端的数据网络并建立数据转移热点,以使所述第一终端与所述第二终端之间基于所述数据转移热点建立数据连接并转移所述预设数据。通过在第一终端中建立数据转移热点之前关闭第一终端的数据网络,从而使得第一终端与第二终端之间通过该数据转移热点建立数据连接后,将第一终端中的数据转移至第二终端时不会消耗第一终端的数据流量,节约数据网络资源。
参见图9,图9是本发明实施例提供的终端的第一实施例的结构示意图。终端900可以是上述实施例中的第一终端。如图9所示,该终端900可以包括:至少一个输入设备901;至少一个输出设备902;至少一个处理器903,例如CPU;和存储器904,上述输入设备901、输出设备902、处理器903和存储器904通过总线905连接。
上述存储器904可以是高速RAM存储器,也可为非不稳定的存储器(non-volatile memory),例如磁盘存储器。上述存储器604用于存储一组程序代码,上述输入设备901、输出设备902和处理器903用于调用存储器904中存储的程序代码,执行如下操作:
上述处理器903,用于当需要将第一终端中的预设数据转移至第二终端时,所述第一终端接收用户的数据转移热点的建立请求,所述数据转移热点用于建 立所述第一终端与所述第二终端之间的点对点数据通道。
上述处理器903,还用于判断所述第一终端的数据网络的当前状态是否为开启状态;
上述处理器903,还用于若所述第一终端的数据网络的当前状态为开启状态,则关闭所述第一终端的数据网络并建立数据转移热点,以使所述第一终端与所述第二终端之间基于所述数据转移热点建立数据连接并转移所述预设数据。
上述处理器903,还用于接收所述第二终端的所述数据转移热点的连接请求。
上述处理器903,还用于基于所述数据转移热点建立所述第一终端与所述第二终端之间的数据连接以响应所述连接请求。
上述处理器903,还用于对所述数据转移热点设置加密密码。
上述处理器903,还用于在接收到所述第二终端的所述连接请求时,获取所述第二终端发送的验证密码。
上述处理器903,还用于在所述验证密码为所述加密密码时,通过所述第二终端的所述连接请求并建立所述第一终端与所述第二终端之间的数据连接。
上述处理器903,还用于判断所述第一终端的无线保真WiFi的当前状态是否为开启状态。
上述处理器903,还用于若所述第一终端的无线保真WiFi的当前状态为开启状态,则关闭所述WiFi。
上述处理器903,还用于对所述数据连接设置数据连接名称,所述数据连接名称用于唯一标识所述第一终端与所述第二终端之间的数据连接。
上述处理器903,还用于以第一预设时间为周期对外发送信标Beacon广播,所述Beacon中包括所述数据连接的数据连接名称;
判断所述数据连接是否建立;
若所述第二终端在超过预设时间阀值时没有建立所述数据连接,则将所述第一预设时间设置为第二预设时间,所述第二预设时间大于所述第一预设时间。
上述处理器903,还用于若所述第一终端的数据网络的当前状态为开启状态,判断所述预设数据的大小是否小于预设阈值;
所述关闭所述第一终端的数据网络并建立数据转移热点,包括:
若所述预设数据的大小小于所述预设阈值,关闭所述第一终端的数据网络并建立数据转移热点。
上述处理器903,还用于若所述预设数据的大小大于所述预设阈值,判断所述第一终端的剩余电量是否大于预设电量;
所述关闭所述第一终端的数据网络并建立数据转移热点,包括:
若所述第一终端的剩余电量小于所述预设电量,关闭所述第一终端的数据网络并建立数据转移热点。
上述处理器903,还用于若所述第一终端的数据网络的当前状态为开启状 态,判断所述数据网络的网络状态是否达到预设标准;
所述关闭所述第一终端的数据网络并建立数据转移热点,包括:
若所述数据网络的网络状态未达到所述预设标准,关闭所述第一终端的数据网络并建立数据转移热点。
可以理解的是,本实施例的第一终端900的各功能模块的功能可根据上述方法实施例中的方法具体实现,其具体实现过程可以参照上述方法实施例的相关描述,此处不再赘述。
可以看出,本实施例的方案中,当需要将第一终端中的预设数据转移至第二终端时,所述第一终端接收用户的数据转移热点的建立请求,所述数据转移热点用于建立所述第一终端与所述第二终端之间的点对点数据通道;判断所述第一终端的数据网络的当前状态是否为开启状态;若所述第一终端的数据网络的当前状态为开启状态,则关闭所述第一终端的数据网络并建立数据转移热点,以使所述第一终端与所述第二终端之间基于所述数据转移热点建立数据连接并转移所述预设数据。通过在第一终端中建立数据转移热点之前关闭第一终端的数据网络,从而使得第一终端与第二终端之间通过该数据转移热点建立数据连接后,将第一终端中的数据转移至第二终端时不会消耗第一终端的数据流量,节约数据网络资源。
本发明实施例还提供了一个更为具体的应用场景,如下:上述第一终端为手机,下面结合图10对手机的各个构成部件进行具体的介绍:
RF电路1010可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器1080处理;另外,将设计上行的数据发送给基站。通常,RF电路1010包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路1010还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(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)等。
存储器1020可用于存储软件程序以及模块,处理器1080通过运行存储在存储器1020的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器1020可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如锁屏图片显示方法)等;存储数据区可存储根据手机的使用所创建的数据(不同分辨率与压缩比例的锁屏图片)等。此外,存储器1020可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
输入单元1030可用于接收输入的数字或字符信息,以及产生与手机的用户 设置以及功能控制有关的键信号输入。具体地,输入单元1030可包括触控面板1031、其他输入设备1032。触控面板1031,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1031上或在触控面板1031附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板1031可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器1080,并能接收处理器1080发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1031。除以了触控面板1031,输入单元1030还可以包括其他输入设备1032。具体地,其他输入设备1032可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的至少一种。
显示单元1040可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元1040可包括显示面板1041,可选的,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板1041。进一步的,触控面板1031可覆盖显示面板1041,当触控面板1031检测到在其上或附近的触摸操作后,传送给处理器1080以确定触摸事件的类型,随后处理器1080根据触摸事件的类型在显示面板1041上提供相应的视觉输出。虽然在图10中,触控面板1031与显示面板1041是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板1031与显示面板1041集成而实现手机的输入和输出功能。
手机还可包括至少一种传感器1050,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板1041的亮度,接近传感器可在手机移动到耳边时,关闭显示面板1041和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
音频电路1060、扬声器1061,传声器1062可提供用户与手机之间的音频接口。音频电路1060可将接收到的音频数据转换后的电信号,传输到扬声器1061,由扬声器1061转换为声音信号输出;另一方面,传声器1062将收集的声音信号转换为电信号,由音频电路1060接收后转换为音频数据,再将音频数据输出处理器1080处理后,经RF电路1010以发送给比如另一手机,或者将音频数据输出至存储器1020以便进一步处理。
WiFi属于短距离无线传输技术,手机通过WiFi模块1070可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访 问。虽然图10示出了WiFi模块1070,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。
处理器1080是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器1020内的软件程序和/或模块,以及调用存储在存储器1020内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器1080可包括一个或多个处理单元;优选的,处理器1080可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1080中。
手机还包括给各个部件供电的电源1090(比如电池),优选的,电源可以通过电源管理系统与处理器1080逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。
前述实施例中,各步骤方法流程可以基于图10所示的终端的结构实现。
本发明实施例还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时包括上述方法实施例中记载的任何热点建立方法的部分或全部步骤。
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明的各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的 形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。

Claims (20)

  1. 一种热点建立方法,其特征在于,所述方法包括:
    当需要将第一终端中的预设数据转移至第二终端时,所述第一终端接收用户的数据转移热点的建立请求,所述数据转移热点用于建立所述第一终端与所述第二终端之间的点对点数据通道;
    判断所述第一终端的数据网络的当前状态是否为开启状态;
    若所述第一终端的数据网络的当前状态为开启状态,则关闭所述第一终端的数据网络并建立数据转移热点,以使所述第一终端与所述第二终端之间基于所述数据转移热点建立数据连接并转移所述预设数据。
  2. 根据权利要求1所述的方法,其特征在于,所述建立数据转移热点之后,所述方法还包括:
    接收所述第二终端的所述数据转移热点的连接请求;
    基于所述数据转移热点建立所述第一终端与所述第二终端之间的数据连接以响应所述连接请求。
  3. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    对所述数据转移热点设置加密密码;
    在接收到所述第二终端的所述连接请求时,获取所述第二终端发送的验证密码;
    在所述验证密码为所述加密密码时,通过所述第二终端的所述连接请求并建立所述第一终端与所述第二终端之间的数据连接。
  4. 根据权利要求1至3任一项所述的方法,其特征在于,所述第一终端接收用户的数据转移热点的建立请求之后,所述方法还包括:
    判断所述第一终端的无线保真WiFi的当前状态是否为开启状态;
    若所述第一终端的无线保真WiFi的当前状态为开启状态,则关闭所述WiFi。
  5. 根据权利要求2或3所述的方法,其特征在于,所述建立所述第一终端与所述第二终端之间的数据连接之后,所述方法还包括:
    对所述数据连接设置数据连接名称,所述数据连接名称用于唯一标识所述第一终端与所述第二终端之间的数据连接。
  6. 根据权利要求5所述的方法,其特征在于,所述建立数据转移热点之后,所述方法还包括:
    以第一预设时间为周期对外发送信标Beacon广播,所述Beacon中包括所述数据连接的数据连接名称;
    判断所述数据连接是否建立;
    若所述第二终端在超过预设时间阀值时没有建立所述数据连接,则将所述第一预设时间设置为第二预设时间,所述第二预设时间大于所述第一预设时间。
  7. 根据权利要求1所述的方法,其特征在于,所述判断所述第一终端的数据网络的当前状态是否为开启状态之后,所述方法还包括:
    若所述第一终端的数据网络的当前状态为开启状态,判断所述预设数据的大小是否小于预设阈值;
    所述关闭所述第一终端的数据网络并建立数据转移热点,包括:
    若所述预设数据的大小小于所述预设阈值,关闭所述第一终端的数据网络并建立数据转移热点。
  8. 根据权利要求7所述的方法,其特征在于,所述方法还包括:
    若所述预设数据的大小大于所述预设阈值,判断所述第一终端的剩余电量是否大于预设电量;
    所述关闭所述第一终端的数据网络并建立数据转移热点,包括:
    若所述第一终端的剩余电量小于所述预设电量,关闭所述第一终端的数据网络并建立数据转移热点。
  9. 根据权利要求1所述的方法,其特征在于,所述判断所述第一终端的数据网络的当前状态是否为开启状态之后,所述方法还包括:
    若所述第一终端的数据网络的当前状态为开启状态,判断所述数据网络的网络状态是否达到预设标准;
    所述关闭所述第一终端的数据网络并建立数据转移热点,包括:
    若所述数据网络的网络状态未达到所述预设标准,关闭所述第一终端的数据网络并建立数据转移热点。
  10. 一种热点建立装置,其特征在于,所述装置包括:
    接收模块,用于当需要将第一终端中的预设数据转移至第二终端时,所述第一终端接收用户的数据转移热点的建立请求,所述数据转移热点用于建立所述第一终端与所述第二终端之间的点对点数据通道;
    判断模块,用于判断所述第一终端的数据网络的当前状态是否为开启状态;
    建立模块,用于若所述第一终端的数据网络的当前状态为开启状态,则关闭所述第一终端的数据网络并建立数据转移热点,以使所述第一终端与所述第二终端之间基于所述数据转移热点建立数据连接并转移所述预设数据。
  11. 根据权利要求10所述的装置,其特征在于,
    所述接收模块还用于:接收所述第二终端的所述数据转移热点的连接请求;
    所述建立模块还用于:基于所述数据转移热点建立所述第一终端与所述第二终端之间的数据连接以响应所述连接请求。
  12. 根据权利要求10所述的装置,其特征在于,所述装置还包括:
    设置模块,用于对所述数据转移热点设置加密密码;
    获取模块,用于在接收到所述第二终端的所述连接请求时,获取所述第二终端发送的验证密码;
    所述建立模块还用于:在所述验证密码为所述加密密码时,通过所述第二终端的所述连接请求并建立所述第一终端与所述第二终端之间的数据连接。
  13. 根据权利要求10至12任一项所述的装置,其特征在于,
    所述判断模块,还用于判断所述第一终端的无线保真WiFi的当前状态是否为开启状态;
    关闭模块,用于若所述第一终端的无线保真WiFi的当前状态为开启状态,则关闭所述WiFi。
  14. 根据权利要求11或12所述的装置,其特征在于,
    所述设置模块还用于:对所述数据连接设置数据连接名称,所述数据连接名称用于唯一标识所述第一终端与所述第二终端之间的数据连接。
  15. 根据权利要求13所述的装置,其特征在于,所述装置还包括:
    发送模块,用于以第一预设时间为周期对外发送信标Beacon广播,所述Beacon中包括所述数据连接的数据连接名称;
    所述判断模块还用于:判断所述数据连接是否建立;
    所述设置模块还用于:若所述第二终端在超过预设时间阀值时没有建立所述数据连接,则将所述第一预设时间设置为第二预设时间,所述第二预设时间大于所述第一预设时间。
  16. 根据权利要求10所述的装置,其特征在于,
    所述判断模块还用于:若所述第一终端的数据网络的当前状态为开启状态,判断所述预设数据的大小是否小于预设阈值;
    所述建立模块还用于:若所述预设数据的大小小于所述预设阈值,关闭所述第一终端的数据网络并建立数据转移热点。
  17. 根据权利要求16所述的装置,其特征在于,
    所述判断模块还用于:若所述预设数据的大小大于所述预设阈值,判断所述第一终端的剩余电量是否大于预设电量;
    所述建立模块还用于:若所述第一终端的剩余电量小于所述预设电量,关闭所述第一终端的数据网络并建立数据转移热点。
  18. 根据权利要求10所述的装置,其特征在于,
    所述判断模块还用于:若所述第一终端的数据网络的当前状态为开启状态,判断所述数据网络的网络状态是否达到预设标准;
    所述建立模块还用于:若所述数据网络的网络状态未达到所述预设标准,关闭所述第一终端的数据网络并建立数据转移热点。
  19. 一种终端,其特征在于,所述终端包括:
    存储有可执行程序代码的存储器;
    与所述存储器耦合的处理器;
    所述处理器调用所述存储器中存储的所述可执行程序代码,执行如权利要求1至9任一项所述的方法。
  20. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行如权利要求1至9中任意一个方法。
PCT/CN2017/098822 2016-09-14 2017-08-24 热点建立方法及终端 WO2018049968A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610826101.3A CN106358318A (zh) 2016-09-14 2016-09-14 一种热点建立方法及终端设备
CN201610826101.3 2016-09-14

Publications (1)

Publication Number Publication Date
WO2018049968A1 true WO2018049968A1 (zh) 2018-03-22

Family

ID=57859632

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/098822 WO2018049968A1 (zh) 2016-09-14 2017-08-24 热点建立方法及终端

Country Status (2)

Country Link
CN (1) CN106358318A (zh)
WO (1) WO2018049968A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106358318A (zh) * 2016-09-14 2017-01-25 广东欧珀移动通信有限公司 一种热点建立方法及终端设备
CN107509195B (zh) * 2017-08-17 2020-10-13 珠海市魅族科技有限公司 数据传输方法和装置、终端及可读存储介质
CN110290526B (zh) * 2019-06-26 2023-10-24 北京小米移动软件有限公司 一种数据访问方法、装置及介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104507141A (zh) * 2014-12-26 2015-04-08 北京奇虎科技有限公司 客户端接收文件的方法及接收方客户端
CN105392169A (zh) * 2015-10-19 2016-03-09 小米科技有限责任公司 文件传输方法、装置和系统
WO2016078174A1 (zh) * 2014-11-20 2016-05-26 深圳Tcl数字技术有限公司 通讯连接建立方法、数据通讯方法及系统
CN106358318A (zh) * 2016-09-14 2017-01-25 广东欧珀移动通信有限公司 一种热点建立方法及终端设备
CN106413032A (zh) * 2016-09-14 2017-02-15 广东欧珀移动通信有限公司 一种热点建立方法及终端设备
CN106454810A (zh) * 2016-09-14 2017-02-22 广东欧珀移动通信有限公司 一种建立热点的方法及终端设备

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8804517B2 (en) * 2010-05-31 2014-08-12 Blackberry Limited Management of mobile hotspot connections

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016078174A1 (zh) * 2014-11-20 2016-05-26 深圳Tcl数字技术有限公司 通讯连接建立方法、数据通讯方法及系统
CN104507141A (zh) * 2014-12-26 2015-04-08 北京奇虎科技有限公司 客户端接收文件的方法及接收方客户端
CN105392169A (zh) * 2015-10-19 2016-03-09 小米科技有限责任公司 文件传输方法、装置和系统
CN106358318A (zh) * 2016-09-14 2017-01-25 广东欧珀移动通信有限公司 一种热点建立方法及终端设备
CN106413032A (zh) * 2016-09-14 2017-02-15 广东欧珀移动通信有限公司 一种热点建立方法及终端设备
CN106454810A (zh) * 2016-09-14 2017-02-22 广东欧珀移动通信有限公司 一种建立热点的方法及终端设备

Also Published As

Publication number Publication date
CN106358318A (zh) 2017-01-25

Similar Documents

Publication Publication Date Title
WO2018121148A1 (zh) 一种通信资源选择方法,手持智能终端及接入设备
WO2018049971A1 (zh) 热点网络切换方法及终端
EP2720135B1 (en) Data transmission method, data transmission device and terminal provided with touch screen
WO2018049970A1 (zh) 热点网络切换方法及终端
WO2018049887A1 (zh) 数据传输处理方法及终端设备
WO2018049886A1 (zh) 建立热点的方法及终端设备
WO2018049897A1 (zh) 数据备份方法及设备
WO2018049912A1 (zh) 数据传输方法及相关设备
WO2018049913A1 (zh) 数据传输方法及相关设备
WO2018049881A1 (zh) 一种数据迁移方法及装置
WO2018120905A1 (zh) 终端中消息提示的方法和终端
WO2018049894A1 (zh) 数据传输方法及设备
WO2019029618A1 (zh) Ims语音通话网络的切换方法、存储设备及移动终端
WO2018103443A1 (zh) 一种网络定位方法及终端设备
WO2018036026A1 (zh) 一种数据传输的方法、基站、目标终端、系统及存储介质
WO2018049969A1 (zh) 热点建立方法及相关设备
BR112016018783B1 (pt) Método, aparelho, dispositivo e sistema de intercomunicação
WO2018049904A1 (zh) 数据迁移方法及相关设备
WO2019001188A1 (zh) 一种数据处理方法、终端以及基站
WO2014094600A1 (zh) 移动终端及其降低功耗的方法
WO2018049968A1 (zh) 热点建立方法及终端
WO2020253746A1 (zh) 上报方法、配置方法、终端及网络侧设备
KR20220103146A (ko) 멀티캐스트 서비스의 전송 방법, 전송 처리 방법 및 관련 장치
WO2018049901A1 (zh) 数据迁移方法及相关设备
WO2020088277A1 (zh) 测量记录、上报、配置、获取方法、终端及网络设备

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17850170

Country of ref document: EP

Kind code of ref document: A1