WO2017190453A1 - Wireless communication connection control method and apparatus - Google Patents

Wireless communication connection control method and apparatus Download PDF

Info

Publication number
WO2017190453A1
WO2017190453A1 PCT/CN2016/096847 CN2016096847W WO2017190453A1 WO 2017190453 A1 WO2017190453 A1 WO 2017190453A1 CN 2016096847 W CN2016096847 W CN 2016096847W WO 2017190453 A1 WO2017190453 A1 WO 2017190453A1
Authority
WO
WIPO (PCT)
Prior art keywords
access point
wireless access
connection
terminal
wireless communication
Prior art date
Application number
PCT/CN2016/096847
Other languages
French (fr)
Chinese (zh)
Inventor
吴敏
韦泽垠
Original Assignee
深圳Tcl数字技术有限公司
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 深圳Tcl数字技术有限公司 filed Critical 深圳Tcl数字技术有限公司
Publication of WO2017190453A1 publication Critical patent/WO2017190453A1/en

Links

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/20Selecting an access point

Abstract

Disclosed is a wireless communication connection control method, comprising: when a wireless communication connection request is received, acquiring connection information corresponding to a wireless access point connected to a terminal; sending the connection request to the wireless access point according to the connection information; and when response information fed back by the wireless access point based on the connection request is received, accessing the wireless access point corresponding to the feedback response information. Further disclosed is a wireless communication connection control apparatus. By means of the present invention, not only is the consumption of wireless communication connection resources reduced, the wireless communication connection time is also reduced, so that the wireless communication connection efficiency is improved.

Description

无线通讯的连接控制方法及装置  Wireless communication connection control method and device
技术领域Technical field
本发明涉及无线通讯技术领域,尤其涉及一种无线通讯的连接控制方法及装置。The present invention relates to the field of wireless communication technologies, and in particular, to a connection control method and apparatus for wireless communication.
背景技术Background technique
无线通讯Wi-Fi基础型网络(Business Support System,BSS)由1个无线接入点(Access Point,AP)和至少1个无线通讯工作站(Station,STA)组成。其中,该无线接入点是一个无线网络的创造者,通常家庭或者办公室使用的无线路由就是一个无线接入点;该无线通讯工作站为每一个连接到无线网络中的终端,而该连接到无线网络中的终端包括所有设置有无线通讯网卡芯片的智能终端电子产品,如智能手机、智能电视、平板电脑以及PC端。Wireless communication Wi-Fi basic network (Business Support System, BSS) by 1 wireless access point (Access Point, AP) and at least one wireless communication station (Station, STA). Wherein, the wireless access point is a creator of a wireless network, and the wireless route usually used by the home or office is a wireless access point; the wireless communication workstation is connected to the wireless terminal in each of the terminals, and the wireless communication station is connected to the wireless The terminals in the network include all smart terminal electronic products equipped with wireless communication network card chips, such as smart phones, smart TVs, tablets and PCs.
目前,在无线通讯工作站连接到无线接入点过程中,无论是基于用户手动连接无线接入点,还是该无线通讯工作站自动连接过的无线接入点,该无线通讯工作站都需要通过扫描信道,在该已扫描的信道中选择可与该无线通讯工作站连接的无线接入点,然后连接该无线接入点。由于该无线通讯工作站扫描信道是向该无线通讯工作站中无线通讯网卡芯片支持的所有2.4G信道和5G信道进行全信道扫描,因此增加了无线通讯连接时间,且消耗了无线通讯连接资源,导致无线通讯工作站的无线通讯连接效率低。Currently, in the process of connecting a wireless communication workstation to a wireless access point, whether based on a user manually connecting a wireless access point or a wireless access point that the wireless communication station automatically connects, the wireless communication workstation needs to pass a scanning channel. A wireless access point connectable to the wireless communication station is selected among the scanned channels, and then connected to the wireless access point. Since the wireless communication workstation scans the channel to perform full channel scanning on all 2.4G channels and 5G channels supported by the wireless communication network card chip in the wireless communication workstation, the wireless communication connection time is increased, and the wireless communication connection resource is consumed, resulting in wireless The wireless communication connection of the communication workstation is inefficient.
发明内容Summary of the invention
本发明的主要目的在于提供一种无线通讯的连接控制方法及装置,旨在解决无线通讯连接效率低的问题。The main object of the present invention is to provide a connection control method and apparatus for wireless communication, which aims to solve the problem of low efficiency of wireless communication connection.
为实现上述目的,本发明提供的一种无线通讯的连接控制方法,包括:To achieve the above object, a connection control method for wireless communication provided by the present invention includes:
在接收到无线通讯连接请求时,获取终端连接过的无线接入点对应的连接信息;When receiving the wireless communication connection request, acquiring connection information corresponding to the wireless access point connected by the terminal;
根据所述连接信息向所述无线接入点发送连接请求;Sending a connection request to the wireless access point according to the connection information;
在未接收到所述无线接入点基于所述连接请求反馈的响应信息时,进行所述终端的全信道扫描,以获取所述终端可接入的无线接入点;After receiving the response information that is sent by the wireless access point based on the connection request, performing full channel scanning of the terminal to obtain a wireless access point accessible by the terminal;
在接收到所述无线接入点基于所述连接请求反馈的响应信息,且反馈所述响应信息的无线接入点为多个时,获取各所述反馈信息中的所述无线接入点的信号强度;Obtaining, by the wireless access point, the response information that is fed back based on the connection request, and the plurality of wireless access points that feed back the response information, acquiring the wireless access point in each of the feedback information Signal strength
将多个所述无线接入点的信号强度进行比对,并接入信号强度较高的所述无线接入点。Comparing signal strengths of the plurality of wireless access points and accessing the wireless access point with higher signal strength.
为实现上述目的,本发明又提供的一种无线通讯的连接控制方法,包括:To achieve the above object, the present invention further provides a method for controlling connection of a wireless communication, comprising:
在接收到无线通讯连接请求时,获取终端连接过的无线接入点对应的连接信息;When receiving the wireless communication connection request, acquiring connection information corresponding to the wireless access point connected by the terminal;
根据所述连接信息向所述无线接入点发送连接请求;Sending a connection request to the wireless access point according to the connection information;
在接收到所述无线接入点基于所述连接请求反馈的响应信息时,接入反馈所述响应信息对应的所述无线接入点。Receiving, by the wireless access point, response information that is fed back based on the connection request, accessing the wireless access point corresponding to the response information.
优选地,所述根据所述连接信息向所述无线接入点发送连接请求的步骤之后还包括:Preferably, after the step of sending a connection request to the wireless access point according to the connection information, the method further includes:
在未接收到所述无线接入点基于所述连接请求反馈的响应信息时,进行所述终端的全信道扫描,以获取所述终端可接入的无线接入点。When the response information of the wireless access point based on the connection request is not received, performing full channel scanning of the terminal to obtain a wireless access point accessible by the terminal.
优选地,所述在未接收到所述无线接入点基于所述连接请求反馈的响应信息时,进行所述终端的全信道扫描,以获取所述终端可接入的无线接入点的步骤之后还包括:Preferably, the step of performing a full channel scan of the terminal to obtain a wireless access point accessible by the terminal when the wireless access point does not receive the response information fed back by the connection request It also includes:
在检测到基于获取到的可接入的无线接入点的接入操作时,获取接入的无线接入点的连接信息;Obtaining connection information of the accessed wireless access point when detecting an access operation based on the acquired accessible wireless access point;
将所述接入的无线接入点的连接信息存储为连接过的无线接入点对应的连接信息。The connection information of the accessed wireless access point is stored as connection information corresponding to the connected wireless access point.
优选地,所述接入反馈所述响应信息对应的所述无线接入点的步骤包括:Preferably, the step of accessing the wireless access point corresponding to the response information includes:
在反馈所述响应信息的无线接入点为多个时,获取各所述反馈信息中的所述无线接入点的信号强度;Obtaining a signal strength of the wireless access point in each of the feedback information when there are multiple wireless access points that feed back the response information;
将多个所述无线接入点的信号强度进行比对,并接入信号强度较高的所述无线接入点。Comparing signal strengths of the plurality of wireless access points and accessing the wireless access point with higher signal strength.
优选地,所述获取终端连接过的无线接入点对应的连接信息的步骤之前,所述无线通讯的连接控制方法还包括步骤:Preferably, before the step of acquiring connection information corresponding to the wireless access point connected by the terminal, the method for controlling connection of the wireless communication further includes the following steps:
在接收到所述无线通讯连接请求时,判断终端预存的连接信息表中是否存在所述终端连接过的无线接入点对应的连接信息;When receiving the wireless communication connection request, determining whether the connection information corresponding to the wireless access point connected to the terminal exists in the connection information table pre-stored by the terminal;
若是,则执行所述获取终端连接过的无线接入点对应的连接信息的步骤;If yes, performing the step of acquiring connection information corresponding to the wireless access point connected by the terminal;
若否,则进行所述终端的全信道扫描,以获取所述终端可接入的无线接入点。If not, performing full channel scanning of the terminal to obtain a wireless access point accessible by the terminal.
此外,为实现上述目的,本发明还提供一种无线通讯的连接控制装置,包括:In addition, in order to achieve the above object, the present invention further provides a connection control apparatus for wireless communication, including:
第一获取模块,用于在接收到无线通讯连接请求时,获取终端连接过的无线接入点对应的连接信息;a first acquiring module, configured to acquire connection information corresponding to the wireless access point that the terminal has connected when receiving the wireless communication connection request;
发送模块,用于根据所述连接信息向所述无线接入点发送连接请求;a sending module, configured to send a connection request to the wireless access point according to the connection information;
第一连接模块,用于在接收到所述无线接入点基于所述连接请求反馈的响应信息时,接入反馈所述响应信息对应的所述无线接入点。a first connection module, configured to: when receiving the response information that is sent by the wireless access point based on the connection request, access the wireless access point corresponding to the response information.
优选地,所述无线通讯的连接控制装置还包括:Preferably, the connection control device for wireless communication further includes:
第二连接模块,用于在未接收到所述无线接入点基于所述连接请求反馈的响应信息时,进行所述终端的全信道扫描,以获取所述终端可接入的无线接入点。a second connection module, configured to perform a full channel scan of the terminal to obtain a wireless access point accessible by the terminal when the wireless access point does not receive the response information that is fed back based on the connection request .
优选地,所述无线通讯的连接控制装置还包括:Preferably, the connection control device for wireless communication further includes:
第二获取模块,用于在检测到基于获取到的可接入的无线接入点的接入操作时,获取接入的无线接入点的连接信息;a second acquiring module, configured to acquire connection information of the accessed wireless access point when detecting an access operation based on the acquired accessible wireless access point;
存储模块,用于将所述接入的无线接入点的连接信息存储为连接过的无线接入点对应的连接信息。And a storage module, configured to store connection information of the accessed wireless access point as connection information corresponding to the connected wireless access point.
优选地,所述第一连接模块包括:Preferably, the first connection module comprises:
获取单元,用于在反馈所述响应信息的无线接入点为多个时,获取各所述反馈信息中的所述无线接入点的信号强度;An acquiring unit, configured to acquire a signal strength of the wireless access point in each of the feedback information when the number of wireless access points that feed back the response information is multiple;
连接单元,用于将多个所述无线接入点的信号强度进行比对,并接入信号强度较高的所述无线接入点。And a connecting unit, configured to compare signal strengths of the plurality of wireless access points, and access the wireless access point with high signal strength.
优选地,在调用第一获取模块之前,所述无线通讯的连接控制装置还包括:Preferably, before the first acquiring module is invoked, the connection control device of the wireless communication further includes:
判断模块,用于在接收到所述无线通讯连接请求时,判断终端预存的连接信息表中是否存在所述终端连接过的无线接入点对应的连接信息;a determining module, configured to: determine, when the wireless communication connection request is received, whether the connection information corresponding to the wireless access point connected to the terminal exists in the connection information table pre-stored by the terminal;
所述第一获取模块,还用于若所述终端预存的连接信息表中存在所述终端连接过的无线接入点对应的连接信息,则获取所述终端连接过的无线接入点对应的连接信息;The first acquiring module is further configured to: if the connection information corresponding to the wireless access point connected to the terminal exists in the connection information table pre-stored by the terminal, acquire the corresponding wireless access point connected to the terminal Connection information
所述第二连接模块,还用于若所述终端预存的连接信息表中不存在所述终端连接过的无线接入点对应的连接信息,则进行所述终端的全信道扫描,以获取所述终端可接入的无线接入点。The second connection module is further configured to: if the connection information corresponding to the wireless access point connected to the terminal does not exist in the connection information table pre-stored by the terminal, perform full channel scanning of the terminal to obtain A wireless access point that the terminal can access.
本发明通过在接收到无线通讯连接请求时,获取终端连接过的无线接入点对应的连接信息,根据连接信息向无线接入点发送连接请求,在接收到无线接入点基于连接请求反馈的响应信息时,接入反馈响应信息对应的无线接入点。由于本发明在建立该终端与该无线接入点的无线通讯连接时,首先获取该终端连接过的无线接入点的信息,并向该终端连接过的无线接入点发送连接请求,在接收到该无线接入点基于该连接请求反馈的响应信息后,该终端与该无线接入点建立连接,因此不仅减小了无线通讯连接资源的消耗,而且降低了无线通讯连接时间,从而大大提高了无线通讯连接的效率。The invention obtains the connection information corresponding to the wireless access point connected by the terminal when receiving the wireless communication connection request, sends a connection request to the wireless access point according to the connection information, and receives the feedback based on the connection request at the receiving wireless access point. In response to the information, the wireless access point corresponding to the feedback response information is accessed. Since the present invention establishes the wireless communication connection between the terminal and the wireless access point, first acquires the information of the wireless access point connected to the terminal, and sends a connection request to the wireless access point connected to the terminal, and receives the connection request. After the wireless access point returns the response information based on the connection request, the terminal establishes a connection with the wireless access point, thereby not only reducing the consumption of the wireless communication connection resource, but also reducing the wireless communication connection time, thereby greatly improving The efficiency of the wireless communication connection.
附图说明DRAWINGS
图1为本发明无线通讯的连接控制方法的第一实施例的流程示意图;1 is a schematic flow chart of a first embodiment of a method for controlling connection of wireless communication according to the present invention;
图2为本发明无线通讯的连接控制方法的第二实施例的流程示意图;2 is a schematic flow chart of a second embodiment of a method for controlling connection of wireless communication according to the present invention;
图3为本发明无线通讯的连接控制方法的第三实施例的流程示意图;3 is a schematic flow chart of a third embodiment of a method for controlling connection of wireless communication according to the present invention;
图4为本发明无线通讯的连接控制方法中接入反馈所述响应信息的所述无线接入点的步骤的细化的流程示意图;4 is a schematic flowchart of a step of accessing the wireless access point that feeds back the response information in a connection control method for wireless communication according to the present invention;
图5为本发明无线通讯的连接控制方法的第四实施例的流程示意图;FIG. 5 is a schematic flowchart diagram of a fourth embodiment of a method for controlling connection of wireless communication according to the present invention; FIG.
图6为本发明无线通讯的连接控制装置的第一实施例的功能模块示意图;6 is a schematic diagram of functional modules of a first embodiment of a connection control apparatus for wireless communication according to the present invention;
图7为本发明无线通讯的连接控制装置的第二实施例的功能模块示意图;7 is a schematic diagram of functional modules of a second embodiment of a connection control apparatus for wireless communication according to the present invention;
图8为本发明无线通讯的连接控制装置的第三实施例的功能模块示意图;8 is a schematic diagram of functional modules of a third embodiment of a connection control apparatus for wireless communication according to the present invention;
图9为本发明无线通讯的连接控制装置的第四实施例中第一连接模块的细化功能模块示意图;9 is a schematic diagram of a refinement function module of a first connection module in a fourth embodiment of a connection control apparatus for wireless communication according to the present invention;
图10为本发明无线通讯的连接控制装置的第五实施例的功能模块示意图。FIG. 10 is a schematic diagram of functional modules of a fifth embodiment of a connection control apparatus for wireless communication according to the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features, and advantages of the present invention will be further described in conjunction with the embodiments.
具体实施方式detailed description
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
基于上述问题,本发明提供一种方法无线通讯的连接控制方法。Based on the above problems, the present invention provides a method of connection control for wireless communication of a method.
参照图1,图1为本发明无线通讯的连接控制方法的第一实施例的流程示意图。Referring to FIG. 1, FIG. 1 is a schematic flowchart diagram of a first embodiment of a method for controlling connection of wireless communication according to the present invention.
在本实施例中,所述无线通讯的连接控制方法包括:In this embodiment, the connection control method of the wireless communication includes:
步骤S10,在接收到无线通讯连接请求时,获取终端连接过的无线接入点对应的连接信息;In step S10, when receiving the wireless communication connection request, acquiring connection information corresponding to the wireless access point connected by the terminal;
在本实施例中,该终端包括所有设置有无线通讯网卡芯片的智能终端电子产品,多个或者一个该终端可加入该无线接入点AP组建成无线网络,在该无线网络中该AP是整个无线网络的中心,该无线网络中所有的通信都是通过该AP来转发完成。在该终端进入覆盖有无线网络的环境中,若该终端的无线连接开关已经打开,或者,若该终端的无线连接开关未打开,在确定用户打开该无线连接开关时,则该终端中的上层应用程序会触发一个无线通讯连接请求,在接收到该无线通讯连接请求后,检测该终端预存的连接信息表AP_List是否存连接过的AP对应的连接信息,在检测到该终端的AP_List存在已经连接过的无线连接点时,从该AP_List获取该终端连接过的AP对应的连接信息。其中,该连接信息表AP_List中只存储该终端连接过的AP对应的连接信息。In this embodiment, the terminal includes all smart terminal electronic products provided with a wireless communication network card chip, and multiple or one terminal can join the wireless access point AP group to form a wireless network, where the AP is the entire wireless network. At the center of the wireless network, all communications in the wireless network are forwarded through the AP. In the environment where the terminal enters the wireless network, if the wireless connection switch of the terminal has been turned on, or if the wireless connection switch of the terminal is not turned on, when it is determined that the user turns on the wireless connection switch, the upper layer in the terminal The application triggers a wireless communication connection request, and after receiving the wireless communication connection request, detects whether the connection information table AP_List pre-stored by the terminal stores the connection information corresponding to the connected AP, and detects that the AP_List of the terminal is already connected. When the wireless connection point is passed, the connection information corresponding to the AP connected to the terminal is obtained from the AP_List. The connection information table AP_List stores only the connection information corresponding to the AP connected to the terminal.
步骤S20,根据连接信息向无线接入点发送连接请求;Step S20, sending a connection request to the wireless access point according to the connection information;
在获取该终端连接过的AP对应的连接信息后,通知该终端中的无线配置程序WPA Supplicant向该AP发送连接请求Probe Request,例如,该无线配置程序WPA Supplicant把发送该连接请求Probe Request的通知告知该终端的WIFI 驱动,该WIFI 驱动将该连接请求Probe Request进行封装以及打包,在该WIFI 驱动将该连接请求Probe Request进行封装以及打包完成后,将该封装以及打包完成后的连接请求Probe Request通过该终端的接口Host Interface传送给该WIFI 驱动的内部固件Firmware,Firmware将该封装以及打包完成后的连接请求Probe Request传送给WIFI硬件部分进行处理,该WIFI硬件部分将处理后的连接请求Probe Request通过WIFI天线发送到单播AIR中。After obtaining the connection information corresponding to the AP connected to the terminal, notify the wireless configuration program WPA in the terminal. Supplicant sends a connection request Probe Request to the AP, for example, the wireless configuration program WPA Supplicant sends the connection request Probe The notification of the notification informs the WIFI driver of the terminal, and the WIFI driver encapsulates and packages the connection request Probe Request in the WIFI. After the driver encapsulates and packages the connection request Probe Request, the package and the packaged connection request Probe Request pass the interface of the terminal. Interface is transmitted to the WIFI driver's internal firmware Firmware, Firmware will package and package the completed connection request Probe The Request is sent to the WIFI hardware part for processing, and the WIFI hardware part sends the processed connection request Probe Request to the unicast AIR through the WIFI antenna.
需要说明的是,该无线配置程序WPA Supplicant发送的连接请求Probe Request是单播请求,即该连接请求Probe Request只会向指定的AP发送,且只有该指定的AP才能接收到该连接请求Probe Request,当该指定的AP接收该连接请求Probe Request后,该指定的AP的WIFI软硬件资源才会响应该连接请求Probe Request。例如,该无线配置程序WPA Supplicant向该终端连接过的AP发送连接请求Probe Request,当该终端连接过的AP接收到该连接请求Probe Request后,该终端连接过的AP的WIFI软硬件资源响应该连接请求Probe Request。It should be noted that the connection request Probe sent by the wireless configuration program WPA Supplicant The Request is a unicast request, that is, the connection request Probe Request is sent only to the specified AP, and only the specified AP can receive the connection request Probe. Request, when the specified AP receives the connection request Probe Request, the WIFI hardware and software resources of the specified AP will respond to the connection request Probe Request. For example, the wireless configuration program WPA Supplicant sends a connection request Probe to the AP connected to the terminal. Request, when the AP connected to the terminal receives the connection request Probe Request, the WIFI hardware and software resources of the AP connected to the terminal respond to the connection request Probe Request.
步骤S30,在接收到无线接入点基于连接请求反馈的响应信息时,接入反馈响应信息对应的无线接入点。Step S30: When receiving the response information that the wireless access point feeds back based on the connection request, access the wireless access point corresponding to the feedback response information.
在该终端中的无线配置程序WPA Supplicant向该终端连接过的AP发送连接请求Probe Request后,若该AP存在该终端该无线通讯连接范围内,且该AP是开启的,则该AP在接收到该连接请求Probe Request时,基于该连接请求Probe Request向该终端反馈响应信息Probe Response,当该终端接收到该AP反馈的响应信息Probe Response后,根据已获取的反馈该响应信息Probe Response的无线接入点对应的连接信息,将该终端连接到该无线接入点中。例如,在该终端连接过的AP的WIFI软硬件资源响应该连接请求Probe Request后,向该终端发送该连接请求Probe Request的响应信息Probe Response,当该终端中最先接收到该响应信息Probe Response的WIFI硬件部分将该响应信息Probe Response通过终端的接口Host Interface传送给WIFI驱动,该WIFI驱动将接收到的该响应信息Probe Response传送给无线配置程序WPA Supplicant,该无线配置程序WPA Supplicant将该响应信息保存在当前执行的事件消息report event中,在侦测到该当前执行的事件消息report event存在响应信息Probe Response时,将该响应信息Probe Response记录在临时设定的记录表record table中,并通知该无线配置程序WPA Supplicant根据已经获取的反馈该响应信息Probe Response的无线接入点对应的连接信息,连接该无线接入点。The wireless configuration program WPA Supplicant in the terminal sends a connection request Probe to the AP connected to the terminal. After the request, if the AP exists in the wireless communication connection range of the terminal, and the AP is enabled, the AP requests the Probe based on the connection request when receiving the connection request Probe Request The Request feeds back the response information Probe Response to the terminal, and the terminal receives the response information of the AP feedback. After the Response, the response information Probe is based on the feedback that has been obtained. The connection information corresponding to the wireless access point of the Response, and the terminal is connected to the wireless access point. For example, the WIFI hardware and software resources of the AP connected to the terminal respond to the connection request Probe. After the request, the response message Probe Response of the connection request Probe Request is sent to the terminal, and the response information Probe is first received in the terminal. The WIFI hardware part of the Response passes the response information Probe Response through the interface of the terminal Host The Interface is transmitted to the WIFI driver, and the WIFI driver transmits the received response information Probe Response to the wireless configuration program WPA. Supplicant, the wireless configuration program WPA Supplicant saves the response information in the currently executed event message report In the event, when the response message Probe Response of the currently executed event message is detected, the response information Probe The Response is recorded in the temporarily set record table record table, and the wireless configuration program WPA Supplicant is notified according to the feedback that has been obtained. The connection information corresponding to the wireless access point of the Response is connected to the wireless access point.
需要说明的是,该无线配置程序WPA Supplicant连接该无线接入点的过程是本领域技术人员熟知的技术,此处不再赘述。It should be noted that the wireless configuration program WPA The process of connecting the Supplicant to the wireless access point is a technology well known to those skilled in the art, and details are not described herein again.
本实施例通过在接收到无线通讯连接请求时,获取终端连接过的无线接入点对应的连接信息,并根据连接信息向无线连接点发送连接请求,在接收到无线接入点基于连接请求反馈的响应信息时,接入反馈响应信息对应的无线接入点。由于本发明在建立该终端与该无线接入点的无线通讯连接时,首先获取该终端连接过的无线接入点的信息,并向该终端连接过的无线接入点发送连接请求,在接收到该无线接入点基于该连接请求反馈的响应信息后,该终端与该无线接入点建立连接,因此不仅减小了无线通讯连接资源的消耗,而且降低了无线通讯连接时间,进而大大提高了无线通讯连接的效率。In this embodiment, when receiving the wireless communication connection request, the connection information corresponding to the wireless access point connected by the terminal is acquired, and the connection request is sent to the wireless connection point according to the connection information, and the wireless access point receives feedback based on the connection request. When the response information is received, the access feedback response information corresponds to the wireless access point. Since the present invention establishes the wireless communication connection between the terminal and the wireless access point, first acquires the information of the wireless access point connected to the terminal, and sends a connection request to the wireless access point connected to the terminal, and receives the connection request. After the wireless access point returns the response information based on the connection request, the terminal establishes a connection with the wireless access point, thereby not only reducing the consumption of the wireless communication connection resource, but also reducing the wireless communication connection time, thereby greatly improving The efficiency of the wireless communication connection.
进一步的,基于上述第一实施例,请参照图2,提出本发明无线通讯的连接控制方法的第二实施例的流程示意图,在该第二实施例中,S20之后,该无线通讯的连接控制方法包括:Further, based on the foregoing first embodiment, referring to FIG. 2, a schematic flowchart of a second embodiment of a method for controlling connection of wireless communication according to the present invention is provided. In the second embodiment, after S20, the connection control of the wireless communication is performed. Methods include:
步骤S40,在未接收到无线接入点基于连接请求反馈的响应信息时,进行终端的全信道扫描,以获取终端可接入的无线接入点。In step S40, when the response information of the wireless access point based on the connection request feedback is not received, the full channel scan of the terminal is performed to obtain the wireless access point accessible by the terminal.
在本实施中,当该终端中的无线配置程序WPA Supplicant向该终端连接过的AP发送连接请求Probe Request后,若该终端不在该AP无线信号的辐射范围内,或者该AP没有开启,则该AP不响应该连接请求Probe Request,即不向该终端发送响应信息Probe Response,因此当该终端接收不到已经连接过的AP反馈的响应信息Probe Response时,通知该终端中的无线配置程序WPA Supplicant进行全信道扫描,在该无线配置程序WPA Supplicant到全信道扫描通知后,自行完成全信道扫描的一系列准备工作(为本领域技术人员熟知的技术,此处不再赘述),以获取终端可接入的无线接入点。其中,该AP信号的辐射范围可以理解为以该AP为圆心,画一个半径为10m圆,该圆所围成的面积则是该AP无线信号的辐射范围。In this implementation, when the wireless configuration program WPA Supplicant in the terminal sends a connection request to the AP connected to the terminal, Probe After the Request, if the terminal is not in the radiation range of the AP wireless signal, or the AP is not turned on, the AP does not respond to the connection request Probe. Request, that is, the response information Probe Response is not sent to the terminal, so when the terminal does not receive the response information of the AP that has been connected, Probe In response, notify the wireless configuration program WPA Supplicant in the terminal to perform full channel scanning in the wireless configuration program WPA After the Supplicant completes the full channel scan notification, it completes a series of preparations for full channel scanning (known to those skilled in the art, and will not be described here) to obtain a wireless access point accessible by the terminal. The radiation range of the AP signal can be understood as a circle centered on the AP, and a radius of 10 m is drawn, and the area enclosed by the circle is the radiation range of the AP wireless signal.
需要说明的是,该终端中的无线配置程序WPA Supplicant进行全信道扫描的流程是:首先向该终端所支持的所有2.4G无线频谱和5G无线频谱定期驻留一段时间,向该2.4G无线频谱和5G无线频谱中的每一信道都发送连接请求Probe Request,在接收到各信道返回的响应信息Probe Response时,从各信道返回的响应信息Probe Response提取所有AP信息,在提取所有AP信息后,将各AP信息通过内核空间的WIFI驱动上报给用户空间程序,最终在各种UI显示界面呈现出来给用户查看和选择使用。其中,该AP信息包括WIFI网络名称SSID丶AP工作信道中心频率丶AP工作信道带宽丶AP所用spatial stream丶AP使用802.11标准丶AP所有WIFI芯片厂商信息丶AP所用无线加密方式以及AP所用WMM(Wireless QOS)信息,且该AP信息保存在该无线配置程序WPA Supplicant对应的存储空间中。It should be noted that the wireless configuration program WPA in the terminal The process of Supplicant performing full channel scanning is: firstly, all the 2.4G wireless spectrum and the 5G wireless spectrum supported by the terminal are periodically camped for a period of time, and a connection request is sent to each of the 2.4G wireless spectrum and the 5G wireless spectrum. Probe Request, response information Probe returned from each channel upon receiving the response information Probe Response returned by each channel The Response extracts all AP information. After extracting all the AP information, the AP information is reported to the user space program through the WIFI driver in the kernel space, and finally presented to the user for viewing and selection in various UI display interfaces. The AP information includes a WIFI network name SSID 丶 AP working channel center frequency 丶 AP working channel bandwidth 丶 AP used by spatial Stream丶AP uses 802.11 standard 丶AP all WIFI chip manufacturer information 丶AP wireless encryption method and AP WMM (Wireless) QOS) information, and the AP information is stored in a storage space corresponding to the wireless configuration program WPA Supplicant.
本实施例通过在未接收到无线接入点基于连接请求反馈的响应信息时,进行终端的全信道扫描,以获取终端可接入的无线接入点。由于若终端接收到连接过的AP反馈的响应信息Probe Response时,则直接连接该AP,若该终端未接收到连接过的AP反馈的响应信息Probe Response时,则该终端进入全信道扫描,以获取该终端可接入的无线接入点,从而使得终端只有在未接收到连接过的AP反馈的响应信息Probe Response时才开启全信道扫描,减小了整个无线网络的运行负担和压力,进而大大提高了无线通讯连接的效率。In this embodiment, when the response information of the wireless access point based on the connection request feedback is not received, the full channel scan of the terminal is performed to obtain the wireless access point accessible by the terminal. Because if the terminal receives the response information of the connected AP feedback, Probe In the case of Response, the AP is directly connected to the AP. If the terminal does not receive the response information of the connected AP feedback, Probe In the case of the response, the terminal enters the full channel scan to obtain the wireless access point accessible by the terminal, so that the terminal only receives the response information of the connected AP feedback. When the Response is enabled, full channel scanning is enabled, which reduces the operating burden and pressure of the entire wireless network, thereby greatly improving the efficiency of the wireless communication connection.
进一步的,基于上述第二实施例,请参照图3,提出本发明无线通讯的连接控制方法的第三实施例的流程示意图,在该第三实施例中,S40之后,该无线通讯的连接控制方法包括:Further, based on the foregoing second embodiment, referring to FIG. 3, a schematic flowchart of a third embodiment of a method for controlling connection of wireless communication according to the present invention is provided. In the third embodiment, after S40, the connection control of the wireless communication is performed. Methods include:
步骤S50,在检测到基于获取到的可接入的无线接入点的接入操作时,获取接入的无线接入点的连接信息;Step S50: Acquire connection information of the accessed wireless access point when detecting an access operation based on the obtained accessible wireless access point;
在本实施例中,在接收到用户基于UI显示界面选择连接的AP后,该终端中的无线配置程序WPA Supplicant连接该AP,当检测到该终端连接该AP的接入操作时,从该无线配置程序WPA Supplicant对应的存储空间中获取该AP的连接信息。In this embodiment, after receiving the AP that the user selects to connect based on the UI display interface, the wireless configuration program WPA in the terminal The Supplicant connects to the AP, and when the terminal detects the access operation of the AP, the wireless configuration program WPA The connection information of the AP is obtained in the storage space corresponding to the Supplicant.
步骤S60,将接入的无线接入点的连接信息存储为连接过的无线接入点对应的连接信息。Step S60: Store connection information of the accessed wireless access point as connection information corresponding to the connected wireless access point.
在获取到该AP的连接信息后,将该AP的连接信息存储在该终端预存的连接信息表AP_List中,以供终端调用。或者,定时检测该无线配置程序WPA Supplicant对应的存储空间中是否存在该终端连接过的AP的连接信息,且该终端预存的连接信息表AP_List当前不存在的AP的连接信息,若是,则获取该AP的连接信息,并将该AP的连接信息保存在该终端预存的连接信息表AP_List,以供该终端调用。After the connection information of the AP is obtained, the connection information of the AP is stored in the connection information table AP_List pre-stored by the terminal for the terminal to call. Or, periodically detect the wireless configuration program WPA Whether the connection information of the AP connected to the terminal exists in the storage space corresponding to the Supplicant, and the connection information of the AP that does not currently exist in the connection information table AP_List pre-stored by the terminal, if yes, obtain the connection information of the AP, and obtain the AP The connection information is stored in the connection information table AP_List prestored by the terminal for the terminal to call.
需要说明的是,该AP的连接信息是该无线配置程序WPA Supplicant对应的存储空间中保存的该AP信息的一部分;在保存从该无线配置程序WPA Supplicant中提取每个AP的连接信息时,采用C语言表示的保存结构保存该从无线配置程序WPA Supplicant中提取每个AP的连接信息,该C语言表示如下:It should be noted that the connection information of the AP is the wireless configuration program WPA. Supplicant corresponds to the portion of the AP information stored in the storage space; is saved from the wireless configuration program WPA When extracting the connection information of each AP in Supplicant, save the slave wireless configuration program WPA by using the save structure indicated by C language. Supplicant extracts the connection information of each AP, and the C language is expressed as follows:
TypedefstructAP_List{TypedefstructAP_List{
char ssid[128]; Char ssid[128];
char mac_addr[256]; Char mac_addr[256];
int channel; Int channel;
char encrypt_type[64];Char encrypt_type[64];
}AP_List; }AP_List;
其中,char ssid[128]为AP在WIFI中宣告的网络名称;char mac_addr[256]为AP的BSSID, 即其在WIFI中唯一的网络标识,以MAC地址表示;int channel为AP主工作信道,因为有些AP工作在40MHZ或80MHZ信道频宽模式下,本发明只需记录其主信道Primary channel, 不需记录其辅信道Secondary channel, 给Primary channel发送探寻请求Probe Request单播包, 只要AP处于工作状态并且收到此封包,必定会在此信道上发送探索响应包;char encrypt_type[64],AP加密类型,如不加密NONE、 WEP、 WPA-PSK以及 WPA2-PSK。Where char ssid[128] is the name of the network that the AP announces in WIFI; char Mac_addr[256] is the BSSID of the AP, that is, its unique network identifier in WIFI, represented by MAC address; int The channel is the AP main working channel. Because some APs work in the 40 MHz or 80 MHz channel bandwidth mode, the present invention only needs to record the primary channel of the primary channel. It is not necessary to record the secondary channel of the secondary channel, and send a Probe Request unicast packet to the Primary channel. As long as the AP is in working state and receives this packet, it will definitely send a discovery response packet on this channel; char encrypt_type[64], AP encryption type, if not encrypted NONE, WEP, WPA-PSK and WPA2-PSK.
本实施例通过在检测到基于获取到的可接入的无线接入点的接入操作时,获取接入的无线接入点的连接信息,将接入的无线接入点的连接信息存储为连接过的无线接入点对应的连接信息,使得该终端预存的连接信息表AP_List中记录实时更新,利于该终端的无线通讯连接,从而大大提高了无线通讯连接的效率。In this embodiment, when detecting an access operation based on the acquired accessible wireless access point, acquiring connection information of the accessed wireless access point, storing connection information of the accessed wireless access point as The connection information corresponding to the connected wireless access point enables the real-time update of the record in the connection information table AP_List prestored by the terminal, which facilitates the wireless communication connection of the terminal, thereby greatly improving the efficiency of the wireless communication connection.
进一步的,请参照图4,为本发明第一实施例中步骤S30的细化步骤的流程示意图,该步骤S30中接入反馈所述响应信息的所述无线接入点的细化步骤包括:Further, please refer to FIG. 4, which is a schematic flowchart of the refinement step of the step S30 in the first embodiment of the present invention. The refining step of accessing the wireless access point that feeds back the response information in the step S30 includes:
步骤S31,在反馈响应信息的无线接入点为多个时,获取各反馈信息中的无线接入点的信号强度;Step S31, when the number of wireless access points for feeding back response information is multiple, acquiring the signal strength of the wireless access point in each feedback information;
步骤S32,将多个无线接入点的信号强度进行比对,并接入信号强度较高的无线接入点。Step S32, comparing signal strengths of the plurality of wireless access points, and accessing the wireless access point with higher signal strength.
在本实施例中,当该终端中的无线配置程序WPA Supplicant接收到多个响应信息Probe Response时,说明该终端连接过的多个AP向该终端反馈响应信息Probe Response,则该无线配置程序WPA Supplicant从该反馈响应信息Probe Response中获取AP的信号强度,得到多个AP的信号强度,并将各AP的信号强度进行比对,确定各AP的信号强度中信号强度最高的AP作为该终端的将要连接的AP。In this embodiment, when the wireless configuration program WPA Supplicant in the terminal receives multiple response information Probe In the case of the response, the multiple APs connected to the terminal feed back the response information Probe Response to the terminal, and the wireless configuration program WPA Supplicant from the feedback response information Probe The signal strength of the AP is obtained in the Response, and the signal strengths of the multiple APs are obtained, and the signal strengths of the APs are compared, and the AP with the highest signal strength among the signal strengths of the APs is determined as the AP to be connected to the terminal.
需要说明的是,若该信号强度最高的AP有多个,则终端可连接该信号强度最高的AP中的任何一个。It should be noted that if there are multiple APs with the highest signal strength, the terminal can connect any one of the APs with the highest signal strength.
在本实施例中,在反馈响应信息的无线接入点为多个时,获取各反馈信息中的无线接入点的信号强度,将多个无线接入点的信号强度进行比对,并接入信号强度较高的无线接入点。由于该终端与该信号强度最高的AP连接,使得无线网络更加稳定,从而大大提高了无线通讯连接的效率。In this embodiment, when there are multiple wireless access points for feedback response information, the signal strength of the wireless access point in each feedback information is acquired, and the signal strengths of the multiple wireless access points are compared and connected. A wireless access point with a high signal strength. Since the terminal is connected to the AP with the highest signal strength, the wireless network is more stable, thereby greatly improving the efficiency of the wireless communication connection.
进一步的,基于上述第一实施例,请参照图5,提出本发明无线通讯的连接控制方法的第四实施例的流程示意图,在该第四实施例中,S10之前,该无线通讯的连接控制方法包括:Further, based on the foregoing first embodiment, referring to FIG. 5, a schematic flowchart of a fourth embodiment of a method for controlling connection of a wireless communication according to the present invention is provided. In the fourth embodiment, before the S10, the connection control of the wireless communication is performed. Methods include:
步骤S70,在接收到无线通讯连接请求时,判断终端预存的连接信息表中是否存在终端连接过的无线接入点对应的连接信息;Step S70: When receiving the wireless communication connection request, determining, in the connection information table pre-stored by the terminal, whether there is connection information corresponding to the wireless access point connected by the terminal;
在本实施例中,在该终端进入覆盖有无线网络的环境中,若该终端的无线连接开关已经打开,或者,若该终端的无线连接开关未打开,在确定用户打开该无线连接开关时,则该终端中的上层应用程序会触发一个无线通讯连接请求,在接收到该无线通讯连接请求后,检测该终端预存的连接信息表AP_List,判断该终端预存的连接信息表AP_List中是否存在该终端连接过的AP对应的连接信息。In this embodiment, when the terminal enters the environment covered by the wireless network, if the wireless connection switch of the terminal has been turned on, or if the wireless connection switch of the terminal is not turned on, when determining that the user turns on the wireless connection switch, The upper layer application in the terminal triggers a wireless communication connection request, and after receiving the wireless communication connection request, detects the connection information table AP_List prestored by the terminal, and determines whether the terminal exists in the connection information table AP_List prestored by the terminal. Connection information corresponding to the connected AP.
若是,则执行所述步骤S10,即获取终端连接过的无线接入点对应的连接信息;If yes, the step S10 is performed, that is, the connection information corresponding to the wireless access point connected by the terminal is obtained;
若该终端预存的连接信息表AP_List中存在该终端连接过的AP对应的连接信息时,则从该终端预存的连接信息表AP_List中获取该终端连接过的AP对应的连接信息,在获取该AP对应的连接信息后,通知该终端中的无线配置程序WPA Supplicant向该AP发送连接请求Probe Request。在该终端中的无线配置程序WPA Supplicant向该终端连接过的AP发送连接请求Probe Request后,若该AP存在该终端该无线通讯连接范围内,且该AP是开启的,则该AP在接收到该连接请求Probe Request时,基于该连接请求Probe Request向该终端反馈响应信息Probe Response,当该终端接收到该AP反馈的响应信息Probe Response后,根据已获取的反馈该响应信息Probe Response的无线接入点对应的连接信息,将该终端连接到该无线接入点中;当该终端中的无线配置程序WPA Supplicant向该终端连接过的AP发送连接请求Probe Request后,若该终端不在该AP无线信号的辐射范围内,或者该AP没有开启,则该AP不响应该连接请求Probe Request,即不向该终端发送响应信息Probe Response,因此当该终端接收不到已经连接过的AP反馈的响应信息Probe Response时,通知该终端中的无线配置程序WPA Supplicant进行全信道扫描。If the connection information corresponding to the AP connected to the terminal exists in the connection information table AP_List pre-stored by the terminal, the connection information corresponding to the AP connected to the terminal is obtained from the connection information table AP_List prestored by the terminal, and the AP is acquired. After the corresponding connection information, notify the wireless configuration program WPA in the terminal Supplicant sends a connection request Probe Request to the AP. Wireless configuration program WPA in the terminal Supplicant sends a connection request to the AP connected to the terminal. After the request, if the AP exists in the wireless communication connection range of the terminal, and the AP is enabled, the AP requests the Probe based on the connection request when receiving the connection request Probe Request The Request feeds back the response information Probe Response to the terminal, and the terminal receives the response information of the AP feedback. After the Response, the response information Probe is based on the feedback that has been obtained. The connection information corresponding to the wireless access point of the Response, the terminal is connected to the wireless access point; when the wireless configuration program WPA in the terminal Supplicant sends a connection request to the AP connected to the terminal. After the Request, if the terminal is not in the radiation range of the AP wireless signal, or the AP is not turned on, the AP does not respond to the connection request Probe. Request, that is, the response information Probe Response is not sent to the terminal, so when the terminal does not receive the response information of the AP that has been connected, Probe In the case of Response, the wireless configuration program WPA Supplicant in the terminal is notified to perform full channel scanning.
步骤S80,若否,则进行终端的全信道扫描,以获取终端可接入的无线接入点。Step S80: If no, perform full channel scanning of the terminal to obtain a wireless access point accessible by the terminal.
若该终端预存的连接信息表AP_List中不存在该终端连接过的AP对应的连接信息时,通知该终端中的无线配置程序WPA Supplicant进行全信道扫描,在该无线配置程序WPA Supplicant到全信道扫描通知后,自行完成全信道扫描的一系列准备工作,以获取终端可接入的无线接入点。If the connection information corresponding to the AP connected to the terminal does not exist in the connection information table AP_List prestored by the terminal, notify the wireless configuration program WPA in the terminal. Supplicant performs full channel scanning in the wireless configuration program WPA After Supplicant reaches the full channel scan notification, it completes a series of preparations for full channel scanning to obtain the wireless access point that the terminal can access.
本实施例通过在接收到所述无线通讯连接请求时,判断终端预存的连接信息表中是否存在所述终端连接过的无线接入点对应的连接信息,若是,则执行所述获取终端连接过的无线接入点对应的连接信息的步骤,若否,则进行所述终端的全信道扫描,以获取所述终端可接入的无线接入点,从而减小了整个无线网络的运行负担和压力,进而大大提高了无线通讯连接的效率。In this embodiment, when the wireless communication connection request is received, it is determined whether the connection information corresponding to the wireless access point connected to the terminal exists in the connection information table pre-stored by the terminal, and if yes, performing the obtaining terminal connection The step of connecting the information corresponding to the wireless access point, if not, performing a full channel scan of the terminal to obtain a wireless access point accessible by the terminal, thereby reducing the operational burden of the entire wireless network and The pressure, which in turn greatly increases the efficiency of the wireless communication connection.
本发明进一步提供一种无线通讯的连接控制装置。The invention further provides a connection control device for wireless communication.
参照图6,图6为本发明无线通讯的连接控制装置的第一实施例的功能模块示意图。Referring to FIG. 6, FIG. 6 is a schematic diagram of functional modules of a first embodiment of a connection control apparatus for wireless communication according to the present invention.
在本实施例中,所述装置包括:第一获取模块10、发送模块20以及第一连接模块30。In this embodiment, the device includes: a first acquiring module 10, a sending module 20, and a first connecting module 30.
所述第一获取模块10,用于在接收到无线通讯连接请求时,获取终端连接过的无线接入点对应的连接信息;The first obtaining module 10 is configured to acquire connection information corresponding to the wireless access point that the terminal has connected when receiving the wireless communication connection request;
所述发送模块20,用于根据连接信息向无线接入点发送连接请求;The sending module 20 is configured to send a connection request to the wireless access point according to the connection information;
所述第一连接模块30,用于在接收到无线接入点基于连接请求反馈的响应信息时,接入反馈响应信息对应的无线接入点。The first connection module 30 is configured to access a wireless access point corresponding to the feedback response information when receiving the response information of the wireless access point based on the connection request feedback.
在具体实现过程中,无线通讯的连接控制装置中的各个模块的功能与图1中各个方法步骤中的操作相对应。有关这些操作步骤的具体内容已经在前文做了详细的描述,因此此处不再赘述。In a specific implementation process, the functions of the respective modules in the connection control device of the wireless communication correspond to the operations in the respective method steps in FIG. The specific content of these operation steps has been described in detail in the foregoing, and therefore will not be described here.
进一步的,基于上述第一实施例,提出本发明无线通讯的连接控制装置的第二实施例,在本实施例中,参照图7,所述无线通讯的连接控制装置还包括:第二连接模块40。Further, based on the first embodiment, a second embodiment of the connection control device for wireless communication of the present invention is proposed. In this embodiment, referring to FIG. 7, the connection control device for wireless communication further includes: a second connection module. 40.
所述第二连接模块40,用于在未接收到无线接入点基于连接请求反馈的响应信息时,进行终端的全信道扫描,以获取终端可接入的无线接入点。The second connection module 40 is configured to perform a full channel scan of the terminal to obtain a wireless access point accessible by the terminal when the response information of the wireless access point based on the connection request feedback is not received.
在具体实现过程中,无线通讯的连接控制装置中的各个模块的功能与图2中各个方法步骤中的操作相对应。有关这些操作步骤的具体内容已经在前文做了详细的描述,因此此处不再赘述。In a specific implementation process, the functions of the respective modules in the connection control device of the wireless communication correspond to the operations in the respective method steps in FIG. The specific content of these operation steps has been described in detail in the foregoing, and therefore will not be described here.
进一步的,基于上述第二实施例,提出本发明无线通讯的连接控制装置的第三实施例,在本实施例中,参照图8,所述无线通讯的连接控制装置还包括:第二获取模块50、存储模块60。Further, based on the foregoing second embodiment, a third embodiment of the connection control device for wireless communication of the present invention is proposed. In this embodiment, referring to FIG. 8, the connection control device for wireless communication further includes: a second acquisition module. 50. The storage module 60.
所述第二获取模块50,用于在检测到基于获取到的可接入的无线接入点的接入操作时,获取接入的无线接入点的连接信息;The second obtaining module 50 is configured to acquire connection information of the accessed wireless access point when detecting an access operation based on the acquired accessible wireless access point;
所述存储模块60,用于将接入的无线接入点的连接信息存储为连接过的无线接入点对应的连接信息。The storage module 60 is configured to store connection information of the accessed wireless access point as connection information corresponding to the connected wireless access point.
在具体实现过程中,无线通讯的连接控制装置中的各个模块的功能与图3中各个方法步骤中的操作相对应。有关这些操作步骤的具体内容已经在前文做了详细的描述,因此此处不再赘述。In a specific implementation process, the functions of the respective modules in the connection control device of the wireless communication correspond to the operations in the respective method steps in FIG. The specific content of these operation steps has been described in detail in the foregoing, and therefore will not be described here.
进一步的,基于上述第一实施例,提出本发明无线通讯的连接控制装置的第四实施例,在本实施例中,参照图9,所述第一连接模块30包括获取单元31、连接单元32。Further, based on the above-mentioned first embodiment, a fourth embodiment of the connection control apparatus for wireless communication of the present invention is proposed. In this embodiment, referring to FIG. 9, the first connection module 30 includes an acquisition unit 31 and a connection unit 32. .
所述获取单元31,用于在反馈响应信息的无线接入点为多个时,获取各反馈信息中的无线接入点的信号强度;The acquiring unit 31 is configured to acquire a signal strength of a wireless access point in each feedback information when the number of wireless access points for feeding back response information is multiple;
所述连接单元32,用于将多个无线接入点的信号强度进行比对,并接入信号强度较高的无线接入点。The connecting unit 32 is configured to compare signal strengths of multiple wireless access points and access wireless access points with high signal strength.
在具体实现过程中,无线通讯的连接控制装置中的各个模块的功能与图4中各个方法步骤中的操作相对应。有关这些操作步骤的具体内容已经在前文做了详细的描述,因此此处不再赘述。In a specific implementation process, the functions of the respective modules in the connection control device of the wireless communication correspond to the operations in the respective method steps in FIG. The specific content of these operation steps has been described in detail in the foregoing, and therefore will not be described here.
进一步的,基于上述第一实施例,提出本发明无线通讯的连接控制装置的第五实施例,在本实施例中,参照图10,所述无线通讯的连接控制装置还包括:判断模块70。Further, based on the above-mentioned first embodiment, a fifth embodiment of the connection control device for wireless communication of the present invention is proposed. In the embodiment, referring to FIG. 10, the connection control device for wireless communication further includes: a determination module 70.
所述判断模块70,用于在接收到无线通讯连接请求时,判断终端预存的连接信息表中是否存在终端连接过的无线接入点对应的连接信息;The determining module 70 is configured to determine, when receiving the wireless communication connection request, whether the connection information corresponding to the wireless access point connected to the terminal exists in the connection information table pre-stored by the terminal;
所述第一获取模块10,还用于若终端预存的连接信息表中存在终端连接过的无线接入点对应的连接信息,则获取终端连接过的无线接入点对应的连接信息;The first obtaining module 10 is further configured to: if the connection information corresponding to the wireless access point connected to the terminal exists in the connection information table pre-stored by the terminal, obtain the connection information corresponding to the wireless access point connected by the terminal;
所述第二连接模块40,还用于若终端预存的连接信息表中不存在终端连接过的无线接入点对应的连接信息,则进行终端的全信道扫描,以获取终端可接入的无线接入点。The second connection module 40 is further configured to: if the connection information corresponding to the wireless access point connected by the terminal does not exist in the connection information table pre-stored by the terminal, perform full channel scanning of the terminal to obtain wireless accessable by the terminal. Access Point.
在具体实现过程中,无线通讯的连接控制装置中的各个模块的功能与图5中各个方法步骤中的操作相对应。有关这些操作步骤的具体内容已经在前文做了详细的描述,因此此处不再赘述。In a specific implementation process, the functions of the respective modules in the connection control device of the wireless communication correspond to the operations in the respective method steps in FIG. The specific content of these operation steps has been described in detail in the foregoing, and therefore will not be described here.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only the preferred embodiments of the present invention, and are not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the present invention and the drawings are directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of the present invention.

Claims (11)

  1. 一种无线通讯的连接控制方法,其特征在于,所述无线通讯的连接控制方法包括以下步骤: A connection control method for wireless communication, characterized in that the connection control method of the wireless communication comprises the following steps:
    在接收到无线通讯连接请求时,获取终端连接过的无线接入点对应的连接信息;When receiving the wireless communication connection request, acquiring connection information corresponding to the wireless access point connected by the terminal;
    根据所述连接信息向所述无线接入点发送连接请求;Sending a connection request to the wireless access point according to the connection information;
    在未接收到所述无线接入点基于所述连接请求反馈的响应信息时,进行所述终端的全信道扫描,以获取所述终端可接入的无线接入点;After receiving the response information that is sent by the wireless access point based on the connection request, performing full channel scanning of the terminal to obtain a wireless access point accessible by the terminal;
    在接收到所述无线接入点基于所述连接请求反馈的响应信息,且反馈所述响应信息的无线接入点为多个时,获取各所述反馈信息中的所述无线接入点的信号强度;Obtaining, by the wireless access point, the response information that is fed back based on the connection request, and the plurality of wireless access points that feed back the response information, acquiring the wireless access point in each of the feedback information Signal strength
    将多个所述无线接入点的信号强度进行比对,并接入信号强度较高的所述无线接入点。Comparing signal strengths of the plurality of wireless access points and accessing the wireless access point with higher signal strength.
  2. 一种无线通讯的连接控制方法,其特征在于,所述无线通讯的连接控制方法包括以下步骤:A connection control method for wireless communication, characterized in that the connection control method of the wireless communication comprises the following steps:
    在接收到无线通讯连接请求时,获取终端连接过的无线接入点对应的连接信息;When receiving the wireless communication connection request, acquiring connection information corresponding to the wireless access point connected by the terminal;
    根据所述连接信息向所述无线接入点发送连接请求;Sending a connection request to the wireless access point according to the connection information;
    在接收到所述无线接入点基于所述连接请求反馈的响应信息时,接入反馈所述响应信息对应的所述无线接入点。Receiving, by the wireless access point, response information that is fed back based on the connection request, accessing the wireless access point corresponding to the response information.
  3. 如权利要求2所述的无线通讯的连接控制方法,其特征在于,所述根据所述连接信息向所述无线接入点发送连接请求的步骤之后还包括:The method for controlling the connection of the wireless communication according to claim 2, wherein the step of transmitting a connection request to the wireless access point according to the connection information further comprises:
    在未接收到所述无线接入点基于所述连接请求反馈的响应信息时,进行所述终端的全信道扫描,以获取所述终端可接入的无线接入点。When the response information of the wireless access point based on the connection request is not received, performing full channel scanning of the terminal to obtain a wireless access point accessible by the terminal.
  4. 如权利要求3所述的无线通讯的连接控制方法,其特征在于,所述在未接收到所述无线接入点基于所述连接请求反馈的响应信息时,进行所述终端的全信道扫描,以获取所述终端可接入的无线接入点的步骤之后还包括:The connection control method for wireless communication according to claim 3, wherein the full channel scan of the terminal is performed when the response information fed back by the wireless access point based on the connection request is not received, After the step of acquiring the wireless access point accessible by the terminal, the method further includes:
    在检测到基于获取到的可接入的无线接入点的接入操作时,获取接入的无线接入点的连接信息;Obtaining connection information of the accessed wireless access point when detecting an access operation based on the acquired accessible wireless access point;
    将所述接入的无线接入点的连接信息存储为连接过的无线接入点对应的连接信息。The connection information of the accessed wireless access point is stored as connection information corresponding to the connected wireless access point.
  5. 如权利要求2所述的无线通讯的连接控制方法,其特征在于,所述接入反馈所述响应信息对应的所述无线接入点的步骤包括:The method for controlling the connection of the wireless communication according to claim 2, wherein the step of accessing the wireless access point corresponding to the response information comprises:
    在反馈所述响应信息的无线接入点为多个时,获取各所述反馈信息中的所述无线接入点的信号强度;Obtaining a signal strength of the wireless access point in each of the feedback information when there are multiple wireless access points that feed back the response information;
    将多个所述无线接入点的信号强度进行比对,并接入信号强度较高的所述无线接入点。Comparing signal strengths of the plurality of wireless access points and accessing the wireless access point with higher signal strength.
  6. 如权利要求2所述的无线通讯的连接控制方法,其特征在于,所述获取终端连接过的无线接入点对应的连接信息的步骤之前,所述无线通讯的连接控制方法还包括步骤:The method for controlling the connection of the wireless communication according to claim 2, wherein before the step of acquiring the connection information corresponding to the wireless access point connected by the terminal, the method for controlling connection of the wireless communication further comprises the steps of:
    在接收到所述无线通讯连接请求时,判断终端预存的连接信息表中是否存在所述终端连接过的无线接入点对应的连接信息;When receiving the wireless communication connection request, determining whether the connection information corresponding to the wireless access point connected to the terminal exists in the connection information table pre-stored by the terminal;
    若是,则执行所述获取终端连接过的无线接入点对应的连接信息的步骤;If yes, performing the step of acquiring connection information corresponding to the wireless access point connected by the terminal;
    若否,则进行所述终端的全信道扫描,以获取所述终端可接入的无线接入点。If not, performing full channel scanning of the terminal to obtain a wireless access point accessible by the terminal.
  7. 一种无线通讯的连接控制装置,其特征在于,所述无线通讯的连接控制装置包括:A connection control device for wireless communication, characterized in that the connection control device for wireless communication comprises:
    第一获取模块,用于在接收到无线通讯连接请求时,获取终端连接过的无线接入点对应的连接信息;a first acquiring module, configured to acquire connection information corresponding to the wireless access point that the terminal has connected when receiving the wireless communication connection request;
    发送模块,用于根据所述连接信息向所述无线接入点发送连接请求;a sending module, configured to send a connection request to the wireless access point according to the connection information;
    第一连接模块,用于在接收到所述无线接入点基于所述连接请求反馈的响应信息时,接入反馈所述响应信息对应的所述无线接入点。a first connection module, configured to: when receiving the response information that is sent by the wireless access point based on the connection request, access the wireless access point corresponding to the response information.
  8. 如权利要求7所述的无线通讯的连接控制装置,其特征在于,所述无线通讯的连接控制装置还包括:The connection control device for wireless communication according to claim 7, wherein the connection control device for wireless communication further comprises:
    第二连接模块,用于在未接收到所述无线接入点基于所述连接请求反馈的响应信息时,进行所述终端的全信道扫描,以获取所述终端可接入的无线接入点。a second connection module, configured to perform a full channel scan of the terminal to obtain a wireless access point accessible by the terminal when the wireless access point does not receive the response information that is fed back based on the connection request .
  9. 如权利要求8所述的无线通讯的连接控制装置,其特征在于,所述无线通讯的连接控制装置还包括:The connection control device for wireless communication according to claim 8, wherein the connection control device for wireless communication further comprises:
    第二获取模块,用于在检测到基于获取到的可接入的无线接入点的接入操作时,获取接入的无线接入点的连接信息;a second acquiring module, configured to acquire connection information of the accessed wireless access point when detecting an access operation based on the acquired accessible wireless access point;
    存储模块,用于将所述接入的无线接入点的连接信息存储为连接过的无线接入点对应的连接信息。And a storage module, configured to store connection information of the accessed wireless access point as connection information corresponding to the connected wireless access point.
  10. 如权利要求7所述的无线通讯的连接控制装置,其特征在于,所述第一连接模块包括:The connection control device for wireless communication according to claim 7, wherein the first connection module comprises:
    获取单元,用于在反馈所述响应信息的无线接入点为多个时,获取各所述反馈信息中的所述无线接入点的信号强度;An acquiring unit, configured to acquire a signal strength of the wireless access point in each of the feedback information when the number of wireless access points that feed back the response information is multiple;
    连接单元,用于将多个所述无线接入点的信号强度进行比对,并接入信号强度较高的所述无线接入点。And a connecting unit, configured to compare signal strengths of the plurality of wireless access points, and access the wireless access point with high signal strength.
  11. 如权利要求7所述的无线通讯的连接控制装置,其特征在于,在调用第一获取模块之前,所述无线通讯的连接控制装置还包括:The connection control device for wireless communication according to claim 7, wherein before the invoking the first acquisition module, the connection control device of the wireless communication further comprises:
    判断模块,用于在接收到所述无线通讯连接请求时,判断终端预存的连接信息表中是否存在所述终端连接过的无线接入点对应的连接信息;a determining module, configured to: determine, when the wireless communication connection request is received, whether the connection information corresponding to the wireless access point connected to the terminal exists in the connection information table pre-stored by the terminal;
    所述第一获取模块,还用于若所述终端预存的连接信息表中存在所述终端连接过的无线接入点对应的连接信息,则获取所述终端连接过的无线接入点对应的连接信息;The first acquiring module is further configured to: if the connection information corresponding to the wireless access point connected to the terminal exists in the connection information table pre-stored by the terminal, acquire the corresponding wireless access point connected to the terminal Connection information
    所述第二连接模块,还用于若所述终端预存的连接信息表中不存在所述终端连接过的无线接入点对应的连接信息,则进行所述终端的全信道扫描,以获取所述终端可接入的无线接入点。The second connection module is further configured to: if the connection information corresponding to the wireless access point connected to the terminal does not exist in the connection information table pre-stored by the terminal, perform full channel scanning of the terminal to obtain A wireless access point that the terminal can access.
PCT/CN2016/096847 2016-05-05 2016-08-26 Wireless communication connection control method and apparatus WO2017190453A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610296657.6 2016-05-05
CN201610296657.6A CN106028425A (en) 2016-05-05 2016-05-05 Wireless communication connection control method and device

Publications (1)

Publication Number Publication Date
WO2017190453A1 true WO2017190453A1 (en) 2017-11-09

Family

ID=57082198

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/096847 WO2017190453A1 (en) 2016-05-05 2016-08-26 Wireless communication connection control method and apparatus

Country Status (2)

Country Link
CN (1) CN106028425A (en)
WO (1) WO2017190453A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109951870B (en) * 2017-12-21 2022-11-15 深圳Tcl新技术有限公司 Channel configuration method of WIFI router, storage medium and router
CN110225603A (en) * 2019-05-16 2019-09-10 普联技术有限公司 Wireless network card system, control method, device, storage medium and communication equipment
CN113207144A (en) * 2021-05-06 2021-08-03 北京字跳网络技术有限公司 Wireless network detection method and device for screen projection equipment, medium and screen projection equipment
CN116301905A (en) * 2023-05-19 2023-06-23 荣耀终端有限公司 Data processing method and related equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103200685A (en) * 2012-01-09 2013-07-10 华为技术有限公司 Feedback method initiatively scanning user terminal and access point
CN103561449A (en) * 2013-11-08 2014-02-05 福建星网锐捷网络有限公司 Wireless access method and wireless access point
US20140092755A1 (en) * 2012-09-28 2014-04-03 Adriaan van de Ven Reducing wireless reconnection time of a computing device
WO2014052767A1 (en) * 2012-09-28 2014-04-03 Intel Corporation Mixed off-site / on-site prediction computation for reducing wireless reconnection time of a computing device
WO2014184650A1 (en) * 2013-05-17 2014-11-20 Alcatel Lucent Splitting resources of an access point into a plurality of virtual access points

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103200685A (en) * 2012-01-09 2013-07-10 华为技术有限公司 Feedback method initiatively scanning user terminal and access point
US20140092755A1 (en) * 2012-09-28 2014-04-03 Adriaan van de Ven Reducing wireless reconnection time of a computing device
WO2014052767A1 (en) * 2012-09-28 2014-04-03 Intel Corporation Mixed off-site / on-site prediction computation for reducing wireless reconnection time of a computing device
WO2014184650A1 (en) * 2013-05-17 2014-11-20 Alcatel Lucent Splitting resources of an access point into a plurality of virtual access points
CN103561449A (en) * 2013-11-08 2014-02-05 福建星网锐捷网络有限公司 Wireless access method and wireless access point

Also Published As

Publication number Publication date
CN106028425A (en) 2016-10-12

Similar Documents

Publication Publication Date Title
WO2020204299A1 (en) Electronic device for controlling beam on basis of data collected by camera, and operation method of electronic device
WO2011087210A2 (en) Electronic device and operating method thereof
WO2016029594A1 (en) Method and system for terminal to connect with display device
WO2017190453A1 (en) Wireless communication connection control method and apparatus
WO2020204505A1 (en) Method for edge computing service and electronic device therefor
WO2020122638A1 (en) Mobile device and electronic device for wireless communication, and operation methods thereof
WO2015172684A1 (en) Ap connection method, terminal, and server
WO2014019183A1 (en) Method and system for controlling terminal device to access wireless network
EP4007927A1 (en) Electronic device for determining path of line of sight (los) and method for the same
WO2019128174A1 (en) Method for playing audio, smart television and computer-readable storage medium
WO2017065554A1 (en) Apparatus and method for performing beamforming operation in millimeter wave communication system
WO2019199107A1 (en) Electronic device and bandwidth adaptation-based power control method in electronic device
WO2016173259A1 (en) Bluetooth pairing method and bluetooth pairing device
WO2021006608A1 (en) Electronic device for supporting dual connectivity and power control method therefor
WO2020076110A1 (en) Electronic device for determining p2p operating channel and method thereof
WO2020040554A1 (en) Method for adjusting phase of signal to be input to multiple antennas, and electronic device implementing method
WO2020218759A1 (en) Electronic device for performing beam change in wireless communication system and method thereof
WO2020075980A1 (en) Inter-cell interference mitigation method in dynamic time division duplex environment, and electronic device for same
WO2018107562A1 (en) Unmanned aerial vehicle, and unmanned aerial vehicle charging control method and system
WO2019161597A1 (en) Information sending method, apparatus and device based on instant messaging, and storage medium
WO2021215714A1 (en) Electronic device and method for setting, by electronic device, antenna path of transmission signal
WO2021025359A1 (en) Method for controlling transmission power of radio signal and electronic device therefor
WO2016206223A1 (en) Screenshooting method and system
WO2019051901A1 (en) Terminal control method and device, and computer readable storage medium
WO2020235911A1 (en) Method of accessing network based on access technology and electronic device therefor

Legal Events

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

Ref country code: DE

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

Ref document number: 16900975

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 11.01.2019)

122 Ep: pct application non-entry in european phase

Ref document number: 16900975

Country of ref document: EP

Kind code of ref document: A1