WO2018040621A1 - Hotspot sharing method, terminal, system and computer storage medium - Google Patents

Hotspot sharing method, terminal, system and computer storage medium Download PDF

Info

Publication number
WO2018040621A1
WO2018040621A1 PCT/CN2017/085229 CN2017085229W WO2018040621A1 WO 2018040621 A1 WO2018040621 A1 WO 2018040621A1 CN 2017085229 W CN2017085229 W CN 2017085229W WO 2018040621 A1 WO2018040621 A1 WO 2018040621A1
Authority
WO
WIPO (PCT)
Prior art keywords
wifi
terminal
network protocol
hotspot
protocol data
Prior art date
Application number
PCT/CN2017/085229
Other languages
French (fr)
Chinese (zh)
Inventor
黄镭
Original Assignee
深圳市中兴微电子技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市中兴微电子技术有限公司 filed Critical 深圳市中兴微电子技术有限公司
Publication of WO2018040621A1 publication Critical patent/WO2018040621A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • 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
    • H04W48/10Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/10Flow control between communication endpoints
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals

Definitions

  • the present invention relates to wireless network technologies, and in particular, to a hotspot sharing method, terminal, system, and computer storage medium.
  • the mobile phone When a mobile phone is connected to a mobile phone hotspot provided by another mobile phone, the mobile phone does not know that the currently connected hotspot is a mobile phone hotspot, and the mobile hotspot is treated as a fixed WiFi hotspot, and the mobile phone has many running tasks in the background.
  • the network status changes and the network type is found to be WiFi, related synchronization and update actions will be performed, and even more, the background upgrade will be performed. Therefore, after connecting to this mobile phone hotspot and downloading the things that users need, it is often found that the actual traffic provided by the other party is much larger than the traffic we actually use. This is the reason for the large traffic consumption in the background caused by the hotspot sharing of mobile phones.
  • Embodiments of the present invention are expected to provide a hotspot sharing method, terminal, and system, and solve a hotspot total enjoy the background traffic consumption problem.
  • an embodiment of the present invention provides a hotspot sharing method, where the method is applied to a first terminal side that provides WiFi hotspot sharing, and the method includes:
  • the first terminal starts a WiFi hotspot
  • the first terminal acquires updated WiFi network protocol data by adding hot spot indication information to existing WiFi network protocol data;
  • the first terminal performs the SSID broadcast on the updated WiFi network protocol data.
  • the embodiment of the present invention provides a hotspot sharing method, where the method is applied to a second terminal side that uses a WiFi hotspot, the method includes:
  • the WiFi network protocol data is obtained
  • the second terminal parses the WiFi network protocol data
  • the second terminal accesses the WiFi hotspot corresponding to the WiFi network protocol data, and performs flow control on the network access after accessing the WiFi hotspot.
  • an embodiment of the present invention provides a first terminal for providing a WiFi hotspot sharing, where the first terminal includes: an open module, a first acquiring module, and a broadcast module;
  • the opening module is configured to enable a WiFi hotspot
  • the first obtaining module is configured to add hot spot indication information to existing WiFi network protocol data, and obtain updated WiFi network protocol data;
  • the broadcast module is configured to perform the SSID broadcast on the updated WiFi network protocol data.
  • the embodiment of the present invention provides a second terminal for sharing with a WiFi hotspot, where the second terminal includes: a scanning module, a second acquiring module, a parsing module, and a control module. among them,
  • the scanning module is configured to scan an SSID of a WiFi hotspot
  • the second acquiring module is configured to acquire WiFi network protocol data when the scanning module scans an SSID of the WiFi hotspot;
  • the parsing module is configured to parse the WiFi network protocol data
  • the control module is configured to access a WiFi hotspot corresponding to the WiFi network protocol data when the parsed WiFi network protocol data includes the hot spot indication information, and perform flow control on the network access after accessing the WiFi hotspot.
  • an embodiment of the present invention provides a hotspot sharing system, where the system includes: a first terminal that provides WiFi hotspot sharing and a second terminal that uses a WiFi hotspot to share, where
  • the first terminal is configured to enable a WiFi hotspot
  • the updated WiFi network protocol data is broadcasted by the SSID;
  • the second terminal configured to scan the SSID of the WiFi hotspot, obtains WiFi network protocol data
  • the second terminal accesses the WiFi hotspot corresponding to the WiFi network protocol data, and performs flow control on the network access after accessing the WiFi hotspot.
  • a terminal including:
  • a memory configured to store a computer program
  • WiFi communication module for providing WiFi hotspots and/or sharing WiFi hotspots
  • a processor respectively connected to the memory and the WiFi communication module, configured to pass Executing the computer program implements any of the aforementioned hotspot sharing methods.
  • a computer storage medium in a seventh aspect, storing computer executable instructions for performing any of the foregoing hotspot sharing methods.
  • the embodiment of the present invention provides a hotspot sharing method, a terminal, a system, and a computer storage medium.
  • the first terminal broadcasts a Service Set Identifier (SSID) for the WiFi network protocol data to which the hot spot indication information is added, and a second
  • the terminal compares the scanned SSID with the WiFi network protocol data.
  • the second terminal accesses the WiFi hotspot corresponding to the WiFi network protocol data, and accesses the WiFi hotspot.
  • Network access for traffic control to solve the problem of large traffic consumption in the background caused by hotspot sharing.
  • FIG. 1 is a schematic diagram of a hotspot sharing scenario according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a method for providing a terminal by using a hotspot according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of an updated WiFi network protocol data frame according to an embodiment of the present disclosure
  • FIG. 4 is a schematic flowchart of another method for providing hotspots according to an embodiment of the present invention.
  • FIG. 5 is a schematic flowchart of a method for a hotspot access terminal according to an embodiment of the present disclosure
  • FIG. 6 is a schematic diagram of a terminal display flow control prompting interface according to an embodiment of the present invention.
  • FIG. 7 is a schematic flowchart showing a detailed flow of a hotspot sharing method according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a hotspot providing terminal according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic structural diagram of a hotspot access terminal according to an embodiment of the present disclosure.
  • FIG. 10 is a schematic structural diagram of another hotspot access terminal according to an embodiment of the present disclosure.
  • FIG. 11 is a schematic structural diagram of a hotspot sharing system according to an embodiment of the present invention.
  • FIG. 1 is a schematic diagram of a scenario for performing hotspot sharing according to an embodiment of the present invention. It is to be understood that the scenario is only used to describe the technical solution of the embodiment of the present invention, and is not applicable to the embodiment of the present invention. Specifically limited.
  • the first terminal 10 and the second terminal 20 are generally composed, and the two communicate through the air interface network.
  • the basic idea of the embodiment of the present invention is: after the first terminal 10 turns on the WiFi hotspot function, the first terminal adds the hot spot tag information to the existing WiFi network protocol data, so that the second terminal 20 is When accessing the WiFi network opened by the first terminal 10, traffic control is performed on the network access after accessing the WiFi hotspot according to the hotspot flag information, thereby solving the problem of large background traffic consumption caused by hotspot sharing.
  • the method may be applied to a first terminal side that provides WiFi hotspot sharing.
  • the method may include:
  • S201 The first terminal starts a WiFi hotspot
  • S202 The first terminal acquires the updated WiFi network protocol data by adding the hot spot indication information to the existing WiFi network protocol data.
  • S203 The first terminal performs the SSID broadcast on the updated WiFi network protocol data.
  • the hotspot indication information is used to represent that the updated WiFi network protocol data is provided by the first terminal through the WiFi hotspot sharing, and the specific form of the hotspot indication information may be a character tag or a string tag, for example:
  • the "phoneWifiType" string the present invention is not limited to the above two methods, and may be other marking methods;
  • the hotspot indication information is added to the existing WiFi network protocol data, and the hotspot marking information may be added to the specified location of the existing WiFi network protocol data frame.
  • the hotspot marking information may be specifically added to the WiFi network. Reserved space of the protocol data frame;
  • the existing WiFi network protocol data and the existing WiFi network protocol data frame correspond to the existing WiFi network protocol.
  • the existing WiFi network protocol is used to represent that when the network access is performed, the download process and the background application are not downloaded. User prompts are required.
  • the hotspot indication information may be used to indicate the type of the current hotspot, for example, determining, according to the hotspot indication information, whether the currently connected hotspot is a hotspot provided by a mobile terminal such as a mobile phone hotspot, or a fixed WiFi device provides a fixed hotspot. hot spot.
  • the hot spot indication information may also be used to indicate indication information for performing current limiting control.
  • the hot spot indication information is used by the second terminal to trigger flow control when using the hotspot provided by the first terminal.
  • the flow control in this embodiment includes: maximum bandwidth control or maximum flow control per unit time, maximum packet control, and packet transmission flow control, etc., reducing the use of mobile hotspots and other mobile hotspots for large traffic downloads, thereby achieving better Flow control.
  • the WiFi network protocol data after adding the hot spot indication information is referred to as the updated WiFi network protocol data
  • the WiFi network protocol data frame corresponding to the updated WiFi network protocol data may be as shown in FIG. 3;
  • the MAC header corresponds to the header information of the WiFi network data frame
  • the Information Elements and Fixed Fileds correspond to the data body of the WiFi network data frame
  • the FCS corresponds to the parity bit of the WiFi network data frame, and the number above each field indicates the byte of the corresponding field.
  • the hot spot indication information is located in a data body slash fill field of the data frame, and the specific marking manner may be a “phoneWifiType” string.
  • the first terminal may perform an SSID broadcast on the updated WiFi network protocol data by using an air interface network;
  • the SSID provides an interface for other hotspot access terminals to search for the WiFi hotspot.
  • Other hotspot access terminals can obtain the WiFi network protocol data corresponding to the SSID by searching the SSID of the WiFi hotspot, which is a common technique of those skilled in the art. Means, the embodiments of the present invention are not described in detail herein.
  • the specific process of acquiring the updated WiFi network protocol data by the first terminal by adding the hot spot indication information to the WiFi network protocol data may include:
  • the configuration file includes: an SSID, a physical address (BSSID, a Basic Service Set Identifier), an authentication method, and a password;
  • S2022 The first terminal instructs the WiFi driver to add hot spot indication information in the WiFi network protocol by using the hostapd process, and obtain updated WiFi network protocol data.
  • step S2022 may specifically include:
  • the hostapd process sends a hotspot indication information addition request to the WiFi driver;
  • the WiFi driver adds hotspot indication information to the reserved slots of the WiFi network protocol data frame.
  • the embodiment provides a hotspot sharing method. Since the hot spot indication information is added to the updated WiFi network protocol data in the embodiment, when the SSID broadcast is performed on the updated WiFi network protocol data, the existing WiFi network protocol data may be distinguished. In order to solve the problem of large traffic consumption in the background caused by hotspot sharing.
  • FIG. 5 is a flowchart of a method for a hotspot access terminal according to an embodiment of the present invention.
  • the method may be used to use a second terminal side that is shared by a WiFi hotspot.
  • the method may include:
  • S502 The second terminal parses the WiFi network protocol data.
  • the second terminal accesses the WiFi hotspot corresponding to the WiFi network protocol data, and performs flow control on the network access after accessing the WiFi hotspot.
  • the hotspot indication information may be used to represent the WiFi network protocol data acquired by the second terminal by the first terminal in the first embodiment, and the specific form may be a character tag or a string tag, for example:
  • the "phoneWifiType" string the present invention is not limited to the above two methods, and may be other marking methods;
  • the hot spot indication information included in the WiFi network protocol data parsed by the second terminal may be located in a reserved space of the existing WiFi network protocol data frame.
  • the “phoneWifiType” string may be located in the WiFi network protocol data frame. Reserved space;
  • the existing WiFi network protocol data frame and the existing WiFi network protocol data correspond to an existing WiFi network protocol, and the existing WiFi network protocol is used to represent that when the network access is performed, the download process and the background application are not downloaded. User prompts are required.
  • the second terminal scans the SSID of the WiFi hotspot, specifically that the second terminal scans the SSID of the WiFi hotspot within a preset distance;
  • the preset distance is a maximum distance that the second terminal can scan to the WiFi hotspot, for example, all WiFi hotspots within a range of ten meters from the second terminal can be scanned;
  • the second terminal scans the SSID of each WiFi hotspot in the preset range through the air interface network, and may scan multiple WiFi hotspots.
  • the present invention is applicable to the scanned WiFi hotspots being unavailable or unable to be connected by password, and must be Connect to the first terminal to realize the network connection through the WiFi hotspot provided by the WiFi hotspot sharing.
  • the parsing of the WiFi network protocol data by the second terminal specifically refers to the parsing of the WiFi network protocol data frame by the second terminal, and the parsing process and the existing The parsing process of the WiFi network protocol data is consistent, and is not described in this embodiment.
  • the technical solution of FIG. 5 may further include: the second terminal accesses the WiFi hotspot, and according to the existing The WiFi hotspot connection mode is connected; it can be understood that when the second terminal is connected according to the existing WiFi hotspot connection mode, the second terminal performs network access according to the normal WiFi connection, for example, the second terminal downloading process and the background application. The download does not require a user prompt.
  • the second terminal performs flow control on the network access after accessing the WiFi hotspot, and may include:
  • the second terminal When the second terminal needs to use the traffic, the second terminal displays a prompt message, where the prompt message is used to prompt whether to use the traffic, including:
  • the second terminal When the second terminal receives the first response instruction for the prompt message, the second terminal prompts the user to perform a determination download, and disconnects the background application download data of the user;
  • the second terminal download process and the application download in the background do not need to prompt the user.
  • the second terminal may send a prompt message to the user to prompt the user whether to use the traffic.
  • the prompt can be prompted by using a dialog box on the display screen of the second terminal, and the terminal display interface for prompting is specifically shown in FIG. 6 .
  • the present embodiment provides a hotspot sharing method.
  • the second terminal determines that the WiFi network protocol data includes hot spot indication information, and the second terminal accesses the WiFi network protocol data corresponding to the WiFi network protocol data.
  • the WiFi hotspot performs flow control on the network access after accessing the WiFi hotspot, thereby solving the problem of large background traffic consumption caused by hotspot sharing.
  • the method may be used to provide a first terminal shared by a WiFi hotspot and a second terminal shared by using a WiFi hotspot.
  • S701 The first terminal starts a WiFi hotspot
  • S702 The first terminal adds a “phoneWifiType” string to the reserved space of the existing WiFi network protocol data frame, and obtains updated WiFi network protocol data.
  • the “phoneWifiType” string is used to represent the WiFi network protocol data provided by the first terminal through the WiFi hotspot sharing as the updated WiFi network protocol data, and the WiFi hotspot network protocol used to characterize the second terminal acquired by the second terminal.
  • a terminal is provided through a WiFi hotspot sharing;
  • the tag information used to represent the updated WiFi network protocol data by the hotspot providing terminal through the WiFi hotspot sharing may be referred to as hot spot tag information, and the “phoneWifiType” string is used as a specific method of the hot spot tag information, and may also adopt a character form. Marking, the present invention is not limited to the above two methods, and may be other marking methods;
  • the existing WiFi network protocol data frame corresponds to an existing WiFi network protocol, and the existing WiFi network protocol is used to indicate that when the network access is performed, the download process and the application download in the background do not need to prompt the user.
  • S703 The first terminal performs the SSID broadcast by using the updated WiFi network protocol data through the air interface network.
  • the air interface network is a commonly used technical means in the wireless communication, and the communication manner between the first terminal and the second terminal may also adopt Bluetooth or other communication manner, and the present invention is directed to the first terminal side and the first terminal.
  • the communication method on the second terminal side is not specifically limited;
  • the existing WiFi network protocol data corresponds to an existing WiFi network protocol
  • the existing WiFi network protocol is used to indicate that when the network access is performed, the download process and the application download in the background do not require user prompting.
  • the second terminal is configured to perform the SSID scanning of the WiFi hotspot within the preset distance, where the preset distance is the maximum distance that the second terminal can scan the WiFi hotspot, for example, the second distance can be scanned. All WiFi hotspots within ten meters of the terminal;
  • the second terminal may use the SSID as an entry of the connection hotspot, and obtain the SSID corresponding to the WiFi network protocol data;
  • the second terminal scans the SSID of the WiFi hotspot
  • the first terminal is within the scanning range of the second terminal, ensuring that the second terminal can scan the SSID of the first terminal through the air interface network, and obtain the SSID corresponding to the WiFi network protocol. data.
  • S705 The second terminal parses the WiFi network protocol data of the first terminal, and determines whether there is a “phoneWifiType” string in the WiFi network protocol data frame; when yes, go to S706; otherwise, go to S707;
  • the second terminal accesses the WiFi hotspot corresponding to the WiFi network protocol data of the first terminal, and performs flow control on the network access after accessing the WIFI hotspot; and when the second terminal accesses the WiFi corresponding to the first terminal WiFi network protocol data.
  • the specific traffic control mode may be: when the traffic is used, the user is prompted to perform the download, and the user's background application is disconnected to download the data;
  • the second terminal accesses the WiFi hotspot of the first terminal, and connects according to the normal WiFi hotspot connection mode. It can be understood that, after the second terminal is connected according to the existing WiFi hotspot connection mode, the second terminal is normally connected.
  • the WiFi connection is used for network access. For example, the second terminal downloading process and the background application download do not require user prompting;
  • S708 The second terminal completes the hotspot connection.
  • the embodiment provides a detailed process of sharing the hotspot of the mobile phone.
  • the first terminal broadcasts the WiFi network protocol data with the hot spot indication information to the SSID, and the second terminal scans the SSID of the first terminal to obtain the corresponding SSID.
  • Wifi network protocol data parsing the WiFi network protocol data to include hotspot flag information, the second terminal confirming that the accessed WiFi hotspot is provided by the first terminal through the WiFi hotspot sharing, and the second terminal accessing the WiFi corresponding to the first terminal Hotspots, and traffic control for network access after accessing the WiFi hotspot, thus solving the problem of large traffic consumption in the background caused by hotspot sharing.
  • the first terminal 80 of the embodiment of the present invention includes: an opening module 801, a first obtaining module 802, and a broadcasting module 803. ,
  • the module 801 is enabled to be configured to enable a WiFi hotspot
  • the first obtaining module 802 is configured to add the hot spot indication information to the existing WiFi network protocol data to obtain updated WiFi network protocol data.
  • the broadcast module 803 is configured to perform the SSID broadcast on the updated WiFi network protocol data.
  • the hot spot indication information is configured as:
  • the characterization of the updated WiFi network protocol data is provided by the first terminal through the WiFi hotspot sharing, and the specific form of the hotspot indication information may be a character tag or a string tag, for example, a “phoneWifiType” string, and the present invention is not limited to the above two modes. , can also be other marking methods;
  • the hotspot indication information is added to the existing WiFi network protocol data, and the hotspot marking information may be added to the existing WiFi network protocol data frame specified location.
  • the hotspot marking information may be specifically added to the WiFi network protocol. Reserved space for data frames.
  • the existing WiFi network protocol data and the existing WiFi network protocol data frame correspond to The existing WiFi network protocol is used to indicate that when the network access is performed, the download process and the application download in the background do not require user prompting.
  • the first obtaining module 802 is configured to:
  • the configuration file includes: SSID, a physical address of the hotspot (BSSID, Basic Service Set Identifier), an authentication mode, and a password;
  • the WiFi driver adds hotspot indication information to the WiFi network protocol to obtain updated WiFi network protocol data.
  • the broadcast module 803 is configured to:
  • the updated WiFi network protocol data is broadcasted through the air interface network for SSID.
  • the first terminal 80 provided in this embodiment may add the hotspot indication information to the updated WiFi network protocol data in the embodiment, and may distinguish the existing WiFi network protocol data when the SSID broadcast is performed on the updated WiFi network protocol data. Thereby solving the problem of large traffic consumption in the background caused by hotspot sharing.
  • the second terminal 90 includes: a scanning module 901, a second obtaining module 902, a parsing module 903, and a control. Module 904, wherein
  • the scanning module 901 is configured to scan an SSID of the WiFi hotspot
  • the second obtaining module 902 is configured to acquire WiFi network protocol data when the scanning module scans an SSID of the WiFi hotspot;
  • the parsing module 903 is configured to parse the WiFi network protocol data
  • the control module 904 is configured to: when the parsed WiFi network protocol data includes the hot spot indication information, access the WiFi hotspot corresponding to the WiFi network protocol data, and access the WiFi hotspot Network access for flow control.
  • the WiFi network protocol data specifically used to represent the second terminal acquisition is provided by the broadcast module in the fourth embodiment, and the specific form may be a character tag or a string tag, for example: “phoneWifiType” character.
  • the present invention is not limited to the above two methods, and may be other marking methods;
  • the hot spot indication information included in the WiFi network protocol data parsed by the second terminal may be located at a specified location of the existing WiFi network protocol data frame.
  • the “phoneWifiType” string may be located in the WiFi network protocol data. Reserved space of the frame;
  • the existing WiFi network protocol data frame corresponds to the existing WiFi network protocol, and the existing WiFi network protocol is used to indicate that when the network access is performed, the download process and the application download in the background do not need to prompt the user.
  • the configuration is:
  • Scanning the SSID of the WiFi hotspot specifically means that the second terminal scans the SSID of the WiFi hotspot within a preset distance
  • the preset distance is a maximum distance that the second terminal can scan to the WiFi hotspot. For example, all WiFi hotspots within a range of ten meters from the second terminal can be scanned.
  • the configuration is:
  • Parsing the WiFi network protocol data frame the parsing process is consistent with the parsing process of the existing WiFi network protocol data
  • the existing WiFi network protocol data corresponds to the existing WiFi network protocol, and the existing WiFi network protocol is used to indicate that when the network access is performed, the download process and the application download in the background do not need to prompt the user.
  • the second terminal further includes an access module 905, configured to access the WiFi hot. Pointing and connecting according to the existing WiFi hotspot connection mode.
  • the access module 905 is specifically configured to:
  • the user does not need to prompt the user during the download process of the network access and the application download in the background.
  • control module 904 the configuration is:
  • a prompt message is displayed, where the prompt message is used to prompt whether to use the traffic, including:
  • the parsing module 903 parses the WiFi network protocol data
  • the control module 904 determines that the WiFi hotspot indication information is included in the WiFi network protocol data, accesses the WiFi hotspot corresponding to the WiFi network protocol data, and connects the WiFi hotspot.
  • the network access after the WiFi hotspot is used for traffic control, thereby solving the problem of large background traffic consumption caused by hotspot sharing.
  • the embodiment of the present invention further provides a hotspot sharing system 110, which includes a first terminal 80 that provides WiFi hotspot sharing and a second terminal that uses WiFi hotspot sharing. 90, of which
  • the first terminal 80 is configured to enable a WiFi hotspot
  • the updated WiFi network protocol data is broadcasted by the SSID;
  • the second terminal 90 configured to scan the SSID of the WiFi hotspot, obtain WiFi network protocol data;
  • the second terminal accesses the WiFi hotspot corresponding to the WiFi network protocol data, and performs flow control on the network access after accessing the WiFi hotspot.
  • the embodiment of the invention provides a terminal, including:
  • a memory configured to store a computer program
  • WiFi communication module for providing WiFi hotspots and/or sharing WiFi hotspots
  • the processor is configured to connect to the memory and the WiFi communication module, and is configured to implement the hotspot sharing method provided by any one or more of the foregoing embodiments by executing the computer program.
  • the memory herein may include various types of storage media, for example, may include non-transitory storage media for storing the computer program.
  • the WiFi communication module includes: an antenna for transmitting a WiFi signal, a WiFi signal processor, and the like, and can be used to provide a WiFi hotspot to share or share a WiFi hotspot provided by other terminals.
  • the processor may be an application processor (AP), a central processing unit (CPU), a digital signal processor (DSP), or a programmable gate array (FPGA) in a mobile terminal. , Field Programmable Gate Array).
  • AP application processor
  • CPU central processing unit
  • DSP digital signal processor
  • FPGA programmable gate array
  • the processor may be connected to the WiFi communication module through a memory through an integrated circuit (IIC) bus, and any one of the above technical solutions may be implemented by execution of the above computer program.
  • IIC integrated circuit
  • the embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions for performing the hotspot sharing method provided by any one or more of the foregoing embodiments.
  • the computer storage medium provided by the embodiment of the present invention may be any storage medium such as an optical disk, a magnetic tape, a mobile hard disk, or a random storage medium, and may be a non-transitory storage medium.
  • embodiments of the present invention can provide a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.
  • These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computing and readable memory produce an article of manufacture comprising the instruction device.
  • the instruction means implements the functions specified in one or more blocks of the flow or processes and/or block diagrams in the flowchart.
  • These computer program instructions can also be loaded on a computer or other programmable processing device such that instructions executed on a computer or other programmable device are provided for implementation in a flow or a block diagram of a flow or a block diagram or The steps of the function specified in multiple boxes.
  • the hot spot indication information is formed, and the hot spot indication information is carried in the WiFi network data for SSID broadcast, so that the terminal that uses the WiFi hotspot provided by the terminal can receive the hot spot indication information.
  • the corresponding traffic control is performed when the WiFi hotspot is used, thereby avoiding the problem of traffic abuse caused by unlimited traffic when using the mobile hotspot, and having the characteristics of being simple and easy to promote in the industry.

Landscapes

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

Abstract

Disclosed in an embodiment of the present invention are a hotspot sharing method, a terminal, and a system. The method comprises: a first terminal turns on a WiFi hotspot; the first terminal obtains updated WiFi network protocol data by adding hotspot indication information to existing WiFi network protocol data; and the first terminal performs SSID broadcast for the updated WiFi network protocol data. The embodiment of the present invention further provides a computer storage medium.

Description

热点共享的方法、终端、***和计算机存储介质Hotspot sharing method, terminal, system and computer storage medium
本申请基于申请号为201610754318.8、申请日为2016年08月29日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。The present application is filed on the basis of the Chinese Patent Application No. No. No. No. No. No. No. No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No
技术领域Technical field
本发明涉及无线网络技术,尤其涉及一种热点共享的方法、终端、***和计算机存储介质。The present invention relates to wireless network technologies, and in particular, to a hotspot sharing method, terminal, system, and computer storage medium.
背景技术Background technique
当前,移动设备使用越来越广泛、频繁,而公共WiFi网络又还没有完全普及,日常生活中我们会碰到手机流量套餐使用完,流量不够用而又有流量使用需求(比如下载一个急用的应用),且身边又没有对应的WiFi热点的情况,通常会让朋友共享一个手机热点供我们使用。At present, mobile devices are used more and more widely, and public WiFi networks are not yet fully popular. In daily life, we will encounter mobile phone traffic plans, use insufficient traffic, and have traffic usage requirements (such as downloading an urgent use). Application), and there is no corresponding WiFi hotspot around, usually let friends share a mobile hotspot for us to use.
当一个手机连上另一个手机提供的手机热点的时候,手机并不知道当前连接的热点是手机热点,会将手机热点视为为一个固定的WiFi热点来处理,而手机后台有很多运行任务在网络状态改变,且发现网络类型是WiFi的时候,会进行相关同步和更新动作,更有甚者,会进行后台升级。因此连上这个手机热点,下载用户所需要的东西后,往往发现对方实际提供的流量远大于我们真正使用的流量,这个就是手机热点共享造成的后台大流量消耗问题的原因。When a mobile phone is connected to a mobile phone hotspot provided by another mobile phone, the mobile phone does not know that the currently connected hotspot is a mobile phone hotspot, and the mobile hotspot is treated as a fixed WiFi hotspot, and the mobile phone has many running tasks in the background. When the network status changes and the network type is found to be WiFi, related synchronization and update actions will be performed, and even more, the background upgrade will be performed. Therefore, after connecting to this mobile phone hotspot and downloading the things that users need, it is often found that the actual traffic provided by the other party is much larger than the traffic we actually use. This is the reason for the large traffic consumption in the background caused by the hotspot sharing of mobile phones.
发明内容Summary of the invention
本发明实施例期望提供一种热点共享方法、终端和***,解决热点共 享造成的后台大流量消耗问题。Embodiments of the present invention are expected to provide a hotspot sharing method, terminal, and system, and solve a hotspot total Enjoy the background traffic consumption problem.
本发明实施例的技术方案是这样实现的:The technical solution of the embodiment of the present invention is implemented as follows:
第一方面,本发明实施例提供了一种热点共享方法,所述方法应用于提供WiFi热点共享的第一终端侧,所述方法包括:In a first aspect, an embodiment of the present invention provides a hotspot sharing method, where the method is applied to a first terminal side that provides WiFi hotspot sharing, and the method includes:
所述第一终端开启WiFi热点;The first terminal starts a WiFi hotspot;
所述第一终端通过将热点指示信息添加至现有的WiFi网络协议数据,获取更新的WiFi网络协议数据;The first terminal acquires updated WiFi network protocol data by adding hot spot indication information to existing WiFi network protocol data;
所述第一终端将所述更新的WiFi网络协议数据进行SSID广播。The first terminal performs the SSID broadcast on the updated WiFi network protocol data.
第二方面,本发明实施例提供了一种热点共享方法,所述方法应用于使用WiFi热点共享的第二终端侧,所述方法包括:In a second aspect, the embodiment of the present invention provides a hotspot sharing method, where the method is applied to a second terminal side that uses a WiFi hotspot, the method includes:
所述第二终端扫描WiFi热点的SSID时,获取WiFi网络协议数据;When the second terminal scans the SSID of the WiFi hotspot, the WiFi network protocol data is obtained;
所述第二终端对所述WiFi网络协议数据进行解析;The second terminal parses the WiFi network protocol data;
当所述WiFi网络协议数据包含热点指示信息时,所述第二终端接入所述WiFi网络协议数据对应的WiFi热点,并对接入WiFi热点后的网络访问进行流量控制。When the WiFi network protocol data includes the hot spot indication information, the second terminal accesses the WiFi hotspot corresponding to the WiFi network protocol data, and performs flow control on the network access after accessing the WiFi hotspot.
第三方面,本发明实施例提供了一种用于提供WiFi热点共享的第一终端,所述第一终端包括:开启模块、第一获取模块和广播模块;其中,In a third aspect, an embodiment of the present invention provides a first terminal for providing a WiFi hotspot sharing, where the first terminal includes: an open module, a first acquiring module, and a broadcast module;
所述开启模块,配置为开启WiFi热点;The opening module is configured to enable a WiFi hotspot;
所述第一获取模块,用于将热点指示信息添加至现有的WiFi网络协议数据,获取更新的WiFi网络协议数据;The first obtaining module is configured to add hot spot indication information to existing WiFi network protocol data, and obtain updated WiFi network protocol data;
所述广播模块,配置为将更新的WiFi网络协议数据进行SSID广播。The broadcast module is configured to perform the SSID broadcast on the updated WiFi network protocol data.
第四方面,本发明实施例提供了一种用于使用WiFi热点共享的第二终端,所述第二终端包括:扫描模块、第二获取模块、解析模块及控制模块, 其中,In a fourth aspect, the embodiment of the present invention provides a second terminal for sharing with a WiFi hotspot, where the second terminal includes: a scanning module, a second acquiring module, a parsing module, and a control module. among them,
所述扫描模块,配置为扫描WiFi热点的SSID;The scanning module is configured to scan an SSID of a WiFi hotspot;
所述第二获取模块,配置为当所述扫描模块扫描WiFi热点的SSID时,获取WiFi网络协议数据;The second acquiring module is configured to acquire WiFi network protocol data when the scanning module scans an SSID of the WiFi hotspot;
所述解析模块,配置为对WiFi网络协议数据进行解析;The parsing module is configured to parse the WiFi network protocol data;
所述控制模块,配置为当解析的WiFi网络协议数据包含热点指示信息时,接入所述WiFi网络协议数据对应的WiFi热点,并对接入WiFi热点后的网络访问进行流量控制。The control module is configured to access a WiFi hotspot corresponding to the WiFi network protocol data when the parsed WiFi network protocol data includes the hot spot indication information, and perform flow control on the network access after accessing the WiFi hotspot.
第五方面,本发明实施例提供了一种热点共享的***,所述***包括:提供WiFi热点共享的第一终端和使用WiFi热点共享的第二终端,其中,In a fifth aspect, an embodiment of the present invention provides a hotspot sharing system, where the system includes: a first terminal that provides WiFi hotspot sharing and a second terminal that uses a WiFi hotspot to share, where
所述第一终端,配置为开启WiFi热点;以及,The first terminal is configured to enable a WiFi hotspot; and,
通过将热点指示信息添加至现有的WiFi网络协议数据,获取更新的WiFi网络协议数据;以及,Obtaining updated WiFi network protocol data by adding hot spot indication information to existing WiFi network protocol data;
将更新的WiFi网络协议数据进行SSID广播;The updated WiFi network protocol data is broadcasted by the SSID;
所述第二终端,配置为扫描WiFi热点的SSID时,获取WiFi网络协议数据;以及,The second terminal, configured to scan the SSID of the WiFi hotspot, obtains WiFi network protocol data; and,
对WiFi网络协议数据进行解析;以及,Parsing the WiFi network protocol data; and,
当解析的WiFi网络协议数据包含热点指示信息时,第二终端接入所述WiFi网络协议数据对应的WiFi热点,并对接入WiFi热点后的网络访问进行流量控制。When the parsed WiFi network protocol data includes hotspot indication information, the second terminal accesses the WiFi hotspot corresponding to the WiFi network protocol data, and performs flow control on the network access after accessing the WiFi hotspot.
第六方面,提供一种终端,包括:In a sixth aspect, a terminal is provided, including:
存储器,配置为存储计算机程序;a memory configured to store a computer program;
WiFi通信模组,用于提供WiFi热点和/或进行WiFi热点共享;WiFi communication module for providing WiFi hotspots and/or sharing WiFi hotspots;
处理器,分别与所述存储器及所述WiFi通信模组进行连接,配置为通 过执行所述计算机程序实现前述热点共享方法的任一项。a processor, respectively connected to the memory and the WiFi communication module, configured to pass Executing the computer program implements any of the aforementioned hotspot sharing methods.
第七方面,提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行实现前述热点共享方法的任一项。In a seventh aspect, a computer storage medium is provided, the computer storage medium storing computer executable instructions for performing any of the foregoing hotspot sharing methods.
本发明实施例提供了一种热点共享方法、终端、***和计算机存储介质,第一终端对添加了热点指示信息的WiFi网络协议数据进行服务集标识(SSID,Service Set Identifier)广播,及第二终端对扫描的SSID对应WiFi网络协议数据的解析,当解析的WiFi网络协议数据包含热点指示信息时,第二终端接入所述WiFi网络协议数据对应的WiFi热点,并对接入WiFi热点后的网络访问进行流量控制,解决热点共享造成的后台大流量消耗问题。The embodiment of the present invention provides a hotspot sharing method, a terminal, a system, and a computer storage medium. The first terminal broadcasts a Service Set Identifier (SSID) for the WiFi network protocol data to which the hot spot indication information is added, and a second The terminal compares the scanned SSID with the WiFi network protocol data. When the parsed WiFi network protocol data includes the hot spot indication information, the second terminal accesses the WiFi hotspot corresponding to the WiFi network protocol data, and accesses the WiFi hotspot. Network access for traffic control to solve the problem of large traffic consumption in the background caused by hotspot sharing.
附图说明DRAWINGS
图1为本发明实施例提供的一种热点共享的场景示意图;FIG. 1 is a schematic diagram of a hotspot sharing scenario according to an embodiment of the present invention;
图2为本发明实施例提供的一种热点提供终端的方法流程示意图;2 is a schematic flowchart of a method for providing a terminal by using a hotspot according to an embodiment of the present invention;
图3为本发明实施例提供的一种更新的WiFi网络协议数据帧示意图;FIG. 3 is a schematic diagram of an updated WiFi network protocol data frame according to an embodiment of the present disclosure;
图4为本发明实施例提供的另一种热点提供的方法流程示意图;4 is a schematic flowchart of another method for providing hotspots according to an embodiment of the present invention;
图5为本发明实施例提供的一种热点接入终端的方法流程示意图;FIG. 5 is a schematic flowchart of a method for a hotspot access terminal according to an embodiment of the present disclosure;
图6为本发明实施例提供的一种终端显示流量控制提示界面示意图;FIG. 6 is a schematic diagram of a terminal display flow control prompting interface according to an embodiment of the present invention;
图7为本发明实施例提供的一种热点分享方法的详细流程示意意图;FIG. 7 is a schematic flowchart showing a detailed flow of a hotspot sharing method according to an embodiment of the present invention;
图8为本发明实施例提供的一种热点提供终端的结构示意图;FIG. 8 is a schematic structural diagram of a hotspot providing terminal according to an embodiment of the present disclosure;
图9为本发明实施例提供的一种热点接入终端结构示意图;FIG. 9 is a schematic structural diagram of a hotspot access terminal according to an embodiment of the present disclosure;
图10为本发明实施例提供的另一种热点接入终端结构示意图;FIG. 10 is a schematic structural diagram of another hotspot access terminal according to an embodiment of the present disclosure;
图11为本发明实施例提供的一种热点共享***的结构示意图。 FIG. 11 is a schematic structural diagram of a hotspot sharing system according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对发明实施例中的技术方案进行清楚、完整地描述,应当理解,以下所说明的优选实施例仅用于说明和解释本发明,并不用于限定本发明。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the drawings in the embodiments of the present invention. It is to be understood that the preferred embodiments described below are only used to illustrate and explain the present invention, and are not intended to limit this invention.
参见图1,其示出了本发明实施例提供的一种进行热点共享的场景示意图,可以理解的,该场景仅用于说明本发明实施例的技术方案,并不对本发明实施例进行任何的具体限定。在热点分享过程中,通常包括第一终端10和第二终端20组成,两者之间通过空口网络进行通信。FIG. 1 is a schematic diagram of a scenario for performing hotspot sharing according to an embodiment of the present invention. It is to be understood that the scenario is only used to describe the technical solution of the embodiment of the present invention, and is not applicable to the embodiment of the present invention. Specifically limited. In the hotspot sharing process, the first terminal 10 and the second terminal 20 are generally composed, and the two communicate through the air interface network.
基于上述场景示例,本发明实施例的基本思想是:第一终端10在开启WiFi热点功能后,所述第一终端添加热点标记信息至现有的WiFi网络协议数据,以使得第二终端20在接入第一终端10所开启的WiFi网络时,根据热点标记信息对对接入WiFi热点后的网络访问进行流量控制,从而解决热点共享造成的后台大流量消耗问题。Based on the above scenario example, the basic idea of the embodiment of the present invention is: after the first terminal 10 turns on the WiFi hotspot function, the first terminal adds the hot spot tag information to the existing WiFi network protocol data, so that the second terminal 20 is When accessing the WiFi network opened by the first terminal 10, traffic control is performed on the network access after accessing the WiFi hotspot according to the hotspot flag information, thereby solving the problem of large background traffic consumption caused by hotspot sharing.
实施例一 Embodiment 1
参见图2,其示出了本发明实施例提供的一种热点提供终端的方法流程,该方法可以应用于提供WiFi热点共享的第一终端侧,该方法可以包括:Referring to FIG. 2, a method for providing a hotspot providing terminal according to an embodiment of the present invention is shown. The method may be applied to a first terminal side that provides WiFi hotspot sharing. The method may include:
S201:第一终端开启WiFi热点;S201: The first terminal starts a WiFi hotspot;
S202:第一终端通过将热点指示信息添加至现有的WiFi网络协议数据,获取更新的WiFi网络协议数据;S202: The first terminal acquires the updated WiFi network protocol data by adding the hot spot indication information to the existing WiFi network protocol data.
S203:第一终端将更新的WiFi网络协议数据进行SSID广播。S203: The first terminal performs the SSID broadcast on the updated WiFi network protocol data.
对于步骤S202,需要说明的是,热点指示信息用于表征更新的WiFi网络协议数据由第一终端通过WiFi热点共享提供,所述热点指示信息的具体形式可以是字符标记或者字符串标记,例如:“phoneWifiType”字符串,本发明不限于以上两种方式,还可以是其他标记方式; For the step S202, it is to be noted that the hotspot indication information is used to represent that the updated WiFi network protocol data is provided by the first terminal through the WiFi hotspot sharing, and the specific form of the hotspot indication information may be a character tag or a string tag, for example: The "phoneWifiType" string, the present invention is not limited to the above two methods, and may be other marking methods;
可选地,将热点指示信息添加至现有的WiFi网络协议数据中,具体可以在现有的WiFi网络协议数据帧指定位置增加热点标记信息,例如,所述热点标记信息具体可以添加至WiFi网络协议数据帧的预留空位;Optionally, the hotspot indication information is added to the existing WiFi network protocol data, and the hotspot marking information may be added to the specified location of the existing WiFi network protocol data frame. For example, the hotspot marking information may be specifically added to the WiFi network. Reserved space of the protocol data frame;
所述现有的WiFi网络协议数据及现有的WiFi网络协议数据帧对应于现有WiFi网络协议所述现有的WiFi网络协议用于表征在进行网络访问时,下载过程及后台的应用下载不需要进行用户提示。The existing WiFi network protocol data and the existing WiFi network protocol data frame correspond to the existing WiFi network protocol. The existing WiFi network protocol is used to represent that when the network access is performed, the download process and the background application are not downloaded. User prompts are required.
在本实施例中总之所述热点指示信息可用于指示当前热点的类型,例如,根据该热点指示信息确定出当前连接的热点是手机热点等移动终端提供的热点,还是固定的WiFi设备提供的固定热点。所述热点指示信息还可用于指示进行限流控制的指示信息。总之,所述热点指示信息,用于第二终端在使用所述第一终端提供的热点时,触发流量控制。In this embodiment, the hotspot indication information may be used to indicate the type of the current hotspot, for example, determining, according to the hotspot indication information, whether the currently connected hotspot is a hotspot provided by a mobile terminal such as a mobile phone hotspot, or a fixed WiFi device provides a fixed hotspot. hot spot. The hot spot indication information may also be used to indicate indication information for performing current limiting control. In summary, the hot spot indication information is used by the second terminal to trigger flow control when using the hotspot provided by the first terminal.
在本实施例中的流量控制,包括:最大带宽控制或单位时间内最大流量控制,最大数据包控制及数据包传输流量控制等,减少利用手机热点等移动热点进行大流量下载,从而实现更好的流量控制。The flow control in this embodiment includes: maximum bandwidth control or maximum flow control per unit time, maximum packet control, and packet transmission flow control, etc., reducing the use of mobile hotspots and other mobile hotspots for large traffic downloads, thereby achieving better Flow control.
相应地,本实施例将添加热点指示信息后的WiFi网络协议数据称为更新的WiFi网络协议数据,所述更新的WiFi网络协议数据对应的WiFi网络协议数据帧可以如图3所示;Correspondingly, the WiFi network protocol data after adding the hot spot indication information is referred to as the updated WiFi network protocol data, and the WiFi network protocol data frame corresponding to the updated WiFi network protocol data may be as shown in FIG. 3;
其中,MAC header对应WiFi网络数据帧的头信息,Information Elements and Fixed Fileds对应WiFi网络数据帧的数据体,FCS对应WiFi网络数据帧的校验位,每个字段上方的数字表示对应字段的字节长度,所述热点指示信息位于数据帧的数据体斜线填充字段,其具体标记方式可以为“phoneWifiType”字符串。The MAC header corresponds to the header information of the WiFi network data frame, the Information Elements and Fixed Fileds correspond to the data body of the WiFi network data frame, and the FCS corresponds to the parity bit of the WiFi network data frame, and the number above each field indicates the byte of the corresponding field. The hot spot indication information is located in a data body slash fill field of the data frame, and the specific marking manner may be a “phoneWifiType” string.
对于步骤S203,在具体实现过程中,第一终端可以采用空口网络对更新的WiFi网络协议数据进行SSID广播; In step S203, in a specific implementation process, the first terminal may perform an SSID broadcast on the updated WiFi network protocol data by using an air interface network;
需要说明的是,SSID为其他热点接入终端搜索WiFi热点提供一个接口,其他热点接入终端通过搜索WiFi热点的SSID,可以获取SSID对应的WiFi网络协议数据,这是本领域技术人员的惯用技术手段,本发明实施例在此不作具体赘述。It should be noted that the SSID provides an interface for other hotspot access terminals to search for the WiFi hotspot. Other hotspot access terminals can obtain the WiFi network protocol data corresponding to the SSID by searching the SSID of the WiFi hotspot, which is a common technique of those skilled in the art. Means, the embodiments of the present invention are not described in detail herein.
示例性地,参见图4,第一终端通过将热点指示信息添加至WiFi网络协议数据,获取更新的WiFi网络协议数据的具体过程可以包括:For example, referring to FIG. 4, the specific process of acquiring the updated WiFi network protocol data by the first terminal by adding the hot spot indication information to the WiFi network protocol data may include:
S2021:第一终端在开启WiFi热点之后,调用hostapd进程完成配置文件的设置;S2021: After the WiFi hotspot is enabled, the first terminal invokes the hostapd process to complete the configuration file setting.
其中,所述配置文件包括:SSID、热点的物理地址(BSSID,Basic Service Set Identifier)、认证方式和密码等信息;The configuration file includes: an SSID, a physical address (BSSID, a Basic Service Set Identifier), an authentication method, and a password;
S2022:第一终端通过hostapd进程指示WiFi驱动在WiFi网络协议中添加热点指示信息,获取更新的WiFi网络协议数据。S2022: The first terminal instructs the WiFi driver to add hot spot indication information in the WiFi network protocol by using the hostapd process, and obtain updated WiFi network protocol data.
具体地,hostapd进程和WiFi驱动均在第一终端内部,因此,步骤S2022具体可以包括:Specifically, the hostapd process and the WiFi driver are both internal to the first terminal. Therefore, step S2022 may specifically include:
hostapd进程向WiFi驱动发送热点指示信息添加请求;以及,The hostapd process sends a hotspot indication information addition request to the WiFi driver; and,
WiFi驱动在WiFi网络协议数据帧的预留空位添加热点指示信息。The WiFi driver adds hotspot indication information to the reserved slots of the WiFi network protocol data frame.
本实施例提供了一种热点共享方法,由于实施例中更新的WiFi网络协议数据中增加了热点指示信息,在对更新的WiFi网络协议数据进行SSID广播时,可以区别现有的WiFi网络协议数据,从而解决热点共享造成的后台大流量消耗问题。The embodiment provides a hotspot sharing method. Since the hot spot indication information is added to the updated WiFi network protocol data in the embodiment, when the SSID broadcast is performed on the updated WiFi network protocol data, the existing WiFi network protocol data may be distinguished. In order to solve the problem of large traffic consumption in the background caused by hotspot sharing.
实施例二 Embodiment 2
参见图5,其示出了本发明实施例提供的一种热点接入终端的方法流程,该方法可以用于使用WiFi热点共享的第二终端侧,该方法可以包括:FIG. 5 is a flowchart of a method for a hotspot access terminal according to an embodiment of the present invention. The method may be used to use a second terminal side that is shared by a WiFi hotspot. The method may include:
S501:第二终端扫描WiFi热点的SSID时,获取WiFi网络协议数据; S501: When the second terminal scans the SSID of the WiFi hotspot, obtain the WiFi network protocol data.
S502:第二终端对WiFi网络协议数据进行解析;S502: The second terminal parses the WiFi network protocol data.
S503:当解析的WiFi网络协议数据包含热点指示信息时,第二终端接入所述WiFi网络协议数据对应的WiFi热点,并对接入WiFi热点后的网络访问进行流量控制。S503: When the parsed WiFi network protocol data includes the hot spot indication information, the second terminal accesses the WiFi hotspot corresponding to the WiFi network protocol data, and performs flow control on the network access after accessing the WiFi hotspot.
对于热点指示信息,需要说明的是,热点指示信息可以用于表征第二终端获取的WiFi网络协议数据由实施例一中第一终端提供,其具体形式可以是字符标记或者字符串标记,例如:“phoneWifiType”字符串,本发明不限于以上两种方式,还可以是其他标记方式;For the hotspot indication information, it should be noted that the hotspot indication information may be used to represent the WiFi network protocol data acquired by the second terminal by the first terminal in the first embodiment, and the specific form may be a character tag or a string tag, for example: The "phoneWifiType" string, the present invention is not limited to the above two methods, and may be other marking methods;
可选地,第二终端解析的WiFi网络协议数据包含的热点指示信息,可以位于现有WiFi网络协议数据帧预留空位,例如图2所示,“phoneWifiType”字符串可以位于WiFi网络协议数据帧的预留空位;Optionally, the hot spot indication information included in the WiFi network protocol data parsed by the second terminal may be located in a reserved space of the existing WiFi network protocol data frame. For example, as shown in FIG. 2, the “phoneWifiType” string may be located in the WiFi network protocol data frame. Reserved space;
所述现有的WiFi网络协议数据帧及现有的WiFi网络协议数据对应于现有WiFi网络协议,所述现有WiFi网络协议用于表征在进行网络访问时,下载过程及后台的应用下载不需要进行用户提示。The existing WiFi network protocol data frame and the existing WiFi network protocol data correspond to an existing WiFi network protocol, and the existing WiFi network protocol is used to represent that when the network access is performed, the download process and the background application are not downloaded. User prompts are required.
对于S501,需要说明的是,第二终端对WiFi热点的SSID进行扫描,具体指第二终端是在预设距离内对WiFi热点的SSID进行扫描;For S501, it is required that the second terminal scans the SSID of the WiFi hotspot, specifically that the second terminal scans the SSID of the WiFi hotspot within a preset distance;
所述预设距离是第二终端能够扫描到WiFi热点的最大距离,比如:可以扫描距离第二终端十米范围内的所有WiFi热点;The preset distance is a maximum distance that the second terminal can scan to the WiFi hotspot, for example, all WiFi hotspots within a range of ten meters from the second terminal can be scanned;
可以理解的,第二终端通过空口网络扫描预设范围内各WiFi热点的SSID,可能会扫描到多个WiFi热点,本发明适用于扫描到的各WiFi热点不可用或者无法通过密码连接,且必须连入第一终端通过WiFi热点共享提供的WiFi热点实现网络连接的情况。It can be understood that the second terminal scans the SSID of each WiFi hotspot in the preset range through the air interface network, and may scan multiple WiFi hotspots. The present invention is applicable to the scanned WiFi hotspots being unavailable or unable to be connected by password, and must be Connect to the first terminal to realize the network connection through the WiFi hotspot provided by the WiFi hotspot sharing.
对于S502,需要说明的是,第二终端对所述WiFi网络协议数据的解析具体指第二终端对所述WiFi网络协议数据帧的解析,所述解析过程与现有 的WiFi网络协议数据的解析过程一致,本实施例不做赘述。For S502, it should be noted that the parsing of the WiFi network protocol data by the second terminal specifically refers to the parsing of the WiFi network protocol data frame by the second terminal, and the parsing process and the existing The parsing process of the WiFi network protocol data is consistent, and is not described in this embodiment.
对于图5所示的技术方案,需要说明的是,当WiFi网络协议数据不包含热点指示信息时,所述图5的技术方案还可以包括:第二终端接入WiFi热点,并按照现有的WiFi热点连接方式进行连接;可以理解地,当第二终端按照现有的WiFi热点连接方式进行连接时,第二终端按照正常的WiFi连接进行网络访问,比如,第二终端下载过程及后台的应用下载不需要进行用户提示。For the technical solution shown in FIG. 5, it should be noted that, when the WiFi network protocol data does not include the hotspot indication information, the technical solution of FIG. 5 may further include: the second terminal accesses the WiFi hotspot, and according to the existing The WiFi hotspot connection mode is connected; it can be understood that when the second terminal is connected according to the existing WiFi hotspot connection mode, the second terminal performs network access according to the normal WiFi connection, for example, the second terminal downloading process and the background application. The download does not require a user prompt.
示例性地,第二终端对接入WiFi热点后的网络访问进行流量控制,可以包括:For example, the second terminal performs flow control on the network access after accessing the WiFi hotspot, and may include:
所述第二终端需要进行流量使用时,所述第二终端显示提示消息;其中,所述提示消息用于提示是否进行流量使用,具体包括:When the second terminal needs to use the traffic, the second terminal displays a prompt message, where the prompt message is used to prompt whether to use the traffic, including:
当所述第二终端接收到针对所述提示消息的第一响应指令时,所述第二终端提示用户进行确定下载,且断开用户的后台应用下载数据;When the second terminal receives the first response instruction for the prompt message, the second terminal prompts the user to perform a determination download, and disconnects the background application download data of the user;
当所述第二终端接收到针对所述提示消息的第二响应指令时,所述第二终端下载过程及后台的应用下载不需要进行用户提示。When the second terminal receives the second response instruction for the prompt message, the second terminal download process and the application download in the background do not need to prompt the user.
具体地,当第二终端接入实施例一中第一终端提供的WiFi热点,并且第二终端需要进行流量使用时,第二终端可以向用户发送提示消息,用于提示用户是否进行流量使用;在具体实现过程中,可以通过在第二终端的显示屏幕上以对话框进行提示,具体进行提示的终端显示界面如图6所示。Specifically, when the second terminal accesses the WiFi hotspot provided by the first terminal in the first embodiment, and the second terminal needs to use the traffic, the second terminal may send a prompt message to the user to prompt the user whether to use the traffic. In the specific implementation process, the prompt can be prompted by using a dialog box on the display screen of the second terminal, and the terminal display interface for prompting is specifically shown in FIG. 6 .
本实施例提供了一种热点共享方法,由于本实施例中第二终端通过解析WiFi网络协议数据,确定WiFi网络协议数据中包含热点指示信息,第二终端接入所述WiFi网络协议数据对应的WiFi热点,并对接入WiFi热点后的网络访问进行流量控制,从而解决热点共享造成的后台大流量消耗问题。 The present embodiment provides a hotspot sharing method. In this embodiment, the second terminal determines that the WiFi network protocol data includes hot spot indication information, and the second terminal accesses the WiFi network protocol data corresponding to the WiFi network protocol data. The WiFi hotspot performs flow control on the network access after accessing the WiFi hotspot, thereby solving the problem of large background traffic consumption caused by hotspot sharing.
实施例三Embodiment 3
参见图7,其示出了本发明实施例提供的一种热点共享方法的详细流程,该方法可以用于提供WiFi热点共享的第一终端及使用WiFi热点共享的第二终端,该详细流程可以包括:Referring to FIG. 7, a detailed process of a method for sharing a hotspot according to an embodiment of the present invention is provided. The method may be used to provide a first terminal shared by a WiFi hotspot and a second terminal shared by using a WiFi hotspot. include:
S701:第一终端开启WiFi热点;S701: The first terminal starts a WiFi hotspot;
S702:第一终端在现有的WiFi网络协议数据帧的预留空位添加“phoneWifiType”字符串,获取更新的WiFi网络协议数据;S702: The first terminal adds a “phoneWifiType” string to the reserved space of the existing WiFi network protocol data frame, and obtains updated WiFi network protocol data.
在本实施例中,“phoneWifiType”字符串用于表征第一终端通过WiFi热点共享提供的WiFi网络协议数据为更新的WiFi网络协议数据,以及用于表征第二终端获取的WiFi热点网络协议由第一终端通过WiFi热点共享提供;In this embodiment, the “phoneWifiType” string is used to represent the WiFi network protocol data provided by the first terminal through the WiFi hotspot sharing as the updated WiFi network protocol data, and the WiFi hotspot network protocol used to characterize the second terminal acquired by the second terminal. A terminal is provided through a WiFi hotspot sharing;
其中,用于表征更新的WiFi网络协议数据由热点提供终端通过WiFi热点共享提供的标记信息可以称为热点标记信息,“phoneWifiType”字符串作为热点标记信息的一种具体方式,还可以采用字符形式进行标记,本发明不限于以上两种方式,还可以是其他标记方式;The tag information used to represent the updated WiFi network protocol data by the hotspot providing terminal through the WiFi hotspot sharing may be referred to as hot spot tag information, and the “phoneWifiType” string is used as a specific method of the hot spot tag information, and may also adopt a character form. Marking, the present invention is not limited to the above two methods, and may be other marking methods;
以及,所述现有的WiFi网络协议数据帧对应于现有WiFi网络协议,所述现有的WiFi网络协议用于表征在进行网络访问时,下载过程及后台的应用下载不需要进行用户提示。And the existing WiFi network protocol data frame corresponds to an existing WiFi network protocol, and the existing WiFi network protocol is used to indicate that when the network access is performed, the download process and the application download in the background do not need to prompt the user.
S703:第一终端将更新的WiFi网络协议数据通过空口网络进行SSID广播;S703: The first terminal performs the SSID broadcast by using the updated WiFi network protocol data through the air interface network.
对于步骤S703,需要说明的是,空口网络作为无线通讯中一种常用的技术手段,第一终端与第二终端的通讯方式还可以采用蓝牙或者其他通讯方式,本发明对第一终端侧与第二终端侧的通讯方式不作具体限定;For the step S703, it should be noted that the air interface network is a commonly used technical means in the wireless communication, and the communication manner between the first terminal and the second terminal may also adopt Bluetooth or other communication manner, and the present invention is directed to the first terminal side and the first terminal. The communication method on the second terminal side is not specifically limited;
以及,所述现有的WiFi网络协议数据对应于现有WiFi网络协议,所 述现有的WiFi网络协议用于表征在进行网络访问时,下载过程及后台的应用下载不需要进行用户提示。And the existing WiFi network protocol data corresponds to an existing WiFi network protocol, The existing WiFi network protocol is used to indicate that when the network access is performed, the download process and the application download in the background do not require user prompting.
S704:第二终端扫描预设距离内WiFi热点的SSID时,获取第一终端WiFi热点的SSID对应的WiFi网络协议数据;S704: When the second terminal scans the SSID of the WiFi hotspot within the preset distance, acquiring the WiFi network protocol data corresponding to the SSID of the first terminal WiFi hotspot;
对于步骤S704,需要说明的是,第二终端是进行预设距离内WiFi热点的SSID扫描,所述的预设距离是第二终端可以扫描到WiFi热点的最大距离,比如:可以扫描距离第二终端十米范围内的所有WiFi热点;For the step S704, the second terminal is configured to perform the SSID scanning of the WiFi hotspot within the preset distance, where the preset distance is the maximum distance that the second terminal can scan the WiFi hotspot, for example, the second distance can be scanned. All WiFi hotspots within ten meters of the terminal;
以及,第二终端扫描到各WiFi热点的SSID之后,第二终端可以将SSID作为连接热点的入口,获取所述SSID对应WiFi网络协议数据;And after the second terminal scans the SSID of each WiFi hotspot, the second terminal may use the SSID as an entry of the connection hotspot, and obtain the SSID corresponding to the WiFi network protocol data;
可以理解的,第二终端扫描WiFi热点的SSID时,第一终端在第二终端的扫描范围内,保证第二终端通过空口网络可以扫描到第一终端的SSID,获取所述SSID对应WiFi网络协议数据。It can be understood that, when the second terminal scans the SSID of the WiFi hotspot, the first terminal is within the scanning range of the second terminal, ensuring that the second terminal can scan the SSID of the first terminal through the air interface network, and obtain the SSID corresponding to the WiFi network protocol. data.
S705:第二终端对第一终端的WiFi网络协议数据进行解析;并确定所述WiFi网络协议数据帧中是否存在“phoneWifiType”字符串;当存在时,转至S706;否则转至S707;S705: The second terminal parses the WiFi network protocol data of the first terminal, and determines whether there is a “phoneWifiType” string in the WiFi network protocol data frame; when yes, go to S706; otherwise, go to S707;
S706:第二终端接入第一终端的WiFi网络协议数据对应的WiFi热点,并对接入WIFI热点后的网络访问进行流量控制;当第二终端接入第一终端WiFi网络协议数据对应的WiFi热点后,具体流量控制方式可以为:使用流量的时候提示用户进行确定下载,且断开用户的后台应用下载数据;S706: The second terminal accesses the WiFi hotspot corresponding to the WiFi network protocol data of the first terminal, and performs flow control on the network access after accessing the WIFI hotspot; and when the second terminal accesses the WiFi corresponding to the first terminal WiFi network protocol data. After the hotspot, the specific traffic control mode may be: when the traffic is used, the user is prompted to perform the download, and the user's background application is disconnected to download the data;
S707:第二终端接入第一终端的WiFi热点,并按照正常的WiFi热点连接方式进行连接;可以理解地,当第二终端按照现有的WiFi热点连接方式进行连接后,第二终端按照正常的WiFi连接进行网络访问,比如,第二终端下载过程及后台的应用下载不需要进行用户提示;S707: The second terminal accesses the WiFi hotspot of the first terminal, and connects according to the normal WiFi hotspot connection mode. It can be understood that, after the second terminal is connected according to the existing WiFi hotspot connection mode, the second terminal is normally connected. The WiFi connection is used for network access. For example, the second terminal downloading process and the background application download do not require user prompting;
S708:第二终端完成热点连接。 S708: The second terminal completes the hotspot connection.
本实施例提供了一种手机热点分享的详细流程,第一终端将添加了热点指示信息的WiFi网络协议数据进行SSID广播,第二终端扫描到所述第一终端的SSID,获取所述SSID对应的WiFi网络协议数据,解析所述WiFi网络协议数据包含热点标记信息,第二终端确认接入的WiFi热点由第一终端通过WiFi热点共享提供,所述第二终端接入第一终端对应的WiFi热点,并对接入WiFi热点后的网络访问进行流量控制,从而解决热点共享造成的后台大流量消耗问题。The embodiment provides a detailed process of sharing the hotspot of the mobile phone. The first terminal broadcasts the WiFi network protocol data with the hot spot indication information to the SSID, and the second terminal scans the SSID of the first terminal to obtain the corresponding SSID. Wifi network protocol data, parsing the WiFi network protocol data to include hotspot flag information, the second terminal confirming that the accessed WiFi hotspot is provided by the first terminal through the WiFi hotspot sharing, and the second terminal accessing the WiFi corresponding to the first terminal Hotspots, and traffic control for network access after accessing the WiFi hotspot, thus solving the problem of large traffic consumption in the background caused by hotspot sharing.
实施例四 Embodiment 4
基于前述实施例相同的技术构思,参见图8,其示出了本发明实施例的第一终端80,所述第一终端80包括:开启模块801、第一获取模块802及广播模块803,其中,Based on the same technical concept of the foregoing embodiment, referring to FIG. 8 , the first terminal 80 of the embodiment of the present invention is shown. The first terminal 80 includes: an opening module 801, a first obtaining module 802, and a broadcasting module 803. ,
开启模块801,配置为开启WiFi热点;The module 801 is enabled to be configured to enable a WiFi hotspot;
第一获取模块802,配置为将热点指示信息添加至现有的WiFi网络协议数据,获取更新的WiFi网络协议数据;The first obtaining module 802 is configured to add the hot spot indication information to the existing WiFi network protocol data to obtain updated WiFi network protocol data.
广播模块803,用于将更新的WiFi网络协议数据进行SSID广播。The broadcast module 803 is configured to perform the SSID broadcast on the updated WiFi network protocol data.
在上述方案中,热点指示信息,配置为:In the above solution, the hot spot indication information is configured as:
表征更新的WiFi网络协议数据由第一终端通过WiFi热点共享提供,所述热点指示信息的具体形式可以是字符标记或者字符串标记,例如:“phoneWifiType”字符串,本发明不限于以上两种方式,还可以是其他标记方式;The characterization of the updated WiFi network protocol data is provided by the first terminal through the WiFi hotspot sharing, and the specific form of the hotspot indication information may be a character tag or a string tag, for example, a “phoneWifiType” string, and the present invention is not limited to the above two modes. , can also be other marking methods;
可选地,将热点指示信息添加至现有的WiFi网络协议数据中,可以在现有的WiFi网络协议数据帧指定位置增加热点标记信息,例如,所述热点标记信息具体可以添加至WiFi网络协议数据帧的预留空位。Optionally, the hotspot indication information is added to the existing WiFi network protocol data, and the hotspot marking information may be added to the existing WiFi network protocol data frame specified location. For example, the hotspot marking information may be specifically added to the WiFi network protocol. Reserved space for data frames.
所述现有的WiFi网络协议数据及现有的WiFi网络协议数据帧对应于 现有WiFi网络协议,所述现有的WiFi网络协议用于表征在进行网络访问时,下载过程及后台的应用下载不需要进行用户提示。The existing WiFi network protocol data and the existing WiFi network protocol data frame correspond to The existing WiFi network protocol is used to indicate that when the network access is performed, the download process and the application download in the background do not require user prompting.
所述第一获取模块802,配置为:The first obtaining module 802 is configured to:
调用hostapd进程完成配置文件的设置;其中,所述配置文件包括:SSID、热点的物理地址(BSSID,Basic Service Set Identifier)、认证方式和密码等信息;Calling the hostapd process to complete the setting of the configuration file; wherein the configuration file includes: SSID, a physical address of the hotspot (BSSID, Basic Service Set Identifier), an authentication mode, and a password;
以及,通过hostapd进程指示WiFi驱动在WiFi网络协议中添加热点指示信息,获取更新的WiFi网络协议数据。And indicating, by the hostapd process, the WiFi driver adds hotspot indication information to the WiFi network protocol to obtain updated WiFi network protocol data.
相应地,所述广播模块803,配置为:Correspondingly, the broadcast module 803 is configured to:
将更新的WiFi网络协议数据通过空口网络进行SSID广播。The updated WiFi network protocol data is broadcasted through the air interface network for SSID.
本实施例提供的第一终端80,由于实施例中更新的WiFi网络协议数据中添加了热点指示信息,在对更新的WiFi网络协议数据进行SSID广播时,可以区别现有的WiFi网络协议数据,从而解决热点共享造成的后台大流量消耗问题。The first terminal 80 provided in this embodiment may add the hotspot indication information to the updated WiFi network protocol data in the embodiment, and may distinguish the existing WiFi network protocol data when the SSID broadcast is performed on the updated WiFi network protocol data. Thereby solving the problem of large traffic consumption in the background caused by hotspot sharing.
实施例五Embodiment 5
基于前述实施例相同的技术构思,参见图9,其示出了本发明实施例的第二终端90,所述第二终端90包括:扫描模块901、第二获取模块902、解析模块903及控制模块904,其中,Based on the same technical concept of the foregoing embodiment, referring to FIG. 9, a second terminal 90 of the embodiment of the present invention is shown. The second terminal 90 includes: a scanning module 901, a second obtaining module 902, a parsing module 903, and a control. Module 904, wherein
扫描模块901,配置为扫描WiFi热点的SSID;The scanning module 901 is configured to scan an SSID of the WiFi hotspot;
第二获取模块902,用于当所述扫描模块扫描WiFi热点的SSID时,获取WiFi网络协议数据;The second obtaining module 902 is configured to acquire WiFi network protocol data when the scanning module scans an SSID of the WiFi hotspot;
解析模块903,配置为对WiFi网络协议数据进行解析;The parsing module 903 is configured to parse the WiFi network protocol data;
控制模块904,配置为当解析的WiFi网络协议数据包含热点指示信息时,接入所述WiFi网络协议数据对应的WiFi热点,并对接入WiFi热点后 的网络访问进行流量控制。The control module 904 is configured to: when the parsed WiFi network protocol data includes the hot spot indication information, access the WiFi hotspot corresponding to the WiFi network protocol data, and access the WiFi hotspot Network access for flow control.
在上述方案中,对于热点指示信息,具体用于表征第二终端获取的WiFi网络协议数据由实施例四中广播模块提供,其具体形式可以是字符标记或者字符串标记,例如:“phoneWifiType”字符串,本发明不限于以上两种方式,还可以是其他标记方式;In the above solution, for the hot spot indication information, the WiFi network protocol data specifically used to represent the second terminal acquisition is provided by the broadcast module in the fourth embodiment, and the specific form may be a character tag or a string tag, for example: “phoneWifiType” character. The present invention is not limited to the above two methods, and may be other marking methods;
可选地,第二终端解析的WiFi网络协议数据包含的热点指示信息,可以位于现有的WiFi网络协议数据帧的指定位置,例如图2所示,“phoneWifiType”字符串可以位于WiFi网络协议数据帧的预留空位;Optionally, the hot spot indication information included in the WiFi network protocol data parsed by the second terminal may be located at a specified location of the existing WiFi network protocol data frame. For example, as shown in FIG. 2, the “phoneWifiType” string may be located in the WiFi network protocol data. Reserved space of the frame;
所述现有的WiFi网络协议数据帧对应于现有WiFi网络协议,所述现有的WiFi网络协议用于表征在进行网络访问时,下载过程及后台的应用下载不需要进行用户提示。The existing WiFi network protocol data frame corresponds to the existing WiFi network protocol, and the existing WiFi network protocol is used to indicate that when the network access is performed, the download process and the application download in the background do not need to prompt the user.
对于扫描模块901,配置为:For the scanning module 901, the configuration is:
对WiFi热点的SSID进行扫描具体指第二终端是在预设距离内对WiFi热点的SSID进行扫描;Scanning the SSID of the WiFi hotspot specifically means that the second terminal scans the SSID of the WiFi hotspot within a preset distance;
所述的预设距离是第二终端能够扫描到WiFi热点的最大距离,比如:可以扫描距离第二终端十米范围内的所有WiFi热点。The preset distance is a maximum distance that the second terminal can scan to the WiFi hotspot. For example, all WiFi hotspots within a range of ten meters from the second terminal can be scanned.
对于解析模块903,配置为:For the parsing module 903, the configuration is:
对所述WiFi网络协议数据帧的解析,所述解析过程与现有的WiFi网络协议数据的解析过程一致;Parsing the WiFi network protocol data frame, the parsing process is consistent with the parsing process of the existing WiFi network protocol data;
所述现有的WiFi网络协议数据对应于现有WiFi网络协议,所述现有的WiFi网络协议用于表征在进行网络访问时,下载过程及后台的应用下载不需要进行用户提示。The existing WiFi network protocol data corresponds to the existing WiFi network protocol, and the existing WiFi network protocol is used to indicate that when the network access is performed, the download process and the application download in the background do not need to prompt the user.
对于本实施例,需要说明的是,当WiFi网络协议数据不包含热点指示信息时,参见图10,所述第二终端还包括接入模块905,用于接入WiFi热 点,并按照现有的WiFi热点连接方式进行连接,可选地,接入模块905具体用于:For the embodiment, it is to be noted that when the WiFi network protocol data does not include the hot spot indication information, referring to FIG. 10, the second terminal further includes an access module 905, configured to access the WiFi hot. Pointing and connecting according to the existing WiFi hotspot connection mode. Optionally, the access module 905 is specifically configured to:
按照现有的WiFi热点连接方式进行连接后,进行网络访问时下载过程及后台的应用下载时不需要进行用户提示。After the connection is made according to the existing WiFi hotspot connection mode, the user does not need to prompt the user during the download process of the network access and the application download in the background.
可选地,对于控制模块904,配置为:Optionally, for the control module 904, the configuration is:
当需要进行流量使用时,显示提示消息;其中,所述提示消息用于提示是否进行流量使用,具体包括:When a traffic usage is required, a prompt message is displayed, where the prompt message is used to prompt whether to use the traffic, including:
当接收到针对所述提示消息的第一响应指令时,提示用户进行确定下载,且断开用户的后台应用下载数据;When receiving the first response instruction for the prompt message, prompting the user to determine the download, and disconnecting the background application download data of the user;
当接收到针对所述提示消息的第二响应指令时,在下载过程及后台的应用下载时不需要进行用户提示。When the second response instruction for the prompt message is received, no user prompt is required during the download process and the application download in the background.
本实施例提供的第二终端90,解析模块903解析WiFi网络协议数据,控制模块904确定WiFi网络协议数据中包含热点指示信息时,接入所述WiFi网络协议数据对应的WiFi热点,并对接入WiFi热点后的网络访问进行流量控制,从而解决热点共享造成的后台大流量消耗问题。In the second terminal 90 provided by the embodiment, the parsing module 903 parses the WiFi network protocol data, and the control module 904 determines that the WiFi hotspot indication information is included in the WiFi network protocol data, accesses the WiFi hotspot corresponding to the WiFi network protocol data, and connects the WiFi hotspot. The network access after the WiFi hotspot is used for traffic control, thereby solving the problem of large background traffic consumption caused by hotspot sharing.
此外,基于前述实施例相同的技术构思,参见图11,本发明实施例还提供了一种热点共享***110,该***包括提供WiFi热点共享的第一终端80和使用WiFi热点共享的第二终端90,其中,In addition, based on the same technical concept of the foregoing embodiment, referring to FIG. 11, the embodiment of the present invention further provides a hotspot sharing system 110, which includes a first terminal 80 that provides WiFi hotspot sharing and a second terminal that uses WiFi hotspot sharing. 90, of which
第一终端80,,配置为开启WiFi热点;以及,The first terminal 80 is configured to enable a WiFi hotspot; and,
通过将热点指示信息添加至现有的WiFi网络协议数据,获取更新的WiFi网络协议数据;以及,Obtaining updated WiFi network protocol data by adding hot spot indication information to existing WiFi network protocol data;
将更新的WiFi网络协议数据进行SSID广播;The updated WiFi network protocol data is broadcasted by the SSID;
第二终端90,,配置为扫描WiFi热点的SSID时,获取WiFi网络协议数据;以及, The second terminal 90, configured to scan the SSID of the WiFi hotspot, obtain WiFi network protocol data; and,
对WiFi网络协议数据进行解析;以及,Parsing the WiFi network protocol data; and,
当解析的WiFi网络协议数据包含热点指示信息时,第二终端接入所述WiFi网络协议数据对应的WiFi热点,并对接入WiFi热点后的网络访问进行流量控制。When the parsed WiFi network protocol data includes hotspot indication information, the second terminal accesses the WiFi hotspot corresponding to the WiFi network protocol data, and performs flow control on the network access after accessing the WiFi hotspot.
本发明实施例提供一种终端,包括:The embodiment of the invention provides a terminal, including:
存储器,配置为存储计算机程序;a memory configured to store a computer program;
WiFi通信模组,用于提供WiFi热点和/或进行WiFi热点共享;WiFi communication module for providing WiFi hotspots and/or sharing WiFi hotspots;
处理器,分别与所述存储器及所述WiFi通信模组进行连接,配置为通过执行所述计算机程序实现前述任意一个或多个实施例提供的热点共享方法。The processor is configured to connect to the memory and the WiFi communication module, and is configured to implement the hotspot sharing method provided by any one or more of the foregoing embodiments by executing the computer program.
这里的存储器可包括各种类型的存储介质,例如,可包括非瞬间存储介质,用于存储所述计算机程序。The memory herein may include various types of storage media, for example, may include non-transitory storage media for storing the computer program.
所述WiFi通信模组包括:传输WiFi信号的天线及WiFi信号处理器等,可用于提供WiFi热点共享或共享其他终端提供的WiFi热点。The WiFi communication module includes: an antenna for transmitting a WiFi signal, a WiFi signal processor, and the like, and can be used to provide a WiFi hotspot to share or share a WiFi hotspot provided by other terminals.
所述处理器可为移动终端中的应用处理器AP(AP,Application Processor)、中央处理器(CPU,Central Processing Unit)、数字信号处理器(DSP,Digital Signal Processor)或可编程门阵列(FPGA,Field Programmable Gate Array)。The processor may be an application processor (AP), a central processing unit (CPU), a digital signal processor (DSP), or a programmable gate array (FPGA) in a mobile terminal. , Field Programmable Gate Array).
所述处理器可以通过集成电路(IIC)总线通过存储器与WiFi通信模组连接,通过上述计算机程序的执行实现上述任意一个技术方案。The processor may be connected to the WiFi communication module through a memory through an integrated circuit (IIC) bus, and any one of the above technical solutions may be implemented by execution of the above computer program.
本发明实施例还提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行前述任意一个或多个实施例提供的热点共享方法。The embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions for performing the hotspot sharing method provided by any one or more of the foregoing embodiments.
本发明实施例提供的计算机存储介质可为光盘、磁带、移动硬盘或随机存储介质等各种存储介质,可选为非瞬间存储介质。 The computer storage medium provided by the embodiment of the present invention may be any storage medium such as an optical disk, a magnetic tape, a mobile hard disk, or a random storage medium, and may be a non-transitory storage medium.
本领域内的技术人员应该明白,本发明的实施例可提供方法、***、或者计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、获结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含由计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention can provide a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.
本发明时参照根据本发明实施例的方法、设备(***)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现程序图和/或方框图中每一流程和/获方框、以及流程图和/或方框图中的流程和/或的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或者其他可编程数据处理设备的处理器易产生一个机器,是的通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或者多个方框中指定的功能的装置。The invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the program diagrams and/or block diagrams, and combinations and/or combinations of flowcharts and/or block diagrams can be implemented by computer program instructions. Processors that provide such computer program instructions to a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device are susceptible to generating a machine that is executed by a processor or other programmable data processing device. Means for implementing the functions specified in one or more flows of the flowchart or in a block or blocks of the flowchart.
这些计算机程序指令也可以存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算及可读存储器中的指令产生包括指令装置的制造品。该指令装置实现在流程图中一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computing and readable memory produce an article of manufacture comprising the instruction device. The instruction means implements the functions specified in one or more blocks of the flow or processes and/or block diagrams in the flowchart.
这些计算机程序指令也可装载在计算机或其他可编程处理设备上,使得在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable processing device such that instructions executed on a computer or other programmable device are provided for implementation in a flow or a block diagram of a flow or a block diagram or The steps of the function specified in multiple boxes.
以上,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围,凡按照本发明原理所作的修改,都应当理解为落入本发明的保护范围。 The above is only the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and modifications made in accordance with the principles of the present invention are understood to fall within the scope of the present invention.
工业实用性Industrial applicability
本发明实施例中在终端提供WiFi热点时会形成热点指示信息,并将热点指示信息携带在WiFi网络数据中进行SSID广播,这样使用终端提供的WiFi热点的终端就可以接收到该热点指示信息,就可以根据该热点指示信息在使用该WiFi热点时进行对应的流量控制,从而避免使用手机热点时无限制进行流量导致的流量滥用的问题,具有在工业上实现简单及易于推广的特点。 In the embodiment of the present invention, when the terminal provides the WiFi hotspot, the hot spot indication information is formed, and the hot spot indication information is carried in the WiFi network data for SSID broadcast, so that the terminal that uses the WiFi hotspot provided by the terminal can receive the hot spot indication information. According to the hot spot indication information, the corresponding traffic control is performed when the WiFi hotspot is used, thereby avoiding the problem of traffic abuse caused by unlimited traffic when using the mobile hotspot, and having the characteristics of being simple and easy to promote in the industry.

Claims (27)

  1. 一种热点共享方法,所述方法应用于提供WiFi热点共享的第一终端侧,所述方法包括:A hotspot sharing method, the method is applied to a first terminal side that provides WiFi hotspot sharing, and the method includes:
    所述第一终端开启WiFi热点;The first terminal starts a WiFi hotspot;
    所述第一终端通过将热点指示信息添加至现有的WiFi网络协议数据,获取更新的WiFi网络协议数据;The first terminal acquires updated WiFi network protocol data by adding hot spot indication information to existing WiFi network protocol data;
    所述第一终端将所述更新的WiFi网络协议数据进行SSID广播。The first terminal performs the SSID broadcast on the updated WiFi network protocol data.
  2. 根据权利要求1所述的方法,其中,所述热点指示信息用于表征更新的WiFi网络协议数据由所述第一终端通过WiFi热点共享提供。The method of claim 1, wherein the hotspot indication information is used to characterize that updated WiFi network protocol data is provided by the first terminal via WiFi hotspot sharing.
  3. 根据权利要求1所述的方法,其中,所述第一终端通过将热点指示信息添加至现有的WiFi网络协议数据,获取更新的WiFi网络协议数据,包括:The method of claim 1, wherein the first terminal acquires the updated WiFi network protocol data by adding the hot spot indication information to the existing WiFi network protocol data, including:
    所述第一终端将所述热点指示信息添加在现有的WiFi网络协议数据帧中的预留空位,获取更新的WiFi网络协议数据。The first terminal adds the hot spot indication information to a reserved slot in an existing WiFi network protocol data frame to obtain updated WiFi network protocol data.
  4. 根据权利要求1所述的方法,其中,所述第一终端通过将热点指示信息添加至现有的WiFi网络协议数据,获取更新的WiFi网络协议数据,包括:The method of claim 1, wherein the first terminal acquires the updated WiFi network protocol data by adding the hot spot indication information to the existing WiFi network protocol data, including:
    所述第一终端在开启WiFi热点之后,调用hostapd进程完成配置文件的设置;以及,After the first terminal opens the WiFi hotspot, the hostapd process is called to complete the configuration file setting; and,
    所述第一终端通过hostapd进程指示WiFi驱动在WiFi网络协议中添加热点指示信息,获取更新的WiFi网络协议数据。The first terminal instructs the WiFi driver to add hotspot indication information in the WiFi network protocol through the hostapd process, and obtain updated WiFi network protocol data.
  5. 根据权利要求4所述的方法,其中,所述hostapd进程和WiFi驱动 均在第一终端内部,所述第一终端通过hostapd进程指示WiFi驱动在WiFi网络协议中添加热点指示信息,包括:The method of claim 4 wherein said hostapd process and WiFi driver The first terminal is in the first terminal, and the first terminal instructs the WiFi driver to add the hot spot indication information in the WiFi network protocol by using the hostapd process, including:
    所述hostapd进程向所述WiFi驱动发送热点指示信息添加请求;以及,The hostapd process sends a hotspot indication information addition request to the WiFi driver; and,
    所述WiFi驱动在所述WiFi网络协议数据帧的预留空位添加热点指示信息。The WiFi driver adds hotspot indication information in a reserved slot of the WiFi network protocol data frame.
  6. 根据权利要求1至5任一项所述的方法,A method according to any one of claims 1 to 5,
    所述热点指示信息,用于第二终端在使用所述第一终端提供的热点时,触发流量控制。The hot spot indication information is used by the second terminal to trigger flow control when using the hotspot provided by the first terminal.
  7. 一种热点共享方法,所述方法应用于使用WiFi热点共享的第二终端侧,所述方法包括:A method for sharing a hotspot, the method being applied to a second terminal side shared by a WiFi hotspot, the method comprising:
    所述第二终端扫描WiFi热点的服务集标识SSID时,获取WiFi网络协议数据;When the second terminal scans the service set identifier SSID of the WiFi hotspot, the WiFi network protocol data is obtained;
    所述第二终端对所述WiFi网络协议数据进行解析;The second terminal parses the WiFi network protocol data;
    当所述WiFi网络协议数据包含热点指示信息时,所述第二终端接入所述WiFi网络协议数据对应的WiFi热点,并对接入WiFi热点后的网络访问进行流量控制。When the WiFi network protocol data includes the hot spot indication information, the second terminal accesses the WiFi hotspot corresponding to the WiFi network protocol data, and performs flow control on the network access after accessing the WiFi hotspot.
  8. 根据权利要求7所述的方法,其中,所述热点指示信息用于表征所述第二终端获取的WiFi网络协议数据由第一终端通过WiFi热点共享提供。The method according to claim 7, wherein the hot spot indication information is used to represent that the WiFi network protocol data acquired by the second terminal is provided by the first terminal through WiFi hotspot sharing.
  9. 根据权利要求7所述的方法,其中,当所述WiFi网络协议数据包含热点指示信息时,所述第二终端接入所述WiFi网络协议数据对应的WiFi热点,并对接入WiFi热点后的网络访问进行流量控制,包括:The method of claim 7, wherein when the WiFi network protocol data includes hotspot indication information, the second terminal accesses a WiFi hotspot corresponding to the WiFi network protocol data, and accesses the WiFi hotspot Network access for flow control, including:
    当所述WiFi网络协议数据帧的预留空位包含热点指示信息时,所述第二终端接入所述WiFi网络协议数据对应的WiFi热点,并对接入WiFi热点后的网络访问进行流量控制。 When the reserved space of the WiFi network protocol data frame includes the hot spot indication information, the second terminal accesses the WiFi hotspot corresponding to the WiFi network protocol data, and performs flow control on the network access after accessing the WiFi hotspot.
  10. 根据权利要求7所述的方法,其中,所述第二终端扫描WiFi热点的SSID时,获取WiFi网络协议数据,包括:The method of claim 7, wherein when the second terminal scans the SSID of the WiFi hotspot, acquiring the WiFi network protocol data includes:
    所述第二终端在预设距离内扫描WiFi热点的SSID;以及,The second terminal scans an SSID of the WiFi hotspot within a preset distance; and,
    所述第二终端扫描到所述WiFi热点的SSID后,通过SSID获取对应的WiFi网络协议数据。After the second terminal scans the SSID of the WiFi hotspot, the second terminal obtains the corresponding WiFi network protocol data by using the SSID.
  11. 根据权利要求7所述的方法,其中,当所述WiFi网络协议数据不包含热点指示信息时,所述方法还包括:所述第二终端接入所述WiFi网络协议数据对应的WiFi热点,并按照现有的WiFi热点连接方式进行连接。The method of claim 7, wherein when the WiFi network protocol data does not include hotspot indication information, the method further comprises: the second terminal accessing a WiFi hotspot corresponding to the WiFi network protocol data, and Connect according to the existing WiFi hotspot connection method.
  12. 根据权利要求7所述的方法,其中,所述对接入WiFi热点后的网络访问进行流量控制,具体包括:The method of claim 7, wherein the controlling the network access after accessing the WiFi hotspot comprises:
    所述第二终端需要进行流量使用时,所述第二终端显示提示消息;其中,所述提示消息用于提示是否进行流量使用,包括:When the second terminal needs to use the traffic, the second terminal displays a prompt message, where the prompt message is used to prompt whether to use the traffic, including:
    当所述第二终端接收到针对所述提示消息的第一响应指令时,所述第二终端提示用户进行确定下载,且断开用户的后台应用下载数据;When the second terminal receives the first response instruction for the prompt message, the second terminal prompts the user to perform a determination download, and disconnects the background application download data of the user;
    当所述第二终端接收到针对所述提示消息的第二响应指令时,所述第二终端下载过程及后台的应用下载不需要进行用户提示。When the second terminal receives the second response instruction for the prompt message, the second terminal download process and the application download in the background do not need to prompt the user.
  13. 一种用于提供WiFi热点共享的第一终端,其中,所述第一终端包括:开启模块、第一获取模块和广播模块;其中,A first terminal for providing WiFi hotspot sharing, wherein the first terminal includes: an opening module, a first acquiring module, and a broadcasting module;
    所述开启模块,配置为开启WiFi热点;The opening module is configured to enable a WiFi hotspot;
    所述第一获取模块,配置为将热点指示信息添加至现有的WiFi网络协议数据,获取更新的WiFi网络协议数据;The first acquiring module is configured to add hot spot indication information to existing WiFi network protocol data, and obtain updated WiFi network protocol data;
    所述广播模块,配置为将更新的WiFi网络协议数据进行SSID广播。The broadcast module is configured to perform the SSID broadcast on the updated WiFi network protocol data.
  14. 根据权利要求13所述的第一终端,其中,所述热点指示信息用于表征更新的WiFi网络协议数据由所述第一终端通过WiFi热点共享提供。 The first terminal according to claim 13, wherein the hot spot indication information is used to represent that updated WiFi network protocol data is provided by the first terminal through WiFi hotspot sharing.
  15. 根据权利要求13所述的第一终端,其中,所述第一获取模块,配置为将所述热点指示信息添加在现有的WiFi网络协议数据帧中的预留空位,获取更新的WiFi网络协议数据。The first terminal according to claim 13, wherein the first obtaining module is configured to add the hot spot indication information to a reserved slot in an existing WiFi network protocol data frame to obtain an updated WiFi network protocol. data.
  16. 根据权利要求13所述的第一终端,其中,所述第一获取模块,配置为调用hostapd进程完成配置文件的设置;以及,通过hostapd进程指示WiFi驱动在WiFi网络协议中添加热点指示信息,获取更新的WiFi网络协议数据。The first terminal according to claim 13, wherein the first obtaining module is configured to invoke a hostapd process to complete setting of a configuration file; and, by the hostapd process, instruct the WiFi driver to add hotspot indication information to the WiFi network protocol, and obtain Updated WiFi network protocol data.
  17. 根据权利要求13至16任一项所述的终端,其中,所述热点指示信息,用于第二终端在使用所述第一终端提供的热点时,触发流量控制。The terminal according to any one of claims 13 to 16, wherein the hot spot indication information is used by the second terminal to trigger flow control when using the hotspot provided by the first terminal.
  18. 一种用于使用WiFi热点共享的第二终端,其中,所述第二终端包括:扫描模块、第二获取模块、解析模块及控制模块,其中,A second terminal for sharing with a WiFi hotspot, wherein the second terminal includes: a scanning module, a second acquiring module, a parsing module, and a control module, where
    所述扫描模块,配置为扫描WiFi热点的SSID;The scanning module is configured to scan an SSID of a WiFi hotspot;
    所述第二获取模块,配置为当所述扫描模块扫描WiFi热点的SSID时,获取WiFi网络协议数据;The second acquiring module is configured to acquire WiFi network protocol data when the scanning module scans an SSID of the WiFi hotspot;
    所述解析模块,配置为对WiFi网络协议数据进行解析;The parsing module is configured to parse the WiFi network protocol data;
    所述控制模块,配置为当解析的WiFi网络协议数据包含热点指示信息时,接入所述WiFi网络协议数据对应的WiFi热点,并对接入WiFi热点后的网络访问进行流量控制。The control module is configured to access a WiFi hotspot corresponding to the WiFi network protocol data when the parsed WiFi network protocol data includes the hot spot indication information, and perform flow control on the network access after accessing the WiFi hotspot.
  19. 根据权利要求18所述的第二终端,其中,所述热点指示信息用于表征所述第二终端获取的WiFi网络协议数据由第一终端通过WiFi热点共享提供。The second terminal according to claim 18, wherein the hot spot indication information is used to represent that the WiFi network protocol data acquired by the second terminal is provided by the first terminal through WiFi hotspot sharing.
  20. 根据权利要求18所述的第二终端,其中,所述控制模块,配置为当所述WiFi网络协议数据帧的预留空位包含热点指示信息时,接入所述WiFi网络协议数据对应的WiFi热点,并对接入WiFi热点后的网络访问进 行流量控制。The second terminal according to claim 18, wherein the control module is configured to access a WiFi hotspot corresponding to the WiFi network protocol data when the reserved space of the WiFi network protocol data frame includes hot spot indication information And access to the network after accessing the WiFi hotspot Line flow control.
  21. 根据权利要求18所述的第二终端,其中,所述扫描模块,配置为在预设距离内扫描WiFi热点的SSID,并扫描到所述WiFi热点的SSID时,触发所述第二获取模块。The second terminal according to claim 18, wherein the scanning module is configured to scan the SSID of the WiFi hotspot within a preset distance and scan the SSID of the WiFi hotspot to trigger the second acquiring module.
  22. 根据权利要求18所述的第二终端,其中,所述解析模块,配置为对所述WiFi网络协议数据帧的解析。The second terminal according to claim 18, wherein the parsing module is configured to parse the WiFi network protocol data frame.
  23. 根据权利要求18所述的第二终端,其中,当所述WiFi网络协议数据不包含热点指示信息时,所述第二终端还包括接入模块,所述接入模块配置为接入WiFi热点,并按照现有的WiFi热点连接方式进行连接。The second terminal according to claim 18, wherein when the WiFi network protocol data does not include hotspot indication information, the second terminal further includes an access module, and the access module is configured to access a WiFi hotspot. And connect according to the existing WiFi hotspot connection.
  24. 根据权利要求18所述的第二终端,其中,所述控制模块,配置为当接收到针对所述提示消息的第一响应指令时,提示用户进行确定下载,且断开用户的后台应用下载数据;The second terminal according to claim 18, wherein the control module is configured to prompt the user to perform a determination download and disconnect the user's background application download data when receiving the first response instruction for the prompt message ;
    当接收到针对所述提示消息的第二响应指令时,在下载过程及后台的应用下载时不需要进行用户提示。When the second response instruction for the prompt message is received, no user prompt is required during the download process and the application download in the background.
  25. 一种热点共享的***,其中,所述***包括:提供WiFi热点共享的第一终端和使用WiFi热点共享的第二终端,其中,A hotspot sharing system, where the system includes: a first terminal that provides WiFi hotspot sharing and a second terminal that uses a WiFi hotspot to share, where
    所述第一终端,配置为开启WiFi热点;以及,The first terminal is configured to enable a WiFi hotspot; and,
    通过将热点指示信息添加至现有的WiFi网络协议数据,获取更新的WiFi网络协议数据;以及,Obtaining updated WiFi network protocol data by adding hot spot indication information to existing WiFi network protocol data;
    将更新的WiFi网络协议数据进行SSID广播;The updated WiFi network protocol data is broadcasted by the SSID;
    所述第二终端,配置为扫描WiFi热点的SSID时,获取WiFi网络协议数据;以及,The second terminal, configured to scan the SSID of the WiFi hotspot, obtains WiFi network protocol data; and,
    对WiFi网络协议数据进行解析;以及,Parsing the WiFi network protocol data; and,
    当解析的WiFi网络协议数据包含热点指示信息时,第二终端接入所述 WiFi网络协议数据对应的WiFi热点,并对接入WiFi热点后的网络访问进行流量控制。When the parsed WiFi network protocol data includes hot spot indication information, the second terminal accesses the The WiFi hotspot corresponding to the WiFi network protocol data, and the flow control of the network access after accessing the WiFi hotspot.
  26. 一种终端,包括:A terminal comprising:
    存储器,配置为存储计算机程序;a memory configured to store a computer program;
    WiFi通信模组,用于提供WiFi热点和/或进行WiFi热点共享;WiFi communication module for providing WiFi hotspots and/or sharing WiFi hotspots;
    处理器,分别与所述存储器及所述WiFi通信模组进行连接,配置为通过执行所述计算机程序实现权利要求1至12任一项所述的方法。A processor, coupled to the memory and the WiFi communication module, respectively, configured to implement the method of any one of claims 1 to 12 by executing the computer program.
  27. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1至12任一项所述的方法。 A computer storage medium having stored therein computer executable instructions for performing the method of any one of claims 1 to 12.
PCT/CN2017/085229 2016-08-29 2017-05-19 Hotspot sharing method, terminal, system and computer storage medium WO2018040621A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610754318.8 2016-08-29
CN201610754318.8A CN108307359A (en) 2016-08-29 2016-08-29 A kind of method, terminal and system that hot spot is shared

Publications (1)

Publication Number Publication Date
WO2018040621A1 true WO2018040621A1 (en) 2018-03-08

Family

ID=61301353

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/085229 WO2018040621A1 (en) 2016-08-29 2017-05-19 Hotspot sharing method, terminal, system and computer storage medium

Country Status (2)

Country Link
CN (1) CN108307359A (en)
WO (1) WO2018040621A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111970676A (en) * 2019-05-20 2020-11-20 北京小米移动软件有限公司 WiFi hotspot access method, device, equipment and storage medium
CN113472611A (en) * 2021-07-26 2021-10-01 东莞市金锐显数码科技有限公司 Method and device for acquiring WiFi signal strength and readable storage medium
US11190597B1 (en) 2020-07-09 2021-11-30 International Business Machines Corporation Network bandwidth sharing

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111107614B (en) * 2018-10-26 2022-03-04 中兴通讯股份有限公司 Terminal device control method and device and terminal device readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103096384A (en) * 2012-12-17 2013-05-08 东莞宇龙通信科技有限公司 Method limiting slave internet traffic and system thereof
CN103167581A (en) * 2011-12-14 2013-06-19 北京千橡网景科技发展有限公司 Method and device for utilizing shared network connection information to access to short distance wireless network
CN103402230A (en) * 2013-08-14 2013-11-20 杭州浦禾通信技术有限公司 Method and system for surfing Internet through mobile hot spots
US20150270879A1 (en) * 2014-04-22 2015-09-24 Magnolia Broadband Inc. System and method for explicit channel sounding between access points

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5037718B1 (en) * 2011-07-27 2012-10-03 株式会社ビジョナリスト Simple operation type wireless data transmission / reception system and simple operation type wireless data transmission / reception program
JP2013131993A (en) * 2011-12-22 2013-07-04 Nec Access Technica Ltd Radio access point device, radio access point connection method, and radio access point connection program
CN105451269A (en) * 2014-07-04 2016-03-30 阿里巴巴集团控股有限公司 Wireless internet access traffic control method and device
CN104363588A (en) * 2014-11-19 2015-02-18 贵州万臻时代通讯技术有限公司 Mobile terminal internet access control method and mobile terminal
CN105430713A (en) * 2015-11-30 2016-03-23 东莞酷派软件技术有限公司 Identification method of wireless fidelity WiFi hotspot and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103167581A (en) * 2011-12-14 2013-06-19 北京千橡网景科技发展有限公司 Method and device for utilizing shared network connection information to access to short distance wireless network
CN103096384A (en) * 2012-12-17 2013-05-08 东莞宇龙通信科技有限公司 Method limiting slave internet traffic and system thereof
CN103402230A (en) * 2013-08-14 2013-11-20 杭州浦禾通信技术有限公司 Method and system for surfing Internet through mobile hot spots
US20150270879A1 (en) * 2014-04-22 2015-09-24 Magnolia Broadband Inc. System and method for explicit channel sounding between access points

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111970676A (en) * 2019-05-20 2020-11-20 北京小米移动软件有限公司 WiFi hotspot access method, device, equipment and storage medium
CN111970676B (en) * 2019-05-20 2023-07-18 北京小米移动软件有限公司 WiFi hot spot access method, device, equipment and storage medium
US11190597B1 (en) 2020-07-09 2021-11-30 International Business Machines Corporation Network bandwidth sharing
CN113472611A (en) * 2021-07-26 2021-10-01 东莞市金锐显数码科技有限公司 Method and device for acquiring WiFi signal strength and readable storage medium

Also Published As

Publication number Publication date
CN108307359A (en) 2018-07-20

Similar Documents

Publication Publication Date Title
US20230016378A1 (en) Pdu session management
CN112910913B (en) Method and network system for establishing session
WO2018082490A1 (en) User terminal location area update method, access network entity, user terminal, and core network entity
KR101830940B1 (en) Porting wifi settings
EP4072234A1 (en) Method for establishing connection and obtaining relay service code, and communication apparatus
US20160234301A1 (en) Methods, Systems, and Devices for Bluetooth Low Energy Discovery
CN112566149B (en) Method for configuring service, communication device and communication system
US10798082B2 (en) Network authentication triggering method and related device
WO2018040621A1 (en) Hotspot sharing method, terminal, system and computer storage medium
US11388661B2 (en) Network slice configuration update
US10716043B2 (en) Access point handover method and device
WO2019052168A1 (en) Method for configuring anr, terminal device, base station, and core network device
EP3442250B1 (en) Data transmission
WO2019242992A1 (en) Network address policy information received in a pre-associated state
CN102201846A (en) Wireless data transmission system and method based on soft AP (access point) technology
KR101460766B1 (en) Security setting system and the control method for using clurster function in Wireless network system
WO2022052798A1 (en) Qos control method and device, and processor-readable storage medium
WO2019096279A1 (en) Secure communication method and device
WO2019076308A1 (en) Method, apparatus and device for determining state of terminal device
WO2019100213A1 (en) Information transmission method, network device, and terminal device
US20190200226A1 (en) Method of authenticating access to a wireless communication network and corresponding apparatus
CN114080000B (en) Network slice determination method and device, core network equipment and terminal
KR100787575B1 (en) Method for automatic update of terminal profile, mobile communication terminal and subscriber identity module card apparatus therefor
CN115836539A (en) Communication method, device and system
WO2022237857A1 (en) Method for determining security protection enabling mode, communication method, and communication apparatus

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

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

Country of ref document: EP

Kind code of ref document: A1