Movatterモバイル変換


[0]ホーム

URL:


CN105744598B - A wireless local area network connection method and device - Google Patents

A wireless local area network connection method and device
Download PDF

Info

Publication number
CN105744598B
CN105744598BCN201510282994.5ACN201510282994ACN105744598BCN 105744598 BCN105744598 BCN 105744598BCN 201510282994 ACN201510282994 ACN 201510282994ACN 105744598 BCN105744598 BCN 105744598B
Authority
CN
China
Prior art keywords
local area
area network
wireless local
wireless lan
scanning result
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.)
Active
Application number
CN201510282994.5A
Other languages
Chinese (zh)
Other versions
CN105744598A (en
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co LtdfiledCriticalVivo Mobile Communication Co Ltd
Priority to CN201510282994.5ApriorityCriticalpatent/CN105744598B/en
Publication of CN105744598ApublicationCriticalpatent/CN105744598A/en
Application grantedgrantedCritical
Publication of CN105744598BpublicationCriticalpatent/CN105744598B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

The embodiment of the invention provides a kind of connection method of Wireless LAN and devices, this method comprises: obtaining the scanning result of Wireless LAN when the connection identifier for detecting the Wireless LAN in operation panel is triggered;Judge whether the scanning result matches with the information for the Wireless LAN formerly connecting;When mismatching, the set interface of Wireless LAN is loaded, to show at least partly scanning result;Wherein, the scanning result of display is identified including the first Wireless LAN;When receiving the first Wireless LAN password for first Wireless LAN mark, first Wireless LAN is accessed using the first Wireless LAN password and identifies corresponding Wireless LAN.The embodiment of the present invention reduces the operation of opening system set interface, the set interface for selecting Wireless LAN, improves the simplicity of operation, improves the speed of access Wireless LAN.

Description

A kind of connection method of Wireless LAN and device
Technical field
The present invention relates to fields of communication technology, and the connection method and one kind more particularly to a kind of Wireless LAN are wirelessThe attachment device of local area network.
Background technique
Under the historical background of rapid development of information technology, electronic equipment is widely used in the life, study, joy of userThe various aspects such as happy, work.
Most of electronic equipments, especially mobile device are no longer limited in the system of a self-isolation, access at any timeInternet obtains massive information.
There are mainly two types of currently used internetwork connection modes, and one is mobile networks, and one is Wireless LAN(Wireless Local Area Networks, WLAN).
Compared to mobile network, WLAN transmission speed, in terms of all advantageously, so there is WLAN access pointIn available environment, user usually can select to carry out the connection of WLAN, to obtain more smooth online experience and reachThe purpose saved money.
In life, user can not only be at home or in office using private WLAN, also can be in some public arenasThe public WLAN of (such as airport, hotel, subway) use, and the portable characteristics of mobile device, also determine that it is often inIn different network environments, user is frequently necessary to be connected in different wlan networks.
Based on security considerations, most of WLAN are provided with password, and user, which needs to input correct password, to be accessed,Equipment can generally also remember the WLAN that user once connected.For power saving, user would generally be closed when not using WLANIt closes, the used time then to need rapidly to open and connect.
Meet the needs of quickly connecting, be usually to provide a rapid switch, clicks and open WLAN.When electronic equipment existsIn one strange WLAN environment, if user opens WLAN by rapid switch, WLAN can not be also connected, therefore also needIt is introduced into system set interface, then chooses the set interface of WLAN again, password is recently entered and is attached, it is cumbersome, it connectsThe speed for entering WLAN is slow.
Summary of the invention
In view of the above problems, it proposes the embodiment of the present invention and overcomes the above problem or at least partly in order to provide one kindA kind of connection method of the Wireless LAN to solve the above problems and a kind of corresponding attachment device of Wireless LAN.
To solve the above-mentioned problems, the embodiment of the invention discloses a kind of connection methods of Wireless LAN, comprising:
When the connection identifier for detecting the Wireless LAN in operation panel is triggered, Wireless LAN is obtainedScanning result;
Judge whether the scanning result matches with the information for the Wireless LAN formerly connecting;
When mismatching, the set interface of Wireless LAN is loaded, to show at least partly scanning result;Wherein, it showsThe scanning result shown is identified including the first Wireless LAN;
When receiving the first Wireless LAN password for first Wireless LAN mark, using describedFirst Wireless LAN password accesses first Wireless LAN and identifies corresponding Wireless LAN.
The embodiment of the invention also discloses a kind of attachment devices of Wireless LAN, comprising:
Scanning result obtains module, for detecting that the connection identifier of the Wireless LAN in operation panel is triggeredWhen, obtain the scanning result of Wireless LAN;
Information matches module, for judging whether are the scanning result and the information for the Wireless LAN formerly connectingMatching;
Set interface loading module, for loading the set interface of Wireless LAN when mismatching, to show at leastPartial scan result;Wherein, the scanning result of display is identified including the first Wireless LAN;
First AM access module, for receiving the first WLAN for first Wireless LAN markWhen network password, first Wireless LAN is accessed using the first Wireless LAN password and identifies corresponding wireless officeDomain network.
The embodiment of the present invention includes following advantages:
Scanning result and the information of the Wireless LAN that formerly connect of the embodiment of the present invention in Wireless LANWhen mismatch, the automatic set interface for loading Wireless LAN, to show at least partly scanning result, by receive theOne Wireless LAN password accesses corresponding Wireless LAN, reduces opening system set interface, selection wireless local areaThe operation of the set interface of network improves the simplicity of operation, improves the speed of access Wireless LAN.
The pre-loaded Wireless LAN driving of the embodiment of the present invention carries out at initialization Wireless LAN componentReason reduces the load operation when starting Wireless LAN and initialization operation, further improves access WLANThe speed of network.
The previously-scanned Wireless LAN of the embodiment of the present invention reduces the scan operation when starting Wireless LAN,Further improve the speed of access Wireless LAN.
Detailed description of the invention
Fig. 1 is a kind of step flow chart of the connection method embodiment 1 of Wireless LAN of the invention;
Fig. 2 is a kind of exemplary diagram of operation panel of the invention;
Fig. 3 is a kind of step flow chart of the connection method embodiment 2 of Wireless LAN of the invention;
Fig. 4 is a kind of structural block diagram of the attachment device embodiment of Wireless LAN of the invention.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific realApplying mode, the present invention is described in further detail.
Referring to Fig.1, a kind of step flow chart of the connection method embodiment 1 of Wireless LAN of the invention is shown,It can specifically include following steps:
Step 101, when the connection identifier for detecting the Wireless LAN in operation panel is triggered, wireless office is obtainedThe scanning result of domain network;
It should be noted that the embodiment of the present invention can be applied in mobile device, for example, mobile phone, tablet computer, intelligenceWrist-watch etc., the embodiments of the present invention are not limited thereto.
In a mobile device, usually provide one can quickly starting operation panel, such as in the arbitrary interface of mobile deviceDrop-down expansion or pull-up expansion.
In the operation panel, it is integrated with the shortcut of a variety of common functions, such as WLAN, flashlight, vibration, dataNetwork etc. when the user clicks when corresponding shortcut, can directly apply the function, without opening the function in mobile deviceIn respective interface started, be convenient for users to operate.
It takes the mobile phone as an example, as shown in Fig. 2, operation panel 201 can be unfolded by way of pull-up in mobile phone 200,The shortcut 202 (i.e. the connection identifier of Wireless LAN) of WLAN is contained in the operation panel 201, when the user clicksWhen the shortcut 202 of WLAN, mobile phone 200 can carry out the connection of WLAN.
In the concrete realization, mobile device can obtain the scanning result of WLAN, the scanning knot when carrying out the connection of WLANFruit can formerly scan the scanning result of WLAN near adjacent area for mobile device, or mobile device Current Scan phaseThe scanning result of WLAN near neighbouring region, the embodiments of the present invention are not limited thereto.
Wherein, which may include judging that the first Wireless LAN identifies (such as SSID (Service SetIdentifier, service set), BSSID (a kind of application of Ad-hoc (point-to-point) LAN) etc.), the first cipher mode is (such asWEP (802.11 Wired Equivalent Privacy), WPA (Wi-Fi Protected Access) etc.), signal strength,Frequency etc..
Step 102, judge whether the scanning result matches with the information for the Wireless LAN formerly connecting;
In practical applications, mobile device can have its relevant information in configuration file, tool to the WLAN connectedBody may include that the second Wireless LAN identifies (such as SSID, BSSID), the second cipher mode (such as WEP, WPA), and secondWireless LAN password etc..
The embodiment of the present invention obtains the Wireless LAN formerly connected by the configuration file of calling mobile deviceInformation is compared with the scanning result of WLAN.
In one preferred embodiment of the invention, step 102 may include following sub-step:
The first Wireless LAN mark and first cipher mode are judged, with second WLANWhether network mark and the second cipher mode are identical;
If so, confirm the information matches of the scanning result with the Wireless LAN formerly connecting,
If it is not, then confirming that the scanning result is mismatched with the information for the Wireless LAN formerly connecting.
In embodiments of the present invention, the scanning result of WLAN and the information for the WLAN formerly connecting can be compared, ifWireless LAN having the same mark (such as SSID) and cipher mode, if so, think the two WLAN be it is identical, it is noThen, it is believed that the two WLAN are not identical.
Step 103, when mismatching, the set interface of Wireless LAN is loaded, to show at least partly scanning result;
If the scanning result of WLAN is mismatched with the information for the WLAN formerly connecting, it can indicate that mobile device is firstThe not connected WLAN scanned, alternatively, the information of storage is no longer valid (such as SSID changes, information is deleted), it can not be directWLAN is accessed, under normal circumstances, user needs the control being arranged by system to enter system set interface, is then arranged in systemThe set interface of WLAN is found at interface, then carries out the selection and setting of WLAN, to access WLAN.
In embodiments of the present invention, the set interface that can load Wireless LAN automatically adds in the set interfaceIt is loaded onto small part scanning result and shows user, wherein may include that the first Wireless LAN mark (such as SSID), signal are strongDegree etc..
It should be noted that the set interface can be to be configured the interface of WLAN in mobile device, not in homologous rayWith different call methods.
For example, can be sent in the mobile device for being configured with Android (Android) system "The Intent of android.settings.WIFI_SETTINGS " (the set interface call request of WLAN) (is intended to, for solvingCommunication between every component of Android application) deactivation WLAN set interface, example is specific as follows:
Intent intent=new Intent (" android.settings.WIFI_SETTINGS ");
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
mContext.startActivity(intent);
Step 104, when receiving the first Wireless LAN password for first Wireless LAN mark,First Wireless LAN is accessed using the first Wireless LAN password and identifies corresponding Wireless LAN.
In the set interface of WLAN, user can be for the WLAN that some is scanned (with the first Wireless LAN markKnow characterization), the first Wireless LAN password is inputted, then mobile device can be accessed using the first Wireless LAN passwordThe WLAN.
By taking android system as an example, the process for accessing WLAN be can be such that
Connection request part
The connect function of one .Settings responds connection, updates network and saves configuration, updates what setting currently selectedHighest priority, and save.Then other networks are made to should not be used to be attached by enableNetwork.Finally callThe network that the reconnect functional link of WifiManager currently selects.
The reconnect function of two .WifiManager passes through the Binder mechanism of AIDL, calls WifiService'sReconnect function
Then three, can call the reconnectCommand function of WifiStateTracker, pass through JNI (android_Net_wifi_Wifi android_net_wifi_reconnectCommand function) is sent to WPA_WPASUPPLICANTRECONNECT order.
Four .android_net_wifi_Wifi are adjusted by doCommand (command name, response buffering, response buffer size)Order is sent with the wifi_command function in wifi.c.
Five, send bind command to control channel finally by the wpa_ctrl_request function of wpa_ctrl.
Return to requested part
Six, WPA_SUPPLICANT after connection is upper can send successful connection order to control channel.Wifi.c'sWifi_wait_for_event function obstruction calls and returns to the character string (CONNECTED) of this order.
Then WifiMonitor can be executed to handle this event seven, and WifiMonitor is recalledThe notifyStateChange of WifiStateTracker, WifiStateTracker then then can send EVENT_ toward itselfDHCP_START message goes to obtain IP address to start DHCP, then broadcasts NETWORK_STATE_CHANGED_ACTION and disappearsBreath, is finally responded by WifiSettings class, changes state and interface information.
Wherein, the function of connect function can be such that
1.updateNetwork:updateNetwork (config) can be by the AP configuration information information of current selection connectionTransmitting is entered, and configuration information has (network ID etc.).Network configuration is added again if network ID is -1, then to wpa_Supplicant transmission SET_NETWORK order (some other relevant information is arranged by this network ID, SSID is set,Password etc.) directly execution later step sends SET_NETWORK order if network configuration is not -1.
2.saveNetwork: supplicant is told to save current network and configure and update list.SaveNetwork meetingIt calls the saveConfiguration of WifiService to send SAVE_CONFIG order to wpa_supplicant to save currentlyNetwork configuration information retransmits RECONFIGURE order to wpa_supplicant and obtains configuration if returning to falseInformation, if after obtaining information success, it can mono- NETWORK_IDS_CHANGED_ACTION event of IntentWifiSettings, which can be registered, to be received this time and updates list.
3.enableNetwork function obtains interface name to system and makes the interface effective.Due to front transferDisableOthers be true then to wpa_supplicant send SELECT_NETWORK (if transmitting be false if send outSend ENABLE_NETWORK order),
4.reconnect function: connection AP.
Scanning result and the information of the Wireless LAN that formerly connect of the embodiment of the present invention in Wireless LANWhen mismatch, the automatic set interface for loading Wireless LAN, to show at least partly scanning result, by receive theOne Wireless LAN password accesses corresponding Wireless LAN, reduces opening system set interface, selection wireless local areaThe operation of the set interface of network improves the simplicity of operation, improves the speed of access Wireless LAN.
In one preferred embodiment of the invention, this method can also include the following steps:
Upon a match, the second Wireless LAN mark is accessed using the second Wireless LAN password to correspond toWireless LAN.
If the information matches of the scanning result of WLAN and the WLAN formerly connecting, it can indicate that mobile device formerly connectsThe WLAN scanned is taken over, and, the information of storage is effective, and the WLAN that can be directly used in configuration file is (wireless with secondLocal area network mark characterization) the second Wireless LAN password access the WLAN.
It should be noted that if the WLAN of information matches is two or more, then it can be according to preset selecting partyFormula (such as connection signal is most strong) is attached, and the embodiments of the present invention are not limited thereto.
By taking android system as an example, the process for accessing WLAN be can be such that
It is selected from scanning result by its selection mechanism (for example, strongest AP of selection signal etc.) in wpa_supplicantOne AP is attached, can be by connection state reporting after wpa_supplicant connection AP, and WifiMonitor receives state and changesWifiStateMachine is transmitted to after the message of change, then WifiStateMachine sends broadcast notice APP.
Referring to Fig. 3, a kind of step flow chart of the connection method embodiment 2 of Wireless LAN of the invention is shown,It can specifically include following steps:
Step 301, when meeting preset loading environment, load Wireless LAN driving;
Using the embodiment of the present invention, the loading environment of WLAN driving can be preset, meets the loading environment in judgementWhen, the driving of pre-loaded WLAN.
Meaning of the embodiment of the present invention " preparatory " can be relative to normal load (i.e. the connection of user's triggering starting WLAN)For.
Wherein, which at least may include one or more of:
1, system starts and does not access Wireless LAN;
In this example, by taking android system as an example, operating system during startup, will start System_serverThe process of (system service) starts WifiService (Wi-Fi service) in System_server, and createsThe state machine of WifiController (Wi-Fi controller) reads a data in the constructed fuction of WifiControllerThe value in library, the value can record the switch state of WLAN in real time, judge whether Wi-Fi (i.e. WLAN) opens (access), if connecingEnter, then can load WLAN driving.
2, Wireless LAN driving is closed.
In this example, by taking android system as an example, WLAN can issue the broadcast of WLAN closing after closing, at this time WLANComponent thoroughly closes power down, this example is when receiving the broadcast of WLAN closing, load WLAN driving.
Certainly, above-mentioned loading environment is intended only as example, in implementing the embodiments of the present invention, can set according to the actual situationOther loading environments are set, the embodiments of the present invention are not limited thereto.In addition, other than above-mentioned loading environment, art technologyPersonnel can also use other loading environments according to actual needs, and the embodiment of the present invention is also without restriction to this.
It, can be with linux kernel modular form dynamically load by taking android system as an example when loading WLAN drivingThe executable code that WLAN bottom function is realized is dispatched by operating system and is executed, and is worked to driving chip and according to nothingLine LAN protocol is interacted and is handled, with the co-ordination of linux kernel protocol stack to transmitting/receiving wireless LAN data packet,It is interacted simultaneously with Block Mid and state feedback to graphic user interface (Graphical User Interface, GUI).
Step 302, initialization process is carried out to Wireless LAN component.
It should be noted that Wireless LAN component is physical hardware (chip), such as Wi-Fi component.
Mobile device insertion wlan component can directly utilize wireless technology (such as Wi-Fi) to access WLAN.
To the initialization process that wlan component carries out, it can specifically refer to the relevant variable of initialization WLAN, parameter etc..
In embodiments of the present invention, load WLAN driving, initializes wlan component, and mobile device can be made to enter and at any time may be usedWhen scan pattern, it is to close, but wlan component is in the state of work that user, which looks at WLAN, can directly scan surroundingWlan network.
The pre-loaded Wireless LAN driving of the embodiment of the present invention carries out at initialization Wireless LAN componentReason reduces the load operation when starting Wireless LAN and initialization operation, further improves access WLANThe speed of network.
Step 303, when detecting operation panel load, judge whether to have accessed Wireless LAN;If it is not, then executingStep 304;
Step 304, it is driven by Wireless LAN and calls Wireless LAN component scans Wireless LAN, to obtainObtain scanning result.
Step 305, when detecting that operation panel is closed, stop Wlan scanning network.
Due to the prompt operation of operation panel, function needed for user is accustomed to the starting of opening operation panel, including connecingEnter WLAN.
When listening to prompt operation panel opening, a process can star, judge whether WLAN opens by the processIt opens, the wlan network around (such as timing scan) can be scanned if being not turned on, and update the scanning result of caching.
When listening to operation panel closing, can indicate stop scanning temporarily without the demand of starting WLAN.
The previously-scanned Wireless LAN of the embodiment of the present invention reduces the scan operation when starting Wireless LAN,Further improve the speed of access Wireless LAN.
It should be noted that load operation (step 301), initialization operation (step 302) can be in scan operation (steps304) it is executed before, it is possible to reduce in the load operation of Wlan scanning network, initialization operation, improve the speed of scanningDegree further improves the speed of access Wireless LAN.
Step 306, when the connection identifier for detecting the Wireless LAN in operation panel is triggered, wireless office is obtainedThe scanning result of domain network;
Step 307, judge whether the scanning result matches with the information for the Wireless LAN formerly connecting;
Step 308, when mismatching, the set interface of Wireless LAN is loaded, to show at least partly scanning result;Wherein, the scanning result of display is identified including the first Wireless LAN;
Step 309, when receiving the first Wireless LAN password for first Wireless LAN mark,First Wireless LAN is accessed using the first Wireless LAN password and identifies corresponding Wireless LAN.
It should be noted that for simple description, therefore, it is stated as a series of action groups for embodiment of the methodIt closes, but those skilled in the art should understand that, embodiment of that present invention are not limited by the describe sequence of actions, because according toAccording to the embodiment of the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art also shouldKnow, the embodiments described in the specification are all preferred embodiments, and the related movement not necessarily present invention is implementedNecessary to example.
Referring to Fig. 4, a kind of structural block diagram of the attachment device embodiment of Wireless LAN of the invention is shown, specificallyMay include following module:
Scanning result obtains module 401, in the connection identifier quilt for detecting the Wireless LAN in operation panelWhen triggering, the scanning result of Wireless LAN is obtained;
Information matches module 402, for judging the information of the scanning result with the Wireless LAN formerly connectingWhether match;
Set interface loading module 403, for loading the set interface of Wireless LAN when mismatching, with displayAt least partly scanning result;Wherein, the scanning result of display is identified including the first Wireless LAN;
First AM access module 404, for receiving the first wireless office for first Wireless LAN markWhen the network cipher of domain, first Wireless LAN is accessed using the first Wireless LAN password and identifies corresponding nothingLine local area network.
In one preferred embodiment of the invention, the information of the Wireless LAN formerly connected may include secondWireless LAN mark and the second Wireless LAN password;
Described device can also include following module:
Second AM access module, for accessing second nothing using the second Wireless LAN password in matchingLine local area network identifies corresponding Wireless LAN.
It in one preferred embodiment of the invention, may include the first Wireless LAN mark in the scanning resultAnd first cipher mode, the information of the Wireless LAN formerly connected include the second Wireless LAN identify and second plusClose mode;
The information matches module 402 may include following submodule:
Judging submodule, it is and described for judging first Wireless LAN mark and first cipher modeWhether the second Wireless LAN mark and the second cipher mode are identical;If so, the first confirmation submodule is called, if it is not, thenCall the second confirmation submodule;
First confirmation submodule, confirms the information matches of the scanning result with the Wireless LAN formerly connecting;
Second confirmation submodule does not confirm the scanning result and the information for the Wireless LAN formerly connecting notMatch.
In one preferred embodiment of the invention, which can also include following module:
Network insertion judgment module, for judging whether to have accessed WLAN when detecting operation panel loadNetwork;If it is not, then calling scan module;
Scan module calls Wireless LAN component scans WLAN for driving by Wireless LANNetwork, to obtain scanning result.
In one preferred embodiment of the invention, which can also include following module:
Stop scan module, for stopping Wlan scanning network when detecting that operation panel is closed.
In one preferred embodiment of the invention, which can also include following module:
Loading module, for when meeting preset loading environment, load Wireless LAN to be driven;
Initialization module, for carrying out initialization process to Wireless LAN component.
In the concrete realization, the loading environment may include system starting and not access Wireless LAN, and/or,Wireless LAN driving is closed.
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simplePlace illustrates referring to the part of embodiment of the method.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are withThe difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can provide as method, apparatus or calculateMachine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software andThe form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer canWith in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program codeThe form of the computer program product of implementation.
The embodiment of the present invention be referring to according to the method for the embodiment of the present invention, terminal device (system) and computer programThe flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructionsIn each flow and/or block and flowchart and/or the block diagram in process and/or box combination.It can provide theseComputer program instructions are set to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminalsStandby processor is to generate a machine, so that being held by the processor of computer or other programmable data processing terminal devicesCapable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagramThe device of specified function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing terminal devicesIn computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates packetThe manufacture of command device is included, which realizes in one side of one or more flows of the flowchart and/or block diagramThe function of being specified in frame or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, so thatSeries of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thusThe instruction executed on computer or other programmable terminal equipments is provided for realizing in one or more flows of the flowchartAnd/or in one or more blocks of the block diagram specify function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows basesThis creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted asIncluding preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to byOne entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operationBetween there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaningCovering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrapThose elements are included, but also including other elements that are not explicitly listed, or further includes for this process, method, articleOr the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limitedElement, it is not excluded that there is also other identical elements in process, method, article or the terminal device for including the element.
Connection method to a kind of Wireless LAN provided by the present invention and a kind of company of Wireless LAN aboveConnection device is described in detail, and used herein a specific example illustrates the principle and implementation of the invention,The above description of the embodiment is only used to help understand the method for the present invention and its core ideas;Meanwhile for the one of this fieldAs technical staff, according to the thought of the present invention, there will be changes in the specific implementation manner and application range, to sum up instituteIt states, the contents of this specification are not to be construed as limiting the invention.

Claims (11)

Translated fromChinese
1.一种无线局域网络的连接方法,其特征在于,包括:1. A method for connecting a wireless local area network, comprising:当检测到操作面板加载时,判断是否已接入无线局域网络;When it is detected that the operation panel is loaded, it is judged whether it has been connected to the wireless local area network;若否,则通过无线局域网络驱动调用无线局域网络组件扫描无线局域网络,以获得扫描结果;If not, call the wireless local area network component to scan the wireless local area network through the wireless local area network driver to obtain the scanning result;当检测到所述操作面板中的无线局域网络的连接标识被触发时,获取所述无线局域网络的扫描结果;When it is detected that the connection identifier of the wireless local area network in the operation panel is triggered, acquiring the scanning result of the wireless local area network;判断所述扫描结果与在先连接过的无线局域网络的信息是否匹配;Determine whether the scanning result matches the information of the previously connected wireless local area network;当不匹配时,加载无线局域网络的设置界面,以显示至少部分扫描结果;其中,显示的扫描结果包括第一无线局域网络标识;When there is no match, loading the setting interface of the wireless local area network to display at least part of the scan result; wherein the displayed scan result includes the first wireless local area network identifier;当接收到针对所述第一无线局域网络标识的第一无线局域网络密码时,采用所述第一无线局域网络密码接入所述第一无线局域网络标识对应的无线局域网络。When a first wireless local area network password for the first wireless local area network identifier is received, the first wireless local area network password is used to access the wireless local area network corresponding to the first wireless local area network identifier.2.根据权利要求1所述的方法,其特征在于,在先连接过的无线局域网络的信息包括第二无线局域网络标识及第二无线局域网络密码;2. The method according to claim 1, wherein the information of the previously connected wireless local area network includes a second wireless local area network identifier and a second wireless local area network password;所述方法还包括:The method also includes:当匹配时,采用所述第二无线局域网络密码接入所述第二无线局域网络标识对应的无线局域网络。When matching, use the second wireless local area network password to access the wireless local area network corresponding to the second wireless local area network identifier.3.根据权利要求1或2所述的方法,其特征在于,所述扫描结果中包括第一无线局域网络标识及第一加密方式,在先连接过的无线局域网络的信息包括第二无线局域网络标识及第二加密方式;3. The method according to claim 1 or 2, wherein the scanning result includes a first wireless local area network identifier and a first encryption method, and the information of the previously connected wireless local area network includes a second wireless local area network network identification and second encryption method;所述判断所述扫描结果与在先连接过的无线局域网络的信息是否匹配的步骤包括:The step of judging whether the scan result matches the information of the previously connected wireless local area network includes:判断所述第一无线局域网络标识及所述第一加密方式,与,所述第二无线局域网络标识及第二加密方式是否相同;Determine whether the first wireless local area network identifier and the first encryption method are the same as the second wireless local area network identifier and the second encryption method;若是,则确认所述扫描结果与在先连接过的无线局域网络的信息匹配;If so, confirm that the scan result matches the information of the previously connected wireless local area network;若否,则确认所述扫描结果与在先连接过的无线局域网络的信息不匹配。If not, it is confirmed that the scan result does not match the information of the previously connected wireless local area network.4.根据权利要求1所述的方法,其特征在于,还包括:4. The method of claim 1, further comprising:当检测到操作面板关闭时,停止扫描无线局域网络。Stops scanning for wireless LAN networks when it detects that the control panel is closed.5.根据权利要求1或4所述的方法,其特征在于,在所述当检测到操作面板中的无线局域网络的连接标识被触发时,获取无线局域网络的扫描结果的步骤之前,所述方法还包括:5. The method according to claim 1 or 4, wherein, before the step of acquiring the scanning result of the wireless local area network when it is detected that the connection identifier of the wireless local area network in the operation panel is triggered, the Methods also include:当满足预设的加载条件时,加载无线局域网络驱动;When the preset loading conditions are met, load the wireless local area network driver;对无线局域网络组件进行初始化处理。Initialize the wireless local area network components.6.根据权利要求5所述的方法,其特征在于,所述加载条件包括系统启动且未接入无线局域网络,和/或,无线局域网络驱动关闭。6 . The method according to claim 5 , wherein the loading condition comprises that the system is started without access to the wireless local area network, and/or the wireless local area network driver is turned off. 7 .7.一种无线局域网络的连接装置,其特征在于,包括:7. A device for connecting a wireless local area network, comprising:网络接入判断模块,用于在检测到操作面板加载时,判断是否已接入无线局域网络;若否,则调用扫描模块;The network access judgment module is used to judge whether the wireless local area network has been connected when detecting that the operation panel is loaded; if not, call the scanning module;扫描模块,用于通过无线局域网络驱动调用无线局域网络组件扫描无线局域网络,以获得扫描结果;The scanning module is used to call the wireless local area network component to scan the wireless local area network through the wireless local area network driver to obtain the scanning result;扫描结果获取模块,用于在检测到所述操作面板中的无线局域网络的连接标识被触发时,获取所述无线局域网络的扫描结果;a scanning result obtaining module, configured to obtain the scanning result of the wireless local area network when it is detected that the connection identifier of the wireless local area network in the operation panel is triggered;信息匹配模块,用于判断所述扫描结果与在先连接过的无线局域网络的信息是否匹配;an information matching module for judging whether the scanning result matches the information of the previously connected wireless local area network;设置界面加载模块,用于在不匹配时,加载无线局域网络的设置界面,以显示至少部分扫描结果;其中,显示的扫描结果包括第一无线局域网络标识;The setting interface loading module is used to load the setting interface of the wireless local area network to display at least part of the scanning result when there is no match; wherein, the displayed scanning result includes the first wireless local area network identifier;第一接入模块,用于在接收到针对所述第一无线局域网络标识的第一无线局域网络密码时,采用所述第一无线局域网络密码接入所述第一无线局域网络标识对应的无线局域网络。A first access module, configured to use the first wireless local area network password to access the corresponding first wireless local area network identifier when receiving the first wireless local area network password for the first wireless local area network identifier. wireless local area network.8.根据权利要求7所述的装置,其特征在于,在先连接过的无线局域网络的信息包括第二无线局域网络标识及第二无线局域网络密码;8. The device according to claim 7, wherein the information of the previously connected wireless local area network includes a second wireless local area network identifier and a second wireless local area network password;所述装置还包括:The device also includes:第二接入模块,用于在匹配时,采用所述第二无线局域网络密码接入所述第二无线局域网络标识对应的无线局域网络。The second access module is configured to use the second wireless local area network password to access the wireless local area network corresponding to the second wireless local area network identifier when matching.9.根据权利要求7或8所述的装置,其特征在于,所述扫描结果中包括第一无线局域网络标识及第一加密方式,在先连接过的无线局域网络的信息包括第二无线局域网络标识及第二加密方式;9 . The device according to claim 7 , wherein the scanning result includes a first wireless local area network identifier and a first encryption method, and the information of the previously connected wireless local area network includes a second wireless local area network. 10 . network identification and second encryption method;所述信息匹配模块包括:The information matching module includes:判断子模块,用于判断所述第一无线局域网络标识及所述第一加密方式,与,所述第二无线局域网络标识及第二加密方式是否相同;若是,则调用第一确认子模块,若否,则调用第二确认子模块;A judging submodule for judging whether the first wireless local area network identifier and the first encryption method are the same as the second wireless local area network identifier and the second encryption method; if so, calling the first confirmation submodule , if not, call the second confirmation sub-module;第一确认子模块,确认所述扫描结果与在先连接过的无线局域网络的信息匹配;The first confirmation sub-module confirms that the scanning result matches the information of the previously connected wireless local area network;第二确认子模块,确认所述扫描结果与在先连接过的无线局域网络的信息不匹配。The second confirming sub-module confirms that the scanning result does not match the information of the previously connected wireless local area network.10.根据权利要求7所述的装置,其特征在于,还包括:10. The apparatus of claim 7, further comprising:停止扫描模块,用于在检测到操作面板关闭时,停止扫描无线局域网络。The stop scanning module is used to stop scanning the wireless local area network when it is detected that the operation panel is closed.11.根据权利要求7或10所述的装置,其特征在于,还包括:11. The device according to claim 7 or 10, further comprising:加载模块,用于在满足预设的加载条件时,加载无线局域网络驱动;The loading module is used to load the wireless local area network driver when the preset loading conditions are met;初始化模块,用于对无线局域网络组件进行初始化处理。The initialization module is used to initialize the wireless local area network components.
CN201510282994.5A2015-05-272015-05-27 A wireless local area network connection method and deviceActiveCN105744598B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201510282994.5ACN105744598B (en)2015-05-272015-05-27 A wireless local area network connection method and device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201510282994.5ACN105744598B (en)2015-05-272015-05-27 A wireless local area network connection method and device

Publications (2)

Publication NumberPublication Date
CN105744598A CN105744598A (en)2016-07-06
CN105744598Btrue CN105744598B (en)2019-06-04

Family

ID=56295910

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201510282994.5AActiveCN105744598B (en)2015-05-272015-05-27 A wireless local area network connection method and device

Country Status (1)

CountryLink
CN (1)CN105744598B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN107071865B (en)*2016-12-072019-09-06Oppo广东移动通信有限公司Wireless fidelity quick connection method and device
CN106507447A (en)*2016-12-072017-03-15广东欧珀移动通信有限公司 A Wi-Fi hotspot connection method and mobile terminal
CN108093461B (en)*2017-12-142020-07-28上海连尚网络科技有限公司Method for connecting wireless access point
CN108966315B (en)*2018-06-072021-05-07阿里巴巴(中国)有限公司Wireless network acquisition method and device and electronic equipment
CN110972216B (en)*2018-09-302022-04-29华为技术有限公司Communication method and device
CN109587829B (en)*2018-11-162022-01-11海信视像科技股份有限公司Method and device for simultaneously working as site and hotspot by terminal and terminal
CN110891265B (en)*2019-11-262023-01-03Oppo(重庆)智能科技有限公司Wireless connection control method and device, mobile terminal and storage medium
CN115665840B (en)*2022-12-282023-06-09深圳市江元科技(集团)有限公司WIFI connection method and device and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101977382A (en)*2010-10-272011-02-16福州星网视易信息系统有限公司Audio and video integrated control circuit and method for accessing access point
CN102300287A (en)*2011-08-122011-12-28盛乐信息技术(上海)有限公司Wireless hotspot connection method and apparatus thereof
CN103281759A (en)*2013-05-282013-09-04北京推博信息技术有限公司WIFI (wireless fidelity) network access method and device, electronic equipment and communication system
CN104113895A (en)*2014-07-212014-10-22上海庆科信息技术有限公司Wi-Fi (wireless fidelity) network connecting method and device
CN104486816A (en)*2014-12-082015-04-01电子科技大学Quick automatic scanning method of Wifi (Wireless Fidelity) terminal equipment in multiple access points
CN104572173A (en)*2014-12-022015-04-29惠州Tcl移动通信有限公司WIFI (Wireless Fidelity) driver loading method based on mobile terminal, WIFI driver loading system based on mobile terminal and mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP5102319B2 (en)*2008-02-212012-12-19日本電信電話株式会社 Radio base station search method, radio base station search apparatus, and radio base station search program

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101977382A (en)*2010-10-272011-02-16福州星网视易信息系统有限公司Audio and video integrated control circuit and method for accessing access point
CN102300287A (en)*2011-08-122011-12-28盛乐信息技术(上海)有限公司Wireless hotspot connection method and apparatus thereof
CN103281759A (en)*2013-05-282013-09-04北京推博信息技术有限公司WIFI (wireless fidelity) network access method and device, electronic equipment and communication system
CN104113895A (en)*2014-07-212014-10-22上海庆科信息技术有限公司Wi-Fi (wireless fidelity) network connecting method and device
CN104572173A (en)*2014-12-022015-04-29惠州Tcl移动通信有限公司WIFI (Wireless Fidelity) driver loading method based on mobile terminal, WIFI driver loading system based on mobile terminal and mobile terminal
CN104486816A (en)*2014-12-082015-04-01电子科技大学Quick automatic scanning method of Wifi (Wireless Fidelity) terminal equipment in multiple access points

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
下拉菜单打开wifi快捷开关后自动弹出系统wifi设置页面怎么破;灰太狼1985;《智友论坛》;20140411;第1页

Also Published As

Publication numberPublication date
CN105744598A (en)2016-07-06

Similar Documents

PublicationPublication DateTitle
CN105744598B (en) A wireless local area network connection method and device
CN105227538B (en) Identification and authentication of cloud devices
US9363099B2 (en)UPnP/DLNA with RADA hive
CN108551675B (en)Application client, server and corresponding Portal authentication method
CN103532751B (en) Method and device for managing network access equipment
US8925042B2 (en)Connecting devices to an existing secure wireless network
CN105306676B (en)Access the method, apparatus and system of smart machine
US10630551B2 (en)Method and apparatus for automatic networking of gateway device
US20090300722A1 (en)Support for integrated wlan hotspot clients
JP2017175468A5 (en)
KR20120025114A (en)Apparatus and method for determining validity of wifi connection in wireless communication system
CN105636237A (en)Network connection method, wireless device and system
JP5854138B2 (en) Information processing system, information processing method, and communication device
CN108366382B (en)WiFi automatic configuration method for mobile terminal
CN105392182B (en) Method and system for setting network configuration information of WIFI equipment
WO2017088795A1 (en)Method and device for controlling smart appliance
WO2014005939A1 (en)Methods for configuring a device for establishing a first wireless link with a network.
WO2015139401A1 (en)Establishment method and system for wireless network, and wireless routing device
WO2013178157A2 (en)Method and device for automatically establishing wifi-based local area networks among devices in private cloud
JP5405617B2 (en) Mobile communication terminal and program
JP5246029B2 (en) Wireless communication system
TW201916639A (en)Physical device configuration method and apparatus
KR20100010114A (en)Apparatus and method for multiple ip address setup in mobile communication system
CN112188593A (en)Wireless configuration method and device, storage medium and electronic device
US20140065969A1 (en)Method for connectivity information control and an electronic device thereof

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp