[go: up one dir, main page]

WO2016074398A1 - Ip conflict detection and processing method, wireless hotspot device and computer storage medium - Google Patents

Ip conflict detection and processing method, wireless hotspot device and computer storage medium Download PDF

Info

Publication number
WO2016074398A1
WO2016074398A1 PCT/CN2015/074327 CN2015074327W WO2016074398A1 WO 2016074398 A1 WO2016074398 A1 WO 2016074398A1 CN 2015074327 W CN2015074327 W CN 2015074327W WO 2016074398 A1 WO2016074398 A1 WO 2016074398A1
Authority
WO
WIPO (PCT)
Prior art keywords
hotspot device
setting information
wireless hotspot
address
conflict
Prior art date
Application number
PCT/CN2015/074327
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 WO2016074398A1 publication Critical patent/WO2016074398A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming

Definitions

  • the present invention relates to the field of communications, and in particular, to an IP collision detection and processing method, a wireless hotspot device, and a computer storage medium.
  • WIFI hotspots More and more external wireless fidelity (WIFI) hotspots (APs) are used, and users are using more and more. Being able to provide users with seamless WIFI access is bound to be a battleground for operators to consider for their future resources. Of course, the operator's hotspot is not a free lunch. Access to its hotspot needs to be authenticated. Wireless Internet Service Provider roaming (WISPr) certification is only one of its authentication methods, using wireless hotspots. The Internet (WIFI) feature accesses its external hotspots. Need hotspot to support WISPr and other authentication protocols, built-in operator preset username and password. After passing the certification, you can use its WIFI network.
  • WISPr Wireless Internet Service Provider roaming
  • the user modifies the hotspot settings it may cause the operator's WIFI network to be used even after the WISPr authentication is passed; for example, when the user modifies the hotspot's local Internet Protocol (IP) settings, the local IP and its access are caused.
  • IP Internet Protocol
  • the embodiment of the present invention is to provide an IP collision detection and processing method, a wireless hotspot device, and a computer storage medium, which can solve the problem of how to quickly detect an IP conflict.
  • An embodiment of the present invention provides an IP conflict detection method, where the method includes:
  • the wireless hotspot device accesses the external WIFI hotspot, the first IP setting information of the wireless hotspot device and the second IP setting information set by the external WIFI hotspot are obtained;
  • the wireless hotspot device determines, according to the first IP setting information and the second IP setting information, whether the IP set by the own IP and the external WIFI hotspot conflicts.
  • the first IP setting information includes a first IP address and a first subnet mask
  • the second IP setting information includes a second IP address and a second subnet mask
  • Determining, by the wireless hotspot device, whether the IP set by the IP address and the external WIFI hotspot is set according to the first IP setting information and the second IP setting information includes:
  • the wireless hotspot device processes the first IP address and the first subnet mask by using a preset algorithm to obtain a first result, and masks the second IP address and the second subnet by using the preset algorithm. Processing the code to obtain a second result;
  • the wireless hotspot device determines an IP conflict between the self IP and the external WIFI hotspot.
  • the preset algorithm is an AND operation;
  • the wireless hotspot device processes the first IP address and the first subnet mask to obtain a first result, where the wireless hotspot comprises: the wireless hotspot The device separately performs binary processing on the first IP address and the first subnet mask, and performs an AND operation to obtain a first result;
  • the wireless hotspot device Processing, by the wireless hotspot device, the second IP address and the second subnet mask to obtain a second result, the wireless hotspot device separately encoding the second IP address and the second subnet mask separately After the rotation, the AND operation process is performed to obtain the second result.
  • the IP setting information of the wireless hotspot device itself is IP setting information of a dynamic host configuration protocol server of the wireless hotspot device; and the external WIFI hotspot is set by the wireless hotspot device.
  • the IP setting information is IP setting information set by the dynamic host configuration protocol server of the external WIFI hotspot for the fixed network card of the wireless hotspot device.
  • the embodiment of the present invention further provides an IP conflict processing method, where the method includes:
  • the IP hotspot device After detecting the IP conflict between the IP address and the external WIFI hotspot, the IP hotspot device modifies its own IP setting information by using the IP conflict detection method as described above.
  • the embodiment of the present invention further provides a wireless hotspot device, where the wireless hotspot device includes an access module, an IP information acquiring module, and an IP conflict judging module;
  • the access module is configured to access an external WIFI hotspot
  • the IP information acquiring module is configured to acquire, after the access module accesses the external WIFI hotspot, the first IP setting information of the wireless hotspot device and the external WIFI hotspot to set the wireless hotspot device Second IP setting information;
  • the IP conflict judging module is configured to determine, according to the first IP setting information and the second IP setting information, whether the IP address set by the wireless hotspot device itself and the external WIFI hotspot conflict with each other.
  • the IP information acquisition module includes an IP address acquisition submodule and a subnet mask acquisition submodule, and the IP address acquisition submodule is configured to acquire the first IP address and the a second subnet mask, configured to acquire the second subnet mask and the second subnet mask;
  • the IP conflict judging module includes an operation sub-module and a judging sub-module, and the operation sub-module is configured to process the first IP address and the first sub-net mask by using a preset algorithm to obtain a first result, and adopt the first result.
  • the preset algorithm processes the second IP address and the second subnet mask to obtain a second result;
  • the determining sub-module is configured to determine whether the first result and the second result are equal, and if yes, determining that the IP address of the wireless hotspot device itself and the external WIFI hotspot are IP conflicts set by the wireless hotspot device .
  • the operation submodule includes a conversion submodule and an AND operation a submodule, configured to perform binary code conversion on the first IP address and the first subnet mask, and configured to respectively perform the second IP address and the second subnet mask respectively Binary code conversion
  • the AND operation submodule is configured to perform an AND operation on the converted first IP address and the first subnet mask to obtain a first result, and configured to pair the converted second IP address and the second The subnet mask performs the AND operation to obtain the second result.
  • the IP setting information of the wireless hotspot device itself is IP setting information of a dynamic host configuration protocol server of the wireless hotspot device; and the external WIFI hotspot is set by the wireless hotspot device.
  • the IP setting information is IP setting information set by the dynamic host configuration protocol server of the external WIFI hotspot for the fixed network card of the wireless hotspot device.
  • the method further includes an IP setting update module, configured to: after the IP conflict determination module determines that the wireless hotspot device itself IP conflicts with the external WIFI hotspot, The IP hotkey device's own IP setting information is modified.
  • the IP conflict detection and processing method, the wireless hotspot device, and the computer storage medium provided by the present invention acquire the first IP setting information of the wireless hotspot device and the external WIFI hotspot of the access after the wireless hotspot device accesses the external WIFI hotspot.
  • the IP setting information is determined by the wireless hotspot device according to its first IP setting information and the second IP setting information set by the external WIFI hotspot for determining whether the IP set by the IP and the external WIFI hotspot conflicts. That is, the wireless hotspot device in the present invention can determine whether the IP conflicts are resolved after accessing the external WIFI hotspot, so that the user can accurately and quickly locate the reason that the external WIFI cannot be connected, and the user experience satisfaction can be improved.
  • the wireless hotspot device in the present invention may also modify its own IP setting to prevent the conflict from happening again, and provide intelligent processing for the user. Respond to further increase the satisfaction of the user experience.
  • FIG. 1 is a schematic flowchart of an IP conflict detection method according to Embodiment 1 of the present invention.
  • FIG. 2 is a schematic flowchart of an IP conflict judging process according to Embodiment 1 of the present invention.
  • FIG. 3 is a schematic flowchart of an IP conflict processing method according to Embodiment 1 of the present invention.
  • FIG. 4 is a schematic structural diagram 1 of a wireless hotspot device according to Embodiment 2 of the present invention.
  • FIG. 5 is a schematic structural diagram 2 of a wireless hotspot device according to Embodiment 2 of the present invention.
  • FIG. 6 is a schematic structural diagram 3 of a wireless hotspot device according to Embodiment 2 of the present invention.
  • FIG. 7 is a schematic structural diagram 4 of a wireless hotspot device according to Embodiment 2 of the present invention.
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • the IP conflict detection method mainly includes:
  • Step S101 The wireless hotspot device accesses an external WIFI hotspot
  • Step S102 The wireless hotspot device acquires its own first IP setting information and second IP setting information set by the external WIFI hotspot to which it is connected;
  • Step S103 The wireless hotspot device determines, according to its first IP setting information and the second IP setting information set by the external WIFI hotspot, whether the IP set by the IP hotspot and the external WIFI hotspot conflicts.
  • the wireless hotspot device in this embodiment may be a wireless or wired routing product such as a portable WIFI.
  • the first IP setting information of the wireless hotspot device itself in this embodiment is the IP setting information of a dynamic host configuration protocol (DHCP) server (Server) that is provided by the wireless hotspot device, and the DHCP server is configured to access the IP address.
  • the PC of the wireless hotspot device assigns an IP address.
  • the external WIFI hotspot is the second set by the wireless hotspot device.
  • the IP setting information is the IP setting information set by the DHCP server (Server) of the external WIFI hotspot for the fixed (Station) network card of the wireless hotspot device.
  • the first IP setting information acquired in the foregoing step S102 includes a first IP address and a first subnet mask; the second IP setting information includes a second IP address and a second subnet mask; preferably, in this embodiment
  • the IP address is the IPV4 address.
  • the wireless hotspot device in this embodiment can read its first IP address and the first subnet mask through its data query interface, and the second IP address and the second subnet set by the external WIFI hotspot. code.
  • the wireless hotspot device determines whether the IP of the IP address of the external WIFI hotspot conflicts with the IP address of the external WIFI hotspot according to the first IP setting information of the external WIFI hotspot and the second IP setting information of the external WIFI hotspot.
  • Step S201 The wireless hotspot device processes the first IP address and the first subnet mask by using a preset algorithm to obtain a first result.
  • Step S202 The wireless hotspot device processes the second IP address and the second subnet mask set by the external WIFI hotspot by using a preset algorithm to obtain a second result; there is no strict timing restriction between the step and the foregoing step S201.
  • the two can be performed simultaneously, or can be performed step by step, for example, step S202 can also be performed before step S201.
  • Step S203 The wireless hotspot device determines whether the obtained first result and the second result are equal. If yes, go to step S204; otherwise, go to step S205.
  • Step S204 Determine the IP conflict set by the own IP and the external WIFI hotspot.
  • Step S205 It is determined that the IP set by the own IP and the external WIFI hotspot does not conflict.
  • the preset algorithm in the foregoing step S102 and the step S103 may specifically be an AND operation; the wireless hotspot device processes the first IP address and the first subnet mask of the wireless hotspot device to obtain the first result: the wireless hotspot device respectively has its own An IP address and a first subnet mask are binary coded and then subjected to an AND operation to obtain a first result; the wireless hotspot device processes the second IP address and the second subnet mask set by the external WIFI hotspot to obtain the first
  • the second result includes: wireless hotspot device The second IP address and the second subnet mask set by the external WIFI hotspot are separately coded and then subjected to an AND operation to obtain a second result.
  • the IP conflict handling method mainly includes:
  • Step S301 The wireless hotspot device accesses an external WIFI hotspot.
  • Step S302 The wireless hotspot device acquires its own first IP setting information and second IP setting information set by the external WIFI hotspot to which it is connected.
  • Step S303 The wireless hotspot device determines, according to the first IP setting information of the first IP setting information and the second IP setting information set by the external WIFI hotspot, whether the IP set by the external WIFI hotspot conflicts with the IP address set by the external WIFI hotspot, and if yes, go to step S304; Otherwise, go to step S305.
  • Step S304 Modifying the IP setting information of the wireless hotspot device itself, the modification is mainly to switch the corresponding gateway; after the modification is completed, the wireless hotspot device can be restarted, and the restarted wireless hotspot device can reacquire the new address; after the modification is completed, It is possible to proceed to step S302 to perform collision detection.
  • Step S305 End.
  • the embodiment of the invention further describes a computer storage medium, wherein the computer storage medium stores a computer program for performing the IP conflict detection method shown in FIG. 1 in the embodiment of the present invention, and/or FIG. 2
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • the present embodiment provides a wireless hotspot device, which may be a wireless or wired routing product such as a portable WIFI.
  • the wireless hotspot device includes an access module 1, an IP information acquiring module 2, and an IP conflict determination. Module 3; among them,
  • the access module 1 is configured to access an external WIFI hotspot
  • the IP information obtaining module 2 is configured to acquire, after the access module 1 accesses the external WIFI hotspot, the first IP setting information of the wireless hotspot device itself and the second IP setting information set by the external WIFI hotspot as the wireless hotspot device;
  • the IP conflict judging module 3 is configured to determine, according to the first IP setting information of the wireless hotspot device itself and the second IP setting information set by the external WIFI hotspot for the wireless hotspot device, whether the IP address set by the wireless hotspot device itself and the external WIFI hotspot is conflict.
  • the first IP setting information of the wireless hotspot device itself is the IP setting information of the DHCP server (Server) provided by the wireless hotspot device, and the DHCP server is configured to allocate an IP address to the PC that accesses the wireless hotspot device.
  • the second IP setting information set by the external WIFI hotspot for the wireless hotspot device is the IP setting information set by the DHCP server (Server) of the external WIFI hotspot for the fixed (Station) network card of the wireless hotspot device.
  • the IP information obtaining module 2 in this embodiment specifically includes an IP address obtaining sub-module 21 and a subnet mask obtaining sub-module 22;
  • the IP conflict judging module 3 includes an operation sub-module 31 and a judging sub-module 32.
  • the IP address obtaining sub-module 21 is configured to acquire the first IP address of the wireless hotspot device itself and the second IP address set by the external WIFI hotspot as the wireless hotspot device;
  • the subnet mask obtaining sub-module 22 is configured to obtain the wireless hotspot device itself.
  • the first subnet mask and the second subnet mask set by the external WIFI hotspot for the wireless hotspot device; the operation submodule 31 is configured to mask the first IP address and the first subnet of the wireless hotspot device by using a preset algorithm.
  • the code is processed to obtain the first result, and the second algorithm is used to process the second IP address and the second subnet mask set by the external WIFI hotspot for the wireless hotspot device to obtain a second result;
  • the determining submodule 32 is configured to determine the first Whether the result and the second result are equal, if yes, determining that the IP address of the wireless hotspot device itself and the external WIFI hotspot are IP conflicts set by the wireless hotspot device; otherwise, determining that there is no conflict.
  • the operation sub-module 31 in this embodiment includes a conversion sub-module 311 and an operation sub-module 312; the conversion sub-module 311 is configured to respectively respectively address the first IP address of the wireless hotspot device itself.
  • Binary code conversion with the first subnet mask and configured to divide Do not perform binary code conversion on the second IP address and the second subnet mask set by the external WIFI hotspot for the wireless hotspot device;
  • the AND operation submodule 312 is configured to be the first IP address of the converted wireless hotspot device itself and The first subnet mask performs the AND operation to obtain the first result, and is configured to perform an AND operation on the converted external WIFI hotspot for the second IP address and the second subnet mask set by the wireless hotspot device to obtain a second result.
  • the wireless hotspot device further includes an IP setting update module 4 configured to determine, after the IP conflict determination module 3 determines the IP conflict between the wireless hotspot device itself and the external WIFI hotspot, the wireless hotspot device itself The IP setting information is modified. After the modification is complete, the wireless hotspot device can be restarted, and the restarted wireless hotspot device can re-acquire the new address; after the modification is completed, the conflict detection can be performed until the detection result is not conflict.
  • the access module 1, the IP information acquisition module 2, the IP conflict determination module 3, the IP setting update module 4, and the submodules of each module may be used by a central processing unit of the wireless hotspot device (CPU, Central Processing) Unit), Digital Signal Processor (DSP) or Field Programmable Gate Array (FPGA).
  • CPU Central Processing
  • DSP Digital Signal Processor
  • FPGA Field Programmable Gate Array
  • the invention can intelligently determine whether the local IP setting conflicts with the external AP setting when the internet WIFI is connected to the external AP, and automatically modify the local IP setting in case of conflict, so as to prevent the user from being able to access the Internet, so Improve user satisfaction.
  • the wireless hotspot device accesses the external WIFI hotspot
  • the first IP setting information of the wireless hotspot device and the second IP setting information set by the external WIFI hotspot are obtained; the wireless hotspot device is configured according to the first IP address.
  • the information and the second IP setting information determine whether the IP of the IP address and the external WIFI hotspot conflicts with the IP hotspot device; thus, the wireless hotspot device can complete the judgment of whether the IP conflicts after accessing the external WIFI hotspot, so Help users accurately and quickly locate the reasons why they cannot connect to external WIFI, which can improve the satisfaction of user experience.

Landscapes

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

Abstract

Disclosed are an IP conflict detection and processing method, a wireless hotspot device and a computer storage medium. The IP conflict detection method comprises: after a wireless hotspot device accesses an external WIFI hotspot, acquiring respective first IP setting information and second IP setting information set by the accessed external WIFI hotspot; and judging, by the wireless hotspot device, whether or not an IP of the wireless hotspot device conflicts with an IP set by the external WIFI hotspot according to the respective first IP setting information thereof and the second IP setting information set by the external WIFI hotspot.

Description

IP冲突检测及处理方法、无线热点设备、计算机存储介质IP conflict detection and processing method, wireless hotspot device, computer storage medium 技术领域Technical field
本发明涉及通信领域,具体涉及一种IP冲突检测及处理方法、无线热点设备、计算机存储介质。The present invention relates to the field of communications, and in particular, to an IP collision detection and processing method, a wireless hotspot device, and a computer storage medium.
背景技术Background technique
外部铺设的无线保真(WIFI,Wireless Fidelity)热点(AP,Access Point)的越来越多,用户使用程度越来越多。能够给用户提供无缝的WIFI接入势必是运营商未来考虑的一个争抢客户资源的必争之地。当然,运营商的热点不是免费的午餐,接入其热点是需要进行认证的,无线互联网服务提供商漫游(WISPr,Wireless Internet Service Provider roaming)认证只是其认证方法之一,利用无线热点(hotspot)的互联网(internet)WIFI功能,接入其外部热点。需要hotspot支持WISPr等认证协议,内置运营商预设的用户名密码。认证通过后才能使用其WIFI网络。如果用户自己修改了hotspot的设置,有可能导致即使WISPr认证通过后也无法使用运营商的WIFI网络;例如,当用户自己修改hotspot的本地互联网协议(IP,Internet Protocol)设置导致本地IP与其接入的外部热点为其分配的IP冲突时,就会导致该情况的发生。因此如何快速准确的确定是否是因为IP冲突导致不能接入外部WIFI网络是目前亟需解决的一个问题。More and more external wireless fidelity (WIFI) hotspots (APs) are used, and users are using more and more. Being able to provide users with seamless WIFI access is bound to be a battleground for operators to consider for their future resources. Of course, the operator's hotspot is not a free lunch. Access to its hotspot needs to be authenticated. Wireless Internet Service Provider roaming (WISPr) certification is only one of its authentication methods, using wireless hotspots. The Internet (WIFI) feature accesses its external hotspots. Need hotspot to support WISPr and other authentication protocols, built-in operator preset username and password. After passing the certification, you can use its WIFI network. If the user modifies the hotspot settings, it may cause the operator's WIFI network to be used even after the WISPr authentication is passed; for example, when the user modifies the hotspot's local Internet Protocol (IP) settings, the local IP and its access are caused. When an external hotspot is assigned an IP conflict, it will cause the situation to occur. Therefore, how to quickly and accurately determine whether it is because of IP conflicts that it is impossible to access an external WIFI network is an urgent problem to be solved.
发明内容Summary of the invention
有鉴于此,本发明实施例期望提供一种IP冲突检测及处理方法、无线热点设备、计算机存储介质,能够解决如何快速检测出IP冲突的问题。In view of this, the embodiment of the present invention is to provide an IP collision detection and processing method, a wireless hotspot device, and a computer storage medium, which can solve the problem of how to quickly detect an IP conflict.
为解决上述技术问题,本发明实施例的技术方案是这样实现的: To solve the above technical problem, the technical solution of the embodiment of the present invention is implemented as follows:
本发明实施例提供了一种IP冲突检测方法,所述方法包括:An embodiment of the present invention provides an IP conflict detection method, where the method includes:
无线热点设备接入外部WIFI热点后,获取自身的第一IP设置信息以及所述外部WIFI热点为其设置的第二IP设置信息;After the wireless hotspot device accesses the external WIFI hotspot, the first IP setting information of the wireless hotspot device and the second IP setting information set by the external WIFI hotspot are obtained;
无线热点设备根据所述第一IP设置信息和所述第二IP设置信息判断自身IP与所述外部WIFI热点为其设置的IP是否冲突。The wireless hotspot device determines, according to the first IP setting information and the second IP setting information, whether the IP set by the own IP and the external WIFI hotspot conflicts.
在本发明的一种实施例中,所述第一IP设置信息包括第一IP地址和第一子网掩码;所述第二IP设置信息包括第二IP地址和第二子网掩码;In an embodiment of the present invention, the first IP setting information includes a first IP address and a first subnet mask; the second IP setting information includes a second IP address and a second subnet mask;
所述无线热点设备根据所述第一IP设置信息和所述第二IP设置信息判断自身IP与所述外部WIFI热点为其设置的IP是否冲突包括:Determining, by the wireless hotspot device, whether the IP set by the IP address and the external WIFI hotspot is set according to the first IP setting information and the second IP setting information includes:
所述无线热点设备采用预设算法对所述第一IP地址和第一子网掩码进行处理得到第一结果,并采用所述预设算法对所述第二IP地址和第二子网掩码进行处理得到第二结果;The wireless hotspot device processes the first IP address and the first subnet mask by using a preset algorithm to obtain a first result, and masks the second IP address and the second subnet by using the preset algorithm. Processing the code to obtain a second result;
所述无线热点设备在确定所述第一结果和所述第二结果相等时,判定自身IP与所述外部WIFI热点为其设置的IP冲突。When determining that the first result and the second result are equal, the wireless hotspot device determines an IP conflict between the self IP and the external WIFI hotspot.
在本发明的一种实施例中,所述预设算法为与运算;所述无线热点设备对所述第一IP地址和第一子网掩码进行处理得到第一结果包括:所述无线热点设备分别对所述第一IP地址和第一子网掩码进行二进制编码转后进行与运算处理得到第一结果;In an embodiment of the present invention, the preset algorithm is an AND operation; the wireless hotspot device processes the first IP address and the first subnet mask to obtain a first result, where the wireless hotspot comprises: the wireless hotspot The device separately performs binary processing on the first IP address and the first subnet mask, and performs an AND operation to obtain a first result;
所述无线热点设备对所述第二IP地址和第二子网掩码进行处理得到第二结果包括:所述无线热点设备分别对所述第二IP地址和第二子网掩码进行二进制编码转后进行与运算处理得到第二结果。Processing, by the wireless hotspot device, the second IP address and the second subnet mask to obtain a second result, the wireless hotspot device separately encoding the second IP address and the second subnet mask separately After the rotation, the AND operation process is performed to obtain the second result.
在本发明的一种实施例中,所述无线热点设备自身的IP设置信息为所述无线热点设备的动态主机配置协议服务器的IP设置信息;所述外部WIFI热点为所述无线热点设备设置的IP设置信息为所述外部WIFI热点的动态主机配置协议服务器为所述无线热点设备的固定网卡设置的IP设置信息。 In an embodiment of the present invention, the IP setting information of the wireless hotspot device itself is IP setting information of a dynamic host configuration protocol server of the wireless hotspot device; and the external WIFI hotspot is set by the wireless hotspot device. The IP setting information is IP setting information set by the dynamic host configuration protocol server of the external WIFI hotspot for the fixed network card of the wireless hotspot device.
为了解决上述问题,本发明实施例还提供了一种IP冲突处理方法,所述方法包括:In order to solve the above problem, the embodiment of the present invention further provides an IP conflict processing method, where the method includes:
无线热点设备经如上所述的IP冲突检测方法检测到自身IP与所述外部WIFI热点为其设置的IP冲突后,对自身的IP设置信息进行修改。After detecting the IP conflict between the IP address and the external WIFI hotspot, the IP hotspot device modifies its own IP setting information by using the IP conflict detection method as described above.
为了解决上述问题,本发明实施例还提供了一种无线热点设备,所述无线热点设备包括接入模块、IP信息获取模块和IP冲突判断模块;其中,In order to solve the above problem, the embodiment of the present invention further provides a wireless hotspot device, where the wireless hotspot device includes an access module, an IP information acquiring module, and an IP conflict judging module;
所述接入模块,配置为接入外部WIFI热点;The access module is configured to access an external WIFI hotspot;
所述IP信息获取模块,配置为在所述接入模块接入所述外部WIFI热点后,获取所述无线热点设备自身的第一IP设置信息以及所述外部WIFI热点为所述无线热点设备设置的第二IP设置信息;The IP information acquiring module is configured to acquire, after the access module accesses the external WIFI hotspot, the first IP setting information of the wireless hotspot device and the external WIFI hotspot to set the wireless hotspot device Second IP setting information;
所述IP冲突判断模块,配置为根据所述第一IP设置信息和所述第二IP设置信息判断所述无线热点设备自身IP与所述外部WIFI热点为其设置的IP是否冲突。The IP conflict judging module is configured to determine, according to the first IP setting information and the second IP setting information, whether the IP address set by the wireless hotspot device itself and the external WIFI hotspot conflict with each other.
在本发明的一种实施例中,所述IP信息获取模块包括IP地址获取子模块和子网掩码获取子模块;所述IP地址获取子模块,配置为获取所述第一IP地址以及所述第二IP地址;所述子网掩码获取子模块,配置为获取所述第二子网掩码以及所述第二子网掩码;In an embodiment of the present invention, the IP information acquisition module includes an IP address acquisition submodule and a subnet mask acquisition submodule, and the IP address acquisition submodule is configured to acquire the first IP address and the a second subnet mask, configured to acquire the second subnet mask and the second subnet mask;
所述IP冲突判断模块包括运算子模块和判断子模块,所述运算子模块,配置为采用预设算法对所述第一IP地址和第一子网掩码进行处理得到第一结果,并采用所述预设算法对所述第二IP地址和第二子网掩码进行处理得到第二结果;The IP conflict judging module includes an operation sub-module and a judging sub-module, and the operation sub-module is configured to process the first IP address and the first sub-net mask by using a preset algorithm to obtain a first result, and adopt the first result. The preset algorithm processes the second IP address and the second subnet mask to obtain a second result;
所述判断子模块,配置为判断所述第一结果和所述第二结果是否相等,如是,判定所述无线热点设备自身的IP与所述外部WIFI热点为所述无线热点设备设置的IP冲突。The determining sub-module is configured to determine whether the first result and the second result are equal, and if yes, determining that the IP address of the wireless hotspot device itself and the external WIFI hotspot are IP conflicts set by the wireless hotspot device .
在本发明的一种实施例中,所述运算子模块包括转换子模块和与运算 子模块;所述转换子模块,配置为分别对所述第一IP地址和第一子网掩码进行二进制编码转换,以及配置为分别对所述第二IP地址和第二子网掩码进行二进制编码转换;In an embodiment of the invention, the operation submodule includes a conversion submodule and an AND operation a submodule, configured to perform binary code conversion on the first IP address and the first subnet mask, and configured to respectively perform the second IP address and the second subnet mask respectively Binary code conversion
所述与运算子模块,配置为对转换后的所述第一IP地址和第一子网掩码进行与运算得到第一结果,以及配置为对转换后的所述第二IP地址和第二子网掩码进行与运算得到第二结果。The AND operation submodule is configured to perform an AND operation on the converted first IP address and the first subnet mask to obtain a first result, and configured to pair the converted second IP address and the second The subnet mask performs the AND operation to obtain the second result.
在本发明的一种实施例中,所述无线热点设备自身的IP设置信息为所述无线热点设备的动态主机配置协议服务器的IP设置信息;所述外部WIFI热点为所述无线热点设备设置的IP设置信息为所述外部WIFI热点的动态主机配置协议服务器为所述无线热点设备的固定网卡设置的IP设置信息。In an embodiment of the present invention, the IP setting information of the wireless hotspot device itself is IP setting information of a dynamic host configuration protocol server of the wireless hotspot device; and the external WIFI hotspot is set by the wireless hotspot device. The IP setting information is IP setting information set by the dynamic host configuration protocol server of the external WIFI hotspot for the fixed network card of the wireless hotspot device.
在本发明的一种实施例中,还包括IP设置更新模块,配置为在所述IP冲突判断模块判断所述无线热点设备自身IP与所述外部WIFI热点为其设置的IP冲突后,对所述无线热点设备自身的IP设置信息进行修改。In an embodiment of the present invention, the method further includes an IP setting update module, configured to: after the IP conflict determination module determines that the wireless hotspot device itself IP conflicts with the external WIFI hotspot, The IP hotkey device's own IP setting information is modified.
本发明的有益效果是:The beneficial effects of the invention are:
本发明提供的IP冲突检测及处理方法、无线热点设备、计算机存储介质,在无线热点设备接入外部WIFI热点后,获取自身的第一IP设置信息以及接入的外部WIFI热点为其设置的第二IP设置信息;无线热点设备根据自身的第一IP设置信息和该外部WIFI热点为其设置的第二IP设置信息判断自身IP与该外部WIFI热点为其设置的IP是否冲突。也即本发明中的无线热点设备在接入外部WIFI热点后可以自行完成IP是否冲突的判断,因此可以帮助用户准确快速的定位不能连接到外部WIFI的原因,可提升用户体验的满意度。The IP conflict detection and processing method, the wireless hotspot device, and the computer storage medium provided by the present invention acquire the first IP setting information of the wireless hotspot device and the external WIFI hotspot of the access after the wireless hotspot device accesses the external WIFI hotspot. The IP setting information is determined by the wireless hotspot device according to its first IP setting information and the second IP setting information set by the external WIFI hotspot for determining whether the IP set by the IP and the external WIFI hotspot conflicts. That is, the wireless hotspot device in the present invention can determine whether the IP conflicts are resolved after accessing the external WIFI hotspot, so that the user can accurately and quickly locate the reason that the external WIFI cannot be connected, and the user experience satisfaction can be improved.
进一步的,本发明中的无线热点设备在检测出自身IP与外部WIFI热点为其设置的IP是否冲突后,还可对自身的IP设置进行修改,以避免该冲突再次发生,为用户提供智能处理响应,可进一步提升用户体验的满意度。 Further, after detecting whether the IP set by the IP hotspot and the external WIFI hotspot conflicts, the wireless hotspot device in the present invention may also modify its own IP setting to prevent the conflict from happening again, and provide intelligent processing for the user. Respond to further increase the satisfaction of the user experience.
附图说明DRAWINGS
图1为本发明实施例一中IP冲突检测方法流程示意图;1 is a schematic flowchart of an IP conflict detection method according to Embodiment 1 of the present invention;
图2为本发明实施例一中IP冲突判断过程流程示意图;2 is a schematic flowchart of an IP conflict judging process according to Embodiment 1 of the present invention;
图3为本发明实施例一中IP冲突处理方法流程示意图;3 is a schematic flowchart of an IP conflict processing method according to Embodiment 1 of the present invention;
图4为本发明实施例二中无线热点设备结构示意图一;4 is a schematic structural diagram 1 of a wireless hotspot device according to Embodiment 2 of the present invention;
图5为本发明实施例二中无线热点设备结构示意图二;5 is a schematic structural diagram 2 of a wireless hotspot device according to Embodiment 2 of the present invention;
图6为本发明实施例二中无线热点设备结构示意图三;6 is a schematic structural diagram 3 of a wireless hotspot device according to Embodiment 2 of the present invention;
图7为本发明实施例二中无线热点设备结构示意图四。FIG. 7 is a schematic structural diagram 4 of a wireless hotspot device according to Embodiment 2 of the present invention.
具体实施方式detailed description
以下结合附图对本发明的优选实施例进行详细说明,应当理解,以下所说明的优选实施例仅用于说明和解释本发明,并不用于限定本发明。The preferred embodiments of the present invention are described in detail below with reference to the accompanying drawings.
实施例一:Embodiment 1:
请参见图1所示,本实施例提供的IP冲突检测方法主要包括:Referring to FIG. 1 , the IP conflict detection method provided in this embodiment mainly includes:
步骤S101:无线热点设备接入外部WIFI热点;Step S101: The wireless hotspot device accesses an external WIFI hotspot;
步骤S102:无线热点设备获取自身的第一IP设置信息以及其所接入的外部WIFI热点为其设置的第二IP设置信息;Step S102: The wireless hotspot device acquires its own first IP setting information and second IP setting information set by the external WIFI hotspot to which it is connected;
步骤S103:无线热点设备根据自身的第一IP设置信息和外部WIFI热点为其设置的第二IP设置信息判断自身IP与该外部WIFI热点为其设置的IP是否冲突。Step S103: The wireless hotspot device determines, according to its first IP setting information and the second IP setting information set by the external WIFI hotspot, whether the IP set by the IP hotspot and the external WIFI hotspot conflicts.
本实施例中的无线热点设备可以是随身WIFI等无线或有线路由产品等。The wireless hotspot device in this embodiment may be a wireless or wired routing product such as a portable WIFI.
本实施例中无线热点设备自身的第一IP设置信息为无线热点设备自带的动态主机配置协议(DHCP,Dynamic Host Configuration Protocol)服务器(Server)的IP设置信息,DHCP服务器用于为接入该无线热点设备的PC机分配IP地址。本实施例中外部WIFI热点为无线热点设备设置的第二 IP设置信息为外部WIFI热点的DHCP服务器(Server)为无线热点设备的固定(Station)网卡设置的IP设置信息。The first IP setting information of the wireless hotspot device itself in this embodiment is the IP setting information of a dynamic host configuration protocol (DHCP) server (Server) that is provided by the wireless hotspot device, and the DHCP server is configured to access the IP address. The PC of the wireless hotspot device assigns an IP address. In this embodiment, the external WIFI hotspot is the second set by the wireless hotspot device. The IP setting information is the IP setting information set by the DHCP server (Server) of the external WIFI hotspot for the fixed (Station) network card of the wireless hotspot device.
上述步骤S102中获取的第一IP设置信息包括第一IP地址和第一子网掩码;第二IP设置信息包括第二IP地址和第二子网掩码;优选的,本实施例中的IP地址为IPV4地址。本实施例中的无线热点设备具体可以通过其数据查询接口读取到自身的第一IP地址和第一子网掩码,以及外部WIFI热点为其设置的第二IP地址和第二子网掩码。上述步骤S103中无线热点设备根据自身的第一IP设置信息和外部WIFI热点的第二IP设置信息判断自身IP与外部WIFI热点的IP是否冲突请参见图2所示,IP冲突判断过程主要包括:The first IP setting information acquired in the foregoing step S102 includes a first IP address and a first subnet mask; the second IP setting information includes a second IP address and a second subnet mask; preferably, in this embodiment The IP address is the IPV4 address. The wireless hotspot device in this embodiment can read its first IP address and the first subnet mask through its data query interface, and the second IP address and the second subnet set by the external WIFI hotspot. code. In the foregoing step S103, the wireless hotspot device determines whether the IP of the IP address of the external WIFI hotspot conflicts with the IP address of the external WIFI hotspot according to the first IP setting information of the external WIFI hotspot and the second IP setting information of the external WIFI hotspot.
步骤S201:无线热点设备采用预设算法对自身的第一IP地址和第一子网掩码进行处理得到第一结果。Step S201: The wireless hotspot device processes the first IP address and the first subnet mask by using a preset algorithm to obtain a first result.
步骤S202:无线热点设备采用预设算法对外部WIFI热点为其设置的第二IP地址和第二子网掩码进行处理得到第二结果;该步骤与上述步骤S201之间并无严格时序限制,二者可以同时进行,也可以一前一后分步进行,例如步骤S202也可以在步骤S201之前进行。Step S202: The wireless hotspot device processes the second IP address and the second subnet mask set by the external WIFI hotspot by using a preset algorithm to obtain a second result; there is no strict timing restriction between the step and the foregoing step S201. The two can be performed simultaneously, or can be performed step by step, for example, step S202 can also be performed before step S201.
步骤S203:无线热点设备判断得到的第一结果和第二结果是否相等,如果是,转至步骤S204;否则,转至步骤S205。Step S203: The wireless hotspot device determines whether the obtained first result and the second result are equal. If yes, go to step S204; otherwise, go to step S205.
步骤S204:判定自身IP与外部WIFI热点为其设置的IP冲突。Step S204: Determine the IP conflict set by the own IP and the external WIFI hotspot.
步骤S205:判定自身IP与外部WIFI热点为其设置的IP不冲突。Step S205: It is determined that the IP set by the own IP and the external WIFI hotspot does not conflict.
上述步骤S102和步骤S103中的预设算法具体可以为与运算;无线热点设备对自身的第一IP地址和第一子网掩码进行处理得到第一结果包括:无线热点设备分别对自身的第一IP地址和第一子网掩码进行二进制编码转后进行与运算处理得到第一结果;无线热点设备对外部WIFI热点为其设置的第二IP地址和第二子网掩码进行处理得到第二结果包括:无线热点设备 分别对外部WIFI热点为其设置的第二IP地址和第二子网掩码进行二进制编码转后进行与运算处理得到第二结果。The preset algorithm in the foregoing step S102 and the step S103 may specifically be an AND operation; the wireless hotspot device processes the first IP address and the first subnet mask of the wireless hotspot device to obtain the first result: the wireless hotspot device respectively has its own An IP address and a first subnet mask are binary coded and then subjected to an AND operation to obtain a first result; the wireless hotspot device processes the second IP address and the second subnet mask set by the external WIFI hotspot to obtain the first The second result includes: wireless hotspot device The second IP address and the second subnet mask set by the external WIFI hotspot are separately coded and then subjected to an AND operation to obtain a second result.
本实施例中在检测出IP冲突后,还可对无线热点设备的IP设置信息进行对应的调整,直到检测结果为不冲突。因此请参见图3所示,IP冲突处理方法主要包括:In this embodiment, after the IP conflict is detected, the IP setting information of the wireless hotspot device may be correspondingly adjusted until the detection result is not conflict. Therefore, as shown in Figure 3, the IP conflict handling method mainly includes:
步骤S301:无线热点设备接入外部WIFI热点。Step S301: The wireless hotspot device accesses an external WIFI hotspot.
步骤S302:无线热点设备获取自身的第一IP设置信息以及其所接入的外部WIFI热点为其设置的第二IP设置信息。Step S302: The wireless hotspot device acquires its own first IP setting information and second IP setting information set by the external WIFI hotspot to which it is connected.
步骤S303:无线热点设备根据自身的第一IP设置信息和外部WIFI热点为其设置的第二IP设置信息判断自身IP与该外部WIFI热点为其设置的IP是否冲突,如是,转至步骤S304;否则,转至步骤S305。Step S303: The wireless hotspot device determines, according to the first IP setting information of the first IP setting information and the second IP setting information set by the external WIFI hotspot, whether the IP set by the external WIFI hotspot conflicts with the IP address set by the external WIFI hotspot, and if yes, go to step S304; Otherwise, go to step S305.
步骤S304:无线热点设备自身的IP设置信息进行修改,该修改主要是切换对应的网关;修改完成后可以重启无线热点设备,重启后的无线热点设备可以重新获取到新的地址;在修改完成后可以再转至步骤S302进行冲突检测。Step S304: Modifying the IP setting information of the wireless hotspot device itself, the modification is mainly to switch the corresponding gateway; after the modification is completed, the wireless hotspot device can be restarted, and the restarted wireless hotspot device can reacquire the new address; after the modification is completed, It is possible to proceed to step S302 to perform collision detection.
步骤S305:结束。Step S305: End.
本发明实施例还记载一种计算机存储介质,所述计算机存储介质中存储有计算机程序,所述计算机程序用于执行本发明实施例中图1所示的IP冲突检测方法,和/或图2所示的IP冲突判断方法、和/或图3所示的IP冲突处理方法。The embodiment of the invention further describes a computer storage medium, wherein the computer storage medium stores a computer program for performing the IP conflict detection method shown in FIG. 1 in the embodiment of the present invention, and/or FIG. 2 The IP conflict determination method shown, and/or the IP conflict processing method shown in FIG.
实施例二:Embodiment 2:
本实施例提供了一种无线热点设备,具体可以是随身WIFI等无线或有线路由产品,请参见图4所示,所述无线热点设备包括接入模块1、IP信息获取模块2和IP冲突判断模块3;其中,The present embodiment provides a wireless hotspot device, which may be a wireless or wired routing product such as a portable WIFI. Referring to FIG. 4, the wireless hotspot device includes an access module 1, an IP information acquiring module 2, and an IP conflict determination. Module 3; among them,
所述接入模块1,配置为接入外部WIFI热点; The access module 1 is configured to access an external WIFI hotspot;
IP信息获取模块2,配置为在接入模块1接入外部WIFI热点后,获取无线热点设备自身的第一IP设置信息以及该外部WIFI热点为无线热点设备设置的第二IP设置信息;The IP information obtaining module 2 is configured to acquire, after the access module 1 accesses the external WIFI hotspot, the first IP setting information of the wireless hotspot device itself and the second IP setting information set by the external WIFI hotspot as the wireless hotspot device;
IP冲突判断模块3,配置为根据无线热点设备自身的第一IP设置信息和外部WIFI热点为无线热点设备设置的第二IP设置信息判断无线热点设备自身IP与外部WIFI热点为其设置的IP是否冲突。The IP conflict judging module 3 is configured to determine, according to the first IP setting information of the wireless hotspot device itself and the second IP setting information set by the external WIFI hotspot for the wireless hotspot device, whether the IP address set by the wireless hotspot device itself and the external WIFI hotspot is conflict.
本实施例中无线热点设备自身的第一IP设置信息为无线热点设备自带的DHCP服务器(Server)的IP设置信息,DHCP服务器用于为接入该无线热点设备的PC机分配IP地址。本实施例中外部WIFI热点为无线热点设备设置的第二IP设置信息为外部WIFI热点的DHCP服务器(Server)为无线热点设备的固定(Station)网卡设置的IP设置信息。In this embodiment, the first IP setting information of the wireless hotspot device itself is the IP setting information of the DHCP server (Server) provided by the wireless hotspot device, and the DHCP server is configured to allocate an IP address to the PC that accesses the wireless hotspot device. In this embodiment, the second IP setting information set by the external WIFI hotspot for the wireless hotspot device is the IP setting information set by the DHCP server (Server) of the external WIFI hotspot for the fixed (Station) network card of the wireless hotspot device.
请参见图5所示,本实施例中的IP信息获取模块2具体包括IP地址获取子模块21和子网掩码获取子模块22;IP冲突判断模块3包括运算子模块31和判断子模块32。其中,IP地址获取子模块21配置为获取无线热点设备自身的第一IP地址以及外部WIFI热点为无线热点设备设置的第二IP地址;子网掩码获取子模块22配置为获取无线热点设备自身的第一子网掩码以及外部WIFI热点为无线热点设备设置的第二子网掩码;运算子模块31配置为采用预设算法对无线热点设备自身的第一IP地址和第一子网掩码进行处理得到第一结果,并采用预设算法对外部WIFI热点为无线热点设备设置的第二IP地址和第二子网掩码进行处理得到第二结果;判断子模块32配置为判断第一结果和第二结果是否相等,如是,判定无线热点设备自身的IP与外部WIFI热点为无线热点设备设置的IP冲突;否则判定为不冲突。As shown in FIG. 5, the IP information obtaining module 2 in this embodiment specifically includes an IP address obtaining sub-module 21 and a subnet mask obtaining sub-module 22; the IP conflict judging module 3 includes an operation sub-module 31 and a judging sub-module 32. The IP address obtaining sub-module 21 is configured to acquire the first IP address of the wireless hotspot device itself and the second IP address set by the external WIFI hotspot as the wireless hotspot device; the subnet mask obtaining sub-module 22 is configured to obtain the wireless hotspot device itself. The first subnet mask and the second subnet mask set by the external WIFI hotspot for the wireless hotspot device; the operation submodule 31 is configured to mask the first IP address and the first subnet of the wireless hotspot device by using a preset algorithm. The code is processed to obtain the first result, and the second algorithm is used to process the second IP address and the second subnet mask set by the external WIFI hotspot for the wireless hotspot device to obtain a second result; the determining submodule 32 is configured to determine the first Whether the result and the second result are equal, if yes, determining that the IP address of the wireless hotspot device itself and the external WIFI hotspot are IP conflicts set by the wireless hotspot device; otherwise, determining that there is no conflict.
具体的,请参见图6所示,本实施例中的运算子模块31包括转换子模块311和与运算子模块312;所述转换子模块311配置为分别对无线热点设备自身的第一IP地址和第一子网掩码进行二进制编码转换,以及配置为分 别对外部WIFI热点为无线热点设备设置的第二IP地址和第二子网掩码进行二进制编码转换;所述与运算子模块312配置为对转换后的无线热点设备自身的第一IP地址和第一子网掩码进行与运算得到第一结果,以及配置为对转换后的外部WIFI热点为无线热点设备设置的第二IP地址和第二子网掩码进行与运算得到第二结果。Specifically, as shown in FIG. 6, the operation sub-module 31 in this embodiment includes a conversion sub-module 311 and an operation sub-module 312; the conversion sub-module 311 is configured to respectively respectively address the first IP address of the wireless hotspot device itself. Binary code conversion with the first subnet mask, and configured to divide Do not perform binary code conversion on the second IP address and the second subnet mask set by the external WIFI hotspot for the wireless hotspot device; the AND operation submodule 312 is configured to be the first IP address of the converted wireless hotspot device itself and The first subnet mask performs the AND operation to obtain the first result, and is configured to perform an AND operation on the converted external WIFI hotspot for the second IP address and the second subnet mask set by the wireless hotspot device to obtain a second result.
本实施例中在检测出IP冲突后,还可对无线热点设备的IP设置信息进行对应的调整,直到检测结果为不冲突。请参见图7所示,无线热点设备还包括IP设置更新模块4,配置为在IP冲突判断模块3判断无线热点设备自身IP与外部WIFI热点为其设置的IP冲突后,对无线热点设备自身的IP设置信息进行修改。修改完成后可以重启无线热点设备,重启后的无线热点设备可以重新获取到新的地址;在修改完成后可以再进行冲突检测,直到检测结果为不冲突。In this embodiment, after the IP conflict is detected, the IP setting information of the wireless hotspot device may be correspondingly adjusted until the detection result is not conflict. As shown in FIG. 7 , the wireless hotspot device further includes an IP setting update module 4 configured to determine, after the IP conflict determination module 3 determines the IP conflict between the wireless hotspot device itself and the external WIFI hotspot, the wireless hotspot device itself The IP setting information is modified. After the modification is complete, the wireless hotspot device can be restarted, and the restarted wireless hotspot device can re-acquire the new address; after the modification is completed, the conflict detection can be performed until the detection result is not conflict.
实际应用中,所述接入模块1、IP信息获取模块2、IP冲突判断模块3、IP设置更新模块4以及各个模块的子模块均可由所述无线热点设备的中央处理器(CPU,Central Processing Unit)、数字信号处理器(DSP,Digital Signal Processor)或现场可编程门阵列(FPGA,Field Programmable Gate Array)实现。In an actual application, the access module 1, the IP information acquisition module 2, the IP conflict determination module 3, the IP setting update module 4, and the submodules of each module may be used by a central processing unit of the wireless hotspot device (CPU, Central Processing) Unit), Digital Signal Processor (DSP) or Field Programmable Gate Array (FPGA).
可见,本发明能够在internet WIFI接入外部AP的情况下,智能判断本地IP设置是否和外部AP设置冲突,在冲突的情况下,自动修改本地IP设置,避免用户无法上网的情况出现,因此可以提升用户体验的满意度。It can be seen that the invention can intelligently determine whether the local IP setting conflicts with the external AP setting when the internet WIFI is connected to the external AP, and automatically modify the local IP setting in case of conflict, so as to prevent the user from being able to access the Internet, so Improve user satisfaction.
以上内容是结合具体的实施方式对本发明所作的进一步详细说明,不能认定本发明的具体实施只局限于这些说明。对于本发明所属技术领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干简单推演或替换,都应当视为属于本发明的保护范围。 The above is a further detailed description of the present invention in connection with the specific embodiments, and the specific embodiments of the present invention are not limited to the description. It will be apparent to those skilled in the art that the present invention may be made without departing from the spirit and scope of the invention.
工业实用性Industrial applicability
本发明实施例中,无线热点设备接入外部WIFI热点后,获取自身的第一IP设置信息以及所述外部WIFI热点为其设置的第二IP设置信息;无线热点设备根据所述第一IP设置信息和所述第二IP设置信息判断自身IP与所述外部WIFI热点为其设置的IP是否冲突;如此,使无线热点设备在接入外部WIFI热点后可以自行完成IP是否冲突的判断,因此可以帮助用户准确快速的定位不能连接到外部WIFI的原因,可提升用户体验的满意度。 In the embodiment of the present invention, after the wireless hotspot device accesses the external WIFI hotspot, the first IP setting information of the wireless hotspot device and the second IP setting information set by the external WIFI hotspot are obtained; the wireless hotspot device is configured according to the first IP address. The information and the second IP setting information determine whether the IP of the IP address and the external WIFI hotspot conflicts with the IP hotspot device; thus, the wireless hotspot device can complete the judgment of whether the IP conflicts after accessing the external WIFI hotspot, so Help users accurately and quickly locate the reasons why they cannot connect to external WIFI, which can improve the satisfaction of user experience.

Claims (11)

  1. 一种IP冲突检测方法,所述方法包括:An IP conflict detection method, the method comprising:
    无线热点设备接入外部WIFI热点后,获取自身的第一IP设置信息以及所述外部WIFI热点为其设置的第二IP设置信息;After the wireless hotspot device accesses the external WIFI hotspot, the first IP setting information of the wireless hotspot device and the second IP setting information set by the external WIFI hotspot are obtained;
    无线热点设备根据所述第一IP设置信息和所述第二IP设置信息判断自身IP与所述外部WIFI热点为其设置的IP是否冲突。The wireless hotspot device determines, according to the first IP setting information and the second IP setting information, whether the IP set by the own IP and the external WIFI hotspot conflicts.
  2. 如权利要求1所述的IP冲突检测方法,其中,所述第一IP设置信息包括第一IP地址和第一子网掩码;所述第二IP设置信息包括第二IP地址和第二子网掩码;The IP conflict detecting method according to claim 1, wherein said first IP setting information includes a first IP address and a first subnet mask; and said second IP setting information includes a second IP address and a second sub-address Net mask
    所述无线热点设备根据所述第一IP设置信息和所述第二IP设置信息判断自身IP与所述外部WIFI热点为其设置的IP是否冲突包括:Determining, by the wireless hotspot device, whether the IP set by the IP address and the external WIFI hotspot is set according to the first IP setting information and the second IP setting information includes:
    所述无线热点设备采用预设算法对所述第一IP地址和第一子网掩码进行处理得到第一结果,并采用所述预设算法对所述第二IP地址和第二子网掩码进行处理得到第二结果;The wireless hotspot device processes the first IP address and the first subnet mask by using a preset algorithm to obtain a first result, and masks the second IP address and the second subnet by using the preset algorithm. Processing the code to obtain a second result;
    所述无线热点设备在确定所述第一结果和所述第二结果相等时,判定自身IP与所述外部WIFI热点为其设置的IP冲突。When determining that the first result and the second result are equal, the wireless hotspot device determines an IP conflict between the self IP and the external WIFI hotspot.
  3. 如权利要求2所述的IP冲突检测方法,其中,所述预设算法为与运算;所述无线热点设备对所述第一IP地址和第一子网掩码进行处理得到第一结果包括:所述无线热点设备分别对所述第一IP地址和第一子网掩码进行二进制编码转后进行与运算处理得到第一结果;The IP conflict detection method of claim 2, wherein the preset algorithm is an AND operation; the wireless hotspot device processing the first IP address and the first subnet mask to obtain a first result comprises: The wireless hotspot device separately performs binary processing on the first IP address and the first subnet mask, and performs an AND operation to obtain a first result;
    所述无线热点设备对所述第二IP地址和第二子网掩码进行处理得到第二结果包括:所述无线热点设备分别对所述第二IP地址和第二子网掩码进行二进制编码转后进行与运算处理得到第二结果。Processing, by the wireless hotspot device, the second IP address and the second subnet mask to obtain a second result, the wireless hotspot device separately encoding the second IP address and the second subnet mask separately After the rotation, the AND operation process is performed to obtain the second result.
  4. 如权利要求1至3任一项所述的IP冲突检测方法,其中,所述无线热点设备自身的IP设置信息为所述无线热点设备的动态主机配置协议服务 器的IP设置信息;所述外部WIFI热点为所述无线热点设备设置的IP设置信息为所述外部WIFI热点的动态主机配置协议服务器为所述无线热点设备的固定网卡设置的IP设置信息。The IP conflict detection method according to any one of claims 1 to 3, wherein the IP hotspot device's own IP setting information is a dynamic host configuration protocol service of the wireless hotspot device. IP setting information of the device; the IP setting information set by the external WIFI hotspot for the wireless hotspot device is IP setting information set by the dynamic host configuration protocol server of the external WIFI hotspot for the fixed network card of the wireless hotspot device.
  5. 一种IP冲突处理方法,所述方法包括:An IP conflict processing method, the method comprising:
    无线热点设备经如权利要求1至4任一项所述的IP冲突检测方法检测到自身IP与所述外部WIFI热点为其设置的IP冲突后,对自身的IP设置信息进行修改。The IP hotspot device detects the IP conflict set by the IP and the external WIFI hotspot after the IP conflict detection method according to any one of claims 1 to 4, and then modifies its own IP setting information.
  6. 一种无线热点设备,所述无线热点设备包括接入模块、IP信息获取模块和IP冲突判断模块;A wireless hotspot device includes an access module, an IP information acquiring module, and an IP conflict judging module;
    所述接入模块,配置为接入外部WIFI热点;The access module is configured to access an external WIFI hotspot;
    所述IP信息获取模块,配置为在所述接入模块接入所述外部WIFI热点后,获取所述无线热点设备自身的第一IP设置信息以及所述外部WIFI热点为所述无线热点设备设置的第二IP设置信息;The IP information acquiring module is configured to acquire, after the access module accesses the external WIFI hotspot, the first IP setting information of the wireless hotspot device and the external WIFI hotspot to set the wireless hotspot device Second IP setting information;
    所述IP冲突判断模块,配置为根据所述第一IP设置信息和所述第二IP设置信息判断所述无线热点设备自身IP与所述外部WIFI热点为其设置的IP是否冲突。The IP conflict judging module is configured to determine, according to the first IP setting information and the second IP setting information, whether the IP address set by the wireless hotspot device itself and the external WIFI hotspot conflict with each other.
  7. 如权利要求6所述的无线热点设备,其中,所述IP信息获取模块包括IP地址获取子模块和子网掩码获取子模块;所述IP地址获取子模块配置为获取所述第一IP地址以及所述第二IP地址;所述子网掩码获取子模块配置为获取所述第二子网掩码以及所述第二子网掩码;The wireless hotspot device of claim 6, wherein the IP information acquisition module comprises an IP address acquisition submodule and a subnet mask acquisition submodule; the IP address acquisition submodule is configured to acquire the first IP address and The second IP address; the subnet mask acquisition submodule is configured to acquire the second subnet mask and the second subnet mask;
    所述IP冲突判断模块包括运算子模块和判断子模块,所述运算子模块配置为采用预设算法对所述第一IP地址和第一子网掩码进行处理得到第一结果,并采用所述预设算法对所述第二IP地址和第二子网掩码进行处理得到第二结果;The IP conflict judging module includes an operation submodule and a judging submodule, and the operation submodule is configured to process the first IP address and the first subnet mask by using a preset algorithm to obtain a first result, and adopt the The preset algorithm processes the second IP address and the second subnet mask to obtain a second result;
    所述判断子模块配置为判断所述第一结果和所述第二结果相等时,判 定所述无线热点设备自身的IP与所述外部WIFI热点为所述无线热点设备设置的IP冲突。The determining submodule is configured to determine that the first result and the second result are equal Determining an IP of the wireless hotspot device itself and an IP conflict set by the external WIFI hotspot for the wireless hotspot device.
  8. 如权利要求7所述的无线热点设备,其中,所述运算子模块包括转换子模块和与运算子模块;所述转换子模块,配置为分别对所述第一IP地址和第一子网掩码进行二进制编码转换,以及配置为分别对所述第二IP地址和第二子网掩码进行二进制编码转换;The wireless hotspot device of claim 7, wherein the operation submodule comprises a conversion submodule and an AND operation submodule; the conversion submodule is configured to mask the first IP address and the first subnet respectively The code performs binary code conversion, and is configured to perform binary code conversion on the second IP address and the second subnet mask, respectively;
    所述与运算子模块,配置为对转换后的所述第一IP地址和第一子网掩码进行与运算得到第一结果,以及配置为对转换后的所述第二IP地址和第二子网掩码进行与运算得到第二结果。The AND operation submodule is configured to perform an AND operation on the converted first IP address and the first subnet mask to obtain a first result, and configured to pair the converted second IP address and the second The subnet mask performs the AND operation to obtain the second result.
  9. 如权利要求6至8任一项所述的无线热点设备,其中,所述无线热点设备自身的IP设置信息为所述无线热点设备的动态主机配置协议服务器的IP设置信息;所述外部WIFI热点为所述无线热点设备设置的IP设置信息为所述外部WIFI热点的动态主机配置协议服务器为所述无线热点设备的固定网卡设置的IP设置信息。The wireless hotspot device according to any one of claims 6 to 8, wherein the IP setting information of the wireless hotspot device itself is IP setting information of a dynamic host configuration protocol server of the wireless hotspot device; the external WIFI hotspot The IP setting information set for the wireless hotspot device is IP setting information set by the dynamic host configuration protocol server of the external WIFI hotspot for the fixed network card of the wireless hotspot device.
  10. 如权利要求6至8任一项所述的无线热点设备,其中,所述无线热点设备还包括IP设置更新模块,配置为在所述IP冲突判断模块判断所述无线热点设备自身IP与所述外部WIFI热点为其设置的IP冲突后,对所述无线热点设备自身的IP设置信息进行修改。The wireless hotspot device according to any one of claims 6 to 8, wherein the wireless hotspot device further includes an IP setting update module, configured to determine, at the IP conflict determination module, the wireless hotspot device itself IP and the After the IP conflict set by the external WIFI hotspot is changed, the IP setting information of the wireless hotspot device itself is modified.
  11. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1至4任一项所述的IP冲突检测方法,和/或权利要求5所述的IP冲突处理方法。 A computer storage medium storing computer executable instructions for performing the IP conflict detection method of any one of claims 1 to 4, and/or claim 5 The IP conflict processing method.
PCT/CN2015/074327 2014-11-11 2015-03-16 Ip conflict detection and processing method, wireless hotspot device and computer storage medium WO2016074398A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410629742.0 2014-11-11
CN201410629742.0A CN105657075A (en) 2014-11-11 2014-11-11 IP collision detection and processing method, wireless hot spot device

Publications (1)

Publication Number Publication Date
WO2016074398A1 true WO2016074398A1 (en) 2016-05-19

Family

ID=55953665

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/074327 WO2016074398A1 (en) 2014-11-11 2015-03-16 Ip conflict detection and processing method, wireless hotspot device and computer storage medium

Country Status (2)

Country Link
CN (1) CN105657075A (en)
WO (1) WO2016074398A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106254375B (en) * 2016-09-05 2019-11-19 北京神州绿盟信息安全科技股份有限公司 A kind of recognition methods of hotspot equipment and device
CN106686153B (en) * 2016-11-21 2020-01-07 广州视源电子科技股份有限公司 Method and device for starting wireless hotspot service
CN108566649B (en) * 2018-03-12 2021-07-02 Oppo广东移动通信有限公司 Network segment management method of personal hotspot and related products
CN111726798A (en) * 2019-03-20 2020-09-29 青岛海信移动通信技术股份有限公司 Method and terminal for determining hotspot IP address of terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202009501U (en) * 2011-04-18 2011-10-12 深圳市万贝科通信技术有限公司 3G-WiFi portable router used for hotspot access of wireless local area network
CN102325199A (en) * 2011-09-13 2012-01-18 中兴通讯股份有限公司 Terminal IP (Internet Protocol) address management method and terminal IP address management device
CN102387608A (en) * 2011-10-21 2012-03-21 大唐移动通信设备有限公司 Access method of WiFi (Wireless Fidelity) access point (AP), WiFi AP and WiFi system
US20130311635A1 (en) * 2007-06-29 2013-11-21 Apple Inc. Network management

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100349433C (en) * 2004-06-11 2007-11-14 华为技术有限公司 Method of distributing switchin-in address for user terminal
US7480710B1 (en) * 2004-07-13 2009-01-20 Cisco Technology, Inc. Resolving duplication of IP addresses in IP networks
CN1845554B (en) * 2005-12-06 2010-05-05 华为技术有限公司 Control method for dynamically distributing IP address in 3G network
CN101304388B (en) * 2008-06-20 2010-08-04 成都市华为赛门铁克科技有限公司 Method, apparatus and system for settling IP address conflict
US20120106411A1 (en) * 2010-10-29 2012-05-03 Netronix, Inc. Portable router
CN102439949A (en) * 2011-10-17 2012-05-02 华为技术有限公司 Method for solving internet protocol address assignment conflict and related device and system
US20130182651A1 (en) * 2012-01-13 2013-07-18 Amol Dhananjay Kelkar Virtual Private Network Client Internet Protocol Conflict Detection

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130311635A1 (en) * 2007-06-29 2013-11-21 Apple Inc. Network management
CN202009501U (en) * 2011-04-18 2011-10-12 深圳市万贝科通信技术有限公司 3G-WiFi portable router used for hotspot access of wireless local area network
CN102325199A (en) * 2011-09-13 2012-01-18 中兴通讯股份有限公司 Terminal IP (Internet Protocol) address management method and terminal IP address management device
CN102387608A (en) * 2011-10-21 2012-03-21 大唐移动通信设备有限公司 Access method of WiFi (Wireless Fidelity) access point (AP), WiFi AP and WiFi system

Also Published As

Publication number Publication date
CN105657075A (en) 2016-06-08

Similar Documents

Publication Publication Date Title
US10785216B2 (en) Method for accessing network by internet of things device, apparatus, and system
US11089476B2 (en) Network access control method and apparatus
JP6416409B2 (en) Access point steering
EP3127298B1 (en) Specifying a mac address based on location
WO2016101730A1 (en) Method, apparatus and system for wireless network access
CN106413047A (en) Method and device for enabling intelligent device to be accessed to wireless network
CN107113892B (en) Method and device for automatically networking gateway equipment
TW202007221A (en) Network access method and apparatus
WO2018010425A1 (en) Method and apparatus for pushing and receiving wi-fi hotspot information, and storage medium
CN107567017B (en) Wireless connection system, device and method
CN108419237A (en) A connection method of a wireless access point, a wireless access point device, and a storage medium
WO2016074398A1 (en) Ip conflict detection and processing method, wireless hotspot device and computer storage medium
WO2018103405A1 (en) Method for identifying access point and hotspot, and related product
US10505890B2 (en) Network access method, system and terminal device, and computer storage medium
WO2018076675A1 (en) Network access method, routing device and terminal, and computer storage medium
WO2014071841A1 (en) Method, terminal, server, system, and device for synchronizing wireless network parameters
JP6366113B2 (en) COMMUNICATION SYSTEM, COMMUNICATION DEVICE, AND COMMUNICATION METHOD
WO2016086544A1 (en) Network interface configuration method and apparatus for network device and storage medium
JP6573917B2 (en) Discriminating method and corresponding terminal, computer program product, and storage medium
WO2018090831A1 (en) Method and apparatus allowing smart terminal device to access internet
JP2017539176A (en) Method and device for device configuration
CN107852598B (en) Circumventing wireless device spatial tracking based on wireless device identifiers
KR20140113276A (en) Self-configuring local area network security
US11849339B2 (en) Selecting a role for an access point
KR20210015088A (en) Method for connecting terminal and access point

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

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

Country of ref document: EP

Kind code of ref document: A1