WO2019140657A1 - Method and device for network connection and terminal - Google Patents

Method and device for network connection and terminal Download PDF

Info

Publication number
WO2019140657A1
WO2019140657A1 PCT/CN2018/073509 CN2018073509W WO2019140657A1 WO 2019140657 A1 WO2019140657 A1 WO 2019140657A1 CN 2018073509 W CN2018073509 W CN 2018073509W WO 2019140657 A1 WO2019140657 A1 WO 2019140657A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
hotspot
wireless terminal
wireless
information
Prior art date
Application number
PCT/CN2018/073509
Other languages
French (fr)
Chinese (zh)
Inventor
叶飞
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2018/073509 priority Critical patent/WO2019140657A1/en
Priority to CN201880020093.0A priority patent/CN110622571B/en
Publication of WO2019140657A1 publication Critical patent/WO2019140657A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Definitions

  • the present application relates to the field of communications technologies, and in particular, to a method, an apparatus, and a terminal for network connection.
  • WI-FI Wireless-Fidelity
  • the user when a user uses a mobile device to access the Internet, the user usually opens a Wireless-Fidelity (WI-FI) setting interface of the mobile device. After the WI-FI function is enabled, the mobile device starts searching for surrounding WI-FI hotspots. . There are often WI-FI hotspots around which there are no WI-FI hotspots available for connection, or WI-FI hotspots that can be connected but not connected to the Internet. At this time, the user needs to find another device with portable WI-FI hotspot sharing function, manually turn on the WI-FI hotspot of the device, and continue related configuration, such as hotspot name, hotspot password, and the like. Then, the user can switch back to the previously used mobile device and search for the WI-FI hotspot to connect to the newly opened WI-FI hotspot. It can be seen that in this scenario, the operation of connecting WI-FI hotspots is very cumbersome.
  • the method, device, and terminal for the network connection provided by the present application may enable the first terminal to scan to a second terminal that can provide a hotspot but does not enable the hotspot through the Bluetooth, request the second terminal to open the hotspot, and connect to the second terminal.
  • the hotspot of the terminal enhances the user experience.
  • a network connection method provided by the present application is applicable to a first wireless terminal, where the first wireless terminal discovers a second terminal by using a Bluetooth scan, where the second terminal does not establish a Bluetooth and hotspot connection with the first wireless terminal.
  • the first wireless terminal automatically sends a first request to the second terminal, where the first request is used to notify the second terminal to enable the hotspot; the first wireless terminal receives the first The hotspot information of the second terminal is connected to the hotspot of the second terminal according to the received hotspot information of the second terminal.
  • the first request may be a dedicated request message, which is used to request the second terminal to enable the hotspot, or to request the hotspot of the second terminal, and the first request may also be another message that is sent by the first terminal to the second terminal.
  • the embodiment of the present application does not limit this.
  • the hotspot information of the second terminal includes at least one of a hotspot name of the second terminal, a hotspot password of the second terminal, and a transmission control protocol TCP port information.
  • the first terminal automatically discovers the second terminal that has the WI-FI hotspot sharing capability but does not open the WI-FI hotspot through the Bluetooth. Further, the WI-FI hotspots of the second terminals are automatically enabled, so that the first terminal can connect to the WI-FI hotspots of the second terminals, simplifying user operations and improving the user experience.
  • the first terminal in a case where the network quality is poor, can also automatically discover the second terminal that can provide the hotspot, and automatically connect to the hotspot of the second terminal, which is beneficial to improving the network. Quality of service to enhance the user experience.
  • the first wireless terminal in response to determining that the first wireless terminal and the second terminal log in to different accounts, the first wireless terminal automatically sends a second request to the second terminal, and the second request is used to notify the second terminal to report the second terminal.
  • Network capability information includes whether the second terminal has hotspot sharing capability and/or whether the second terminal has enabled the mobile data service; the first wireless terminal receives the network capability information of the second terminal sent by the second terminal; It is determined that the second terminal has the hotspot sharing capability, and the mobile data service is enabled, and the first wireless terminal displays the second terminal identifier as a hot spot.
  • the second request may be a dedicated request message, which is used to request the second terminal to upload the network capability information, and the second request may also be carried in other messages sent by the first terminal to the second terminal. Not limited.
  • the second terminal may also automatically broadcast its own network capability information after the Bluetooth function is enabled, which is not limited in this embodiment.
  • the first wireless terminal after the first wireless terminal receives the network capability information of the second terminal sent by the second terminal, the first wireless terminal receives an operation of the user selecting to connect to the hotspot of the second terminal; The second terminal sends a third request, where the third request is used to notify the second terminal to enable the hotspot; the first wireless terminal connects to the hotspot of the second terminal according to the received second terminal hotspot information.
  • the third request may be a dedicated request message, which is used to request the second terminal to enable the hotspot, and the third request may also be carried in other messages sent by the first terminal to the second terminal. limited.
  • the first wireless terminal can scan the second terminal that can provide the hotspot through the Bluetooth, and display the information of the second terminal hotspot in the interface of the first terminal, so that the user can Select to connect to the second terminal hotspot. After the user selects to connect to the second terminal hotspot, the first terminal can automatically connect to the hotspot of the second terminal.
  • the manual connection provided by the embodiment of the present application obtains the hotspot of the second terminal, which is beneficial to simplifying the user. Operation will help improve the quality of network services and enhance the user experience.
  • the first wireless terminal before the first wireless terminal discovers the second terminal through Bluetooth scanning, the first wireless terminal receives an operation of the user to turn on the network connection function of the first wireless terminal.
  • the first wireless terminal after the first wireless terminal receives an operation by the user to turn on the network connection function of the first wireless terminal, the first wireless terminal does not scan for available wireless local area network signals.
  • the first wireless terminal determines that the network quality of the first wireless terminal meets a preset condition, and the preset condition includes that the network transmission rate is lower than a threshold.
  • a network connection method provided by the present application is applicable to a second terminal, where the method includes: receiving, by the second terminal, a first request sent by the first wireless terminal, where the first request is used to notify the second terminal to start a hotspot, wherein the second terminal is a terminal that does not establish a Bluetooth and hotspot connection with the first wireless terminal; in response to determining that the first wireless terminal and the second terminal log in to the same account, the second terminal turns on the hotspot; the second terminal connects the second terminal The hotspot information is sent to the first wireless terminal through the Bluetooth channel.
  • the second terminal receives the second request sent by the first wireless terminal, and the second request is used to notify the second terminal to report the network capability information of the second terminal, where the network capability information includes whether the second terminal has a hot spot. Sharing capability and/or whether the second terminal has enabled the mobile data service; in response to determining that the first wireless terminal and the second terminal log in to different accounts, and determining the second end
  • the terminal has the hotspot sharing capability and the mobile data service is enabled, and the second terminal sends the network capability information of the second terminal to the first wireless terminal through the Bluetooth channel.
  • the second terminal receives the third request sent by the first wireless terminal, and the third request is used to notify the second terminal to open the hotspot; the second terminal generates the prompt information, where the prompt information is used to prompt the user to use the first wireless
  • the terminal requests to connect to the hotspot of the second terminal.
  • the second terminal receives an operation of the user that allows the first wireless terminal to connect to the hotspot of the second terminal; the second terminal turns on the hotspot, and sends the hotspot information of the second terminal to the first wireless through the Bluetooth channel. terminal.
  • the hotspot information of the second terminal includes at least one of a hotspot name of the second terminal, a hotspot password of the second terminal, and a transmission control protocol TCP port information.
  • the first wireless terminal includes: a sending unit, configured to discover the second terminal by using a Bluetooth scan, where the second terminal is a terminal that does not establish a Bluetooth and hotspot connection with the first wireless terminal; and the sending unit is further configured to respond Determining that the first wireless terminal and the second terminal are logged in to the same account, and automatically sending a first request to the second terminal, where the first request is used to notify the second terminal to enable the hotspot; the receiving unit is configured to receive the hotspot information of the second terminal; And a unit, configured to connect the hotspot of the second terminal according to the received hotspot information of the second terminal.
  • the first wireless terminal further includes a display unit
  • the sending unit is further configured to automatically send the second request to the second terminal, in response to determining that the first wireless terminal and the second terminal log in to different accounts, the second request
  • the network capability information is used to notify the second terminal to report the network capability information of the second terminal, where the network capability information includes whether the second terminal has the hotspot sharing capability and/or whether the second terminal has enabled the mobile data service
  • the receiving unit is further configured to receive the second terminal.
  • the network capability information of the second terminal that is sent; the display unit is configured to display the second terminal identifier as a hotspot in response to determining that the second terminal has the hotspot sharing capability and the mobile data service is enabled.
  • the receiving unit is further configured to receive an operation of the user selecting to connect to the hotspot of the second terminal; the sending unit is further configured to send a third request to the second terminal, where the third request is used to notify the second terminal to open The hotspot; the processing unit is further configured to connect the hotspot of the second terminal according to the received second terminal hotspot information.
  • the receiving unit is further configured to receive an operation of the user to enable the network connection function of the first wireless terminal.
  • the receiving unit is further configured to: after receiving the operation of the user to turn on the network connection function of the first wireless terminal, the first wireless terminal does not scan for an available wireless local area network signal.
  • the determining unit is further configured to determine that the network quality of the first wireless terminal meets a preset condition, where the preset condition includes that the network transmission rate is lower than a threshold.
  • the hotspot information of the second terminal includes at least one of a hotspot name of the second terminal, a hotspot password of the second terminal, and a transmission control protocol TCP port information.
  • the fourth terminal, the second terminal includes: a receiving unit, configured to receive a first request sent by the first wireless terminal, where the first request is used to notify the second terminal to enable the hotspot, where the second terminal is not established with the first terminal a Bluetooth and a hotspot connected terminal; a processing unit, configured to: in response to determining that the first wireless terminal and the second terminal log in to the same account, to enable the hotspot; the sending unit, configured to send the hotspot information of the second terminal to the first wireless through the Bluetooth channel terminal.
  • the receiving unit is further configured to receive a second request sent by the first wireless terminal, where the second request is used to notify the second terminal to report network capability information of the second terminal, where the network capability information includes whether the second terminal is Having a hotspot sharing capability and/or whether the second terminal has enabled the mobile data service;
  • the sending unit is further configured to: in response to determining that the first wireless terminal and the second terminal log in to different accounts, and determine that the second terminal has hotspot sharing capability, and is enabled
  • the mobile data service transmits the network capability information of the second terminal to the first wireless terminal through the Bluetooth channel.
  • the second terminal further includes a processing unit, and the receiving unit is further configured to receive a third request sent by the first wireless terminal, where the third request is used to notify the second terminal to enable the hotspot; and the processing unit is configured to generate The prompt information is used to prompt the user that the first wireless terminal requests to connect to the hotspot of the second terminal.
  • the receiving unit is configured to receive an operation of the user that allows the first wireless terminal to connect to the hotspot of the second terminal; the processing unit is further configured to enable the hotspot and send the hotspot information of the second terminal through the Bluetooth channel. To the first wireless terminal.
  • the hotspot information of the second terminal includes at least one of a hotspot name of the second terminal, a hotspot password of the second terminal, and a transmission control protocol TCP port information.
  • a fifth aspect a first wireless terminal, comprising: a processor, a memory and a touch screen, the memory, the touch screen being coupled to the processor, the memory for storing computer program code, the computer program code comprising computer instructions, when the processor executes the computer instruction
  • the terminal performs the method of any of the possible implementations of the first aspect.
  • a sixth aspect a second terminal, comprising: a processor, a memory and a touch screen, the memory, the touch screen being coupled to the processor, the memory for storing the computer program code, the computer program code comprising computer instructions, when the processor executes the computer instruction,
  • the terminal performs the method of any of the possible implementations of the second aspect.
  • a seventh aspect a computer storage medium comprising computer instructions that, when executed on a terminal, cause the terminal to perform the method of any of the possible implementations of the first aspect.
  • a computer storage medium comprising computer instructions, when the computer instructions are run on a terminal, causing the terminal to perform the method of any of the possible implementations of the second aspect.
  • a ninth aspect a computer program product, when a computer program product is run on a computer, causing the computer to perform the method of any of the possible implementations of the first aspect.
  • a tenth aspect a computer program product, when a computer program product is run on a computer, causing the computer to perform the method of any of the possible implementations of the second aspect.
  • FIG. 1 is a schematic structural diagram 1 of a first terminal provided by the present application.
  • FIG. 2 is a schematic diagram 1 of a network connection method provided by the present application.
  • FIG. 3 is a schematic diagram 2 of a network connection method provided by the present application.
  • FIG. 4 is a schematic diagram 3 of a network connection method provided by the present application.
  • FIG. 5 is a schematic diagram of an interface of a second terminal provided by the present application.
  • FIG. 6 is a schematic diagram of an interface of a first terminal provided by the present application.
  • FIG. 7 is a schematic flowchart diagram of a method for providing network connection according to the present application.
  • FIG. 8 is a schematic structural diagram 2 of a first terminal provided by the present application.
  • FIG. 9 is a schematic structural diagram 1 of a second terminal provided by the present application.
  • FIG. 10 is a schematic diagram 3 of a first terminal structure provided by the present application.
  • FIG. 11 is a second schematic structural diagram of a second terminal provided by the present application.
  • FIG. 12 is a schematic diagram of a frame format of a broadcast message provided by the present application.
  • first and second are used for descriptive purposes only, and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, features defining “first” and “second” may include one or more of the features either explicitly or implicitly. In the description of the present application, "a plurality” means two or more unless otherwise stated.
  • the user accesses the Internet using the first terminal
  • the first terminal has no network connection, or the first terminal has a network connection, but the connected network cannot provide Internet access, or although there is a network connection, but the network quality is poor
  • the user needs to manually enable the WI-FI hotspot sharing function of the second terminal and perform related settings.
  • the user opens the WI-FI setting interface of the first terminal, scans the surrounding hotspots through WI-FI, and then manually selects the corresponding hotspots to connect to the network or switch the current network connection, and the operation is complicated.
  • the embodiment of the present application provides a method for network connection, where the first terminal can automatically identify the current network state and network quality, and automatically discover the second terminal with the WI-FI hotspot sharing capability through Bluetooth. Then, the first terminal can open the WI-FI hotspot of the second terminal and automatically connect to the WI-FI hotspot of the second terminal, which can simplify the operation of the user and improve the user experience.
  • the first terminal in the application may be a mobile phone (such as the mobile phone 100 shown in FIG. 1), a tablet computer, a personal computer (PC), a personal digital assistant (PDA), a smart watch.
  • the present invention does not specifically limit the specific form of the first terminal, such as a netbook, a wearable electronic device, an Augmented Reality (AR) device, or a virtual reality (VR) device.
  • AR Augmented Reality
  • VR virtual reality
  • the mobile phone 100 is used as the first terminal.
  • the mobile phone 100 may include: a processor 101, a radio frequency (RF) circuit 102, a memory 103, a touch screen 104, a Bluetooth device 105, and one or more.
  • the processor 101 is a control center of the mobile phone 100, and connects various parts of the mobile phone 100 by using various interfaces and lines, and executes the mobile phone 100 by running or executing an application stored in the memory 103 and calling data stored in the memory 103.
  • the processor 101 may include one or more processing units; for example, the processor 101 may be a Kirin 960 chip manufactured by Huawei Technologies Co., Ltd.
  • the processor 101 may further include a fingerprint verification chip for verifying the collected fingerprint.
  • the radio frequency circuit 102 can be used to receive and transmit wireless signals during transmission or reception of information or calls.
  • the radio frequency circuit 102 can process the downlink data of the base station and then process it to the processor 101; in addition, transmit the data related to the uplink to the base station.
  • radio frequency circuits include, but are not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
  • the radio frequency circuit 102 can also communicate with other devices through wireless communication.
  • the wireless communication can use any communication standard or protocol, including but not limited to global mobile communication systems, general packet radio services, code division multiple access, wideband code division multiple access, long term evolution, email, short message service, and the like.
  • the memory 103 is used to store applications and data, and the processor 101 executes various functions and data processing of the mobile phone 100 by running applications and data stored in the memory 103.
  • the memory 103 mainly includes a storage program area and a storage data area, wherein the storage program area can store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.); the storage data area can be stored according to the use of the mobile phone. Data created at 100 o'clock (such as audio data, phone book, etc.).
  • the memory 103 may include a high speed random access memory (RAM), and may also include a nonvolatile memory such as a magnetic disk storage device, a flash memory device, or other volatile solid state storage device.
  • the memory 103 can store various operating systems, for example, developed by Apple. Operating system, developed by Google Inc. Operating system, etc.
  • the above memory 103 may be independent and connected to the processor 101 via the above communication bus; the memory 103 may also be integrated with the processor 101.
  • the touch screen 104 may specifically include a touch panel 104-1 and a display 104-2.
  • the touch panel 104-1 can collect touch events on or near the user of the mobile phone 100 (for example, the user uses any suitable object such as a finger, a stylus, or the like on the touch panel 104-1 or on the touchpad 104.
  • the operation near -1), and the collected touch information is sent to other devices (for example, processor 101).
  • the touch event of the user in the vicinity of the touch panel 104-1 may be referred to as a hovering touch; the hovering touch may mean that the user does not need to directly touch the touchpad in order to select, move or drag a target (eg, an icon, etc.) , and only the user is located near the device to perform the desired function.
  • the touch panel 104-1 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • a display (also referred to as display) 104-2 can be used to display information entered by the user or information provided to the user as well as various menus of the mobile phone 100.
  • the display 104-2 can be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the touchpad 104-1 can be overlaid on the display 104-2, and when the touchpad 104-1 detects a touch event on or near it, it is transmitted to the processor 101 to determine the type of touch event, and then the processor 101 may provide a corresponding visual output on display 104-2 depending on the type of touch event.
  • the touchpad 104-1 and the display 104-2 are implemented as two separate components to implement the input and output functions of the handset 100, in some embodiments, the touchpad 104- 1 is integrated with the display screen 104-2 to implement the input and output functions of the mobile phone 100. It is to be understood that the touch screen 104 is formed by stacking a plurality of layers of materials. In the embodiment of the present application, only the touch panel (layer) and the display screen (layer) are shown, and other layers are not described in the embodiment of the present application. .
  • the touch panel 104-1 may be disposed on the front surface of the mobile phone 100 in the form of a full-board
  • the display screen 104-2 may also be disposed on the front surface of the mobile phone 100 in the form of a full-board, so that the front of the mobile phone can be borderless. Structure.
  • the mobile phone 100 can also have a fingerprint recognition function.
  • the fingerprint reader 112 can be configured on the back of the handset 100 (eg, below the rear camera) or on the front side of the handset 100 (eg, below the touch screen 104).
  • the fingerprint collection device 112 can be configured in the touch screen 104 to implement the fingerprint recognition function, that is, the fingerprint collection device 112 can be integrated with the touch screen 104 to implement the fingerprint recognition function of the mobile phone 100.
  • the fingerprint capture device 112 is disposed in the touch screen 104 and may be part of the touch screen 104 or may be otherwise disposed in the touch screen 104.
  • the main component of the fingerprint collection device 112 in the embodiment of the present application is a fingerprint sensor, which can employ any type of sensing technology, including but not limited to optical, capacitive, piezoelectric or ultrasonic sensing technologies.
  • the mobile phone 100 may also include a Bluetooth device 105 for enabling data exchange between the handset 100 and other short-range devices (eg, mobile phones, smart watches, etc.).
  • the Bluetooth device in the embodiment of the present application may be an integrated circuit or a Bluetooth chip or the like.
  • the handset 100 can also include at least one type of sensor 106, 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 of the touch screen 104 according to the brightness of the ambient light, and the proximity sensor may turn off the power of the display when the mobile phone 100 moves to the ear.
  • 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.
  • the mobile phone 100 can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, here Let me repeat.
  • the WI-FI device 107 is configured to provide the mobile phone 100 with network access complying with the WI-FI related standard protocol, and the mobile phone 100 can access the WI-FI access point through the WI-FI device 107, thereby helping the user to send and receive emails. Browsing web pages and accessing streaming media, etc., it provides users with wireless broadband Internet access.
  • the WI-FI device 107 can also function as a WI-FI wireless access point, and can provide WI-FI network access for other devices.
  • the positioning device 108 is configured to provide a geographic location for the mobile phone 100. It can be understood that the positioning device 108 can be specifically a receiver of a positioning system such as a Global Positioning System (GPS) or a Beidou satellite navigation system, or a Russian GLONASS. After receiving the geographical location transmitted by the positioning system, the positioning device 108 sends the information to the processor 101 for processing, or sends it to the memory 103 for storage. In some other embodiments, the positioning device 108 can also be a receiver of an Assisted Global Positioning System (AGPS), which assists the positioning device 108 in performing ranging and positioning services by acting as an auxiliary server.
  • AGPS Assisted Global Positioning System
  • the secondary location server provides location assistance over a wireless communication network in communication with a location device 108 (i.e., a GPS receiver) of the device, such as handset 100.
  • the positioning device 108 can also be a WI-FI access point based positioning technology. Since each WI-FI access point has a globally unique (Media Access Control, MAC) address, the device can scan and collect the broadcast signals of the surrounding WI-FI access points when WI-FI is turned on. Therefore, the MAC address broadcasted by the WI-FI access point can be obtained; the device sends the data (such as the MAC address) capable of indicating the WI-FI access point to the location server through the wireless communication network, and each location is retrieved by the location server. The geographic location of the WI-FI access point, combined with the strength of the WI-FI broadcast signal, calculates the geographic location of the device and sends it to the location device 108 of the device.
  • MAC Media Access Control
  • the audio circuit 109, the speaker 113, and the microphone 114 can provide an audio interface between the user and the handset 100.
  • the audio circuit 109 can transmit the converted electrical data of the received audio data to the speaker 113 for conversion to the sound signal output by the speaker 113; on the other hand, the microphone 114 converts the collected sound signal into an electrical signal by the audio circuit 109. After receiving, it is converted into audio data, and then the audio data is output to the RF circuit 102 for transmission to, for example, another mobile phone, or the audio data is output to the memory 103 for further processing.
  • the peripheral interface 110 is used to provide various interfaces for external input/output devices (such as a keyboard, a mouse, an external display, an external memory, a subscriber identity module card, etc.). For example, it is connected to the mouse through a Universal Serial Bus (USB) interface, and is connected to a Subscriber Identification Module (SIM) card provided by the service provider through a metal contact on the card slot of the subscriber identity module. . Peripheral interface 110 can be used to couple the external input/output peripherals described above to processor 101 and memory 103.
  • USB Universal Serial Bus
  • SIM Subscriber Identification Module
  • the mobile phone 100 can communicate with other devices in the device group through the peripheral interface 110.
  • the peripheral interface 110 can receive display data sent by other devices for display, etc. No restrictions are imposed.
  • the mobile phone 100 may further include a power supply device 111 (such as a battery and a power management chip) that supplies power to the various components.
  • the battery may be logically connected to the processor 101 through the power management chip to manage charging, discharging, and power management through the power supply device 111. And other functions.
  • the mobile phone 100 may further include a camera (front camera and/or rear camera), a flash, a micro projection device, a near field communication (NFC) device, and the like, and details are not described herein.
  • a camera front camera and/or rear camera
  • a flash a flash
  • micro projection device a micro projection device
  • NFC near field communication
  • the second terminal in the embodiment of the present application may also be a mobile phone, a tablet computer, a personal computer, a personal digital assistant, a smart watch, a netbook, a wearable electronic device, an augmented reality device, a virtual reality device, etc.
  • the specific form is not subject to special restrictions.
  • Scenario 1 The first terminal does not currently enable the network connection function, and the user needs to use the first terminal to access the Internet through the WLAN. Then, the user needs to enter the setting interface of the WLAN of the first terminal, and open the function of the WLAN network connection.
  • FIG. 2 shows an interface of the first terminal, which is a setting interface of the WLAN, and includes a button 201 for turning on the WLAN network connection function.
  • (2) in FIG. 2 shows an interface in which the first terminal starts to search for the WLAN signal after the WLAN network connection function is turned on in response to the user clicking the button 201 that turns on the WLAN network connection function.
  • a list 202 of wireless network signals searched by the first terminal is displayed in the interface.
  • Scenario 2 The first terminal currently has the WLAN network connection function enabled, but does not search for available WLAN signals.
  • FIG. 6 shows an interface of the first terminal, where the interface includes prompt information 601, indicating that the first terminal has enabled the WLAN network connection function, and does not search for available WLAN signals.
  • Scenario 3 The first terminal currently has a connection to a WLAN network or a mobile data network, but the network quality is poor and cannot meet the requirements of the service.
  • the technical solution provided by the application may be adopted, and the first terminal automatically discovers the second terminal that has the WI-FI hotspot sharing capability but does not open the WI-FI hotspot through the Bluetooth. Further, interacting with the second terminal enables the second terminal to open the WI-FI hotspot, and automatically establishes a connection with the WI-FI hotspot of the second terminal to implement a connection network, thereby improving network service quality and improving user experience.
  • the embodiment of the present application provides two implementation manners.
  • One implementation manner is that the first terminal can automatically connect to the hotspot of the second terminal, that is, steps S101-S106, as shown in (1) of FIG. Method flow diagram.
  • Another implementation manner is that the first terminal can be manually connected to the second terminal hotspot by the user, that is, steps S101-S104, S107-S112, and S106, as shown in the process flow diagram of (2) in FIG.
  • the first terminal sends a scan request by using a Bluetooth to discover a second terminal that enables the Bluetooth function.
  • the first terminal detects the operation of the user to enable the WLAN hotspot function, and the first terminal starts scanning the nearby hotspots by using the WI-FI scanning mode; at the same time, the first terminal starts scanning the nearby Bluetooth function by using the Bluetooth.
  • Electronic equipment the operation of the user to enable the WLAN hotspot function, and the first terminal starts scanning the nearby hotspots by using the WI-FI scanning mode; at the same time, the first terminal starts scanning the nearby Bluetooth function by using the Bluetooth.
  • the first terminal detects that the user activates the WLAN hotspot function, and the first terminal first scans the nearby hotspots by using the WI-FI scanning mode.
  • the first terminal automatically uses Bluetooth to start scanning for nearby Bluetooth-enabled electronic devices.
  • the first terminal may also automatically start to use the Bluetooth scanning mode after a certain period of time after the first terminal starts the WI-FI scanning mode.
  • the embodiment of the present application does not limit the opening timing of the Bluetooth scanning mode.
  • the first terminal detects that the first terminal is in a network connection state, but the network quality of the first terminal is poor, and the first terminal automatically uses Bluetooth to start scanning nearby. Bluetooth-enabled electronic device.
  • the network quality of the first terminal is poor, and the network speed of the first terminal is lower than a preset value, or the refresh time of the webpage is greater than a preset value when the first terminal browses the webpage.
  • the embodiments of the present application do not limit the conditions for determining the quality of the network.
  • the first terminal automatically uses Bluetooth.
  • Bluetooth In the case that Bluetooth is already turned on, if Bluetooth is not enabled, Bluetooth can be automatically activated, and the user can be prompted whether to enable Bluetooth, and after opening the user license, open and use Bluetooth.
  • the scan request may further carry the account information of the first terminal, so that the second terminal can perform mutual trust authentication on the first terminal.
  • the account information of the first terminal and the account of the second terminal are the same, and the first terminal can be considered. And logging in to the same account with the second terminal, the first terminal may be considered as the trusted terminal of the second terminal. If the second terminal and the first terminal are in the same account or the second terminal determines that the first terminal is a trusted terminal according to the preset information/policy, the second terminal may consider that the first terminal is a trusted terminal, and may allow the first terminal. Connect to the hotspot of the second terminal. Otherwise, the first terminal is not allowed to connect to the hotspot of the second terminal, or the user of the second terminal is required to perform authorization, so that the hotspot of the second terminal can be connected.
  • the account information is used to identify the identity of the terminal, and may be, for example, a terminal identifier, or a user identifier of the user who uses the terminal, and may be a cloud account information, a login account of the cloud service, for example, a Huawei cloud account, and an apple.
  • the iCloud account, or the application login identifier for example: Alipay account information, WeChat account information, etc., may also be a mobile phone number, a media access control MAC address of the terminal, and the like.
  • the scan request is a broadcast message sent by the first terminal.
  • a broadcast message specified in a Core Version 4.0 and above released by the Special Interest Group (SIG) may be used.
  • a broadcast message may include a plurality of AD structures, wherein one AD structure includes a length field and a data field, wherein the data field includes a type field, a vendor ID, and an optional field.
  • the account information of the first terminal in the present application may be carried in an optional field in the broadcast message.
  • the second terminal sends a response message to the first terminal.
  • the second terminal sends the response information to the first terminal.
  • the first terminal may confirm that the second terminal is the Bluetooth enabled electronic device scanned by the first terminal.
  • the second terminal may send the response message to the first terminal only when the first terminal is determined to be the trusted terminal, so that when the first terminal receives the response message returned by the second terminal, the second terminal may confirm The second terminal is a trusted terminal.
  • the response message may further carry the account information of the second terminal.
  • the account information of the second terminal in the application may be carried in an optional field in the broadcast message, so that the first terminal may also perform mutual trust authentication on the second terminal according to the received account information of the second terminal. Strengthen the security of network connections.
  • the second terminal may also not transmit its own account information in the response message sent to the first terminal, but may send the account information of the second terminal in the process of performing mutual trust authentication with the first terminal.
  • the second terminal may also carry information about whether the hotspot function has been opened in the response message, so that the first terminal determines whether to send a hotspot open request to the first terminal.
  • the second terminal may also have its own The information of the hotspot opening capability is also carried in the response message. That is, if the second terminal does not have the hotspot enabling capability, the information may be carried in the response information. If the second terminal has the hotspot enabling capability and the current hotspot is not enabled, the hotspot may not be opened in the response. If the current hotspot of the second terminal is already enabled, the information about the hotspot may be carried in the response, and the specific hotspot information, such as the hotspot ID, may also be carried.
  • the hotspot related information of the second terminal enables the first terminal to properly interpret the capability of the second terminal, and only initiates the qualified second terminal, the second terminal having hotspot capability and the current hotspot has not been opened. Hotspot requests, so you can shorten the time it takes to connect to the network and provide connection efficiency. S103.
  • the first terminal sends a request for opening a hot spot to the second terminal.
  • the first terminal After receiving the response message of the second terminal, the first terminal sends a request for opening the hotspot to the second terminal.
  • the request for turning on the hot spot sent by the first terminal may be carried in an optional field in the broadcast message.
  • the first terminal may determine, according to the hotspot information carried in the response message, whether the second terminal is in a hotspot-on function and the current hotspot is not turned on, and if so, to the first terminal
  • the second terminal sends a request to open the hotspot. If the response message sent by the second terminal does not carry the hotspot information, the first terminal determines whether the second terminal is hotspot and cannot provide the first terminal according to the status of the wireless network that is searched for by the current WLAN function.
  • the network connection service sends a hotspot request to the second terminal if the second terminal is not the network hotspot that has been searched by the first terminal and cannot provide the preset quality of service.
  • the first terminal may determine, according to the second terminal, whether the second terminal is a trusted terminal, and only when the second terminal is a trusted terminal. The first terminal sends a hotspot request. If the second terminal is not a trusted terminal, the user may be prompted to send or not send a hotspot request according to the user's instruction.
  • the hotspot request may also carry the account information of the first terminal for the second terminal to perform mutual trust determination.
  • the first terminal may perform mutual trust authentication with the second terminal and request the second terminal to be opened according to the sequence of scanning to the second terminal. Hotspots, hotspots connected to the second terminal, etc.
  • the first terminal may also be any one of the plurality of second terminals that are scanned, perform mutual trust authentication, request the second terminal to open the hotspot, and connect the hotspot of the second terminal. In any of the processes, if any process is rejected or disconnected, the first terminal performs mutual authentication with the next second terminal, requests the second terminal to open the hotspot, and connects to the hotspot of the second terminal.
  • the second terminal receives the request for turning on the hot spot sent by the first terminal.
  • the second terminal After receiving the hotspot request of the first terminal, the second terminal determines whether the first terminal is a trusted terminal based on the self-save or the network side (for example, the result of determining whether the first terminal is a trusted terminal in step S102) Or determining whether the first terminal is a trusted terminal at a local or other place, such as a server, based on the account information of the first terminal carried in the hotspot request. If the first terminal and the second terminal log in to the same account, that is, the trusted terminal, the second terminal performs step S105. If the first terminal and the second terminal log in to different accounts, the second terminal performs step S107 after receiving the request to turn on the hotspot.
  • the first terminal may be automatically connected to the hotspot of the second terminal, or may be manually connected to the hotspot of the second terminal by the user, that is, the second terminal receives the open After the request of the hot spot, step S107 may also be performed.
  • the second terminal automatically opens the hotspot and sends the hotspot information to the first terminal.
  • the hotspot information includes at least one of a hotspot name, a password, and a Transmission Control Protocol (TCP) port information. Hotspot information can be carried in optional fields in the broadcast message.
  • TCP Transmission Control Protocol
  • the second terminal acquires the second terminal network capability information, so as to determine whether the second terminal provides the hotspot for the first terminal.
  • the second terminal network capability information includes whether the second terminal has the hotspot sharing capability, and whether the second terminal has the capability of accessing the Internet, that is, whether the second terminal starts the mobile data service. If the second terminal has the hotspot sharing capability and the mobile data service is also enabled, the second terminal can automatically enable the hotspot and send the hotspot information to the first terminal, so that the first terminal can be connected to the second terminal according to the hotspot information. Hot spot.
  • the first terminal connects to the hotspot of the second terminal according to the hotspot information.
  • the first terminal automatically connects to the hotspot of the second terminal according to the hotspot information sent by the second terminal. After the connection is successful, the first terminal can use the hotspot of the second terminal to access the Internet, and the process ends.
  • FIG. 2 shows an interface involved in the process of automatically connecting the second terminal to the second terminal.
  • (1) in FIG. 2 shows an interface of a WLAN setting.
  • the first terminal displays an interface as shown in (2) of FIG. 2, wherein there is no hotspot in the interface that the first terminal can connect. Then, the first terminal automatically performs the actions of the first terminal in steps S101 to S106.
  • the first terminal may display an interface as shown in FIG. 2 (3), and the prompt information 203 is displayed in the interface. A hotspot for prompting the first terminal to connect to the second terminal.
  • the first terminal automatically discovers the second terminal that has the WI-FI hotspot sharing capability but has not enabled the WI-FI hotspot through the Bluetooth. Further, the first terminal may automatically request to enable the WI-FI hotspot of the second terminal, and the second terminal may automatically open its own hotspot at the request of the first terminal, so that the first terminal can connect to the WI-FI of the second terminal. Hotspots, the entire operation process can be fully automated based on the authentication of trusted accounts. Users can not perceive this process, thus simplifying user operations and improving user experience.
  • the first terminal in a case where the network quality is poor, can also automatically discover the second terminal that can provide the hotspot, and automatically connect to the hotspot of the second terminal, which is beneficial to improving the network. Quality of service to enhance the user experience.
  • the amount of data transmitted between the first terminal and the second terminal is small, and therefore, the pairing connection may not be performed after the other party is found between the first terminal and the second terminal.
  • the transmission channel of the small data is directly established, and the small data between the first terminal and the second terminal is transmitted by using the low power consumption channel, which is beneficial to reducing the power consumption of the first terminal and improving the data transmission efficiency.
  • the low power consumption channel in the present application is a Bluetooth low energy BLE in the Bluetooth standard protocol.
  • the first terminal acts as a broadcast party and sends a broadcast message to the second terminal.
  • the second terminal receives the broadcast message sent by the first terminal.
  • the second terminal acts as a broadcaster and sends a broadcast message to the second terminal.
  • the first terminal serves as a scanning party and receives a broadcast message sent by the second terminal.
  • the second terminal acquires its own network capability information.
  • the second terminal may obtain the second terminal network capability information, so as to determine whether the second terminal has the capability of sharing the hotspot for the first terminal.
  • the second terminal network capability information includes whether the second terminal has the hotspot sharing capability, and whether the second terminal has the capability of accessing the Internet, that is, whether the second terminal starts the mobile data service.
  • the second terminal sends its own network capability information to the first terminal by using the established low power consumption channel.
  • the second terminal may directly send the network capability information of the second terminal to the first terminal, and the second terminal may also send the information to the first terminal after the network capability information of the second terminal meets certain conditions. For example, if the second terminal has the hotspot sharing capability and the second terminal enables the mobile data service, the second terminal may send the network capability information to the first terminal. If the second terminal does not have the hotspot sharing capability or does not enable the mobile data service, the second terminal may reply to the first terminal that the hotspot cannot be provided for the first terminal, or may not reply to the first terminal. If the second terminal does not reply to the first terminal, the first terminal may, by default, consider that the second terminal cannot provide the hotspot after a certain period of time. The embodiment of the present application is not limited.
  • the network capability information of the second terminal in this application may be carried in an optional field in the broadcast message.
  • the second terminal may automatically obtain its own network capability information and broadcast its own network capability information, so that other electronic devices acquire the network capability information of the second terminal.
  • the first terminal displays the hotspot information of the second terminal.
  • the first terminal may display hotspot information of the second terminal, so that the user may select a hotspot connected to the second terminal.
  • the first terminal can display the hotspot of the second terminal in the WI-FI setting interface.
  • the first terminal may discover nearby hotspots by using WI-FI scanning and Bluetooth scanning.
  • the hotspot scanned by the WI-FI scanning method is a hot spot that the electronic device is actually turned on.
  • the hot spot scanned by the Bluetooth scanning method is an electronic device that may provide a hot spot, but the electronic device does not open the hot spot yet, and can be regarded as a virtual hot spot.
  • the first terminal can display the hotspots scanned by the two scanning modes in a differentiated display manner, so that the user can distinguish the real hotspots from the virtual hotspots. For example, virtual hotspots and actual hotspots are respectively displayed in different areas, or virtual hotspots and actual hotspots are respectively displayed with different background colors/filling/fonts/transparency/size.
  • FIG. 3 shows an interface of the first terminal, where the interface is a WI-FI scanning interface of the first terminal, and includes a hotspot list 301 scanned by the first terminal by using a WI-FI scanning method. Specifically, the "AP 01", the "AP 02", and the "AP 03" are included, and the interface further includes a hotspot list 302 scanned by the first terminal through the Bluetooth scanning mode, including "Huawei Mate”.
  • (2) in FIG. 3 shows an interface of the first terminal, and the prompt information 303 of the interface is used to prompt the first terminal to connect to the hotspot of the second terminal.
  • the following methods may be used to display the scanning modes of the same electronic device hotspot by the two scanning modes:
  • the first case the electronic device has a hotspot turned on. If the first terminal can scan the electronic device through the WI-FI scanning mode, the first terminal is displayed in the WI-FI scanning mode on the WI-FI setting interface, and is displayed as a real hot spot.
  • the second case the electronic device does not turn on the hotspot. Then, the first terminal cannot scan the hotspot of the electronic device through the WI-FI scanning mode, and can only scan through the Bluetooth scanning mode, and the first terminal is in the WI-
  • the FI setting interface is displayed in the display mode of the Bluetooth scanning mode and is shown as a virtual hotspot.
  • the first terminal sends a hotspot connection request to the second terminal that is displayed as the virtual hotspot in response to the user's selection operation.
  • the user's selection operation indicates that the first terminal can request to connect to the hotspot of the second terminal.
  • the operation may be performed by the user of the first terminal in the operation mode of the first terminal in the interface that includes the scanned hotspot information, by selecting the hotspot of the second terminal, or by clicking the icon of the hotspot of the second terminal. Make a limit.
  • the hotspot connection request may be carried in an optional field in the Bluetooth broadcast message.
  • FIG. 4 shows an interface of the first terminal in which a virtual hotspot list 401 is displayed.
  • FIG. 4 shows an interface displayed by the first terminal in response to the user clicking on the identifier of any of the virtual hotspots in the virtual list 401.
  • the interface includes prompt information 402, indicating that the first terminal has connected to the hotspot of the second terminal.
  • the second terminal displays the prompt information.
  • the second terminal may automatically not allow the first terminal to connect to the hotspot of the second terminal, or may generate The prompt information is selected by the user whether to allow the first terminal to connect to the hotspot of the second terminal.
  • the second terminal may display a prompt message by using a notification message in the notification bar, or may display a prompt window in the middle of the current display interface for displaying the prompt information.
  • the display mode is not limited.
  • FIG. 5 shows an example of an interface of the second terminal, the interface including prompt information 501, the content of the prompt information is “**Electronic device requests to connect to your WLAN hotspot, is it allowed?”. If the second terminal detects that the user clicks the "Yes” button 502, it indicates that the user of the second terminal agrees that the first terminal connects to his hotspot, and the second terminal automatically turns on the hotspot in response to the operation. If the second terminal detects that the user clicks the "No" button 503, indicating that the second terminal does not agree that the first terminal is connected to its own hotspot, the second terminal does not turn on the hotspot in response to the operation.
  • the second terminal receives the allowed operation of the user, and sends the hot spot information to the first terminal.
  • the hotspot information includes at least one of a hotspot name, a password, and a TCP port information.
  • the second terminal detects that the user selects to allow the first terminal to connect to the second terminal hotspot, the second terminal sends the hotspot information of the second terminal to the first terminal through the Bluetooth low energy channel or the WI-FI channel. Specifically, it can be carried in an optional field in the Bluetooth broadcast message. Then, after receiving the hotspot information sent by the second terminal, the first terminal may perform step S106.
  • the first terminal may scan the second terminal that can provide the hotspot through the Bluetooth, and display the information of the second terminal hotspot in the interface of the first terminal, so that the user can select Connect to the second terminal hotspot. After the user selects to connect to the second terminal hotspot, the first terminal can automatically connect to the hotspot of the second terminal.
  • the manual connection provided by the embodiment of the present application obtains the hotspot of the second terminal, which is beneficial to simplifying the user. Operation will help improve the quality of network services and enhance the user experience.
  • the first terminal and the second terminal include hardware structures and/or software modules corresponding to each function.
  • the embodiments of the present invention can be implemented in a combination of hardware or hardware and computer software in combination with the elements and algorithm steps of the various examples described in the embodiments disclosed herein. Whether a function is implemented in hardware or computer software to drive hardware depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods to implement the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the embodiments of the invention.
  • the embodiment of the present application may perform the division of the function modules on the first terminal and the second terminal according to the foregoing method example.
  • each function module may be divided according to each function, or two or more functions may be integrated into one process.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of the module in the embodiment of the present invention is schematic, and is only a logical function division, and the actual implementation may have another division manner.
  • the terminals involved in the device embodiments of the present application are all devices for implementing the foregoing method embodiments.
  • FIG. 8 shows a possible structural diagram of the first terminal involved in the foregoing embodiment in the case where the respective functional modules are divided by corresponding functions.
  • the first terminal 800 includes a transmitting unit 801, a receiving unit 802, and a processing unit 803.
  • the transmitting unit 801 is configured to support the first terminal to perform S101 and S103 in (1) of FIG. 7, S110 in (2) in FIG. 7, and/or other processes for the techniques described herein.
  • the receiving unit 802 is configured to support the first terminal to receive a response message, hotspot information, and the like sent by the second terminal to the first terminal, and/or other processes for the techniques described herein.
  • the processing unit 803 is configured to support the first terminal to perform S106 of (1) in FIG. 7, S109 of (2) in FIG. 7, and/or other processes for the techniques described herein.
  • the first terminal 800 further includes a display unit 804 for displaying any of the interfaces shown in FIG. 2, FIG. 3, FIG. 4, and FIG. 6, as well as other interfaces.
  • the first terminal 800 may further include a storage unit for storing program codes, data, and the like.
  • the first terminal 800 may further include a communication unit configured to interact with the second terminal by the first terminal.
  • the functions that can be implemented by the foregoing functional units include, but are not limited to, the functions corresponding to the method steps described in the foregoing examples.
  • the processing unit described above may be a processing module of the first terminal.
  • the above display unit may be a display module of the first terminal, such as a touch screen.
  • the communication unit described above may be a communication module of the first terminal, such as an RF circuit, a Wi-Fi module, or a Bluetooth module.
  • the above storage unit may be a storage module of the first terminal.
  • FIG. 9 shows a possible structural diagram of the second terminal involved in the foregoing embodiment in the case where the respective functional modules are divided by corresponding functions.
  • the second terminal 900 includes a sending unit 901, a receiving unit 902, and a processing unit 903.
  • the transmitting unit 901 is configured to support the second terminal to execute S102 and S105 of (1) in FIG. 7, S108 and S112 of (2) in FIG. 7, and/or other processes for the techniques described herein.
  • the receiving unit 902 is configured to support the second terminal to receive a request message or the like sent by the first terminal, and/or other processes for the techniques described herein.
  • the processing unit 803 is configured to support the second terminal to execute S104 in (1) of FIG. 7 for supporting the second terminal to execute S104 of (1) in FIG. 7, S107, S111 of (2) in FIG. 7 and/or for Other processes of the techniques described herein.
  • the second terminal 900 further includes a display unit for displaying the interface shown in FIG. 5 and other interfaces.
  • the second terminal 900 may further include a storage unit for storing program codes, data, and the like.
  • the second terminal 900 may further include a communication unit for the second terminal to interact with the first terminal.
  • the processing unit described above may be a processing module of the second terminal.
  • the above display unit may be a display module of the second terminal, such as a touch screen.
  • the communication unit described above may be a communication module of the second terminal, such as an RF circuit, a Wi-Fi module, or a Bluetooth module.
  • the above storage unit may be a storage module of the second terminal.
  • FIG. 10 is a schematic diagram showing a possible structure of the first terminal involved in the above embodiment.
  • the first terminal 1000 includes a processing module 1001, a storage module 1002, and a communication module 1003.
  • the processing module 1001 is configured to control and manage the action of the first terminal.
  • the storage module 1002 is configured to save program codes and data of the first terminal.
  • the communication module 1003 is for communicating with other terminals.
  • the processing module 1001 may be a processor or a controller, such as a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), and an application-specific integrated circuit (Application-Specific). Integrated Circuit (ASIC), Field Programmable Gate Array (FPGA) or other programmable logic device, transistor logic device, hardware component, or any combination thereof.
  • CPU central processing unit
  • DSP digital signal processor
  • ASIC Application-Specific
  • ASIC Application-Specific
  • FPGA Field Programmable Gate Array
  • the processor may also be a combination of computing functions, for example, including one or more microprocessor combinations, a combination of a DSP and a microprocessor, and the like.
  • the communication module 1003 may be a transceiver, a transceiver circuit, a communication interface, or the like.
  • the storage module 1002 can be a memory.
  • the processing module 1001 is a processor (such as the processor 101 shown in FIG. 1)
  • the communication module 1003 is an RF transceiver circuit (such as the RF circuit 102 shown in FIG. 1)
  • the storage module 1002 is a memory (as shown in FIG. 1).
  • the terminal provided by the embodiment of the present application may be the terminal 100 shown in FIG. 1.
  • the communication module 1003 may include not only an RF circuit but also a Wi-Fi module and a Bluetooth module. Communication modules such as RF circuits, Wi-Fi modules, and Bluetooth modules can be collectively referred to as communication interfaces. Wherein, the above processor, communication interface and memory can be coupled together by a bus.
  • FIG. 11 is a schematic diagram showing a possible structure of the second terminal involved in the above embodiment.
  • the second terminal 1100 includes a processing module 1101, a storage module 1102, and a communication module 1103.
  • the processing module 1101 is configured to perform control management on the action of the second terminal.
  • the storage module 1102 is configured to save program codes and data of the second terminal.
  • the communication module 1103 is for communicating with other terminals.
  • the processing module 1101 may be a processor or a controller, and may be, for example, a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), and an application-specific integrated circuit (Application-Specific).
  • CPU central processing unit
  • DSP digital signal processor
  • Application-Specific Application-Specific
  • the processor may also be a combination of computing functions, for example, including one or more microprocessor combinations, a combination of a DSP and a microprocessor, and the like.
  • the communication module 1103 can be a transceiver, a transceiver circuit, a communication interface, or the like.
  • the storage module 1102 can be a memory.
  • the disclosed system, apparatus, and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the modules or units is only a logical function division.
  • there may be another division manner for example, multiple units or components may be used. Combinations can be integrated 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 in an electrical, mechanical or other form.
  • 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 application 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.
  • 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.
  • a computer readable storage medium A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to perform all or part of the steps of the methods described in various embodiments of the present application.
  • the foregoing storage medium includes: a flash memory, a mobile hard disk, a read only memory, a random access memory, a magnetic disk, or an optical disk, and the like, which can store program codes.

Landscapes

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

Abstract

The present application provides a method and a device for network connection and a terminal, relating to the technical field of communications. The present application enables, by means of Bluetooth scanning, a first terminal to obtain a second terminal that is capable of providing a hotspot, but does not yet have the hotspot enabled. The first terminal requests that the second terminal enable the hotspot and connects to the hotspot of the second terminal, thereby improving the user experience. The method specifically comprises: a first terminal discovering a second terminal by means of Bluetooth scanning, wherein the second terminal has not yet established a Bluetooth or a hotspot connection with the first terminal; and if it is determined that the first terminal and the second terminal are logged into the same account, the first terminal sending a first request to the second terminal to request that the second terminal enable a hotspot, and the first terminal connecting to the hotspot of the second terminal according to received hotspot information of the second terminal.

Description

一种网络连接的方法、装置及终端Method, device and terminal for network connection 技术领域Technical field
本申请涉及通信技术领域,尤其涉及一种网络连接的方法、装置及终端。The present application relates to the field of communications technologies, and in particular, to a method, an apparatus, and a terminal for network connection.
背景技术Background technique
目前,用户使用移动设备上网时,通常是用户打开移动设备的无线保真(Wireless-Fidelity,WI-FI)设置界面,开启WI-FI功能后,移动设备会开始搜索周围的WI-FI热点情况。经常会遇到周围没有可用于连接的WI-FI热点,或者虽然可以连接,但不能上网的WI-FI热点。这时,用户需要找到另一台具有便携式WI-FI热点分享功能的设备,手动开启该设备的WI-FI热点,并继续相关配置,例如热点名称、热点密码等。然后,用户再换回之前使用的那台移动设备,再搜索WI-FI热点,才能连接到新打开的WI-FI热点。可见,在这场场景下,连接WI-FI热点的操作十分繁琐。Currently, when a user uses a mobile device to access the Internet, the user usually opens a Wireless-Fidelity (WI-FI) setting interface of the mobile device. After the WI-FI function is enabled, the mobile device starts searching for surrounding WI-FI hotspots. . There are often WI-FI hotspots around which there are no WI-FI hotspots available for connection, or WI-FI hotspots that can be connected but not connected to the Internet. At this time, the user needs to find another device with portable WI-FI hotspot sharing function, manually turn on the WI-FI hotspot of the device, and continue related configuration, such as hotspot name, hotspot password, and the like. Then, the user can switch back to the previously used mobile device and search for the WI-FI hotspot to connect to the newly opened WI-FI hotspot. It can be seen that in this scenario, the operation of connecting WI-FI hotspots is very cumbersome.
发明内容Summary of the invention
本申请提供的一种网络连接的方法、装置和终端,可以使得第一终端可以通过蓝牙扫描到能够提供热点,但未开启热点的第二终端,请求第二终端开启热点,并连接到第二终端的热点,提升了用户体验。The method, device, and terminal for the network connection provided by the present application may enable the first terminal to scan to a second terminal that can provide a hotspot but does not enable the hotspot through the Bluetooth, request the second terminal to open the hotspot, and connect to the second terminal. The hotspot of the terminal enhances the user experience.
第一方面,本申请提供的一种网络连接方法,可应用于第一无线终端,第一无线终端通过蓝牙扫描发现第二终端,其中第二终端为未与第一无线终端建立蓝牙和热点连接的终端;响应于确定第一无线终端和第二终端登录同一账户,第一无线终端自动向第二终端发送第一请求,第一请求用于通知第二终端开启热点;第一无线终端接收第二终端的热点信息;第一无线终端根据接收到的第二终端的热点信息连接第二终端的热点。In a first aspect, a network connection method provided by the present application is applicable to a first wireless terminal, where the first wireless terminal discovers a second terminal by using a Bluetooth scan, where the second terminal does not establish a Bluetooth and hotspot connection with the first wireless terminal. Receiving, in response to determining that the first wireless terminal and the second terminal log in to the same account, the first wireless terminal automatically sends a first request to the second terminal, where the first request is used to notify the second terminal to enable the hotspot; the first wireless terminal receives the first The hotspot information of the second terminal is connected to the hotspot of the second terminal according to the received hotspot information of the second terminal.
其中,第一请求可以为专用的请求消息,用于请求第二终端开启热点,或者请求连接第二终端的热点等,第一请求也可以是携带在第一终端向第二终端发送的其他消息中,例如:创建低功耗通信的请求中,本申请实施例对此不做限定。The first request may be a dedicated request message, which is used to request the second terminal to enable the hotspot, or to request the hotspot of the second terminal, and the first request may also be another message that is sent by the first terminal to the second terminal. For example, in the request for creating a low-power communication, the embodiment of the present application does not limit this.
其中,第二终端的热点信息包括第二终端的热点名称、第二终端的热点密码和传输控制协议TCP端口信息中的至少一项。The hotspot information of the second terminal includes at least one of a hotspot name of the second terminal, a hotspot password of the second terminal, and a transmission control protocol TCP port information.
由此,本申请实施例提供的网络连接的方法,第一终端自动通过蓝牙去发现具有WI-FI热点共享能力,却没有开启WI-FI热点的第二终端。进一步,自动开启这些第二终端的WI-FI热点,使得第一终端可以连接到这些第二终端的WI-FI热点,简化用户的操作,提升用户体验。Therefore, in the method for network connection provided by the embodiment of the present application, the first terminal automatically discovers the second terminal that has the WI-FI hotspot sharing capability but does not open the WI-FI hotspot through the Bluetooth. Further, the WI-FI hotspots of the second terminals are automatically enabled, so that the first terminal can connect to the WI-FI hotspots of the second terminals, simplifying user operations and improving the user experience.
此外,在第一终端已经有网络连接的情况下,在网络质量较差的情况,第一终端也可以自动发现能够提供热点的第二终端,自动连接到第二终端的热点,有利于提升网络服务质量,提升用户体验。In addition, in the case that the first terminal already has a network connection, in a case where the network quality is poor, the first terminal can also automatically discover the second terminal that can provide the hotspot, and automatically connect to the hotspot of the second terminal, which is beneficial to improving the network. Quality of service to enhance the user experience.
在一种可能的设计中,响应于确定第一无线终端和第二终端登录不同账户,第一无线终端自动向第二终端发送第二请求,第二请求用于通知第二终端上报第二终端的网络能力信息,网络能力信息包括第二终端是否具有热点共享能力和/或第二终端是否 开启了移动数据业务;第一无线终端接收第二终端发送的第二终端的网络能力信息;响应于确定第二终端具有热点共享能力,且开启了移动数据业务,第一无线终端将第二终端标识显示为热点。In a possible design, in response to determining that the first wireless terminal and the second terminal log in to different accounts, the first wireless terminal automatically sends a second request to the second terminal, and the second request is used to notify the second terminal to report the second terminal. Network capability information, the network capability information includes whether the second terminal has hotspot sharing capability and/or whether the second terminal has enabled the mobile data service; the first wireless terminal receives the network capability information of the second terminal sent by the second terminal; It is determined that the second terminal has the hotspot sharing capability, and the mobile data service is enabled, and the first wireless terminal displays the second terminal identifier as a hot spot.
其中,第二请求可以是专用的请求消息,用于请求第二终端上传网络能力信息,第二请求也可以是携带在第一终端向第二终端发送的其他消息中,本申请实施例对此不做限定。The second request may be a dedicated request message, which is used to request the second terminal to upload the network capability information, and the second request may also be carried in other messages sent by the first terminal to the second terminal. Not limited.
需要说明的是,第二终端也可以是在开启了蓝牙功能后,自动广播自身的网络能力信息,本申请实施例不做限定。It should be noted that the second terminal may also automatically broadcast its own network capability information after the Bluetooth function is enabled, which is not limited in this embodiment.
在一种可能的设计中,在第一无线终端接收第二终端发送的第二终端的网络能力信息之后,第一无线终端接收用户选择连接第二终端的热点的操作;第一无线终端向第二终端发送第三请求,第三请求用于通知所述第二终端开启热点;第一无线终端根据接收到的第二终端热点信息连接第二终端的热点。In a possible design, after the first wireless terminal receives the network capability information of the second terminal sent by the second terminal, the first wireless terminal receives an operation of the user selecting to connect to the hotspot of the second terminal; The second terminal sends a third request, where the third request is used to notify the second terminal to enable the hotspot; the first wireless terminal connects to the hotspot of the second terminal according to the received second terminal hotspot information.
其中,第三请求可以是专用的请求消息,用于请求第二终端开启热点,第三请求也可以是携带在第一终端向第二终端发送的其他消息中,本申请实施例对此不做限定。The third request may be a dedicated request message, which is used to request the second terminal to enable the hotspot, and the third request may also be carried in other messages sent by the first terminal to the second terminal. limited.
由此,本申请实施例提供的网络连接方法,第一无线终端可以通过蓝牙扫描到能够提供热点的第二终端,并在第一终端的界面中显示第二终端热点的信息,以便于用户可以选择连接第二终端热点。在用户选择连接第二终端热点后,第一终端可以自动连接第二终端的热点,相比于原来复杂的操作,本申请实施例提供的手动连接得到第二终端的热点,有利于简化用户的操作,有利于提升网络服务质量,提升用户体验。Therefore, in the network connection method provided by the embodiment of the present application, the first wireless terminal can scan the second terminal that can provide the hotspot through the Bluetooth, and display the information of the second terminal hotspot in the interface of the first terminal, so that the user can Select to connect to the second terminal hotspot. After the user selects to connect to the second terminal hotspot, the first terminal can automatically connect to the hotspot of the second terminal. Compared with the original complicated operation, the manual connection provided by the embodiment of the present application obtains the hotspot of the second terminal, which is beneficial to simplifying the user. Operation will help improve the quality of network services and enhance the user experience.
在一种可能的设计中,在第一无线终端通过蓝牙扫描发现第二终端之前,第一无线终端接收用户开启第一无线终端的网络连接功能的操作。In one possible design, before the first wireless terminal discovers the second terminal through Bluetooth scanning, the first wireless terminal receives an operation of the user to turn on the network connection function of the first wireless terminal.
在一种可能的设计中,在第一无线终端接收用户开启第一无线终端的网络连接功能的操作之后,第一无线终端未扫描到可用的无线局域网信号。In one possible design, after the first wireless terminal receives an operation by the user to turn on the network connection function of the first wireless terminal, the first wireless terminal does not scan for available wireless local area network signals.
在一种可能的设计中,在第一无线终端通过蓝牙扫描发现第二终端之前,第一无线终端确定第一无线终端的网络质量满足预设条件,预设条件包括网络传输速率低于阈值。In a possible design, before the first wireless terminal discovers the second terminal by using the Bluetooth scan, the first wireless terminal determines that the network quality of the first wireless terminal meets a preset condition, and the preset condition includes that the network transmission rate is lower than a threshold.
第二方面,本申请提供的一种网络连接方法,可应用于第二终端,该方法包括:第二终端接收到第一无线终端发送的第一请求,第一请求用于通知第二终端开启热点,其中第二终端为未与第一无线终端建立蓝牙和热点连接的终端;响应于确定第一无线终端和第二终端登录同一账户,第二终端开启热点;第二终端将第二终端的热点信息通过蓝牙通道发送给第一无线终端。In a second aspect, a network connection method provided by the present application is applicable to a second terminal, where the method includes: receiving, by the second terminal, a first request sent by the first wireless terminal, where the first request is used to notify the second terminal to start a hotspot, wherein the second terminal is a terminal that does not establish a Bluetooth and hotspot connection with the first wireless terminal; in response to determining that the first wireless terminal and the second terminal log in to the same account, the second terminal turns on the hotspot; the second terminal connects the second terminal The hotspot information is sent to the first wireless terminal through the Bluetooth channel.
在一种可能的设计中,第二终端接收第一无线终端发送的第二请求,第二请求用于通知第二终端上报第二终端的网络能力信息,网络能力信息包括第二终端是否具有热点共享能力和/或第二终端是否开启了移动数据业务;响应于确定第一无线终端和第二终端登录不同账户,以及确定第二终In a possible design, the second terminal receives the second request sent by the first wireless terminal, and the second request is used to notify the second terminal to report the network capability information of the second terminal, where the network capability information includes whether the second terminal has a hot spot. Sharing capability and/or whether the second terminal has enabled the mobile data service; in response to determining that the first wireless terminal and the second terminal log in to different accounts, and determining the second end
端具有热点共享能力,且开启了移动数据业务,第二终端将第二终端的网络能力信息通过蓝牙通道发送给第一无线终端。The terminal has the hotspot sharing capability and the mobile data service is enabled, and the second terminal sends the network capability information of the second terminal to the first wireless terminal through the Bluetooth channel.
在一种可能的设计中,第二终端接收第一无线终端发送的第三请求,第三请求用于通知第二终端开启热点;第二终端生成提示信息,提示信息用于提示用户第一无线 终端请求连接第二终端的热点。In a possible design, the second terminal receives the third request sent by the first wireless terminal, and the third request is used to notify the second terminal to open the hotspot; the second terminal generates the prompt information, where the prompt information is used to prompt the user to use the first wireless The terminal requests to connect to the hotspot of the second terminal.
在一种可能的设计中,第二终端接收用户的允许第一无线终端连接第二终端的热点的操作;第二终端开启热点,并将第二终端的热点信息通过蓝牙通道发送给第一无线终端。In a possible design, the second terminal receives an operation of the user that allows the first wireless terminal to connect to the hotspot of the second terminal; the second terminal turns on the hotspot, and sends the hotspot information of the second terminal to the first wireless through the Bluetooth channel. terminal.
在一种可能的设计中,第二终端的热点信息包括第二终端的热点名称、第二终端的热点密码和传输控制协议TCP端口信息中的至少一项。In a possible design, the hotspot information of the second terminal includes at least one of a hotspot name of the second terminal, a hotspot password of the second terminal, and a transmission control protocol TCP port information.
第三方面、第一无线终端,包括:发送单元,用于通过蓝牙扫描发现第二终端,其中第二终端为未与第一无线终端建立蓝牙和热点连接的终端;发送单元,还用于响应于确定第一无线终端和第二终端登录同一账户,自动向第二终端发送第一请求,第一请求用于通知第二终端开启热点;接收单元,用于接收第二终端的热点信息;处理单元,用于根据接收到的第二终端的热点信息连接第二终端的热点。The third aspect, the first wireless terminal, includes: a sending unit, configured to discover the second terminal by using a Bluetooth scan, where the second terminal is a terminal that does not establish a Bluetooth and hotspot connection with the first wireless terminal; and the sending unit is further configured to respond Determining that the first wireless terminal and the second terminal are logged in to the same account, and automatically sending a first request to the second terminal, where the first request is used to notify the second terminal to enable the hotspot; the receiving unit is configured to receive the hotspot information of the second terminal; And a unit, configured to connect the hotspot of the second terminal according to the received hotspot information of the second terminal.
一种可能的设计中,第一无线终端还包括显示单元,发送单元,还用于响应于确定第一无线终端和第二终端登录不同账户,自动向第二终端发送第二请求,第二请求用于通知第二终端上报第二终端的网络能力信息,网络能力信息包括第二终端是否具有热点共享能力和/或第二终端是否开启了移动数据业务;接收单元,还用于接收第二终端发送的第二终端的网络能力信息;显示单元,用于响应于确定第二终端具有热点共享能力,且开启了移动数据业务,将第二终端标识显示为热点。In a possible design, the first wireless terminal further includes a display unit, and the sending unit is further configured to automatically send the second request to the second terminal, in response to determining that the first wireless terminal and the second terminal log in to different accounts, the second request And the network capability information is used to notify the second terminal to report the network capability information of the second terminal, where the network capability information includes whether the second terminal has the hotspot sharing capability and/or whether the second terminal has enabled the mobile data service, and the receiving unit is further configured to receive the second terminal. The network capability information of the second terminal that is sent; the display unit is configured to display the second terminal identifier as a hotspot in response to determining that the second terminal has the hotspot sharing capability and the mobile data service is enabled.
一种可能的设计中,接收单元,还用于接收用户选择连接第二终端的热点的操作;发送单元,还用于向第二终端发送第三请求,第三请求用于通知第二终端开启热点;处理单元,还用于根据接收到的第二终端热点信息连接第二终端的热点。In a possible design, the receiving unit is further configured to receive an operation of the user selecting to connect to the hotspot of the second terminal; the sending unit is further configured to send a third request to the second terminal, where the third request is used to notify the second terminal to open The hotspot; the processing unit is further configured to connect the hotspot of the second terminal according to the received second terminal hotspot information.
一种可能的设计中,接收单元,还用于接收用户开启第一无线终端的网络连接功能的操作。In a possible design, the receiving unit is further configured to receive an operation of the user to enable the network connection function of the first wireless terminal.
一种可能的设计中,接收单元,还用于接收用户开启第一无线终端的网络连接功能的操作之后,第一无线终端未扫描到可用的无线局域网信号。In a possible design, the receiving unit is further configured to: after receiving the operation of the user to turn on the network connection function of the first wireless terminal, the first wireless terminal does not scan for an available wireless local area network signal.
一种可能的设计中,确定单元,还用于确定第一无线终端的网络质量满足预设条件,预设条件包括网络传输速率低于阈值。In a possible design, the determining unit is further configured to determine that the network quality of the first wireless terminal meets a preset condition, where the preset condition includes that the network transmission rate is lower than a threshold.
一种可能的设计中,第二终端的热点信息包括第二终端的热点名称、第二终端的热点密码和传输控制协议TCP端口信息中的至少一项。In a possible design, the hotspot information of the second terminal includes at least one of a hotspot name of the second terminal, a hotspot password of the second terminal, and a transmission control protocol TCP port information.
第四方面、第二终端,包括:接收单元,用于接收到第一无线终端发送的第一请求,第一请求用于通知第二终端开启热点,其中第二终端为未与第一终端建立蓝牙和热点连接的终端;处理单元,用于响应于确定第一无线终端和第二终端登录同一账户,开启热点;发送单元,用于将第二终端的热点信息通过蓝牙通道发送给第一无线终端。The fourth terminal, the second terminal, includes: a receiving unit, configured to receive a first request sent by the first wireless terminal, where the first request is used to notify the second terminal to enable the hotspot, where the second terminal is not established with the first terminal a Bluetooth and a hotspot connected terminal; a processing unit, configured to: in response to determining that the first wireless terminal and the second terminal log in to the same account, to enable the hotspot; the sending unit, configured to send the hotspot information of the second terminal to the first wireless through the Bluetooth channel terminal.
一种可能的设计中,接收单元,还用于接收第一无线终端发送的第二请求,第二请求用于通知第二终端上报第二终端的网络能力信息,网络能力信息包括第二终端是否具有热点共享能力和/或第二终端是否开启了移动数据业务;发送单元,还用于响应于确定第一无线终端和第二终端登录不同账户,以及确定第二终端具有热点共享能力,且开启了移动数据业务,将第二终端的网络能力信息通过蓝牙通道发送给第一无线终端。In a possible design, the receiving unit is further configured to receive a second request sent by the first wireless terminal, where the second request is used to notify the second terminal to report network capability information of the second terminal, where the network capability information includes whether the second terminal is Having a hotspot sharing capability and/or whether the second terminal has enabled the mobile data service; the sending unit is further configured to: in response to determining that the first wireless terminal and the second terminal log in to different accounts, and determine that the second terminal has hotspot sharing capability, and is enabled The mobile data service transmits the network capability information of the second terminal to the first wireless terminal through the Bluetooth channel.
一种可能的设计中,第二终端还包括处理单元,接收单元,还用于接收第一无线 终端发送的第三请求,第三请求用于通知第二终端开启热点;处理单元,用于生成提示信息,提示信息用于提示用户第一无线终端请求连接第二终端的热点。In a possible design, the second terminal further includes a processing unit, and the receiving unit is further configured to receive a third request sent by the first wireless terminal, where the third request is used to notify the second terminal to enable the hotspot; and the processing unit is configured to generate The prompt information is used to prompt the user that the first wireless terminal requests to connect to the hotspot of the second terminal.
一种可能的设计中,接收单元,用于接收用户的允许第一无线终端连接第二终端的热点的操作;处理单元,还用于开启热点,并将第二终端的热点信息通过蓝牙通道发送给第一无线终端。In a possible design, the receiving unit is configured to receive an operation of the user that allows the first wireless terminal to connect to the hotspot of the second terminal; the processing unit is further configured to enable the hotspot and send the hotspot information of the second terminal through the Bluetooth channel. To the first wireless terminal.
一种可能的设计中,第二终端的热点信息包括第二终端的热点名称、第二终端的热点密码和传输控制协议TCP端口信息中的至少一项。In a possible design, the hotspot information of the second terminal includes at least one of a hotspot name of the second terminal, a hotspot password of the second terminal, and a transmission control protocol TCP port information.
第五方面、一种第一无线终端,包括:处理器、存储器和触摸屏,存储器、触摸屏与处理器耦合,存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当处理器执行计算机指令时,终端执行如第一方面任一可能的实现方式中的方法。A fifth aspect, a first wireless terminal, comprising: a processor, a memory and a touch screen, the memory, the touch screen being coupled to the processor, the memory for storing computer program code, the computer program code comprising computer instructions, when the processor executes the computer instruction The terminal performs the method of any of the possible implementations of the first aspect.
第六方面、一种第二终端,包括:处理器、存储器和触摸屏,存储器、触摸屏与处理器耦合,存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当处理器执行计算机指令时,终端执行如第二方面任一可能的实现方式中的方法。A sixth aspect, a second terminal, comprising: a processor, a memory and a touch screen, the memory, the touch screen being coupled to the processor, the memory for storing the computer program code, the computer program code comprising computer instructions, when the processor executes the computer instruction, The terminal performs the method of any of the possible implementations of the second aspect.
第七方面、一种计算机存储介质,包括计算机指令,当计算机指令在终端上运行时,使得终端执行如第一方面任一可能的实现方式中的方法。A seventh aspect, a computer storage medium comprising computer instructions that, when executed on a terminal, cause the terminal to perform the method of any of the possible implementations of the first aspect.
第八方面、一种计算机存储介质,包括计算机指令,当计算机指令在终端上运行时,使得终端执行如第二方面任一可能的实现方式中的方法。In an eighth aspect, a computer storage medium, comprising computer instructions, when the computer instructions are run on a terminal, causing the terminal to perform the method of any of the possible implementations of the second aspect.
第九方面、一种计算机程序产品,当计算机程序产品在计算机上运行时,使得计算机执行如第一方面任一可能的实现方式中的方法。A ninth aspect, a computer program product, when a computer program product is run on a computer, causing the computer to perform the method of any of the possible implementations of the first aspect.
第十方面、一种计算机程序产品,当计算机程序产品在计算机上运行时,使得计算机执行如第二方面任一可能的实现方式中的方法。A tenth aspect, a computer program product, when a computer program product is run on a computer, causing the computer to perform the method of any of the possible implementations of the second aspect.
附图说明DRAWINGS
图1为本申请提供的一种第一终端的结构示意图一;1 is a schematic structural diagram 1 of a first terminal provided by the present application;
图2为本申请提供的一种网络连接方法的示意图一;2 is a schematic diagram 1 of a network connection method provided by the present application;
图3为本申请提供的一种网络连接方法的示意图二;3 is a schematic diagram 2 of a network connection method provided by the present application;
图4为本申请提供的一种网络连接方法的示意图三;4 is a schematic diagram 3 of a network connection method provided by the present application;
图5为本申请提供的一种第二终端的界面示意图;FIG. 5 is a schematic diagram of an interface of a second terminal provided by the present application;
图6为本申请提供的一种第一终端的界面示意图;FIG. 6 is a schematic diagram of an interface of a first terminal provided by the present application;
图7为本申请提供一种网络连接的方法的流程示意图;FIG. 7 is a schematic flowchart diagram of a method for providing network connection according to the present application;
图8为本申请提供的一种第一终端的结构示意图二;FIG. 8 is a schematic structural diagram 2 of a first terminal provided by the present application; FIG.
图9为本申请提供的一种第二终端的结构示意图一;FIG. 9 is a schematic structural diagram 1 of a second terminal provided by the present application; FIG.
图10为本申请提供的一种第一终端结构示意图三;10 is a schematic diagram 3 of a first terminal structure provided by the present application;
图11为本申请提供的一种第二终端结构示意图二;FIG. 11 is a second schematic structural diagram of a second terminal provided by the present application; FIG.
图12为本申请提供的一种广播消息的帧格式的示意图。FIG. 12 is a schematic diagram of a frame format of a broadcast message provided by the present application.
具体实施方式Detailed ways
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本申请的描述中,除非另有说明,“多个”的含义是两个或两个以上。In the following, the terms "first" and "second" are used for descriptive purposes only, and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, features defining "first" and "second" may include one or more of the features either explicitly or implicitly. In the description of the present application, "a plurality" means two or more unless otherwise stated.
目前,用户在使用第一终端上网时,若第一终端无网络连接,或者第一终端虽有网络连接,但连接的网络不能提供上网服务,或者虽有网络连接,但网络质量较差,则需要用户去手动开启第二终端的WI-FI热点分享功能,并进行相关设置。然后,用户再打开第一终端的WI-FI设置界面,通过WI-FI去扫描周围的热点,再手动去选择相应的热点,去连接网络或者切换当前的网络连接,操作都较为复杂。At present, when the user accesses the Internet using the first terminal, if the first terminal has no network connection, or the first terminal has a network connection, but the connected network cannot provide Internet access, or although there is a network connection, but the network quality is poor, then The user needs to manually enable the WI-FI hotspot sharing function of the second terminal and perform related settings. Then, the user opens the WI-FI setting interface of the first terminal, scans the surrounding hotspots through WI-FI, and then manually selects the corresponding hotspots to connect to the network or switch the current network connection, and the operation is complicated.
为此,本申请实施例提供一种网络连接的方法,第一终端可以自动识别当前的网络状态以及网络质量,自动通过蓝牙发现具有WI-FI热点共享能力的第二终端。然后第一终端可以打开第二终端的WI-FI热点,并自动连接到第二终端的WI-FI热点,可以简化用户的操作,提升用户体验。To this end, the embodiment of the present application provides a method for network connection, where the first terminal can automatically identify the current network state and network quality, and automatically discover the second terminal with the WI-FI hotspot sharing capability through Bluetooth. Then, the first terminal can open the WI-FI hotspot of the second terminal and automatically connect to the WI-FI hotspot of the second terminal, which can simplify the operation of the user and improve the user experience.
示例性的,本申请中的第一终端可以为手机(如图1所示的手机100)、平板电脑、个人计算机(Personal Computer,PC)、个人数字助理(personal digital assistant,PDA)、智能手表、上网本、可穿戴电子设备、增强现实技术(Augmented Reality,AR)设备、虚拟现实(Virtual Reality,VR)设备等,本申请对该第一终端的具体形式不做特殊限制。Exemplarily, the first terminal in the application may be a mobile phone (such as the mobile phone 100 shown in FIG. 1), a tablet computer, a personal computer (PC), a personal digital assistant (PDA), a smart watch. The present invention does not specifically limit the specific form of the first terminal, such as a netbook, a wearable electronic device, an Augmented Reality (AR) device, or a virtual reality (VR) device.
如图1所示,以手机100作为上述第一终端举例,手机100具体可以包括:处理器101、射频(Radio Frequency,RF)电路102、存储器103、触摸屏104、蓝牙装置105、一个或多个传感器106、无线保真(Wireless Fidelity,WI-FI)装置107、定位装置108、音频电路109、外设接口110以及电源装置111等部件。这些部件可通过一根或多根通信总线或信号线(图1中未示出)进行通信。本领域技术人员可以理解,图1中示出的硬件结构并不构成对手机的限定,手机100可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。As shown in FIG. 1 , the mobile phone 100 is used as the first terminal. The mobile phone 100 may include: a processor 101, a radio frequency (RF) circuit 102, a memory 103, a touch screen 104, a Bluetooth device 105, and one or more. The sensor 106, the Wireless Fidelity (WI-FI) device 107, the positioning device 108, the audio circuit 109, the peripheral interface 110, and the power supply device 111 and the like. These components can communicate over one or more communication buses or signal lines (not shown in Figure 1). It will be understood by those skilled in the art that the hardware structure shown in FIG. 1 does not constitute a limitation to a mobile phone, and the mobile phone 100 may include more or less components than those illustrated, or some components may be combined, or different component arrangements.
下面结合图1对手机100的各个部件进行具体的介绍:The various components of the mobile phone 100 will be specifically described below with reference to FIG. 1 :
处理器101是手机100的控制中心,利用各种接口和线路连接手机100的各个部分,通过运行或执行存储在存储器103内的应用程序,以及调用存储在存储器103内的数据,执行手机100的各种功能和处理数据。在一些实施例中,处理器101可包括一个或多个处理单元;举例来说,处理器101可以是华为技术有限公司制造的麒麟960芯片。在本申请一些实施例中,上述处理器101还可以包括指纹验证芯片,用于对采集到的指纹进行验证。The processor 101 is a control center of the mobile phone 100, and connects various parts of the mobile phone 100 by using various interfaces and lines, and executes the mobile phone 100 by running or executing an application stored in the memory 103 and calling data stored in the memory 103. Various functions and processing data. In some embodiments, the processor 101 may include one or more processing units; for example, the processor 101 may be a Kirin 960 chip manufactured by Huawei Technologies Co., Ltd. In some embodiments of the present application, the processor 101 may further include a fingerprint verification chip for verifying the collected fingerprint.
射频电路102可用于在收发信息或通话过程中,无线信号的接收和发送。特别地,射频电路102可以将基站的下行数据接收后,给处理器101处理;另外,将涉及上行的数据发送给基站。通常,射频电路包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频电路102还可以通过无线通信和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统、通用分组无线服务、码分多址、宽带码分多址、长期演进、电子邮件、短消息服务等。The radio frequency circuit 102 can be used to receive and transmit wireless signals during transmission or reception of information or calls. In particular, the radio frequency circuit 102 can process the downlink data of the base station and then process it to the processor 101; in addition, transmit the data related to the uplink to the base station. Generally, radio frequency circuits include, but are not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency circuit 102 can also communicate with other devices through wireless communication. The wireless communication can use any communication standard or protocol, including but not limited to global mobile communication systems, general packet radio services, code division multiple access, wideband code division multiple access, long term evolution, email, short message service, and the like.
存储器103用于存储应用程序以及数据,处理器101通过运行存储在存储器103的应用程序以及数据,执行手机100的各种功能以及数据处理。存储器103主要包括存储程序区以及存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等);存储数据区可以存储根据使用 手机100时所创建的数据(比如音频数据、电话本等)。此外,存储器103可以包括高速随机存取存储器(Random Access Memory,RAM),还可以包括非易失存储器,例如磁盘存储器件、闪存器件或其他易失性固态存储器件等。存储器103可以存储各种操作系统,例如,苹果公司所开发的
Figure PCTCN2018073509-appb-000001
操作系统,谷歌公司所开发的
Figure PCTCN2018073509-appb-000002
操作系统等。上述存储器103可以是独立的,通过上述通信总线与处理器101相连接;存储器103也可以和处理器101集成在一起。
The memory 103 is used to store applications and data, and the processor 101 executes various functions and data processing of the mobile phone 100 by running applications and data stored in the memory 103. The memory 103 mainly includes a storage program area and a storage data area, wherein the storage program area can store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.); the storage data area can be stored according to the use of the mobile phone. Data created at 100 o'clock (such as audio data, phone book, etc.). Further, the memory 103 may include a high speed random access memory (RAM), and may also include a nonvolatile memory such as a magnetic disk storage device, a flash memory device, or other volatile solid state storage device. The memory 103 can store various operating systems, for example, developed by Apple.
Figure PCTCN2018073509-appb-000001
Operating system, developed by Google Inc.
Figure PCTCN2018073509-appb-000002
Operating system, etc. The above memory 103 may be independent and connected to the processor 101 via the above communication bus; the memory 103 may also be integrated with the processor 101.
触摸屏104具体可以包括触控板104-1和显示器104-2。The touch screen 104 may specifically include a touch panel 104-1 and a display 104-2.
其中,触控板104-1可采集手机100的用户在其上或附近的触摸事件(比如用户使用手指、触控笔等任何适合的物体在触控板104-1上或在触控板104-1附近的操作),并将采集到的触摸信息发送给其他器件(例如处理器101)。其中,用户在触控板104-1附近的触摸事件可以称之为悬浮触控;悬浮触控可以是指,用户无需为了选择、移动或拖动目标(例如图标等)而直接接触触控板,而只需用户位于设备附近以便执行所想要的功能。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型来实现触控板104-1。The touch panel 104-1 can collect touch events on or near the user of the mobile phone 100 (for example, the user uses any suitable object such as a finger, a stylus, or the like on the touch panel 104-1 or on the touchpad 104. The operation near -1), and the collected touch information is sent to other devices (for example, processor 101). The touch event of the user in the vicinity of the touch panel 104-1 may be referred to as a hovering touch; the hovering touch may mean that the user does not need to directly touch the touchpad in order to select, move or drag a target (eg, an icon, etc.) , and only the user is located near the device to perform the desired function. In addition, the touch panel 104-1 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
显示器(也称为显示屏)104-2可用于显示由用户输入的信息或提供给用户的信息以及手机100的各种菜单。可以采用液晶显示器、有机发光二极管等形式来配置显示器104-2。触控板104-1可以覆盖在显示器104-2之上,当触控板104-1检测到在其上或附近的触摸事件后,传送给处理器101以确定触摸事件的类型,随后处理器101可以根据触摸事件的类型在显示器104-2上提供相应的视觉输出。虽然在图1中,触控板104-1与显示屏104-2是作为两个独立的部件来实现手机100的输入和输出功能,但是在某些实施例中,可以将触控板104-1与显示屏104-2集成而实现手机100的输入和输出功能。可以理解的是,触摸屏104是由多层的材料堆叠而成,本申请实施例中只展示出了触控板(层)和显示屏(层),其他层在本申请实施例中不予记载。另外,触控板104-1可以以全面板的形式配置在手机100的正面,显示屏104-2也可以以全面板的形式配置在手机100的正面,这样在手机的正面就能够实现无边框的结构。A display (also referred to as display) 104-2 can be used to display information entered by the user or information provided to the user as well as various menus of the mobile phone 100. The display 104-2 can be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The touchpad 104-1 can be overlaid on the display 104-2, and when the touchpad 104-1 detects a touch event on or near it, it is transmitted to the processor 101 to determine the type of touch event, and then the processor 101 may provide a corresponding visual output on display 104-2 depending on the type of touch event. Although in FIG. 1, the touchpad 104-1 and the display 104-2 are implemented as two separate components to implement the input and output functions of the handset 100, in some embodiments, the touchpad 104- 1 is integrated with the display screen 104-2 to implement the input and output functions of the mobile phone 100. It is to be understood that the touch screen 104 is formed by stacking a plurality of layers of materials. In the embodiment of the present application, only the touch panel (layer) and the display screen (layer) are shown, and other layers are not described in the embodiment of the present application. . In addition, the touch panel 104-1 may be disposed on the front surface of the mobile phone 100 in the form of a full-board, and the display screen 104-2 may also be disposed on the front surface of the mobile phone 100 in the form of a full-board, so that the front of the mobile phone can be borderless. Structure.
另外,手机100还可以具有指纹识别功能。例如,可以在手机100的背面(例如后置摄像头的下方)配置指纹识别器112,或者在手机100的正面(例如触摸屏104的下方)配置指纹识别器112。又例如,可以在触摸屏104中配置指纹采集器件112来实现指纹识别功能,即指纹采集器件112可以与触摸屏104集成在一起来实现手机100的指纹识别功能。在这种情况下,该指纹采集器件112配置在触摸屏104中,可以是触摸屏104的一部分,也可以以其他方式配置在触摸屏104中。本申请实施例中的指纹采集器件112的主要部件是指纹传感器,该指纹传感器可以采用任何类型的感测技术,包括但不限于光学式、电容式、压电式或超声波传感技术等。In addition, the mobile phone 100 can also have a fingerprint recognition function. For example, the fingerprint reader 112 can be configured on the back of the handset 100 (eg, below the rear camera) or on the front side of the handset 100 (eg, below the touch screen 104). For another example, the fingerprint collection device 112 can be configured in the touch screen 104 to implement the fingerprint recognition function, that is, the fingerprint collection device 112 can be integrated with the touch screen 104 to implement the fingerprint recognition function of the mobile phone 100. In this case, the fingerprint capture device 112 is disposed in the touch screen 104 and may be part of the touch screen 104 or may be otherwise disposed in the touch screen 104. The main component of the fingerprint collection device 112 in the embodiment of the present application is a fingerprint sensor, which can employ any type of sensing technology, including but not limited to optical, capacitive, piezoelectric or ultrasonic sensing technologies.
手机100还可以包括蓝牙装置105,用于实现手机100与其他短距离的设备(例如手机、智能手表等)之间的数据交换。本申请实施例中的蓝牙装置可以是集成电路或者蓝牙芯片等。The mobile phone 100 may also include a Bluetooth device 105 for enabling data exchange between the handset 100 and other short-range devices (eg, mobile phones, smart watches, etc.). The Bluetooth device in the embodiment of the present application may be an integrated circuit or a Bluetooth chip or the like.
手机100还可以包括至少一种传感器106,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节触摸屏104的显示器的亮度,接近传感器可在手机100 移动到耳边时,关闭显示器的电源。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机100还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The handset 100 can also include at least one type of sensor 106, 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 of the touch screen 104 according to the brightness of the ambient light, and the proximity sensor may turn off the power of the display when the mobile phone 100 moves to the ear. . 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 100 can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, here Let me repeat.
WI-FI装置107,用于为手机100提供遵循WI-FI相关标准协议的网络接入,手机100可以通过WI-FI装置107接入到WI-FI接入点,进而帮助用户收发电子邮件、浏览网页和访问流媒体等,它为用户提供了无线的宽带互联网访问。在其他一些实施例中,该WI-FI装置107也可以作为WI-FI无线接入点,可以为其他设备提供WI-FI网络接入。The WI-FI device 107 is configured to provide the mobile phone 100 with network access complying with the WI-FI related standard protocol, and the mobile phone 100 can access the WI-FI access point through the WI-FI device 107, thereby helping the user to send and receive emails. Browsing web pages and accessing streaming media, etc., it provides users with wireless broadband Internet access. In some other embodiments, the WI-FI device 107 can also function as a WI-FI wireless access point, and can provide WI-FI network access for other devices.
定位装置108,用于为手机100提供地理位置。可以理解的是,该定位装置108具体可以是全球定位系统(Global Positioning System,GPS)或北斗卫星导航系统、俄罗斯GLONASS等定位系统的接收器。定位装置108在接收到上述定位系统发送的地理位置后,将该信息发送给处理器101进行处理,或者发送给存储器103进行保存。在另外的一些实施例中,该定位装置108还可以是辅助全球卫星定位系统(Assisted Global Positioning System,AGPS)的接收器,AGPS系统通过作为辅助服务器来协助定位装置108完成测距和定位服务,在这种情况下,辅助定位服务器通过无线通信网络与设备例如手机100的定位装置108(即GPS接收器)通信而提供定位协助。在另外的一些实施例中,该定位装置108也可以是基于WI-FI接入点的定位技术。由于每一个WI-FI接入点都有一个全球唯一的(Media Access Control,MAC)地址,设备在开启WI-FI的情况下即可扫描并收集周围的WI-FI接入点的广播信号,因此可以获取到WI-FI接入点广播出来的MAC地址;设备将这些能够标示WI-FI接入点的数据(例如MAC地址)通过无线通信网络发送给位置服务器,由位置服务器检索出每一个WI-FI接入点的地理位置,并结合WI-FI广播信号的强弱程度,计算出该设备的地理位置并发送到该设备的定位装置108中。The positioning device 108 is configured to provide a geographic location for the mobile phone 100. It can be understood that the positioning device 108 can be specifically a receiver of a positioning system such as a Global Positioning System (GPS) or a Beidou satellite navigation system, or a Russian GLONASS. After receiving the geographical location transmitted by the positioning system, the positioning device 108 sends the information to the processor 101 for processing, or sends it to the memory 103 for storage. In some other embodiments, the positioning device 108 can also be a receiver of an Assisted Global Positioning System (AGPS), which assists the positioning device 108 in performing ranging and positioning services by acting as an auxiliary server. In this case, the secondary location server provides location assistance over a wireless communication network in communication with a location device 108 (i.e., a GPS receiver) of the device, such as handset 100. In still other embodiments, the positioning device 108 can also be a WI-FI access point based positioning technology. Since each WI-FI access point has a globally unique (Media Access Control, MAC) address, the device can scan and collect the broadcast signals of the surrounding WI-FI access points when WI-FI is turned on. Therefore, the MAC address broadcasted by the WI-FI access point can be obtained; the device sends the data (such as the MAC address) capable of indicating the WI-FI access point to the location server through the wireless communication network, and each location is retrieved by the location server. The geographic location of the WI-FI access point, combined with the strength of the WI-FI broadcast signal, calculates the geographic location of the device and sends it to the location device 108 of the device.
音频电路109、扬声器113、麦克风114可提供用户与手机100之间的音频接口。音频电路109可将接收到的音频数据转换后的电信号,传输到扬声器113,由扬声器113转换为声音信号输出;另一方面,麦克风114将收集的声音信号转换为电信号,由音频电路109接收后转换为音频数据,再将音频数据输出至RF电路102以发送给比如另一手机,或者将音频数据输出至存储器103以便进一步处理。The audio circuit 109, the speaker 113, and the microphone 114 can provide an audio interface between the user and the handset 100. The audio circuit 109 can transmit the converted electrical data of the received audio data to the speaker 113 for conversion to the sound signal output by the speaker 113; on the other hand, the microphone 114 converts the collected sound signal into an electrical signal by the audio circuit 109. After receiving, it is converted into audio data, and then the audio data is output to the RF circuit 102 for transmission to, for example, another mobile phone, or the audio data is output to the memory 103 for further processing.
外设接口110,用于为外部的输入/输出设备(例如键盘、鼠标、外接显示器、外部存储器、用户识别模块卡等)提供各种接口。例如通过通用串行总线(Universal Serial Bus,USB)接口与鼠标连接,通过用户识别模块卡卡槽上的金属触点与电信运营商提供的用户识别模块卡(Subscriber Identification Module,SIM)卡进行连接。外设接口110可以被用来将上述外部的输入/输出外围设备耦接到处理器101和存储器103。The peripheral interface 110 is used to provide various interfaces for external input/output devices (such as a keyboard, a mouse, an external display, an external memory, a subscriber identity module card, etc.). For example, it is connected to the mouse through a Universal Serial Bus (USB) interface, and is connected to a Subscriber Identification Module (SIM) card provided by the service provider through a metal contact on the card slot of the subscriber identity module. . Peripheral interface 110 can be used to couple the external input/output peripherals described above to processor 101 and memory 103.
在本申请实施例中,手机100可通过外设接口110与设备组内的其他设备进行通信,例如,通过外设接口110可接收其他设备发送的显示数据进行显示等,本申请实施例对此不作任何限制。In the embodiment of the present application, the mobile phone 100 can communicate with other devices in the device group through the peripheral interface 110. For example, the peripheral interface 110 can receive display data sent by other devices for display, etc. No restrictions are imposed.
手机100还可以包括给各个部件供电的电源装置111(比如电池和电源管理芯片), 电池可以通过电源管理芯片与处理器101逻辑相连,从而通过电源装置111实现管理充电、放电、以及功耗管理等功能。The mobile phone 100 may further include a power supply device 111 (such as a battery and a power management chip) that supplies power to the various components. The battery may be logically connected to the processor 101 through the power management chip to manage charging, discharging, and power management through the power supply device 111. And other functions.
尽管图1未示出,手机100还可以包括摄像头(前置摄像头和/或后置摄像头)、闪光灯、微型投影装置、近场通信(Near Field Communication,NFC)装置等,在此不再赘述。Although not shown in FIG. 1, the mobile phone 100 may further include a camera (front camera and/or rear camera), a flash, a micro projection device, a near field communication (NFC) device, and the like, and details are not described herein.
本申请实施例中的第二终端也可以是手机、平板电脑、个人计算机、个人数字助理、智能手表、上网本、可穿戴电子设备、增强现实技术设备、虚拟现实设备等,本申请对第二终端的具体形式不做特殊限制。第二终端的硬件结构可以参考第一终端,在此不重复赘述。The second terminal in the embodiment of the present application may also be a mobile phone, a tablet computer, a personal computer, a personal digital assistant, a smart watch, a netbook, a wearable electronic device, an augmented reality device, a virtual reality device, etc. The specific form is not subject to special restrictions. For the hardware structure of the second terminal, reference may be made to the first terminal, and details are not described herein.
以下实施例中的方法均可以在具有上述硬件结构的手机100中实现。The methods in the following embodiments can all be implemented in the mobile phone 100 having the above hardware structure.
首先,对本申请实施例适用的一些场景进行简单介绍,具体如下:First, some scenarios applicable to the embodiments of the present application are briefly introduced, as follows:
场景一、第一终端当前未开启网络连接功能,而用户需要使用第一终端通过WLAN进行上网。那么,用户需要进入第一终端的WLAN的设置界面,打开WLAN网络连接的功能。Scenario 1: The first terminal does not currently enable the network connection function, and the user needs to use the first terminal to access the Internet through the WLAN. Then, the user needs to enter the setting interface of the WLAN of the first terminal, and open the function of the WLAN network connection.
其中,图2中(1)示出了第一终端的一种界面,该界面为WLAN的设置界面,其中包含开启WLAN网络连接功能的按钮201。图2中(2)示出了第一终端响应于用户点击开启WLAN网络连接功能的按钮201,开启WLAN网络连接功能后,开始搜索WLAN信号的一种界面。该界面中显示有第一终端搜索到的无线网络信号的列表202。Wherein, (1) in FIG. 2 shows an interface of the first terminal, which is a setting interface of the WLAN, and includes a button 201 for turning on the WLAN network connection function. (2) in FIG. 2 shows an interface in which the first terminal starts to search for the WLAN signal after the WLAN network connection function is turned on in response to the user clicking the button 201 that turns on the WLAN network connection function. A list 202 of wireless network signals searched by the first terminal is displayed in the interface.
场景二、第一终端当前开启了WLAN网络连接功能,但没有搜索到可用的WLAN信号。Scenario 2: The first terminal currently has the WLAN network connection function enabled, but does not search for available WLAN signals.
其中,图6示出了第一终端的一种界面,该界面包括提示信息601,说明第一终端开启了WLAN网络连接功能,且没有搜索到可用的WLAN信号。FIG. 6 shows an interface of the first terminal, where the interface includes prompt information 601, indicating that the first terminal has enabled the WLAN network connection function, and does not search for available WLAN signals.
场景三、第一终端当前有连接到WLAN网络或者移动数据网络,但网络质量较差,不能满足业务的需求。Scenario 3: The first terminal currently has a connection to a WLAN network or a mobile data network, but the network quality is poor and cannot meet the requirements of the service.
在这些场景中,都可以采用本申请提供的技术方案,第一终端自动通过蓝牙去发现具有WI-FI热点共享能力、却没有开启WI-FI热点的第二终端。进一步,与第二终端交互,使得第二终端开启WI-FI热点,并自动建立与第二终端的WI-FI热点的连接,实现连接网络,以提升网络服务质量,提升用户体验。In these scenarios, the technical solution provided by the application may be adopted, and the first terminal automatically discovers the second terminal that has the WI-FI hotspot sharing capability but does not open the WI-FI hotspot through the Bluetooth. Further, interacting with the second terminal enables the second terminal to open the WI-FI hotspot, and automatically establishes a connection with the WI-FI hotspot of the second terminal to implement a connection network, thereby improving network service quality and improving user experience.
总体来说,本申请实施例提供了两种实现方式,一种实现方式是第一终端可以自动连接到第二终端的热点,即步骤S101-S106,如图7中的(1)所示的方法流程示意图。另一种实现方式是第一终端可以由用户手动连接到第二终端热点,即步骤S101-S104、S107-S112和S106,如图7中(2)所示的方法流程示意图。In general, the embodiment of the present application provides two implementation manners. One implementation manner is that the first terminal can automatically connect to the hotspot of the second terminal, that is, steps S101-S106, as shown in (1) of FIG. Method flow diagram. Another implementation manner is that the first terminal can be manually connected to the second terminal hotspot by the user, that is, steps S101-S104, S107-S112, and S106, as shown in the process flow diagram of (2) in FIG.
本申请实施例提供的技术方案具体包括如下步骤:The technical solution provided by the embodiment of the present application specifically includes the following steps:
S101、第一终端通过蓝牙发送扫描请求,用于发现开启蓝牙功能的第二终端。S101. The first terminal sends a scan request by using a Bluetooth to discover a second terminal that enables the Bluetooth function.
一种可能的实现方式中,第一终端检测到用户开启WLAN热点功能的操作,第一终端使用WI-FI扫描方式开始扫描附近的热点;同时,第一终端使用蓝牙开始扫描附近开启蓝牙功能的电子设备。In a possible implementation manner, the first terminal detects the operation of the user to enable the WLAN hotspot function, and the first terminal starts scanning the nearby hotspots by using the WI-FI scanning mode; at the same time, the first terminal starts scanning the nearby Bluetooth function by using the Bluetooth. Electronic equipment.
另一种可能的实现方式中,第一终端检测用户开启了WLAN热点功能的操作,第 一终端先使用WI-FI扫描方式开始扫描附近的热点。当第一终端通过WI-FI扫描方式没有扫描到可用的热点时,第一终端自动使用蓝牙开始扫描附近开启蓝牙功能的电子设备。可选的,第一终端也可以在第一终端开始WI-FI扫描方式后一定的时间段后,自动开始使用蓝牙扫描方式,本申请实施例对蓝牙扫描方式的开启时机不做限定。In another possible implementation manner, the first terminal detects that the user activates the WLAN hotspot function, and the first terminal first scans the nearby hotspots by using the WI-FI scanning mode. When the first terminal does not scan for available hotspots through the WI-FI scanning mode, the first terminal automatically uses Bluetooth to start scanning for nearby Bluetooth-enabled electronic devices. Optionally, the first terminal may also automatically start to use the Bluetooth scanning mode after a certain period of time after the first terminal starts the WI-FI scanning mode. The embodiment of the present application does not limit the opening timing of the Bluetooth scanning mode.
另一种可能的实现方式中,第一终端检测到第一终端处于网络连接状态,但第一终端的网络质量较差,不能满足用户的业务需求时,第一终端自动使用蓝牙开始扫描附近开启蓝牙功能的电子设备。其中,第一终端网络质量较差,可以是第一终端的网络速率低于某个预设值,也可以是第一终端浏览网页时,网页的刷新时间大于某个预设值等。本申请实施例对判断网络质量的条件不做限定。In another possible implementation manner, the first terminal detects that the first terminal is in a network connection state, but the network quality of the first terminal is poor, and the first terminal automatically uses Bluetooth to start scanning nearby. Bluetooth-enabled electronic device. The network quality of the first terminal is poor, and the network speed of the first terminal is lower than a preset value, or the refresh time of the webpage is greater than a preset value when the first terminal browses the webpage. The embodiments of the present application do not limit the conditions for determining the quality of the network.
第一终端自动使用蓝牙可以是在蓝牙已经开启的情况下,如果蓝牙并未开启,可以自动启动蓝牙,也可以提示用户是否开启蓝牙,获得用户许可后打开并使用蓝牙。The first terminal automatically uses Bluetooth. In the case that Bluetooth is already turned on, if Bluetooth is not enabled, Bluetooth can be automatically activated, and the user can be prompted whether to enable Bluetooth, and after opening the user license, open and use Bluetooth.
需要说明的是,扫描请求中还可以携带第一终端的账户信息,便于第二终端对第一终端做互信认证,例如第一终端的账户信息和第二终端的账户相同,可以认为第一终端和第二终端登录同一账户,可以认为第一终端是第二终端的可信终端。若第二终端和第一终端是登录同一账户或者第二终端根据预设信息/策略确定第一终端是可信终端,则第二终端可以认为第一终端为可信终端,可以允许第一终端连接第二终端的热点。否则,不允许第一终端连接第二终端的热点,或者需要第二终端的用户进行授权,才可以连接第二终端的热点。It should be noted that the scan request may further carry the account information of the first terminal, so that the second terminal can perform mutual trust authentication on the first terminal. For example, the account information of the first terminal and the account of the second terminal are the same, and the first terminal can be considered. And logging in to the same account with the second terminal, the first terminal may be considered as the trusted terminal of the second terminal. If the second terminal and the first terminal are in the same account or the second terminal determines that the first terminal is a trusted terminal according to the preset information/policy, the second terminal may consider that the first terminal is a trusted terminal, and may allow the first terminal. Connect to the hotspot of the second terminal. Otherwise, the first terminal is not allowed to connect to the hotspot of the second terminal, or the user of the second terminal is required to perform authorization, so that the hotspot of the second terminal can be connected.
其中,账户信息是用于标识终端身份的信息,例如可以是终端标识,或标识使用该终端的用户的用户标识,具体可以为云账户信息,云服务的登录账户,例如:华为云账户、苹果的iCloud账户,或为应用登录标识,例如:支付宝账户信息、微信账户信息等,也可以是手机号,终端的媒体访问控制MAC(Media Access Control)地址等。The account information is used to identify the identity of the terminal, and may be, for example, a terminal identifier, or a user identifier of the user who uses the terminal, and may be a cloud account information, a login account of the cloud service, for example, a Huawei cloud account, and an apple. The iCloud account, or the application login identifier, for example: Alipay account information, WeChat account information, etc., may also be a mobile phone number, a media access control MAC address of the terminal, and the like.
其中,扫描请求为第一终端广播发送的消息,例如可以采用蓝牙技术联盟(Special Interest Group,SIG)发布的核心版本(Core Version)4.0及以上版本中规定的广播消息。The scan request is a broadcast message sent by the first terminal. For example, a broadcast message specified in a Core Version 4.0 and above released by the Special Interest Group (SIG) may be used.
图12示出了一种广播消息的帧格式,一个广播消息可包含多个AD structure,其中一个AD structure包括长度字段和数据字段,其中数据字段包括类型字段、厂商ID以及可选字段。示例性的,本申请中第一终端的账户信息可以携带在广播消息中的可选字段中。12 shows a frame format of a broadcast message, a broadcast message may include a plurality of AD structures, wherein one AD structure includes a length field and a data field, wherein the data field includes a type field, a vendor ID, and an optional field. Exemplarily, the account information of the first terminal in the present application may be carried in an optional field in the broadcast message.
S102、第二终端向第一终端发送响应消息。S102. The second terminal sends a response message to the first terminal.
具体的,根据蓝牙标准协议,第二终端向第一终端发送响应信息。当第一终端接收到第二终端返回的响应消息后,可以确认第二终端为第一终端扫描到的开启蓝牙功能的电子设备。Specifically, according to the Bluetooth standard protocol, the second terminal sends the response information to the first terminal. After receiving the response message returned by the second terminal, the first terminal may confirm that the second terminal is the Bluetooth enabled electronic device scanned by the first terminal.
可选的,第二终端还可以在确定第一终端为可信终端的情况下,才向第一终端发送响应消息,这样当第一终端接收到第二终端返回的响应消息时,可以确认第二终端为可信终端。Optionally, the second terminal may send the response message to the first terminal only when the first terminal is determined to be the trusted terminal, so that when the first terminal receives the response message returned by the second terminal, the second terminal may confirm The second terminal is a trusted terminal.
需要说明的是,响应消息中可以还携带有第二终端的账户信息。示例性的,本申请中第二终端的账户信息可以携带在广播消息中的可选字段中,以便第一终端也可以根据接收到的第二终端的账户信息,对第二终端做互信认证,加强网络连接的安全性。 第二终端也可以在向第一终端发送响应消息中不携带自身的账户信息,而是在之后的与第一终端进行互信认证的过程中发送第二终端的账户信息。It should be noted that the response message may further carry the account information of the second terminal. Exemplarily, the account information of the second terminal in the application may be carried in an optional field in the broadcast message, so that the first terminal may also perform mutual trust authentication on the second terminal according to the received account information of the second terminal. Strengthen the security of network connections. The second terminal may also not transmit its own account information in the response message sent to the first terminal, but may send the account information of the second terminal in the process of performing mutual trust authentication with the first terminal.
需要说明的是,第二终端还可以将自身热点功能是否已经打开的信息携带在响应消息中,以供第一终端确定是否向其发送热点开启请求;另外,第二终端也可以将自身是否有热点开启能力这一信息也携带在响应信息中。即如果第二终端不具有热点开启能力,则可以在响应信息中携带该信息,如果第二终端具有热点开启能力且当前热点并没有开启,则可以在响应中携带热点还未开启信息,如果第二终端当前热点已经处于开启状态,则可以在响应中携带热点已开启信息,还可以携带具体的热点信息,比如热点ID之类。这些第二终端的热点相关信息能使得第一终端可以对第二终端的能力进行适格判读,并只对适格的第二终端—具有热点能力且当前热点还未开启的第二终端—发起热点请求,因此可以缩短连接网络的时间,提供连接效率。S103、第一终端向第二终端发送开启热点的请求。It should be noted that the second terminal may also carry information about whether the hotspot function has been opened in the response message, so that the first terminal determines whether to send a hotspot open request to the first terminal. In addition, the second terminal may also have its own The information of the hotspot opening capability is also carried in the response message. That is, if the second terminal does not have the hotspot enabling capability, the information may be carried in the response information. If the second terminal has the hotspot enabling capability and the current hotspot is not enabled, the hotspot may not be opened in the response. If the current hotspot of the second terminal is already enabled, the information about the hotspot may be carried in the response, and the specific hotspot information, such as the hotspot ID, may also be carried. The hotspot related information of the second terminal enables the first terminal to properly interpret the capability of the second terminal, and only initiates the qualified second terminal, the second terminal having hotspot capability and the current hotspot has not been opened. Hotspot requests, so you can shorten the time it takes to connect to the network and provide connection efficiency. S103. The first terminal sends a request for opening a hot spot to the second terminal.
第一终端接收到第二终端的响应消息后,向第二终端发送开启热点的请求。其中,第一终端发送的开启热点的请求可以携带在广播消息中的可选字段中。After receiving the response message of the second terminal, the first terminal sends a request for opening the hotspot to the second terminal. The request for turning on the hot spot sent by the first terminal may be carried in an optional field in the broadcast message.
第一终端在接收到第二终端的响应消息后,可以根据响应消息中携带的热点信息确定该第二终端是否为具有热点开启功能且当前热点并未打开的状态,如果是,则向该第二终端发送开启热点的请求。如果第二终端发送的响应消息中没有携带热点信息,第一终端则根据当前WLAN功能下搜索到的无线网络状况,判断该第二终端是否是已经开启热点且无法为第一终端提供符合要求的网络连接服务,如果第二终端不是已经被第一终端搜索到的无法提供预设服务质量的网络热点,则第一终端向该第二终端发送开启热点请求。After receiving the response message of the second terminal, the first terminal may determine, according to the hotspot information carried in the response message, whether the second terminal is in a hotspot-on function and the current hotspot is not turned on, and if so, to the first terminal The second terminal sends a request to open the hotspot. If the response message sent by the second terminal does not carry the hotspot information, the first terminal determines whether the second terminal is hotspot and cannot provide the first terminal according to the status of the wireless network that is searched for by the current WLAN function. The network connection service sends a hotspot request to the second terminal if the second terminal is not the network hotspot that has been searched by the first terminal and cannot provide the preset quality of service.
需要说明的是,若第一终端接收的响应消息中还包含有第二终端的账户信息,第一终端可以据此判断第二终端是否为可信终端,只有在第二终端是可信终端时第一终端才发送开启热点请求。如果第二终端不是可信终端,可以提示用户,根据用户的指令发送或不发送开启热点请求。It should be noted that, if the response message received by the first terminal further includes the account information of the second terminal, the first terminal may determine, according to the second terminal, whether the second terminal is a trusted terminal, and only when the second terminal is a trusted terminal. The first terminal sends a hotspot request. If the second terminal is not a trusted terminal, the user may be prompted to send or not send a hotspot request according to the user's instruction.
需要说明的是,该开启热点请求中还可以携带有第一终端的账户信息,以供第二终端进行互信判断。It should be noted that the hotspot request may also carry the account information of the first terminal for the second terminal to perform mutual trust determination.
需要说明的是,若第一终端扫描到多个开启蓝牙功能的第二终端,则第一终端可以按照扫描到第二终端的先后顺序,依次与第二终端进行互信认证、请求第二终端开启热点、连接第二终端的热点等。第一终端也可以是从扫描到的多个第二终端中任选一个,进行互信认证、请求第二终端开启热点、连接第二终端的热点等,本申请对此不做限定。在这些过程中,若有任一过程被拒或断开,则第一终端与下一个第二终端进行互信认证、请求第二终端开启热点、连接第二终端的热点等。It should be noted that, if the first terminal scans multiple second terminals that enable the Bluetooth function, the first terminal may perform mutual trust authentication with the second terminal and request the second terminal to be opened according to the sequence of scanning to the second terminal. Hotspots, hotspots connected to the second terminal, etc. The first terminal may also be any one of the plurality of second terminals that are scanned, perform mutual trust authentication, request the second terminal to open the hotspot, and connect the hotspot of the second terminal. In any of the processes, if any process is rejected or disconnected, the first terminal performs mutual authentication with the next second terminal, requests the second terminal to open the hotspot, and connects to the hotspot of the second terminal.
S104、第二终端接收到第一终端发送的开启热点的请求。S104. The second terminal receives the request for turning on the hot spot sent by the first terminal.
第二终端接收到第一终端的开启热点请求后,基于自身保存或网络侧保存的第一终端是否为可信终端的信息(例如步骤S102中对第一终端是否为可信终端判断的结果),或者基于该开启热点请求中携带的第一终端的账户信息,在本地或其他地方,比如服务器上,判断该第一终端是否为可信终端。若第一终端和第二终端登录同一账户,即为可信终端,则第二终端执行步骤S105。若第一终端和第二终端登录不同账户, 则第二终端在接收到开启热点的请求后,执行步骤S107。After receiving the hotspot request of the first terminal, the second terminal determines whether the first terminal is a trusted terminal based on the self-save or the network side (for example, the result of determining whether the first terminal is a trusted terminal in step S102) Or determining whether the first terminal is a trusted terminal at a local or other place, such as a server, based on the account information of the first terminal carried in the hotspot request. If the first terminal and the second terminal log in to the same account, that is, the trusted terminal, the second terminal performs step S105. If the first terminal and the second terminal log in to different accounts, the second terminal performs step S107 after receiving the request to turn on the hotspot.
可选的,若第一终端和第二终端登录同一账户,第一终端可以自动连接到第二终端的热点,也可以通过用户手动连接到第二终端的热点,即第二终端在接收到开启热点的请求后,也可以执行步骤S107。Optionally, if the first terminal and the second terminal are logged in to the same account, the first terminal may be automatically connected to the hotspot of the second terminal, or may be manually connected to the hotspot of the second terminal by the user, that is, the second terminal receives the open After the request of the hot spot, step S107 may also be performed.
S105、第二终端自动打开热点,并将热点信息发送给第一终端。S105. The second terminal automatically opens the hotspot and sends the hotspot information to the first terminal.
其中,热点信息包括热点名称、密码、传输控制协议(Transmission Control Protocol,TCP)端口信息中至少一项。热点信息可以携带在广播消息中的可选字段中。The hotspot information includes at least one of a hotspot name, a password, and a Transmission Control Protocol (TCP) port information. Hotspot information can be carried in optional fields in the broadcast message.
可选的,第二终端在接收到建立开启热点的请求后,获取第二终端网络能力信息,以便判断第二终端是否具有为第一终端提供热点。其中,第二终端网络能力信息包括第二终端是否具有热点共享能力,以及第二终端是否具有上网的能力,即第二终端是否开启移动数据业务。若第二终端具有热点共享能力,并且也开启了移动数据业务,则第二终端可以自动开启热点,并将热点信息发送给第一终端,便于第一终端根据该热点信息连接到第二终端开启的热点。Optionally, after receiving the request for establishing the hotspot, the second terminal acquires the second terminal network capability information, so as to determine whether the second terminal provides the hotspot for the first terminal. The second terminal network capability information includes whether the second terminal has the hotspot sharing capability, and whether the second terminal has the capability of accessing the Internet, that is, whether the second terminal starts the mobile data service. If the second terminal has the hotspot sharing capability and the mobile data service is also enabled, the second terminal can automatically enable the hotspot and send the hotspot information to the first terminal, so that the first terminal can be connected to the second terminal according to the hotspot information. Hot spot.
S106、第一终端根据热点信息连接第二终端的热点。S106. The first terminal connects to the hotspot of the second terminal according to the hotspot information.
具体的,第一终端根据第二终端发送的热点信息,自动连接第二终端的热点。在连接成功后,第一终端可以使用第二终端的热点进行上网,本流程结束。Specifically, the first terminal automatically connects to the hotspot of the second terminal according to the hotspot information sent by the second terminal. After the connection is successful, the first terminal can use the hotspot of the second terminal to access the Internet, and the process ends.
其中,图2示出了第一终端自动连接第二终端的过程中涉及的界面。具体的,图2中(1)示出了一种WLAN设置的界面。第一终端响应于检测到用户点击开启WLAN网络连接功能的功能按钮201,显示如图2中(2)所示的界面,其中该界面中没有第一终端可以连接的热点。而后,第一终端自动执行步骤S101至S106中第一终端的动作。在第一终端连接上第二终端的热点后,用户查看当前WLAN连接情况时,第一终端上可以显示如图2中(3)所示的一种界面,该界面中显示有提示信息203,用于提示第一终端连接第二终端的热点。2 shows an interface involved in the process of automatically connecting the second terminal to the second terminal. Specifically, (1) in FIG. 2 shows an interface of a WLAN setting. In response to detecting that the user clicks the function button 201 for turning on the WLAN network connection function, the first terminal displays an interface as shown in (2) of FIG. 2, wherein there is no hotspot in the interface that the first terminal can connect. Then, the first terminal automatically performs the actions of the first terminal in steps S101 to S106. After the first terminal is connected to the hotspot of the second terminal, when the user views the current WLAN connection, the first terminal may display an interface as shown in FIG. 2 (3), and the prompt information 203 is displayed in the interface. A hotspot for prompting the first terminal to connect to the second terminal.
由此,本申请实施例提供的网络连接的方法,第一终端自动通过蓝牙去发现具有WI-FI热点共享能力但还没有开启WI-FI热点的第二终端。进一步,第一终端可自动请求开启这些第二终端的WI-FI热点,第二终端可以应第一终端的请求自动开启自身的热点,使得第一终端可以连接到这些第二终端的WI-FI热点,整个操作过程基于可信账户的认证能够实现全自动化,用户可以不感知这个过程,因此能简化用户的操作,提升用户体验。Therefore, in the method for network connection provided by the embodiment of the present application, the first terminal automatically discovers the second terminal that has the WI-FI hotspot sharing capability but has not enabled the WI-FI hotspot through the Bluetooth. Further, the first terminal may automatically request to enable the WI-FI hotspot of the second terminal, and the second terminal may automatically open its own hotspot at the request of the first terminal, so that the first terminal can connect to the WI-FI of the second terminal. Hotspots, the entire operation process can be fully automated based on the authentication of trusted accounts. Users can not perceive this process, thus simplifying user operations and improving user experience.
此外,在第一终端已经有网络连接的情况下,在网络质量较差的情况,第一终端也可以自动发现能够提供热点的第二终端,自动连接到第二终端的热点,有利于提升网络服务质量,提升用户体验。In addition, in the case that the first terminal already has a network connection, in a case where the network quality is poor, the first terminal can also automatically discover the second terminal that can provide the hotspot, and automatically connect to the hotspot of the second terminal, which is beneficial to improving the network. Quality of service to enhance the user experience.
示例性的,考虑到在本申请实施例中,第一终端和第二终端之间传输的数据量较小,因此,在第一终端和第二终端间可以在发现对方后,不进行配对连接,而是直接建立小数据的传输通道,使用低功耗通道传输第一终端和第二终端之间的小数据,有利于降低第一终端的功耗,提升数据传输效率。Exemplarily, in the embodiment of the present application, the amount of data transmitted between the first terminal and the second terminal is small, and therefore, the pairing connection may not be performed after the other party is found between the first terminal and the second terminal. Instead, the transmission channel of the small data is directly established, and the small data between the first terminal and the second terminal is transmitted by using the low power consumption channel, which is beneficial to reducing the power consumption of the first terminal and improving the data transmission efficiency.
需要说明的是,在本申请中的低功耗通道是符合蓝牙标准协议中的蓝牙低功耗BLE,当第一终端需要发送数据时,第一终端作为广播方,向第二终端发送广播消息。而第二终端作为扫描方,接收第一终端发送的广播消息。当第二终端需要发送数据时, 第二终端作为广播方,向第二终端发送广播消息。而第一终端作为扫描方,接收第二终端发送的广播消息。It should be noted that the low power consumption channel in the present application is a Bluetooth low energy BLE in the Bluetooth standard protocol. When the first terminal needs to send data, the first terminal acts as a broadcast party and sends a broadcast message to the second terminal. . The second terminal, as a scanning party, receives the broadcast message sent by the first terminal. When the second terminal needs to send data, the second terminal acts as a broadcaster and sends a broadcast message to the second terminal. The first terminal serves as a scanning party and receives a broadcast message sent by the second terminal.
S107、第二终端获取自身的网络能力信息。S107. The second terminal acquires its own network capability information.
具体的,第二终端在接收到第一终端发送的开启热点的请求或扫描请求后,可获取第二终端网络能力信息,以便判断第二终端是否具有为第一终端共享热点的能力。其中,第二终端网络能力信息包括第二终端是否具有热点共享能力,以及第二终端是否具有上网的能力,即第二终端是否开启移动数据业务。Specifically, after receiving the request for the hotspot or the scan request sent by the first terminal, the second terminal may obtain the second terminal network capability information, so as to determine whether the second terminal has the capability of sharing the hotspot for the first terminal. The second terminal network capability information includes whether the second terminal has the hotspot sharing capability, and whether the second terminal has the capability of accessing the Internet, that is, whether the second terminal starts the mobile data service.
S108、第二终端将自身的网络能力信息通过建立的低功耗通道发送给第一终端。S108. The second terminal sends its own network capability information to the first terminal by using the established low power consumption channel.
可选的,第二终端可以将自身的网络能力信息直接发送给第一终端,第二终端也可以在自身的网络能力信息满足一定条件下才发送给第一终端。例如:若第二终端具有热点共享能力,且第二终端开启了移动数据业务,则第二终端可以把网络能力信息发送给第一终端。若第二终端不具有热点共享能力,或者没有开启移动数据业务,则第二终端可以向第一终端回复不能为第一终端提供热点,也可以不回复第一终端。若第二终端一直不回复第一终端,则第一终端在一定时间段后,可默认认为第二终端不能提供热点。本申请实施例不做限定。Optionally, the second terminal may directly send the network capability information of the second terminal to the first terminal, and the second terminal may also send the information to the first terminal after the network capability information of the second terminal meets certain conditions. For example, if the second terminal has the hotspot sharing capability and the second terminal enables the mobile data service, the second terminal may send the network capability information to the first terminal. If the second terminal does not have the hotspot sharing capability or does not enable the mobile data service, the second terminal may reply to the first terminal that the hotspot cannot be provided for the first terminal, or may not reply to the first terminal. If the second terminal does not reply to the first terminal, the first terminal may, by default, consider that the second terminal cannot provide the hotspot after a certain period of time. The embodiment of the present application is not limited.
示例性的,本申请中第二终端的网络能力信息可以携带在广播消息中的可选字段中。Exemplarily, the network capability information of the second terminal in this application may be carried in an optional field in the broadcast message.
可选的,第二终端也可以在开启蓝牙功能后,就自动获取自身的网络能力信息,并对外广播自身的网络能力信息,以便其他电子设备获取到第二终端的网络能力信息。Optionally, after the Bluetooth function is enabled, the second terminal may automatically obtain its own network capability information and broadcast its own network capability information, so that other electronic devices acquire the network capability information of the second terminal.
S109、若第二终端具有热点共享能力,且第二终端开启了移动数据业务,则第一终端显示第二终端的热点信息。S109. If the second terminal has the hotspot sharing capability, and the second terminal starts the mobile data service, the first terminal displays the hotspot information of the second terminal.
具体的,第一终端可以显示第二终端的热点信息,以便用户可以选择连接第二终端的热点。例如:第一终端可以在WI-FI设置界面显示第二终端的热点。Specifically, the first terminal may display hotspot information of the second terminal, so that the user may select a hotspot connected to the second terminal. For example, the first terminal can display the hotspot of the second terminal in the WI-FI setting interface.
需要说明的是,在本申请实施例中,第一终端可以通过WI-FI扫描和蓝牙扫描两种方式去发现附近的热点。其中,通过WI-FI扫描的方式扫描到的热点,是电子设备真实开启的热点。而通过蓝牙扫描方式扫描到的热点,是可能能够提供热点的电子设备,但该电子设备还暂未开启热点,可以认为是虚拟的热点。那么,第一终端可以采用有区别的显示方式显示两种扫描方式扫描到的热点,便于用户区分真实的热点和虚拟的热点。例如在不同区域分别显示虚拟热点和实际热点,或者以不同底色/填充/字体/透明度/大小等分别显示虚拟热点和实际热点。It should be noted that, in the embodiment of the present application, the first terminal may discover nearby hotspots by using WI-FI scanning and Bluetooth scanning. Among them, the hotspot scanned by the WI-FI scanning method is a hot spot that the electronic device is actually turned on. The hot spot scanned by the Bluetooth scanning method is an electronic device that may provide a hot spot, but the electronic device does not open the hot spot yet, and can be regarded as a virtual hot spot. Then, the first terminal can display the hotspots scanned by the two scanning modes in a differentiated display manner, so that the user can distinguish the real hotspots from the virtual hotspots. For example, virtual hotspots and actual hotspots are respectively displayed in different areas, or virtual hotspots and actual hotspots are respectively displayed with different background colors/filling/fonts/transparency/size.
例如:图3中(1)示出了第一终端的一种界面,该界面为第一终端的WI-FI扫描界面,其中包括第一终端通过WI-FI扫描方式扫描到的热点列表301,具体包括“AP 01”、“AP 02”和“AP 03”,该界面还包括第一终端通过蓝牙扫描方式扫描到的热点列表302,包括“Huawei Mate”。图3中(2)示出了第一终端的一种界面,该界面的提示信息303用于提示第一终端连接上第二终端的热点。For example, (1) in FIG. 3 shows an interface of the first terminal, where the interface is a WI-FI scanning interface of the first terminal, and includes a hotspot list 301 scanned by the first terminal by using a WI-FI scanning method. Specifically, the "AP 01", the "AP 02", and the "AP 03" are included, and the interface further includes a hotspot list 302 scanned by the first terminal through the Bluetooth scanning mode, including "Huawei Mate". (2) in FIG. 3 shows an interface of the first terminal, and the prompt information 303 of the interface is used to prompt the first terminal to connect to the hotspot of the second terminal.
在一些示例中,若第一终端同时开启WI-FI扫描方式和蓝牙扫描方式,那么,两种扫描方式先后扫描到同一电子设备热点的显示方式可以参考下列方法:In some examples, if the first terminal simultaneously turns on the WI-FI scanning mode and the Bluetooth scanning mode, the following methods may be used to display the scanning modes of the same electronic device hotspot by the two scanning modes:
第一种情况:该电子设备开启了热点。若第一终端可以通过WI-FI扫描方式扫描到该电子设备,则第一终端在WI-FI设置界面,以WI-FI扫描方式的显示方式显示, 示为真实的热点。The first case: the electronic device has a hotspot turned on. If the first terminal can scan the electronic device through the WI-FI scanning mode, the first terminal is displayed in the WI-FI scanning mode on the WI-FI setting interface, and is displayed as a real hot spot.
第二种情况:该电子设备未开启热点,那么,第一终端通过WI-FI扫描方式是不能扫描到该电子设备的热点,只能通过蓝牙扫描方式能够扫描到,则第一终端在WI-FI设置界面,以蓝牙扫描方式的显示方式显示,示为虚拟的热点。The second case: the electronic device does not turn on the hotspot. Then, the first terminal cannot scan the hotspot of the electronic device through the WI-FI scanning mode, and can only scan through the Bluetooth scanning mode, and the first terminal is in the WI- The FI setting interface is displayed in the display mode of the Bluetooth scanning mode and is shown as a virtual hotspot.
S110、第一终端响应于用户的选择操作,向显示为虚拟热点的第二终端发送热点连接请求。S110. The first terminal sends a hotspot connection request to the second terminal that is displayed as the virtual hotspot in response to the user's selection operation.
其中,用户的选择操作,指示第一终端可以请求连接第二终端的热点。该操作可以是在包含扫描到的热点信息的界面中,通过选择第二终端的热点,或者点击第二终端的热点的图标等操作方式,本申请实施例对第一终端的用户的操作方式不做限定。The user's selection operation indicates that the first terminal can request to connect to the hotspot of the second terminal. The operation may be performed by the user of the first terminal in the operation mode of the first terminal in the interface that includes the scanned hotspot information, by selecting the hotspot of the second terminal, or by clicking the icon of the hotspot of the second terminal. Make a limit.
其中,热点连接请求可以携带在蓝牙广播消息中的可选字段中。The hotspot connection request may be carried in an optional field in the Bluetooth broadcast message.
图4中(1)示出了第一终端的一种界面,该界面中显示有虚拟热点列表401。图4中(2)示出了第一终端响应于用户点击虚拟列表401中的任一虚拟热点的标识,显示的一种界面。该界面中包含提示信息402,提示第一终端已连接上第二终端的热点。(1) in FIG. 4 shows an interface of the first terminal in which a virtual hotspot list 401 is displayed. (2) in FIG. 4 shows an interface displayed by the first terminal in response to the user clicking on the identifier of any of the virtual hotspots in the virtual list 401. The interface includes prompt information 402, indicating that the first terminal has connected to the hotspot of the second terminal.
S111、第二终端显示提示信息。S111. The second terminal displays the prompt information.
具体的,第二终端在接收到第一终端的热点连接请求时,由于第一终端和第二终端登录不同账户,第二终端可以自动不允许第一终端连接第二终端的热点,也可以生成提示信息,由用户选择是否允许第一终端连接第二终端的热点。Specifically, when the second terminal receives the hotspot connection request of the first terminal, because the first terminal and the second terminal log in to different accounts, the second terminal may automatically not allow the first terminal to connect to the hotspot of the second terminal, or may generate The prompt information is selected by the user whether to allow the first terminal to connect to the hotspot of the second terminal.
示例性的,第二终端通过可以在通知栏中弹出一条通知信息,用来显示提示信息,也可以在当前显示界面的中部弹出一个窗口,用来显示提示信息,本申请实施例对提示信息的显示方式不做限定。Illustratively, the second terminal may display a prompt message by using a notification message in the notification bar, or may display a prompt window in the middle of the current display interface for displaying the prompt information. The display mode is not limited.
图5示出了第二终端的界面示例,该界面包含提示信息501,提示信息的内容为“**电子设备请求连接您的WLAN热点,是否允许?”。若第二终端检测到用户点击“是”按钮502,表明第二终端的用户同意第一终端连接自己的热点,第二终端响应于该操作,自动打开热点。若第二终端检测到用户点击“否”按钮503,表明第二终端不同意第一终端连接到自己的热点,则第二终端响应于该操作,不打开热点。FIG. 5 shows an example of an interface of the second terminal, the interface including prompt information 501, the content of the prompt information is “**Electronic device requests to connect to your WLAN hotspot, is it allowed?”. If the second terminal detects that the user clicks the "Yes" button 502, it indicates that the user of the second terminal agrees that the first terminal connects to his hotspot, and the second terminal automatically turns on the hotspot in response to the operation. If the second terminal detects that the user clicks the "No" button 503, indicating that the second terminal does not agree that the first terminal is connected to its own hotspot, the second terminal does not turn on the hotspot in response to the operation.
S112、第二终端接收用户的允许操作,将热点信息发送给第一终端。S112. The second terminal receives the allowed operation of the user, and sends the hot spot information to the first terminal.
其中,热点信息包括热点名称、密码、TCP端口信息中至少一项。The hotspot information includes at least one of a hotspot name, a password, and a TCP port information.
具体的,若第二终端检测到用户选择允许第一终端连接第二终端热点,则第二终端将自身的热点信息通过蓝牙低功耗通道或WI-FI通道发送给第一终端。具体的,可以携带在蓝牙广播消息中的可选字段中。而后,第一终端在接收到第二终端发送的热点信息后,可执行步骤S106。Specifically, if the second terminal detects that the user selects to allow the first terminal to connect to the second terminal hotspot, the second terminal sends the hotspot information of the second terminal to the first terminal through the Bluetooth low energy channel or the WI-FI channel. Specifically, it can be carried in an optional field in the Bluetooth broadcast message. Then, after receiving the hotspot information sent by the second terminal, the first terminal may perform step S106.
由此,本申请实施例提供的网络连接方法,第一终端可以通过蓝牙扫描到能够提供热点的第二终端,并在第一终端的界面中显示第二终端热点的信息,以便于用户可以选择连接第二终端热点。在用户选择连接第二终端热点后,第一终端可以自动连接第二终端的热点,相比于原来复杂的操作,本申请实施例提供的手动连接得到第二终端的热点,有利于简化用户的操作,有利于提升网络服务质量,提升用户体验。Therefore, in the network connection method provided by the embodiment of the present application, the first terminal may scan the second terminal that can provide the hotspot through the Bluetooth, and display the information of the second terminal hotspot in the interface of the first terminal, so that the user can select Connect to the second terminal hotspot. After the user selects to connect to the second terminal hotspot, the first terminal can automatically connect to the hotspot of the second terminal. Compared with the original complicated operation, the manual connection provided by the embodiment of the present application obtains the hotspot of the second terminal, which is beneficial to simplifying the user. Operation will help improve the quality of network services and enhance the user experience.
可以理解的是,上述第一终端和第二终端为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本发明实施例能够以硬件或硬件和 计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明实施例的范围。It can be understood that, in order to implement the above functions, the first terminal and the second terminal include hardware structures and/or software modules corresponding to each function. Those skilled in the art will readily appreciate that the embodiments of the present invention can be implemented in a combination of hardware or hardware and computer software in combination with the elements and algorithm steps of the various examples described in the embodiments disclosed herein. Whether a function is implemented in hardware or computer software to drive hardware depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods to implement the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the embodiments of the invention.
本申请实施例可以根据上述方法示例对上述第一终端和第二终端进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本发明实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。本申请装置实施例中所涉及的终端均是用于实现以上各方法实施例的装置。The embodiment of the present application may perform the division of the function modules on the first terminal and the second terminal according to the foregoing method example. For example, each function module may be divided according to each function, or two or more functions may be integrated into one process. In the module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of the module in the embodiment of the present invention is schematic, and is only a logical function division, and the actual implementation may have another division manner. The terminals involved in the device embodiments of the present application are all devices for implementing the foregoing method embodiments.
在采用对应各个功能划分各个功能模块的情况下,图8示出了上述实施例中所涉及的第一终端的一种可能的结构示意图。如图8所示,第一终端800包括:发送单元801、接收单元802、处理单元803。FIG. 8 shows a possible structural diagram of the first terminal involved in the foregoing embodiment in the case where the respective functional modules are divided by corresponding functions. As shown in FIG. 8, the first terminal 800 includes a transmitting unit 801, a receiving unit 802, and a processing unit 803.
其中,发送单元801用于支持第一终端执行图7中(1)的S101和S103,图7中(2)的S110,和/或用于本文所描述的技术的其它过程。接收单元802用于支持第一终端接收第二终端向第一终端发送的响应消息、热点信息等,和/或用于本文所描述的技术的其它过程。处理单元803用于支持第一终端执行图7中(1)的S106,图7中(2)的S109,和/或用于本文所描述的技术的其它过程。The transmitting unit 801 is configured to support the first terminal to perform S101 and S103 in (1) of FIG. 7, S110 in (2) in FIG. 7, and/or other processes for the techniques described herein. The receiving unit 802 is configured to support the first terminal to receive a response message, hotspot information, and the like sent by the second terminal to the first terminal, and/or other processes for the techniques described herein. The processing unit 803 is configured to support the first terminal to perform S106 of (1) in FIG. 7, S109 of (2) in FIG. 7, and/or other processes for the techniques described herein.
其中,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。All the related content of the steps involved in the foregoing method embodiments may be referred to the functional descriptions of the corresponding functional modules, and details are not described herein again.
当然,第一终端800还包括显示单元804,用于显示图2、图3、图4和图6所示的任一界面以及其他界面。第一终端800还可以包括存储单元,用于存储程序代码和数据等。第一终端800还可以包括通信单元,用于第一终端与第二终端进行交互。并且,上述功能单元的具体所能够实现的功能也包括但不限于上述实例所述的方法步骤对应的功能,第一终端800的其他单元的详细描述可以参考其所对应方法步骤的详细描述,本申请实施例这里不再赘述。Of course, the first terminal 800 further includes a display unit 804 for displaying any of the interfaces shown in FIG. 2, FIG. 3, FIG. 4, and FIG. 6, as well as other interfaces. The first terminal 800 may further include a storage unit for storing program codes, data, and the like. The first terminal 800 may further include a communication unit configured to interact with the second terminal by the first terminal. Moreover, the functions that can be implemented by the foregoing functional units include, but are not limited to, the functions corresponding to the method steps described in the foregoing examples. For detailed descriptions of other units of the first terminal 800, reference may be made to the detailed description of the corresponding method steps. The application examples are not described herein again.
在采用集成的单元的情况下,上述处理单元可以是第一终端的处理模块。上述显示单元可以是第一终端的显示模块,如触摸屏。上述的通信单元可以是第一终端的通信模块,如RF电路、Wi-Fi模块或者蓝牙模块。上述存储单元可以是第一终端的存储模块。In the case of an integrated unit, the processing unit described above may be a processing module of the first terminal. The above display unit may be a display module of the first terminal, such as a touch screen. The communication unit described above may be a communication module of the first terminal, such as an RF circuit, a Wi-Fi module, or a Bluetooth module. The above storage unit may be a storage module of the first terminal.
在采用对应各个功能划分各个功能模块的情况下,图9示出了上述实施例中所涉及的第二终端的一种可能的结构示意图。如图9所示,第二终端900包括:发送单元901、接收单元902、处理单元903。FIG. 9 shows a possible structural diagram of the second terminal involved in the foregoing embodiment in the case where the respective functional modules are divided by corresponding functions. As shown in FIG. 9, the second terminal 900 includes a sending unit 901, a receiving unit 902, and a processing unit 903.
其中,发送单元901用于支持第二终端执行图7中(1)的S102和S105,图7中(2)的S108和S112,和/或用于本文所描述的技术的其它过程。接收单元902用于支持第二终端接收第一终端发送的请求消息等,和/或用于本文所描述的技术的其它过程。处理单元803用于支持第二终端执行图7中(1)的S104,用于支持第二终端执行图7中(1)的S104,图7中(2)的S107,S111和/或用于本文所描述的技术的其它过程。The transmitting unit 901 is configured to support the second terminal to execute S102 and S105 of (1) in FIG. 7, S108 and S112 of (2) in FIG. 7, and/or other processes for the techniques described herein. The receiving unit 902 is configured to support the second terminal to receive a request message or the like sent by the first terminal, and/or other processes for the techniques described herein. The processing unit 803 is configured to support the second terminal to execute S104 in (1) of FIG. 7 for supporting the second terminal to execute S104 of (1) in FIG. 7, S107, S111 of (2) in FIG. 7 and/or for Other processes of the techniques described herein.
其中,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。All the related content of the steps involved in the foregoing method embodiments may be referred to the functional descriptions of the corresponding functional modules, and details are not described herein again.
当然,第二终端900还包括显示单元,用于显示图5所示的界面以及其他界面。第二终端900还可以包括存储单元,用于存储程序代码和数据等。第二终端900还可以包括通信单元,用于第二终端与第一终端进行交互。并且,上述功能单元的具体所能够实现的功能也包括但不限于上述实例所述的方法步骤对应的功能,第二终端900的其他单元的详细描述可以参考其所对应方法步骤的详细描述,本申请实施例这里不再赘述。Of course, the second terminal 900 further includes a display unit for displaying the interface shown in FIG. 5 and other interfaces. The second terminal 900 may further include a storage unit for storing program codes, data, and the like. The second terminal 900 may further include a communication unit for the second terminal to interact with the first terminal. The specific functions that can be implemented by the foregoing functional units include, but are not limited to, the functions corresponding to the method steps described in the foregoing examples. For detailed descriptions of other units of the second terminal 900, reference may be made to the detailed description of the corresponding method steps. The application examples are not described herein again.
在采用集成的单元的情况下,上述处理单元可以是第二终端的处理模块。上述显示单元可以是第二终端的显示模块,如触摸屏。上述的通信单元可以是第二终端的通信模块,如RF电路、Wi-Fi模块或者蓝牙模块。上述存储单元可以是第二终端的存储模块。In the case of an integrated unit, the processing unit described above may be a processing module of the second terminal. The above display unit may be a display module of the second terminal, such as a touch screen. The communication unit described above may be a communication module of the second terminal, such as an RF circuit, a Wi-Fi module, or a Bluetooth module. The above storage unit may be a storage module of the second terminal.
图10示出了上述实施例中所涉及的第一终端的一种可能的结构示意图。第一终端1000包括:处理模块1001、存储模块1002和通信模块1003。处理模块1001用于对第一终端的动作进行控制管理。存储模块1002,用于保存第一终端的程序代码和数据。通信模块1003用于与其他终端通信。其中,处理模块1001可以是处理器或控制器,例如可以是中央处理器(Central Processing Unit,CPU),通用处理器,数字信号处理器(Digital Signal Processor,DSP),专用集成电路(Application-Specific Integrated Circuit,ASIC),现场可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本发明公开内容所描述的各种示例性的逻辑方框,模块和电路。所述处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等等。通信模块1003可以是收发器、收发电路或通信接口等。存储模块1002可以是存储器。FIG. 10 is a schematic diagram showing a possible structure of the first terminal involved in the above embodiment. The first terminal 1000 includes a processing module 1001, a storage module 1002, and a communication module 1003. The processing module 1001 is configured to control and manage the action of the first terminal. The storage module 1002 is configured to save program codes and data of the first terminal. The communication module 1003 is for communicating with other terminals. The processing module 1001 may be a processor or a controller, such as a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), and an application-specific integrated circuit (Application-Specific). Integrated Circuit (ASIC), Field Programmable Gate Array (FPGA) or other programmable logic device, transistor logic device, hardware component, or any combination thereof. It is possible to implement or carry out the various illustrative logical blocks, modules and circuits described in connection with the present disclosure. The processor may also be a combination of computing functions, for example, including one or more microprocessor combinations, a combination of a DSP and a microprocessor, and the like. The communication module 1003 may be a transceiver, a transceiver circuit, a communication interface, or the like. The storage module 1002 can be a memory.
当处理模块1001为处理器(如图1所示的处理器101),通信模块1003为RF收发电路(如图1所示的射频电路102),存储模块1002为存储器(如图1所示的存储器103)时,本申请实施例所提供的终端可以为图1所示的终端100。其中,上述通信模块1003不仅可以包括RF电路,还可以包括Wi-Fi模块和蓝牙模块。RF电路、Wi-Fi模块和蓝牙模块等通信模块可以统称为通信接口。其中,上述处理器、通信接口和存储器可以通过总线耦合在一起。When the processing module 1001 is a processor (such as the processor 101 shown in FIG. 1), the communication module 1003 is an RF transceiver circuit (such as the RF circuit 102 shown in FIG. 1), and the storage module 1002 is a memory (as shown in FIG. 1). In the memory 103), the terminal provided by the embodiment of the present application may be the terminal 100 shown in FIG. 1. The communication module 1003 may include not only an RF circuit but also a Wi-Fi module and a Bluetooth module. Communication modules such as RF circuits, Wi-Fi modules, and Bluetooth modules can be collectively referred to as communication interfaces. Wherein, the above processor, communication interface and memory can be coupled together by a bus.
图11示出了上述实施例中所涉及的第二终端的一种可能的结构示意图。第二终端1100包括:处理模块1101、存储模块1102和通信模块1103。处理模块1101用于对第二终端的动作进行控制管理。存储模块1102,用于保存第二终端的程序代码和数据。通信模块1103用于与其他终端通信。其中,处理模块1101可以是处理器或控制器,例如可以是中央处理器(Central Processing Unit,CPU),通用处理器,数字信号处理器(Digital Signal Processor,DSP),专用集成电路(Application-Specific Integrated Circuit,ASIC),现场可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本发明公开内容所描述的各种示例性的逻辑方框,模块和电路。所述处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等等。 通信模块1103可以是收发器、收发电路或通信接口等。存储模块1102可以是存储器。FIG. 11 is a schematic diagram showing a possible structure of the second terminal involved in the above embodiment. The second terminal 1100 includes a processing module 1101, a storage module 1102, and a communication module 1103. The processing module 1101 is configured to perform control management on the action of the second terminal. The storage module 1102 is configured to save program codes and data of the second terminal. The communication module 1103 is for communicating with other terminals. The processing module 1101 may be a processor or a controller, and may be, for example, a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), and an application-specific integrated circuit (Application-Specific). Integrated Circuit (ASIC), Field Programmable Gate Array (FPGA) or other programmable logic device, transistor logic device, hardware component, or any combination thereof. It is possible to implement or carry out the various illustrative logical blocks, modules and circuits described in connection with the present disclosure. The processor may also be a combination of computing functions, for example, including one or more microprocessor combinations, a combination of a DSP and a microprocessor, and the like. The communication module 1103 can be a transceiver, a transceiver circuit, a communication interface, or the like. The storage module 1102 can be a memory.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Through the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and brevity of the description, only the division of the above functional modules is illustrated. In practical applications, the above functions can be allocated according to needs. It is completed by different functional modules, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. For the specific working process of the system, the device and the unit described above, reference may be made to the corresponding process in the foregoing method embodiments, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be used. Combinations can be integrated 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 in an electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application 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.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:快闪存储器、移动硬盘、只读存储器、随机存取存储器、磁碟或者光盘等各种可以存储程序代码的介质。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 application, in essence or the contribution 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.) or processor to perform all or part of the steps of the methods described in various embodiments of the present application. The foregoing storage medium includes: a flash memory, a mobile hard disk, a read only memory, a random access memory, a magnetic disk, or an optical disk, and the like, which can store program codes.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The foregoing is only a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present application should be covered by the scope of the present application. . Therefore, the scope of protection of the present application should be determined by the scope of the claims.

Claims (30)

  1. 一种网络连接的方法,其特征在于,应用于第一无线终端,所述方法包括:A method for network connection, characterized in that it is applied to a first wireless terminal, and the method includes:
    所述第一无线终端通过蓝牙扫描发现第二终端,其中所述第二终端为未与所述第一无线终端建立蓝牙和热点连接的终端;The first wireless terminal discovers a second terminal by using a Bluetooth scan, where the second terminal is a terminal that does not establish a Bluetooth and hotspot connection with the first wireless terminal;
    响应于确定所述第一无线终端和所述第二终端登录同一账户,所述第一无线终端自动向所述第二终端发送第一请求,所述第一请求用于通知所述第二终端开启热点;In response to determining that the first wireless terminal and the second terminal are logged into the same account, the first wireless terminal automatically sends a first request to the second terminal, the first request for notifying the second terminal Turn on the hotspot;
    所述第一无线终端接收所述第二终端的热点信息;Receiving, by the first wireless terminal, hot spot information of the second terminal;
    所述第一无线终端根据接收到的所述第二终端的热点信息连接所述第二终端的热点。The first wireless terminal connects the hotspot of the second terminal according to the received hotspot information of the second terminal.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:
    响应于确定所述第一无线终端和所述第二终端登录不同账户,所述第一无线终端自动向所述第二终端发送第二请求,所述第二请求用于通知所述第二终端上报所述第二终端的网络能力信息,所述网络能力信息包括所述第二终端是否具有热点共享能力和/或所述第二终端是否开启了移动数据业务;In response to determining that the first wireless terminal and the second terminal are logged into different accounts, the first wireless terminal automatically sends a second request to the second terminal, the second request for notifying the second terminal Reporting the network capability information of the second terminal, where the network capability information includes whether the second terminal has a hotspot sharing capability and/or whether the second terminal has enabled the mobile data service;
    所述第一无线终端接收所述第二终端发送的所述第二终端的网络能力信息;Receiving, by the first wireless terminal, network capability information of the second terminal that is sent by the second terminal;
    响应于确定所述第二终端具有热点共享能力,且开启了移动数据业务,所述第一无线终端将所述第二终端标识显示为热点。In response to determining that the second terminal has a hotspot sharing capability and the mobile data service is enabled, the first wireless terminal displays the second terminal identifier as a hotspot.
  3. 根据权利要求2所述的方法,其特征在于,在所述第一无线终端接收所述第二终端发送的所述第二终端的网络能力信息之后,所述方法还包括:The method according to claim 2, wherein after the first wireless terminal receives the network capability information of the second terminal sent by the second terminal, the method further includes:
    所述第一无线终端接收用户选择连接所述第二终端的热点的操作;Receiving, by the first wireless terminal, an operation that the user selects to connect to the hotspot of the second terminal;
    所述第一无线终端向所述第二终端发送第三请求,所述第三请求用于通知所述第二终端开启热点;所述第一无线终端根据接收到的第二终端热点信息连接所述第二终端的热点。The first wireless terminal sends a third request to the second terminal, where the third request is used to notify the second terminal to enable a hotspot; the first wireless terminal connects according to the received second terminal hotspot information. The hotspot of the second terminal is described.
  4. 根据权利要求1-3任一项所述的方法,其特征在于,在所述第一无线终端通过蓝牙扫描发现所述第二终端之前,所述方法还包括:The method according to any one of claims 1-3, wherein before the first wireless terminal discovers the second terminal by using a Bluetooth scan, the method further includes:
    所述第一无线终端接收所述用户开启所述第一无线终端的网络连接功能的操作。The first wireless terminal receives an operation of the user to enable a network connection function of the first wireless terminal.
  5. 根据权利要求4所述的方法,其特征在于,所述方法还包括:The method of claim 4, wherein the method further comprises:
    在所述第一无线终端接收所述用户开启所述第一无线终端的网络连接功能的操作之后,所述第一无线终端未扫描到可用的无线局域网信号。After the first wireless terminal receives the operation of the user to enable the network connection function of the first wireless terminal, the first wireless terminal does not scan for an available wireless local area network signal.
  6. 根据权利要求1-5任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 5, wherein the method further comprises:
    在所述第一无线终端通过蓝牙扫描发现所述第二终端之前,所述第一无线终端确定所述第一无线终端的网络质量满足预设条件,所述预设条件包括网络传输速率低于阈值。Before the first wireless terminal discovers the second terminal by using a Bluetooth scan, the first wireless terminal determines that the network quality of the first wireless terminal meets a preset condition, where the preset condition includes that the network transmission rate is lower than Threshold.
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述第二终端的热点信息包括所述第二终端的热点名称、所述第二终端的热点密码和传输控制协议TCP端口信息中的至少一项。The method according to any one of claims 1-6, wherein the hotspot information of the second terminal includes a hotspot name of the second terminal, a hotspot password of the second terminal, and a TCP port of a transmission control protocol. At least one of the information.
  8. 一种网络连接的方法,其特征在于,应用于第二终端,所述方法包括:A method for network connection, characterized in that it is applied to a second terminal, and the method includes:
    所述第二终端接收到第一无线终端发送的包含第一请求的蓝牙消息,所述第一请求用于通知所述第二终端开启热点,其中所述第二终端为未与所述第一无线终端建立 蓝牙和热点连接的终端;The second terminal receives the Bluetooth message that is sent by the first wireless terminal and includes the first request, where the first request is used to notify the second terminal to enable the hotspot, where the second terminal is not the first The wireless terminal establishes a terminal connected by Bluetooth and a hotspot;
    响应于确定所述第一无线终端和所述第二终端登录同一账户,所述第二终端开启热点;In response to determining that the first wireless terminal and the second terminal log in to the same account, the second terminal turns on the hotspot;
    所述第二终端将所述第二终端的热点信息通过蓝牙通道发送给所述第一无线终端。The second terminal sends the hotspot information of the second terminal to the first wireless terminal by using a Bluetooth channel.
  9. 根据权利要求8所述的方法,其特征在于,所述方法还包括:The method of claim 8 further comprising:
    所述第二终端接收所述第一无线终端发送的第二请求,所述第二请求用于通知所述第二终端上报所述第二终端的网络能力信息,所述网络能力信息包括所述第二终端是否具有热点共享能力和/或所述第二终端是否开启了移动数据业务;The second terminal receives the second request sent by the first wireless terminal, where the second request is used to notify the second terminal to report network capability information of the second terminal, where the network capability information includes the Whether the second terminal has hotspot sharing capability and/or whether the second terminal has enabled the mobile data service;
    响应于确定所述第一无线终端和所述第二终端登录不同账户,以及确定所述第二终端具有热点共享能力,且开启了移动数据业务,所述第二终端将所述第二终端的网络能力信息通过蓝牙通道发送给所述第一无线终端。In response to determining that the first wireless terminal and the second terminal log in to different accounts, and determining that the second terminal has hotspot sharing capability, and the mobile data service is enabled, the second terminal is configured by the second terminal The network capability information is sent to the first wireless terminal through a Bluetooth channel.
  10. 根据权利要求9所述的方法,其特征在于,所述方法还包括:The method of claim 9 wherein the method further comprises:
    所述第二终端接收所述第一无线终端发送的第三请求,所述第三请求用于通知所述第二终端开启热点;Receiving, by the second terminal, a third request sent by the first wireless terminal, where the third request is used to notify the second terminal to enable a hotspot;
    所述第二终端生成提示信息,所述提示信息用于提示用户所述第一无线终端请求连接所述第二终端的热点。The second terminal generates prompt information, where the prompt information is used to prompt the user that the first wireless terminal requests to connect to the hotspot of the second terminal.
  11. 根据权利要求10所述的方法,其特征在于,所述方法还包括:The method of claim 10, wherein the method further comprises:
    所述第二终端接收所述用户的允许所述第一无线终端连接所述第二终端的热点的操作;Receiving, by the second terminal, an operation of the user that allows the first wireless terminal to connect to a hotspot of the second terminal;
    所述第二终端开启热点,并将所述第二终端的热点信息通过蓝牙通道发送给所述第一无线终端。The second terminal turns on the hotspot, and sends the hotspot information of the second terminal to the first wireless terminal by using a Bluetooth channel.
  12. 根据权利要求8-11任一项所述的方法,其特征在于,所述第二终端的热点信息包括所述第二终端的热点名称、所述第二终端的热点密码和传输控制协议TCP端口信息中的至少一项。The method according to any one of claims 8 to 11, wherein the hotspot information of the second terminal includes a hotspot name of the second terminal, a hotspot password of the second terminal, and a TCP port of a transmission control protocol. At least one of the information.
  13. 一种第一无线终端,其特征在于,包括:A first wireless terminal, comprising:
    发送单元,用于通过蓝牙扫描发现第二终端,其中所述第二终端为未与所述第一无线终端建立蓝牙和热点连接的终端;a sending unit, configured to discover a second terminal by using a Bluetooth scan, where the second terminal is a terminal that does not establish a Bluetooth and hotspot connection with the first wireless terminal;
    所述发送单元,还用于响应于确定所述第一无线终端和所述第二终端登录同一账户,自动向所述第二终端发送第一请求,所述第一请求用于通知所述第二终端开启热点;The sending unit is further configured to automatically send a first request to the second terminal in response to determining that the first wireless terminal and the second terminal log in to the same account, where the first request is used to notify the The second terminal turns on the hotspot;
    接收单元,用于接收所述第二终端的热点信息;a receiving unit, configured to receive hotspot information of the second terminal;
    处理单元,用于根据接收到的所述第二终端的热点信息连接所述第二终端的热点。The processing unit is configured to connect the hotspot of the second terminal according to the received hotspot information of the second terminal.
  14. 根据权利要求13所述的第一无线终端,其特征在于,还包括显示单元,The first wireless terminal according to claim 13, further comprising a display unit,
    所述发送单元,还用于响应于确定所述第一无线终端和所述第二终端登录不同账户,自动向所述第二终端发送第二请求,所述第二请求用于通知所述第二终端上报所述第二终端的网络能力信息,所述网络能力信息包括所述第二终端是否具有热点共享能力和/或所述第二终端是否开启了移动数据业务;The sending unit is further configured to automatically send a second request to the second terminal in response to determining that the first wireless terminal and the second terminal log in to different accounts, where the second request is used to notify the The second terminal reports the network capability information of the second terminal, where the network capability information includes whether the second terminal has hotspot sharing capability and/or whether the second terminal has enabled the mobile data service;
    所述接收单元,还用于接收所述第二终端发送的所述第二终端的网络能力信息;The receiving unit is further configured to receive network capability information of the second terminal that is sent by the second terminal;
    所述显示单元,用于响应于确定所述第二终端具有热点共享能力,且开启了移动 数据业务,将所述第二终端标识显示为热点。The display unit is configured to display the second terminal identifier as a hotspot in response to determining that the second terminal has a hotspot sharing capability and the mobile data service is enabled.
  15. 根据权利要求14所述的第一无线终端,其特征在于,所述接收单元,还用于接收用户选择连接所述第二终端的热点的操作;The first wireless terminal according to claim 14, wherein the receiving unit is further configured to receive an operation of the user selecting to connect to the hotspot of the second terminal;
    所述发送单元,还用于向所述第二终端发送第三请求,所述第三请求用于通知所述第二终端开启热点;The sending unit is further configured to send a third request to the second terminal, where the third request is used to notify the second terminal to enable a hotspot;
    所述处理单元,还用于根据接收到的第二终端热点信息连接所述第二终端的热点。The processing unit is further configured to connect the hotspot of the second terminal according to the received second terminal hotspot information.
  16. 根据权利要求13-15任一项所述的第一无线终端,其特征在于,所述接收单元,还用于接收所述用户开启所述第一无线终端的网络连接功能的操作。The first wireless terminal according to any one of claims 13 to 15, wherein the receiving unit is further configured to receive an operation of the user to enable a network connection function of the first wireless terminal.
  17. 根据权利要求16所述的第一无线终端,其特征在于,The first wireless terminal of claim 16 wherein:
    所述接收单元,还用于接收所述用户开启所述第一无线终端的网络连接功能的操作之后,所述第一无线终端未扫描到可用的无线局域网信号。The receiving unit is further configured to: after receiving the operation of the user to enable the network connection function of the first wireless terminal, the first wireless terminal does not scan for an available wireless local area network signal.
  18. 根据权利要求13-17任一项所述的第一无线终端,其特征在于,A first wireless terminal according to any of claims 13-17, characterized in that
    所述确定单元,还用于确定所述第一无线终端的网络质量满足预设条件,所述预设条件包括网络传输速率低于阈值。The determining unit is further configured to determine that the network quality of the first wireless terminal meets a preset condition, where the preset condition includes that the network transmission rate is lower than a threshold.
  19. 根据权利要求13-18任一项所述的第一无线终端,其特征在于,所述第二终端的热点信息包括所述第二终端的热点名称、所述第二终端的热点密码和传输控制协议TCP端口信息中的至少一项。The first wireless terminal according to any one of claims 13 to 18, wherein the hotspot information of the second terminal includes a hotspot name of the second terminal, a hotspot password of the second terminal, and a transmission control. At least one of the protocol TCP port information.
  20. 一种无线终端,其特征在于,包括:A wireless terminal, comprising:
    接收单元,用于接收到第一无线终端发送的包括第一请求的蓝牙消息,所述第一请求用于通知第二终端开启热点,其中所述第二终端为未与所述第一无线终端建立蓝牙和热点连接的终端;a receiving unit, configured to receive a Bluetooth message that is sent by the first wireless terminal, where the first request is used to notify the second terminal to enable the hotspot, where the second terminal is not the first wireless terminal Establish a terminal for Bluetooth and hotspot connection;
    处理单元,用于响应于确定所述第一无线终端和所述第二终端登录同一账户,开启热点;a processing unit, configured to start a hotspot in response to determining that the first wireless terminal and the second terminal log in to the same account;
    发送单元,用于将所述第二终端的热点信息通过蓝牙通道发送给所述第一无线终端。And a sending unit, configured to send hotspot information of the second terminal to the first wireless terminal by using a Bluetooth channel.
  21. 根据权利要求20所述的无线终端,其特征在于,The wireless terminal of claim 20, wherein
    所述接收单元,还用于接收所述第一无线终端发送的第二请求,所述第二请求用于通知所述第二终端上报所述第二终端的网络能力信息,所述网络能力信息包括所述第二终端是否具有热点共享能力和/或所述第二终端是否开启了移动数据业务;The receiving unit is further configured to receive a second request sent by the first wireless terminal, where the second request is used to notify the second terminal to report network capability information of the second terminal, where the network capability information is Include whether the second terminal has hotspot sharing capability and/or whether the second terminal has enabled mobile data services;
    所述发送单元,还用于响应于确定所述第一无线终端和所述第二终端登录不同账户,以及确定所述第二终端具有热点共享能力,且开启了移动数据业务,将所述第二终端的网络能力信息通过蓝牙通道发送给所述第一无线终端。The sending unit is further configured to: in response to determining that the first wireless terminal and the second terminal log in to different accounts, and determining that the second terminal has hotspot sharing capability, and the mobile data service is enabled, The network capability information of the second terminal is sent to the first wireless terminal through a Bluetooth channel.
  22. 根据权利要求21所述的无线终端,其特征在于,还包括处理单元,The wireless terminal of claim 21, further comprising a processing unit
    所述接收单元,还用于接收所述第一无线终端发送的第三请求,所述第三请求用于通知所述第二终端开启热点;The receiving unit is further configured to receive a third request sent by the first wireless terminal, where the third request is used to notify the second terminal to enable a hotspot;
    所述处理单元,用于生成提示信息,所述提示信息用于提示用户所述第一无线终端请求连接所述第二终端的热点。The processing unit is configured to generate prompt information, where the prompt information is used to prompt the user that the first wireless terminal requests to connect to the hotspot of the second terminal.
  23. 根据权利要求22所述的无线终端,其特征在于,The wireless terminal of claim 22, wherein
    所述接收单元,用于接收所述用户的允许所述第一无线终端连接所述第二终端的 热点的操作;The receiving unit is configured to receive an operation of the user that allows the first wireless terminal to connect to a hotspot of the second terminal;
    所述处理单元,还用于开启热点,并将所述第二终端的热点信息通过蓝牙通道发送给所述第一无线终端。The processing unit is further configured to enable a hot spot, and send the hot spot information of the second terminal to the first wireless terminal by using a Bluetooth channel.
  24. 根据权利要求20-23任一项所述的无线终端,其特征在于,所述第二终端的热点信息包括所述第二终端的热点名称、所述第二终端的热点密码和传输控制协议TCP端口信息中的至少一项。The wireless terminal according to any one of claims 20 to 23, wherein the hotspot information of the second terminal includes a hotspot name of the second terminal, a hotspot password of the second terminal, and a transmission control protocol TCP. At least one of the port information.
  25. 一种计算机存储介质,其特征在于,包括计算机指令,当所述计算机指令在终端上运行时,使得所述终端执行如权利要求1-7中任一项所述的方法。A computer storage medium, comprising computer instructions that, when executed on a terminal, cause the terminal to perform the method of any of claims 1-7.
  26. 一种计算机存储介质,其特征在于,包括计算机指令,当所述计算机指令在终端上运行时,使得所述终端执行如权利要求8-12中任一项所述的方法。A computer storage medium, comprising computer instructions that, when executed on a terminal, cause the terminal to perform the method of any one of claims 8-12.
  27. 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如权利要求1-7中任一项所述的方法。A computer program product, wherein the computer program product, when run on a computer, causes the computer to perform the method of any one of claims 1-7.
  28. 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如权利要求8-12中任一项所述的方法。A computer program product, wherein the computer program product, when run on a computer, causes the computer to perform the method of any one of claims 8-12.
  29. 一种无线终端,其特征在于,包括:处理器、存储器和触摸屏,所述存储器、所述触摸屏与所述处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述处理器执行所述计算机指令时,所述终端执行如权利要求1-7中任一项所述的方法。A wireless terminal, comprising: a processor, a memory and a touch screen, the memory, the touch screen being coupled to the processor, the memory for storing computer program code, the computer program code comprising computer instructions The terminal performs the method of any one of claims 1-7 when the processor executes the computer instructions.
  30. 一种无线终端,其特征在于,包括:处理器、存储器和触摸屏,所述存储器、所述触摸屏与所述处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述处理器执行所述计算机指令时,所述终端执行如权利要求8-12中任一项所述的方法。A wireless terminal, comprising: a processor, a memory and a touch screen, the memory, the touch screen being coupled to the processor, the memory for storing computer program code, the computer program code comprising computer instructions The terminal performs the method of any one of claims 8-12 when the processor executes the computer instructions.
PCT/CN2018/073509 2018-01-19 2018-01-19 Method and device for network connection and terminal WO2019140657A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2018/073509 WO2019140657A1 (en) 2018-01-19 2018-01-19 Method and device for network connection and terminal
CN201880020093.0A CN110622571B (en) 2018-01-19 2018-01-19 Network connection method, device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/073509 WO2019140657A1 (en) 2018-01-19 2018-01-19 Method and device for network connection and terminal

Publications (1)

Publication Number Publication Date
WO2019140657A1 true WO2019140657A1 (en) 2019-07-25

Family

ID=67301643

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/073509 WO2019140657A1 (en) 2018-01-19 2018-01-19 Method and device for network connection and terminal

Country Status (2)

Country Link
CN (1) CN110622571B (en)
WO (1) WO2019140657A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112243221A (en) * 2020-10-23 2021-01-19 珠海格力电器股份有限公司 Sharing method and device for 5G communication, storage medium and electronic device
WO2022237721A1 (en) * 2021-05-14 2022-11-17 华为技术有限公司 Networking method, and relevant apparatus and system

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111629412A (en) * 2019-12-31 2020-09-04 山东信通电子股份有限公司 WLAN network card switching method and device based on Android system
CN112261651B (en) * 2020-10-20 2023-06-23 北京字节跳动网络技术有限公司 Terminal control method, device, terminal and storage medium
CN114980224B (en) * 2021-02-26 2024-04-12 华为技术有限公司 WiFi hotspot switching method, terminal equipment and storage medium
CN113689622B (en) * 2021-08-16 2023-04-21 海南睿德感知物联科技有限公司 Intelligent vending machine with multiple communication modules
CN113709850A (en) * 2021-09-06 2021-11-26 联想(北京)有限公司 Control method and terminal equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110227853A1 (en) * 2010-03-11 2011-09-22 Warungu Kena Self-service digital table-top menu ordering device
CN105188013A (en) * 2015-06-26 2015-12-23 北京锤子数码科技有限公司 Network hotspot sharing method, device and system
CN106358264A (en) * 2016-11-08 2017-01-25 珠海市魅族科技有限公司 Network sharing method and terminal
CN106535092A (en) * 2016-11-01 2017-03-22 惠州Tcl移动通信有限公司 Network sharing method, network accessing method and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9220065B2 (en) * 2012-01-16 2015-12-22 Smith Micro Software, Inc. Enabling a mobile broadband hotspot by an auxiliary radio
CN103428283B (en) * 2013-08-06 2017-04-05 惠州华阳通用电子有限公司 The method of the shared intelligent mobile terminal network of car-mounted terminal
CN103619077A (en) * 2013-11-26 2014-03-05 深圳市诺威达科技有限公司 Method for sharing WIFI of mobile terminal
CN104363634A (en) * 2014-10-29 2015-02-18 深圳市金立通信设备有限公司 Method for acquiring Bluetooth broadcasting information
CN106993267A (en) * 2017-04-01 2017-07-28 维沃移动通信有限公司 A kind of hotspot connection method, first terminal and second terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110227853A1 (en) * 2010-03-11 2011-09-22 Warungu Kena Self-service digital table-top menu ordering device
CN105188013A (en) * 2015-06-26 2015-12-23 北京锤子数码科技有限公司 Network hotspot sharing method, device and system
CN106535092A (en) * 2016-11-01 2017-03-22 惠州Tcl移动通信有限公司 Network sharing method, network accessing method and system
CN106358264A (en) * 2016-11-08 2017-01-25 珠海市魅族科技有限公司 Network sharing method and terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112243221A (en) * 2020-10-23 2021-01-19 珠海格力电器股份有限公司 Sharing method and device for 5G communication, storage medium and electronic device
WO2022237721A1 (en) * 2021-05-14 2022-11-17 华为技术有限公司 Networking method, and relevant apparatus and system

Also Published As

Publication number Publication date
CN110622571A (en) 2019-12-27
CN110622571B (en) 2021-01-12

Similar Documents

Publication Publication Date Title
WO2019140657A1 (en) Method and device for network connection and terminal
CN110622123B (en) Display method and device
AU2018421189B2 (en) Method for quickly opening application or application function, and terminal
WO2019183810A1 (en) Method for sharing data in local area network and electronic device
EP3624404B1 (en) Method and device for establishing wireless communication connection
WO2018161962A1 (en) Method, electronic device and system for sharing images
WO2019227488A1 (en) Method for viewing information content, and terminal
CN110431868B (en) Wi-Fi hotspot connection method and terminal
JP6714803B1 (en) Image sharing method and electronic device
WO2018121086A1 (en) Method for connecting to hidden ap, and terminal device
WO2019184016A1 (en) Sim card authentication method and terminal
CN105704712B (en) Network resource sharing method, mobile terminal and server
CN111031471A (en) Data transmission method, terminal and base station
US11622319B2 (en) Electronic device for providing AP list and method for operating electronic device
WO2019178816A1 (en) Method and device for setting supplementary service
WO2017041610A1 (en) Method and apparatus for prompting nearby friend
WO2020029723A1 (en) Positioning method, related device, and computer readable storage medium
CN108763243A (en) Application program recommends method, apparatus, mobile terminal and server
CN106020945B (en) Shortcut item adding method and device
US10917842B2 (en) Access point connection method and terminal
CN112640533A (en) Electronic device for providing AP list and method for operating electronic device

Legal Events

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

Ref document number: 18901383

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

Country of ref document: EP

Kind code of ref document: A1