WO2016177037A1 - Network connection method and device - Google Patents

Network connection method and device Download PDF

Info

Publication number
WO2016177037A1
WO2016177037A1 PCT/CN2016/074723 CN2016074723W WO2016177037A1 WO 2016177037 A1 WO2016177037 A1 WO 2016177037A1 CN 2016074723 W CN2016074723 W CN 2016074723W WO 2016177037 A1 WO2016177037 A1 WO 2016177037A1
Authority
WO
WIPO (PCT)
Prior art keywords
network
type
hotspot
terminal
accessed
Prior art date
Application number
PCT/CN2016/074723
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 WO2016177037A1 publication Critical patent/WO2016177037A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/18Selecting a network or a communication service
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/04Terminal devices adapted for relaying to or from another terminal or user
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals

Definitions

  • the present invention relates to the field of communications, and in particular to a network connection method and apparatus.
  • the industry has some provincial traffic schemes for mobile access.
  • the portable hotspot installs third-party software to set the mobile traffic usage limit, or the client application sets the Wi-Fi access only when the network is connected, and the client browser layout is smart and simple.
  • FIG. 1 is a flow chart of a related art in which a terminal is connected to an ordinary portable hotspot for data access. As shown in FIG. 1, the flow includes the following steps:
  • Step S102 the host (ie, the terminal that has opened the ordinary portable hotspot) sends a normal Wi-Fi broadcast frame;
  • Step S104 the client (ie, the terminal connected to the ordinary portable hotspot described above) establishes a connection with the host;
  • Step S106 the client defines the connection attribute as Wi-Fi access
  • Step S108 the client application closes the provincial traffic mode
  • Step S110 the client performs data access
  • step S112 the mobile traffic upper limit set by the host arrives, and the client cannot be connected to the network.
  • FIG. 2 is a flow chart of data access by a terminal in a related art through a mobile network. As shown in FIG. 2, the process includes the following steps:
  • Step S202 the client (same terminal) establishes a connection with the network
  • Step S204 the client defines the connection attribute as mobile access
  • Step S206 the client application enables the provincial traffic mode
  • Step S208 the client performs data access
  • step S210 the mobile traffic upper limit set by the client arrives, and the client cannot be networked.
  • the host user has a method to enable the traffic restriction
  • the connection may be considered to be the ordinary Wi-Fi connected to the wired broadband, thereby consuming the traffic regardless of the cost, resulting in the host.
  • the set mobile traffic limit is reached quickly, the host mobile traffic usage is not efficient, and the user experience is low.
  • the present invention provides a network connection method and apparatus, so as to solve at least the problem that the mobile traffic usage efficiency of the host existing in the related art is low and the user experience is low.
  • a network connection method including: acquiring a type of a network accessed by a first terminal that has a wireless fidelity Wi-Fi hotspot enabled; and adopting a type corresponding to the acquired type of the network.
  • the incoming mode accesses the network through the Wi-Fi hotspot.
  • the acquiring the type of the network that is accessed by the first terminal that is enabled by the Wi-Fi hotspot includes: receiving a broadcast frame of the first terminal, where the broadcast frame carries a first Instructing information, the first indication information is used to indicate a type of a network that is accessed by the first terminal that is enabled with the Wi-Fi hotspot; and/or, receiving a configuration file sent by the first terminal, where The configuration file carries the second indication information, where the second indication information is used to indicate the type of the network that the first terminal that is connected to the Wi-Fi hotspot is connected to.
  • accessing the network through the Wi-Fi hotspot by using an access mode corresponding to the type of the obtained network includes: prompting a user whether to connect to the Wi when the type of the network is a mobile network a Fi hotspot; after receiving a determination signal to determine the connection to the Wi-Fi hotspot, enabling a networked mode of saving data traffic for network connection; and/or, when the type of the network is a broadband network, accessing the Broadband network.
  • the method further includes: displaying the acquired type of the network.
  • a network connection method including: enabling a wireless fidelity Wi-Fi hotspot; notifying a second terminal of a type of the accessed network, wherein the type of the network is used to indicate The second terminal accesses the network through the Wi-Fi hotspot by using an access mode corresponding to the type of the network.
  • the notifying the type of the accessed network to the second terminal includes: a type of the network that is carried in a broadcast frame, and a broadcast of a type of the network that is carried by the broadcast Notifying the type of the accessed network to the second terminal; and/or transmitting a configuration file of the type of the network that is accessed to the second terminal.
  • a network connection apparatus including: an acquisition module, configured to acquire a type of a network accessed by a first terminal that has a wireless fidelity Wi-Fi hotspot enabled; and an access module configured to Accessing the network through the Wi-Fi hotspot by using an access mode corresponding to the type of the obtained network.
  • the acquiring module includes: a first receiving unit, configured to receive a broadcast frame of the first terminal, where the broadcast frame carries first indication information, where the first indication information is used to indicate And the second receiving unit is configured to receive the configuration file sent by the first terminal, where the configuration file carries The second indication information is used to indicate the type of the network that the first terminal that is connected to the Wi-Fi hotspot is connected to.
  • the access module includes: a display unit, configured to prompt a user to connect to the Wi-Fi hotspot when the type of the network is a mobile network; and a connection unit configured to receive the determined connection After determining the signal of the Wi-Fi hotspot, the network mode for saving data traffic is enabled for network connection; and/or the access unit is configured to access the broadband network when the type of the network is a broadband network.
  • the device further includes: a display module, configured to display the acquired type of the network after acquiring the type of the network accessed by the first terminal that is enabled with the Wi-Fi hotspot.
  • a display module configured to display the acquired type of the network after acquiring the type of the network accessed by the first terminal that is enabled with the Wi-Fi hotspot.
  • a network connection apparatus including: an opening module configured to enable a wireless fidelity Wi-Fi hotspot; and a notification module configured to notify a second terminal of a type of the accessed network,
  • the type of the network is used to indicate that the second terminal accesses the network through the Wi-Fi hotspot by using an access mode corresponding to the network type.
  • the notification module includes: a processing unit, configured to carry the type of the network accessed in a broadcast frame; and a notification unit configured to broadcast a broadcast frame of a type of the network that is accessed by broadcasting And notifying the type of the network that is accessed to the second terminal; and/or the sending unit is configured to send, to the second terminal, a configuration file of a type of the network that carries the access.
  • the type of the network accessed by the first terminal that has opened the wireless fidelity Wi-Fi hotspot is adopted; and the access method corresponding to the type of the acquired network is used to access the Wi-Fi hotspot.
  • the invention solves the problem that the mobile traffic of the host in the related technology has low use efficiency and low user experience, thereby achieving the effect of providing the mobile traffic usage efficiency of the host and improving the user experience.
  • FIG. 1 is a flow chart of a related art in which a terminal is connected to an ordinary portable hotspot for data access;
  • FIG. 2 is a flowchart of data access by a terminal in a related art through a mobile network
  • FIG. 3 is a flowchart of a first network connection method according to an embodiment of the present invention.
  • FIG. 4 is a flowchart of a second method of network connection according to an embodiment of the present invention.
  • FIG. 5 is a structural block diagram of a first network connection apparatus according to an embodiment of the present invention.
  • FIG. 6 is a structural block diagram of an acquisition module 52 in a first type of network connection apparatus according to an embodiment of the present invention.
  • FIG. 7 is a structural block diagram of an access module 54 in a first type of network connection device according to an embodiment of the present invention.
  • FIG. 8 is a block diagram showing a preferred structure of a first type of network connection apparatus according to an embodiment of the present invention.
  • FIG. 9 is a structural block diagram of a second type of network connection apparatus according to an embodiment of the present invention.
  • FIG. 10 is a structural block diagram of a notification module 94 in a second type of network connection apparatus according to an embodiment of the present invention.
  • FIG. 11 is a schematic diagram showing the structure and interaction of a host and a client according to an embodiment of the present invention.
  • FIG. 13 is a schematic diagram of a frame structure in the 802.11 specification
  • FIG. 14 is a schematic diagram of a frame structure including a hotspot type identifier according to an embodiment of the present invention.
  • FIG. 3 is a flowchart of a first network connection method according to an embodiment of the present invention. As shown in FIG. 3, the process includes the following steps:
  • Step S302 Acquire a type of a network that is accessed by the first terminal that has the wireless fidelity Wi-Fi hotspot enabled;
  • Step S304 accessing the network through the Wi-Fi hotspot by using an access mode corresponding to the acquired type of the network.
  • the network type of the network accessed by the first terminal (the same host) that starts the Wi-Fi hotspot can be obtained, thereby determining that the accessed network is a mobile network.
  • the access is still a common wired broadband access, so that the network connection of the corresponding access mode can be performed according to the type of the network, and the mobile traffic using the host (ie, the first terminal) in the related art is inefficiently used.
  • the problem of low user experience thereby achieving the effect of providing the mobile traffic usage efficiency of the host and improving the user experience.
  • the type of the network that the first terminal that accesses the Wi-Fi hotspot is connected to includes the type of the network that is accessed by the first terminal.
  • the foregoing broadcast frame may be received before the second terminal establishes a connection with the first terminal by using the Wi-Fi hotspot.
  • the foregoing configuration file may be after the second terminal establishes a connection with the first terminal by using the Wi-Fi hotspot. Receiving Arrived.
  • the above two acquisition methods are only examples, and other methods may be used for acquisition, which are not enumerated here.
  • accessing the network through the Wi-Fi hotspot by using an access mode corresponding to the type of the obtained network includes: when the type of the network is a mobile network, prompting the user whether to connect to the Wi- Fi hotspot; after receiving the determination signal for determining the connection to the Wi-Fi hotspot, enabling the network mode of saving data traffic for network connection; and/or, when the type of the network is a broadband network, accessing the broadband network.
  • the above prompt manners may be various.
  • the prompt information may be displayed by prompting, or may be prompted by voice prompting.
  • the type of the network accessed by the first terminal is a mobile network
  • the application that accesses the network through the Wi-Fi hotspot may consume a particularly large amount of traffic.
  • the type of the network is a broadband network
  • the charging mode is not based on how much traffic is used. Therefore, the access mode of the normal access broadband network can be used for network connection without opening a network mode for saving traffic. To improve the user experience.
  • the method further includes: displaying the acquired type of the network. That is, the type of the accessed network is displayed in the terminal accessing the network through the Wi-Fi hotspot, thereby promptly reminding the user to exit the network connection in time after the network is not needed, thereby effectively saving the traffic of the host.
  • FIG. 4 is a flowchart of a second network connection method according to an embodiment of the present invention. As shown in FIG. 4, the process includes the following steps:
  • Step S402 turning on the wireless fidelity Wi-Fi hotspot
  • step S404 the type of the accessed network is notified to the second terminal, where the type of the network is used to indicate that the second terminal accesses the network through the Wi-Fi hotspot by using an access mode corresponding to the type of the network.
  • the type of the network can be notified to the second terminal accessing the network through the Wi-Fi hotspot, so that the network explicitly accessed by the second terminal is the mobile network access or the common Wired broadband access, which can select a corresponding access mode for network connection according to different network types, and solves the mobile traffic usage efficiency of the host (ie, the above-mentioned terminal without Wi-Fi hotspot) existing in the related art.
  • the problem of low user experience is low, and thus the efficiency of using the mobile traffic of the host is improved, and the user experience is improved.
  • notifying the type of the accessed network to the second terminal includes: a type of the network that carries the access in the broadcast frame; and broadcasting the broadcast frame of the type that carries the accessed network by broadcasting And notifying the type of the accessed network to the second terminal; and/or transmitting, to the second terminal, a configuration file of a type of the network that carries the access.
  • notification methods are only examples, and other methods may be used for notification, which are not enumerated here.
  • the method according to the above embodiments can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases It is a better implementation.
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
  • the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
  • a network connection device is also provided, which is used to implement the above-mentioned embodiments and preferred embodiments, and has not been described again.
  • the term “module” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • FIG. 5 is a structural block diagram of a first type of network connection apparatus according to an embodiment of the present invention. As shown in FIG. 5, the apparatus includes an acquisition module 52 and an access module 54, which will be described below.
  • the obtaining module 52 is configured to acquire a type of the network that the first terminal that is connected to the wireless fidelity Wi-Fi hotspot is connected to; the access module 54 is connected to the obtaining module 52, and is configured to adopt the type of the network that is acquired.
  • the access method accesses the above network through a Wi-Fi hotspot.
  • FIG. 6 is a structural block diagram of an acquisition module 52 in a first type of network connection apparatus according to an embodiment of the present invention. As shown in FIG. 6, the acquisition module 52 includes a first receiving unit 62, and/or the acquisition module 52 includes The receiving unit 64 is described below.
  • the first receiving unit 62 is configured to receive the broadcast frame of the first terminal, where the broadcast frame carries the first indication information, where the first indication information is used to indicate that the first terminal access of the Wi-Fi hotspot is enabled.
  • the type of the network; and/or the second receiving unit 64 is configured to receive the configuration file sent by the first terminal, where the configuration file carries the network accessed by the first terminal that has the Wi-Fi hotspot enabled. Types of.
  • FIG. 7 is a structural block diagram of an access module 54 in a first type of network connection device according to an embodiment of the present invention.
  • the access module 54 includes a display unit 72 and a connection unit 74; and/or
  • the incoming module 54 includes an access unit 76, which is described below.
  • the display unit 72 is configured to prompt the user whether to connect to the Wi-Fi hotspot when the type of the network is a mobile network
  • the connection unit 74 is connected to the display unit 72, and is configured to receive the connection to determine the Wi-Fi hotspot. After determining the signal, enable the network mode that saves data traffic for network connection;
  • the access unit 76 is configured to access the broadband network when the type of the network is a broadband network.
  • FIG. 8 is a block diagram showing a preferred structure of a first type of network connection apparatus according to an embodiment of the present invention. As shown in FIG. 8, the apparatus includes a display module 82 in addition to the module shown in FIG. Description.
  • the display module 82 is connected to the obtaining module 52, and is configured to display the acquired type of the network after acquiring the type of the network accessed by the first terminal that has the Wi-Fi hotspot enabled.
  • FIG. 9 is a block diagram showing the structure of a second type of network connection apparatus according to an embodiment of the present invention. As shown in FIG. 9, the apparatus includes an opening module 92 and a notification module 94, which will be described below.
  • the opening module 92 is configured to enable the wireless fidelity Wi-Fi hotspot; the notification module 94 is connected to the opening module 92, and is configured to notify the second terminal of the type of the accessed network, where the type of the network is used to indicate The second terminal accesses the network through the Wi-Fi hotspot by using an access method corresponding to the type of the foregoing network.
  • FIG. 10 is a structural block diagram of a notification module 94 in a second type of network connection apparatus according to an embodiment of the present invention.
  • the notification module 94 includes a processing unit 102 and a notification unit 104, and/or the notification module 94.
  • the transmitting unit 106 is included, and the notification module 94 will be described below.
  • the processing unit 102 is configured to carry the type of the network that is accessed in the broadcast frame; the notification unit 104 is connected to the processing unit 102, and is configured to be accessed by broadcasting a broadcast frame of a type that carries the accessed network.
  • the type of the network is notified to the second terminal; and/or the sending unit 106 is configured to send the configuration file of the type of the network carrying the access to the second terminal.
  • a hotspot type notification method for a client connected to a hotspot (such as a mobile phone, a tablet computer, etc.) can recognize that the Wi-Fi local area network uses mobile network access instead of the ordinary one. Wired broadband access, so that the client can start the provincial traffic mode under the mobile access mode, thereby saving portable hot spot traffic and improving traffic utilization efficiency.
  • a hotspot such as a mobile phone, a tablet computer, etc.
  • the host 112 includes a main control subsystem 1121, a mobile transceiver subsystem 1122 (corresponding to the notification module 94 described above), and Wi. a Fi transceiver subsystem 1123, the client 114 including a main control subsystem 1141 (corresponding to the acquisition module 52 described above), a display module 1142 (corresponding to the display module 82 described above), and a Wi-Fi transceiver subsystem 1143 (corresponding to the above The acquisition module 52) and the upper application 1144 (corresponding to the access module 54 described above).
  • the Wi-Fi transceiver subsystem 1123 and the Wi-Fi transceiver subsystem 1143 are configured as signaling interactions between the client and the portable hotspot host; when the client prepares to establish a connection with the hotspot host, the master control subsystem 1141 reads the hotspot.
  • connection attribute definition perform connection attribute definition, and notify the display module 1142 to give the user a reasonable selection prompt; the display module 1142 then feeds back the user selection result to the client's main control subsystem 1141; the client's main control subsystem 1141 is based on the user
  • the selection determines whether to disconnect or continue to be networked, and notifies the upper layer application 1144 of the connection attribute, and the upper layer application 1144 reads the connection attribute to mobile access, and the provincial mode is enabled for data access.
  • FIG. 12 is a flowchart of a portable hotspot access according to an embodiment of the present invention. The figure is mainly described for a manner in which a host notifies a network type of another terminal by using a broadcast frame. As shown in FIG. 12, the process includes the following steps:
  • Step S1202 The host enables the portable hotspot and sets the hotspot type in the Wi-Fi broadcast frame.
  • the frame format common to the 802.11 specification is shown in Figure 13.
  • Figure 13 is a schematic diagram of the frame structure in the 802.11 specification. As shown in Figure 13, the frame is divided into Medium Access Control (MAC) headers and frames. The subject and the frame check sequence (FCS) check.
  • MAC Medium Access Control
  • FCS frame check sequence
  • FIG. 14 is a schematic diagram of a frame structure including a hotspot type identifier according to an embodiment of the present invention.
  • the length of the Type field can be 1 bit. If the value is 1, it indicates that the hotspot is connected to the mobile network.
  • the hotspot accessing the mobile network described here is the first terminal access with the Wi-Fi hotspot enabled. Type of network). If the value is 0, it means that the hotspot is connected to ordinary wired broadband.
  • other methods may be used to identify the mobile network and the ordinary wired broadband. For example, the value is 0, and the hotspot is identified as the mobile network, and the value is 1, and the hotspot access is the ordinary wired broadband.
  • step S1204 the client searches for the host hotspot and prepares to establish a connection.
  • Step S1206 determining whether the client supports reading the hotspot type.
  • Step S1208 is executed.
  • step S1210 is performed.
  • step S1208 the flow shown in FIG. 1 is executed.
  • Step S1210 When the client supports reading the hotspot type from the Wi-Fi broadcast, it is determined whether the read hotspot type is a mobile network. If the determination result is yes, the process goes to step S1212; otherwise, the process goes to step S1208. .
  • Step S1212 determining that the type of the hotspot is a mobile network, indicating that the hotspot uses mobile access, has limited traffic, is not suitable for big data services, and prompts the user whether to still connect. After receiving the signal that determines to continue the connection, the process proceeds to Step S1216, otherwise, go to step S1214.
  • step S1214 the client stops establishing a connection with the hotspot.
  • step S1216 when the user of the client has learned that the hotspot traffic is limited, and after agreeing to continue to use, the client continues to establish a connection with the hotspot host.
  • step S1218 the network connection is performed according to the flow shown in FIG. 2, wherein the network connection for saving traffic can be used for data access when the network connection is performed.
  • the portable hotspot host can use the configuration file to notify the hotspot type in addition to the notification hotspot type identifier of the broadcast frame.
  • the portable hotspot host establishes a Wi-Fi connection with the client, the host sends the configuration file containing the hotspot type directly to the client.
  • the client After receiving the configuration file, the client can know that the hotspot is mobile access instead of ordinary wired broadband access, and can define the connection attribute as mobile access and notify the upper application.
  • the solution in the embodiment of the present invention can improve the traffic usage efficiency of the portable hotspot user, and does not violate the principle of the protocol specification, thereby improving the usability and friendliness of the terminal.
  • the invention is properly optimized from the protocol itself, and the original technical solution is less modified, and can adapt to various Wi-Fi client access, and has high practicability.
  • LTE Long-Term Evolution
  • the mobile network speed is greatly improved.
  • the portable hotspot function of smart terminals is also becoming more and more practical.
  • the solution in the embodiment of the present invention has a great effect on protecting user traffic and improving the performance and user experience of such a terminal, and has great market value potential.
  • each of the foregoing modules may be implemented by software or hardware.
  • the above modules are all located in the same processor; or, the above modules are respectively located in multiple processors.
  • Embodiments of the present invention also provide a storage medium.
  • the foregoing storage medium may be configured to store program code for performing the following steps:
  • the storage medium is further arranged to store program code for performing the following steps:
  • the type of the network to be accessed is notified to the second terminal, where the type of the network is used to indicate that the second terminal accesses the network through the Wi-Fi hotspot by using an access mode corresponding to the type of the network.
  • the foregoing storage medium may include, but is not limited to, a USB flash drive, a Read-Only Memory (ROM), and a Random Access Memory (RAM).
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • the processor performs the above steps S11-S12 according to the stored program code in the storage medium.
  • the processor performs the above steps S21-S22 according to the stored program code in the storage medium.
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the network connection method and apparatus provided by the embodiments of the present invention have the following beneficial effects: solving the problem that the mobile traffic usage efficiency of the host existing in the related art is low, and the user experience is low, thereby achieving the provision of the host. Mobile traffic usage efficiency and improved user experience.

Abstract

Provided are a network connection method and device. The method comprises: obtaining a type of a network accessed by a first terminal initiating a Wi-Fi hotspot; and accessing, via the Wi-Fi hotspot, the network by employing an access method corresponding to the type of the obtained network. The present invention addresses the problem of low mobile traffic service efficiency of a host and poor user experience present in the related art, thus providing the host with mobile traffic service efficiency and improving the user experience.

Description

网络连接方法及装置Network connection method and device 技术领域Technical field
本发明涉及通信领域,具体而言,涉及一种网络连接方法及装置。The present invention relates to the field of communications, and in particular to a network connection method and apparatus.
背景技术Background technique
随着科技的发展,智能机和ufi类等移动终端非常普及,两类产品都支持便携式热点功能,可以通过无线宽带接入将移动数据转换为无线保真(Wireless-Fidelity,简称为Wi-Fi)局域网为其他用户提供覆盖。但由于无线宽带的费用相对于有线宽带来说比较贵,所以便携式热点功能不适用于大数据量交互的应用场景,主机用户需要启用流量控制功能避免因流量超标造成财产损失。With the development of technology, mobile terminals such as smart phones and ufis are very popular. Both types of products support portable hotspot functions, which can convert mobile data into wireless fidelity (Wireless-Fidelity, Wi-Fi for short) through wireless broadband access. LANs provide coverage for other users. However, since the cost of wireless broadband is relatively expensive compared to wired broadband, the portable hotspot function is not applicable to the application scenario of large data volume interaction. The host user needs to enable the flow control function to avoid property loss caused by excessive traffic.
目前为防止智能终端消耗过多移动数据流量,业内已有一些针对移动接入时采用的省流量方案。比如便携式热点安装第三方软件进行设置移动流量使用上限,或是客户端应用程序设置仅Wi-Fi接入时联网,客户端浏览器版面智能精简等。At present, in order to prevent smart terminals from consuming excessive mobile data traffic, the industry has some provincial traffic schemes for mobile access. For example, the portable hotspot installs third-party software to set the mobile traffic usage limit, or the client application sets the Wi-Fi access only when the network is connected, and the client browser layout is smart and simple.
图1是相关技术中的终端连接到普通便携式热点进行数据访问的流程图,如图1所示,该流程包括如下步骤:1 is a flow chart of a related art in which a terminal is connected to an ordinary portable hotspot for data access. As shown in FIG. 1, the flow includes the following steps:
步骤S102,主机(即,开启了普通便携式热点的终端)发送普通的Wi-Fi广播帧;Step S102, the host (ie, the terminal that has opened the ordinary portable hotspot) sends a normal Wi-Fi broadcast frame;
步骤S104,客户机(即,上述的连接到普通便携式热点的终端)与主机建立连接;Step S104, the client (ie, the terminal connected to the ordinary portable hotspot described above) establishes a connection with the host;
步骤S106,客户机定义连接属性为Wi-Fi接入;Step S106, the client defines the connection attribute as Wi-Fi access;
步骤S108,客户机应用关闭省流量模式;Step S108, the client application closes the provincial traffic mode;
步骤S110,客户机进行数据访问;Step S110, the client performs data access;
步骤S112,主机设置的移动流量上限到达,客户机无法联网。In step S112, the mobile traffic upper limit set by the host arrives, and the client cannot be connected to the network.
图2是相关技术中的终端通过移动网络进行数据访问流程图,如图2所示,该流程包括如下步骤:2 is a flow chart of data access by a terminal in a related art through a mobile network. As shown in FIG. 2, the process includes the following steps:
步骤S202,客户机(同上述的终端)与网络建立连接;Step S202, the client (same terminal) establishes a connection with the network;
步骤S204,客户机定义连接属性为移动接入;Step S204, the client defines the connection attribute as mobile access;
步骤S206,客户机应用启用省流量模式;Step S206, the client application enables the provincial traffic mode;
步骤S208,客户机进行数据访问;Step S208, the client performs data access;
步骤S210,客户机设置的移动流量上限到达,客户机无法联网。 In step S210, the mobile traffic upper limit set by the client arrives, and the client cannot be networked.
在相关技术中,虽然主机用户有方法开启流量限制,但客户机连接到主机的便携式热点时,可能会认为连接的是接入有线宽带的普通Wi-Fi,从而不计成本的消耗流量,导致主机设置的移动流量上限很快到达,主机移动流量的使用效率不高,用户体验度低的问题。In the related art, although the host user has a method to enable the traffic restriction, when the client connects to the portable hotspot of the host, the connection may be considered to be the ordinary Wi-Fi connected to the wired broadband, thereby consuming the traffic regardless of the cost, resulting in the host. The set mobile traffic limit is reached quickly, the host mobile traffic usage is not efficient, and the user experience is low.
针对相关技术中存在的主机的移动流量使用效率低,用户体验度低的问题,目前尚未提出有效的解决方案。Aiming at the problem that the mobile traffic of the host existing in the related art has low efficiency of use and low user experience, an effective solution has not been proposed yet.
发明内容Summary of the invention
本发明提供了一种网络连接方法及装置,以至少解决相关技术中存在的主机的移动流量使用效率低,用户体验度低的问题。The present invention provides a network connection method and apparatus, so as to solve at least the problem that the mobile traffic usage efficiency of the host existing in the related art is low and the user experience is low.
根据本发明的一个方面,提供了一种网络连接方法,包括:获取开启了无线保真Wi-Fi热点的第一终端接入的网络的类型;采用与获取的所述网络的类型对应的接入方式通过所述Wi-Fi热点接入所述网络。According to an aspect of the present invention, a network connection method is provided, including: acquiring a type of a network accessed by a first terminal that has a wireless fidelity Wi-Fi hotspot enabled; and adopting a type corresponding to the acquired type of the network. The incoming mode accesses the network through the Wi-Fi hotspot.
可选地,获取开启了所述Wi-Fi热点的所述第一终端接入的所述网络的类型包括:接收所述第一终端的广播帧,其中,所述广播帧中携带有第一指示信息,所述第一指示信息用于指示开启了所述Wi-Fi热点的第一终端接入的网络的类型;和/或,接收所述第一终端发送的配置文件,其中,所述配置文件中携带有第二指示信息,所述第二指示信息用于指示开启了所述Wi-Fi热点的第一终端接入的网络的类型。Optionally, the acquiring the type of the network that is accessed by the first terminal that is enabled by the Wi-Fi hotspot includes: receiving a broadcast frame of the first terminal, where the broadcast frame carries a first Instructing information, the first indication information is used to indicate a type of a network that is accessed by the first terminal that is enabled with the Wi-Fi hotspot; and/or, receiving a configuration file sent by the first terminal, where The configuration file carries the second indication information, where the second indication information is used to indicate the type of the network that the first terminal that is connected to the Wi-Fi hotspot is connected to.
可选地,采用与获取的所述网络的类型对应的接入方式通过所述Wi-Fi热点接入所述网络包括:当所述网络的类型为移动网络时,提示用户是否连接所述Wi-Fi热点;在接收到确定连接所述Wi-Fi热点的确定信号后,启用节省数据流量的联网模式进行网络连接;和/或,当所述网络的类型为宽带网络时,接入所述宽带网络。Optionally, accessing the network through the Wi-Fi hotspot by using an access mode corresponding to the type of the obtained network includes: prompting a user whether to connect to the Wi when the type of the network is a mobile network a Fi hotspot; after receiving a determination signal to determine the connection to the Wi-Fi hotspot, enabling a networked mode of saving data traffic for network connection; and/or, when the type of the network is a broadband network, accessing the Broadband network.
可选地,在获取开启了所述Wi-Fi热点的所述第一终端接入的所述网络的类型之后,还包括:显示获取的所述网络的类型。Optionally, after acquiring the type of the network that is accessed by the first terminal that is enabled with the Wi-Fi hotspot, the method further includes: displaying the acquired type of the network.
根据本发明的另一方面,提供了一种网络连接方法,包括:开启无线保真Wi-Fi热点;将接入的网络的类型通知给第二终端,其中,所述网络的类型用于指示所述第二终端采用与所述网络的类型对应的接入方式通过所述Wi-Fi热点接入所述网络。According to another aspect of the present invention, a network connection method is provided, including: enabling a wireless fidelity Wi-Fi hotspot; notifying a second terminal of a type of the accessed network, wherein the type of the network is used to indicate The second terminal accesses the network through the Wi-Fi hotspot by using an access mode corresponding to the type of the network.
可选地,将接入的所述网络的类型通知给所述第二终端包括:在广播帧中携带接入的所述网络的类型;通过广播携带了接入的所述网络的类型的广播帧的方式将接入的所述网络的类型通知给所述第二终端;和/或,将携带了接入的所述网络的类型的配置文件发送给所述第二终端。Optionally, the notifying the type of the accessed network to the second terminal includes: a type of the network that is carried in a broadcast frame, and a broadcast of a type of the network that is carried by the broadcast Notifying the type of the accessed network to the second terminal; and/or transmitting a configuration file of the type of the network that is accessed to the second terminal.
根据本发明的另一方面,提供了一种网络连接装置,包括:获取模块,设置为获取开启了无线保真Wi-Fi热点的第一终端接入的网络的类型;接入模块,设置为采用与获取的所述网络的类型对应的接入方式通过所述Wi-Fi热点接入所述网络。 According to another aspect of the present invention, a network connection apparatus is provided, including: an acquisition module, configured to acquire a type of a network accessed by a first terminal that has a wireless fidelity Wi-Fi hotspot enabled; and an access module configured to Accessing the network through the Wi-Fi hotspot by using an access mode corresponding to the type of the obtained network.
可选地,所述获取模块包括:第一接收单元,设置为接收所述第一终端的广播帧,其中,所述广播帧中携带有第一指示信息,所述第一指示信息用于指示开启了所述Wi-Fi热点的第一终端接入的网络的类型;和/或,第二接收单元,设置为接收所述第一终端发送的配置文件,其中,所述配置文件中携带有第二指示信息,所述第二指示信息用于指示开启了所述Wi-Fi热点的第一终端接入的网络的类型。Optionally, the acquiring module includes: a first receiving unit, configured to receive a broadcast frame of the first terminal, where the broadcast frame carries first indication information, where the first indication information is used to indicate And the second receiving unit is configured to receive the configuration file sent by the first terminal, where the configuration file carries The second indication information is used to indicate the type of the network that the first terminal that is connected to the Wi-Fi hotspot is connected to.
可选地,所述接入模块包括:显示单元,设置为当所述网络的类型为移动网络时,提示用户是否连接所述Wi-Fi热点;连接单元,设置为在接收到确定连接所述Wi-Fi热点的确定信号后,启用节省数据流量的联网模式进行网络连接;和/或,接入单元,设置为当所述网络的类型为宽带网络时,接入所述宽带网络。Optionally, the access module includes: a display unit, configured to prompt a user to connect to the Wi-Fi hotspot when the type of the network is a mobile network; and a connection unit configured to receive the determined connection After determining the signal of the Wi-Fi hotspot, the network mode for saving data traffic is enabled for network connection; and/or the access unit is configured to access the broadband network when the type of the network is a broadband network.
可选地,所述装置还包括:显示模块,设置为在获取开启了所述Wi-Fi热点的所述第一终端接入的所述网络的类型之后,显示获取的所述网络的类型。Optionally, the device further includes: a display module, configured to display the acquired type of the network after acquiring the type of the network accessed by the first terminal that is enabled with the Wi-Fi hotspot.
根据本发明的另一方面,提供了一种网络连接装置,包括:开启模块,设置为开启无线保真Wi-Fi热点;通知模块,设置为将接入的网络的类型通知给第二终端,其中,所述网络的类型用于指示所述第二终端采用与所述网络类型对应的接入方式通过所述Wi-Fi热点接入所述网络。According to another aspect of the present invention, a network connection apparatus is provided, including: an opening module configured to enable a wireless fidelity Wi-Fi hotspot; and a notification module configured to notify a second terminal of a type of the accessed network, The type of the network is used to indicate that the second terminal accesses the network through the Wi-Fi hotspot by using an access mode corresponding to the network type.
可选地,所述通知模块包括:处理单元,设置为在广播帧中携带接入的所述网络的类型;通知单元,设置为通过广播携带了接入的所述网络的类型的广播帧的方式将接入的所述网络的类型通知给所述第二终端;和/或,发送单元,设置为将携带了接入的所述网络的类型的配置文件发送给所述第二终端。Optionally, the notification module includes: a processing unit, configured to carry the type of the network accessed in a broadcast frame; and a notification unit configured to broadcast a broadcast frame of a type of the network that is accessed by broadcasting And notifying the type of the network that is accessed to the second terminal; and/or the sending unit is configured to send, to the second terminal, a configuration file of a type of the network that carries the access.
通过本发明,采用获取开启了无线保真Wi-Fi热点的第一终端接入的网络的类型;采用与获取的所述网络的类型对应的接入方式通过所述Wi-Fi热点接入所述网络。解决了相关技术中存在的主机的移动流量使用效率低,用户体验度低的问题,进而达到了提供主机的移动流量使用效率,提高用户体验的效果。According to the present invention, the type of the network accessed by the first terminal that has opened the wireless fidelity Wi-Fi hotspot is adopted; and the access method corresponding to the type of the acquired network is used to access the Wi-Fi hotspot. Network. The invention solves the problem that the mobile traffic of the host in the related technology has low use efficiency and low user experience, thereby achieving the effect of providing the mobile traffic usage efficiency of the host and improving the user experience.
附图说明DRAWINGS
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1是相关技术中的终端连接到普通便携式热点进行数据访问的流程图;1 is a flow chart of a related art in which a terminal is connected to an ordinary portable hotspot for data access;
图2是相关技术中的终端通过移动网络进行数据访问流程图;2 is a flowchart of data access by a terminal in a related art through a mobile network;
图3是根据本发明实施例的第一种网络连接方法的流程图;3 is a flowchart of a first network connection method according to an embodiment of the present invention;
图4是根据本发明实施例的第二种网络连接方法的流程图;4 is a flowchart of a second method of network connection according to an embodiment of the present invention;
图5是根据本发明实施例的第一种网络连接装置的结构框图; FIG. 5 is a structural block diagram of a first network connection apparatus according to an embodiment of the present invention; FIG.
图6是根据本发明实施例的第一种网络连接装置中获取模块52的结构框图;FIG. 6 is a structural block diagram of an acquisition module 52 in a first type of network connection apparatus according to an embodiment of the present invention;
图7是根据本发明实施例的第一种网络连接装置中接入模块54的结构框图;7 is a structural block diagram of an access module 54 in a first type of network connection device according to an embodiment of the present invention;
图8是根据本发明实施例的第一种网络连接装置的优选结构框图;FIG. 8 is a block diagram showing a preferred structure of a first type of network connection apparatus according to an embodiment of the present invention; FIG.
图9是根据本发明实施例的第二种网络连接装置的结构框图;9 is a structural block diagram of a second type of network connection apparatus according to an embodiment of the present invention;
图10是根据本发明实施例的第二种网络连接装置中通知模块94的结构框图;FIG. 10 is a structural block diagram of a notification module 94 in a second type of network connection apparatus according to an embodiment of the present invention;
图11是根据本发明实施例的主机和客户机的结构及交互示意图;11 is a schematic diagram showing the structure and interaction of a host and a client according to an embodiment of the present invention;
图12是根据本发明实施例的便携式热点接入流程图;12 is a flow chart of portable hotspot access according to an embodiment of the present invention;
图13是802.11规范中的帧结构示意图;13 is a schematic diagram of a frame structure in the 802.11 specification;
图14是根据本发明实施例的包含热点类型标识的帧结构的示意图。FIG. 14 is a schematic diagram of a frame structure including a hotspot type identifier according to an embodiment of the present invention.
具体实施方式detailed description
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It is to be understood that the terms "first", "second" and the like in the specification and claims of the present invention are used to distinguish similar objects, and are not necessarily used to describe a particular order or order.
在本实施例中提供了一种网络连接方法,图3是根据本发明实施例的第一种网络连接方法的流程图,如图3所示,该流程包括如下步骤:A network connection method is provided in this embodiment. FIG. 3 is a flowchart of a first network connection method according to an embodiment of the present invention. As shown in FIG. 3, the process includes the following steps:
步骤S302,获取开启了无线保真Wi-Fi热点的第一终端接入的网络的类型;Step S302: Acquire a type of a network that is accessed by the first terminal that has the wireless fidelity Wi-Fi hotspot enabled;
步骤S304,采用与获取的上述网络的类型对应的接入方式通过Wi-Fi热点接入上述网络。Step S304, accessing the network through the Wi-Fi hotspot by using an access mode corresponding to the acquired type of the network.
通过上述步骤,在通过Wi-Fi热点接入网络时,可以获取开启该Wi-Fi热点的第一终端(同上述的主机)接入的网络的网络类型,从而确定接入的网络是移动网络接入还是普通的有线宽带接入,从而可以根据网络类型的不同执行相应的接入方式的网络连接,解决了相关技术中存在的主机(即,上述的第一终端)的移动流量使用效率低,用户体验度低的问题,进而达到了提供主机的移动流量使用效率,提高用户体验的效果。Through the above steps, when accessing the network through the Wi-Fi hotspot, the network type of the network accessed by the first terminal (the same host) that starts the Wi-Fi hotspot can be obtained, thereby determining that the accessed network is a mobile network. The access is still a common wired broadband access, so that the network connection of the corresponding access mode can be performed according to the type of the network, and the mobile traffic using the host (ie, the first terminal) in the related art is inefficiently used. The problem of low user experience, thereby achieving the effect of providing the mobile traffic usage efficiency of the host and improving the user experience.
其中,在获取上述第一终端接入的网络的类型时,可以有多种获取方式,在一个可选的实施例中,获取开启了Wi-Fi热点的第一终端接入的网络的类型包括:接收上述第一终端的广播帧,其中,该广播帧中携带有第一指示信息,该第一指示信息用于指示开启了上述Wi-Fi热点的第一终端接入的网络的类型;和/或,接收上述第一终端发送的配置文件,其中,该配置文件中携带有第二指示信息,该第二指示信息用于指示开启了Wi-Fi热点的第一终端接入的网络的类型。其中,上述的广播帧可以是在第二终端通过Wi-Fi热点与第一终端建立连接之前接收到的,上述的配置文件可以是第二终端通过Wi-Fi热点与第一终端建立连接之后定向接收 到的。当然,上述的两种获取方式仅是示例,还可以采用其他的方式进行获取,在此不一一列举。In the optional embodiment, the type of the network that the first terminal that accesses the Wi-Fi hotspot is connected to includes the type of the network that is accessed by the first terminal. Receiving the broadcast frame of the first terminal, where the broadcast frame carries the first indication information, where the first indication information is used to indicate the type of the network accessed by the first terminal that is enabled with the Wi-Fi hotspot; and Or, receiving the configuration file sent by the first terminal, where the configuration file carries the second indication information, where the second indication information is used to indicate the type of the network accessed by the first terminal that has enabled the Wi-Fi hotspot. . The foregoing broadcast frame may be received before the second terminal establishes a connection with the first terminal by using the Wi-Fi hotspot. The foregoing configuration file may be after the second terminal establishes a connection with the first terminal by using the Wi-Fi hotspot. Receiving Arrived. Of course, the above two acquisition methods are only examples, and other methods may be used for acquisition, which are not enumerated here.
在一个可选的实施例中,采用与获取的上述网络的类型对应的接入方式通过Wi-Fi热点接入上述网络包括:当上述网络的类型为移动网络时,提示用户是否连接该Wi-Fi热点;在接收到确定连接该Wi-Fi热点的确定信号后,启用节省数据流量的联网模式进行网络连接;和/或,当上述网络的类型为宽带网络时,接入上述宽带网络。其中,上述提示方式可以有多种,例如,可以通过显示提示信息的方式进行提示,或者通过语音提示的方式进行提示。从而当第一终端接入的网络的类型为移动网络时,可以确定该第一终端联网是有流量限制的,从而可以将通过上述Wi-Fi热点接入网络的终端中耗费流量特别多的应用进行关闭处理或限制处理,从而进入节省数据流量的联网模式,有效提高主机的移动流量的使用效率。当上述的网络的类型为宽带网络时,可以确定计费方式不是根据流量使用的多少进行计费,所以可以采用通常的接入宽带网络的接入方式进行网络连接,无需开启节省流量的联网模式,从而提高用户体验。In an optional embodiment, accessing the network through the Wi-Fi hotspot by using an access mode corresponding to the type of the obtained network includes: when the type of the network is a mobile network, prompting the user whether to connect to the Wi- Fi hotspot; after receiving the determination signal for determining the connection to the Wi-Fi hotspot, enabling the network mode of saving data traffic for network connection; and/or, when the type of the network is a broadband network, accessing the broadband network. The above prompt manners may be various. For example, the prompt information may be displayed by prompting, or may be prompted by voice prompting. Therefore, when the type of the network accessed by the first terminal is a mobile network, it may be determined that the first terminal is connected to the network, and the application that accesses the network through the Wi-Fi hotspot may consume a particularly large amount of traffic. Perform shutdown processing or limit processing to enter a networked mode that saves data traffic, effectively improving the efficiency of the host's mobile traffic. When the type of the network is a broadband network, it can be determined that the charging mode is not based on how much traffic is used. Therefore, the access mode of the normal access broadband network can be used for network connection without opening a network mode for saving traffic. To improve the user experience.
在一个可选的实施例中,在获取开启了上述Wi-Fi热点的第一终端接入的网络的类型之后,还包括:显示获取的该网络的类型。即,在通过上述Wi-Fi热点接入网络的终端中显示所接入的网络的类型,从而实时提醒使用者在不需要联网后,及时退出网络连接,从而有效节省主机的流量。In an optional embodiment, after acquiring the type of the network accessed by the first terminal that is enabled with the Wi-Fi hotspot, the method further includes: displaying the acquired type of the network. That is, the type of the accessed network is displayed in the terminal accessing the network through the Wi-Fi hotspot, thereby promptly reminding the user to exit the network connection in time after the network is not needed, thereby effectively saving the traffic of the host.
图4是根据本发明实施例的第二种网络连接方法的流程图,如图4所示,该流程包括如下步骤:FIG. 4 is a flowchart of a second network connection method according to an embodiment of the present invention. As shown in FIG. 4, the process includes the following steps:
步骤S402,开启无线保真Wi-Fi热点;Step S402, turning on the wireless fidelity Wi-Fi hotspot;
步骤S404,将接入的网络的类型通知给第二终端,其中,该网络的类型用于指示第二终端采用与上述网络的类型对应的接入方式通过Wi-Fi热点接入网络。In step S404, the type of the accessed network is notified to the second terminal, where the type of the network is used to indicate that the second terminal accesses the network through the Wi-Fi hotspot by using an access mode corresponding to the type of the network.
通过上述步骤,在开启Wi-Fi热点后,可以将网络的类型通知给通过该Wi-Fi热点接入网络的第二终端,从而使得第二终端明确接入的网络是移动网络接入还是普通的有线宽带接入,从而可以根据网络类型的不同选择对应的接入方式进行网络连接,解决了相关技术中存在的主机(即,上述的开启无Wi-Fi热点的终端)的移动流量使用效率低,用户体验度低的问题,进而达到了提供主机的移动流量使用效率,提高用户体验的效果。After the Wi-Fi hotspot is enabled, the type of the network can be notified to the second terminal accessing the network through the Wi-Fi hotspot, so that the network explicitly accessed by the second terminal is the mobile network access or the common Wired broadband access, which can select a corresponding access mode for network connection according to different network types, and solves the mobile traffic usage efficiency of the host (ie, the above-mentioned terminal without Wi-Fi hotspot) existing in the related art. The problem of low user experience is low, and thus the efficiency of using the mobile traffic of the host is improved, and the user experience is improved.
在一个可选的实施例中,将接入的上述网络的类型通知给第二终端包括:在广播帧中携带接入的网络的类型;通过广播携带了接入的网络的类型的广播帧的方式将接入的网络的类型通知给上述第二终端;和/或,将携带了接入的上述网络的类型的配置文件发送给上述第二终端。当然,上述的两种通知方式仅是示例,还可以采用其他的方式进行通知,在此不一一列举。In an optional embodiment, notifying the type of the accessed network to the second terminal includes: a type of the network that carries the access in the broadcast frame; and broadcasting the broadcast frame of the type that carries the accessed network by broadcasting And notifying the type of the accessed network to the second terminal; and/or transmitting, to the second terminal, a configuration file of a type of the network that carries the access. Of course, the above two notification methods are only examples, and other methods may be used for notification, which are not enumerated here.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前 者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases It is a better implementation. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, The optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
在本实施例中还提供了一种网络连接装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In the embodiment, a network connection device is also provided, which is used to implement the above-mentioned embodiments and preferred embodiments, and has not been described again. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图5是根据本发明实施例的第一种网络连接装置的结构框图,如图5所示,该装置包括获取模块52和接入模块54,下面对该装置进行说明。FIG. 5 is a structural block diagram of a first type of network connection apparatus according to an embodiment of the present invention. As shown in FIG. 5, the apparatus includes an acquisition module 52 and an access module 54, which will be described below.
获取模块52,设置为获取开启了无线保真Wi-Fi热点的第一终端接入的网络的类型;接入模块54,连接至上述获取模块52,设置为采用与获取的上述网络的类型对应的接入方式通过Wi-Fi热点接入上述网络。The obtaining module 52 is configured to acquire a type of the network that the first terminal that is connected to the wireless fidelity Wi-Fi hotspot is connected to; the access module 54 is connected to the obtaining module 52, and is configured to adopt the type of the network that is acquired. The access method accesses the above network through a Wi-Fi hotspot.
图6是根据本发明实施例的第一种网络连接装置中获取模块52的结构框图,如图6所示,该获取模块52包括第一接收单元62,和/或,该获取模块52包括第二接收单元64,下面对该获取模块52进行说明。FIG. 6 is a structural block diagram of an acquisition module 52 in a first type of network connection apparatus according to an embodiment of the present invention. As shown in FIG. 6, the acquisition module 52 includes a first receiving unit 62, and/or the acquisition module 52 includes The receiving unit 64 is described below.
第一接收单元62,设置为接收上述第一终端的广播帧,其中,该广播帧中携带有第一指示信息,该第一指示信息用于指示开启了Wi-Fi热点的第一终端接入的网络的类型;和/或,第二接收单元64,设置为接收上述第一终端发送的配置文件,其中,该配置文件中携带有开启了Wi-Fi热点的第一终端接入的网络的类型。The first receiving unit 62 is configured to receive the broadcast frame of the first terminal, where the broadcast frame carries the first indication information, where the first indication information is used to indicate that the first terminal access of the Wi-Fi hotspot is enabled. The type of the network; and/or the second receiving unit 64 is configured to receive the configuration file sent by the first terminal, where the configuration file carries the network accessed by the first terminal that has the Wi-Fi hotspot enabled. Types of.
图7是根据本发明实施例的第一种网络连接装置中接入模块54的结构框图,如图7所示,该接入模块54包括显示单元72和连接单元74;和/或,该接入模块54包括接入单元76,下面对该接入模块54进行说明。7 is a structural block diagram of an access module 54 in a first type of network connection device according to an embodiment of the present invention. As shown in FIG. 7, the access module 54 includes a display unit 72 and a connection unit 74; and/or The incoming module 54 includes an access unit 76, which is described below.
显示单元72,设置为当上述网络的类型为移动网络时,提示用户是否连接该Wi-Fi热点;连接单元74,连接至上述显示单元72,设置为在接收到确定连接上述Wi-Fi热点的确定信号后,启用节省数据流量的联网模式进行网络连接;The display unit 72 is configured to prompt the user whether to connect to the Wi-Fi hotspot when the type of the network is a mobile network, and the connection unit 74 is connected to the display unit 72, and is configured to receive the connection to determine the Wi-Fi hotspot. After determining the signal, enable the network mode that saves data traffic for network connection;
接入单元76,设置为当上述网络的类型为宽带网络时,接入上述宽带网络。The access unit 76 is configured to access the broadband network when the type of the network is a broadband network.
图8是根据本发明实施例的第一种网络连接装置的优选结构框图,如图8所示,该装置除包括图5所示的模块外,还包括显示模块82,下面对该装置进行说明。FIG. 8 is a block diagram showing a preferred structure of a first type of network connection apparatus according to an embodiment of the present invention. As shown in FIG. 8, the apparatus includes a display module 82 in addition to the module shown in FIG. Description.
显示模块82,连接至上述获取模块52,设置为在获取开启了上述Wi-Fi热点的第一终端接入的网络的类型之后,显示获取的上述网络的类型。The display module 82 is connected to the obtaining module 52, and is configured to display the acquired type of the network after acquiring the type of the network accessed by the first terminal that has the Wi-Fi hotspot enabled.
图9是根据本发明实施例的第二种网络连接装置的结构框图,如图9所示,该装置包括开启模块92和通知模块94,下面对该装置进行说明。 9 is a block diagram showing the structure of a second type of network connection apparatus according to an embodiment of the present invention. As shown in FIG. 9, the apparatus includes an opening module 92 and a notification module 94, which will be described below.
开启模块92,设置为开启无线保真Wi-Fi热点;通知模块94,连接至上述开启模块92,设置为将接入的网络的类型通知给第二终端,其中,该网络的类型用于指示第二终端采用与上述网络的类型对应的接入方式通过Wi-Fi热点接入上述网络。The opening module 92 is configured to enable the wireless fidelity Wi-Fi hotspot; the notification module 94 is connected to the opening module 92, and is configured to notify the second terminal of the type of the accessed network, where the type of the network is used to indicate The second terminal accesses the network through the Wi-Fi hotspot by using an access method corresponding to the type of the foregoing network.
图10是根据本发明实施例的第二种网络连接装置中通知模块94的结构框图,如图10所示,该通知模块94包括处理单元102和通知单元104,和/或,该通知模块94包括发送单元106,下面对该通知模块94进行说明。FIG. 10 is a structural block diagram of a notification module 94 in a second type of network connection apparatus according to an embodiment of the present invention. As shown in FIG. 10, the notification module 94 includes a processing unit 102 and a notification unit 104, and/or the notification module 94. The transmitting unit 106 is included, and the notification module 94 will be described below.
处理单元102,设置为在广播帧中携带接入的网络的类型;通知单元104,连接至上述处理单元102,设置为通过广播携带了接入的网络的类型的广播帧的方式将接入的网络的类型通知给第二终端;和/或,发送单元106,设置为将携带了接入的网络的类型的配置文件发送给第二终端。The processing unit 102 is configured to carry the type of the network that is accessed in the broadcast frame; the notification unit 104 is connected to the processing unit 102, and is configured to be accessed by broadcasting a broadcast frame of a type that carries the accessed network. The type of the network is notified to the second terminal; and/or the sending unit 106 is configured to send the configuration file of the type of the network carrying the access to the second terminal.
上述实施例是分别从客户机侧(即,第二终端)和主机侧(即,第一终端)进行了描述,下面结合整体进行说明:The above embodiments are described from the client side (ie, the second terminal) and the host side (ie, the first terminal), respectively, which are described below in conjunction with the whole:
本发明实施例中提供的是一种热点类型的通知方法,连接到热点的客户机(如手机、平板电脑等)可以识别出此Wi-Fi局域网采用的是移动网络接入,而不是普通的有线宽带接入,从而客户机可以启动移动接入方式下的省流量模式,达到节省便携式热点流量,提高流量利用效率的目的。Provided in the embodiment of the present invention is a hotspot type notification method, and a client connected to a hotspot (such as a mobile phone, a tablet computer, etc.) can recognize that the Wi-Fi local area network uses mobile network access instead of the ordinary one. Wired broadband access, so that the client can start the provincial traffic mode under the mobile access mode, thereby saving portable hot spot traffic and improving traffic utilization efficiency.
图11是根据本发明实施例的主机和客户机的结构及交互示意图,如图11所示,主机112包括主控子系统1121、移动收发子系统1122(对应于上述的通知模块94)和Wi-Fi收发子系统1123,客户机114包括主控制子系统1141(对应于上述的获取模块52)、显示模块1142(对应于上述的显示模块82)、Wi-Fi收发子系统1143(对应于上述的获取模块52)和上层应用1144(对应于上述的接入模块54)。11 is a schematic diagram showing the structure and interaction of a host and a client according to an embodiment of the present invention. As shown in FIG. 11, the host 112 includes a main control subsystem 1121, a mobile transceiver subsystem 1122 (corresponding to the notification module 94 described above), and Wi. a Fi transceiver subsystem 1123, the client 114 including a main control subsystem 1141 (corresponding to the acquisition module 52 described above), a display module 1142 (corresponding to the display module 82 described above), and a Wi-Fi transceiver subsystem 1143 (corresponding to the above The acquisition module 52) and the upper application 1144 (corresponding to the access module 54 described above).
其中,Wi-Fi收发子系统1123和Wi-Fi收发子系统1143设置为客户机与便携式热点主机之间的信令交互;客户机准备与热点主机建立连接时,主控子系统1141读取热点类型,进行连接属性定义,并通知给显示模块1142,给用户合理的选择提示;显示模块1142再将用户选择结果反馈给客户机的主控子系统1141;客户机的主控子系统1141根据用户选择决定断开连接还是继续联网,并将连接属性通知给上层应用1144,上层应用1144读取到连接属性为移动接入,将启用省流量模式进行数据访问。The Wi-Fi transceiver subsystem 1123 and the Wi-Fi transceiver subsystem 1143 are configured as signaling interactions between the client and the portable hotspot host; when the client prepares to establish a connection with the hotspot host, the master control subsystem 1141 reads the hotspot. Type, perform connection attribute definition, and notify the display module 1142 to give the user a reasonable selection prompt; the display module 1142 then feeds back the user selection result to the client's main control subsystem 1141; the client's main control subsystem 1141 is based on the user The selection determines whether to disconnect or continue to be networked, and notifies the upper layer application 1144 of the connection attribute, and the upper layer application 1144 reads the connection attribute to mobile access, and the provincial mode is enabled for data access.
图12是根据本发明实施例的便携式热点接入流程图,该图主要针对主机通过广播帧的形式通知其他终端网络类型的方式进行描述,如图12所示,该流程包括如下步骤:FIG. 12 is a flowchart of a portable hotspot access according to an embodiment of the present invention. The figure is mainly described for a manner in which a host notifies a network type of another terminal by using a broadcast frame. As shown in FIG. 12, the process includes the following steps:
步骤S1202、主机启用便携式热点,并在Wi-Fi广播帧中设置热点类型。802.11规范中通用的帧格式如图13所示,图13是802.11规范中的帧结构示意图,由图13可知,该帧分为媒体接入控制(Medium Access Control,简称为MAC)头部、帧主体和帧检验序列(Frame check sequence,简称为FCS)校验。在MAC头部有帧类型定义,帧类型包括控制帧、数据帧和管理帧三个大类。 Step S1202: The host enables the portable hotspot and sets the hotspot type in the Wi-Fi broadcast frame. The frame format common to the 802.11 specification is shown in Figure 13. Figure 13 is a schematic diagram of the frame structure in the 802.11 specification. As shown in Figure 13, the frame is divided into Medium Access Control (MAC) headers and frames. The subject and the frame check sequence (FCS) check. There are frame type definitions in the MAC header, and the frame types include three categories: control frame, data frame, and management frame.
在本发明实施例中,可对热点周期性广播的某些帧进行功能扩展,定义热点类型标识(Type域)。如图14所示,图14是根据本发明实施例的包含热点类型标识的帧结构的示意图。In the embodiment of the present invention, certain frames of the hot spot periodically broadcast may be extended to define a hotspot type identifier (Type field). As shown in FIG. 14, FIG. 14 is a schematic diagram of a frame structure including a hotspot type identifier according to an embodiment of the present invention.
其中,可以定义Type域长度为1bit,若赋值为1,表示该热点接入的是移动网络(这里描述的热点接入的是移动网络同上述的开启了Wi-Fi热点的第一终端接入的网络的类型)。若赋值为0,表示该热点接入的是普通有线宽带。当然也可以采用其他的方式来标识移动网络和普通有线宽带,例如,赋值为0,标识该热点接入的是移动网络,赋值为1,标识该热点接入的是普通有线宽带。The length of the Type field can be 1 bit. If the value is 1, it indicates that the hotspot is connected to the mobile network. The hotspot accessing the mobile network described here is the first terminal access with the Wi-Fi hotspot enabled. Type of network). If the value is 0, it means that the hotspot is connected to ordinary wired broadband. Of course, other methods may be used to identify the mobile network and the ordinary wired broadband. For example, the value is 0, and the hotspot is identified as the mobile network, and the value is 1, and the hotspot access is the ordinary wired broadband.
步骤S1204,客户机搜索到主机热点并准备建立连接。In step S1204, the client searches for the host hotspot and prepares to establish a connection.
步骤S1206,判断该客户机是否支持读取热点类型,当客户机尚不支持从Wi-Fi广播(即,开启上述Wi-Fi热点的终端广播的广播帧)里读取热点类型Type字段,则执行步骤S1208,当客户机支持读取热点类型Type字段时,执行步骤S1210。Step S1206, determining whether the client supports reading the hotspot type. When the client does not support reading the hotspot type Type field from the Wi-Fi broadcast (that is, the broadcast frame broadcasted by the terminal that opens the Wi-Fi hotspot), Step S1208 is executed. When the client supports reading the hotspot type Type field, step S1210 is performed.
步骤S1208,执行如图1所示的流程。In step S1208, the flow shown in FIG. 1 is executed.
步骤S1210,当客户机支持从Wi-Fi广播里读取热点类型时,判断读取的热点类型是否是移动网络,在判断结果为是的情况下,转至步骤S1212,否则,转至步骤S1208。Step S1210: When the client supports reading the hotspot type from the Wi-Fi broadcast, it is determined whether the read hotspot type is a mobile network. If the determination result is yes, the process goes to step S1212; otherwise, the process goes to step S1208. .
步骤S1212,确定读取的热点类型是移动网络,表明该热点采用移动接入,流量有限,不适合大数据业务,提示用户是否仍然进行连接,当接收到确定继续进行连接的信号后,转至步骤S1216,否则,转至步骤S1214。Step S1212, determining that the type of the hotspot is a mobile network, indicating that the hotspot uses mobile access, has limited traffic, is not suitable for big data services, and prompts the user whether to still connect. After receiving the signal that determines to continue the connection, the process proceeds to Step S1216, otherwise, go to step S1214.
步骤S1214,客户机停止与热点建立连接。In step S1214, the client stops establishing a connection with the hotspot.
步骤S1216,当客户机的用户已了解到热点流量受限,选择了同意继续使用后,客户机继续与热点主机建立连接。In step S1216, when the user of the client has learned that the hotspot traffic is limited, and after agreeing to continue to use, the client continues to establish a connection with the hotspot host.
步骤S1218,按照图2所示的流程进行网络连接,其中,在进行网络连接时可以采用用于节省流量的联网模式进行数据访问。In step S1218, the network connection is performed according to the flow shown in FIG. 2, wherein the network connection for saving traffic can be used for data access when the network connection is performed.
从上述的实施例中可知,便携式热点主机除了使用广播帧的通知热点类型标识,还可以采用配置文件通知热点类型。当便携式热点主机与客户机建立Wi-Fi连接后,主机将包含热点类型的配置文件直接发送给客户机。客户机收到该配置文件后,就能得知该热点为移动接入而不是普通的有线宽带接入,可以将连接属性定义为移动接入并通知上层应用。It can be seen from the above embodiments that the portable hotspot host can use the configuration file to notify the hotspot type in addition to the notification hotspot type identifier of the broadcast frame. When the portable hotspot host establishes a Wi-Fi connection with the client, the host sends the configuration file containing the hotspot type directly to the client. After receiving the configuration file, the client can know that the hotspot is mobile access instead of ordinary wired broadband access, and can define the connection attribute as mobile access and notify the upper application.
通过本发明实施例中的方案可以提高便携式热点用户的流量使用效率,不违背协议规范的原则,改善了终端的可用性和友好型。同时此发明从协议本身进行适当优化,且对原有技术方案改动较小,能适应各类Wi-Fi客户端接入,实用性很高。并且,随着长期演进(Long-Term Evolution,简称为LTE)的普及,移动网络速率大大提升。智能终端的便携式热点功能也越来越实用。本发明实施例中的方案对于保护用户流量,提升此类终端性能和用户体验具有很大的作用,具备很大的市场价值潜力。The solution in the embodiment of the present invention can improve the traffic usage efficiency of the portable hotspot user, and does not violate the principle of the protocol specification, thereby improving the usability and friendliness of the terminal. At the same time, the invention is properly optimized from the protocol itself, and the original technical solution is less modified, and can adapt to various Wi-Fi client access, and has high practicability. Moreover, with the popularity of Long-Term Evolution (LTE), the mobile network speed is greatly improved. The portable hotspot function of smart terminals is also becoming more and more practical. The solution in the embodiment of the present invention has a great effect on protecting user traffic and improving the performance and user experience of such a terminal, and has great market value potential.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以 下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述模块分别位于多个处理器中。It should be noted that each of the foregoing modules may be implemented by software or hardware. For the latter, The following manner is implemented, but is not limited thereto: the above modules are all located in the same processor; or, the above modules are respectively located in multiple processors.
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:Embodiments of the present invention also provide a storage medium. Optionally, in the embodiment, the foregoing storage medium may be configured to store program code for performing the following steps:
S11,获取开启了无线保真Wi-Fi热点的第一终端接入的网络的类型;S11. Acquire a type of a network that is accessed by the first terminal that is enabled with the wireless fidelity Wi-Fi hotspot;
S12,采用与获取的上述网络的类型对应的接入方式通过Wi-Fi热点接入上述网络。S12. Access the network through a Wi-Fi hotspot by using an access mode corresponding to the type of the obtained network.
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:Optionally, the storage medium is further arranged to store program code for performing the following steps:
S21,开启无线保真Wi-Fi热点;S21, turning on the wireless fidelity Wi-Fi hotspot;
S22,将接入的网络的类型通知给第二终端,其中,该网络的类型用于指示第二终端采用与网络的类型对应的接入方式通过Wi-Fi热点接入网络。S22, the type of the network to be accessed is notified to the second terminal, where the type of the network is used to indicate that the second terminal accesses the network through the Wi-Fi hotspot by using an access mode corresponding to the type of the network.
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in the embodiment, the foregoing storage medium may include, but is not limited to, a USB flash drive, a Read-Only Memory (ROM), and a Random Access Memory (RAM). A variety of media that can store program code, such as a hard disk, a disk, or an optical disk.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行上述的步骤S11-S12。Optionally, in the embodiment, the processor performs the above steps S11-S12 according to the stored program code in the storage medium.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行上述的步骤S21-S22。Optionally, in the embodiment, the processor performs the above steps S21-S22 according to the stored program code in the storage medium.
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。For example, the specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the optional embodiments, and details are not described herein again.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above description is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
工业实用性Industrial applicability
如上所述,本发明实施例提供的一种网络连接方法及装置具有以下有益效果:解决了相关技术中存在的主机的移动流量使用效率低,用户体验度低的问题,进而达到了提供主机的 移动流量使用效率,提高用户体验的效果。 As described above, the network connection method and apparatus provided by the embodiments of the present invention have the following beneficial effects: solving the problem that the mobile traffic usage efficiency of the host existing in the related art is low, and the user experience is low, thereby achieving the provision of the host. Mobile traffic usage efficiency and improved user experience.

Claims (12)

  1. 一种网络连接方法,包括:A network connection method includes:
    获取开启了无线保真Wi-Fi热点的第一终端接入的网络的类型;Obtaining a type of network accessed by the first terminal that has the wireless fidelity Wi-Fi hotspot enabled;
    采用与获取的所述网络的类型对应的接入方式通过所述Wi-Fi热点接入所述网络。Accessing the network through the Wi-Fi hotspot by using an access mode corresponding to the type of the obtained network.
  2. 根据权利要求1所述的方法,其中,获取开启了所述Wi-Fi热点的所述第一终端接入的所述网络的类型包括:The method of claim 1, wherein the acquiring the type of the network accessed by the first terminal that has opened the Wi-Fi hotspot comprises:
    接收所述第一终端的广播帧,其中,所述广播帧中携带有第一指示信息,所述第一指示信息用于指示开启了所述Wi-Fi热点的第一终端接入的网络的类型;和/或,Receiving a broadcast frame of the first terminal, where the broadcast frame carries first indication information, where the first indication information is used to indicate that the network that the first terminal that is connected to the Wi-Fi hotspot is connected to Type; and/or,
    接收所述第一终端发送的配置文件,其中,所述配置文件中携带有第二指示信息,所述第二指示信息用于指示开启了所述Wi-Fi热点的第一终端接入的网络的类型。And receiving, by the first terminal, a configuration file, where the configuration file carries second indication information, where the second indication information is used to indicate that the first terminal that is connected to the Wi-Fi hotspot is connected to the network. type.
  3. 根据权利要求1所述的方法,其中,采用与获取的所述网络的类型对应的接入方式通过所述Wi-Fi热点接入所述网络包括:The method of claim 1, wherein accessing the network through the Wi-Fi hotspot by using an access mode corresponding to the type of the acquired network comprises:
    当所述网络的类型为移动网络时,提示用户是否连接所述Wi-Fi热点;在接收到确定连接所述Wi-Fi热点的确定信号后,启用节省数据流量的联网模式进行网络连接;和/或,When the type of the network is a mobile network, prompting the user whether to connect to the Wi-Fi hotspot; after receiving the determining signal for determining the connection to the Wi-Fi hotspot, enabling a network mode for saving data traffic for network connection; and /or,
    当所述网络的类型为宽带网络时,接入所述宽带网络。When the type of the network is a broadband network, the broadband network is accessed.
  4. 根据权利要求1所述的方法,其中,在获取开启了所述Wi-Fi热点的所述第一终端接入的所述网络的类型之后,还包括:The method of claim 1, further comprising: after acquiring the type of the network that is accessed by the first terminal that is enabled with the Wi-Fi hotspot,
    显示获取的所述网络的类型。Displays the type of the network acquired.
  5. 一种网络连接方法,包括:A network connection method includes:
    开启无线保真Wi-Fi热点;Turn on the wireless fidelity Wi-Fi hotspot;
    将接入的网络的类型通知给第二终端,其中,所述网络的类型用于指示所述第二终端采用与所述网络的类型对应的接入方式通过所述Wi-Fi热点接入所述网络。Notifying the type of the accessed network to the second terminal, where the type of the network is used to indicate that the second terminal uses the access mode corresponding to the type of the network to access the Wi-Fi hotspot Network.
  6. 根据权利要求5所述的方法,其中,将接入的所述网络的类型通知给所述第二终端包括:The method of claim 5, wherein notifying the type of the accessed network to the second terminal comprises:
    在广播帧中携带接入的所述网络的类型;通过广播携带了接入所述网络的类型的广播帧的方式将接入的所述网络的类型通知给所述第二终端;和/或,The type of the network that is accessed in the broadcast frame; the type of the network that is accessed is notified to the second terminal by broadcasting a broadcast frame that carries the type of accessing the network; and/or ,
    将携带了接入的所述网络的类型的配置文件发送给所述第二终端。Sending a configuration file of a type of the network that carries the access to the second terminal.
  7. 一种网络连接装置,包括:A network connection device includes:
    获取模块,设置为获取开启了无线保真Wi-Fi热点的第一终端接入的网络的类型;Obtaining a module, configured to acquire a type of a network accessed by the first terminal that has the wireless fidelity Wi-Fi hotspot enabled;
    接入模块,设置为采用与获取的所述网络的类型对应的接入方式通过所述Wi-Fi热点接入所述网络。 The access module is configured to access the network through the Wi-Fi hotspot by using an access mode corresponding to the type of the obtained network.
  8. 根据权利要求7所述的装置,其中,所述获取模块包括:The apparatus of claim 7, wherein the obtaining module comprises:
    第一接收单元,设置为接收所述第一终端的广播帧,其中,所述广播帧中携带有第一指示信息,所述第一指示信息用于指示开启了所述Wi-Fi热点的第一终端接入的网络的类型;和/或,a first receiving unit, configured to receive a broadcast frame of the first terminal, where the broadcast frame carries first indication information, where the first indication information is used to indicate that the Wi-Fi hotspot is enabled The type of network to which a terminal accesses; and/or,
    第二接收单元,设置为接收所述第一终端发送的配置文件,其中,所述配置文件中携带有第二指示信息,所述第二指示信息用于指示开启了所述Wi-Fi热点的第一终端接入的网络的类型。The second receiving unit is configured to receive the configuration file sent by the first terminal, where the configuration file carries the second indication information, where the second indication information is used to indicate that the Wi-Fi hotspot is enabled. The type of network that the first terminal accesses.
  9. 根据权利要求7所述的装置,其中,所述接入模块包括:The apparatus of claim 7, wherein the access module comprises:
    显示单元,设置为当所述网络的类型为移动网络时,提示用户是否连接所述Wi-Fi热点;连接单元,用于在接收到确定连接所述Wi-Fi热点的确定信号后,启用节省数据流量的联网模式进行网络连接;和/或,a display unit, configured to prompt the user whether to connect to the Wi-Fi hotspot when the type of the network is a mobile network, and a connection unit, configured to enable saving after receiving the determining signal that the Wi-Fi hotspot is determined to be connected Networking mode of data traffic for network connectivity; and/or,
    接入单元,设置为当所述网络的类型为宽带网络时,接入所述宽带网络。The access unit is configured to access the broadband network when the type of the network is a broadband network.
  10. 根据权利要求7所述的装置,其中,还包括:The apparatus according to claim 7, further comprising:
    显示模块,设置为在获取开启了所述Wi-Fi热点的所述第一终端接入的所述网络的类型之后,显示获取的所述网络的类型。And a display module, configured to display the acquired type of the network after acquiring the type of the network accessed by the first terminal that has the Wi-Fi hotspot enabled.
  11. 一种网络连接装置,包括:A network connection device includes:
    开启模块,设置为开启无线保真Wi-Fi热点;Open the module and set it to enable the wireless fidelity Wi-Fi hotspot;
    通知模块,设置为将接入的网络的类型通知给第二终端,其中,所述网络的类型用于指示所述第二终端采用与所述网络的类型对应的接入方式通过所述Wi-Fi热点接入所述网络。a notification module, configured to notify the second terminal of the type of the network to be accessed, where the type of the network is used to indicate that the second terminal adopts the access mode corresponding to the type of the network by using the Wi- Fi hotspots access the network.
  12. 根据权利要求11所述的装置,其中,所述通知模块包括:The apparatus of claim 11 wherein said notification module comprises:
    处理单元,设置为在广播帧中携带接入的所述网络的类型;通知单元,设置为通过广播携带了接入的所述网络的类型的广播帧的方式将接入的所述网络的类型通知给所述第二终端;和/或,a processing unit, configured to carry the type of the network that is accessed in a broadcast frame; and a notification unit, configured to be a type of the network to be accessed by broadcasting a broadcast frame carrying the type of the network that is accessed Notifying the second terminal; and/or,
    发送单元,设置为将携带了接入的所述网络的类型的配置文件发送给所述第二终端。 And a sending unit, configured to send, to the second terminal, a configuration file of a type of the network that carries the access.
PCT/CN2016/074723 2015-07-30 2016-02-26 Network connection method and device WO2016177037A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510460099.8A CN106413121A (en) 2015-07-30 2015-07-30 Network connection method and apparatus
CN201510460099.8 2015-07-30

Publications (1)

Publication Number Publication Date
WO2016177037A1 true WO2016177037A1 (en) 2016-11-10

Family

ID=57217414

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/074723 WO2016177037A1 (en) 2015-07-30 2016-02-26 Network connection method and device

Country Status (2)

Country Link
CN (1) CN106413121A (en)
WO (1) WO2016177037A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120113965A1 (en) * 2010-11-09 2012-05-10 Sarat Puthenpura Method and apparatus for locating a wi-fi hotspot for offloading wireless traffic
CN104349401A (en) * 2013-09-03 2015-02-11 广州三星通信技术研究有限公司 Equipment and method for regulating data strategy in terminal
CN104363588A (en) * 2014-11-19 2015-02-18 贵州万臻时代通讯技术有限公司 Mobile terminal internet access control method and mobile terminal
CN104753821A (en) * 2013-12-25 2015-07-01 中国移动通信集团公司 Network connection method, information feedback method, terminal and network access device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120113965A1 (en) * 2010-11-09 2012-05-10 Sarat Puthenpura Method and apparatus for locating a wi-fi hotspot for offloading wireless traffic
CN104349401A (en) * 2013-09-03 2015-02-11 广州三星通信技术研究有限公司 Equipment and method for regulating data strategy in terminal
CN104753821A (en) * 2013-12-25 2015-07-01 中国移动通信集团公司 Network connection method, information feedback method, terminal and network access device
CN104363588A (en) * 2014-11-19 2015-02-18 贵州万臻时代通讯技术有限公司 Mobile terminal internet access control method and mobile terminal

Also Published As

Publication number Publication date
CN106413121A (en) 2017-02-15

Similar Documents

Publication Publication Date Title
US10193933B2 (en) System and method for post-discovery communication within a neighborhood-aware network
US9338633B2 (en) Wi-Fi service method and system for Wi-Fi devices
KR101526637B1 (en) Advertising support for a plurality of service networks by a wireless access point
JP5823077B2 (en) Method, apparatus and computer program for efficient service discovery
US9204375B2 (en) Determining parameters of an access point
RU2628324C2 (en) Method and device for signal transmission control and electronic device
RU2530247C2 (en) Message repeating method, access point and system
JP2014534674A (en) Wireless local area network authentication method and mobile terminal
CN102882938A (en) Data share method and mobile terminal
JP6040466B2 (en) Communication control method, user equipment, network server, and system
US20230239116A1 (en) Data Communication Method and Related Apparatus
US10448230B2 (en) Data transmission
WO2014183404A1 (en) Data transmission method, apparatus, system and terminal
CN103533592B (en) Multimode terminal and communication means
US20150195711A1 (en) Method and System for Terminal to Access Network and Terminal
CN104641599B (en) Method and system for delayed notification in a communication network
WO2016197809A2 (en) Access point switching method and device
US9025448B2 (en) Methods and apparatuses for accessing internet
JP2014523204A (en) Device and method for communication of management information in an ad hoc wireless network
WO2022222299A1 (en) Communication method for wifi device, and device and computer-readable storage medium
WO2022166755A1 (en) Information processing methods, devices, and storage medium
WO2018006623A1 (en) Preferred access method for mobile wifi hotspot, hotspot device and terminal device
WO2017032065A1 (en) Information displaying and transmission method, and hotspot access method and system
WO2016177037A1 (en) Network connection method and device
WO2020048337A1 (en) Service identifier display method and related product

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

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

Country of ref document: EP

Kind code of ref document: A1