WO2016101730A1 - Method, apparatus and system for wireless network access - Google Patents

Method, apparatus and system for wireless network access Download PDF

Info

Publication number
WO2016101730A1
WO2016101730A1 PCT/CN2015/094709 CN2015094709W WO2016101730A1 WO 2016101730 A1 WO2016101730 A1 WO 2016101730A1 CN 2015094709 W CN2015094709 W CN 2015094709W WO 2016101730 A1 WO2016101730 A1 WO 2016101730A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
wireless
router
actual distance
signal strength
Prior art date
Application number
PCT/CN2015/094709
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 WO2016101730A1 publication Critical patent/WO2016101730A1/en

Links

Images

Classifications

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

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method, device, and system for wireless network access.
  • WiFi Wireless Fidelity
  • WiFi is a wireless network composed of wireless access points (APs) and wireless network cards.
  • APs wireless access points
  • Wireless APs are commonly called "hot spots”. Any A user terminal such as a smartphone, tablet or laptop with a wireless network card can share network resources through the AP.
  • the host In the home network, the host usually sets a password for the wireless AP.
  • the visitor When the user terminal of the visitor detects the signal of the wireless AP, the visitor needs to manually select the AP name to be joined, and manually input the wireless password for authentication.
  • manually selecting the AP name and entering the wireless password is cumbersome to operate, and the process of password input is very error-prone.
  • the embodiments of the present invention provide a method, a device, and a system for accessing a wireless network, and the main purpose thereof is to solve the problem that the operation process is cumbersome when a visitor accesses the wireless AP.
  • a method for wireless network access including:
  • the terminal is connected to the wireless access node AP.
  • an apparatus for wireless network access including:
  • a detecting unit configured to detect a signal strength of the terminal
  • a calculating unit configured to calculate an actual distance between the terminal and the router according to the signal strength detected by the detecting unit
  • the comparison unit is configured to compare the actual distance calculated by the calculation unit with a preset distance threshold Correct;
  • the access unit is configured to access the terminal to the wireless access node AP when the actual distance of the comparison unit is not greater than the distance threshold.
  • a system for wireless network access comprising a terminal and a router, wherein the terminal comprises means as previously described.
  • a computer program comprising computer readable code that, when executed on a computing device, causes the computing device to perform the wireless network access described above Methods.
  • a computer readable medium wherein the computer program described above is stored.
  • the router detects the signal strength of the terminal, calculates the actual distance between the terminal and the router according to the signal strength, and calculates the calculated actual distance and the pre- The distance threshold is compared.
  • the terminal accesses the wireless AP.
  • the present invention determines whether the terminal is allowed to access the wireless AP by manually calculating the actual distance between the terminal and the router according to the signal strength of the terminal, and thus does not need to manually input the wireless password for authentication.
  • the method provided by the invention can greatly simplify the operation process of the terminal accessing the wireless AP.
  • FIG. 1 is a flowchart of a method for accessing a wireless network according to an embodiment of the present invention
  • FIG. 2 is a block diagram showing the structure of an apparatus for accessing a wireless network according to an embodiment of the present invention
  • FIG. 3 is a structural block diagram of another apparatus for accessing a wireless network according to an embodiment of the present invention.
  • FIG. 4 is a structural block diagram of another apparatus for accessing a wireless network according to an embodiment of the present invention.
  • FIG. 5 is a structural block diagram of another apparatus for accessing a wireless network according to an embodiment of the present invention.
  • FIG. 6 is a structural block diagram of another apparatus for accessing a wireless network according to an embodiment of the present invention.
  • FIG. 7 is a structural block diagram of another apparatus for accessing a wireless network according to an embodiment of the present invention.
  • FIG. 8 is a block diagram showing the structure of another apparatus for accessing a wireless network according to an embodiment of the present invention.
  • FIG. 9 is a structural block diagram of a system for accessing a wireless network according to an embodiment of the present invention.
  • Figure 10 schematically shows a block diagram of a computing device for performing the method according to the invention
  • Fig. 11 schematically shows a storage unit for holding or carrying program code implementing the method according to the invention.
  • the embodiment of the invention provides a method for wireless network access. As shown in FIG. 1 , the method includes:
  • the terminal in the step 101 is a terminal that supports wireless Internet access, and the terminal used in the embodiment of the present invention may be: a smart phone, a personal computer (PC), a tablet computer, etc., and the specific embodiment of the present invention. No restrictions are imposed.
  • the router After detecting the signal strength of the terminal in step 101, the router calculates the actual distance between the terminal and the router based on the signal strength.
  • the embodiment of the present invention does not exclude external interference and errors caused by different terminal models.
  • the preset distance threshold is manually set, and may be implemented by using, but not limited to, setting a distance threshold, for example, setting a distance threshold of 40 cm, or setting a distance threshold of 10 cm. The embodiment of the present invention does not limit this.
  • the terminal is connected to the wireless access node AP.
  • the router should perform the authentication according to the comparison result in step 103. If the actual distance is not greater than the distance threshold, the terminal is connected to the wireless AP. If the actual distance is greater than the distance threshold, the terminal cannot be connected to the wireless AP.
  • the method for accessing a wireless network detects the signal strength of the terminal by the router, calculates the actual distance between the terminal and the router according to the signal strength, and calculates the actual distance calculated. The distance is compared with a preset distance threshold. When the actual distance is not greater than the distance threshold, the terminal accesses the wireless AP.
  • the embodiment of the present invention determines whether the terminal is allowed to access the wireless AP by manually calculating the actual distance between the terminal and the router according to the signal strength of the terminal, and does not need to manually input the wireless password for authentication.
  • the method provided by the embodiment of the present invention can greatly simplify the operation process of the terminal accessing the wireless AP.
  • the router adopts different methods for detecting the signal strength of the terminal for different signal types.
  • the embodiment of the present invention adopts, but is not limited to, the following methods:
  • the received signal strength when detecting the received digital signal indicates the RSSI value.
  • the signal strength of the router in detecting the terminal is a unified method, and the signal strength is different according to the transmission power of different terminals, and different terminal models correspond to different transmission powers, so after the router detects the RSSI value when receiving the digital signal Find the transmit power of the corresponding terminal model and calibrate the RSSI value according to the transmit power.
  • the transmission power of the terminal 1 of the model M01 is 40 mW
  • the transmission power of the terminal 2 of the model M030 is 5 mW.
  • the signal strength of 1 is greater than the signal strength of terminal 2; similarly, when the router detects that the signal strengths of terminal 3 and terminal 4 are the same, and the transmission power of terminal 3 and terminal 4 are the same, then terminal 3 and terminal 4 and the router The actual distance between the terminals is the same, but the transmission power of the terminal 3 is not the same as the transmission power of the terminal 4.
  • the embodiment of the present invention calibrates the RSSI value according to the size of different transmission powers of different terminal models.
  • the router determines the model of the terminal according to the data signal sent by the terminal, and searches for the corresponding transmit power of the terminal according to the terminal model and the transmit power comparison table, as shown in Table 1, Table 1 shows A comparison table of terminal models and transmission powers is available.
  • Terminal model Transmit power M01 40mW M030 5mW Zw8050 60mW SX673 3mW H4 21mW Mh370 25mW
  • the router calibrates the RSSI value according to the transmission power of the terminal, the current RSSI value of the terminal is obtained, and the signal strength of the terminal is determined according to the current RSSI value of the terminal, and a preset first mapping relationship table is locally saved in the router to obtain the terminal.
  • the actual distance from the router where the table has a one-to-one correspondence between the RSSI value and the actual distance.
  • the embodiment of the present invention can be implemented by using, but not limited to, the following manner: the router sequentially searches in the terminal model and the transmit power comparison table.
  • the corresponding transmit power of the terminal or, by means of the binary method, find the transmit power corresponding to the terminal in the terminal model and the transmit power comparison table.
  • the specific embodiments of the present invention are not limited.
  • the wireless bridge is connected to the virtual AP created by the terminal to detect the decibel dBm value of the virtual AP.
  • the router automatically scans the surrounding wireless APs and checks the wireless APs that can be bridged.
  • the router obtains the dBm value carried in the wireless AP during the wireless AP scanning process.
  • the signal strength of the terminal can be detected according to the dBm value. Calculate the actual distance between the terminal and the router.
  • the terminal first creates a virtual AP, and the router bridges the virtual AP created by the terminal, and detects the dBm value.
  • the dBm value and the RSSI value can both be used to indicate the signal strength of the terminal, wherein the dBm value and the RSSI value can be converted into each other.
  • the router obtains the current dBm value of the terminal, and determines the signal strength of the terminal according to the current dBm value of the terminal, and saves a preset second mapping relationship table locally on the router to obtain the actual distance between the terminal and the router, where the table A one-to-one correspondence between the dBm value and the actual distance is recorded.
  • the router stops broadcasting the name of the wireless AP to the terminal before detecting the signal strength of the terminal, so that the terminal does not display the name of the wireless AP.
  • the router may continue to detect the signal strength of the terminal.
  • the router calculates the actual distance between the terminal and the router according to the signal strength, the actual distance is not greater than In the distance threshold, the router broadcasts the name of the wireless AP and accesses the terminal to the wireless AP.
  • the router stops broadcasting the name of the wireless AP to the terminal, and the terminal knows the When the name of the wireless AP is used, the terminal user can manually input the name of the wireless AP and send the request information for accessing the wireless AP to the router. When receiving the request information for accessing the wireless AP, the router sends a message waiting for ranging to the terminal. When the router calculates, according to the signal strength, that the actual distance between the terminal and the router is not greater than the distance threshold, the terminal is connected to the wireless AP.
  • the router stops broadcasting the name of the wireless AP to the terminal, and the name may be a Service Set Identifier (SSID) of the wireless AP, or may be a name of a wireless AP set by the user, such as WX_3003.
  • SSID Service Set Identifier
  • WX_3003 WX_3003
  • the information when the prompt information for waiting for ranging is sent to the terminal, the information may be implemented by using, but not limited to, the following manner.
  • the router may send the prompt information waiting for ranging to the terminal in the form of a dialog box; or
  • the device may not respond to the request information of the access wireless AP sent by the terminal, but wait for the router to calculate the actual distance between the terminal and the router not greater than the distance threshold according to the signal strength of the terminal, and then access the terminal to the wireless AP. in.
  • the specific embodiments of the present invention are not limited.
  • the router stops broadcasting the name of the wireless AP to the terminal and applies it to the interactive game of the family. Hide the wireless AP in a corner of the home, Huawei, Xiaohua, Xiaohong three people to play, to see which terminal will access the wireless AP in the shortest time, the terminals of Huaweing, Xiaohua and Xiaohong need to be in
  • the wireless AP can be accessed only within a preset distance from the router.
  • the router can also be set within a preset distance between the terminal and the router, and the wireless network between the terminal and the wireless AP is established by shaking the terminal, so as to increase the user pair.
  • the router sets the number and mode of shaking the terminal, so that the terminal can quickly access the wireless AP.
  • the router can set the terminal to shake once, or set the terminal to shake twice.
  • the router determines whether the terminal will shake according to the number of times the terminal shakes.
  • the terminal accesses the wireless AP.
  • the router can virtualize multiple wireless APs, and each wireless AP has its unique name, the router can also broadcast the names of all the wireless APs to the terminal, so that the user needs to access the terminal.
  • the wireless AP in which multiple wireless APs virtualized by the same router are subnets created by the router, can access the terminal to the wireless network.
  • the router detects that the actual distance between the terminal and the router is not greater than the distance threshold, the router receives the wireless password of the corresponding wireless AP reported by the terminal, and authenticates the terminal according to the wireless password, if the wireless password reported by the terminal is correct. , the terminal is connected to the wireless AP.
  • the wireless password reported by the terminal is the name of the broadcast wireless AP
  • the router is encrypted by the public key and bound to the name.
  • the wireless password when the router broadcasts the wireless AP, binds the password of the wireless AP to the wireless AP name through an encryption algorithm, and when the terminal displays the name of the wireless AP, the wireless algorithm uses a decryption algorithm corresponding to the wireless AP encryption algorithm.
  • the wireless password bound to the AP name is decrypted, and the decrypted wireless password is reported to the router to enable the terminal to access the wireless AP.
  • the wireless password reported by the terminal is previously cached by the terminal.
  • the wireless password is passed, and the terminal after the authentication is recorded in the router local area, and the terminal that is authenticated by the router locally caches the wireless password of the access wireless AP, so that the subsequent access to the corresponding wireless AP is required without authentication. Can be connected to the corresponding wireless AP.
  • the user may manually input the wireless password and wait for the authentication of the router. If the input wireless password is correct, the terminal is used. Access to the wireless AP.
  • the router when the router detects that the actual distance between the terminal and the router is not greater than the preset distance, canceling the receiving of the wireless password and authenticating the terminal, and accessing the terminal to the wireless AP.
  • the cancellation of the wireless password reception and the authentication of the terminal mentioned here does not mean that any terminal can access the wireless AP unconditionally.
  • the router needs to calculate the terminal and the router according to the signal strength of the terminal. If the actual distance is not greater than the preset distance threshold, the terminal can be connected to the wireless AP; if the actual distance between the terminal and the router is less than the preset distance threshold, even if the router cancels the reception of the wireless password and The terminal's authentication cannot connect the terminal with the actual distance between the router and the router to the wireless AP.
  • the terminal can be connected to the wireless AP, and the router can also receive the client identifier reported by the terminal, authenticate the terminal according to the client identifier, and access the terminal to the wireless AP. After the router detects that the actual distance between the terminal and the router is not greater than the preset value, the terminal reports its own client identifier and waits for the authentication of the router. After the client identifier reported by the terminal passes the authentication of the router, the terminal will Automatically access to the wireless AP.
  • the client identifier may be identified by a Token or may be identified by a ticket, which is not limited by the embodiment of the present invention.
  • the router may virtualize a plurality of wireless APs, and divide the plurality of virtual APs that are virtualized into a primary wireless AP and a secondary wireless AP, wherein the terminal may log in to the router through the primary wireless AP.
  • the control interface can modify the configuration information of the router, the name of the wireless AP, etc., but the terminal cannot log in to the control interface of the router from the wireless AP; the primary wireless AP and the secondary wireless AP are both subnets created by the router, when there is When a visitor needs to access a wireless network, the terminal can be connected to the secondary wireless AP.
  • the embodiment of the present invention further provides a device for accessing a wireless network.
  • the device includes:
  • a detecting unit 21 configured to detect a signal strength of the terminal
  • the calculating unit 22 is configured to calculate an actual distance between the terminal and the router according to the signal strength detected by the detecting unit 21;
  • the comparison unit 23 is configured to compare the actual distance calculated by the calculation unit 22 with a preset distance threshold
  • the access unit 24 is configured to access the terminal into the wireless access node AP when the actual distance of the comparison unit 23 is not greater than the distance threshold.
  • the detecting unit 21 is further configured to: when the terminal sends the data signal, detect the received signal strength indicating the RSSI value when receiving the digital signal;
  • the calculating unit 22 is further configured to search for a distance value corresponding to the RSSI value detected by the detecting module in the preset first mapping relationship table to obtain an actual distance.
  • the apparatus further includes:
  • the searching unit 25 is configured to search for the transmit power of the corresponding terminal model after the detecting unit 21 detects the RSSI value when receiving the digital signal;
  • the calibration unit 26 is configured to calibrate the RSSI value according to the size of the transmission power searched by the searching unit 25.
  • the detecting unit 21 is further configured to: wirelessly bridge into the virtual AP created by the terminal, and detect a decibel dBm value of the virtual AP bridged by the bridging module;
  • the calculating unit 22 is further configured to search for a distance value of the dBm value detected by the corresponding detecting unit 21 in the preset second mapping relationship table to obtain an actual distance.
  • the apparatus further includes:
  • the stopping unit 27 is configured to stop broadcasting the name of the wireless AP to the terminal before the detecting unit 21 detects the signal strength of the terminal, so that the terminal does not display the name of the wireless AP.
  • the apparatus further includes:
  • the broadcasting unit 28 is configured to broadcast the names of all the wireless APs to the terminal when the actual distance that the comparison unit 23 compares is not greater than the distance threshold, so that the user selects the wireless AP that needs to be accessed on the terminal.
  • the access unit 24 accesses the terminal to the wireless AP, including:
  • the receiving module 241 is configured to receive a wireless password of the corresponding wireless AP reported by the terminal;
  • the authentication module 242 is configured to authenticate the terminal by receiving the wireless password according to the receiving module 241.
  • the access module 243 is configured to: after the authentication module 242 authenticates the terminal, access the terminal. Go to the wireless AP.
  • the wireless password reported by the terminal received by the receiving module 241 is a wireless password encrypted by the public key and bound to the name when the name of the wireless AP is broadcasted.
  • the wireless password reported by the terminal received by the receiving module 241 is a wireless password previously cached by the terminal.
  • the access unit 24 accesses the terminal to the wireless AP, including:
  • the canceling module 244 is configured to cancel the receiving of the wireless password and the authentication of the terminal, and access the terminal to the wireless AP;
  • the receiving module 241 is further configured to receive the client identifier reported by the terminal;
  • the authentication module 242 is further configured to: authenticate the terminal according to the client identifier received by the receiving module 241;
  • the access module 241 is further configured to: after the authentication module 242 authenticates the client identifier, access the terminal to the wireless AP.
  • the access unit 24 accesses the terminal to the wireless AP, including:
  • the establishing module 245 is configured to establish a virtual wireless AP, and the terminal cannot log in to the control interface of the router through the virtual wireless AP;
  • the access module 243 is further configured to access the terminal to the virtual wireless AP established by the establishing module 245.
  • the embodiment of the present invention further provides a system for wireless network access, where the system includes a terminal 31 and a router 32, wherein the terminal 31 includes The apparatus shown in any of the above Figures 2 to 8.
  • the router detects the signal strength of the terminal, calculates the actual distance between the terminal and the router according to the signal strength, and compares the calculated actual distance with a preset distance threshold. Yes, when the actual distance is not greater than the distance threshold, the terminal accesses the wireless AP.
  • the embodiment of the present invention determines whether the terminal is allowed to access the wireless AP by manually calculating the actual distance between the terminal and the router according to the signal strength of the terminal, and does not need to manually input the wireless password for authentication.
  • the device and system provided by the present invention can greatly simplify the operation process of the terminal accessing the wireless AP.
  • modules in the devices of the embodiments can be adaptively changed and placed in one or more devices different from the embodiment.
  • the modules or units or components of the embodiments may be combined into one module or unit or component, and further they may be divided into a plurality of sub-modules or sub-units or sub-components.
  • any combination of the features disclosed in the specification, including the accompanying claims, the abstract and the drawings, and any methods so disclosed, or All processes or units of the device are combined.
  • This specification including Each feature disclosed in the accompanying claims, the abstract and the drawings may be replaced by alternative features that provide the same, equivalent or similar purpose.
  • the various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof.
  • a microprocessor or digital signal processor may be used in practice to implement some or all of the functionality of some or all of the components of the wireless network access device in accordance with embodiments of the present invention.
  • the invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein.
  • a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
  • Figure 10 schematically illustrates a block diagram of a computing device for performing the method in accordance with the present invention.
  • the computing device conventionally includes a processor 1010 and a computer program product or computer readable medium in the form of a memory 1020.
  • the memory 1020 may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read Only Memory), an EPROM, a hard disk, or a ROM.
  • the memory 1020 has a memory space 1030 for executing program code 1031 of any of the above method steps.
  • storage space 1030 for program code may include various program code 1031 for implementing various steps in the above methods, respectively.
  • the program code can be read from or written to one or more computer program products.
  • Such computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks.
  • Such a computer program product is typically a portable or fixed storage unit as described with reference to FIG.
  • the storage unit may have storage segments, storage spaces, and the like that are similarly arranged to memory 1020 in the computing device of FIG.
  • the program code can be compressed, for example, in an appropriate form.
  • the storage unit comprises computer readable code 1031' for performing the steps of the method according to the invention, i.e. code which can be read by a processor such as 1010, which is carried by the computing device At the time of the line, the computing device is caused to perform the various steps in the method described above.
  • the present invention is applicable to computer systems/servers that can operate with numerous other general purpose or special purpose computing system environments or configurations.
  • Examples of well-known computing systems, environments, and/or configurations suitable for use with computer systems/servers include, but are not limited to, personal computer systems, server computer systems, thin clients, thick clients, handheld or laptop devices, based on Microprocessor systems, set-top boxes, programmable consumer electronics, networked personal computers, small computer systems, mainframe computer systems, and distributed cloud computing technology environments including any of the above, and the like.
  • the computer system/server can be described in the general context of computer system executable instructions (such as program modules) being executed by a computer system.
  • program modules may include routines, programs, target programs, components, logic, data structures, and the like that perform particular tasks or implement particular abstract data types.
  • the computer system/server can be implemented in a distributed cloud computing environment where tasks are performed by remote processing devices that are linked through a communication network.
  • program modules may be located on a local or remote computing system storage medium including storage devices.

Landscapes

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

Abstract

A method, apparatus and system for wireless network access are disclosed in the present invention, and are used for solve the problem that the operation process is complex when a visitor is accessing a wireless access point (AP). The method comprises that: the signal strength of a terminal is detected (101); the actual distance between the terminal and a router is calculated according to the signal strength (102); the actual distance is compared with a preset distance threshold value (103); if the actual distance is not larger than the distance threshold value, the terminal accesses the wireless access point (AP) (104).

Description

无线网络接入的方法、装置及系统Method, device and system for wireless network access 技术领域Technical field
本发明涉及通信技术领域,特别是涉及一种无线网络接入的方法、装置及系统。The present invention relates to the field of communications technologies, and in particular, to a method, device, and system for wireless network access.
背景技术Background technique
无线保真(Wireless Fidelity,WiFi)是一个当今使用最广泛的无线网络传输技术,WiFi是由无线接入点(Access Point,AP)和无线网卡组成的无线网络,无线AP俗称“热点”,任何一台装有无线网卡的智能手机、平板电脑或笔记本电脑等用户终端都可以通过AP去分享网络资源。Wireless Fidelity (WiFi) is one of the most widely used wireless network transmission technologies. WiFi is a wireless network composed of wireless access points (APs) and wireless network cards. Wireless APs are commonly called "hot spots". Any A user terminal such as a smartphone, tablet or laptop with a wireless network card can share network resources through the AP.
家庭网络中,主人通常会对无线AP设置密码,当访客的用户终端检测到无线AP的信号时,访客需要手动选择需要加入的AP名称,并且手动输入无线密码进行鉴权。实际应用中,手动选取AP名称及输入无线密码的方式操作起来较为繁琐,并且密码输入的过程非常容易出错。In the home network, the host usually sets a password for the wireless AP. When the user terminal of the visitor detects the signal of the wireless AP, the visitor needs to manually select the AP name to be joined, and manually input the wireless password for authentication. In practical applications, manually selecting the AP name and entering the wireless password is cumbersome to operate, and the process of password input is very error-prone.
发明内容Summary of the invention
有鉴于此,本发明实施例提供一种无线网络接入的方法、装置及系统,主要目的在于解决访客接入无线AP时操作过程繁琐的问题。In view of this, the embodiments of the present invention provide a method, a device, and a system for accessing a wireless network, and the main purpose thereof is to solve the problem that the operation process is cumbersome when a visitor accesses the wireless AP.
依据本发明一个方面,提供了一种无线网络接入的方法,包括:According to an aspect of the present invention, a method for wireless network access is provided, including:
检测终端的信号强度;Detecting the signal strength of the terminal;
根据信号强度计算终端到路由器之间的实际距离;Calculate the actual distance between the terminal and the router based on the signal strength;
将实际距离与预设的距离阈值进行比对;Comparing the actual distance with a preset distance threshold;
若实际距离不大于距离阈值,则将终端接入到无线接入节点AP中。If the actual distance is not greater than the distance threshold, the terminal is connected to the wireless access node AP.
根据本发明的另一个方面,提供了一种无线网络接入的装置,包括:According to another aspect of the present invention, an apparatus for wireless network access is provided, including:
检测单元,用于检测终端的信号强度;a detecting unit, configured to detect a signal strength of the terminal;
计算单元,用于根据检测单元检测的信号强度计算终端到路由器之间的实际距离;a calculating unit, configured to calculate an actual distance between the terminal and the router according to the signal strength detected by the detecting unit;
比对单元,用于将计算单元计算的实际距离与预设的距离阈值进行比 对;The comparison unit is configured to compare the actual distance calculated by the calculation unit with a preset distance threshold Correct;
接入单元,用于当比对单元比对的实际距离不大于距离阈值时,将终端接入到无线接入节点AP中。The access unit is configured to access the terminal to the wireless access node AP when the actual distance of the comparison unit is not greater than the distance threshold.
根据本发明的另一个方面,提供了一种无线网络接入的系统,所示系统包括终端及路由器,其中,所述终端包括如前所述的装置。According to another aspect of the present invention, a system for wireless network access is provided, the system comprising a terminal and a router, wherein the terminal comprises means as previously described.
根据本发明的另一个方面,提出了一种计算机程序,包括计算机可读代码,当所述计算机可读代码在计算设备上运行时,导致所述计算设备执行上文所述的无线网络接入的方法。According to another aspect of the present invention, a computer program is presented, comprising computer readable code that, when executed on a computing device, causes the computing device to perform the wireless network access described above Methods.
根据本发明的另一方面,提出了一种计算机可读介质,其中存储了上述的计算机程序。According to another aspect of the present invention, a computer readable medium is proposed, wherein the computer program described above is stored.
借由上述技术方案,本发明提供的无线网络接入的方法、装置及系统,路由器检测终端的信号强度,根据信号强度计算终端到路由器之间的实际距离,并将计算得到的实际距离与预设的距离阈值进行比对,当实际距离不大于距离阈值时,终端接入到无线AP中。与现有技术相比,本发明通过路由器根据终端的信号强度计算得到的终端与路由器之间的实际距离,判断是否允许终端接入无线AP,而无需手动输入无线密码进行鉴权,因此,本发明提供的方法能够大大简化终端接入无线AP的操作过程。According to the above technical solution, the method, device and system for wireless network access provided by the invention, the router detects the signal strength of the terminal, calculates the actual distance between the terminal and the router according to the signal strength, and calculates the calculated actual distance and the pre- The distance threshold is compared. When the actual distance is not greater than the distance threshold, the terminal accesses the wireless AP. Compared with the prior art, the present invention determines whether the terminal is allowed to access the wireless AP by manually calculating the actual distance between the terminal and the router according to the signal strength of the terminal, and thus does not need to manually input the wireless password for authentication. The method provided by the invention can greatly simplify the operation process of the terminal accessing the wireless AP.
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solutions of the present invention, and the above-described and other objects, features and advantages of the present invention can be more clearly understood. Specific embodiments of the invention are set forth below.
附图说明DRAWINGS
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those skilled in the art from a The drawings are only for the purpose of illustrating the preferred embodiments and are not to be construed as limiting. Throughout the drawings, the same reference numerals are used to refer to the same parts. In the drawing:
图1示出了本发明实施例提供的一种无线网络接入的方法的流程图;FIG. 1 is a flowchart of a method for accessing a wireless network according to an embodiment of the present invention;
图2示出了本发明实施例提供的一种无线网络接入的装置的组成框图;2 is a block diagram showing the structure of an apparatus for accessing a wireless network according to an embodiment of the present invention;
图3示出了本发明实施例提供的另一种无线网络接入的装置的组成框图; FIG. 3 is a structural block diagram of another apparatus for accessing a wireless network according to an embodiment of the present invention;
图4示出了本发明实施例提供的另一种无线网络接入的装置的组成框图;FIG. 4 is a structural block diagram of another apparatus for accessing a wireless network according to an embodiment of the present invention;
图5示出了本发明实施例提供的另一种无线网络接入的装置的组成框图;FIG. 5 is a structural block diagram of another apparatus for accessing a wireless network according to an embodiment of the present invention;
图6示出了本发明实施例提供的另一种无线网络接入的装置的组成框图;FIG. 6 is a structural block diagram of another apparatus for accessing a wireless network according to an embodiment of the present invention;
图7示出了本发明实施例提供的另一种无线网络接入的装置的组成框图;FIG. 7 is a structural block diagram of another apparatus for accessing a wireless network according to an embodiment of the present invention;
图8示出了本发明实施例提供的另一种无线网络接入的装置的组成框图;FIG. 8 is a block diagram showing the structure of another apparatus for accessing a wireless network according to an embodiment of the present invention;
图9示出了本发明实施例提供的一种无线网络接入的系统的组成框图;FIG. 9 is a structural block diagram of a system for accessing a wireless network according to an embodiment of the present invention;
图10示意性地示出了用于执行根据本发明的方法的计算设备的框图;以及Figure 10 schematically shows a block diagram of a computing device for performing the method according to the invention;
图11示意性地示出了用于保持或者携带实现根据本发明的方法的程序代码的存储单元。Fig. 11 schematically shows a storage unit for holding or carrying program code implementing the method according to the invention.
具体实施例Specific embodiment
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While the embodiments of the present invention have been shown in the drawings, the embodiments Rather, these embodiments are provided so that this disclosure will be more fully understood and the scope of the disclosure will be fully disclosed.
本发明实施例提供一种无线网络接入的方法,如图1所示,该方法包括:The embodiment of the invention provides a method for wireless network access. As shown in FIG. 1 , the method includes:
101、检测终端的信号强度。101. Detect the signal strength of the terminal.
当终端需要接入无线网络时,首先需要打开其自身设备上接入无线网络的信号开关,以便路由器能根据终端发出的信号检测到该终端,路由器基于终端发出的信号,检测终端的信号强度。其中,步骤101中所述的终端为支持无线上网的终端,本发明实施例所采用的终端可以为:智能手机、个人计算机(Personal Computer,PC)、平板电脑等等,具体的本发明实施例不进行限制。When the terminal needs to access the wireless network, it first needs to open the signal switch of the wireless network on its own device, so that the router can detect the terminal according to the signal sent by the terminal, and the router detects the signal strength of the terminal based on the signal sent by the terminal. The terminal in the step 101 is a terminal that supports wireless Internet access, and the terminal used in the embodiment of the present invention may be: a smart phone, a personal computer (PC), a tablet computer, etc., and the specific embodiment of the present invention. No restrictions are imposed.
102、根据信号强度计算终端到路由器之间的实际距离。 102. Calculate the actual distance between the terminal and the router according to the signal strength.
在步骤101检测终端的信号强度之后,路由器根据该信号强度计算终端与路由器之间的实际距离。本发明实施例在计算终端到路由器之间的实际距离时,不排除外界干扰及不同终端机型造成的误差。After detecting the signal strength of the terminal in step 101, the router calculates the actual distance between the terminal and the router based on the signal strength. When calculating the actual distance between the terminal and the router, the embodiment of the present invention does not exclude external interference and errors caused by different terminal models.
103、将实际距离与预设的距离阈值进行比对。103. Compare the actual distance with a preset distance threshold.
在步骤102计算出的实际距离后,与预设的距离阈值进行比对,设置的距离阈值越小说明终端需要与路由器的实际距离越近才能接入到无线网络中。其中,所述预设的距离阈值是人为设置的,在设置距离阈值时可以采用但不局限于以下的方式实现,例如,设置距离阈值为40厘米,或者也可以设置距离阈值为10厘米,具体的本发明实施例对此不进行限制。After the actual distance calculated in step 102 is compared with the preset distance threshold, the smaller the set distance threshold is, the closer the terminal needs to be to the actual distance of the router to access the wireless network. The preset distance threshold is manually set, and may be implemented by using, but not limited to, setting a distance threshold, for example, setting a distance threshold of 40 cm, or setting a distance threshold of 10 cm. The embodiment of the present invention does not limit this.
104、若实际距离不大于距离阈值,则将终端接入到无线接入节点AP中。104. If the actual distance is not greater than the distance threshold, the terminal is connected to the wireless access node AP.
在确保能够简化终端接入无线AP时的操作程序的同时,还要确保无线AP的安全,为了防止其他终端接入到该无线AP中,路由器应该根据步骤103中的比对结果进行鉴权,若实际距离不大于距离阈值,则将终端接入到无线AP中,若实际距离大于距离阈值,则不能将终端接入到无线AP中。While ensuring that the operation procedure when the terminal accesses the wireless AP can be simplified, the security of the wireless AP is also ensured. In order to prevent other terminals from accessing the wireless AP, the router should perform the authentication according to the comparison result in step 103. If the actual distance is not greater than the distance threshold, the terminal is connected to the wireless AP. If the actual distance is greater than the distance threshold, the terminal cannot be connected to the wireless AP.
现有技术中,对于家庭场景而言,当家中有众多访客时,主人需要手动逐一在每个客人的手机、平板电脑等等终端上重复输入无线AP的密码,客人越多,主人的重复劳动量就越大,并且密码输入的过程非常容易出错。为简化访客接入无线AP的过程,本发明实施例提供的无线网络接入的方法,由路由器检测终端的信号强度,根据信号强度计算终端到路由器之间的实际距离,并将计算得到的实际距离与预设的距离阈值进行比对,当实际距离不大于距离阈值时,终端接入到无线AP中。与现有技术相比,本发明实施例通过路由器根据终端的信号强度计算得到的终端与路由器之间的实际距离,判断是否允许终端接入无线AP,而无需手动输入无线密码进行鉴权,因此,本发明实施例提供的方法能够大大简化终端接入无线AP的操作过程。In the prior art, for a family scene, when there are many visitors in the home, the owner needs to manually input the password of the wireless AP on each guest's mobile phone, tablet, etc., and the more guests, the repeated work of the owner. The amount is larger, and the process of password entry is very error-prone. In order to simplify the process of accessing a wireless AP by a visitor, the method for accessing a wireless network provided by the embodiment of the present invention detects the signal strength of the terminal by the router, calculates the actual distance between the terminal and the router according to the signal strength, and calculates the actual distance calculated. The distance is compared with a preset distance threshold. When the actual distance is not greater than the distance threshold, the terminal accesses the wireless AP. Compared with the prior art, the embodiment of the present invention determines whether the terminal is allowed to access the wireless AP by manually calculating the actual distance between the terminal and the router according to the signal strength of the terminal, and does not need to manually input the wireless password for authentication. The method provided by the embodiment of the present invention can greatly simplify the operation process of the terminal accessing the wireless AP.
进一步的,作为对上述实施例的细化和扩展,上述步骤101在检测终端的信号强度时,路由器针对不同的信号类型采用不同检测终端的信号强度的方法。本发明实施例在检测终端的信号强度时,采用但不局限于以下的方法:Further, as a refinement and extension of the above embodiment, when the signal strength of the terminal is detected in the above step 101, the router adopts different methods for detecting the signal strength of the terminal for different signal types. When detecting the signal strength of the terminal, the embodiment of the present invention adopts, but is not limited to, the following methods:
方式一:method one:
当终端发送数据信号时,检测接收数字信号时的接收信号强度指示RSSI值。 When the terminal transmits the data signal, the received signal strength when detecting the received digital signal indicates the RSSI value.
路由器在检测终端的信号强度都是用统一的方法,信号强度又根据不同终端的发射功率有所差异,而不同的终端机型对应不同发射功率,因此在路由器检测接收数字信号时的RSSI值之后,查找对应终端机型的发射功率,根据发射功率的大小对RSSI值进行校准。示例性的,假设机型为M01的终端1的发射功率为40mW,机型为M030的终端2的发射功率为5mW,当终端1和终端2在距离路由器相同的位置时,路由器会检测到终端1的信号强度比终端2的信号强度大;同理的,当路由器检测到终端3和终端4的信号强度相同,且终端3与终端4发射功率相同时,则终端3和终端4与路由器之间的实际距离相同,但是不排除终端3的发射功率与终端4的发射功率不相同的情况,当终端3的发射功率比终端4的发射功率大时,终端3与路由器之间的实际距离要比终端4与路由器之间的实际距离大,当终端3的发射功率比终端4的发射功率小时,终端3与路由器之间的实际距离要比终端4与路由器之间的实际距离要小,进而路由器在根据信号强度计算终端到路由器之间的实际距离时会出现误差。因此,针对如上所述的问题,本发明实施例采用根据不同终端机型对应于不同发射功率的大小,对RSSI值进行校准。The signal strength of the router in detecting the terminal is a unified method, and the signal strength is different according to the transmission power of different terminals, and different terminal models correspond to different transmission powers, so after the router detects the RSSI value when receiving the digital signal Find the transmit power of the corresponding terminal model and calibrate the RSSI value according to the transmit power. Exemplarily, it is assumed that the transmission power of the terminal 1 of the model M01 is 40 mW, and the transmission power of the terminal 2 of the model M030 is 5 mW. When the terminal 1 and the terminal 2 are in the same position from the router, the router detects the terminal. The signal strength of 1 is greater than the signal strength of terminal 2; similarly, when the router detects that the signal strengths of terminal 3 and terminal 4 are the same, and the transmission power of terminal 3 and terminal 4 are the same, then terminal 3 and terminal 4 and the router The actual distance between the terminals is the same, but the transmission power of the terminal 3 is not the same as the transmission power of the terminal 4. When the transmission power of the terminal 3 is larger than the transmission power of the terminal 4, the actual distance between the terminal 3 and the router is Compared with the actual distance between the terminal 4 and the router, when the transmission power of the terminal 3 is smaller than the transmission power of the terminal 4, the actual distance between the terminal 3 and the router is smaller than the actual distance between the terminal 4 and the router, and further The router will have an error when calculating the actual distance between the terminal and the router based on the signal strength. Therefore, for the problem as described above, the embodiment of the present invention calibrates the RSSI value according to the size of different transmission powers of different terminal models.
在实际的运行过程中,路由器会根据终端发送的数据信号,确定该终端的机型,并根据终端机型与发射功率对照表查找该终端对应的发射功率,如表1所示,表1示出了终端机型与发射功率对照表。In the actual running process, the router determines the model of the terminal according to the data signal sent by the terminal, and searches for the corresponding transmit power of the terminal according to the terminal model and the transmit power comparison table, as shown in Table 1, Table 1 shows A comparison table of terminal models and transmission powers is available.
表1Table 1
终端机型Terminal model 发射功率Transmit power
M01M01 40mW40mW
M030M030 5mW5mW
Zw8050Zw8050 60mW60mW
SX673SX673 3mW3mW
H4H4 21mW21mW
Mh370Mh370 25mW25mW
路由器根据终端发射功率的大小对RSSI值进行校准之后,获取终端当前的RSSI值,并根据终端当前的RSSI值确定终端的信号强度,在路由器本地保存一个预设的第一映射关系表,获取终端与路由器之间的实际距离,其中,该表中记录了RSSI值与实际距离之间的一一对应关系。 After the router calibrates the RSSI value according to the transmission power of the terminal, the current RSSI value of the terminal is obtained, and the signal strength of the terminal is determined according to the current RSSI value of the terminal, and a preset first mapping relationship table is locally saved in the router to obtain the terminal. The actual distance from the router, where the table has a one-to-one correspondence between the RSSI value and the actual distance.
其中,路由器在根据终端机型与发射功率对照表查找该终端对应的发射功率时,本发明实施例可以采用但不局限于以下的方式实现,路由器在终端机型与发射功率对照表中逐次查找终端对应的发射功率;或者,通过二分法的方式在终端机型与发射功率对照表中查找终端对应的发射功率。具体的本发明实施例不进行限制。When the router searches for the corresponding transmit power of the terminal according to the terminal model and the transmit power comparison table, the embodiment of the present invention can be implemented by using, but not limited to, the following manner: the router sequentially searches in the terminal model and the transmit power comparison table. The corresponding transmit power of the terminal; or, by means of the binary method, find the transmit power corresponding to the terminal in the terminal model and the transmit power comparison table. The specific embodiments of the present invention are not limited.
方式二:Method 2:
无线桥接到终端创建的虚拟AP中,检测虚拟AP的分贝dBm值。The wireless bridge is connected to the virtual AP created by the terminal to detect the decibel dBm value of the virtual AP.
路由器会自动扫描周围的无线AP,并查看能够桥接的无线AP,在路由器进行无线AP扫描过程中获取无线AP中携带的dBm值,根据所述dBm值可以检测出终端的信号强度,根据信号强度计算所述终端到路由器之间的实际距离。在具体实施时,首先终端创建虚拟AP,路由器桥接到终端创建的虚拟AP中,并检测dBm值。其中,所述dBm值与RSSI值都可以用来表示终端的信号强度,其中,dBm值与RSSI值可以进行相互转换。The router automatically scans the surrounding wireless APs and checks the wireless APs that can be bridged. The router obtains the dBm value carried in the wireless AP during the wireless AP scanning process. The signal strength of the terminal can be detected according to the dBm value. Calculate the actual distance between the terminal and the router. In a specific implementation, the terminal first creates a virtual AP, and the router bridges the virtual AP created by the terminal, and detects the dBm value. The dBm value and the RSSI value can both be used to indicate the signal strength of the terminal, wherein the dBm value and the RSSI value can be converted into each other.
路由器获取终端当前的dBm值,并根据终端当前的dBm值确定终端的信号强度,在路由器本地保存一个预设的第二映射关系表,获取终端与路由器之间的实际距离,其中,该表中记录了dBm值与实际距离之间的一一对应关系。The router obtains the current dBm value of the terminal, and determines the signal strength of the terminal according to the current dBm value of the terminal, and saves a preset second mapping relationship table locally on the router to obtain the actual distance between the terminal and the router, where the table A one-to-one correspondence between the dBm value and the actual distance is recorded.
可选的,为了进一步的确保无线AP的安全,路由器在检测终端的信号强度之前,停止向终端广播无线AP的名称,以使得终端不显示无线AP的名称。在本发明实施例的一种实现方式中,路由器停止向终端广播无线AP的名称时,路由器可以继续检测到终端的信号强度,当路由器根据信号强度计算出终端与路由器之间的实际距离不大于所述距离阈值时,路由器广播无线AP的名称,并将终端接入到无线AP中;在本发明实施例的另一种实现方式中,路由器停止向终端广播无线AP的名称,且终端知道该无线AP的名称时,终端用户可以手动输入无线AP的名称,并向路由器发送接入无线AP的请求信息,路由器在接收到接入无线AP的请求信息时,向终端发送等待测距的提示信息,当路由器根据信号强度计算出终端与路由器之间的实际距离不大于所述距离阈值时,将终端接入到无线AP中。其中,路由器停止向终端广播无线AP的名称,所述名称可以是无线AP的服务集标识(Service Set Identifier,SSID),也可以是用户人为设置的无线AP的名称,如WX_3003等, 本发明实施例对无线AP的名称不进行限制。Optionally, in order to further ensure the security of the wireless AP, the router stops broadcasting the name of the wireless AP to the terminal before detecting the signal strength of the terminal, so that the terminal does not display the name of the wireless AP. In an implementation manner of the embodiment of the present invention, when the router stops broadcasting the name of the wireless AP to the terminal, the router may continue to detect the signal strength of the terminal. When the router calculates the actual distance between the terminal and the router according to the signal strength, the actual distance is not greater than In the distance threshold, the router broadcasts the name of the wireless AP and accesses the terminal to the wireless AP. In another implementation manner of the embodiment of the present invention, the router stops broadcasting the name of the wireless AP to the terminal, and the terminal knows the When the name of the wireless AP is used, the terminal user can manually input the name of the wireless AP and send the request information for accessing the wireless AP to the router. When receiving the request information for accessing the wireless AP, the router sends a message waiting for ranging to the terminal. When the router calculates, according to the signal strength, that the actual distance between the terminal and the router is not greater than the distance threshold, the terminal is connected to the wireless AP. The router stops broadcasting the name of the wireless AP to the terminal, and the name may be a Service Set Identifier (SSID) of the wireless AP, or may be a name of a wireless AP set by the user, such as WX_3003. The embodiment of the present invention does not limit the name of the wireless AP.
其中,本发明实施例在向终端发送等待测距的提示信息时可以采用但不局限于以下的方式实现,例如,路由器可以采用以对话框的形式向终端发送等待测距的提示信息;或者,也可以不对终端发送的接入无线AP的请求信息进行响应,而是等待路由器根据终端的信号强度计算出终端与路由器之间的实际距离不大于所述距离阈值之后,将终端接入到无线AP中。具体的本发明实施例不进行限定。In the embodiment of the present invention, when the prompt information for waiting for ranging is sent to the terminal, the information may be implemented by using, but not limited to, the following manner. For example, the router may send the prompt information waiting for ranging to the terminal in the form of a dialog box; or The device may not respond to the request information of the access wireless AP sent by the terminal, but wait for the router to calculate the actual distance between the terminal and the router not greater than the distance threshold according to the signal strength of the terminal, and then access the terminal to the wireless AP. in. The specific embodiments of the present invention are not limited.
在实际应用场景中,路由器停止向终端广播无线AP的名称应用于家庭的互动游戏中。将无线AP隐藏在家中的某个角落里,小明、小花、小红三人进行比赛,查看哪个终端会在最短的时间内接入到无线AP,小明、小花、小红三人的终端需要在与路由器的预设距离内才能够接入无线AP,此外,路由器也可以设置在终端与路由器的预设距离内,通过摇动终端的方式建立终端与无线AP之间的无线网络,以便增加用户对简化接入无线AP操作程序的体验。其中,路由器对摇动终端的次数和方式进行设置,以便能够使得终端快速的接入到无线AP中,路由器可以设置终端摇动一次,也可以设置终端摇动两次,路由器根据终端摇动的次数判断是否将终端接入到无线AP中。In the actual application scenario, the router stops broadcasting the name of the wireless AP to the terminal and applies it to the interactive game of the family. Hide the wireless AP in a corner of the home, Xiaoming, Xiaohua, Xiaohong three people to play, to see which terminal will access the wireless AP in the shortest time, the terminals of Xiaoming, Xiaohua and Xiaohong need to be in The wireless AP can be accessed only within a preset distance from the router. In addition, the router can also be set within a preset distance between the terminal and the router, and the wireless network between the terminal and the wireless AP is established by shaking the terminal, so as to increase the user pair. Simplify the experience of accessing wireless AP operating procedures. The router sets the number and mode of shaking the terminal, so that the terminal can quickly access the wireless AP. The router can set the terminal to shake once, or set the terminal to shake twice. The router determines whether the terminal will shake according to the number of times the terminal shakes. The terminal accesses the wireless AP.
可选的,由于路由器可以虚拟出多个无线AP,且每个无线AP都有其唯一的名称,因此路由器也可以向终端广播所有的无线AP的名称,以使得用户在终端上选择需要接入的无线AP,其中,由同一个路由器虚拟的多个无线AP都是由路由器创建的子网,都可以将终端接入到无线网络中。Optionally, since the router can virtualize multiple wireless APs, and each wireless AP has its unique name, the router can also broadcast the names of all the wireless APs to the terminal, so that the user needs to access the terminal. The wireless AP, in which multiple wireless APs virtualized by the same router are subnets created by the router, can access the terminal to the wireless network.
进一步的,当路由器检测到终端与路由器之间的实际距离不大于距离阈值时,路由器接收终端上报的对应无线AP的无线密码,在根据无线密码对终端进行鉴权,若终端上报的无线密码正确,则将该终端接入到无线AP中。为了能够更好的简化终端接入无线AP的操作程序,在本发明实施例的一种实现方式中,终端上报的无线密码为广播无线AP的名称时,路由器通过公钥加密并绑定于名称的无线密码,路由器在广播无线AP时,将该无线AP的密码通过加密算法绑定到无线AP名称中,终端显示到该无线AP的名称时,通过与无线AP加密算法对应的解密算法对无线AP名称中绑定的无线密码进行解密,将解密后的无线密码上报给路由器,实现终端接入到无线AP中。在本发明实施例的另一种实现方式中,终端上报的无线密码为终端此前缓存 过的无线密码,路由器本地中记录通过鉴权之后的终端,而通过路由器鉴权之后的终端本地会缓存接入无线AP的无线密码,以便后续需要接入对应的无线AP时,无需鉴权就可接入到对应的无线AP中。在本发明实施例的第三种实现方式中,当终端中显示出无线AP的名称时,用户可以采用手动输入无线密码的方式,等待路由器的鉴权,若输入的无线密码正确,则将终端接入到无线AP中。Further, when the router detects that the actual distance between the terminal and the router is not greater than the distance threshold, the router receives the wireless password of the corresponding wireless AP reported by the terminal, and authenticates the terminal according to the wireless password, if the wireless password reported by the terminal is correct. , the terminal is connected to the wireless AP. In an implementation manner of the embodiment of the present invention, when the wireless password reported by the terminal is the name of the broadcast wireless AP, the router is encrypted by the public key and bound to the name. The wireless password, when the router broadcasts the wireless AP, binds the password of the wireless AP to the wireless AP name through an encryption algorithm, and when the terminal displays the name of the wireless AP, the wireless algorithm uses a decryption algorithm corresponding to the wireless AP encryption algorithm. The wireless password bound to the AP name is decrypted, and the decrypted wireless password is reported to the router to enable the terminal to access the wireless AP. In another implementation manner of the embodiment of the present invention, the wireless password reported by the terminal is previously cached by the terminal. The wireless password is passed, and the terminal after the authentication is recorded in the router local area, and the terminal that is authenticated by the router locally caches the wireless password of the access wireless AP, so that the subsequent access to the corresponding wireless AP is required without authentication. Can be connected to the corresponding wireless AP. In a third implementation manner of the embodiment of the present invention, when the name of the wireless AP is displayed in the terminal, the user may manually input the wireless password and wait for the authentication of the router. If the input wireless password is correct, the terminal is used. Access to the wireless AP.
可选的,当路由器检测到终端与路由器之间的实际距离不大于距离预设值时,取消对无线密码的接收及对终端的鉴权,并将终端接入到无线AP中。这里所说的取消对无线密码的接收及对终端的鉴权并不是说任何终端都可以无条件的接入到无线AP中,如前所述的,路由器需要根据终端的信号强度计算出终端与路由器的实际距离是否不大于预设的距离阈值之后,才能够将终端接入到无线AP中;若终端与路由器之间的实际距离小于预设的距离阈值,即使路由器取消对无线密码的接收及对终端的鉴权,也不能将与路由器之间的实际距离小于距离阈值的终端接入到无线AP中。Optionally, when the router detects that the actual distance between the terminal and the router is not greater than the preset distance, canceling the receiving of the wireless password and authenticating the terminal, and accessing the terminal to the wireless AP. The cancellation of the wireless password reception and the authentication of the terminal mentioned here does not mean that any terminal can access the wireless AP unconditionally. As mentioned above, the router needs to calculate the terminal and the router according to the signal strength of the terminal. If the actual distance is not greater than the preset distance threshold, the terminal can be connected to the wireless AP; if the actual distance between the terminal and the router is less than the preset distance threshold, even if the router cancels the reception of the wireless password and The terminal's authentication cannot connect the terminal with the actual distance between the router and the router to the wireless AP.
将终端接入到无线AP中还可以采用路由器接收终端上报的客户端标识,根据客户端标识对终端进行鉴权并将终端接入到无线AP中。基于路由器检测到终端与路由器之间的实际距离不大于距离预设值,终端上报其自身的客户端标识,等待路由器的鉴权,当终端上报的客户端标识通过路由器的鉴权之后,终端会自动接入无线AP中。其中,所述客户端标识可以通过Token进行标识,也可以通过ticket进行标识,具体的本发明实施例对此不进行限制。The terminal can be connected to the wireless AP, and the router can also receive the client identifier reported by the terminal, authenticate the terminal according to the client identifier, and access the terminal to the wireless AP. After the router detects that the actual distance between the terminal and the router is not greater than the preset value, the terminal reports its own client identifier and waits for the authentication of the router. After the client identifier reported by the terminal passes the authentication of the router, the terminal will Automatically access to the wireless AP. The client identifier may be identified by a Token or may be identified by a ticket, which is not limited by the embodiment of the present invention.
进一步的,如前所述的,路由器可以虚拟出多个无线AP,将虚拟出的多个无线AP分为主无线AP和从无线AP,其中,终端通过所述主无线AP可以登录到路由器的控制界面,能够对路由器的配置信息、无线AP的名称等进行修改,但终端无法通过从无线AP登录路由器的控制界面;所述主无线AP与从无线AP都是路由器创建的子网,当有访客需要访问无线网络时,可以将终端接入到从无线AP中。Further, as described above, the router may virtualize a plurality of wireless APs, and divide the plurality of virtual APs that are virtualized into a primary wireless AP and a secondary wireless AP, wherein the terminal may log in to the router through the primary wireless AP. The control interface can modify the configuration information of the router, the name of the wireless AP, etc., but the terminal cannot log in to the control interface of the router from the wireless AP; the primary wireless AP and the secondary wireless AP are both subnets created by the router, when there is When a visitor needs to access a wireless network, the terminal can be connected to the secondary wireless AP.
进一步的,作为对上述方法的实现,本发明实施例还提供了一种无线网络接入的装置,如图2所示,该装置包括:Further, as an implementation of the foregoing method, the embodiment of the present invention further provides a device for accessing a wireless network. As shown in FIG. 2, the device includes:
检测单元21,用于检测终端的信号强度; a detecting unit 21, configured to detect a signal strength of the terminal;
计算单元22,用于根据检测单元21检测的信号强度计算终端到路由器之间的实际距离;The calculating unit 22 is configured to calculate an actual distance between the terminal and the router according to the signal strength detected by the detecting unit 21;
比对单元23,用于将计算单元22计算的实际距离与预设的距离阈值进行比对;The comparison unit 23 is configured to compare the actual distance calculated by the calculation unit 22 with a preset distance threshold;
接入单元24,用于当比对单元23比对的实际距离不大于距离阈值时,将终端接入到无线接入节点AP中。The access unit 24 is configured to access the terminal into the wireless access node AP when the actual distance of the comparison unit 23 is not greater than the distance threshold.
进一步的,检测单元21还用于,当终端发送数据信号时,检测接收数字信号时的接收信号强度指示RSSI值;Further, the detecting unit 21 is further configured to: when the terminal sends the data signal, detect the received signal strength indicating the RSSI value when receiving the digital signal;
计算单元22还用于,在预设的第一映射关系表中查找对应检测模块检测的RSSI值的距离值,获得实际距离。The calculating unit 22 is further configured to search for a distance value corresponding to the RSSI value detected by the detecting module in the preset first mapping relationship table to obtain an actual distance.
进一步的,如图3所示,装置进一步包括:Further, as shown in FIG. 3, the apparatus further includes:
查找单元25,用于在检测单元21检测接收数字信号时的RSSI值之后,查找对应终端机型的发射功率;The searching unit 25 is configured to search for the transmit power of the corresponding terminal model after the detecting unit 21 detects the RSSI value when receiving the digital signal;
校准单元26,用于根据查找单元25查找的发射功率的大小对RSSI值进行校准。The calibration unit 26 is configured to calibrate the RSSI value according to the size of the transmission power searched by the searching unit 25.
进一步的,检测单元21还用于,无线桥接到终端创建的虚拟AP中,检测桥接模块桥接的虚拟AP的分贝dBm值;Further, the detecting unit 21 is further configured to: wirelessly bridge into the virtual AP created by the terminal, and detect a decibel dBm value of the virtual AP bridged by the bridging module;
计算单元22还用于,在预设的第二映射关系表中查找对应检测单元21检测的dBm值的距离值,获得实际距离。The calculating unit 22 is further configured to search for a distance value of the dBm value detected by the corresponding detecting unit 21 in the preset second mapping relationship table to obtain an actual distance.
进一步的,如图4所示,装置进一步包括:Further, as shown in FIG. 4, the apparatus further includes:
停止单元27,用于在检测单元21检测终端的信号强度之前,停止向终端广播无线AP的名称,以使得终端不显示无线AP的名称。The stopping unit 27 is configured to stop broadcasting the name of the wireless AP to the terminal before the detecting unit 21 detects the signal strength of the terminal, so that the terminal does not display the name of the wireless AP.
进一步的,如图5所示,装置进一步包括:Further, as shown in FIG. 5, the apparatus further includes:
广播单元28,用于当比对单元23比对的实际距离不大于距离阈值时,向终端广播所有无线AP的名称,以使得用户在终端上选择需要接入的无线AP。The broadcasting unit 28 is configured to broadcast the names of all the wireless APs to the terminal when the actual distance that the comparison unit 23 compares is not greater than the distance threshold, so that the user selects the wireless AP that needs to be accessed on the terminal.
进一步的,如图6所示,接入单元24将终端接入到无线AP中,包括:Further, as shown in FIG. 6, the access unit 24 accesses the terminal to the wireless AP, including:
接收模块241,用于接收终端上报的对应无线AP的无线密码;The receiving module 241 is configured to receive a wireless password of the corresponding wireless AP reported by the terminal;
鉴权模块242,用于在根据接收模块241接收无线密码对终端进行鉴权;The authentication module 242 is configured to authenticate the terminal by receiving the wireless password according to the receiving module 241.
接入模块243,用于在鉴权模块242对终端进行鉴权之后,将终端接入 到无线AP中。The access module 243 is configured to: after the authentication module 242 authenticates the terminal, access the terminal. Go to the wireless AP.
进一步的,接收模块241接收的终端上报的无线密码为在广播无线AP的名称时,通过公钥加密并绑定于名称的无线密码。Further, the wireless password reported by the terminal received by the receiving module 241 is a wireless password encrypted by the public key and bound to the name when the name of the wireless AP is broadcasted.
进一步的,接收模块241接收的终端上报的无线密码为终端此前缓存的无线密码。Further, the wireless password reported by the terminal received by the receiving module 241 is a wireless password previously cached by the terminal.
进一步的,如图7所示,接入单元24将终端接入到无线AP中,包括:Further, as shown in FIG. 7, the access unit 24 accesses the terminal to the wireless AP, including:
取消模块244,用于取消对无线密码的接收及对终端的鉴权,并将终端接入到无线AP中;The canceling module 244 is configured to cancel the receiving of the wireless password and the authentication of the terminal, and access the terminal to the wireless AP;
接收模块241还用于,接收终端上报的客户端标识;The receiving module 241 is further configured to receive the client identifier reported by the terminal;
鉴权模块242还用于,根据接收模块241接收的客户端标识对终端进行鉴权;The authentication module 242 is further configured to: authenticate the terminal according to the client identifier received by the receiving module 241;
接入模块241还用于,在鉴权模块242对客户端标志进行鉴权之后,将终端接入到无线AP中。The access module 241 is further configured to: after the authentication module 242 authenticates the client identifier, access the terminal to the wireless AP.
进一步的,如图8所示,其特征在于,接入单元24将终端接入到无线AP中,包括:Further, as shown in FIG. 8, the access unit 24 accesses the terminal to the wireless AP, including:
建立模块245,用于建立虚拟无线AP,终端无法通过虚拟无线AP登录路由器的控制界面;The establishing module 245 is configured to establish a virtual wireless AP, and the terminal cannot log in to the control interface of the router through the virtual wireless AP;
接入模块243还用于,将终端接入到建立模块245建立的虚拟无线AP中。The access module 243 is further configured to access the terminal to the virtual wireless AP established by the establishing module 245.
进一步的,作为对上述方法的实现以及上述装置的应用,如图9所示,本发明实施例还提供一种无线网络接入的系统,该系统包括终端31及路由器32,其中,终端31包括上述图2至图8中任一幅所示的装置。Further, as an implementation of the foregoing method and the application of the foregoing apparatus, as shown in FIG. 9, the embodiment of the present invention further provides a system for wireless network access, where the system includes a terminal 31 and a router 32, wherein the terminal 31 includes The apparatus shown in any of the above Figures 2 to 8.
本发明实施例提供的无线网络接入的装置及系统,路由器检测终端的信号强度,根据信号强度计算终端到路由器之间的实际距离,并将计算得到的实际距离与预设的距离阈值进行比对,当实际距离不大于距离阈值时,终端接入到无线AP中。与现有技术相比,本发明实施例通过路由器根据终端的信号强度计算得到的终端与路由器之间的实际距离,判断是否允许终端接入无线AP,而无需手动输入无线密码进行鉴权,因此,本发明提供的装置及系统能够大大简化终端接入无线AP的操作过程。The device and system for accessing a wireless network according to an embodiment of the present invention, the router detects the signal strength of the terminal, calculates the actual distance between the terminal and the router according to the signal strength, and compares the calculated actual distance with a preset distance threshold. Yes, when the actual distance is not greater than the distance threshold, the terminal accesses the wireless AP. Compared with the prior art, the embodiment of the present invention determines whether the terminal is allowed to access the wireless AP by manually calculating the actual distance between the terminal and the router according to the signal strength of the terminal, and does not need to manually input the wireless password for authentication. The device and system provided by the present invention can greatly simplify the operation process of the terminal accessing the wireless AP.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有 详述的部分,可以参见其他实施例的相关描述。In the above embodiments, the descriptions of the various embodiments are different, and there is no embodiment. For a detailed description, refer to the related description of other embodiments.
可以理解的是,上述方法及装置中的相关特征可以相互参考。另外,上述实施例中的“第一”、“第二”等是用于区分各实施例,而并不代表各实施例的优劣。It will be appreciated that related features in the above methods and apparatus can be referenced to each other. In addition, "first", "second", and the like in the above embodiments are used to distinguish the embodiments, and do not represent the advantages and disadvantages of the embodiments.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms and displays provided herein are not inherently related to any particular computer, virtual system, or other device. Various general purpose systems can also be used with the teaching based on the teachings herein. The structure required to construct such a system is apparent from the above description. Moreover, the invention is not directed to any particular programming language. It is to be understood that the invention may be embodied in a variety of programming language, and the description of the specific language has been described above in order to disclose the preferred embodiments of the invention.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that the embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures, and techniques are not shown in detail so as not to obscure the understanding of the description.
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, the various features of the invention are sometimes grouped together into a single embodiment, in the above description of the exemplary embodiments of the invention, Figure, or a description of it. However, the method disclosed is not to be interpreted as reflecting the intention that the claimed invention requires more features than those recited in the claims. Rather, as the following claims reflect, inventive aspects reside in less than all features of the single embodiments disclosed herein. Therefore, the claims following the specific embodiments are hereby explicitly incorporated into the embodiments, and each of the claims as a separate embodiment of the invention.
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括 伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art will appreciate that the modules in the devices of the embodiments can be adaptively changed and placed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and further they may be divided into a plurality of sub-modules or sub-units or sub-components. In addition to such features and/or at least some of the processes or units being mutually exclusive, any combination of the features disclosed in the specification, including the accompanying claims, the abstract and the drawings, and any methods so disclosed, or All processes or units of the device are combined. This specification (including Each feature disclosed in the accompanying claims, the abstract and the drawings may be replaced by alternative features that provide the same, equivalent or similar purpose.
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features that are included in other embodiments and not in other features, combinations of features of different embodiments are intended to be within the scope of the present invention. Different embodiments are formed and formed. For example, in the following claims, any one of the claimed embodiments can be used in any combination.
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的无线网络接入的装置中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or digital signal processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components of the wireless network access device in accordance with embodiments of the present invention. The invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein. Such a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
例如,图10示意性地示出了用于执行根据本发明的方法的计算设备的框图。该计算设备传统上包括处理器1010和以存储器1020形式的计算机程序产品或者计算机可读介质。存储器1020可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。存储器1020具有用于执行上述方法中的任何方法步骤的程序代码1031的存储空间1030。例如,用于程序代码的存储空间1030可以包括分别用于实现上面的方法中的各种步骤的各个程序代码1031。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘,紧致盘(CD)、存储卡或者软盘之类的程序代码载体。这样的计算机程序产品通常为如参考图11所述的便携式或者固定存储单元。该存储单元可以具有与图10的计算设备中的存储器1020类似布置的存储段、存储空间等。程序代码可以例如以适当形式进行压缩。通常,存储单元包括用于执行根据本发明的方法步骤的计算机可读代码1031’,即可以由例如诸如1010之类的处理器读取的代码,这些代码当由计算设备运 行时,导致该计算设备执行上面所描述的方法中的各个步骤。For example, Figure 10 schematically illustrates a block diagram of a computing device for performing the method in accordance with the present invention. The computing device conventionally includes a processor 1010 and a computer program product or computer readable medium in the form of a memory 1020. The memory 1020 may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read Only Memory), an EPROM, a hard disk, or a ROM. The memory 1020 has a memory space 1030 for executing program code 1031 of any of the above method steps. For example, storage space 1030 for program code may include various program code 1031 for implementing various steps in the above methods, respectively. The program code can be read from or written to one or more computer program products. These computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks. Such a computer program product is typically a portable or fixed storage unit as described with reference to FIG. The storage unit may have storage segments, storage spaces, and the like that are similarly arranged to memory 1020 in the computing device of FIG. The program code can be compressed, for example, in an appropriate form. Typically, the storage unit comprises computer readable code 1031' for performing the steps of the method according to the invention, i.e. code which can be read by a processor such as 1010, which is carried by the computing device At the time of the line, the computing device is caused to perform the various steps in the method described above.
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It is to be noted that the above-described embodiments are illustrative of the invention and are not intended to be limiting, and that the invention may be devised without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as a limitation. The word "comprising" does not exclude the presence of the elements or steps that are not recited in the claims. The word "a" or "an" The invention can be implemented by means of hardware comprising several distinct elements and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means can be embodied by the same hardware item. The use of the words first, second, and third does not indicate any order. These words can be interpreted as names.
此外,还应当注意,本说明书中使用的语言主要是为了可读性和教导的目的而选择的,而不是为了解释或者限定本发明的主题而选择的。因此,在不偏离所附权利要求书的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。对于本发明的范围,对本发明所做的公开是说明性的,而非限制性的,本发明的范围由所附权利要求书限定。In addition, it should be noted that the language used in the specification has been selected for the purpose of readability and teaching, and is not intended to be construed or limited. Therefore, many modifications and changes will be apparent to those skilled in the art without departing from the scope of the invention. The disclosure of the present invention is intended to be illustrative, and not restrictive, and the scope of the invention is defined by the appended claims.
本发明可以应用于计算机系统/服务器,其可与众多其它通用或专用计算系统环境或配置一起操作。适于与计算机系统/服务器一起使用的众所周知的计算系统、环境和/或配置的例子包括但不限于:个人计算机系统、服务器计算机系统、瘦客户机、厚客户机、手持或膝上设备、基于微处理器的系统、机顶盒、可编程消费电子产品、网络个人电脑、小型计算机系统、大型计算机系统和包括上述任何系统的分布式云计算技术环境,等等。The present invention is applicable to computer systems/servers that can operate with numerous other general purpose or special purpose computing system environments or configurations. Examples of well-known computing systems, environments, and/or configurations suitable for use with computer systems/servers include, but are not limited to, personal computer systems, server computer systems, thin clients, thick clients, handheld or laptop devices, based on Microprocessor systems, set-top boxes, programmable consumer electronics, networked personal computers, small computer systems, mainframe computer systems, and distributed cloud computing technology environments including any of the above, and the like.
计算机系统/服务器可以在由计算机系统执行的计算机系统可执行指令(诸如程序模块)的一般语境下描述。通常,程序模块可以包括例程、程序、目标程序、组件、逻辑、数据结构等等,它们执行特定的任务或者实现特定的抽象数据类型。计算机系统/服务器可以在分布式云计算环境中实施,分布式云计算环境中,任务是由通过通信网络链接的远程处理设备执行的。在分布式云计算环境中,程序模块可以位于包括存储设备的本地或远程计算系统存储介质上。 The computer system/server can be described in the general context of computer system executable instructions (such as program modules) being executed by a computer system. Generally, program modules may include routines, programs, target programs, components, logic, data structures, and the like that perform particular tasks or implement particular abstract data types. The computer system/server can be implemented in a distributed cloud computing environment where tasks are performed by remote processing devices that are linked through a communication network. In a distributed cloud computing environment, program modules may be located on a local or remote computing system storage medium including storage devices.
本文中所称的“一个实施例”、“实施例”或者“一个或者多个实施例”意味着,结合实施例描述的特定特征、结构或者特性包括在本发明的至少一个实施例中。此外,请注意,这里“在一个实施例中”的词语例子不一定全指同一个实施例。 "an embodiment," or "an embodiment," or "an embodiment," In addition, it is noted that the phrase "in one embodiment" is not necessarily referring to the same embodiment.

Claims (25)

  1. 一种无线网络接入的方法,其特征在于,包括:A method for wireless network access, comprising:
    检测终端的信号强度;Detecting the signal strength of the terminal;
    根据所述信号强度计算所述终端到路由器之间的实际距离;Calculating an actual distance between the terminal and the router according to the signal strength;
    将所述实际距离与预设的距离阈值进行比对;Comparing the actual distance with a preset distance threshold;
    若所述实际距离不大于所述距离阈值,则将所述终端接入到无线接入节点AP中。If the actual distance is not greater than the distance threshold, the terminal is accessed into the wireless access node AP.
  2. 根据权利要求1所述的方法,其特征在于,所述检测终端的信号强度,包括:The method according to claim 1, wherein the detecting the signal strength of the terminal comprises:
    当所述终端发送数据信号时,检测接收所述数字信号时的接收信号强度指示RSSI值;When the terminal transmits a data signal, detecting a received signal strength indicating an RSSI value when the digital signal is received;
    所述根据所述信号强度计算所述终端到路由器之间的实际距离,包括:Calculating the actual distance between the terminal and the router according to the signal strength, including:
    在预设的第一映射关系表中查找对应所述RSSI值的距离值,获得所述实际距离。Finding a distance value corresponding to the RSSI value in a preset first mapping relationship table, and obtaining the actual distance.
  3. 根据权利要求2所述的方法,其特征在于,在所述检测接收所述数字信号时的RSSI值之后,所述方法进一步包括:The method according to claim 2, wherein after the detecting the RSSI value when the digital signal is received, the method further comprises:
    查找对应所述终端机型的发射功率;Finding a transmit power corresponding to the terminal model;
    根据所述发射功率的大小对所述RSSI值进行校准。The RSSI value is calibrated according to the magnitude of the transmit power.
  4. 根据权利要求1所述的方法,其特征在于,所述检测终端的信号强度,包括:The method according to claim 1, wherein the detecting the signal strength of the terminal comprises:
    无线桥接到所述终端创建的虚拟AP中;Wirelessly connecting to the virtual AP created by the terminal;
    检测所述虚拟AP的分贝dBm值;Detecting a decibel dBm value of the virtual AP;
    所述根据所述信号强度计算所述终端到路由器之间的实际距离,包括:Calculating the actual distance between the terminal and the router according to the signal strength, including:
    在预设的第二映射关系表中查找对应所述dBm值的距离值,获得所述实际距离。Finding a distance value corresponding to the dBm value in a preset second mapping relationship table, and obtaining the actual distance.
  5. 根据权利要求1所述的方法,其特征在于,在所述检测终端的信号强度之前,所述方法进一步包括:The method according to claim 1, wherein before the detecting the signal strength of the terminal, the method further comprises:
    停止向所述终端广播所述无线AP的名称,以使得所述终端不显示所述无线AP的名称。Stop broadcasting the name of the wireless AP to the terminal such that the terminal does not display the name of the wireless AP.
  6. 根据权利要求5所述的方法,其特征在于,若所述实际距离不大于所述距离阈值,则所述方法进一步包括: The method according to claim 5, wherein if the actual distance is not greater than the distance threshold, the method further comprises:
    向所述终端广播所有无线AP的名称,以使得用户在所述终端上选择需要接入的无线AP。The names of all wireless APs are broadcast to the terminal such that the user selects a wireless AP that needs to be accessed on the terminal.
  7. 根据权利要求1所述的方法,其特征在于,所述将所述终端接入到无线AP中,包括:The method according to claim 1, wherein the accessing the terminal to the wireless AP comprises:
    接收所述终端上报的对应所述无线AP的无线密码;Receiving, by the terminal, a wireless password corresponding to the wireless AP;
    在根据所述无线密码对所述终端进行鉴权后,将所述终端接入到所述无线AP中。After authenticating the terminal according to the wireless password, the terminal is accessed into the wireless AP.
  8. 根据权利要求7所述的方法,其特征在于,所述终端上报的所述无线密码为在广播无线AP的名称时,通过公钥加密并绑定于所述名称的无线密码。The method according to claim 7, wherein the wireless password reported by the terminal is a wireless password encrypted by a public key and bound to the name when the name of the wireless AP is broadcasted.
  9. 根据权利要求7所述的方法,其特征在于,所述终端上报的所述无线密码为所述终端此前缓存的无线密码。The method according to claim 7, wherein the wireless password reported by the terminal is a wireless password previously cached by the terminal.
  10. 根据权利要求1所述的方法,其特征在于,所述将所述终端接入到无线AP中,包括:The method according to claim 1, wherein the accessing the terminal to the wireless AP comprises:
    取消对无线密码的接收及对所述终端的鉴权,并将所述终端接入到无线AP中;Deactivating the wireless password and authenticating the terminal, and accessing the terminal to the wireless AP;
    或者,接收所述终端上报的客户端标识,根据所述客户端标识对所述终端进行鉴权并将所述终端接入到无线AP中。Or receiving the client identifier reported by the terminal, authenticating the terminal according to the client identifier, and accessing the terminal to the wireless AP.
  11. 根据权利要求1至10中任一项所述的方法,其特征在于,所述将所述终端接入到无线AP中,包括:The method according to any one of claims 1 to 10, wherein the accessing the terminal to the wireless AP comprises:
    建立虚拟无线AP,所述终端无法通过所述虚拟无线AP登录路由器的控制界面;Establishing a virtual wireless AP, where the terminal cannot log in to the control interface of the router through the virtual wireless AP;
    将所述终端接入到所述虚拟无线AP中。The terminal is accessed into the virtual wireless AP.
  12. 一种无线网络接入的装置,其特征在于,包括:A device for accessing a wireless network, comprising:
    检测单元,用于检测终端的信号强度;a detecting unit, configured to detect a signal strength of the terminal;
    计算单元,用于根据所述检测单元检测的信号强度计算所述终端到路由器之间的实际距离;a calculating unit, configured to calculate an actual distance between the terminal and the router according to the signal strength detected by the detecting unit;
    比对单元,用于将所述计算单元计算的实际距离与预设的距离阈值进行比对;a comparison unit, configured to compare the actual distance calculated by the calculation unit with a preset distance threshold;
    接入单元,用于当所述比对单元比对的实际距离不大于所述距离阈值时,将所述终端接入到无线接入节点AP中。And an access unit, configured to: when the actual distance of the comparison unit is not greater than the distance threshold, access the terminal to the wireless access node AP.
  13. 根据权利要求12所述的装置,所述检测单元还用于,其特征在于, 当所述终端发送数据信号时,检测接收所述数字信号时的接收信号强度指示RSSI值;The apparatus according to claim 12, wherein said detecting unit is further configured to: When the terminal transmits a data signal, detecting a received signal strength indicating an RSSI value when the digital signal is received;
    所述计算单元还用于,在预设的第一映射关系表中查找对应所述检测模块检测的RSSI值的距离值,获得所述实际距离。The calculating unit is further configured to: search, in the preset first mapping relationship table, a distance value corresponding to the RSSI value detected by the detecting module, to obtain the actual distance.
  14. 根据权利要求13所述的装置,其特征在于,所述装置进一步包括:The device of claim 13 wherein said device further comprises:
    查找单元,用于在所述检测单元检测接收所述数字信号时的RSSI值之后,查找对应所述终端机型的发射功率;a searching unit, configured to search for a transmit power corresponding to the terminal model after the detecting unit detects an RSSI value when the digital signal is received;
    校准单元,用于根据所述查找单元查找的发射功率的大小对所述RSSI值进行校准。And a calibration unit, configured to calibrate the RSSI value according to a size of a transmit power searched by the lookup unit.
  15. 根据权利要求12所述的装置,其特征在于,所述检测单元还用于,无线桥接到所述终端创建的虚拟AP中,检测所述桥接模块桥接的虚拟AP的分贝dBm值;The device according to claim 12, wherein the detecting unit is further configured to: wirelessly bridge into the virtual AP created by the terminal, and detect a decibel dBm value of the virtual AP bridged by the bridging module;
    所述计算单元还用于,在预设的第二映射关系表中查找对应所述检测单元检测的dBm值的距离值,获得所述实际距离。The calculating unit is further configured to: search, in the preset second mapping relationship table, a distance value corresponding to the dBm value detected by the detecting unit, to obtain the actual distance.
  16. 根据权利要求12所述的装置,其特征在于,所述装置进一步包括:The device of claim 12, wherein the device further comprises:
    停止单元,用于在所述检测单元检测终端的信号强度之前,停止向所述终端广播所述无线AP的名称,以使得所述终端不显示所述无线AP的名称。And a stopping unit, configured to stop broadcasting the name of the wireless AP to the terminal before the detecting unit detects the signal strength of the terminal, so that the terminal does not display the name of the wireless AP.
  17. 根据权利要求16所述的装置,其特征在于,所述装置进一步包括:The device of claim 16 wherein said device further comprises:
    广播单元,用于当所述比对单元比对的实际距离不大于所述距离阈值时,向所述终端广播所有无线AP的名称,以使得用户在所述终端上选择需要接入的无线AP。a broadcast unit, configured to: when the actual distance of the comparison unit is not greater than the distance threshold, broadcast a name of all wireless APs to the terminal, so that the user selects a wireless AP that needs to be accessed on the terminal. .
  18. 根据权利要求12所述的装置,其特征在于,所述接入单元将所述终端接入到无线AP中,包括:The device according to claim 12, wherein the access unit accesses the terminal to the wireless AP, including:
    接收模块,用于接收所述终端上报的对应所述无线AP的无线密码;a receiving module, configured to receive a wireless password corresponding to the wireless AP reported by the terminal;
    鉴权模块,用于在根据所述接收模块接收无线密码对所述终端进行鉴权;An authentication module, configured to authenticate the terminal by receiving a wireless password according to the receiving module;
    接入模块,用于在所述鉴权模块对所述终端进行鉴权之后,将所述终端接入到所述无线AP中。An access module, configured to: after the authenticating module authenticates the terminal, access the terminal to the wireless AP.
  19. 根据权利要求18所述的装置,其特征在于,所述接收模块接收的终端上报的所述无线密码为在广播无线AP的名称时,通过公钥加密并绑定于所述名称的无线密码。The device according to claim 18, wherein the wireless password reported by the terminal received by the receiving module is a wireless password encrypted by a public key and bound to the name when the name of the wireless AP is broadcasted.
  20. 根据权利要求18所述的装置,其特征在于,所述接收模块接收的 终端上报的所述无线密码为所述终端此前缓存的无线密码。The device according to claim 18, wherein said receiving module receives The wireless password reported by the terminal is a wireless password previously cached by the terminal.
  21. 根据权利要求12所述的装置,其特征在于,所述接入单元将所述终端接入到无线AP中,包括:The device according to claim 12, wherein the access unit accesses the terminal to the wireless AP, including:
    取消模块,用于取消对无线密码的接收及对所述终端的鉴权,并将所述终端接入到无线AP中;a canceling module, configured to cancel receiving the wireless password and authenticating the terminal, and accessing the terminal to the wireless AP;
    所述接收模块还用于,接收所述终端上报的客户端标识;The receiving module is further configured to receive a client identifier reported by the terminal;
    所述鉴权模块还用于,根据所述接收模块接收的客户端标识对所述终端进行鉴权;The authentication module is further configured to: perform authentication on the terminal according to the client identifier received by the receiving module;
    所述接入模块还用于,在所述鉴权模块对所述客户端标志进行鉴权之后,所述将所述终端接入到无线AP中。The access module is further configured to: after the authenticating module authenticates the client identifier, the terminal is connected to the wireless AP.
  22. 根据权利要求12至21中任一项所述的装置,其特征在于,所述接入单元将所述终端接入到无线AP中,包括:The device according to any one of claims 12 to 21, wherein the access unit accesses the terminal to the wireless AP, including:
    建立模块,用于建立虚拟无线AP,所述终端无法通过所述虚拟无线AP登录路由器的控制界面;Establishing a module, configured to establish a virtual wireless AP, where the terminal cannot log in to the control interface of the router by using the virtual wireless AP;
    所述接入模块还用于,将所述终端接入到所述建立模块建立的虚拟无25线AP中。The access module is further configured to: connect the terminal to a virtual 25-line AP established by the establishing module.
  23. 一种无线网络接入的系统,其特征在于,所述系统包括终端及路由器,其中,所述终端包括如权利要求12至22任一项中所述的装置。A system for wireless network access, characterized in that the system comprises a terminal and a router, wherein the terminal comprises the apparatus as claimed in any one of claims 12 to 22.
  24. 一种计算机程序,包括计算机可读代码,当所述计算机可读代码在计算设备上运行时,导致所述计算设备执行根据权利要求1-11中的任一项所述的无线网络接入的方法。A computer program comprising computer readable code, when said computer readable code is run on a computing device, causing said computing device to perform wireless network access according to any of claims 1-11 method.
  25. 一种计算机可读介质,其中存储了如权利要求24所述的计算机程序。 A computer readable medium storing the computer program of claim 24.
PCT/CN2015/094709 2014-12-26 2015-11-16 Method, apparatus and system for wireless network access WO2016101730A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410827448.0 2014-12-26
CN201410827448.0A CN104540186B (en) 2014-12-26 2014-12-26 Method, device and system for wireless network access

Publications (1)

Publication Number Publication Date
WO2016101730A1 true WO2016101730A1 (en) 2016-06-30

Family

ID=52855618

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/094709 WO2016101730A1 (en) 2014-12-26 2015-11-16 Method, apparatus and system for wireless network access

Country Status (2)

Country Link
CN (1) CN104540186B (en)
WO (1) WO2016101730A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3288001A1 (en) * 2016-08-24 2018-02-28 Zhejiang Hanshow Technology Co. Ltd Data interaction system
CN113660733A (en) * 2021-09-26 2021-11-16 西安酷赛科技有限公司 Wireless communication method based on position information and wireless communication system thereof

Families Citing this family (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104540186B (en) * 2014-12-26 2017-04-12 北京奇虎科技有限公司 Method, device and system for wireless network access
CN104994594A (en) * 2015-05-12 2015-10-21 深圳市蚂蚁邦科技有限公司 Method for automatically connecting with wifi at close range and wireless router
CN104902500B (en) * 2015-05-21 2019-11-22 南京创维信息技术研究院有限公司 The automatic connection method and system of Wireless Communication Equipment and radio reception device
CN105245539A (en) * 2015-10-27 2016-01-13 上海斐讯数据通信技术有限公司 Router visitor verification method and system and router
CN105516976A (en) * 2015-11-26 2016-04-20 苏州集联微电子科技有限公司 Method for authorizing wireless equipment to access Internet without password
CN105592462A (en) * 2016-03-03 2016-05-18 广东顺德中卡云网络科技有限公司 Method for carrying out access authentication through monitoring client spectrum field intensity
CN105873106A (en) * 2016-04-29 2016-08-17 北京小米移动软件有限公司 Processing method and device for wireless network connection and equipment
CN106102088A (en) * 2016-06-01 2016-11-09 上海斐讯数据通信技术有限公司 The connection control method of a kind of wireless router and wireless router
CN106060820A (en) * 2016-08-24 2016-10-26 深圳普创天信科技发展有限公司 Wireless network access method
CN106302052A (en) * 2016-09-09 2017-01-04 珠海格力电器股份有限公司 Networking control method and system, wireless router and intelligent household appliance
FR3060251B1 (en) * 2016-12-09 2019-05-10 Sagemcom Broadband Sas METHOD OF PAIRING A WI-FI TYPE TERMINAL AT A WI-FI TYPE ACCESS POINT
CN108234250A (en) * 2016-12-20 2018-06-29 博西华电器(江苏)有限公司 The method of kitchen range system, kitchen range and mobile terminal control kitchen range
CN106937289B (en) * 2017-03-27 2021-05-18 联想(北京)有限公司 Network access method and electronic equipment
CN107295606A (en) * 2017-06-30 2017-10-24 北京小米移动软件有限公司 Method for connecting network, device and user equipment
CN110621024B (en) * 2018-06-20 2022-08-02 深圳市云猫信息技术有限公司 Automatic distribution method of AP (Access Point) equipment in WIFI (Wireless Fidelity) park
CN111277428A (en) * 2018-12-05 2020-06-12 北京奇虎科技有限公司 Network distribution method and system for Internet of things equipment
CN111669739B (en) * 2020-06-04 2023-08-04 北京万维智能技术有限公司 Bluetooth AP automatic equipment registering method and system and Bluetooth AP
CN112672280A (en) * 2020-12-21 2021-04-16 西安闻泰电子科技有限公司 Control method and device of mobile router, computer equipment and storage medium
CN114025409A (en) * 2021-10-08 2022-02-08 中移(杭州)信息技术有限公司 Anti-interference network distribution method and device, network equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130152168A1 (en) * 2011-12-09 2013-06-13 Verizon Patent And Licensing, Inc. Wireless connection method and device
JP2013198130A (en) * 2012-03-22 2013-09-30 Fujitsu Fip Corp Authentication device and authentication method
CN103781074A (en) * 2014-02-08 2014-05-07 北京极科极客科技有限公司 Security access method and equipment of wireless local area network
CN104144415A (en) * 2014-07-10 2014-11-12 深圳市螺光科技有限公司 Method for connecting WiFi access point and mobile communication terminal
CN104540186A (en) * 2014-12-26 2015-04-22 北京奇虎科技有限公司 Method, device and system for wireless network access

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101557625B (en) * 2009-03-09 2011-04-06 南京大学 Fast switching method based on movement detection in wireless network
US8958838B2 (en) * 2010-02-12 2015-02-17 Qualcomm Incorporated Multi-stage transmit power control scheme for access point
CN102685882A (en) * 2011-03-11 2012-09-19 北京威讯紫晶科技有限公司 Area locating method in wireless networks
CN103188023A (en) * 2013-03-19 2013-07-03 天脉聚源(北京)传媒科技有限公司 Distance measuring method and system, and application method
CN103997782B (en) * 2014-04-24 2018-06-05 湘潭大学 A kind of method of the wireless aps Detection location based on signal strength and packet capturing rate

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130152168A1 (en) * 2011-12-09 2013-06-13 Verizon Patent And Licensing, Inc. Wireless connection method and device
JP2013198130A (en) * 2012-03-22 2013-09-30 Fujitsu Fip Corp Authentication device and authentication method
CN103781074A (en) * 2014-02-08 2014-05-07 北京极科极客科技有限公司 Security access method and equipment of wireless local area network
CN104144415A (en) * 2014-07-10 2014-11-12 深圳市螺光科技有限公司 Method for connecting WiFi access point and mobile communication terminal
CN104540186A (en) * 2014-12-26 2015-04-22 北京奇虎科技有限公司 Method, device and system for wireless network access

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3288001A1 (en) * 2016-08-24 2018-02-28 Zhejiang Hanshow Technology Co. Ltd Data interaction system
CN113660733A (en) * 2021-09-26 2021-11-16 西安酷赛科技有限公司 Wireless communication method based on position information and wireless communication system thereof

Also Published As

Publication number Publication date
CN104540186A (en) 2015-04-22
CN104540186B (en) 2017-04-12

Similar Documents

Publication Publication Date Title
WO2016101730A1 (en) Method, apparatus and system for wireless network access
WO2016101729A1 (en) Wireless network access method, device and system
US10587614B2 (en) Method and apparatus for facilitating frictionless two-factor authentication
TWI745473B (en) Network verification method and device
US20170149799A1 (en) Secure fine timing measurement protocol
US20120076072A1 (en) System and method for maintaining privacy in a wireless network
KR102072095B1 (en) Identity authentication methods, devices, and systems
US9571485B2 (en) Spatial and temporal verification of users and/or user devices
US11765164B2 (en) Server-based setup for connecting a device to a local area network
CN110113747B (en) Method and equipment for connecting hidden wireless access point
CN107517461B (en) Method and equipment for carrying out wireless connection pre-authorization on user equipment
CN108924833B (en) Method and equipment for authorizing user equipment to connect wireless access point
US10750369B2 (en) Method, apparatus, and platform for sharing wireless local area network
US11196736B2 (en) Systems and methods for location-aware two-factor authentication
CN104662871A (en) Method and device for securely accessing a web service
US20160095082A1 (en) Position authentication
CN112689277B (en) Method, device and system for configuring network for equipment
KR102310027B1 (en) Determination method and corresponding terminal, computer program product and storage medium
US10200864B2 (en) Method and device for managing wireless access point
US11144627B2 (en) Peer assisted enhanced authentication
US11425568B2 (en) Electronic device and controlling method of electronic device
WO2018014555A1 (en) Data transmission control method and apparatus
KR20200114074A (en) Method of controlling a electronic device and apparatus therefor
KR102393499B1 (en) Wireless network apparatus, communication apparatus, operating mehtod of the wireless network apparatus, and operating method of the communication apparatus
KR102423126B1 (en) Electronic device and control method thereof

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

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

Country of ref document: EP

Kind code of ref document: A1