WO2018121086A1 - Method for connecting to hidden ap, and terminal device - Google Patents

Method for connecting to hidden ap, and terminal device Download PDF

Info

Publication number
WO2018121086A1
WO2018121086A1 PCT/CN2017/109947 CN2017109947W WO2018121086A1 WO 2018121086 A1 WO2018121086 A1 WO 2018121086A1 CN 2017109947 W CN2017109947 W CN 2017109947W WO 2018121086 A1 WO2018121086 A1 WO 2018121086A1
Authority
WO
WIPO (PCT)
Prior art keywords
hidden
ssid
terminal device
unit
scan request
Prior art date
Application number
PCT/CN2017/109947
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 WO2018121086A1 publication Critical patent/WO2018121086A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/03Protecting confidentiality, e.g. by encryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/02Access restriction performed under specific conditions
    • 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
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/02Protecting privacy or anonymity, e.g. protecting personally identifiable information [PII]

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method and a terminal device for connecting a hidden AP.
  • Wi-Fi Wireless Fidelity
  • APs Access Point
  • Wi-Fi network To establish a Wi-Fi network; and using the Wi-Fi network to access the Internet anytime, anywhere has become a habit that people are used to.
  • Wi-Fi networks have also increased the risk of network security.
  • users can choose not to broadcast the SSID (Service Set Identifier) of the AP, so that the AP is hidden. It cannot be searched and accessed by the device, and to a certain extent, avoids the occurrence of an event that is stolen by the Wi-Fi network, or is cracked by the account password.
  • SSID Service Set Identifier
  • the hidden AP can play a role in reducing the network security risk, it brings inconvenience to the network established by the user who has not accessed the AP before accessing the AP.
  • the embodiment of the invention provides a method for connecting a hidden AP and a terminal device, which can improve the success rate of the scan connection.
  • a first aspect of the embodiments of the present invention discloses a method for connecting a hidden AP, including:
  • the SSID is re-encoded by the second character encoding method, and the second scan request including the re-encoded SSID is broadcasted.
  • a second aspect of the embodiment of the present invention discloses a terminal device, including:
  • An obtaining unit configured to acquire a service set identifier SSID of a hidden AP that the user wants to connect;
  • a first coding unit configured to encode the SSID by using a first character encoding manner
  • a first broadcast unit configured to broadcast a first scan request that includes the encoded SSID to find the hidden AP
  • a second coding unit configured to re-encode the SSID by using a second character encoding manner if the hidden AP is not found
  • a second broadcast unit configured to broadcast a second scan request including the re-encoded SSID.
  • a third aspect of the embodiment of the present invention discloses a terminal device, including:
  • a processor coupled to the memory
  • the processor invokes the executable program code stored in the memory to perform the method described in the first aspect above.
  • a fourth aspect of the embodiments of the present invention provides a computer readable storage medium storing a computer program for electronic data exchange, wherein the computer program causes the computer to perform the method of any one of the embodiments of the present invention .
  • a fifth aspect of an embodiment of the present invention provides a computer program product comprising a non-transitory computer readable storage medium storing a computer program, the computer program being operative to cause a computer to perform an embodiment of the present invention
  • FIG. 1 is a schematic flowchart of a method for connecting a hidden AP according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart diagram of another method for connecting a hidden AP according to an embodiment of the present disclosure
  • 2A is a schematic diagram of interaction of connecting a hidden AP according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of a terminal device 300 according to an embodiment of the present disclosure.
  • FIG. 3A is a schematic structural diagram of an acquiring unit 301 according to an embodiment of the present disclosure.
  • FIG. 4 is a schematic structural diagram of another terminal device 400 according to an embodiment of the present disclosure.
  • FIG. 5 is a schematic structural diagram of a terminal device 500 according to an embodiment of the present invention.
  • the embodiment of the invention provides a method for connecting a hidden AP and a terminal device, which can switch different character encoding modes to scan the hidden AP, avoiding the situation that the hidden AP is not found due to the inconsistent character encoding manner, and improving the success rate of the scanning connection.
  • the details are described below separately.
  • FIG. 1 is a schematic flowchart diagram of a method for connecting a hidden AP according to an embodiment of the present invention.
  • the method shown in FIG. 1 may include the following steps:
  • the terminal device acquires the SSID of the hidden AP that the user wants to connect.
  • the foregoing terminal device may be a smart phone, a tablet computer, a personal digital assistant (PDA), a point of sales (POS), etc., and is not repeatedly described in the embodiment of the present invention.
  • PDA personal digital assistant
  • POS point of sales
  • the user clicks the button of “Add Network” displayed on the display interface of the terminal device, and the terminal device displays a dialog box to enable the user to input the SSID and password of the hidden AP that is to be connected, and the terminal device receives the button.
  • the terminal device displays a dialog box to enable the user to input the SSID and password of the hidden AP that is to be connected, and the terminal device receives the button.
  • the default character encoding is used for the SSID.
  • the user scans the two-dimensional code that provides the SSID and the password of the hidden AP by using the terminal device, and the terminal device parses the information included in the scanned two-dimensional code, and then from the information included in the two-dimensional code. Get the SSID of the hidden AP that the user wants to connect to.
  • the user may use a terminal device to capture a picture including the SSID of the hidden AP to obtain a target image, and perform text recognition on the target image to obtain an SSID of the hidden AP. Since the SSID is often set longer, the user's manual input is time-consuming and error-prone; in this way, the user can conveniently obtain the SSID name without manual input, thereby improving the convenience of searching for hidden APs.
  • the user may perform recording by using a microphone to obtain target voice information, and perform voice recognition on the target voice information to obtain an SSID of the hidden AP.
  • the user informs the user to hide the SSID of the AP, the user needs to manually input the heard SSID to the terminal device to initiate a search for the hidden AP; and by this embodiment, the user can conveniently obtain the SSID name without manual input. Improves the convenience of searching for hidden APs.
  • the hidden AP is connected. You need to scan the specified SSID to find the AP. If you scan the AP with the specified SSID, you will try to connect. Due to the difference in the SSID encoding mode, if the SSID included in the scanning request broadcast by the terminal device is different from the character encoding mode used by the hidden AP, the AP will still fail to match the SSID after receiving the scanning request, and the terminal device cannot find the AP.
  • the terminal device first encodes the acquired SSID by using a default character encoding manner, and generates a first scan request including the encoded SSID.
  • the foregoing character encoding mode may be GBK, Unicode, ASCII, UTF-8, etc., and the specific manner is not limited in the embodiment of the present invention.
  • the terminal device After the first scan request is broadcasted, the time after the first scan request is broadcasted; if the time after the first scan request is broadcast has exceeded a preset threshold, the terminal device does not receive the first response of the hidden AP. The message confirms that the above hidden AP is not found.
  • the first scanning request including the encoded SSID cannot be used to find the hidden AP, it is presumed that the SSID encoded by the first character encoding method does not match the SSID encoding mode of the hidden AP, and may be replaced. The manner in which the scan request is resent after the character encoding mode of the SSID continues to try to find the above hidden AP.
  • the Received Signal Strength Indication (RSSI) of the hidden AP may be obtained. If the RSSI of the hidden AP is greater than a preset threshold, the hidden AP is sent to the hidden AP. Access request. If the RSSI of the AP is less than the preset threshold, the prompt message is output to prompt the user that the AP signal quality is poor. It is recommended to select another AP for access. In this way, avoiding APs with poor access signals causes problems such as dropped calls and frequent roaming.
  • RSSI Received Signal Strength Indication
  • FIG. 2 is a schematic flowchart diagram of another method for connecting a hidden AP according to an embodiment of the present invention. As shown in FIG. 2, the method may include the following steps:
  • the user scans the two-dimensional code that provides the SSID and the password of the hidden AP by using the terminal device, and the terminal device parses the information included in the scanned two-dimensional code, and then from the information included in the two-dimensional code. Get the SSID of the hidden AP that the user wants to connect to.
  • the terminal device first encodes the acquired SSID by using a default character encoding manner, and generates a first scan request including the encoded SSID.
  • the foregoing character encoding mode may be GBK, Unicode, ASCII, UTF-8, etc., and the specific manner is not limited in the embodiment of the present invention.
  • the hidden AP if the character encoding mode of the SSID in the first scan request sent by the terminal device is consistent with the manner in which the hidden AP performs character encoding on the SSID, the hidden AP returns a first response message to the terminal device to notify the terminal device. Scan to the AP; then the hidden AP will verify the first Whether the encryption mode in the scan request is consistent with the setting of the device, and then verifying that the password of the SSID provided in the first scan request is correct. After the verification is successful, the hidden AP authorizes the terminal device to access the hidden AP, and The terminal device returns a response message to notify the access success.
  • the terminal device receives the second response message returned by the hidden AP, and determines whether the hidden AP can be successfully accessed by using the error code included in the second response message.
  • the connection may fail. Therefore, the encryption method in the scan request or the character encoding mode of the password corresponding to the SSID can be modified, and the access request is sent to the AP again.
  • the administrator of the AP sets the encryption mode when the AP sends and receives data through the AP.
  • the encryption mode includes the pre-shared key wireless network security access WPA-PSK and the wireless network security connection. Into WPA and wired equivalent confidential WEP, etc.
  • the scanning request or the access request needs to include the same encryption mode as the AP to successfully access the AP.
  • the encryption method in the scan request is modified to generate a third scan request, and the third scan request is broadcasted to access the AP.
  • the following method may be adopted: if the hidden AP cannot be successfully accessed, the third character encoding method is used to perform the password corresponding to the SSID. Encoding again, and sending an access request containing the re-encoded password described above to the hidden AP.
  • FIG. 2A is a schematic diagram of interaction of a hidden AP according to an embodiment of the present invention.
  • the terminal device obtains the SSID of the hidden AP, and then encodes the SSID by using the first character encoding manner, and then sends the first scan request including the encoded SSID to the hidden AP; the hidden AP parses the first scan request, and obtains the The encoded SSID is matched with the SSID of the device; if the SSID matches successfully, the hidden AP sends a first response message to the terminal device to notify the terminal device to find the hidden AP; and the hidden AP further acquires the first scan request.
  • the character encoding manners are inconsistent, and the third password encoding method is used to re-en
  • FIG. 3 is a schematic structural diagram of a terminal device 300 according to an embodiment of the present invention.
  • the terminal device 300 may include:
  • the obtaining unit 301 is configured to acquire a service set identifier SSID of the hidden AP that the user wants to connect.
  • the first encoding unit 302 is configured to encode the SSID by using a first character encoding manner.
  • the first broadcast unit 303 is configured to broadcast a first scan request including the encoded SSID to find the hidden AP.
  • the second encoding unit 304 is configured to re-encode the SSID by using a second character encoding manner if the hidden AP is not found.
  • the second broadcast unit 305 is configured to broadcast a second scan request including the above-mentioned SSID after re-encoding.
  • FIG. 3A is a schematic structural diagram of an acquiring unit 301 according to an embodiment of the present invention.
  • the obtaining unit 301 may include a parsing subunit 3011 and an obtaining subunit 3012.
  • the parsing subunit 3011 is configured to parse the information included in the scanned two-dimensional code
  • the obtaining subunit 3012 is configured to obtain, from the information included in the two-dimensional code, an SSID of the hidden AP that the user wants to connect.
  • FIG. 4 is a schematic structural diagram of another terminal device 400 according to an embodiment of the present invention.
  • the terminal device shown in FIG. 4 is optimized by the terminal device shown in FIG. 3.
  • the terminal device 400 shown in FIG. 3 is optimized by the terminal device shown in FIG. 3.
  • the statistics unit 306 is configured to count the time after broadcasting the first scan request.
  • the determining unit 307 is configured to determine that the hidden AP is not found if the terminal device does not receive the first response message of the hidden AP if the time after the foregoing first scanning request exceeds the preset threshold.
  • the first determining unit 308 is configured to determine whether the hidden AP can be successfully accessed.
  • the modifying unit 309 is configured to modify the encryption mode in the first scan request to obtain a third scan request if the hidden AP cannot be successfully accessed.
  • the acquiring unit may include a shooting subunit and a text recognition subunit, wherein:
  • a shooting subunit for capturing a target image by a camera
  • the obtaining unit may include a recording subunit and a voice recognition subunit, wherein:
  • a recording subunit for acquiring target voice information through a microphone
  • the voice recognition sub-unit is configured to perform voice recognition on the target voice information to obtain an SSID of the hidden AP.
  • the embodiment of the present invention may divide the functional unit into the terminal device according to the foregoing method example.
  • each functional unit may be divided according to each function, or two or more functions may be integrated into one processing unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the foregoing obtaining unit 301, the first encoding unit 302, the second encoding unit 304, the statistics unit 306, the determining unit 307, the first determining unit 308, and the modifying unit 309 can be integrated into a central processing unit (CPU).
  • the first broadcast unit 303 and the second broadcast unit 305 may be WiFi modules. It should be noted that the division of the unit in the embodiment of the present invention is schematic, and is only a logical function division, and the actual implementation may have another division manner.
  • FIG. 5 is a schematic structural diagram of a terminal device 500 according to an embodiment of the present invention.
  • the terminal may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), an in-vehicle computer, and the terminal is a mobile phone as an example:
  • FIG. 5 is a block diagram showing a partial structure of a mobile phone related to a terminal provided by an embodiment of the present invention.
  • the mobile phone includes: a radio frequency (RF) circuit 501, a memory 502, an input unit 503, a display unit 504, a sensor 505, an audio circuit 506, a wireless fidelity (WiFi) module 507, and a processor 508. And power supply 509 and other components.
  • RF radio frequency
  • the RF circuit 501 can be used for transmitting and receiving information or during a call, and receiving and transmitting the signal. Specifically, after receiving the downlink information of the base station, the processor 508 processes the data. In addition, the uplink data is designed to be sent to the base station.
  • RF circuit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like.
  • the RF circuit 501 can also communicate with the network and other devices through wireless communication.
  • the above wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (Code Division). Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), E-mail, Short Messaging Service (SMS), and the like.
  • GSM Global System of Mobile communication
  • GPRS General Packet Radio Service
  • the memory 502 can be used to store software programs and modules, and the processor 508 executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory 502.
  • the memory 502 can mainly include a storage program area and a storage data area, wherein the storage program area can store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.)
  • the storage data area can store data (such as audio data, phone book, etc.) created according to the use of the mobile phone.
  • memory 502 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • the input unit 503 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function controls of the handset.
  • the input unit 503 can include a touch panel 5031 and other input devices 5032.
  • the touch panel 5031 also referred to as a touch screen, can collect touch operations on or near the user (such as a user using a finger, a stylus, or the like on the touch panel 5031 or near the touch panel 5031. Operation), and drive the corresponding connecting device according to a preset program.
  • the touch panel 5031 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • the processor 508 is provided and can receive commands from the processor 508 and execute them.
  • the touch panel 5031 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 503 may also include other input devices 5032.
  • other input devices 5032 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • the display unit 504 can be used to display information input by the user or information provided to the user as well as various menus of the mobile phone.
  • the display unit 504 can include a display panel 5041.
  • the display panel 5041 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
  • the touch panel 5031 can cover the display panel 5041. After the touch panel 5031 detects a touch operation thereon or nearby, the touch panel 5031 transmits to the processor 508 to determine the type of the touch event, and then the processor 508 according to the touch event. The type provides a corresponding visual output on display panel 5041.
  • touch panel 5031 and the display panel 5041 are used as two independent components to implement the input and input functions of the mobile phone in FIG. 5, in some embodiments, the touch panel 5031 and the display panel 5041 may be integrated. Realize the input and output functions of the phone.
  • the handset may also include at least one sensor 505, such as a light sensor, motion sensor, and others sensor.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 5041 according to the brightness of the ambient light, and the proximity sensor may close the display panel 5041 and/or when the mobile phone moves to the ear. Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
  • the mobile phone can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
  • the gesture of the mobile phone such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration
  • vibration recognition related functions such as pedometer, tapping
  • the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
  • the audio circuit 506, the speaker 5061, and the microphone 5062 can provide an audio interface between the user and the mobile phone.
  • the audio circuit 506 can transmit the converted electrical data of the received audio data to the speaker 5061, and convert it into a sound signal output by the speaker 5061.
  • the microphone 5062 converts the collected sound signal into an electrical signal, and the audio circuit 506 is used by the audio circuit 506. After receiving, it is converted into audio data, and then processed by the audio data output processor 508, transmitted to the other mobile phone via the RF circuit 501, or outputted to the memory 502 for further processing.
  • WiFi is a short-range wireless transmission technology.
  • the mobile phone can help users to send and receive emails, browse web pages and access streaming media through the WiFi module 507, which provides users with wireless broadband Internet access.
  • FIG. 5 shows the WiFi module 507, it can be understood that it does not belong to the essential configuration of the mobile phone, and may be omitted as needed within the scope of not changing the essence of the invention.
  • the processor 508 is the control center of the handset, which connects various portions of the entire handset using various interfaces and lines, by executing or executing software programs and/or modules stored in the memory 502, and invoking data stored in the memory 502, executing The phone's various functions and processing data, so that the overall monitoring of the phone.
  • the processor 508 may include one or more processing units; preferably, the processor 508 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 508.
  • the handset also includes a power source 509 (such as a battery) that supplies power to the various components.
  • a power source 509 (such as a battery) that supplies power to the various components.
  • the power source can be logically coupled to the processor 508 via a power management system to enable management of charging, discharging, and power management functions through the power management system.
  • the mobile phone may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • each step method flow may be implemented based on the structure of the terminal device.
  • Both the application layer and the operating system kernel can be considered as part of the abstraction structure of the processor 508.
  • the processor 508 performs the following operations by calling program code stored in the memory 502:
  • the SSID is re-encoded by the second character encoding method, and the second scan request including the re-encoded SSID is broadcasted.
  • the embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, the computer program causing the computer to perform some or all of the steps of any of the methods described in the foregoing method embodiments.
  • the computer includes a terminal device.
  • Embodiments of the present invention also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program, the computer program being operative to cause a computer to perform the operations as recited in the above method embodiments Part or all of the steps of either method.
  • the computer program product can be a software installation package, the computer including a terminal device.
  • each unit included is only divided according to functional logic, but is not limited to the above division, as long as the corresponding function can be implemented; in addition, the specific names of the functional units are only for convenience. They are distinguished from each other and are not intended to limit the scope of protection of the present invention.
  • the storage medium may be a read only memory, a magnetic disk or an optical disk or the like.

Abstract

The present invention relates to the technical field of communications. Disclosed in an embodiment of the present invention are a method for connecting to a hidden AP, and a terminal device. The method comprises: acquiring a service set identifier (SSID) of a hidden AP to which a user wants to connect; using a first character encoding scheme to encode the SSID; broadcasting a first scanning request comprising the encoded SSID to find the hidden AP; and if the hidden AP is not found, using a second character encoding scheme to re-encode the SSID, and broadcasting a second scanning request comprising the re-encoded SSID. By implementing the embodiment of the present invention, scanning of a hidden AP can be performed by switching between different character encoding schemes, thereby preventing a problem in which a hidden AP is unable to be found due to inconsistent character encoding schemes, and increasing a successful rate of scanning connection.

Description

连接隐藏AP的方法与终端设备Method and terminal device for connecting hidden AP 技术领域Technical field
本发明涉及通信技术领域,尤其涉及一种连接隐藏AP的方法与终端设备。The present invention relates to the field of communications technologies, and in particular, to a method and a terminal device for connecting a hidden AP.
背景技术Background technique
随着通信技术的发展,Wi-Fi(Wireless Fidelity,无线保真)网络的普及率不断升高,商场、餐厅等公共场所,或家庭的住所,均安装了AP(Access Point,接入点)以建立Wi-Fi网络;而利用Wi-Fi网络随时随地上网,也成为了人们习以为常的生活习惯。With the development of communication technology, the popularity of Wi-Fi (Wireless Fidelity) networks is increasing. APs (Access Point) are installed in public places such as shopping malls and restaurants, or in homes. To establish a Wi-Fi network; and using the Wi-Fi network to access the Internet anytime, anywhere has become a habit that people are used to.
然而,Wi-Fi网络的普及也增加了网络安全风险,为了应对Wi-Fi带来的信息安全风险,用户可以选择不广播AP的SSID(Service Set Identifier,服务集标识),这样AP便被隐藏,不能被设备搜索到并进行接入,在一定程度上避免了通过Wi-Fi网络被窃取个人信息,或者被破解账户密码而被蹭网的事件的发生。However, the popularity of Wi-Fi networks has also increased the risk of network security. In order to cope with the information security risks brought by Wi-Fi, users can choose not to broadcast the SSID (Service Set Identifier) of the AP, so that the AP is hidden. It cannot be searched and accessed by the device, and to a certain extent, avoids the occurrence of an event that is stolen by the Wi-Fi network, or is cracked by the account password.
隐藏AP虽然能起到一定降低网络安全风险作用,却为之前没有接入过该AP的用户接入该AP建立的网络带来了不便。Although the hidden AP can play a role in reducing the network security risk, it brings inconvenience to the network established by the user who has not accessed the AP before accessing the AP.
发明内容Summary of the invention
本发明实施例提供了一种连接隐藏AP的方法与终端设备,可以提高扫描连接的成功率。The embodiment of the invention provides a method for connecting a hidden AP and a terminal device, which can improve the success rate of the scan connection.
本发明实施例第一方面公开了一种连接隐藏AP的方法,包括:A first aspect of the embodiments of the present invention discloses a method for connecting a hidden AP, including:
获取用户想要连接的隐藏AP的服务集标识SSID;Obtaining the service set identifier SSID of the hidden AP that the user wants to connect to;
利用第一字符编码方式对所述SSID进行编码;Encoding the SSID by using a first character encoding manner;
广播包含编码后的所述SSID的第一扫描请求以找到所述隐藏AP;Broadcasting a first scan request including the encoded SSID to find the hidden AP;
若没有找到所述隐藏AP,则利用第二字符编码方式对所述SSID进行再次编码,并广播包含再次编码后的所述SSID的第二扫描请求。 If the hidden AP is not found, the SSID is re-encoded by the second character encoding method, and the second scan request including the re-encoded SSID is broadcasted.
本发明实施例第二方面公开了一种终端设备,包括:A second aspect of the embodiment of the present invention discloses a terminal device, including:
获取单元,用于获取用户想要连接的隐藏AP的服务集标识SSID;An obtaining unit, configured to acquire a service set identifier SSID of a hidden AP that the user wants to connect;
第一编码单元,用于利用第一字符编码方式对所述SSID进行编码;a first coding unit, configured to encode the SSID by using a first character encoding manner;
第一广播单元,用于广播包含编码后的所述SSID的第一扫描请求以找到所述隐藏AP;a first broadcast unit, configured to broadcast a first scan request that includes the encoded SSID to find the hidden AP;
第二编码单元,用于若没有找到所述隐藏AP,利用第二字符编码方式对所述SSID进行再次编码;a second coding unit, configured to re-encode the SSID by using a second character encoding manner if the hidden AP is not found;
第二广播单元,用于广播包含再次编码后的所述SSID的第二扫描请求。a second broadcast unit, configured to broadcast a second scan request including the re-encoded SSID.
本发明实施例第三方面公开了一种终端设备,包括:A third aspect of the embodiment of the present invention discloses a terminal device, including:
存储有可执行程序代码的存储器;a memory storing executable program code;
与所述存储器耦合的处理器;a processor coupled to the memory;
所述处理器调用所述存储器中存储的所述可执行程序代码,执行上述第一方面所描述的方法。The processor invokes the executable program code stored in the memory to perform the method described in the first aspect above.
本发明实施例第四方面提供了一种计算机可读存储介质,其存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行本发明实施例提供的任意一项所述的方法。A fourth aspect of the embodiments of the present invention provides a computer readable storage medium storing a computer program for electronic data exchange, wherein the computer program causes the computer to perform the method of any one of the embodiments of the present invention .
本发明实施例第五方面提供了一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如本发明实施例提供的任意一项所述的方法。A fifth aspect of an embodiment of the present invention provides a computer program product comprising a non-transitory computer readable storage medium storing a computer program, the computer program being operative to cause a computer to perform an embodiment of the present invention The method of any of the preceding claims.
附图说明DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention, Those skilled in the art can also obtain other drawings based on these drawings without paying for inventive labor.
图1为本发明实施例公开的一种连接隐藏AP的方法的流程示意图;1 is a schematic flowchart of a method for connecting a hidden AP according to an embodiment of the present invention;
图2为本发明实施例公开的另一种连接隐藏AP的方法的流程示意图;FIG. 2 is a schematic flowchart diagram of another method for connecting a hidden AP according to an embodiment of the present disclosure;
图2A为本发明实施例公开的一种连接隐藏AP的交互示意图; 2A is a schematic diagram of interaction of connecting a hidden AP according to an embodiment of the present invention;
图3为本发明实施例公开的一种终端设备300的结构示意图;FIG. 3 is a schematic structural diagram of a terminal device 300 according to an embodiment of the present disclosure;
图3A为本发明实施例公开的一种获取单元301的结构示意图;FIG. 3A is a schematic structural diagram of an acquiring unit 301 according to an embodiment of the present disclosure;
图4为本发明实施例公开的另一种终端设备400的结构示意图;FIG. 4 is a schematic structural diagram of another terminal device 400 according to an embodiment of the present disclosure;
图5为本发明实施例公开的一种终端设备500的结构示意图。FIG. 5 is a schematic structural diagram of a terminal device 500 according to an embodiment of the present invention.
具体实施方式detailed description
为了使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述,显然,所描述的实施例仅仅是本发明一部份实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。The present invention will be further described in detail with reference to the accompanying drawings, in which . All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同的对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法或设备固有的其他步骤或单元。The terms "first", "second" and the like in the specification and claims of the present invention and the above drawings are used to distinguish different objects, and are not intended to describe a specific order. Furthermore, the terms "comprises" and "comprising" and "comprising" are intended to cover a non-exclusive inclusion. For example, a process, method, system, product, or device that comprises a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units not listed, or alternatively Other steps or units inherent to these processes, methods or devices.
本发明实施例提供了一种连接隐藏AP的方法与终端设备,可以切换不同的字符编码方式来扫描隐藏AP,避免因字符编码方式不一致而无法找到隐藏AP的情况,提高扫描连接的成功率。以下分别进行详细说明。The embodiment of the invention provides a method for connecting a hidden AP and a terminal device, which can switch different character encoding modes to scan the hidden AP, avoiding the situation that the hidden AP is not found due to the inconsistent character encoding manner, and improving the success rate of the scanning connection. The details are described below separately.
请参阅图1,图1是本发明实施例公开的一种连接隐藏AP的方法的流程示意图。其中,图1所示的方法可以包括以下步骤:Please refer to FIG. 1. FIG. 1 is a schematic flowchart diagram of a method for connecting a hidden AP according to an embodiment of the present invention. The method shown in FIG. 1 may include the following steps:
101、获取用户想要连接的隐藏AP的服务集标识SSID。101. Obtain a service set identifier SSID of a hidden AP that the user wants to connect to.
本发明实施例中,终端设备获取用户想要连接的隐藏AP的SSID。In the embodiment of the present invention, the terminal device acquires the SSID of the hidden AP that the user wants to connect.
其中,上述终端设备可以是智能手机、平板电脑、个人数字助理(Personal Digital Assistant,PDA)、销售终端(Point of Sales,POS)等,本发明实施例后续不作复述。The foregoing terminal device may be a smart phone, a tablet computer, a personal digital assistant (PDA), a point of sales (POS), etc., and is not repeatedly described in the embodiment of the present invention.
作为一种可选的实施方式,用户点击终端设备的显示界面上显示的“添加网络”的按钮,终端设备显示对话框以使用户输入想要连接的隐藏AP的SSID和密码,终端设备接收到上述SSID和密码后,对SSID利用默认的字符编码 方式进行编码并开始扫描该隐藏AP。As an optional implementation manner, the user clicks the button of “Add Network” displayed on the display interface of the terminal device, and the terminal device displays a dialog box to enable the user to input the SSID and password of the hidden AP that is to be connected, and the terminal device receives the button. After the above SSID and password, the default character encoding is used for the SSID. The way to encode and start scanning the hidden AP.
作为一种可选的实施方式,用户利用终端设备扫描提供隐藏AP的SSID和密码的二维码,终端设备解析扫描到的二维码所包含的信息,之后从二维码所包含的信息中获取用户想要连接的隐藏AP的SSID。As an optional implementation manner, the user scans the two-dimensional code that provides the SSID and the password of the hidden AP by using the terminal device, and the terminal device parses the information included in the scanned two-dimensional code, and then from the information included in the two-dimensional code. Get the SSID of the hidden AP that the user wants to connect to.
作为另一种可选的实施方式,用户可以利用终端设备拍摄包含隐藏AP的SSID的画面以获得目标图像,对目标图像进行文本识别以获取隐藏AP的SSID。由于SSID往往设置的较长,用户手动输入较为耗时,且易出错;通过这种方式,用户无需手动输入即可方便地获取SSID名称,提高了搜索隐藏AP的便捷性。As another optional implementation manner, the user may use a terminal device to capture a picture including the SSID of the hidden AP to obtain a target image, and perform text recognition on the target image to obtain an SSID of the hidden AP. Since the SSID is often set longer, the user's manual input is time-consuming and error-prone; in this way, the user can conveniently obtain the SSID name without manual input, thereby improving the convenience of searching for hidden APs.
作为另一种可选的实施方式,用户可以利用麦克风进行录音以获得目标语音信息,对目标语音信息进行语音识别以获取隐藏AP的SSID。当别人告知用户隐藏AP的SSID时,用户需要将听到的SSID手动输入至终端设备方能发起对该隐藏AP的搜索;而通过该实施方式,用户无需手动输入即可方便地获取SSID名称,提高了搜索隐藏AP的便捷性。As another optional implementation manner, the user may perform recording by using a microphone to obtain target voice information, and perform voice recognition on the target voice information to obtain an SSID of the hidden AP. When the user informs the user to hide the SSID of the AP, the user needs to manually input the heard SSID to the terminal device to initiate a search for the hidden AP; and by this embodiment, the user can conveniently obtain the SSID name without manual input. Improves the convenience of searching for hidden APs.
102、利用第一字符编码方式对上述SSID进行编码。102. Encode the SSID by using a first character encoding manner.
通常连接隐藏AP,需要通过扫描指定的SSID来查找该AP,如果扫描到了指定SSID的AP就会尝试连接。由于SSID编码方式的区别,终端设备广播的扫描请求中包含的SSID如果与隐藏AP使用的字符编码方式不同,该AP接收到了扫描请求后,仍然会SSID匹配失败,导致终端设备无法找到该AP。Usually, the hidden AP is connected. You need to scan the specified SSID to find the AP. If you scan the AP with the specified SSID, you will try to connect. Due to the difference in the SSID encoding mode, if the SSID included in the scanning request broadcast by the terminal device is different from the character encoding mode used by the hidden AP, the AP will still fail to match the SSID after receiving the scanning request, and the terminal device cannot find the AP.
103、广播包含编码后的上述SSID的第一扫描请求以找到上述隐藏AP。103. Broadcast a first scan request including the encoded SSID to find the hidden AP.
本发明实施例中,终端设备首先利用默认的字符编码方式对获取的SSID进行编码,并生成包含上述编码后的SSID的第一扫描请求。其中,上述字符编码方式可为GBK,Unicode,ASCII和UTF-8等,具体采用何种方式,本发明实施例不作限定。In the embodiment of the present invention, the terminal device first encodes the acquired SSID by using a default character encoding manner, and generates a first scan request including the encoded SSID. The foregoing character encoding mode may be GBK, Unicode, ASCII, UTF-8, etc., and the specific manner is not limited in the embodiment of the present invention.
在广播了上述第一扫描请求后,统计广播上述第一扫描请求之后的时间;若广播上述第一扫描请求之后的时间已超过预设阈值,而终端设备没有收到上述隐藏AP的第一应答消息,则确定没有找到上述隐藏AP。After the first scan request is broadcasted, the time after the first scan request is broadcasted; if the time after the first scan request is broadcast has exceeded a preset threshold, the terminal device does not receive the first response of the hidden AP. The message confirms that the above hidden AP is not found.
104、若没有找到上述隐藏AP,则利用第二字符编码方式对上述SSID进行再次编码,并广播包含再次编码后的上述SSID的第二扫描请求。 104. If the hidden AP is not found, re-encoding the SSID by using a second character encoding manner, and broadcasting a second scan request including the re-encoded SSID.
本发明实施例中,若广播包含编码后的SSID的第一扫描请求不能找到上述隐藏AP,则推测是利用第一字符编码方式编码后的SSID与隐藏AP的SSID编码方式不匹配,可以通过更换SSID的字符编码方式之后重新发送扫描请求的方式,继续尝试寻找上述隐藏AP。In the embodiment of the present invention, if the first scanning request including the encoded SSID cannot be used to find the hidden AP, it is presumed that the SSID encoded by the first character encoding method does not match the SSID encoding mode of the hidden AP, and may be replaced. The manner in which the scan request is resent after the character encoding mode of the SSID continues to try to find the above hidden AP.
作为一种可选的实施方式,若搜索到了上述隐藏AP,可以获取隐藏AP的接收信号强度指示(Received Signal Strength Indication,RSSI),若隐藏AP的RSSI大于预设阈值,则向该隐藏AP发送接入请求。若该AP的RSSI小于预设阈值,则输出提示消息以提示用户该AP信号质量较差,建议选择其他AP进行接入。通过这种方式,避免接入信号较差的AP造成网络掉线、频繁漫游等问题。As an optional implementation, if the hidden AP is searched, the Received Signal Strength Indication (RSSI) of the hidden AP may be obtained. If the RSSI of the hidden AP is greater than a preset threshold, the hidden AP is sent to the hidden AP. Access request. If the RSSI of the AP is less than the preset threshold, the prompt message is output to prompt the user that the AP signal quality is poor. It is recommended to select another AP for access. In this way, avoiding APs with poor access signals causes problems such as dropped calls and frequent roaming.
由此可见,利用图1所描述的方法,可以切换不同的字符编码方式来扫描隐藏AP,避免因字符编码方式不一致而无法找到隐藏AP的情况,提高扫描连接的成功率。It can be seen that, by using the method described in FIG. 1, different character encoding modes can be switched to scan the hidden AP, and the hidden AP cannot be found due to the inconsistent character encoding manner, thereby improving the success rate of the scanning connection.
请参阅图2,图2是本发明实施例公开的另一种连接隐藏AP的方法的流程示意图。如图2所示,该方法可以包括以下步骤:Please refer to FIG. 2. FIG. 2 is a schematic flowchart diagram of another method for connecting a hidden AP according to an embodiment of the present invention. As shown in FIG. 2, the method may include the following steps:
201、获取用户想要连接的隐藏AP的服务集标识SSID。201. Obtain a service set identifier SSID of a hidden AP that the user wants to connect.
作为一种可选的实施方式,用户利用终端设备扫描提供隐藏AP的SSID和密码的二维码,终端设备解析扫描到的二维码所包含的信息,之后从二维码所包含的信息中获取用户想要连接的隐藏AP的SSID。As an optional implementation manner, the user scans the two-dimensional code that provides the SSID and the password of the hidden AP by using the terminal device, and the terminal device parses the information included in the scanned two-dimensional code, and then from the information included in the two-dimensional code. Get the SSID of the hidden AP that the user wants to connect to.
202、利用第一字符编码方式对上述SSID进行编码。202. Encode the SSID by using a first character encoding manner.
203、广播包含编码后的上述SSID的第一扫描请求以找到上述隐藏AP。203. Broadcast a first scan request including the encoded SSID to find the hidden AP.
本发明实施例中,终端设备首先利用默认的字符编码方式对获取的SSID进行编码,并生成包含上述编码后的SSID的第一扫描请求。其中,上述字符编码方式可为GBK,Unicode,ASCII和UTF-8等,具体采用何种方式,本发明实施例不作限定。In the embodiment of the present invention, the terminal device first encodes the acquired SSID by using a default character encoding manner, and generates a first scan request including the encoded SSID. The foregoing character encoding mode may be GBK, Unicode, ASCII, UTF-8, etc., and the specific manner is not limited in the embodiment of the present invention.
204、若找到上述隐藏AP,则判断是否能成功接入上述隐藏AP。204. If the hidden AP is found, determine whether the hidden AP can be successfully accessed.
本发明实施例中,若终端设备发送的第一扫描请求中SSID的字符编码方式与隐藏AP对SSID进行字符编码的方式一致,则该隐藏AP会向终端设备返回第一应答消息以通知终端设备扫描到该AP;之后该隐藏AP会验证第一 扫描请求中的加密方式是否与本设备的设置一致,再验证第一扫描请求中提供的SSID的密码是否正确,待上述验证均成功后,该隐藏AP授权终端设备接入该隐藏AP,并向终端设备返回用以通知接入成功的应答消息。In the embodiment of the present invention, if the character encoding mode of the SSID in the first scan request sent by the terminal device is consistent with the manner in which the hidden AP performs character encoding on the SSID, the hidden AP returns a first response message to the terminal device to notify the terminal device. Scan to the AP; then the hidden AP will verify the first Whether the encryption mode in the scan request is consistent with the setting of the device, and then verifying that the password of the SSID provided in the first scan request is correct. After the verification is successful, the hidden AP authorizes the terminal device to access the hidden AP, and The terminal device returns a response message to notify the access success.
作为一种可选的实施方式,终端设备接收上述隐藏AP返回的第二应答消息;通过上述第二应答消息所包含的错误码判断是否能成功接入上述隐藏AP。As an optional implementation manner, the terminal device receives the second response message returned by the hidden AP, and determines whether the hidden AP can be successfully accessed by using the error code included in the second response message.
根据上述隐藏AP执行的验证过程可知,若第一扫描请求中的加密方式与隐藏AP的设置不一致,或第一扫描请求中提供的SSID的密码不正确,就会造成连接失败的情况。因此,可以修改扫描请求中的加密方式或SSID对应的密码的字符编码方式,再重新对该AP发送接入请求。According to the verification process performed by the hidden AP, if the encryption mode in the first scan request is different from the setting of the hidden AP, or the password of the SSID provided in the first scan request is incorrect, the connection may fail. Therefore, the encryption method in the scan request or the character encoding mode of the password corresponding to the SSID can be modified, and the access request is sent to the AP again.
205、若不能成功接入上述隐藏AP,则修改上述第一扫描请求中的加密方式以获得第三扫描请求并广播上述第三扫描请求。205. If the hidden AP is not successfully accessed, modify the encryption manner in the first scan request to obtain a third scan request and broadcast the third scan request.
本发明实施例中,隐藏AP的管理者在设置该AP时,会设置通过该AP收发数据时的加密方式,上述加密方式包括预先共享密钥无线网络安全接入WPA-PSK、无线网络安全接入WPA和有线等效保密WEP等。终端设备请求接入该隐藏AP时,需要在扫描请求或接入请求中包含与该AP相同的加密方式,才能成功接入该AP。In the embodiment of the present invention, when the AP is set up, the administrator of the AP sets the encryption mode when the AP sends and receives data through the AP. The encryption mode includes the pre-shared key wireless network security access WPA-PSK and the wireless network security connection. Into WPA and wired equivalent confidential WEP, etc. When the terminal device requests access to the hidden AP, the scanning request or the access request needs to include the same encryption mode as the AP to successfully access the AP.
因此,若终端设备通过分析错误码确定不能成功接入该隐藏AP,则修改扫描请求中的加密方式生成第三扫描请求,并广播第三扫描请求以接入该AP。Therefore, if the terminal device determines that the hidden AP cannot be successfully accessed by analyzing the error code, the encryption method in the scan request is modified to generate a third scan request, and the third scan request is broadcasted to access the AP.
除此之外,为了应对因密码的字符编码方式而造成的不能成功接入,可以采用如下方式:若不能成功接入上述隐藏AP,则利用第三字符编码方式对上述SSID所对应的密码进行再次编码,并向上述隐藏AP发送包含再编码的上述密码的接入请求。In addition, in order to cope with the unsuccessful access caused by the character encoding method of the password, the following method may be adopted: if the hidden AP cannot be successfully accessed, the third character encoding method is used to perform the password corresponding to the SSID. Encoding again, and sending an access request containing the re-encoded password described above to the hidden AP.
请参阅图2A,图2A为本发明实施例公开的一种连接隐藏AP的交互示意图。其中,终端设备获取隐藏AP的SSID,之后利用第一字符编码方式对SSID进行编码,再发送包含编码后的SSID的第一扫描请求至隐藏AP;隐藏AP解析上述第一扫描请求,获取其中的编码后的SSID,与本设备的SSID进行匹配;若上述SSID匹配成功,则隐藏AP向终端设备发送第一应答消息以通知终端设备找到该隐藏AP;隐藏AP进一步获取上述第一扫描请求中的加密方式,并与本设备的加密方式进行比对;若第一扫描请求中的加密方式与本设备中的 加密方式不匹配,则隐藏AP向终端设备发送包含错误码A的第二应答消息以通知终端设备接入失败;终端设备解析接收到的第二应答消息,通过错误码A确定加密方式错误,从而修改加密方式后向隐藏AP发送第一接入请求;隐藏AP获取上述接入请求中SSID对应的密码,并与本设备中存储的SSID对应的密码进行匹配;若接入请求中SSID对应的密码与本设备存储的密码不匹配,则隐藏AP向终端设备发送包含错误码B的第三应答消息以通知终端设备接入失败;终端设备解析接收到的第三应答消息,通过错误码B确定密码的字符编码方式不一致,从而利用第三字符编码方式对上述SSID所对应的密码进行再次编码后,重新向隐藏AP发送第二接入请求。Referring to FIG. 2A, FIG. 2A is a schematic diagram of interaction of a hidden AP according to an embodiment of the present invention. The terminal device obtains the SSID of the hidden AP, and then encodes the SSID by using the first character encoding manner, and then sends the first scan request including the encoded SSID to the hidden AP; the hidden AP parses the first scan request, and obtains the The encoded SSID is matched with the SSID of the device; if the SSID matches successfully, the hidden AP sends a first response message to the terminal device to notify the terminal device to find the hidden AP; and the hidden AP further acquires the first scan request. Encryption mode and compare with the encryption mode of the device; if the encryption method in the first scan request is in the device If the encryption mode does not match, the hidden AP sends a second response message including the error code A to the terminal device to notify the terminal device that the access fails; the terminal device parses the received second response message, and determines the encryption mode error by using the error code A, thereby After the encryption mode is modified, the first access request is sent to the hidden AP; the hidden AP obtains the password corresponding to the SSID in the access request, and matches the password corresponding to the SSID stored in the device; if the password corresponding to the SSID in the access request If the password stored by the device does not match, the hidden AP sends a third response message including the error code B to the terminal device to notify the terminal device that the access fails; the terminal device parses the received third response message, and determines the password by using the error code B. The character encoding manners are inconsistent, and the third password encoding method is used to re-encode the password corresponding to the SSID, and then the second access request is sent to the hidden AP.
由此可见,利用图2所描述的方法,可以切换不同的字符编码方式来扫描隐藏AP,避免因字符编码方式不一致而无法找到隐藏AP的情况,提高扫描连接的成功率。It can be seen that, by using the method described in FIG. 2, different character encoding modes can be switched to scan the hidden AP, and the hidden AP cannot be found due to the inconsistent character encoding manner, thereby improving the success rate of the scanning connection.
请参阅图3,图3是本发明实施例公开的一种终端设备300的结构示意图。如图3所示,终端设备300可以包括:Please refer to FIG. 3. FIG. 3 is a schematic structural diagram of a terminal device 300 according to an embodiment of the present invention. As shown in FIG. 3, the terminal device 300 may include:
获取单元301,用于获取用户想要连接的隐藏AP的服务集标识SSID。The obtaining unit 301 is configured to acquire a service set identifier SSID of the hidden AP that the user wants to connect.
第一编码单元302,用于利用第一字符编码方式对上述SSID进行编码。The first encoding unit 302 is configured to encode the SSID by using a first character encoding manner.
第一广播单元303,用于广播包含编码后的上述SSID的第一扫描请求以找到上述隐藏AP。The first broadcast unit 303 is configured to broadcast a first scan request including the encoded SSID to find the hidden AP.
第二编码单元304,用于若没有找到上述隐藏AP,利用第二字符编码方式对上述SSID进行再次编码。The second encoding unit 304 is configured to re-encode the SSID by using a second character encoding manner if the hidden AP is not found.
第二广播单元305,用于广播包含再次编码后的上述SSID的第二扫描请求。The second broadcast unit 305 is configured to broadcast a second scan request including the above-mentioned SSID after re-encoding.
如图3A所示,图3A为本发明实施例公开的一种获取单元301的结构示意图。获取单元301可包括解析子单元3011和获取子单元3012。其中,解析子单元3011,用于解析扫描到的二维码所包含的信息;获取子单元3012,用于从上述二维码所包含的信息中获取上述用户想要连接的隐藏AP的SSID。As shown in FIG. 3A, FIG. 3A is a schematic structural diagram of an acquiring unit 301 according to an embodiment of the present invention. The obtaining unit 301 may include a parsing subunit 3011 and an obtaining subunit 3012. The parsing subunit 3011 is configured to parse the information included in the scanned two-dimensional code, and the obtaining subunit 3012 is configured to obtain, from the information included in the two-dimensional code, an SSID of the hidden AP that the user wants to connect.
由此可见,利用图3所描述的终端设备,可以切换不同的字符编码方式来扫描隐藏AP,避免因字符编码方式不一致而无法找到隐藏AP的情况,提高扫描连接的成功率。 It can be seen that, by using the terminal device described in FIG. 3, different character encoding modes can be switched to scan the hidden AP, and the hidden AP cannot be found due to the inconsistent character encoding manner, thereby improving the success rate of the scanning connection.
请一并参阅图4,图4是本发明实施例公开的另一种终端设备400的结构示意图。其中,图4所示的终端设备是由图3所示的终端设备进行优化得到的,与图3所示的终端设备300相比,图4所示的终端设备400还包括:Referring to FIG. 4, FIG. 4 is a schematic structural diagram of another terminal device 400 according to an embodiment of the present invention. The terminal device shown in FIG. 4 is optimized by the terminal device shown in FIG. 3. Compared with the terminal device 300 shown in FIG. 3, the terminal device 400 shown in FIG.
统计单元306,用于统计广播上述第一扫描请求之后的时间。The statistics unit 306 is configured to count the time after broadcasting the first scan request.
确定单元307,用于若上述广播上述第一扫描请求之后的时间超过预设阈值,终端设备没有收到上述隐藏AP的第一应答消息,则确定没有找到上述隐藏AP。The determining unit 307 is configured to determine that the hidden AP is not found if the terminal device does not receive the first response message of the hidden AP if the time after the foregoing first scanning request exceeds the preset threshold.
第一判断单元308,用于判断是否能成功接入上述隐藏AP。The first determining unit 308 is configured to determine whether the hidden AP can be successfully accessed.
修改单元309,用于若不能成功接入上述隐藏AP,则修改上述第一扫描请求中的加密方式以获得第三扫描请求。The modifying unit 309 is configured to modify the encryption mode in the first scan request to obtain a third scan request if the hidden AP cannot be successfully accessed.
作为一种可选的实施方式,获取单元可以包括拍摄子单元和文本识别子单元,其中:As an optional implementation manner, the acquiring unit may include a shooting subunit and a text recognition subunit, wherein:
拍摄子单元,用于通过摄像头拍摄获得目标图像;a shooting subunit for capturing a target image by a camera;
文本识别子单元,用于对目标图像进行文本识别以获取隐藏AP的SSID。A text recognition sub-unit for performing text recognition on the target image to obtain the SSID of the hidden AP.
作为另一种可选的实施方式,获取单元可以包括录音子单元和语音识别子单元,其中:As another optional implementation manner, the obtaining unit may include a recording subunit and a voice recognition subunit, wherein:
录音子单元,用于通过麦克风获取目标语音信息;a recording subunit for acquiring target voice information through a microphone;
语音识别子单元,用于对目标语音信息进行语音识别以获取隐藏AP的SSID。The voice recognition sub-unit is configured to perform voice recognition on the target voice information to obtain an SSID of the hidden AP.
本发明实施例可以根据上述方法示例对终端设备进行功能单元的划分,例如,可以对应各个功能划分各个功能单元,也可以将两个或两个以上的功能集成在一个处理单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。举例来说,上述获取单元301、第一编码单元302、第二编码单元304、统计单元306、确定单元307、第一判断单元308以及修改单元309可以集成到中央处理器(Central Processing Unit,CPU)之中;而第一广播单元303、第二广播单元305可为WiFi模块。需要说明的是,本发明实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。The embodiment of the present invention may divide the functional unit into the terminal device according to the foregoing method example. For example, each functional unit may be divided according to each function, or two or more functions may be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit. For example, the foregoing obtaining unit 301, the first encoding unit 302, the second encoding unit 304, the statistics unit 306, the determining unit 307, the first determining unit 308, and the modifying unit 309 can be integrated into a central processing unit (CPU). The first broadcast unit 303 and the second broadcast unit 305 may be WiFi modules. It should be noted that the division of the unit in the embodiment of the present invention is schematic, and is only a logical function division, and the actual implementation may have another division manner.
由此可见,利用图4所描述的终端设备,可以切换不同的字符编码方式来 扫描隐藏AP,避免因字符编码方式不一致而无法找到隐藏AP的情况,提高扫描连接的成功率。It can be seen that with the terminal device described in FIG. 4, different character encoding methods can be switched. Scan hidden APs to avoid finding hidden APs due to inconsistent character encoding methods and improve the success rate of scanning connections.
请参阅图5,图5为本发明实施例公开的一种终端设备500的结构示意图。如图5所示,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明实施例方法部分。该终端可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑等任意终端设备,以终端为手机为例:Referring to FIG. 5, FIG. 5 is a schematic structural diagram of a terminal device 500 according to an embodiment of the present invention. As shown in FIG. 5, for the convenience of description, only the parts related to the embodiment of the present invention are shown. For the specific technical details not disclosed, please refer to the method part of the embodiment of the present invention. The terminal may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), an in-vehicle computer, and the terminal is a mobile phone as an example:
图5示出的是与本发明实施例提供的终端相关的手机的部分结构的框图。参考图5,手机包括:射频(Radio Frequency,RF)电路501、存储器502、输入单元503、显示单元504、传感器505、音频电路506、无线保真(wireless fidelity,WiFi)模块507、处理器508、以及电源509等部件。本领域技术人员可以理解,图5中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。FIG. 5 is a block diagram showing a partial structure of a mobile phone related to a terminal provided by an embodiment of the present invention. Referring to FIG. 5, the mobile phone includes: a radio frequency (RF) circuit 501, a memory 502, an input unit 503, a display unit 504, a sensor 505, an audio circuit 506, a wireless fidelity (WiFi) module 507, and a processor 508. And power supply 509 and other components. It will be understood by those skilled in the art that the structure of the handset shown in FIG. 5 does not constitute a limitation to the handset, and may include more or less components than those illustrated, or some components may be combined, or different components may be arranged.
下面结合图5对手机的各个构成部件进行具体的介绍:The following describes the components of the mobile phone in detail with reference to FIG. 5:
RF电路501可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器508处理;另外,将设计上行的数据发送给基站。通常,RF电路501包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路501还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。The RF circuit 501 can be used for transmitting and receiving information or during a call, and receiving and transmitting the signal. Specifically, after receiving the downlink information of the base station, the processor 508 processes the data. In addition, the uplink data is designed to be sent to the base station. Generally, RF circuit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 501 can also communicate with the network and other devices through wireless communication. The above wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (Code Division). Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), E-mail, Short Messaging Service (SMS), and the like.
存储器502可用于存储软件程序以及模块,处理器508通过运行存储在存储器502的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器502可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等) 等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器502可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 502 can be used to store software programs and modules, and the processor 508 executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory 502. The memory 502 can mainly include a storage program area and a storage data area, wherein the storage program area can store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.) The storage data area can store data (such as audio data, phone book, etc.) created according to the use of the mobile phone. Moreover, memory 502 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
输入单元503可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元503可包括触控面板5031以及其他输入设备5032。触控面板5031,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板5031上或在触控面板5031附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板5031可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器508,并能接收处理器508发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板5031。除了触控面板5031,输入单元503还可以包括其他输入设备5032。具体地,其他输入设备5032可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 503 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function controls of the handset. Specifically, the input unit 503 can include a touch panel 5031 and other input devices 5032. The touch panel 5031, also referred to as a touch screen, can collect touch operations on or near the user (such as a user using a finger, a stylus, or the like on the touch panel 5031 or near the touch panel 5031. Operation), and drive the corresponding connecting device according to a preset program. Optionally, the touch panel 5031 may include two parts: a touch detection device and a touch controller. Wherein, the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information. The processor 508 is provided and can receive commands from the processor 508 and execute them. In addition, the touch panel 5031 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 5031, the input unit 503 may also include other input devices 5032. Specifically, other input devices 5032 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
显示单元504可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元504可包括显示面板5041,可选的,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板5041。进一步的,触控面板5031可覆盖显示面板5041,当触控面板5031检测到在其上或附近的触摸操作后,传送给处理器508以确定触摸事件的类型,随后处理器508根据触摸事件的类型在显示面板5041上提供相应的视觉输出。虽然在图5中,触控面板5031与显示面板5041是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板5031与显示面板5041集成而实现手机的输入和输出功能。The display unit 504 can be used to display information input by the user or information provided to the user as well as various menus of the mobile phone. The display unit 504 can include a display panel 5041. Alternatively, the display panel 5041 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like. Further, the touch panel 5031 can cover the display panel 5041. After the touch panel 5031 detects a touch operation thereon or nearby, the touch panel 5031 transmits to the processor 508 to determine the type of the touch event, and then the processor 508 according to the touch event. The type provides a corresponding visual output on display panel 5041. Although the touch panel 5031 and the display panel 5041 are used as two independent components to implement the input and input functions of the mobile phone in FIG. 5, in some embodiments, the touch panel 5031 and the display panel 5041 may be integrated. Realize the input and output functions of the phone.
手机还可包括至少一种传感器505,比如光传感器、运动传感器以及其他 传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板5041的亮度,接近传感器可在手机移动到耳边时,关闭显示面板5041和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The handset may also include at least one sensor 505, such as a light sensor, motion sensor, and others sensor. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 5041 according to the brightness of the ambient light, and the proximity sensor may close the display panel 5041 and/or when the mobile phone moves to the ear. Or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity. It can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
音频电路506、扬声器5061,传声器5062可提供用户与手机之间的音频接口。音频电路506可将接收到的音频数据转换后的电信号,传输到扬声器5061,由扬声器5061转换为声音信号输出;另一方面,传声器5062将收集的声音信号转换为电信号,由音频电路506接收后转换为音频数据,再将音频数据输出处理器508处理后,经RF电路501以发送给比如另一手机,或者将音频数据输出至存储器502以便进一步处理。The audio circuit 506, the speaker 5061, and the microphone 5062 can provide an audio interface between the user and the mobile phone. The audio circuit 506 can transmit the converted electrical data of the received audio data to the speaker 5061, and convert it into a sound signal output by the speaker 5061. On the other hand, the microphone 5062 converts the collected sound signal into an electrical signal, and the audio circuit 506 is used by the audio circuit 506. After receiving, it is converted into audio data, and then processed by the audio data output processor 508, transmitted to the other mobile phone via the RF circuit 501, or outputted to the memory 502 for further processing.
WiFi属于短距离无线传输技术,手机通过WiFi模块507可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图5示出了WiFi模块507,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-range wireless transmission technology. The mobile phone can help users to send and receive emails, browse web pages and access streaming media through the WiFi module 507, which provides users with wireless broadband Internet access. Although FIG. 5 shows the WiFi module 507, it can be understood that it does not belong to the essential configuration of the mobile phone, and may be omitted as needed within the scope of not changing the essence of the invention.
处理器508是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器502内的软件程序和/或模块,以及调用存储在存储器502内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器508可包括一个或多个处理单元;优选的,处理器508可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器508中。The processor 508 is the control center of the handset, which connects various portions of the entire handset using various interfaces and lines, by executing or executing software programs and/or modules stored in the memory 502, and invoking data stored in the memory 502, executing The phone's various functions and processing data, so that the overall monitoring of the phone. Optionally, the processor 508 may include one or more processing units; preferably, the processor 508 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like. The modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 508.
手机还包括给各个部件供电的电源509(比如电池),优选的,电源可以通过电源管理系统与处理器508逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The handset also includes a power source 509 (such as a battery) that supplies power to the various components. Preferably, the power source can be logically coupled to the processor 508 via a power management system to enable management of charging, discharging, and power management functions through the power management system.
尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。 Although not shown, the mobile phone may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
前述实施例中,各步骤方法流程可以基于该终端设备的结构实现。其中应用层和操作系统内核均可视为处理器508的抽象化结构的组成部分。In the foregoing embodiment, each step method flow may be implemented based on the structure of the terminal device. Both the application layer and the operating system kernel can be considered as part of the abstraction structure of the processor 508.
在本发明实施例中,处理器508通过调用存储于存储器502中的程序代码,用于执行以下操作:In the embodiment of the present invention, the processor 508 performs the following operations by calling program code stored in the memory 502:
获取用户想要连接的隐藏AP的服务集标识SSID;Obtaining the service set identifier SSID of the hidden AP that the user wants to connect to;
利用第一字符编码方式对上述SSID进行编码;Encoding the SSID by using a first character encoding manner;
广播包含编码后的上述SSID的第一扫描请求以找到上述隐藏AP;Broadcasting a first scan request including the encoded SSID to find the above hidden AP;
若没有找到上述隐藏AP,则利用第二字符编码方式对上述SSID进行再次编码,并广播包含再次编码后的上述SSID的第二扫描请求。If the hidden AP is not found, the SSID is re-encoded by the second character encoding method, and the second scan request including the re-encoded SSID is broadcasted.
由此可见,利用图5所描述的终端设备,可以切换不同的字符编码方式来扫描隐藏AP,避免因字符编码方式不一致而无法找到隐藏AP的情况,提高扫描连接的成功率。It can be seen that, by using the terminal device described in FIG. 5, different character encoding modes can be switched to scan the hidden AP, and the hidden AP cannot be found due to the inconsistent character encoding manner, thereby improving the success rate of the scanning connection.
本发明实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤,所述计算机包括终端设备。The embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, the computer program causing the computer to perform some or all of the steps of any of the methods described in the foregoing method embodiments. The computer includes a terminal device.
本发明实施例还提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤。该计算机程序产品可以为一个软件安装包,所述计算机包括终端设备。Embodiments of the present invention also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program, the computer program being operative to cause a computer to perform the operations as recited in the above method embodiments Part or all of the steps of either method. The computer program product can be a software installation package, the computer including a terminal device.
上述终端设备实施例中,所包括的各个单元只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本发明的保护范围。In the foregoing embodiment of the terminal device, each unit included is only divided according to functional logic, but is not limited to the above division, as long as the corresponding function can be implemented; in addition, the specific names of the functional units are only for convenience. They are distinguished from each other and are not intended to limit the scope of protection of the present invention.
另外,本领域普通技术人员可以理解实现上述各方法实施例中的全部或部分步骤是可以通过程序来指令相关的硬件完成,相应的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。In addition, those skilled in the art can understand that all or part of the steps in implementing the foregoing method embodiments may be performed by a program to instruct related hardware, and the corresponding program may be stored in a computer readable storage medium. The storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
以上仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明实施例揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应该以权利要求的保护范围为准。 The above is only a preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or replacements within the technical scope disclosed by the embodiments of the present invention. All should be covered by the scope of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims (20)

  1. 一种连接隐藏AP的方法,其特征在于,包括:A method for connecting a hidden AP, comprising:
    获取用户想要连接的隐藏AP的服务集标识SSID;Obtaining the service set identifier SSID of the hidden AP that the user wants to connect to;
    利用第一字符编码方式对所述SSID进行编码;Encoding the SSID by using a first character encoding manner;
    广播包含编码后的所述SSID的第一扫描请求以找到所述隐藏AP;Broadcasting a first scan request including the encoded SSID to find the hidden AP;
    若没有找到所述隐藏AP,则利用第二字符编码方式对所述SSID进行再次编码,并广播包含再次编码后的所述SSID的第二扫描请求。If the hidden AP is not found, the SSID is re-encoded by the second character encoding method, and the second scan request including the re-encoded SSID is broadcasted.
  2. 根据权利要求1所述方法,其特征在于,所述广播包含编码后的所述SSID的第一扫描请求以找到所述隐藏AP之后,所述方法还包括:The method according to claim 1, wherein after the broadcasting includes the first scan request of the encoded SSID to find the hidden AP, the method further includes:
    统计广播所述第一扫描请求之后的时间;Counting the time after the first scan request is broadcasted;
    若所述广播所述第一扫描请求之后的时间超过预设阈值,终端设备没有收到所述隐藏AP的第一应答消息,则确定没有找到所述隐藏AP。If the time after the first scanning request is broadcasted exceeds a preset threshold, and the terminal device does not receive the first response message of the hidden AP, it is determined that the hidden AP is not found.
  3. 根据权利要求1或2所述方法,其特征在于,所述获取用户想要连接的隐藏AP的服务集标识SSID,包括:The method according to claim 1 or 2, wherein the obtaining the service set identifier SSID of the hidden AP that the user wants to connect comprises:
    解析扫描到的二维码所包含的信息;Parsing the information contained in the scanned QR code;
    从所述二维码所包含的信息中获取所述用户想要连接的隐藏AP的SSID。Obtaining an SSID of the hidden AP that the user wants to connect from the information included in the two-dimensional code.
  4. 根据权利要求1所述方法,其特征在于,若找到所述隐藏AP,所述方法还包括:The method of claim 1, wherein if the hidden AP is found, the method further comprises:
    判断是否能成功接入所述隐藏AP;Determining whether the hidden AP can be successfully accessed;
    若不能成功接入所述隐藏AP,则修改所述第一扫描请求中的加密方式以获得第三扫描请求并广播所述第三扫描请求;其中,所述加密方式包括预先共享密钥无线网络安全接入WPA-PSK、无线网络安全接入WPA和有线等效保密WEP。If the hidden AP cannot be successfully accessed, modifying the encryption mode in the first scan request to obtain a third scan request and broadcasting the third scan request; wherein the encryption mode includes a pre-shared key wireless network Secure access to WPA-PSK, wireless network secure access WPA and wired equivalent secure WEP.
  5. 根据权利要求1所述方法,其特征在于,若找到所述隐藏AP,所述方法还包括:The method of claim 1, wherein if the hidden AP is found, the method further comprises:
    判断是否能成功接入所述隐藏AP;Determining whether the hidden AP can be successfully accessed;
    若不能成功接入所述隐藏AP,则利用第三字符编码方式对所述SSID所对应的密码进行再次编码,并向所述隐藏AP发送包含再编码的所述密码的接 入请求。If the hidden AP is not successfully accessed, the password corresponding to the SSID is re-encoded by using a third character encoding manner, and the password including the re-encoded password is sent to the hidden AP. Into the request.
  6. 根据权利要求4或5所述方法,其特征在于,所述判断是否能成功接入所述隐藏AP,包括:The method according to claim 4 or 5, wherein the determining whether the hidden AP can be successfully accessed comprises:
    接收所述隐藏AP返回的第二应答消息;Receiving a second response message returned by the hidden AP;
    通过所述第二应答消息所包含的错误码判断是否能成功接入所述隐藏AP。The error code included in the second response message is used to determine whether the hidden AP can be successfully accessed.
  7. 根据权利要求1所述方法,其特征在于,所述获取用户想要连接的隐藏AP的服务集标识SSID,包括:The method according to claim 1, wherein the obtaining the service set identifier SSID of the hidden AP that the user wants to connect comprises:
    通过摄像头拍摄获得目标图像;Obtaining a target image by photographing through a camera;
    对所述目标图像进行文本识别以获取所述隐藏AP的SSID。Text recognition is performed on the target image to obtain an SSID of the hidden AP.
  8. 根据权利要求1所述方法,其特征在于,所述获取用户想要连接的隐藏AP的服务集标识SSID,包括:The method according to claim 1, wherein the obtaining the service set identifier SSID of the hidden AP that the user wants to connect comprises:
    通过麦克风获取目标语音信息;Obtaining target voice information through a microphone;
    对所述目标语音信息进行语音识别以获取所述隐藏AP的SSID。Performing voice recognition on the target voice information to obtain an SSID of the hidden AP.
  9. 根据权利要求1所述方法,其特征在于,所述方法还包括:The method of claim 1 wherein the method further comprises:
    搜索到所述隐藏AP的情况下,获取所述隐藏AP的接收信号强度指示RSSI;When the hidden AP is searched, acquiring a received signal strength indication RSSI of the hidden AP;
    若所述隐藏AP的RSSI大于预设阈值,则向所述隐藏AP发送接入请求。And if the RSSI of the hidden AP is greater than a preset threshold, sending an access request to the hidden AP.
  10. 一种终端设备,其特征在于,包括:A terminal device, comprising:
    获取单元,用于获取用户想要连接的隐藏AP的服务集标识SSID;An obtaining unit, configured to acquire a service set identifier SSID of a hidden AP that the user wants to connect;
    第一编码单元,用于利用第一字符编码方式对所述SSID进行编码;a first coding unit, configured to encode the SSID by using a first character encoding manner;
    第一广播单元,用于广播包含编码后的所述SSID的第一扫描请求以找到所述隐藏AP;a first broadcast unit, configured to broadcast a first scan request that includes the encoded SSID to find the hidden AP;
    第二编码单元,用于若没有找到所述隐藏AP,利用第二字符编码方式对所述SSID进行再次编码;a second coding unit, configured to re-encode the SSID by using a second character encoding manner if the hidden AP is not found;
    第二广播单元,用于广播包含再次编码后的所述SSID的第二扫描请求。a second broadcast unit, configured to broadcast a second scan request including the re-encoded SSID.
  11. 根据权利要求10所述的终端设备,其特征在于,所述终端设备还包括:The terminal device according to claim 10, wherein the terminal device further comprises:
    统计单元,用于统计广播所述第一扫描请求之后的时间; a statistical unit, configured to count the time after the first scan request is broadcasted;
    确定单元,用于若所述广播所述第一扫描请求之后的时间超过预设阈值,终端设备没有收到所述隐藏AP的第一应答消息,则确定没有找到所述隐藏AP。And a determining unit, configured to determine that the hidden AP is not found if the terminal device does not receive the first response message of the hidden AP, if the time after the first scanning request is broadcasted exceeds a preset threshold.
  12. 根据权利要求10或11所述的终端设备,其特征在于,所述获取单元,包括:The terminal device according to claim 10 or 11, wherein the obtaining unit comprises:
    解析子单元,用于解析扫描到的二维码所包含的信息;a parsing subunit for parsing information contained in the scanned two-dimensional code;
    获取子单元,用于从所述二维码所包含的信息中获取所述用户想要连接的隐藏AP的SSID。And an obtaining subunit, configured to acquire, from information included in the two-dimensional code, an SSID of the hidden AP that the user wants to connect.
  13. 根据权利要求10所述的终端设备,其特征在于,若找到所述隐藏AP,所述终端设备还包括:The terminal device according to claim 10, wherein if the hidden AP is found, the terminal device further includes:
    第一判断单元,用于判断是否能成功接入所述隐藏AP;a first determining unit, configured to determine whether the hidden AP can be successfully accessed;
    修改单元,用于若不能成功接入所述隐藏AP,则修改所述第一扫描请求中的加密方式以获得第三扫描请求;其中,所述加密方式包括预先共享密钥无线网络安全接入WPA-PSK、无线网络安全接入WPA和有线等效保密WEP;a modifying unit, configured to modify an encryption manner in the first scan request to obtain a third scan request if the hidden AP cannot be successfully accessed; wherein the encryption manner includes pre-shared key wireless network security access WPA-PSK, wireless network security access WPA and wired equivalent confidential WEP;
    第三广播单元,用于广播所述第三扫描请求。a third broadcast unit, configured to broadcast the third scan request.
  14. 根据权利要求10所述的终端设备,其特征在于,若找到所述隐藏AP,所述终端设备还包括:The terminal device according to claim 10, wherein if the hidden AP is found, the terminal device further includes:
    第二判断单元,用于判断是否能成功接入所述隐藏AP;a second determining unit, configured to determine whether the hidden AP can be successfully accessed;
    第三编码单元,用于若不能成功接入所述隐藏AP,则利用第三字符编码方式对所述SSID所对应的密码进行再次编码;a third coding unit, configured to re-encode the password corresponding to the SSID by using a third character encoding manner if the hidden AP cannot be successfully accessed;
    发送单元,用于向所述隐藏AP发送包含再编码的所述密码的接入请求。And a sending unit, configured to send, to the hidden AP, an access request that includes the re-encoded password.
  15. 根据权利要求13或14所述的终端设备,其特征在于,所述判断是否能成功接入所述隐藏AP,包括:The terminal device according to claim 13 or 14, wherein the determining whether the passive AP can be successfully accessed includes:
    接收单元,用于接收所述隐藏AP返回的第二应答消息;a receiving unit, configured to receive a second response message returned by the hidden AP;
    第三判断单元,用于通过所述第二应答消息所包含的错误码判断是否能成功接入所述隐藏AP。The third determining unit is configured to determine, by using the error code included in the second response message, whether the hidden AP can be successfully accessed.
  16. 根据权利要求10所述的终端设备,其特征在于,所述获取单元,包括:The terminal device according to claim 10, wherein the obtaining unit comprises:
    拍摄子单元,用于通过摄像头拍摄获得目标图像; a shooting subunit for capturing a target image by a camera;
    文本识别子单元,用于对所述目标图像进行文本识别以获取所述隐藏AP的SSID。a text recognition subunit, configured to perform text recognition on the target image to obtain an SSID of the hidden AP.
  17. 根据权利要求10所述的终端设备,其特征在于,所述获取单元,包括:The terminal device according to claim 10, wherein the obtaining unit comprises:
    录音子单元,用于通过麦克风获取目标语音信息;a recording subunit for acquiring target voice information through a microphone;
    语音识别子单元,用于对所述目标语音信息进行语音识别以获取所述隐藏AP的SSID。a voice recognition subunit, configured to perform voice recognition on the target voice information to obtain an SSID of the hidden AP.
  18. 一种终端设备,其特征在于,包括:A terminal device, comprising:
    存储有可执行程序代码的存储器;a memory storing executable program code;
    与所述存储器耦合的处理器;a processor coupled to the memory;
    所述处理器调用所述存储器中存储的所述可执行程序代码,执行如权利要求1至权利要求9任一项所述的方法。The processor invokes the executable program code stored in the memory to perform the method of any one of claims 1 to 9.
  19. 一种计算机可读存储介质,其特征在于,其存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行如权利要求1~9任一项所述的方法。A computer readable storage medium storing a computer program for electronic data exchange, wherein the computer program causes a computer to perform the method of any one of claims 1 to 9.
  20. 一种计算机程序产品,其特征在于,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如权利要求1~9任一项所述的方法。 A computer program product, comprising: a non-transitory computer readable storage medium storing a computer program, the computer program being operative to cause a computer to perform the method of any one of claims 1-9 The method described.
PCT/CN2017/109947 2016-12-27 2017-11-08 Method for connecting to hidden ap, and terminal device WO2018121086A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201611231754.3A CN106792622A (en) 2016-12-27 2016-12-27 The method and terminal device of AP are hidden in connection
CN201611231754.3 2016-12-27

Publications (1)

Publication Number Publication Date
WO2018121086A1 true WO2018121086A1 (en) 2018-07-05

Family

ID=58921231

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/109947 WO2018121086A1 (en) 2016-12-27 2017-11-08 Method for connecting to hidden ap, and terminal device

Country Status (2)

Country Link
CN (1) CN106792622A (en)
WO (1) WO2018121086A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110740449A (en) * 2019-10-11 2020-01-31 深圳市昊一源科技有限公司 Access method of AP (Access Point) equipment, AP equipment and communication system
CN111010693A (en) * 2019-11-25 2020-04-14 华为技术有限公司 Method for providing wireless fidelity WiFi network access service and electronic equipment
CN111385797A (en) * 2020-03-17 2020-07-07 展讯通信(上海)有限公司 WiFi network distribution method, device, apparatus and storage medium
CN113784347A (en) * 2021-08-13 2021-12-10 瑞芯微电子股份有限公司 Method and system for one-key network distribution of intelligent equipment

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106792622A (en) * 2016-12-27 2017-05-31 广东欧珀移动通信有限公司 The method and terminal device of AP are hidden in connection
CN107395431B (en) * 2017-08-17 2020-07-28 普联技术有限公司 Network construction method and device, equipment processing and accessing method and network equipment
CN110431868B (en) * 2017-08-23 2022-05-31 华为技术有限公司 Wi-Fi hotspot connection method and terminal
CN107770844B (en) * 2017-10-23 2020-12-29 Oppo广东移动通信有限公司 Decoding algorithm determination method, device, terminal and storage medium
CN107708183B (en) * 2017-10-23 2021-06-01 Oppo广东移动通信有限公司 Decoding algorithm determination method, device, terminal and storage medium
CN111918363B (en) * 2020-08-10 2023-04-07 北京紫光展锐通信技术有限公司 Network distribution method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7085292B1 (en) * 1997-07-29 2006-08-01 U. S. Philips Corporation Wireless networked device installation
CN105282823A (en) * 2015-09-18 2016-01-27 普联技术有限公司 Network access method and apparatus of intelligent device
CN105814926A (en) * 2014-01-07 2016-07-27 英特尔公司 Apparatus, method and system of obfuscating a wireless communication network identifier
CN106131930A (en) * 2016-08-15 2016-11-16 广东欧珀移动通信有限公司 A kind of WiFi network connection control method, device and terminal
CN106792622A (en) * 2016-12-27 2017-05-31 广东欧珀移动通信有限公司 The method and terminal device of AP are hidden in connection

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101626634A (en) * 2009-08-05 2010-01-13 中兴通讯股份有限公司 System and method for automatically configuring wireless information of user device
CN103517385B (en) * 2012-07-11 2016-08-03 Tcl集团股份有限公司 The method of attachment of the AP of Android system Wi-Fi and system
CN104135754A (en) * 2014-08-05 2014-11-05 广东欧珀移动通信有限公司 Method and device of adding and connecting hidden Chinese wifi hotspot
CN104302015A (en) * 2014-09-15 2015-01-21 浙江生辉照明有限公司 Adaptive WI-FI network connection method and system with hidden SSID
CN104283642B (en) * 2014-10-22 2018-07-24 小米科技有限责任公司 The method and device of issuing service set identifier SSID in WLAN

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7085292B1 (en) * 1997-07-29 2006-08-01 U. S. Philips Corporation Wireless networked device installation
CN105814926A (en) * 2014-01-07 2016-07-27 英特尔公司 Apparatus, method and system of obfuscating a wireless communication network identifier
CN105282823A (en) * 2015-09-18 2016-01-27 普联技术有限公司 Network access method and apparatus of intelligent device
CN106131930A (en) * 2016-08-15 2016-11-16 广东欧珀移动通信有限公司 A kind of WiFi network connection control method, device and terminal
CN106792622A (en) * 2016-12-27 2017-05-31 广东欧珀移动通信有限公司 The method and terminal device of AP are hidden in connection

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110740449A (en) * 2019-10-11 2020-01-31 深圳市昊一源科技有限公司 Access method of AP (Access Point) equipment, AP equipment and communication system
CN111010693A (en) * 2019-11-25 2020-04-14 华为技术有限公司 Method for providing wireless fidelity WiFi network access service and electronic equipment
CN111010693B (en) * 2019-11-25 2023-10-03 华为技术有限公司 Method for providing wireless fidelity network access service and electronic equipment
CN111385797A (en) * 2020-03-17 2020-07-07 展讯通信(上海)有限公司 WiFi network distribution method, device, apparatus and storage medium
CN111385797B (en) * 2020-03-17 2023-02-28 展讯通信(上海)有限公司 WiFi network distribution method, device, apparatus and storage medium
CN113784347A (en) * 2021-08-13 2021-12-10 瑞芯微电子股份有限公司 Method and system for one-key network distribution of intelligent equipment

Also Published As

Publication number Publication date
CN106792622A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
WO2018121086A1 (en) Method for connecting to hidden ap, and terminal device
WO2017198161A1 (en) Network connection method, apparatus, storage medium, and terminal
WO2018103492A1 (en) Method for setting wifi roaming, and terminal device
WO2018086417A1 (en) Microphone alternating live broadcast method, apparatus and system
US20170163626A1 (en) Method and device for network access of a smart terminal device
CN110278550B (en) Portable device, portable apparatus, and computer-readable medium
US10813058B2 (en) Method for processing information and terminal device
WO2018049886A1 (en) Hotspot establishment method and terminal device
US20170316781A1 (en) Remote electronic service requesting and processing method, server, and terminal
TWI512525B (en) Method and system for associating two terminals with each other, terminal and computer-readable storage medium
CN103458408A (en) Network connection method and network sharing method and device
CN103475996A (en) Network connecting method, network sharing method and devices
CN108834132B (en) Data transmission method and equipment and related medium product
WO2018049893A1 (en) Data transmission method and terminal device
CN106550361B (en) Data transmission method, equipment and computer readable storage medium
CN108075899B (en) Identity authentication method, mobile terminal and computer readable storage medium
WO2018049894A1 (en) Data transmission method and device
WO2018103443A1 (en) Network positioning method and terminal device
US20120158979A1 (en) Method and apparatus for controlling access to access point in mobile terminal
WO2019140657A1 (en) Method and device for network connection and terminal
WO2017215661A1 (en) Scenario-based sound effect control method and electronic device
TW201717167A (en) A projection device control method, a projection device and a smart terminal
WO2016192511A1 (en) Method and apparatus for remotely deleting information
WO2021078215A1 (en) Method for cross-terminal switching of cloud game and related device
KR20150026654A (en) Method and apparatus for connecting to network in electronic device

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

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

Country of ref document: EP

Kind code of ref document: A1