CN106912085A - A kind of client and WI FI connection methods - Google Patents

A kind of client and WI FI connection methods Download PDF

Info

Publication number
CN106912085A
CN106912085A CN201710286551.2A CN201710286551A CN106912085A CN 106912085 A CN106912085 A CN 106912085A CN 201710286551 A CN201710286551 A CN 201710286551A CN 106912085 A CN106912085 A CN 106912085A
Authority
CN
China
Prior art keywords
connection
sta
configuration informations
communication connection
configuration
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN201710286551.2A
Other languages
Chinese (zh)
Inventor
赵万
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201710286551.2A priority Critical patent/CN106912085A/en
Publication of CN106912085A publication Critical patent/CN106912085A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Landscapes

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

Abstract

The invention discloses a kind of client, including:Determining module, when communicating to connect and receive a WI FI connection requests for being set up between client STA and access point AP, determines to whether there is the corresponding WI FI configuration informations of the AP in configuration file;First sending module, during for not existing WI FI configuration informations in configuration file, request to AP is obtained by communicating to connect to send;Second sending module, for when WI FI configuration informations are received, the 2nd WI FI connection requests to AP being sent by communicating to connect based on WI FI configuration informations.Present invention also offers a kind of WI FI connection methods.STA can obtain WI FI configuration informations by communicating to connect in the present invention, and then the automatic WI FI connections set up between STA and the AP, simplify WI FI establishment of connection processes between STA and the AP, improve Consumer's Experience.

Description

A kind of client and WI-FI connection methods
Technical field
The present invention relates to communication technique field, more particularly to a kind of client and WI-FI connection methods.
Background technology
WI-FI uses the mark for widely, particularly having become mobile phone at present as the agreement of short haul connection Match somebody with somebody, but the WI-FI connections before mesh the first two equipment are by STA (Station, client), being swept into search interface AP (Access Point, access point) is retouched, is then manually entered what password was attached, and then set up WI-FI connections, entirely WI-FI connection procedures are complicated.
The content of the invention
It is a primary object of the present invention to propose a kind of client and WI-FI connection methods, it is intended to solve WI-FI and connected The complicated technical problem of journey.
To achieve the above object, the invention discloses a kind of client, the client includes:
Determining module, for setting up communication connection between client STA and access point AP and receiving a WI-FI During connection request, determine to whether there is the corresponding WI-FI configuration informations of the AP in configuration file, wherein, the communication connection Including one in Bluetooth communication connection, infrared communication connection and radio frequency ID communication connections;
First sending module, during for not existing the WI-FI configuration informations in the configuration file, by described logical Letter linkup transmit obtains request to the AP, is communicated to connect to described by described so that the AP is based on the acquisition request STA sends the corresponding WI-FI configuration informations of the AP;
Second sending module is logical based on the WI-FI configuration informations for when the WI-FI configuration informations are received Cross the communication connection and send the 2nd WI-FI connection requests to the AP, asked so that the AP is based on the 2nd WI-FI connections The WI-FI set up between the STA and the AP is asked to connect.
Additionally, the invention also discloses a kind of WI-FI connection methods, the WI-FI connection methods include following step Suddenly:
When communication connection is set up between client STA and access point AP and a WI-FI connection requests are received, really Determine to whether there is the corresponding WI-FI configuration informations of the AP in configuration file, wherein, the communication connection includes that Bluetooth communication connects Connect, infrared communication connection and radio frequency ID communication connection in one;
When not existing the WI-FI configuration informations in the configuration file, send to obtain by the communication connection and ask Ask to the AP, ask to send the AP correspondences to the STA by described communication connection so that the AP is based on described acquisition WI-FI configuration informations;
When the WI-FI configuration informations are received, sent by the communication connection based on the WI-FI configuration informations 2nd WI-FI connection requests to the AP, so that the AP sets up the STA and institute based on the 2nd WI-FI connection requests State the WI-FI connections between AP.
When the present invention between STA and AP by setting up communication connection, determining module determines to whether there is in configuration file The corresponding WI-FI configuration informations of the AP, then in the absence of the WI-FI configuration informations and receive in the configuration file During to a WI-FI connection requests, the first sending module is sent by the communication connection and obtains request to the AP, for institute State AP to ask to send the corresponding WI-FI configuration informations of the AP to the STA by described communication connection based on described acquisition, so The second sending module is based on the WI-FI configuration informations and sends the 2nd WI-FI connection requests to institute by the communication connection afterwards AP is stated, so that the AP is based on the WI-FI connections that the 2nd WI-FI connection requests are set up between the STA and the AP, STA can obtain WI-FI configuration informations by the communication connection between STA and AP, and then set up between STA and the AP automatically WI-FI connection, it is not necessary to user is manually entered WI-FI passwords, simplifies WI-FI establishment of connections between STA and the AP Process, improves Consumer's Experience.
Brief description of the drawings
Fig. 1 is the hardware architecture diagram of the mobile terminal of each embodiment of the invention;
Fig. 2 is the high-level schematic functional block diagram of client first embodiment of the present invention;
Fig. 3 is the operative scenario schematic diagram in the embodiment of client of the present invention;
Fig. 4 is the interaction flow schematic diagram in one embodiment of the invention between STA and AP;
Fig. 5 is the high-level schematic functional block diagram of client second embodiment of the present invention;
Fig. 6 is the interaction flow schematic diagram in another embodiment of the present invention between STA and AP;
Fig. 7 is the refinement high-level schematic functional block diagram of the first sending module in the excellent 3rd embodiment of client of the present invention;
Fig. 8 is the high-level schematic functional block diagram of client fourth embodiment of the present invention;
Fig. 9 is the high-level schematic functional block diagram of the embodiment of client of the present invention 5th;
Figure 10 is the interaction flow schematic diagram in further embodiment of this invention between STA and AP;
Figure 11 is the schematic flow sheet of WI-FI connection methods first embodiment of the present invention;
Figure 12 is the schematic flow sheet of WI-FI connection methods second embodiment of the present invention;
Figure 13 obtains request to institute to be sent by the communication connection in WI-FI connection methods 3rd embodiment of the present invention State the refinement schematic flow sheet of AP;
Figure 14 is the schematic flow sheet of WI-FI connection methods fourth embodiment of the present invention;
Figure 15 is the schematic flow sheet of the embodiment of WI-FI connection methods the 5th of the present invention.
The realization of the object of the invention, functional characteristics and advantage will be described further referring to the drawings in conjunction with the embodiments.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The STA of each embodiment of the invention is realized referring now to Description of Drawings.In follow-up description, using for table Show the suffix of such as " module ", " part " or " unit " of element only for being conducive to explanation of the invention, itself does not have Specific meaning.Therefore, " module " can be used mixedly with " part ".
STA can be in a variety of manners terminal implement.For example, the STA described in the present invention can include desktop computer Etc. fixed terminal, it is also possible to the mobile terminal including such as notebook computer, PAD (panel computer), smart mobile phone etc..
Below, it is that mobile terminal is illustrated with STA.However, it will be understood by those skilled in the art that, except especially using Outside the element of mobile purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
As shown in figure 1, the hardware configuration that Fig. 1 is the mobile terminal for realizing each embodiment of the invention is illustrated.
Mobile terminal 1 00 can include that wireless communication unit 110, power subsystem 120, user input unit 130, sensing are single Unit 140, output unit 150, memory 160, interface unit 170, controller 180 and etc..
Fig. 1 shows the mobile terminal with various assemblies, it should be understood that being not required for implementing all showing Component.More or less component can alternatively be implemented.The element of mobile terminal will be discussed in more detail below.
Wireless communication unit 110 generally includes one or more assemblies, and it allows mobile terminal 1 00 and wireless communication system Or the radio communication between network.For example, wireless communication unit can include broadcasting reception module 111, mobile communication module 112nd, at least one of wireless Internet module 113, short range communication module 114 and location information module 115.
Broadcasting reception module 111 receives broadcast singal and/or broadcast via broadcast channel from external broadcast management server Relevant information.Broadcast channel can include satellite channel and/or terrestrial channel.Broadcast management server can be generated and sent The broadcast singal and/or broadcast related information generated before the server or reception of broadcast singal and/or broadcast related information And send it to the server of terminal.Broadcast singal can include TV broadcast singals, radio signals, data broadcasting Signal etc..And, broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast phase Pass information can also be provided via mobile communications network, and in this case, broadcast related information can be by mobile communication mould Block 112 is received.Broadcast singal can exist in a variety of manners, for example, it can be with the electronics of DMB (DMB) The form of program guide (EPG), the electronic service guidebooks (ESG) of digital video broadcast-handheld (DVB-H) etc. and exist.Broadcast Receiver module 111 can receive signal and broadcast by using various types of broadcast systems.Especially, broadcasting reception module 111 Can be wide by using such as multimedia broadcasting-ground (DMB-T), DMB-satellite (DMB-S), digital video Broadcast-hand-held (DVB-H), forward link media (MediaFLO@) Radio Data System, received terrestrial digital broadcasting integrated service Etc. (ISDB-T) digit broadcasting system receives digital broadcasting.Broadcasting reception module 111 may be constructed such that and be adapted to provide for extensively Broadcast the various broadcast systems and above-mentioned digit broadcasting system of signal.Via broadcasting reception module 111 receive broadcast singal and/ Or broadcast related information can be stored in memory 160 (or other types of storage medium).
Mobile communication module 112 sends radio signals to base station (for example, access point, node B etc.), exterior terminal And at least one of server and/or receive from it radio signal.Such radio signal can be logical including voice Words signal, video calling signal or the various types of data for sending and/or receiving according to text and/or Multimedia Message.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.The module can be internally or externally It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by the module can include WLAN (WLAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave accesses), HSDPA (high-speed downlink packet access) etc..
Short range communication module 114 is the module for supporting junction service.Some examples of short-range communication technology include indigo plant ToothTM, radio frequency identification (RFID), Infrared Data Association (I rDA), ultra wide band (UWB), purple honeybeeTMEtc..
Location information module 115 is the module for checking or obtaining the positional information of mobile terminal.Location information module Typical case be GPS (global positioning system).According to current technology, GPS module 115 is calculated and comes from three or more satellites Range information and correct time information and the Information application triangulation for calculating, so as to according to longitude, latitude Highly accurately calculate three-dimensional current location information.Currently, defended using three for calculating the method for position and temporal information Star and the position that is calculated by using other satellite correction and the error of temporal information.Additionally, GPS module 115 Can be by Continuous plus current location information in real time come calculating speed information.
Power subsystem 120 receives external power or internal power under the control of controller 180 and provides operation each unit Appropriate electric power needed for part and component.
User input unit 130 can generate key input data to control each of mobile terminal according to the order of user input Plant operation.User input unit 130 allows the various types of information of user input, and can include keyboard, metal dome, touch Plate (for example, detection due to being touched caused by resistance, pressure, electric capacity etc. change sensitive component), roller, rocking bar etc. Deng.Especially, when touch pad is superimposed upon on display unit 151 in the form of layer, touch-screen can be formed.
Sensing unit 140 detects the current state of mobile terminal 1 00, (for example, mobile terminal 1 00 opens or closes shape State), the presence or absence of the contact (that is, touch input) of the position of mobile terminal 1 00, user for mobile terminal 1 00, mobile terminal The acceleration or deceleration movement of 100 orientation, mobile terminal 1 00 and direction etc., and generate for controlling mobile terminal 1 00 The order of operation or signal.For example, when mobile terminal 1 00 is embodied as sliding-type mobile phone, sensing unit 140 can be sensed The sliding-type phone is opened or closed.In addition, sensing unit 140 can detect power subsystem 120 whether provide electric power or Whether person's interface unit 170 couples with external device (ED).Sensing unit 140 can will be combined below including proximity transducer 141 Touch-screen is described to this.
Interface unit 170 is connected the interface that can pass through with mobile terminal 1 00 as at least one external device (ED).For example, External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Identification module can be that storage uses each of mobile terminal 1 00 for verifying user Kind of information and subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) can be included Etc..In addition, the device (hereinafter referred to as " identifying device ") with identification module can take the form of smart card, therefore, know Other device can be connected via port or other attachment means with mobile terminal 1 00.Interface unit 170 can be used for reception and come from The input (for example, data message, electric power etc.) of the external device (ED) and input that will be received is transferred in mobile terminal 1 00 One or more elements can be used for transmitting data between mobile terminal and external device (ED).
In addition, when mobile terminal 1 00 is connected with external base, interface unit 170 can serve as allowing by it by electricity Power provides to the path of mobile terminal 1 00 from base or can serve as allowing the various command signals being input into from base to pass through it It is transferred to the path of mobile terminal.Be can serve as recognizing that mobile terminal is from the various command signals or electric power of base input The no signal being accurately fitted within base.Output unit 150 is configured to provide defeated with vision, audio and/or tactile manner Go out signal (for example, audio signal, vision signal, alarm signal, vibration signal etc.).Output unit 150 can include display Unit 151, dio Output Modules 152, alarm unit 153 etc..
Display unit 151 may be displayed on the information processed in mobile terminal 1 00.For example, when mobile terminal 1 00 is in electricity During words call mode, display unit 151 can show and converse or other communicate (for example, text messaging, multimedia file Download etc.) related user interface (U I) or graphic user interface (GU I).When mobile terminal 1 00 is in video calling mould When formula or image capture mode, display unit 151 can show the image of capture and/or the image of reception, video is shown or UI or GUI of image and correlation function etc..
Meanwhile, when display unit 151 and touch pad in the form of layer it is superposed on one another to form touch-screen when, display unit 151 can serve as input unit and output device.Display unit 151 can include liquid crystal display (LCD), thin film transistor (TFT) In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least It is a kind of.Some in these displays may be constructed such that transparence to allow user to be watched from outside, and this is properly termed as transparent Display, typical transparent display can be, for example, TOLED (transparent organic light emitting diode) display etc..According to specific Desired implementation method, mobile terminal 1 00 can include two or more display units (or other display devices), for example, moving Dynamic terminal can include outernal display unit (not shown) and inner display unit (not shown).Touch-screen can be used to detect touch Input pressure and touch input position and touch input area.
Dio Output Modules 152 can mobile terminal be in call signal reception pattern, call mode, logging mode, It is that wireless communication unit 110 is received or in memory 160 when under the isotypes such as speech recognition mode, broadcast reception mode The voice data transducing audio signal of middle storage and it is output as sound.And, dio Output Modules 152 can be provided and movement The audio output (for example, call signal receives sound, message sink sound etc.) of the specific function correlation that terminal 100 is performed. Dio Output Modules 152 can include loudspeaker, buzzer etc..
Alarm unit 153 can provide output and be notified to mobile terminal 1 00 with by event.Typical event can be with Including calling reception, message sink, key signals input, touch input etc..In addition to audio or video is exported, alarm unit 153 can in a different manner provide output with the generation of notification event.For example, alarm unit 153 can be in the form of vibrating Output is provided, when calling, message or some other entrance communication (incoming communication) are received, alarm list Unit 153 can provide tactile output (that is, vibrating) to notify to user.Exported by providing such tactile, even if When in pocket of the mobile phone of user in user, user also can recognize that the generation of various events.Alarm unit 153 The output of the generation of notification event can be provided via display unit 151 or dio Output Modules 152.
Memory 160 can store software program for the treatment and control operation performed by controller 180 etc., Huo Zheke Temporarily to store oneself data (for example, telephone directory, message, still image, video etc.) through exporting or will export.And And, memory 160 can store the vibration of various modes on being exported when touching and being applied to touch-screen and audio signal Data.
Memory 160 can include the storage medium of at least one type, and the storage medium includes flash memory, hard disk, many Media card, card-type memory (for example, SD or DX memories etc.), random access storage device (RAM), static random-access storage Device (SRAM), read-only storage (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc..And, mobile terminal 1 00 can perform memory with by network connection The network storage device cooperation of 160 store function.
The overall operation of the generally control mobile terminal of controller 180.For example, controller 180 is performed and voice call, data Communication, video calling etc. related control and treatment.In addition, controller 180 can be included for reproducing (or playback) many matchmakers The multi-media module 181 of volume data, multi-media module 181 can be constructed in controller 180, or can be structured as and control Device 180 is separated.Controller 180 can be with execution pattern identifying processing, the handwriting input that will be performed on the touchscreen or picture Draw input and be identified as character or image.
Various implementation methods described herein can be with use such as computer software, hardware or its any combination of calculating Machine computer-readable recording medium is implemented.Implement for hardware, implementation method described herein can be by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can Programming gate array (FPGA), processor, controller, microcontroller, microprocessor, it is designed to perform function described herein At least one in electronic unit is implemented, and in some cases, such implementation method can be implemented in controller 180. For software implementation, the implementation method of such as process or function can with allow to perform the single of at least one function or operation Software module is implemented.Software code can be come by the software application (or program) write with any appropriate programming language Implement, software code can be stored in memory 160 and performed by controller 180.
Based on above-mentioned mobile terminal hardware configuration and communication system, each implementation of client of the present invention and method is proposed Example.
The present invention provides a kind of client, and reference picture 2, Fig. 2 is that the functional module of client first embodiment of the present invention is shown It is intended to, in the present embodiment, the client includes:
Determining module 10, for setting up communication connection between client STA and access point AP and receiving a WI- During FI connection requests, determine to whether there is the corresponding WI-FI configuration informations of the AP in configuration file, wherein, the communication link Connect including in Bluetooth communication connection, infrared communication connection and radio frequency ID communication connections;
Wherein, the communication connection between STA and access point AP includes Bluetooth communication connection, infrared communication connection and RFID One in (Radio Frequency Identification, radio frequency identification) communication connection.Certainly, communication connection can be with Including other junction service connected modes such as super-broadband tech (UWB) communication connection, ZigBee communication connections.In practice, One or more junction service connected mode in addition to WI-FI can be carried on one STA or AP, is supported simultaneously in STA and AP In the case of various communication connection modes, communication connection can refer in various communication connection modes any one or it is many Kind, specifically, such as STA and AP support that bluetooth connection and RFID communication are connected, and in this case, STA and AP can be selected Select and set up the communication connection using bluetooth, it is also possible to which Selection utilization RFID sets up communication connection.
Additionally, a WI-FI connection requests can manually be triggered by user on STA, it is also possible to having number by the STA Triggered automatically according to when needing to be sent to the AP, or triggered automatically when there are data to need to be sent to the STA by the AP. For example, when the communication connection between STA and AP is set up, user when needing to access network, if the WI-FI functions of STA are not opened Dynamic, then user triggers a WI-FI connection requests when the WI-FI functions of STA are started, if the WI-FI functions of STA have been opened Dynamic, then when the option at the WI-FI interfaces for passing through STA in user selects to set up WI-FI connections, triggering WI-FI connections please Ask;Or, when the communication connection between STA and AP is set up, if STA there is currently the data for needing to be sent to AP, to carry The efficiency of data transfer high, can directly trigger a WI-FI connection requests;Or, the communication connection between STA and AP It is the efficiency for improving data transfer if AP ends have detected data when needing to be sent to STA when setting up, can be by above-mentioned communication Connect and send a WI-FI connection requests to STA.
The AP corresponding WI-FI configuration informations information such as including the password corresponding to SSID, BSSID and the SSID.As A kind of preferred embodiment scheme, the corresponding WI-FI configuration informations of AP described in this embodiment scheme include SSID and encrypted message. When STA before AP with setting up WI-FI and being connected, STA is by the corresponding WI-FI configuration informations storages of the AP in configuration file.
In the present embodiment, when communication connection is set up between STA and AP and a WI-FI connection requests are received, really Cover half block 10 determines to whether there is the corresponding WI-FI configuration informations of the AP in configuration file, in order to quickly set up STA and AP Between WI-FI connection.
First sending module 20, during for not existing the WI-FI configuration informations in the configuration file, by described Communication connection transmission obtains request to the AP, asks to be communicated to connect to described by described so that the AP is based on described acquisition STA sends the corresponding WI-FI configuration informations of the AP;
Wherein, the reason for not existing WI-FI configuration informations in configuration file mainly has following several:Do not have in configuration file WI-FI configuration informations, specifically, such as STA never set up WI-FI and was connected with AP, did not had before configuration file when this Preserved the corresponding WI-FI configuration informations of the AP;Or there are the corresponding WI-FI of the AP to match somebody with somebody confidence in configuration file originally Breath, but during subsequent use because it is various the reason for cause the corresponding WI-FI configuration informations of the AP clear Remove, for example, User Format memory and cause configuration file to be lost, or user deletes described configuration file etc. manually.
In the present embodiment, when not existing the WI-FI configuration informations in the configuration file, the first sending module 20 Sent by the communication connection and obtain request to the AP, when acquisition request is received, AP is based on acquisition request and looks into The corresponding WI-FI configuration informations of the AP are looked for, and feeds back the WI-FI configuration informations.Wherein, the corresponding WI-FI configuration informations of AP can To store in the storage medium communicated to connect with the AP, or in the local data base communicated to connect with the AP, AP can basis The WI-FI configuration informations are searched in acquisition request in storage medium or local data base, are finding the WI-FI configuration informations When, AP is sent to STA the WI-FI configuration informations by above-mentioned communication connection.
Further, in one embodiment, STA deposits the WI-FI configuration informations when WI-FI configuration informations are received It is to be distinguished with other WI-FI configuration informations certainly in storage to configuration file, can be by WI-FI configuration informations and above-mentioned communication link Connect corresponding identification information and be associated storage, for example, being Bluetooth communication connection, the indigo plant of the associated storage AP in the communication connection In tooth identification information and WI-FI configuration informations to the configuration file.
Second sending module 30, for when the WI-FI configuration informations are received, based on the WI-FI configuration informations 2nd WI-FI connection requests to the AP are sent by the communication connection, so that the AP is connected based on the 2nd WI-FI The WI-FI connections that request is set up between the STA and the AP.
In the present embodiment, when WI-FI configuration informations are received, the second sending module 30 is configured based on the WI-FI Information sends the 2nd WI-FI connection requests to AP by the communication connection, and AP is receiving the 2nd WI-FI connection requests When, based on the WI-FI connections that the 2nd WI-FI connection requests are set up between STA and the AP, specifically, the 2nd WI-FI connections please Ask and carry the corresponding SSID of the AP and password, AP parses the 2nd WI-FI when the 2nd WI-FI connection requests are received Connection request obtains corresponding SSID and password, and the SSID and the SSID and password of password and the AP itself obtained in parsing are consistent When, the WI-FI connections set up between the STA and the AP, and then enable STA by the communication link between STA and AP Obtain and take the corresponding WI-FI configuration informations of AP, and then the automatic WI-FI connections set up between STA and the AP, it is not necessary to user WI-FI passwords are manually entered, WI-FI establishment of connections process between STA and the AP is simplified, Consumer's Experience is improve.
Wherein, the WI-FI functions of STA are likely to be at closed mode in the present embodiment, therefore, receiving the WI-FI During configuration information, if the WI-FI functions of current STA are not actuated, start WI-FI functions, then the second sending module 30 is based on The WI-FI configuration informations send the 2nd WI-FI connection requests to the AP by the communication connection.
In one embodiment, reference picture 1, wherein, the controller 180 in Fig. 1 is the determining module 10 in the present embodiment, Communicate to connect the communication connection to be set up between the short range communication module 114 and AP in Fig. 1, WI-FI configuration informations and configuration File is stored in memory 160.
Pass through to set up communication connection between short range communication module 114 and AP and receive WI-FI connections in STA to ask When asking, controller 180 obtains the configuration file of the storage of memory 160, and determines to whether there is the corresponding WI- of AP in configuration file FI configuration informations;When not existing the WI-FI configuration informations in configuration file, controller 180 passes through short range communication module 114 Send and obtain request to AP;When WI-FI configuration informations are received, controller 180 sends second by short range communication module 114 WI-FI connection requests are to AP, and then the WI-FI connections set up between STA and AP.
Below by taking concrete scene as an example, the flow of the present embodiment WI-FI connection methods is elaborated.
Specifically, reference picture 3 and Fig. 4, wherein, in figure 3, AP is router, and STA is mobile phone or PC, communicates to connect and is Bluetooth, i.e. router, mobile phone and PC are equipped with bluetooth module and WI-FI modules, and Fig. 4 is STA in one embodiment of the invention Interaction flow schematic diagram between AP;Wherein, by taking the mobile phone in Fig. 3 as an example, and Fig. 4 is combined, idiographic flow is as follows:
When the bluetooth module of mobile phone and the bluetooth module of router set up bluetooth connection, if mobile phone receives a WI- FI connection requests, then search the corresponding WI-FI configuration informations of router in configuration file, wherein, bluetooth connection can pass through User sets up manually, or automatic foundation.
When the WI-FI configuration informations of router are not found in configuration file, mobile phone is sent by Bluetooth channels and obtained To router, when acquisition request is received, router sends corresponding WI-FI configuration informations to hand by Bluetooth channels for request Machine, wherein, the WI-FI configuration informations information such as including router corresponding SSID, BSSID and password;
When the above-mentioned WI-FI configuration informations of router transmission are received, mobile phone sends the 2nd WI-FI by Bluetooth channels The WI- that connection request is set up between mobile phone and router to router, router according to the 2nd WI-FI connection requests for receiving FI is connected;
When WI-FI connections are set up, mobile phone storage WI-FI configuration informations.
The client that the present embodiment is proposed, during by setting up communication connection between STA and AP, determining module 10 determines to match somebody with somebody Put in file with the presence or absence of the corresponding WI-FI configuration informations of the AP, do not exist the WI-FI in the configuration file then Configuration information and when receiving a WI-FI connection requests, the first sending module 20 sends that obtain please by the communication connection Ask to the AP, ask to send the AP correspondences to the STA by described communication connection so that the AP is based on described acquisition WI-FI configuration informations, then the second sending module 30 send the by the communication connection based on the WI-FI configuration informations Two WI-FI connection requests to the AP, for the AP based on the 2nd WI-FI connection requests set up the STA with it is described WI-FI connections between AP, STA can obtain WI-FI configuration informations by the communication connection between STA and AP, and then automatically The WI-FI connections set up between STA and the AP, it is not necessary to which user is manually entered WI-FI passwords so that WI-FI Connection Steps It is simplified significantly, improves Consumer's Experience.
Based on first embodiment, the second embodiment of client of the present invention is proposed, reference picture 5 is in the present embodiment, described Client also includes:
First acquisition module 40, during for there is the WI-FI configuration informations in the configuration file, from the configuration The WI-FI configuration informations are obtained in file;
In practice, the flow for obtaining the WI-FI configuration informations can be configured according to specific hardware condition. As a kind of preferred embodiment scheme, the communication connection of different AP can be marked, then using specific storage method The WI-FI configuration informations of the AP are marked into associated storage with the communication connection of the AP, when foundation between STA and access point AP When communicating to connect and receiving a WI-FI connection requests, the first acquisition module 40 can quickly exist according to the identification information of AP Positioned in configuration file, obtain the WI-FI configuration informations.
3rd sending module 50, for starting WI-FI functions, and based on the WI-FI configuration informations by the communication The WI-FI connection requests of linkup transmit the 3rd set up described to the AP so that the AP is based on the 3rd WI-FI connection requests WI-FI connections between STA and the AP.
In the present embodiment, when WI-FI configuration informations are got, the 3rd sending module 50 starts the WI-FI work(of STA Can, and the 3rd WI-FI connection requests are sent to the AP by the communication connection based on the WI-FI configuration informations, AP exists When receiving the 3rd WI-FI connection requests, connected based on the WI-FI that the 3rd WI-FI connection requests are set up between STA and the AP Connect.Specifically, the 3rd WI-FI connection requests carry the corresponding SSID of the AP and password, and AP is receiving the 3rd WI-FI companies When connecing request, parse the 3rd WI-FI connection requests and obtain corresponding SSID and password, the SSID that is obtained in parsing and password with When the AP SSID of itself are consistent with password, the WI-FI connections set up between the STA and the AP, and then enable STA Automatic WI-FI functions, and connected by the automatic WI-FI set up between STA and the AP of the communication connection between STA and AP Connect, it is not necessary to which user manually boots WI-FI functions, simplify WI-FI establishment of connections process between STA and the AP, improve Consumer's Experience.
Below by taking concrete scene as an example, the flow of the present embodiment WI-FI connection methods is elaborated.
Specifically, reference picture 6, Fig. 6 is the interaction flow schematic diagram in another embodiment of the present invention between STA and AP;Its In, by taking the mobile phone in Fig. 3 as an example, and Fig. 6 being combined, idiographic flow is as follows:
Mobile phone put file in there is WI-FI configuration informations when, STA obtained from the configuration file WI-FI configuration Information;
Mobile phone sends the 2nd WI-FI connection requests to router by Bluetooth channels, and router is according to second for receiving The WI-FI connections that WI-FI connection requests are set up between mobile phone and router.
The client that the present embodiment is proposed, during by there is the WI-FI configuration informations in the configuration file, first The acquisition module of acquisition module 40 obtains the WI-FI configuration informations from the configuration file, and then the 3rd sending module 50 is opened Dynamic WI-FI functions, and the 3rd WI-FI connection requests to institute are sent by the communication connection based on the WI-FI configuration informations AP is stated, so that the AP is based on the WI-FI connections that the 3rd WI-FI connection requests are set up between the STA and the AP, STA can be based on the WI-FI configuration information automatic WI-FI functions in configuration file, and by the communication between STA and AP The automatic WI-FI connections set up between STA and the AP of connection, it is not necessary to which user manually boots WI-FI functions, simplifies STA WI-FI establishment of connections process, further increases Consumer's Experience between the AP.
Based on first embodiment, the 3rd embodiment of client of the present invention is proposed, reference picture 7 is in the present embodiment, described First sending module 20 includes:
Determining unit 21, for not existing the WI-FI configuration informations in the configuration file and receiving the AP During identification information corresponding by the AP of the communication connection transmission, determine whether the AP props up according to the identification information Hold WI-FI functions;
Wherein, (Bluetooth Low Energy, low-power consumption bluetooth), AP couples when communication connection is communicated to connect for BLE The identification information answered can be the Beacon frames (beacon) of the AP, and the Beacon frames include the function letter corresponding to the AP Breath, for example, the Beacon frames include that the AP supports the information of WI-FI.In the present embodiment, set up logical between STA and AP During letter connection, STA can send identification information and obtain request to AP, and when identification information acquisition request is received, AP will be marked Know feedback of the information to STA;Or, when setting up communication connection between STA and AP, AP is directly sent to STA the identification information.
In the present embodiment, do not exist the WI-FI configuration informations in the configuration file and receive the AP and lead to When crossing the corresponding identification informations of the AP that the communication connection sends, determining unit 21 is according to the identification information determines Whether AP supports WI-FI functions, specifically, when not existing the WI-FI configuration informations in the configuration file, determining unit 21 transmittable identification informations obtain request to AP, when receiving the identification information and obtaining request, AP by identification information feedback extremely STA, when the identification information of AP feedbacks is received, determining unit 21 determines whether the AP supports according to the identification information WI-FI functions.
Transmitting element 22, for when the AP supports WI-FI functions, being sent by the communication connection and obtaining request extremely The AP.
In the present embodiment, when determining unit 21 determines that AP supports WI-FI functions, transmitting element 22 is by the communication Linkup transmit obtains request to the AP, and when receiving, AP searches the corresponding WI-FI of the AP and matches somebody with somebody confidence based on acquisition request Breath, and feed back the WI-FI configuration informations.Wherein, AP corresponding WI-FI configuration informations can be stored and communicated to connect with the AP In storage medium, or in the local data base communicated to connect with the AP, AP can be according to acquisition request in storage medium or sheet The WI-FI configuration informations are searched in ground database, when the WI-FI configuration informations are found, AP will by above-mentioned communication connection The WI-FI configuration informations are sent to STA.
The client that the present embodiment is proposed, is matched somebody with somebody in the configuration file by determining unit 21 in the absence of the WI-FI Confidence is when ceasing and receiving the AP by the corresponding identification informations of the AP of the communication connection transmission according to the mark Information determines whether the AP supports WI-FI functions, and then when the AP supports WI-FI functions, transmitting element 22 passes through institute State communication connection and send acquisition request to the AP so that STA can determine that the AP supports WI-FI by the identification information of AP Function, and then can avoid not supporting WI-FI functions in AP, request AP sets up WI-FI connections, further increases user's body Test.
Based on first embodiment, the fourth embodiment of client of the present invention is proposed, reference picture 8, in the present embodiment, the visitor Family end also includes:
Second acquisition module 60, the address information for obtaining the communication connection;
In the present embodiment, when the WI-FI configuration informations are received, the second acquisition module 60 obtains the communication link The address information for connecing, for example, when communication connection is connected for Bluetooth communication, obtaining the BLEMAC i.e. bluetooth ground of the bluetooth connection Location.
In practice, different communication connection modes possess different address informations, and confidence is matched somebody with somebody for different WI-FI Breath, configuration file may need to be adjusted accordingly on form and storage mode.If additionally, STA and AP supports many simultaneously Junction service connected mode is planted, then the STA can select to generate multiple configuration files;As another embodiment scheme, base Consideration in terms of memory space is saved, the STA can also select the specific sequence of the basis in a configuration file and divide Rule-like preserves various WI-FI configuration informations.
Memory module 70, for the address information and the WI-FI configuration informations associated storage is literary to the configuration Part.
In the present embodiment, memory module 70 treats down the address information and the WI-FI configuration informations associated storage After once the STA and AP sets up communication connection, STA can be by described in the communication connection address information quick obtaining The configuration information of AP, WI-FI connection speeds are thus improved.
The client that the present embodiment is proposed, by when the WI-FI configuration informations of the AP are received, the second acquisition module 60 address informations for obtaining the communication connections, then memory module 70 is by the address information and the WI-FI configuration informations , to the configuration file, and then after the follow-up STA and AP sets up communication connection, STA can be by described logical for associated storage The configuration information of AP described in letter link address information quick obtaining, further increases the efficiency that WI-FI connections are set up, and improves Consumer's Experience.
Based on above-described embodiment, the 5th embodiment of client of the present invention is proposed, reference picture 9, in the present embodiment, the visitor Family end also includes:
4th sending module 80, for not monitoring that the data based on WI-FI connections are led within a preset time interval During letter, transmission WI-FI disconnects request to the AP, and for the AP, when the WI-FI disconnections request is received, disconnection is described WI-FI is connected.
In the present embodiment, when the WI-FI connections between STA and AP are set up, STA real-time monitorings improve WI-FI connections Data communication, do not monitor within a preset time interval based on the WI-FI connection data communication when, the 4th sending module 80 send WI-FI disconnects request to the AP, and AP disconnects and the WI-FI between STA connects when WI-FI disconnection requests are received Connect.
Wherein, prefixed time interval can reasonably be set according to demand, for example, prefixed time interval is 5 minutes.
Closedown module 90, for when the WI-FI is connected and disconnected, closing WI-FI functions.
When WI-FI is connected and disconnected, closedown module 90, to reduce the power consumption of STA, improves the standby ability of STA.Specifically Ground, is connected in WI-FI and disconnects, and to STA, STA is closed the information that the transmittable WI-FI connections of AP have disconnected when the information is received WI-FI functions.
Below by taking concrete scene as an example, the flow of the present embodiment WI-FI connection methods is elaborated.
Specifically, reference picture 10, Figure 10 is the interaction flow schematic diagram in further embodiment of this invention between STA and AP; Wherein, by taking the mobile phone in Fig. 3 as an example, and Figure 10 is combined, idiographic flow is as follows:
When the data communication based on WI-FI connections is not monitored within a preset time interval, mobile phone passes through Bluetooth channels Send WI-FI and disconnect request;
Router is receiving WI-FI disconnection requests, disconnects WI-FI connections, and feed back response by Bluetooth channels;
Mobile phone closes WI-FI functions when the response is received.
The client that the present embodiment is proposed, by not monitoring what is connected based on the WI-FI within a preset time interval During data communication, the 4th sending module 80 sends WI-FI and disconnects request to the AP, so that the AP is receiving the WI- FI disconnects the WI-FI connections when disconnecting request, then when the WI-FI is connected and disconnected, closedown module 90 closes WI-FI work( Can, and then WI-FI can be automatically disconnected when STA and AP are in the absence of data communication that the WI-FI is connected is based in a long time Connection simultaneously closes off the WI-FI functions of STA, and then can reduce the power consumption of STA, improves the standby ability of STA, further improves Consumer's Experience.
The present invention further provides a kind of WI-FI connection methods.Reference picture 9, Fig. 9 is WI-FI connection methods of the present invention the The schematic flow sheet of one embodiment.In the present embodiment, the WI-FI connection methods include:
Step S10, when communication connection is set up between STA and access point AP and a WI-FI connection requests are received, Determine to whether there is the corresponding WI-FI configuration informations of the AP in configuration file, wherein, the communication connection includes Bluetooth communication One in connection, infrared communication connection and radio frequency ID communication connections;
Wherein, the communication connection between STA and access point AP includes Bluetooth communication connection, infrared communication connection and RFID One in (Radio Frequency Identification, radio frequency identification) communication connection.Certainly, communication connection can be with Including other junction service connected modes such as super-broadband tech (UWB) communication connection, ZigBee communication connections.In practice, One or more junction service connected mode in addition to WI-FI can be carried on one STA or AP, is supported simultaneously in STA and AP In the case of various communication connection modes, communication connection can refer in various communication connection modes any one or it is many Kind, specifically, such as STA and AP support that bluetooth connection and RFID communication are connected, and in this case, STA and AP can be selected Select and set up the communication connection using bluetooth, it is also possible to which Selection utilization RFID sets up communication connection.
Additionally, a WI-FI connection requests can manually be triggered by user on STA, it is also possible to having number by the STA Triggered automatically according to when needing to be sent to the AP, or triggered automatically when there are data to need to be sent to the STA by the AP. For example, when the communication connection between STA and AP is set up, user when needing to access network, if the WI-FI functions of STA are not opened Dynamic, then user triggers a WI-FI connection requests when the WI-FI functions of STA are started, if the WI-FI functions of STA have been opened Dynamic, then when the option at the WI-FI interfaces for passing through STA in user selects to set up WI-FI connections, triggering WI-FI connections please Ask;Or, when the communication connection between STA and AP is set up, if STA there is currently the data for needing to be sent to AP, to carry The efficiency of data transfer high, can directly trigger a WI-FI connection requests;Or, the communication connection between STA and AP It is the efficiency for improving data transfer if AP ends have detected data when needing to be sent to STA when setting up, can be by above-mentioned communication Connect and send a WI-FI connection requests to STA.
The AP corresponding WI-FI configuration informations information such as including the password corresponding to SSID, BSSID and the SSID.As A kind of preferred embodiment scheme, the corresponding WI-FI configuration informations of AP described in this embodiment scheme include SSID and encrypted message. When STA before AP with setting up WI-FI and being connected, STA is by the corresponding WI-FI configuration informations storages of the AP in configuration file.
In the present embodiment, when communication connection is set up between STA and AP and a WI-FI connection requests are received, really Determine to whether there is the corresponding WI-FI configuration informations of the AP in configuration file, in order to quickly set up the WI- between STA and AP FI is connected.
Step S20, when not existing the WI-FI configuration informations in the configuration file, by the communication link sending and receiving Acquisition request to the AP is sent, asks to send institute to the STA by described communication connection so that the AP is based on described acquisition State the corresponding WI-FI configuration informations of AP;
Wherein, the reason for not existing WI-FI configuration informations in configuration file mainly has following several:Do not have in configuration file WI-FI configuration informations, specifically, such as STA never set up WI-FI and was connected with AP, did not had before configuration file when this Preserved the corresponding WI-FI configuration informations of the AP;Or there are the corresponding WI-FI of the AP to match somebody with somebody confidence in configuration file originally Breath, but during subsequent use because it is various the reason for cause the corresponding WI-FI configuration informations of the AP clear Remove, for example, User Format memory and cause configuration file to be lost, or user deletes described configuration file etc. manually.
In the present embodiment, when not existing the WI-FI configuration informations in the configuration file, by the communication link Acquisition request to the AP is received and sent, when acquisition request is received, AP is based on acquisition request and searches the corresponding WI- of the AP FI configuration informations, and feed back the WI-FI configuration informations.Wherein, the corresponding WI-FI configuration informations of AP can be stored logical with the AP In the storage medium of letter connection, or in the local data base communicated to connect with the AP, AP can be according to acquisition request in storage The WI-FI configuration informations are searched in medium or local data base, when the WI-FI configuration informations are found, AP is by above-mentioned logical Letter connection sends to STA the WI-FI configuration informations.
Further, in one embodiment, STA deposits the WI-FI configuration informations when WI-FI configuration informations are received It is to be distinguished with other WI-FI configuration informations certainly in storage to configuration file, can be by WI-FI configuration informations and above-mentioned communication link Connect corresponding identification information and be associated storage, for example, being Bluetooth communication connection, the indigo plant of the associated storage AP in the communication connection In tooth identification information and WI-FI configuration informations to the configuration file.
Step S30, when the WI-FI configuration informations are received, based on the WI-FI configuration informations by the communication The WI-FI connection requests of linkup transmit the 2nd set up described to the AP so that the AP is based on the 2nd WI-FI connection requests WI-FI connections between STA and the AP.
In the present embodiment, when WI-FI configuration informations are received, based on the WI-FI configuration informations by described logical Letter the WI-FI connection requests of linkup transmit the 2nd to AP, AP when the 2nd WI-FI connection requests are received, based on the 2nd WI- The WI-FI connections that FI connection requests are set up between STA and the AP, specifically, the 2nd WI-FI connection requests carry AP correspondences SSID and password, AP parses the 2nd WI-FI connection requests and corresponded to when the 2nd WI-FI connection requests are received SSID and password, parsing obtain SSID and password and the AP itself SSID and consistent password when, set up the STA and WI-FI connections between the AP, and then enable STA by the corresponding WI- of communication connection between STA and AP acquisition AP FI configuration informations, and then the automatic WI-FI connections set up between STA and the AP, it is not necessary to which it is close that user is manually entered WI-FI Code, simplifies WI-FI establishment of connections process between STA and the AP, improves Consumer's Experience.
Wherein, the WI-FI functions of STA are likely to be at closed mode in the present embodiment, therefore, receiving the WI-FI During configuration information, if the WI-FI functions of current STA are not actuated, start WI-FI functions, confidence is then matched somebody with somebody based on the WI-FI Breath sends the 2nd WI-FI connection requests to the AP by the communication connection.
Below by taking concrete scene as an example, the flow of the present embodiment WI-FI connection methods is elaborated.
Specifically, reference picture 3 and Fig. 4, wherein, in figure 3, AP is router, and STA is mobile phone or PC, communicates to connect and is Bluetooth, i.e. router, mobile phone and PC are equipped with bluetooth module and WI-FI modules, and Fig. 4 is STA in one embodiment of the invention Interaction flow schematic diagram between AP;Wherein, by taking the mobile phone in Fig. 3 as an example, and Fig. 4 is combined, idiographic flow is as follows:
When the bluetooth module of mobile phone and the bluetooth module of router set up bluetooth connection, if mobile phone receives a WI- FI connection requests, then search the corresponding WI-FI configuration informations of router in configuration file, wherein, bluetooth connection can pass through User sets up manually, or automatic foundation.
When the WI-FI configuration informations of router are not found in configuration file, mobile phone is sent by Bluetooth channels and obtained To router, when acquisition request is received, router sends corresponding WI-FI configuration informations to hand by Bluetooth channels for request Machine, wherein, the WI-FI configuration informations information such as including router corresponding SSID, BSSID and password;
When the above-mentioned WI-FI configuration informations of router transmission are received, mobile phone sends the 2nd WI-FI by Bluetooth channels The WI- that connection request is set up between mobile phone and router to router, router according to the 2nd WI-FI connection requests for receiving FI is connected;
When WI-FI connections are set up, mobile phone storage WI-FI configuration informations.
The WI-FI connection methods that the present embodiment is proposed, during by setting up communication connection between STA and AP, it is determined that configuration Whether there is the corresponding WI-FI configuration informations of the AP in file, then match somebody with somebody in the absence of the WI-FI in the configuration file When confidence ceases and receives a WI-FI connection requests, sent by the communication connection and obtain request to the AP, for The AP is based on described acquisition to be asked to send the corresponding WI-FI configuration informations of the AP to the STA by described communication connection, It is then based on the WI-FI configuration informations and the 2nd WI-FI connection requests is sent to the AP by the communication connection, for institute State AP and be based on the WI-FI connections that the 2nd WI-FI connection requests are set up between the STA and the AP, STA can pass through Communication connection between STA and AP obtains WI-FI configuration informations, and then the automatic WI-FI set up between STA and the AP connects Connect, it is not necessary to which user is manually entered WI-FI passwords, simplify WI-FI establishment of connections process between STA and the AP, improve Consumer's Experience.
Based on first embodiment, the second embodiment of WI-FI connection methods of the present invention, reference picture 10, in this implementation are proposed In example, after step S30, the WI-FI connection methods also include:
Step S40, when there is the WI-FI configuration informations in the configuration file, obtains from the configuration file The WI-FI configuration informations;
In practice, the flow for obtaining the WI-FI configuration informations can be configured according to specific hardware condition. As a kind of preferred embodiment scheme, the communication connection of different AP can be marked, then using specific storage method The WI-FI configuration informations of the AP are marked into associated storage with the communication connection of the AP, when foundation between STA and access point AP When communicating to connect and receiving a WI-FI connection requests, can be quick fixed in configuration file according to the identification information of AP Position, the acquisition WI-FI configuration informations.
Step S50, the 3rd WI-FI connection requests are sent extremely based on the WI-FI configuration informations by the communication connection The AP, so that the AP is based on the WI-FI connections that the 3rd WI-FI connection requests are set up between the STA and the AP.
In the present embodiment, when WI-FI configuration informations are got, the 3rd sending module 50 starts the WI-FI work(of STA Can, and the 3rd WI-FI connection requests are sent to the AP by the communication connection based on the WI-FI configuration informations, AP exists When receiving the 3rd WI-FI connection requests, connected based on the WI-FI that the 3rd WI-FI connection requests are set up between STA and the AP Connect.Specifically, the 3rd WI-FI connection requests carry the corresponding SSID of the AP and password, and AP is receiving the 3rd WI-FI companies When connecing request, parse the 3rd WI-FI connection requests and obtain corresponding SSID and password, the SSID that is obtained in parsing and password with When the AP SSID of itself are consistent with password, the WI-FI connections set up between the STA and the AP, and then enable STA Automatic WI-FI functions, and connected by the automatic WI-FI set up between STA and the AP of the communication connection between STA and AP Connect, it is not necessary to which user manually boots WI-FI functions, simplify WI-FI establishment of connections process between STA and the AP, improve Consumer's Experience.
Below by taking concrete scene as an example, the flow of the present embodiment WI-FI connection methods is elaborated.
Specifically, reference picture 6, Fig. 6 is the interaction flow schematic diagram in another embodiment of the present invention between STA and AP;Its In, by taking the mobile phone in Fig. 3 as an example, and Fig. 6 being combined, idiographic flow is as follows:
Mobile phone put file in there is WI-FI configuration informations when, STA obtained from the configuration file WI-FI configuration Information;
Mobile phone sends the 2nd WI-FI connection requests to router by Bluetooth channels, and router is according to second for receiving The WI-FI connections that WI-FI connection requests are set up between mobile phone and router.
The WI-FI connection methods that the present embodiment is proposed, by there is the WI-FI configuration informations in the configuration file When, acquisition module obtains the WI-FI configuration informations from the configuration file, then starts WI-FI functions, and based on described WI-FI configuration informations send the 3rd WI-FI connection requests to the AP by the communication connection, so that the AP is based on described The WI-FI connections that 3rd WI-FI connection requests are set up between the STA and the AP, STA can be based in configuration file WI-FI configuration information automatic WI-FI functions, and STA is set up with the AP by the communication connection between STA and AP automatically Between WI-FI connections, it is not necessary to user manually boots WI-FI functions, simplifies the connection of WI-FI between STA and the AP Process is set up, Consumer's Experience is further increased.
Based on first embodiment, the 3rd embodiment of WI-FI connection methods of the present invention, reference picture 11, in this implementation are proposed In example, step S20 includes:
Step S21, does not exist the WI-FI configuration informations in the configuration file and receives the AP by described When communicating to connect the corresponding identification informations of the AP for sending, determine whether the AP supports WI-FI according to the identification information Function;
Wherein, (Bluetooth Low Energy, low-power consumption bluetooth), AP couples when communication connection is communicated to connect for BLE The identification information answered can be the Beacon frames (beacon) of the AP, and the Beacon frames include the function letter corresponding to the AP Breath, for example, the Beacon frames include that the AP supports the information of WI-FI.In the present embodiment, set up logical between STA and AP During letter connection, STA can send identification information and obtain request to AP, and when identification information acquisition request is received, AP will be marked Know feedback of the information to STA;Or, when setting up communication connection between STA and AP, AP is directly sent to STA the identification information.
In the present embodiment, do not exist the WI-FI configuration informations in the configuration file and receive the AP and lead to When crossing the corresponding identification informations of the AP that the communication connection sends, determining unit 21 is according to the identification information determines Whether AP supports WI-FI functions, specifically, when not existing the WI-FI configuration informations in the configuration file, mark can be transmitted Know information acquisition request to AP, when identification information acquisition request is received, AP is receiving identification information feedback to STA To AP feedback identification information when, determine whether the AP supports WI-FI functions according to the identification information.
Step S22, when the AP supports WI-FI functions, is sent by the communication connection and obtains request to the AP.
In the present embodiment, when it is determined that AP supports WI-FI functions, sent by the communication connection and obtain request to institute AP is stated, when receiving, AP is based on acquisition request and searches the corresponding WI-FI configuration informations of the AP, and feeds back WI-FI configurations Information.Wherein, the corresponding WI-FI configuration informations of AP can be stored in the storage medium communicated to connect with the AP, or with this In the local data base of AP communication connections, AP can search the WI- according to acquisition request in storage medium or local data base FI configuration informations, when the WI-FI configuration informations are found, AP is sent the WI-FI configuration informations by above-mentioned communication connection To STA.
The WI-FI connection methods that the present embodiment is proposed, confidence is matched somebody with somebody by the configuration file in the absence of the WI-FI Breath and when receiving corresponding identification informations of the AP that the AP sent by the communication connection according to the identification information Determine whether the AP supports WI-FI functions, then when the AP supports WI-FI functions, sent by the communication connection Obtain request to the AP so that STA can determine that the AP supports WI-FI functions by the identification information of AP, and then can Avoid not supporting WI-FI functions in AP, request AP sets up WI-FI connections, further increases Consumer's Experience.
Based on first embodiment, the fourth embodiment of WI-FI connection methods of the present invention, reference picture 12, in this implementation are proposed In example, after step S30, the WI-FI connection methods also include:
S60, obtains the address information of the communication connection;
In the present embodiment, when the WI-FI configuration informations are received, the address information of the communication connection is obtained, For example, when communication connection is connected for Bluetooth communication, obtaining the BLEMAC i.e. Bluetooth address of the bluetooth connection.
In practice, different communication connection modes possess different address informations, and confidence is matched somebody with somebody for different WI-FI Breath, configuration file may need to be adjusted accordingly on form and storage mode.If additionally, STA and AP supports many simultaneously Junction service connected mode is planted, then the STA can select to generate multiple configuration files;As another embodiment scheme, base Consideration in terms of memory space is saved, the STA can also select the specific sequence of the basis in a configuration file and divide Rule-like preserves various WI-FI configuration informations.
S70, by the address information and the WI-FI configuration informations associated storage to the configuration file.
In the present embodiment, by the address information and the WI-FI configuration informations associated storage, treat next time described After the STA and AP sets up communication connection, STA can be by the configuration of AP described in the communication connection address information quick obtaining Information, WI-FI connection speeds are thus improved.
The WI-FI connection methods that the present embodiment is proposed, by when the WI-FI configuration informations of the AP are received, obtaining The address information of the communication connection, then matches somebody with somebody the address information and the WI-FI configuration informations associated storage to described File is put, and then after the follow-up STA and AP sets up communication connection, STA can be fast by the communication connection address information Speed obtains the configuration information of the AP, further increases the efficiency that WI-FI connections are set up, and improves Consumer's Experience.
Based on above-described embodiment, the 5th embodiment of WI-FI connection methods of the present invention, reference picture 13, in this implementation are proposed In example, after step S30, the WI-FI connection methods also include:
Step S80, when not monitoring the data communication based on WI-FI connections within a preset time interval, sends WI- FI disconnects request to the AP, so that the AP disconnects the WI-FI connections when the WI-FI disconnections request is received;
In the present embodiment, when the WI-FI connections between STA and AP are set up, STA real-time monitorings improve WI-FI connections Data communication, do not monitor within a preset time interval based on the WI-FI connection data communication when, send WI-FI break Request to the AP is opened, AP disconnects and the WI-FI connections between STA when WI-FI disconnection requests are received.
Wherein, prefixed time interval can reasonably be set according to demand, for example, prefixed time interval is 5 minutes.
Step S90, when the WI-FI is connected and disconnected, closes WI-FI functions.
When WI-FI is connected and disconnected, WI-FI functions are closed, to reduce the power consumption of STA, improve the standby ability of STA.Tool Body ground, is connected in WI-FI and disconnects, and to STA, STA is closed the information that the transmittable WI-FI connections of AP have disconnected when the information is received Close WI-FI functions.
Below by taking concrete scene as an example, the flow of the present embodiment WI-FI connection methods is elaborated.
Specifically, reference picture 10, Figure 10 is the interaction flow schematic diagram in further embodiment of this invention between STA and AP; Wherein, by taking the mobile phone in Fig. 3 as an example, and Figure 10 is combined, idiographic flow is as follows:
When the data communication based on WI-FI connections is not monitored within a preset time interval, mobile phone passes through Bluetooth channels Send WI-FI and disconnect request;
Router is receiving WI-FI disconnection requests, disconnects WI-FI connections, and feed back response by Bluetooth channels;
Mobile phone closes WI-FI functions when the response is received.
The WI-FI connection methods that the present embodiment is proposed, by not monitoring within a preset time interval based on the WI-FI During the data communication of connection, send WI-FI and disconnect request to the AP, for the AP receive that the WI-FI disconnects please The WI-FI connections are disconnected when asking, then when the WI-FI is connected and disconnected, WI-FI functions is closed, and then can be when long When interior STA and AP are in the absence of data communication be connected based on the WI-FI, it is automatic disconnect WI-FI and connect simultaneously close off STA's WI-FI functions, and then the power consumption of STA can be reduced, the standby ability of STA is improved, further increase Consumer's Experience.
The preferred embodiments of the present invention are these are only, the scope of the claims of the invention is not thereby limited, it is every to utilize this hair Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of client, it is characterised in that the client includes:
Determining module, for setting up communication connection between client STA and access point AP and receiving WI-FI connections During request, determine to whether there is the corresponding WI-FI configuration informations of the AP in configuration file, wherein, the communication connection includes One in Bluetooth communication connection, infrared communication connection and radio frequency ID communication connections;
First sending module, during for not existing the WI-FI configuration informations in the configuration file, by the communication link Acquisition request to the AP is received and sent, asks to be sent out to the STA by described communication connection so that the AP is based on described acquisition Send the corresponding WI-FI configuration informations of the AP;
Second sending module, for when the WI-FI configuration informations are received, institute being passed through based on the WI-FI configuration informations State communication connection and send the 2nd WI-FI connection requests to the AP, so that the AP is built based on the 2nd WI-FI connection requests Vertical WI-FI connections between the STA and the AP.
2. client as claimed in claim 1, it is characterised in that the client also includes:
First acquisition module, during for there is the WI-FI configuration informations in the configuration file, from the configuration file Obtain the WI-FI configuration informations;
3rd sending module, for starting WI-FI functions, and based on the WI-FI configuration informations by the communication link sending and receiving Send the 3rd WI-FI connection requests to the AP, for the AP based on the 3rd WI-FI connection requests set up the STA with WI-FI connections between the AP.
3. client as claimed in claim 1, it is characterised in that first sending module includes:
Determining unit, for not existing the WI-FI configuration informations in the configuration file and receiving the AP by institute When stating the corresponding identification informations of the AP that communication connection sends, determine whether the AP supports WI- according to the identification information FI functions;
Transmitting element, for when the AP supports WI-FI functions, being sent by the communication connection and obtaining request to described AP。
4. client as claimed in claim 1, it is characterised in that the client also includes:
Second acquisition module, the address information for obtaining the communication connection;
Memory module, for by the address information and the WI-FI configuration informations associated storage to the configuration file.
5. the client as described in claim any one of 1-4, it is characterised in that the client also includes:
4th sending module, for not monitoring within a preset time interval during the data communication based on WI-FI connections, hair Send WI-FI to disconnect request to the AP, connect so that the AP disconnects the WI-FI when the WI-FI disconnections request is received Connect;
Closedown module, for when the WI-FI is connected and disconnected, closing WI-FI functions.
6. a kind of WI-FI connection methods, it is characterised in that the WI-FI connection methods are comprised the following steps:
When communication connection is set up between client STA and access point AP and a WI-FI connection requests are received, it is determined that matching somebody with somebody Put with the presence or absence of the corresponding WI-FI configuration informations of the AP in file, wherein, the communication connection include Bluetooth communication connect, One during infrared communication is connected and radio frequency ID is communicated to connect;
When not existing the WI-FI configuration informations in the configuration file, sent by the communication connection and obtain request extremely The AP, asks to send the corresponding WI- of the AP to the STA by described communication connection so that the AP is based on described acquisition FI configuration informations;
When the WI-FI configuration informations are received, second is sent by the communication connection based on the WI-FI configuration informations WI-FI connection requests to the AP, so that the AP sets up the STA with the AP based on the 2nd WI-FI connection requests Between WI-FI connection.
7. WI-FI connection methods as claimed in claim 6, it is characterised in that whether there is institute in the determination configuration file After the step of stating AP corresponding WI-FI configuration informations, the WI-FI connection methods also include:
When there is the WI-FI configuration informations in the configuration file, the WI-FI configurations are obtained from the configuration file Information;
3rd WI-FI connection requests are sent to the AP by the communication connection based on the WI-FI configuration informations, for institute State AP and be based on the WI-FI connections that the 3rd WI-FI connection requests are set up between the STA and the AP.
8. WI-FI connection methods as claimed in claim 6, it is characterised in that described not exist institute in the configuration file When stating WI-FI configuration informations, sending the step of obtaining request to the AP by the communication connection includes:
Do not exist the WI-FI configuration informations in the configuration file and receive the AP and sent by the communication connection The AP corresponding identification informations when, determine whether the AP supports WI-FI functions according to the identification information;
When the AP supports WI-FI functions, sent by the communication connection and obtain request to the AP.
9. WI-FI connection methods as claimed in claim 6, it is characterised in that described to be passed through based on the WI-FI configuration informations The communication connection sends the 2nd WI-FI connection requests to after the step of the AP, and the WI-FI connection methods also include:
Obtain the address information of the communication connection;
By the address information and the WI-FI configuration informations associated storage to the configuration file.
10. the WI-FI connection methods as described in claim any one of 6-9, it is characterised in that described to be matched somebody with somebody based on the WI-FI Confidence is ceased by the 2nd WI-FI connection requests of the communication connection transmission to after the step of the AP, the WI-FI connection sides Method also includes:
When not monitoring the data communication based on WI-FI connections within a preset time interval, send WI-FI and disconnect request extremely The AP, so that the AP disconnects the WI-FI connections when the WI-FI disconnections request is received;
When the WI-FI is connected and disconnected, WI-FI functions are closed.
CN201710286551.2A 2017-04-25 2017-04-25 A kind of client and WI FI connection methods Pending CN106912085A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710286551.2A CN106912085A (en) 2017-04-25 2017-04-25 A kind of client and WI FI connection methods

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710286551.2A CN106912085A (en) 2017-04-25 2017-04-25 A kind of client and WI FI connection methods

Publications (1)

Publication Number Publication Date
CN106912085A true CN106912085A (en) 2017-06-30

Family

ID=59209854

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710286551.2A Pending CN106912085A (en) 2017-04-25 2017-04-25 A kind of client and WI FI connection methods

Country Status (1)

Country Link
CN (1) CN106912085A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108174372A (en) * 2017-12-22 2018-06-15 珠海市君天电子科技有限公司 Method for network access, device, electronic equipment and storage medium
CN108462953A (en) * 2018-03-30 2018-08-28 北京金山安全软件有限公司 File transmission method and device, electronic equipment and storage medium
CN109041033A (en) * 2018-09-14 2018-12-18 杭州若奇技术有限公司 Smart machine distribution method and system based on RFID
CN109150634A (en) * 2018-10-25 2019-01-04 新华三技术有限公司 A kind of access point configuration method and device
WO2022094852A1 (en) * 2020-11-05 2022-05-12 深圳市大疆创新科技有限公司 Device connection method and apparatus, and hardware device and computer-readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103096506A (en) * 2013-01-07 2013-05-08 东莞宇龙通信科技有限公司 Terminal devices, wireless fidelity (WIFI) connection method and system
CN104113895A (en) * 2014-07-21 2014-10-22 上海庆科信息技术有限公司 Wi-Fi (wireless fidelity) network connecting method and device
CN104302014A (en) * 2014-09-11 2015-01-21 小米科技有限责任公司 Method and device for connecting terminal with Wi-Fi hotspot
US20150139025A1 (en) * 2013-11-15 2015-05-21 Universal Global Scientific Industrial Co., Ltd. Wireless Network Configuration Method and System for Smart Appliance
CN105636161A (en) * 2016-01-25 2016-06-01 中科创达软件股份有限公司 Wireless network access method and device, communication terminal and wireless network access point

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103096506A (en) * 2013-01-07 2013-05-08 东莞宇龙通信科技有限公司 Terminal devices, wireless fidelity (WIFI) connection method and system
US20150139025A1 (en) * 2013-11-15 2015-05-21 Universal Global Scientific Industrial Co., Ltd. Wireless Network Configuration Method and System for Smart Appliance
CN104113895A (en) * 2014-07-21 2014-10-22 上海庆科信息技术有限公司 Wi-Fi (wireless fidelity) network connecting method and device
CN104302014A (en) * 2014-09-11 2015-01-21 小米科技有限责任公司 Method and device for connecting terminal with Wi-Fi hotspot
CN105636161A (en) * 2016-01-25 2016-06-01 中科创达软件股份有限公司 Wireless network access method and device, communication terminal and wireless network access point

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108174372A (en) * 2017-12-22 2018-06-15 珠海市君天电子科技有限公司 Method for network access, device, electronic equipment and storage medium
CN108462953A (en) * 2018-03-30 2018-08-28 北京金山安全软件有限公司 File transmission method and device, electronic equipment and storage medium
CN108462953B (en) * 2018-03-30 2021-09-21 北京金山安全软件有限公司 File transmission method and device, electronic equipment and storage medium
CN109041033A (en) * 2018-09-14 2018-12-18 杭州若奇技术有限公司 Smart machine distribution method and system based on RFID
CN109150634A (en) * 2018-10-25 2019-01-04 新华三技术有限公司 A kind of access point configuration method and device
CN109150634B (en) * 2018-10-25 2022-02-25 新华三技术有限公司 Access point configuration method and device
WO2022094852A1 (en) * 2020-11-05 2022-05-12 深圳市大疆创新科技有限公司 Device connection method and apparatus, and hardware device and computer-readable storage medium
CN114710978A (en) * 2020-11-05 2022-07-05 深圳市大疆创新科技有限公司 Device connection method, device, hardware device and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN106912085A (en) A kind of client and WI FI connection methods
CN104765994A (en) User identity recognition method and device
CN104821068A (en) Mobile terminal real-time antitheft alarm method and apparatus
CN105101052A (en) Method, system and mobile terminal for transferring SIM card
CN106534565A (en) Television control device, mobile terminal and television control method
CN104766002A (en) Method and device for unlocking
CN104836884A (en) Standby unlocking method of mobile terminal, and mobile terminal
CN107104970A (en) A kind of regular and synchronized processing method, system, rule server and gray scale server
CN105208211A (en) Privacy protection device and method and mobile terminal
CN106375840A (en) Screen projection device, mobile terminal and screen projection connection method
CN104917899A (en) Call prompting method and device
CN105764085A (en) Abnormal electricity consumption detection method and terminal
CN106790264A (en) Authentication system and method, the server for authentication and checking equipment
CN104883685A (en) Network access method and device
CN105138880A (en) Processing apparatus and method for terminal operation data
CN104796860A (en) Method and device for positioning terminals
CN106406733A (en) Anti-mistaken-touch terminal and method
CN106791195A (en) A kind of operation processing method and device
CN106412878A (en) Device and method for activating subscriber identity module card
CN106488035A (en) A kind of mobile terminal and control method
CN106506364A (en) A kind of cut-in method, client and routing server
CN106485163A (en) Control method and control device that mobile terminal data storehouse accesses
CN106657950A (en) Projection device management device, method and projection data sharing device
CN105282155A (en) Authority control method, device and system for interaction among terminals
CN105120091A (en) Mobile terminal and maloperation prompting apparatus and method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170630

RJ01 Rejection of invention patent application after publication