WO2017201961A1 - Method and device for identifying wi-fi type - Google Patents

Method and device for identifying wi-fi type Download PDF

Info

Publication number
WO2017201961A1
WO2017201961A1 PCT/CN2016/103281 CN2016103281W WO2017201961A1 WO 2017201961 A1 WO2017201961 A1 WO 2017201961A1 CN 2016103281 W CN2016103281 W CN 2016103281W WO 2017201961 A1 WO2017201961 A1 WO 2017201961A1
Authority
WO
WIPO (PCT)
Prior art keywords
network
wifi
type
hotspot
terminal
Prior art date
Application number
PCT/CN2016/103281
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 WO2017201961A1 publication Critical patent/WO2017201961A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • 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

  • Another object of embodiments of the present invention is to provide an apparatus for identifying a WIFI type.
  • FIG. 2 is a schematic flowchart of a method for identifying a WIFI type according to another embodiment of the present invention.
  • FIG. 4 is a schematic flowchart of a method for identifying a WIFI type according to another embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of an apparatus for identifying a WIFI type according to another embodiment of the present invention.
  • the public network IP address of the request transmission message is parsed by the terminal, and the network operator obtains the network type of the fixed network and the mobile network, and the network type is obtained according to the public network IP, thereby effectively improving the WIFI type. Recognition accuracy.
  • the network type By pre-acquiring the network type, the starting IP and the ending IP corresponding to the network type, and configuring the network type field in the database according to the network type, and configuring the public network IP field according to the starting IP and the ending IP, The mapping between the IP address and the network type of the public network is configured. Because the network IP type of different network operators is different from the initial IP address and the terminating IP address, the network type can be accurately located according to the fields in the database, and the recognition accuracy is high.
  • the access network type is a WIFI hotspot of the fixed network.

Abstract

Provided in the present invention are a method and a device for identifying a Wi-Fi type. The method for identifying a Wi-Fi type comprises: acquiring, after a terminal accesses a to-be-identified Wi-Fi hotspot, a public network IP of a request message transmitted by the terminal, the request message being used for acquiring the Wi-Fi type of the to-be-identified Wi-Fi hotspot; reading from a database, according to the correlation between public network IP and network types, the network type corresponding to the public network IP; and identifying the Wi-Fi type according to the network type. The present invention can efficiently improve the accuracy of Wi-Fi type reorganization, improving user experience.

Description

识别WIFI类型的方法和装置Method and device for identifying WIFI type 技术领域Technical field
本发明涉及通信技术领域,尤其涉及一种识别WIFI类型的方法和装置。The present invention relates to the field of communications technologies, and in particular, to a method and apparatus for identifying a WIFI type.
背景技术Background technique
随着通信技术和智能终端的发展,智能终端普遍支持热点创建的功能,即通过虚拟WIFI热点来供其他终端连接,共同使用移动终端的移动网络资源。虚拟的WIFI热点虽然可以提供网络连接,但是上网速度却不理想。另外,终端应用APP在连接到WIFI热点时会进行自动更新,这样会耗费大量的移动网络数据流量。然而,用户并不能在搜索出的热点中分辨出哪些是路由热点,哪些是WIFI热点。With the development of communication technologies and intelligent terminals, intelligent terminals generally support the function of hotspot creation, that is, through virtual WIFI hotspots for other terminals to connect, and jointly use mobile network resources of mobile terminals. Although the virtual WIFI hotspot can provide network connection, the Internet speed is not ideal. In addition, the terminal application APP will automatically update when connected to the WIFI hotspot, which will consume a large amount of mobile network data traffic. However, the user cannot distinguish which hotspots are routed and which are WIFI hotspots in the searched hotspots.
相关技术中,通过对虚拟的WIFI热点所分配的动态IP地址是否为在固定范围内的WIFI热点来进行判断,WIFI热点的WIFI类型的识别精度不高。In the related art, the WIFI type of the WIFI hotspot is not highly accurate by determining whether the dynamic IP address assigned to the virtual WIFI hotspot is a WIFI hotspot within a fixed range.
发明内容Summary of the invention
本发明实施例旨在至少在一定程度上解决相关技术中的技术问题之一。The embodiments of the present invention aim to solve at least one of the technical problems in the related art to some extent.
为此,本发明实施例的一个目的在于提出一种识别WIFI类型的方法,能够有效提升WIFI类型识别的精确度,提升用户体验。Therefore, an object of the embodiments of the present invention is to provide a method for identifying a WIFI type, which can effectively improve the accuracy of the WIFI type identification and improve the user experience.
本发明实施例的另一个目的在于提出一种识别WIFI类型的装置。Another object of embodiments of the present invention is to provide an apparatus for identifying a WIFI type.
为达到上述目的,本发明第一方面实施例提出的识别WIFI类型的方法,包括:在终端接入待识别WIFI热点后,获取所述终端传输请求报文的公网IP,其中,所述请求报文用于获取所述待识别WIFI热点的WIFI类型;在数据库中根据所述公网IP与网络类型的对应关系读取与所述公网IP对应的网络类型;以及根据所述网络类型对所述WIFI类型进行识别。 In order to achieve the above object, the method for identifying a WIFI type according to the first aspect of the present invention includes: obtaining, after the terminal accesses the WIFI hotspot to be identified, the public network IP of the terminal transmission request message, where the request is The packet is used to obtain the WIFI type of the WIFI hotspot to be identified; the network type corresponding to the public network IP is read according to the correspondence between the public network IP and the network type in the database; and according to the network type The WIFI type is identified.
本发明第一方面实施例提出的识别WIFI类型的方法,通过在终端接入待识别WIFI热点后,获取终端传输请求报文的公网IP,并根据公网IP对待识别WIFI热点的WIFI类型进行识别,能够有效提升WIFI类型识别的精确度,提升用户体验。The method for identifying the WIFI type proposed by the first aspect of the present invention obtains the public network IP of the terminal transmission request message after the terminal accesses the WIFI hotspot to be identified, and performs the WIFI type of the WIFI hotspot according to the public network IP. Identification can effectively improve the accuracy of WIFI type identification and enhance the user experience.
为达到上述目的,本发明第二方面实施例提出的识别WIFI类型的装置,包括:获取模块,设置为在终端接入待识别WIFI热点后,获取所述终端传输请求报文的公网IP,其中,所述请求报文用于获取所述待识别WIFI热点的WIFI类型;读取模块,设置为在数据库中根据所述公网IP与网络类型的对应关系读取与所述公网IP对应的网络类型;以及识别模块,设置为根据所述网络类型对所述WIFI类型进行识别。In order to achieve the above object, the device for identifying a WIFI type according to the second aspect of the present invention includes: an obtaining module, configured to acquire a public network IP of the terminal transmission request message after the terminal accesses the WIFI hotspot to be identified, The request message is used to obtain the WIFI type of the WIFI hotspot to be identified; the reading module is configured to read, according to the correspondence between the public network IP and the network type, the corresponding IP address in the database. And a recognition module configured to identify the WIFI type according to the network type.
本发明第二方面实施例提出的识别WIFI类型的装置,通过在终端接入待识别WIFI热点后,获取终端传输请求报文的公网IP,并根据公网IP对待识别WIFI热点的WIFI类型进行识别,能够有效提升WIFI类型识别的精确度,提升用户体验。The device for identifying the WIFI type proposed by the second aspect of the present invention obtains the public network IP of the terminal transmission request message after the terminal accesses the WIFI hotspot to be identified, and performs the WIFI type of the WIFI hotspot according to the public network IP. Identification can effectively improve the accuracy of WIFI type identification and enhance the user experience.
本发明实施例附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明实施例的实践了解到。The additional aspects and advantages of the embodiments of the invention will be set forth in part in the description in the description.
附图说明DRAWINGS
本发明实施例上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the embodiments of the present invention will become apparent and readily understood from
图1是本发明一实施例提出的识别WIFI类型的方法的流程示意图;1 is a schematic flow chart of a method for identifying a WIFI type according to an embodiment of the present invention;
图2是本发明另一实施例提出的识别WIFI类型的方法的流程示意图;2 is a schematic flowchart of a method for identifying a WIFI type according to another embodiment of the present invention;
图3是本发明另一实施例提出的识别WIFI类型的方法的流程示意图;3 is a schematic flowchart of a method for identifying a WIFI type according to another embodiment of the present invention;
图4是本发明另一实施例提出的识别WIFI类型的方法的流程示意图;4 is a schematic flowchart of a method for identifying a WIFI type according to another embodiment of the present invention;
图5是本发明一实施例提出的识别WIFI类型的装置的结构示意图;FIG. 5 is a schematic structural diagram of an apparatus for identifying a WIFI type according to an embodiment of the present invention; FIG.
图6是本发明另一实施例提出的识别WIFI类型的装置的结构示意图。 FIG. 6 is a schematic structural diagram of an apparatus for identifying a WIFI type according to another embodiment of the present invention.
具体实施方式detailed description
下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本发明实施例,而不能理解为对本发明的限制。相反,本发明的实施例包括落入所附加权利要求书的精神和内涵范围内的所有变化、修改和等同物。The embodiments of the present invention are described in detail below, and the examples of the embodiments are illustrated in the drawings, wherein the same or similar reference numerals are used to refer to the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are intended to be illustrative of the embodiments of the invention. Rather, the invention is to cover all modifications, modifications and equivalents within the spirit and scope of the appended claims.
图1是本发明一实施例提出的识别WIFI类型的方法的流程示意图。本实施例以该识别WIFI类型的方法被配置为识别WIFI类型的装置中来举例说明。该识别WIFI类型的方法可以应用在终端对WIFI热点的类型进行检测的过程中,例如,终端用户在开启终端连接无线局域网(Wireless Local Area Networks,WLAN)的功能后,可以在WLAN网络列表界面选取需要连接的WIFI热点,而后终端可以触发对用户选取的WIFI热点进行检测。其中,终端可以例如是个人计算机(personal computer,PC)、智能手机、平板电脑、个人数字助理、电子书等具有各种操作系统的硬件设备。1 is a schematic flow chart of a method for identifying a WIFI type according to an embodiment of the present invention. This embodiment is exemplified by the method of identifying the WIFI type configured to identify the WIFI type device. The method for identifying the WIFI type can be applied in the process of detecting the type of the WIFI hotspot by the terminal. For example, after the terminal user connects the function of the wireless local area network (WLAN), the terminal user can select the WLAN network list interface. The WIFI hotspot needs to be connected, and then the terminal can trigger the detection of the WIFI hotspot selected by the user. The terminal may be, for example, a personal computer (PC), a smart phone, a tablet computer, a personal digital assistant, an electronic book, or the like having hardware devices of various operating systems.
参见图1,该识别WIFI类型的方法可以包括:Referring to FIG. 1, the method for identifying a WIFI type may include:
S11:在终端接入待识别WIFI热点后,获取终端传输请求报文的公网IP,其中,请求报文用于获取待识别WIFI热点的WIFI类型。S11: After the terminal accesses the WIFI hotspot to be identified, the public network IP address of the terminal transmission request packet is obtained, where the request packet is used to obtain the WIFI type of the WIFI hotspot to be identified.
在本发明的实施例中,待识别WIFI热点可以为终端用户在WLAN网络列表界面选取的需要连接的WIFI热点,或者,待识别WIFI热点也可以为终端启动自动检测当前所处环境中的WIFI热点的WIFI类型的功能时,遍历WLAN网络列表界面中所有WIFI热点的过程中,当前所选定的WIFI热点,对此不作限制。In the embodiment of the present invention, the WIFI hotspot to be identified may be a WIFI hotspot that the terminal user needs to connect in the WLAN network list interface, or the WIFI hotspot may be activated to automatically detect the WIFI hotspot in the current environment. When the function of the WIFI type is traversed, in the process of traversing all the WIFI hotspots in the WLAN network list interface, the currently selected WIFI hotspots are not limited.
以待识别WIFI热点为终端用户在WLAN网络列表界面选取的需要连接的WIFI热点示例。The WIFI hotspot to be identified is an example of a WIFI hotspot that needs to be connected by the terminal user in the WLAN network list interface.
终端用户在WLAN网络列表界面选取需要连接的WIFI热点,终端在接入待识别WIFI热点后,可以生成访问互联网的HTTP请求报文,例如 为http://zte.ip.com.cn/goform/goform_get_cmd_process?cmd=get_global_ip,其中,zte.ip.com.cn是服务器的域名,get_global_ip为请求获取公网IP和网络类型的指令。终端将HTTP请求报文发送至服务器,服务器例如为HTTP服务器,服务器在接收到HTTP请求报文后,可以解析HTTP请求报文,获取终端传输的HTTP请求报文的TCP连接的公网IP。The terminal user selects the WIFI hotspot to be connected to the WLAN network list interface. After accessing the WIFI hotspot to be identified, the terminal can generate an HTTP request packet for accessing the Internet, for example, For http://zte.ip.com.cn/goform/goform_get_cmd_process? Cmd=get_global_ip, where zte.ip.com.cn is the domain name of the server, and get_global_ip is the instruction to request the public IP and network type. The terminal sends the HTTP request packet to the server. The server is, for example, an HTTP server. After receiving the HTTP request packet, the server can parse the HTTP request packet and obtain the public network IP address of the TCP connection of the HTTP request packet transmitted by the terminal.
其中,公网IP为网络运营商(例如,联通、电信等)分配至固网宽带或者移动网络的独占IP地址,可以理解的是,网络运营商分配至固网宽带和移动网络的独占IP地址不同。The public network IP is the exclusive IP address assigned to the fixed network broadband or mobile network by the network operator (for example, China Unicom, Telecom, etc.). It can be understood that the network operator assigns the exclusive IP address to the fixed network broadband and the mobile network. different.
相关技术中,根据接入待识别WIFI热点终端的本机动态IP是否在固定范围内来识别WIFI热点的WIFI类型,在路由热点也将本机动态IP分配至固定范围内时,WIFI类型识别精度不高。In the related art, the WIFI type of the WIFI hotspot is identified according to whether the local dynamic IP of the WIFI hotspot terminal to be identified is in a fixed range, and the WIFI type identification accuracy is also determined when the routing hotspot also allocates the local dynamic IP to a fixed range. not tall.
而本发明的实施例中,通过解析终端传输请求报文的公网IP,由于网络运营商分配至固网宽带和移动网络的独占IP地址不同,根据公网IP获取网络类型,有效提升WIFI类型识别精度。In the embodiment of the present invention, the public network IP address of the request transmission message is parsed by the terminal, and the network operator obtains the network type of the fixed network and the mobile network, and the network type is obtained according to the public network IP, thereby effectively improving the WIFI type. Recognition accuracy.
可选地,在本发明的实施例中,获取终端传输HTTP请求报文的TCP连接的公网IP示例:服务器可以解析终端传输HTTP请求报文的TCP连接的IP地址,将该IP地址作为公网IP,其中,公网IP例如为固网宽带的公网IP,或者移动网络的公网IP,若为联通,则固网宽带的公网IP例如为123.138.89.x,若为移动,则固网宽带的公网IP例如为223.104.11.x,对此不作限制。Optionally, in the embodiment of the present invention, an example of obtaining a public network IP address of a TCP connection in which a terminal transmits an HTTP request message: the server may parse an IP address of a TCP connection in which the terminal transmits an HTTP request message, and the IP address is regarded as a public Network IP, where the public network IP is, for example, a public network IP of a fixed network broadband, or a public network IP of a mobile network. If it is Unicom, the public network IP of the fixed network broadband is, for example, 123.138.89.x, if it is mobile, The public network IP of the fixed network broadband is, for example, 223.104.11.x, which is not limited thereto.
S12:在数据库中根据公网IP与网络类型的对应关系读取与公网IP对应的网络类型。S12: Read the network type corresponding to the public network IP according to the correspondence between the public network IP and the network type in the database.
在本发明的实施例中,可以预先配置数据库,可选地,数据库中包括公网IP字段和网络类型字段,数据库中公网IP与网络类型的对应关系通过以下步骤配置:从网络侧下载网络类型,以及网络类型对应的起始IP和终止IP;根据网络类型对数据库中的网络类型字段进行配置,以及根据起始IP、终止IP对公网IP字段进行配置,以对公网IP与网络类型的对 应关系进行配置。其中,网络侧具体为网络运营商侧。In the embodiment of the present invention, the database may be pre-configured. Optionally, the database includes a public network IP field and a network type field. The correspondence between the public network IP and the network type in the database is configured by the following steps: downloading the network type from the network side And the start IP and the termination IP corresponding to the network type; configure the network type field in the database according to the network type, and configure the public network IP field according to the start IP and the termination IP to the public network IP and network type. Pair Should be configured for the relationship. The network side is specifically a network operator side.
在本发明的实施例中,数据库可以内置在终端侧,也可以内置在服务器侧,对此不做限制。In the embodiment of the present invention, the database may be built in the terminal side or built in the server side, which is not limited thereto.
当数据库内置在终端侧时,服务器获取到终端传输HTTP请求报文的TCP连接的公网IP后,可以根据公网IP生成HTTP响应报文,将HTTP响应报文发送至终端侧,由终端触发从数据库中读取与公网IP对应的网络类型,或者,当数据库内置在服务器侧时,服务器触发从数据库中读取与公网IP对应的网络类型,并根据公网IP和网络类型生成HTTP响应报文,将HTTP响应报文发送至终端侧,以对WIFI类型进行识别,对此不作限制。When the database is built in the terminal side, the server obtains the public network IP address of the TCP connection that the terminal transmits the HTTP request message, and then generates an HTTP response packet according to the public network IP address, and sends the HTTP response packet to the terminal side, which is triggered by the terminal. The network type corresponding to the public network IP is read from the database, or when the database is built in the server side, the server triggers reading the network type corresponding to the public network IP from the database, and generates HTTP according to the public network IP and network type. In response to the packet, the HTTP response packet is sent to the terminal side to identify the WIFI type, which is not limited.
在本发明的实施例中,网络类型包括固网宽带和移动网络,可以从数据库中读取与公网IP对应的网络类型,例如,当公网IP在联通固网宽带的起始IP和终止IP的范围内时,可以判定该公网IP的网络类型为固网宽带,当公网IP在移动网络的起始IP和终止IP的范围内时,可以判定该公网IP的网络类型为移动网络。In an embodiment of the present invention, the network type includes a fixed network broadband and a mobile network, and the network type corresponding to the public network IP may be read from the database, for example, when the public network IP is in the initial IP address and termination of the fixed network broadband of China Unicom. In the range of IP, it can be determined that the network type of the public network IP is fixed network broadband. When the public network IP is within the range of the starting IP and the terminating IP of the mobile network, the network type of the public network IP can be determined to be mobile. The internet.
S13:根据网络类型对WIFI类型进行识别。S13: Identify the WIFI type according to the network type.
可选地,根据网络类型对WIFI类型进行识别,包括:如果网络类型为固网宽带,则判定待识别WIFI热点的WIFI类型为路由热点;如果网络类型为移动网络,则判定待识别WIFI热点的WIFI类型为终端热点。Optionally, the WIFI type is identified according to the network type, including: if the network type is a fixed network broadband, determining that the WIFI type of the WIFI hotspot to be identified is a routing hotspot; if the network type is a mobile network, determining the WIFI hotspot to be identified. The WIFI type is a terminal hotspot.
本实施例中,通过在终端接入待识别WIFI热点后,获取终端传输请求报文的公网IP,并根据公网IP对待识别WIFI热点的WIFI类型进行识别,能够有效提升WIFI类型识别的精确度,提升用户体验。In this embodiment, after the terminal accesses the WIFI hotspot to be identified, the public network IP of the terminal transmission request packet is obtained, and the WIFI type of the WIFI hotspot is identified according to the public network IP, which can effectively improve the accuracy of the WIFI type identification. Degrees to enhance the user experience.
图2是本发明另一实施例提出的识别WIFI类型的方法的流程示意图。本实施例以该识别WIFI类型的方法被配置为识别WIFI类型的装置中来举例说明。2 is a schematic flow chart of a method for identifying a WIFI type according to another embodiment of the present invention. This embodiment is exemplified by the method of identifying the WIFI type configured to identify the WIFI type device.
参见图2,该识别WIFI类型的方法可以包括:Referring to FIG. 2, the method for identifying a WIFI type may include:
S201:从网络侧下载网络类型,以及网络类型对应的起始IP和终止 IP。S201: download the network type from the network side, and the starting IP and termination corresponding to the network type. IP.
其中,网络侧具体为网络运营商侧。可以从网络运营商侧的官网上下载网络类型,或者也可以采用数据爬取技术从网络侧下载网络类型,对此不作限制。The network side is specifically a network operator side. The network type can be downloaded from the official website of the network operator side, or the network type can be downloaded from the network side by using data crawling technology, which is not limited.
在本发明的实施例中,网络类型对应的起始IP和终止IP范围中的IP地址,可以为网络运营商分配的独占IP地址,不同的网络运营商的网络类型对应的起始IP和终止IP不同。In the embodiment of the present invention, the IP address in the start IP and the terminating IP range corresponding to the network type may be an exclusive IP address allocated by the network operator, and the initial IP address and the termination corresponding to the network type of different network operators. The IP is different.
S202:根据网络类型对数据库中的网络类型字段进行配置,以及根据起始IP、终止IP对公网IP字段进行配置。S202: Configure a network type field in the database according to the network type, and configure the public network IP field according to the starting IP and the ending IP.
通过预先获取网络类型,以及网络类型对应的起始IP和终止IP,并根据网络类型对数据库中的网络类型字段进行配置,以及根据起始IP、终止IP对公网IP字段进行配置,以对公网IP与网络类型的对应关系进行配置,由于不同的网络运营商的网络类型对应的起始IP和终止IP不同,可以根据数据库中的字段精准定位到网络类型,识别精度高。By pre-acquiring the network type, the starting IP and the ending IP corresponding to the network type, and configuring the network type field in the database according to the network type, and configuring the public network IP field according to the starting IP and the ending IP, The mapping between the IP address and the network type of the public network is configured. Because the network IP type of different network operators is different from the initial IP address and the terminating IP address, the network type can be accurately located according to the fields in the database, and the recognition accuracy is high.
S203:获取终端传输请求报文的公网IP。S203: Obtain a public network IP address of the terminal transmission request message.
其中,请求报文用于获取待识别WIFI热点的WIFI类型。The request message is used to obtain the WIFI type of the WIFI hotspot to be identified.
S204:在数据库中根据公网IP与网络类型的对应关系读取与公网IP对应的网络类型。S204: Read, in the database, a network type corresponding to the public network IP according to the correspondence between the public network IP and the network type.
S205:如果网络类型为固网宽带,则判定待识别WIFI热点的WIFI类型为路由热点。S205: If the network type is fixed network broadband, determine that the WIFI type of the WIFI hotspot to be identified is a routing hotspot.
S206:如果网络类型为移动网络,则判定待识别WIFI热点的WIFI类型为终端热点。S206: If the network type is a mobile network, determine that the WIFI type of the WIFI hotspot to be identified is a terminal hotspot.
在本发明的实施例中,网络类型包括固网宽带和移动网络,可以从数据库中读取与公网IP对应的网络类型,例如,当公网IP在联通固网宽带的起始IP和终止IP的范围内时,可以判定该公网IP的网络类型为固网宽带,当公网IP在移动网络的起始IP和终止IP的范围内时,可以判定该公 网IP的网络类型为移动网络。In an embodiment of the present invention, the network type includes a fixed network broadband and a mobile network, and the network type corresponding to the public network IP may be read from the database, for example, when the public network IP is in the initial IP address and termination of the fixed network broadband of China Unicom. In the range of IP, it can be determined that the network type of the public network IP is fixed network broadband, and when the public network IP is within the range of the starting IP and the terminating IP of the mobile network, the public can be determined. The network type of the network IP is a mobile network.
S207:生成用于提示终端用户当前所连网络为终端热点的提示信息,并将提示信息显示给终端用户。S207: Generate prompt information for prompting the end user to connect the network to the terminal hotspot, and display the prompt information to the terminal user.
在本发明的实施例中,提示信息用于提示终端用户当前所连网络为终端热点。In the embodiment of the present invention, the prompt information is used to prompt the end user that the currently connected network is a terminal hotspot.
可以理解的是,由于终端热点提供的移动网络的网速度不高,以及,在终端接入WIFI网络上,会自动更新应用,耗费数据流量,因此,在终端接入的WIFI热点为移动网络时,用户会有断开WIFI热点的需求。It can be understood that, because the network speed of the mobile network provided by the terminal hotspot is not high, and the terminal accesses the WIFI network, the application is automatically updated, and the data traffic is consumed. Therefore, when the WIFI hotspot accessed by the terminal is the mobile network, The user will have the need to disconnect the WIFI hotspot.
可选地,提示信息还可以包括提示终端用户是否需要断开该终端热点的信息,并提供给用户选择的入口,例如,断开或者连接,如果用户选择断开,则触发终端断开WIFI热点的连接,如果用户选择连接,则保持终端连接该WIFI热点,对此不作限制。Optionally, the prompt information may further include information indicating whether the terminal user needs to disconnect the hotspot of the terminal, and provide the user with an selected portal, for example, disconnected or connected. If the user selects to disconnect, the terminal is triggered to disconnect the WIFI hotspot. If the user chooses to connect, the terminal is connected to the WIFI hotspot, and no limitation is imposed on the connection.
通过将当前所连网络为终端热点的提示信息显示给终端用户,由用户决定是否保持终端连接该WIFI热点,可以在用户选择保持终端连接该WIFI热点时,保持终端访问网络的连续性,在用户选择断开终端连接该WIFI热点时,有效节约数据流量,实现根据用户的需求选择是否保持连接该WIFI热点,提升该方法的使用灵活性,以及提升用户的使用体验。By displaying the prompt information of the currently connected network as the terminal hotspot to the terminal user, the user decides whether to keep the terminal connected to the WIFI hotspot, and can maintain the continuity of the terminal accessing the network when the user chooses to keep the terminal connected to the WIFI hotspot. When the disconnected terminal is connected to the WIFI hotspot, the data traffic is effectively saved, and whether the WIFI hotspot is connected or not is selected according to the user's needs, the use flexibility of the method is improved, and the user experience is improved.
本实施例中,由于不同的网络运营商的网络类型对应的起始IP和终止IP不同,可以根据数据库中的字段精准定位到网络类型,识别精度高。通过将当前所连网络为终端热点的提示信息显示给终端用户,由用户决定是否保持终端连接该WIFI热点,可以在用户选择保持终端连接该WIFI热点时,保持终端访问网络的连续性,在用户选择断开终端连接该WIFI热点时,有效节约数据流量,实现根据用户的需求选择是否保持连接该WIFI热点,提升该方法的使用灵活性,以及提升用户的使用体验。通过在终端接入待识别WIFI热点后,获取终端传输请求报文的公网IP,并根据公网IP对待识别WIFI热点的WIFI类型进行识别,能够有效提升WIFI类型识别的精确度,提升用户体验。 In this embodiment, since the network IP types of different network operators are different from the initial IP address and the terminating IP address, the network type can be accurately located according to the fields in the database, and the recognition precision is high. By displaying the prompt information of the currently connected network as the terminal hotspot to the terminal user, the user decides whether to keep the terminal connected to the WIFI hotspot, and can maintain the continuity of the terminal accessing the network when the user chooses to keep the terminal connected to the WIFI hotspot. When the disconnected terminal is connected to the WIFI hotspot, the data traffic is effectively saved, and whether the WIFI hotspot is connected or not is selected according to the user's needs, the use flexibility of the method is improved, and the user experience is improved. After the terminal accesses the WIFI hotspot to be identified, the public network IP address of the terminal transmission request packet is obtained, and the WIFI type of the WIFI hotspot is identified according to the public network IP, which can effectively improve the accuracy of the WIFI type identification and improve the user experience. .
图3是本发明另一实施例提出的识别WIFI类型的方法的流程示意图。本实施例以该识别WIFI类型的方法被配置为识别WIFI类型的装置中来举例说明。FIG. 3 is a schematic flowchart of a method for identifying a WIFI type according to another embodiment of the present invention. This embodiment is exemplified by the method of identifying the WIFI type configured to identify the WIFI type device.
参见图3,在图2所示实施例中S206之后,该识别WIFI类型的方法还可以包括:Referring to FIG. 3, after the S206 in the embodiment shown in FIG. 2, the method for identifying the WIFI type may further include:
S301:获取接入待识别WIFI热点的终端的本机IP,并获取预设终端操作系统的可分配IP范围。S301: Acquire a local IP address of the terminal that accesses the WIFI hotspot to be identified, and obtain an assignable IP range of the preset terminal operating system.
其中,预设终端操作系统为Android系统或IOS系统。The preset terminal operating system is an Android system or an IOS system.
在本发明的实施例中,本机IP具体为待识别WIFI热点分配给终端的动态IP。可分配IP范围可以例如为相关技术中Android系统或IOS系统的固定IP地址范围。In the embodiment of the present invention, the local IP is specifically a dynamic IP allocated to the terminal to be identified by the WIFI hotspot. The assignable IP range can be, for example, a fixed IP address range of the Android system or the IOS system in the related art.
S302:判断本机IP是否在可分配IP范围内。S302: Determine whether the local IP is within the assignable IP range.
可选地,可以将预设终端操作系统的可分配IP范围预存在数据库中,从数据库中读取可分配IP范围,或者,也可以从网络侧爬去可分配IP范围,对此不作限制。Optionally, the assignable IP range of the preset terminal operating system may be pre-stored in the database, the assignable IP range may be read from the database, or the assignable IP range may be crawled from the network side, which is not limited.
S303:在本机IP在可分配IP范围内时,判定待识别WIFI热点的WIFI类型为终端热点。S303: When the local IP is in the assignable IP range, determine that the WIFI type of the WIFI hotspot to be identified is a terminal hotspot.
可选地,可以根据本机IP是否在可分配IP范围内,来判断待识别WIFI热点的WIFI类型为终端热点。Optionally, the WIFI type of the WIFI hotspot to be identified may be determined as a terminal hotspot according to whether the local IP is in the assignable IP range.
本实施例中,通过在网络类型为移动网络时,进一步结合待识别WIFI热点分配给终端的动态IP来识别待识别WIFI热点的WIFI类型,进一步增强了WIFI类型识别的精确度。In this embodiment, when the network type is a mobile network, the WIFI type of the WIFI hotspot to be identified is further identified by combining the dynamic IP allocated to the terminal to be identified by the WIFI hotspot, and the accuracy of the WIFI type identification is further enhanced.
图4是本发明另一实施例提出的识别WIFI类型的方法的流程示意图。本实施例以该识别WIFI类型的方法被配置为识别WIFI类型的装置中来举例说明。FIG. 4 is a schematic flowchart of a method for identifying a WIFI type according to another embodiment of the present invention. This embodiment is exemplified by the method of identifying the WIFI type configured to identify the WIFI type device.
参见图4,在图3所示实施例中S303之后,该识别WIFI类型的方法 还可以包括:Referring to FIG. 4, after the S303 in the embodiment shown in FIG. 3, the method for identifying the WIFI type It can also include:
S401:遍历终端所在的当前环境中的所有WIFI热点,依次检测WIFI热点的WIFI类型,获取检测结果。S401: traverse all the WIFI hotspots in the current environment where the terminal is located, and sequentially detect the WIFI type of the WIFI hotspot, and obtain the detection result.
在本发明的实施例中,在用户将终端移至另一个WIFI环境时,终端重新扫描WIFI环境中的可用WIFI热点,并对WLAN网络列表界面中的WIFI热点进行更新,而后遍历更新后的所有WIFI热点,依次检测WIFI热点的WIFI类型,获取检测结果。In the embodiment of the present invention, when the user moves the terminal to another WIFI environment, the terminal re-scans the available WIFI hotspots in the WIFI environment, and updates the WIFI hotspots in the WLAN network list interface, and then traverses all the updated The WIFI hotspot detects the WIFI type of the WIFI hotspot in turn and obtains the detection result.
S402:在检测结果中包含网络类型为固定网络的WIFI热点时,接入网络类型为固定网络的WIFI热点。S402: When the detection result includes a WIFI hotspot whose network type is a fixed network, the access network type is a WIFI hotspot of the fixed network.
本实施例中,可以在检测出WIFI环境中有固定网络的WIFI热点时,接入网络类型为固定网络的WIFI热点,能够避免移动网络的数据流量的耗损,提升用户体验。In this embodiment, when the WIFI hotspot of the fixed network is detected in the WIFI environment, the access network type is a WIFI hotspot of the fixed network, which can avoid the loss of data traffic of the mobile network and improve the user experience.
图5是本发明一实施例提出的识别WIFI类型的装置的结构示意图。该识别WIFI类型的装置可以通过软件、硬件或者两者的结合实现。FIG. 5 is a schematic structural diagram of an apparatus for identifying a WIFI type according to an embodiment of the present invention. The device for identifying the WIFI type can be implemented by software, hardware or a combination of both.
参见图5,该识别WIFI类型的装置50可以包括:获取模块51,读取模块52,以及识别模块53。Referring to FIG. 5, the device 50 for identifying a WIFI type may include an acquisition module 51, a reading module 52, and an identification module 53.
获取模块51,设置为在终端接入待识别WIFI热点后,获取终端传输请求报文的公网IP,其中,请求报文用于获取待识别WIFI热点的WIFI类型。The obtaining module 51 is configured to obtain, after the terminal accesses the WIFI hotspot to be identified, the public network IP of the terminal transmission request message, where the request message is used to obtain the WIFI type of the WIFI hotspot to be identified.
读取模块52,设置为在数据库中根据公网IP与网络类型的对应关系读取与公网IP对应的网络类型。The reading module 52 is configured to read the network type corresponding to the public network IP according to the correspondence between the public network IP and the network type in the database.
识别模块53,设置为根据网络类型对WIFI类型进行识别。The identification module 53 is configured to identify the WIFI type according to the network type.
可选地,网络类型包括固网宽带和移动网络,识别模块53还设置为在网络类型为固网宽带时,判定待识别WIFI热点的WIFI类型为路由热点;在网络类型为移动网络时,判定待识别WIFI热点的WIFI类型为终端热点。 Optionally, the network type includes a fixed network broadband and a mobile network, and the identifying module 53 is further configured to: when the network type is a fixed network broadband, determine that the WIFI type of the WIFI hotspot to be identified is a routing hotspot; when the network type is a mobile network, determine The WIFI type of the WIFI hotspot to be identified is the terminal hotspot.
可选地,识别模块53还设置为获取接入待识别WIFI热点的终端的本机IP,并获取预设终端操作系统的可分配IP范围;判断本机IP是否在可分配IP范围内;在本机IP在可分配IP范围内时,判定待识别WIFI热点的WIFI类型为终端热点。Optionally, the identifying module 53 is further configured to obtain a local IP of the terminal that accesses the WIFI hotspot to be identified, and obtain an assignable IP range of the preset terminal operating system; determine whether the local IP is within the assignable IP range; When the local IP is in the assignable IP range, it is determined that the WIFI type of the WIFI hotspot to be identified is the terminal hotspot.
可选地,数据库中包括公网IP字段和网络类型字段,一些实施例中,参见图6,该识别WIFI类型的装置50还可以包括:Optionally, the database includes a public network IP field and a network type field. In some embodiments, referring to FIG. 6, the device 50 for identifying the WIFI type may further include:
下载模块54,设置为从网络侧下载网络类型,以及网络类型对应的起始IP和终止IP。The download module 54 is configured to download the network type from the network side, and the start IP and the termination IP corresponding to the network type.
配置模块55,设置为根据网络类型对数据库中的网络类型字段进行配置,以及根据起始IP、终止IP对公网IP字段进行配置,以对公网IP与网络类型的对应关系进行配置。The configuration module 55 is configured to configure the network type field in the database according to the network type, and configure the public network IP field according to the initial IP address and the termination IP address to configure the correspondence between the public network IP and the network type.
可选地,预设终端操作系统为Android系统或IOS系统。Optionally, the preset terminal operating system is an Android system or an IOS system.
提示模块56,设置为生成用于提示终端用户当前所连网络为终端热点的提示信息,并将提示信息显示给终端用户。The prompting module 56 is configured to generate prompt information for prompting the terminal user to connect the network to the terminal hotspot, and display the prompt information to the terminal user.
遍历模块57,设置为遍历所述终端所在的当前环境中的所有WIFI热点,依次检测所述WIFI热点的WIFI类型,获取检测结果。The traversing module 57 is configured to traverse all the WIFI hotspots in the current environment where the terminal is located, and sequentially detect the WIFI type of the WIFI hotspot, and obtain the detection result.
接入模块58,设置为在所述检测结果中包含所述网络类型为固定网络的WIFI热点时,接入所述网络类型为固定网络的WIFI热点。The access module 58 is configured to access the WIFI hotspot of the fixed network when the WIFI hotspot of the fixed network is included in the detection result.
需要说明的是,前述对识别WIFI类型的方法实施例的解释说明也适用于该实施例的识别WIFI类型的装置50,其实现原理类似,此处不再赘述。It should be noted that the foregoing description of the method for identifying the WIFI type is also applicable to the device 50 for identifying the WIFI type of the embodiment, and the implementation principle is similar, and details are not described herein again.
本实施例中,由于不同的网络运营商的网络类型对应的起始IP和终止IP不同,可以根据数据库中的字段精准定位到网络类型,识别精度高。通过将当前所连网络为终端热点的提示信息显示给终端用户,由用户决定是否保持终端连接该WIFI热点,可以在用户选择保持终端连接该WIFI热点时,保持终端访问网络的连续性,在用户选择断开终端连接该WIFI热点时,有效节约数据流量,实现根据用户的需求选择是否保持连接该 WIFI热点,提升该方法的使用灵活性,以及提升用户的使用体验。通过在终端接入待识别WIFI热点后,获取终端传输请求报文的公网IP,并根据公网IP对待识别WIFI热点的WIFI类型进行识别,能够有效提升WIFI类型识别的精确度,提升用户体验。In this embodiment, since the network IP types of different network operators are different from the initial IP address and the terminating IP address, the network type can be accurately located according to the fields in the database, and the recognition precision is high. By displaying the prompt information of the currently connected network as the terminal hotspot to the terminal user, the user decides whether to keep the terminal connected to the WIFI hotspot, and can maintain the continuity of the terminal accessing the network when the user chooses to keep the terminal connected to the WIFI hotspot. When the disconnected terminal is connected to the WIFI hotspot, the data traffic is effectively saved, and whether the connection is maintained according to the user's needs is selected. WIFI hotspots enhance the flexibility of the method and enhance the user experience. After the terminal accesses the WIFI hotspot to be identified, the public network IP address of the terminal transmission request packet is obtained, and the WIFI type of the WIFI hotspot is identified according to the public network IP, which can effectively improve the accuracy of the WIFI type identification and improve the user experience. .
需要说明的是,在本发明实施例的描述中,术语“第一”、“第二”等仅用于描述目的,而不能理解为指示或暗示相对重要性。此外,在本发明实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。It should be noted that in the description of the embodiments of the present invention, the terms "first", "second", and the like are used for descriptive purposes only, and are not to be construed as indicating or implying relative importance. Further, in the description of the embodiments of the present invention, the meaning of "a plurality" is two or more unless otherwise stated.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本发明的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本发明的实施例所属技术领域的技术人员所理解。Any process or method description in the flowcharts or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a particular logical function or process. And the scope of the preferred embodiments of the invention includes additional implementations, in which the functions may be performed in a substantially simultaneous manner or in an opposite order depending on the functions involved, in the order shown or discussed. It will be understood by those skilled in the art to which the embodiments of the present invention pertain.
应当理解,本发明实施例的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that portions of the embodiments of the invention may be implemented in hardware, software, firmware or a combination thereof. In the above-described embodiments, multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques well known in the art: having logic gates for implementing logic functions on data signals. Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。One of ordinary skill in the art can understand that all or part of the steps carried by the method of implementing the above embodiments can be completed by a program to instruct related hardware, and the program can be stored in a computer readable storage medium. When executed, one or a combination of the steps of the method embodiments is included.
此外,在本发明各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软 件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above integrated modules can be implemented in the form of hardware or soft. The form of the functional module is implemented. The integrated modules, if implemented in the form of software functional modules and sold or used as stand-alone products, may also be stored in a computer readable storage medium.
上述提到的存储介质可以是只读存储器,磁盘或光盘等。The above mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明实施例的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。In the description of the present specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" and the like means a specific feature described in connection with the embodiment or example. A structure, material or feature is included in at least one embodiment or example of an embodiment of the invention. In the present specification, the schematic representation of the above terms does not necessarily mean the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in a suitable manner in any one or more embodiments or examples.
尽管上面已经示出和描述了本发明的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本发明的限制,本领域的普通技术人员在本发明的范围内可以对上述实施例进行变化、修改、替换和变型。Although the embodiments of the present invention have been shown and described, it is understood that the above-described embodiments are illustrative and are not to be construed as limiting the scope of the invention. The embodiments are subject to variations, modifications, substitutions and variations.
工业实用性Industrial applicability
通过上述实施例及优选实施方式,通过在终端接入待识别WIFI热点后,获取终端传输请求报文的公网IP,并根据公网IP对待识别WIFI热点的WIFI类型进行识别,能够有效提升WIFI类型识别的精确度,提升用户体验。 After the terminal accesses the WIFI hotspot to be identified, the public network IP of the terminal transmission request packet is obtained, and the WIFI type of the WIFI hotspot is identified according to the public network IP, thereby effectively improving the WIFI. The accuracy of type recognition improves the user experience.

Claims (14)

  1. 一种识别WIFI类型的方法,包括以下步骤:A method of identifying a WIFI type includes the following steps:
    在终端接入待识别WIFI热点后,获取所述终端传输请求报文的公网IP,其中,所述请求报文用于获取所述待识别WIFI热点的WIFI类型;After the terminal accesses the WIFI hotspot to be identified, the public network IP address of the terminal transmission request packet is obtained, where the request packet is used to obtain the WIFI type of the WIFI hotspot to be identified;
    在数据库中根据所述公网IP与网络类型的对应关系读取与所述公网IP对应的网络类型;以及Reading, in the database, a network type corresponding to the public network IP according to the correspondence between the public network IP and the network type;
    根据所述网络类型对所述WIFI类型进行识别。The WIFI type is identified according to the network type.
  2. 如权利要求1所述的识别WIFI类型的方法,其中,所述网络类型包括固网宽带和移动网络,所述根据所述网络类型对所述WIFI类型进行识别,包括:The method for identifying a WIFI type according to claim 1, wherein the network type comprises a fixed network broadband and a mobile network, and the identifying the WIFI type according to the network type comprises:
    如果所述网络类型为固网宽带,则判定所述待识别WIFI热点的WIFI类型为路由热点;If the network type is a fixed network broadband, determining that the WIFI type of the to-be-identified WIFI hotspot is a routing hotspot;
    如果所述网络类型为移动网络,则判定所述待识别WIFI热点的WIFI类型为终端热点。If the network type is a mobile network, determine that the WIFI type of the WIFI hotspot to be identified is a terminal hotspot.
  3. 如权利要求2所述的识别WIFI类型的方法,其中,所述如果所述网络类型为移动网络之后,还包括:The method for identifying a WIFI type according to claim 2, wherein if the network type is a mobile network, the method further includes:
    获取所述接入待识别WIFI热点的终端的本机IP,并获取预设终端操作系统的可分配IP范围;Obtaining the local IP address of the terminal that accesses the WIFI hotspot to be identified, and acquiring an assignable IP range of the preset terminal operating system;
    判断所述本机IP是否在所述可分配IP范围内;Determining whether the local IP is within the assignable IP range;
    在所述本机IP在所述可分配IP范围内时,判定所述待识别WIFI热点的WIFI类型为终端热点。When the local IP is in the allocatable IP range, it is determined that the WIFI type of the to-be-identified WIFI hotspot is a terminal hotspot.
  4. 如权利要求1所述的识别WIFI类型的方法,其中,所述数据 库中包括公网IP字段和网络类型字段,所述数据库中所述公网IP与网络类型的对应关系通过以下步骤配置:The method of identifying a WIFI type according to claim 1, wherein said data The library includes a public network IP field and a network type field, and the correspondence between the public network IP and the network type in the database is configured by the following steps:
    从网络侧下载所述网络类型,以及所述网络类型对应的起始IP和终止IP;Downloading the network type from the network side, and starting IP and terminating IP corresponding to the network type;
    根据所述网络类型对所述数据库中的所述网络类型字段进行配置,以及根据所述起始IP、所述终止IP对所述公网IP字段进行配置,以对所述公网IP与网络类型的对应关系进行配置。Configuring the network type field in the database according to the network type, and configuring the public network IP field according to the starting IP and the terminating IP to configure the public network IP and network The correspondence of the types is configured.
  5. 如权利要求3所述的识别WIFI类型的方法,其中,所述预设终端操作系统为Android系统或IOS系统。The method for identifying a WIFI type according to claim 3, wherein the preset terminal operating system is an Android system or an IOS system.
  6. 如权利要求3所述的识别WIFI类型的方法,其中,在所述判定所述待识别WIFI热点的WIFI类型为终端热点后,还包括:The method for identifying a WIFI type according to claim 3, wherein after the determining that the WIFI type of the WIFI hotspot to be identified is a terminal hotspot, the method further includes:
    生成用于提示终端用户当前所连网络为终端热点的提示信息,并将所述提示信息显示给所述终端用户。Generating prompt information for prompting the end user to connect the network to the terminal hotspot, and displaying the prompt information to the end user.
  7. 如权利要求1所述的识别WIFI类型的方法,其中,还包括:The method for identifying a WIFI type according to claim 1, further comprising:
    遍历所述终端所在的当前环境中的所有WIFI热点,依次检测所述WIFI热点的WIFI类型,获取检测结果;Traversing all the WIFI hotspots in the current environment in which the terminal is located, detecting the WIFI type of the WIFI hotspot in turn, and obtaining the detection result;
    在所述检测结果中包含所述网络类型为固定网络的WIFI热点时,接入所述网络类型为固定网络的WIFI热点。When the WIFI hotspot of the fixed network is included in the detection result, the WIFI hotspot of the fixed network is accessed.
  8. 一种识别WIFI类型的装置,包括:A device for identifying a WIFI type, including:
    获取模块,设置为在终端接入待识别WIFI热点后,获取所述终端传输请求报文的公网IP,其中,所述请求报文用于获取所述待识别WIFI热点的WIFI类型; Obtaining a module, configured to obtain a public network IP address of the terminal transmission request message after the terminal accesses the WIFI hotspot to be identified, where the request message is used to obtain the WIFI type of the WIFI hotspot to be identified;
    读取模块,设置为在数据库中根据所述公网IP与网络类型的对应关系读取与所述公网IP对应的网络类型;以及The reading module is configured to read, according to the correspondence between the public network IP and the network type, a network type corresponding to the public network IP in the database;
    识别模块,设置为根据所述网络类型对所述WIFI类型进行识别。The identification module is configured to identify the WIFI type according to the network type.
  9. 如权利要求8所述的识别WIFI类型的装置,其中,所述网络类型包括固网宽带和移动网络,所述识别模块还设置为:The device for identifying a WIFI type according to claim 8, wherein the network type comprises a fixed network broadband and a mobile network, and the identification module is further configured to:
    如果所述网络类型为固网宽带,则判定所述待识别WIFI热点的WIFI类型为路由热点;If the network type is a fixed network broadband, determining that the WIFI type of the to-be-identified WIFI hotspot is a routing hotspot;
    如果所述网络类型为移动网络,则判定所述待识别WIFI热点的WIFI类型为终端热点。If the network type is a mobile network, determine that the WIFI type of the WIFI hotspot to be identified is a terminal hotspot.
  10. 如权利要求9所述的识别WIFI类型的装置,其中,所述识别模块还设置为:The device for identifying a WIFI type according to claim 9, wherein the identification module is further configured to:
    获取所述接入待识别WIFI热点的终端的本机IP,并获取预设终端操作系统的可分配IP范围;Obtaining the local IP address of the terminal that accesses the WIFI hotspot to be identified, and acquiring an assignable IP range of the preset terminal operating system;
    判断所述本机IP是否在所述可分配IP范围内;Determining whether the local IP is within the assignable IP range;
    在所述本机IP在所述可分配IP范围内时,判定所述待识别WIFI热点的WIFI类型为终端热点。When the local IP is in the allocatable IP range, it is determined that the WIFI type of the to-be-identified WIFI hotspot is a terminal hotspot.
  11. 如权利要求8所述的识别WIFI类型的装置,其中,所述数据库中包括公网IP字段和网络类型字段,还包括:The device for identifying a WIFI type according to claim 8, wherein the database includes a public network IP field and a network type field, and further includes:
    下载模块,设置为从网络侧下载所述网络类型,以及所述网络类型对应的起始IP和终止IP;a downloading module, configured to download the network type from a network side, and a starting IP and a terminating IP corresponding to the network type;
    配置模块,设置为根据所述网络类型对所述数据库中的所述网络类型字段进行配置,以及根据所述起始IP、所述终止IP对所述公网 IP字段进行配置,以对所述公网IP与网络类型的对应关系进行配置。a configuration module, configured to configure the network type field in the database according to the network type, and configure the public network according to the starting IP and the termination IP The IP field is configured to configure the correspondence between the public network IP and the network type.
  12. 如权利要求10所述的识别WIFI类型的装置,其中,所述预设终端操作系统为Android系统或IOS系统。The device for identifying a WIFI type according to claim 10, wherein the preset terminal operating system is an Android system or an IOS system.
  13. 如权利要求10所述的识别WIFI类型的装置,其中,还包括:The device for identifying a WIFI type according to claim 10, further comprising:
    提示模块,设置为生成用于提示终端用户当前所连网络为终端热点的提示信息,并将所述提示信息显示给所述终端用户。The prompting module is configured to generate prompt information for prompting the end user to connect the network to the terminal hotspot, and display the prompt information to the terminal user.
  14. 如权利要求8所述的识别WIFI类型的装置,其中,还包括:The device for identifying a WIFI type according to claim 8, further comprising:
    遍历模块,设置为遍历所述终端所在的当前环境中的所有WIFI热点,依次检测所述WIFI热点的WIFI类型,获取检测结果;The traversing module is configured to traverse all WIFI hotspots in the current environment where the terminal is located, and sequentially detect the WIFI type of the WIFI hotspot to obtain a detection result;
    接入模块,设置为在所述检测结果中包含所述网络类型为固定网络的WIFI热点时,接入所述网络类型为固定网络的WIFI热点。 The access module is configured to access the WIFI hotspot of the fixed network when the WIFI hotspot of the fixed network is included in the detection result.
PCT/CN2016/103281 2016-05-24 2016-10-25 Method and device for identifying wi-fi type WO2017201961A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610351414.8A CN107426746A (en) 2016-05-24 2016-05-24 The method and apparatus for identifying WIFI types
CN201610351414.8 2016-05-24

Publications (1)

Publication Number Publication Date
WO2017201961A1 true WO2017201961A1 (en) 2017-11-30

Family

ID=60410937

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/103281 WO2017201961A1 (en) 2016-05-24 2016-10-25 Method and device for identifying wi-fi type

Country Status (2)

Country Link
CN (1) CN107426746A (en)
WO (1) WO2017201961A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111314489A (en) * 2020-03-19 2020-06-19 腾讯科技(深圳)有限公司 Method, server and device for identifying type of access network

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109451518B (en) * 2018-12-27 2022-07-15 青岛海信移动通信技术股份有限公司 Method and equipment for distinguishing WLAN access mode of terminal
CN109982413B (en) * 2019-02-19 2023-04-07 北京三快在线科技有限公司 Mobile hotspot identification method and device, electronic equipment and storage medium
CN109743745B (en) * 2019-02-19 2021-01-22 北京三快在线科技有限公司 Mobile network access type identification method and device, electronic equipment and storage medium
CN111866854B (en) * 2019-04-28 2023-04-18 北京数安鑫云信息技术有限公司 Automatic application updating method, device and system and computer equipment
CN112235849A (en) * 2020-10-19 2021-01-15 展讯半导体(成都)有限公司 Method, system, electronic device, and medium for identifying Wi-Fi hotspot type

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007113429A1 (en) * 2006-03-31 2007-10-11 France Telecom Method and device for managing information for a multinetwork terminal
CN101094239A (en) * 2007-08-09 2007-12-26 中兴通讯股份有限公司 Method for registering and processing communication in multiple networks
CN104185294A (en) * 2014-08-04 2014-12-03 广东欧珀移动通信有限公司 Identification method and identification apparatus of mobile phone hot spots
CN104349401A (en) * 2013-09-03 2015-02-11 广州三星通信技术研究有限公司 Equipment and method for regulating data strategy in terminal
CN104640114A (en) * 2015-01-04 2015-05-20 中国联合网络通信集团有限公司 Verification method and device of access request
CN104639672A (en) * 2015-02-12 2015-05-20 广州华多网络科技有限公司 Method and device for domain name resolution (DNS)
CN105430713A (en) * 2015-11-30 2016-03-23 东莞酷派软件技术有限公司 Identification method of wireless fidelity WiFi hotspot and terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008132414A1 (en) * 2007-03-30 2008-11-06 France Telecom Method for managing a plurality of audiovisual sessions in an ip network and related control system
CN103281799B (en) * 2013-05-31 2017-03-22 Tcl通讯(宁波)有限公司 Network connection switching method based on mobile phone hot spots and mobile phone
CN104837179B (en) * 2015-04-02 2019-02-01 Oppo广东移动通信有限公司 A kind of method and device showing hotspot equipment manufacturer information
CN105337804A (en) * 2015-11-20 2016-02-17 南京中科创达软件科技有限公司 Hot spot sharing method based on mobile terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007113429A1 (en) * 2006-03-31 2007-10-11 France Telecom Method and device for managing information for a multinetwork terminal
CN101094239A (en) * 2007-08-09 2007-12-26 中兴通讯股份有限公司 Method for registering and processing communication in multiple networks
CN104349401A (en) * 2013-09-03 2015-02-11 广州三星通信技术研究有限公司 Equipment and method for regulating data strategy in terminal
CN104185294A (en) * 2014-08-04 2014-12-03 广东欧珀移动通信有限公司 Identification method and identification apparatus of mobile phone hot spots
CN104640114A (en) * 2015-01-04 2015-05-20 中国联合网络通信集团有限公司 Verification method and device of access request
CN104639672A (en) * 2015-02-12 2015-05-20 广州华多网络科技有限公司 Method and device for domain name resolution (DNS)
CN105430713A (en) * 2015-11-30 2016-03-23 东莞酷派软件技术有限公司 Identification method of wireless fidelity WiFi hotspot and terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111314489A (en) * 2020-03-19 2020-06-19 腾讯科技(深圳)有限公司 Method, server and device for identifying type of access network
CN111314489B (en) * 2020-03-19 2022-04-01 腾讯科技(深圳)有限公司 Method, server and device for identifying type of access network

Also Published As

Publication number Publication date
CN107426746A (en) 2017-12-01

Similar Documents

Publication Publication Date Title
WO2017201961A1 (en) Method and device for identifying wi-fi type
US11039298B2 (en) Method and apparatus for remotely providing profile in communication system
WO2017173858A1 (en) Method and device for establishing wireless connection
US10045238B2 (en) Providing easy access to radio networks
WO2017020654A1 (en) Wireless network access method and device
JP5718522B2 (en) Over the air equipment configuration
US20180317065A1 (en) Calibration of wireless network's signal strength map database for indoor locating techniques
CN108566656B (en) Method and equipment for detecting security of wireless network
US9648577B1 (en) ADSS enabled global roaming system
US20190159000A1 (en) Proximity platform
EP3163946B1 (en) Transmission list in wi-fi acces point
EP3177041B1 (en) Method for transmitting content between terminals through service control device link
WO2018103405A1 (en) Method for identifying access point and hotspot, and related product
JP6534684B2 (en) Data transmission
WO2016004198A1 (en) Network access method, apparatus, server and terminal
US20190150206A1 (en) Method and Device for Establishing Wireless Connection through First Application on User Equipment
EP2174523A1 (en) System and method for mapping wireless access points
US20180309864A1 (en) Method for Device-to-Device Communication Between a Local Device and a Remote Device
WO2018103400A1 (en) Wireless fidelity wifi connection method and related product
US20170118581A1 (en) Switching to advertising locator after connection establishment
KR102310027B1 (en) Determination method and corresponding terminal, computer program product and storage medium
US10505890B2 (en) Network access method, system and terminal device, and computer storage medium
US20140136597A1 (en) Relay enabled dynamic virtual private network
KR20200007634A (en) Electronic device for performing data transmission and method thereof
CN107852598B (en) Circumventing wireless device spatial tracking based on wireless device identifiers

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

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

Ref document number: 16902945

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16902945

Country of ref document: EP

Kind code of ref document: A1