CN107770846A - WiFi connection methods, device and mobile terminal - Google Patents
WiFi connection methods, device and mobile terminal Download PDFInfo
- Publication number
- CN107770846A CN107770846A CN201711094367.4A CN201711094367A CN107770846A CN 107770846 A CN107770846 A CN 107770846A CN 201711094367 A CN201711094367 A CN 201711094367A CN 107770846 A CN107770846 A CN 107770846A
- Authority
- CN
- China
- Prior art keywords
- hotspot
- wifi
- mobile terminal
- information
- wifi information
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/16—Discovering, processing access restriction or access information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/18—Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
- H04W8/183—Processing at user equipment or user record carrier
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The present invention provides a kind of WiFi connection methods, device and mobile terminal, is related to mobile communication technology field.Wherein, WiFi connection methods include:When mobile terminal-opening to kernel program loads, the Wi-Fi hotspot in current environment is scanned;WiFi information in the Wi-Fi hotspot and specified partition that are obtained according to scanning, carry out WiFi attended operations.WiFi connection methods, device and mobile terminal provided by the invention, the WiFi information of available Wi-Fi hotspot is stored with the specified partition of mobile terminal, when mobile terminal-opening to kernel program loads, scan the Wi-Fi hotspot in current environment, WiFi information in the Wi-Fi hotspot and specified partition that are obtained according to scanning, WiFi attended operations are carried out, the time of Wi-Fi hotspot is connected during so as to shorten mobile terminal-opening, improves user experience.
Description
Technical field
The present invention relates to mobile communication technology field, more particularly, to a kind of WiFi connection methods, device and mobile terminal.
Background technology
WiFi is that one kind can wirelessly interconnect PC, handheld device (such as PDA, mobile phone) terminal
Technology, it is therefore an objective to improve the Wi-Fi product based on the standards of IEEE 802.11 between intercommunity.
Existing mobile terminal, such as mobile phone, when starting shooting or restarting, after switching on power, Android (Android) operations system
The start-up course of system or (SuSE) Linux OS is as follows:Chip guide code (is solidificated in ROM) from predefined position first
Start to perform;Then Boot Loader (Boot loader), Boot Loader loading kernel (kernel program) are loaded, and
Perform kernel;Kernel performs first User space process init (initialization), the load document system in init after starting
System, initialize network service and memory management, all local services of activation system manager administration;Finally start zygote.
After system starts completely, zygote framework (framework) layer issues scanning motion, scans neighbouring Wi-Fi hotspot, so
After connect Wi-Fi hotspot.
Because the action for connecting Wi-Fi hotspot is just carried out after system starts completely, and operating system is one
Concurrent system, thus can cause to reduce user experience, it is necessary to spend longer time from start to WiFi successful connections.
The content of the invention
In view of this, the purpose of the embodiment of the present invention is to provide a kind of WiFi connection methods, device and mobile terminal, contracting
The time of Wi-Fi hotspot is connected during short mobile terminal-opening, improves user experience.
To achieve these goals, the technical scheme that the embodiment of the present invention uses is as follows:
In a first aspect, the embodiments of the invention provide a kind of WiFi connection methods, methods described is applied to mobile terminal, institute
The specified partition for stating mobile terminal is stored with the WiFi information of available Wi-Fi hotspot, and methods described includes:
When the mobile terminal-opening to kernel program loads, the Wi-Fi hotspot in current environment is scanned;
WiFi information in the Wi-Fi hotspot and the specified partition that are obtained according to scanning, carry out WiFi attended operations.
In preferred embodiments of the present invention, the step of Wi-Fi hotspot in above-mentioned scanning current environment, including:
The WiFi drivers in the kernel program are run, to obtain the Wi-Fi hotspot in current environment.
In preferred embodiments of the present invention, in the above-mentioned Wi-Fi hotspot and the specified partition obtained according to scanning
WiFi information, carry out WiFi attended operations the step of, including:
The WiFi information in the specified partition is read, wherein, the WiFi information comprises at least:Wi-Fi hotspot mark,
Password and cipher mode;
The Wi-Fi hotspot that scanning obtains is matched with the WiFi information of reading one by one;
Target Wi-Fi hotspot is chosen from the Wi-Fi hotspot that the match is successful;
Connect the target Wi-Fi hotspot.
In preferred embodiments of the present invention, the above method also includes:
Connected if established with new Wi-Fi hotspot, the WiFi information of the new Wi-Fi hotspot is stored in described specify
In subregion.
In preferred embodiments of the present invention, the above method also includes:If in the file system of the mobile terminal
When WiFi information is updated, using in specified partition described in the WiFi information updatings in the updated file system
WiFi information.
In preferred embodiments of the present invention, the above method also includes:According to the cycle of setting, by the mobile terminal
WiFi synchronizing informations in file system are into the specified partition.
Second aspect, the embodiments of the invention provide a kind of WiFi attachment means, described device is applied to mobile terminal, institute
The specified partition for stating mobile terminal is stored with the WiFi information of available Wi-Fi hotspot, and described device includes:
Wi-Fi hotspot scan module, for when the mobile terminal-opening to kernel program loads, scanning current environment
In Wi-Fi hotspot;
Wifi link blocks, for according to the WiFi information scanned in obtained Wi-Fi hotspot and the specified partition, entering
Row WiFi attended operations.
In preferred embodiments of the present invention, above-mentioned Wi-Fi hotspot scan module, it is additionally operable to:Run in the kernel program
WiFi drivers, to obtain the Wi-Fi hotspot in current environment.
The third aspect, the embodiments of the invention provide a kind of mobile terminal.In a possible design, mobile terminal
Structure includes processor and memory, and the memory is used to store the program for supporting the computing device above method, described
Processor is configurable for performing the program stored in the memory.
Fourth aspect, the embodiments of the invention provide a kind of machinable medium, for storing above-mentioned WiFi connections
Computer software instructions used in device.
Compared with prior art, WiFi connection methods, device and mobile terminal provided in an embodiment of the present invention, mobile whole
The specified partition at end is stored with the WiFi information of available Wi-Fi hotspot, when mobile terminal-opening to kernel program loads, that is, sweeps
The Wi-Fi hotspot in current environment is retouched, the WiFi information in the Wi-Fi hotspot and specified partition that are obtained according to scanning, carries out WiFi
Attended operation, the time of Wi-Fi hotspot is connected during so as to shorten mobile terminal-opening, improves user experience.
To enable the above objects, features and advantages of the present invention to become apparent, preferred embodiment cited below particularly, and coordinate
Appended accompanying drawing, is described in detail below.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by embodiment it is required use it is attached
Figure is briefly described, it will be appreciated that the following drawings illustrate only certain embodiments of the present invention, therefore be not construed as pair
The restriction of scope, for those of ordinary skill in the art, on the premise of not paying creative work, can also be according to this
A little accompanying drawings obtain other related accompanying drawings.
Fig. 1 is the flow chart for the first WiFi connection method that the embodiment of the present invention is provided;
Fig. 2 is the flow chart for second of WiFi connection method that the embodiment of the present invention is provided;
Fig. 3 is the flow chart for the third WiFi connection method that the embodiment of the present invention is provided;
Fig. 4 is the flow chart for the 4th kind of WiFi connection method that the embodiment of the present invention is provided;
Fig. 5 is the flow chart for the 5th kind of WiFi connection method that the embodiment of the present invention is provided;
Fig. 6 is the structured flowchart for the first WiFi attachment means that the embodiment of the present invention is provided;
Fig. 7 is the structured flowchart for second of WiFi attachment means that the embodiment of the present invention is provided;
Fig. 8 is the structured flowchart for the third WiFi attachment means that the embodiment of the present invention is provided;
Fig. 9 is the structured flowchart for the 4th kind of WiFi attachment means that the embodiment of the present invention is provided;
Figure 10 is a kind of structured flowchart for mobile terminal that the embodiment of the present invention is provided.
Embodiment
Below in conjunction with accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Ground describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.Generally exist
The component of the embodiment of the present invention described and illustrated in accompanying drawing can be configured to arrange and design with a variety of herein.Cause
This, the detailed description of the embodiments of the invention to providing in the accompanying drawings is not intended to limit claimed invention below
Scope, but it is merely representative of the selected embodiment of the present invention.Based on embodiments of the invention, those skilled in the art are not doing
The every other embodiment obtained on the premise of going out creative work, belongs to the scope of protection of the invention.
For the mobile terminals such as current mobile phone in start, the action for connecting Wi-Fi hotspot is after system starts completely
Just carry out, thus can cause from start to WiFi successful connections, it is necessary to spend longer time.Based on this, the present invention is implemented
Example provides a kind of WiFi connection methods, device and mobile terminal, when mobile terminal-opening to kernel program loads, that is, connects
Wi-Fi hotspot, and then the time of Wi-Fi hotspot is connected during shortening mobile terminal-opening, improve user experience.
WiFi connection methods provided in an embodiment of the present invention, can apply to mobile phone, palm PC, vehicle-mounted computer etc. has
The mobile terminal of communication function.The WiFi information of available Wi-Fi hotspot is stored with the specified partition of mobile terminal.Wherein, can use
Wi-Fi hotspot refers to the Wi-Fi hotspot that mobile terminal once connected, and the Wi-Fi hotspot of these Wi-Fi hotspots is preserved in mobile terminal
The information such as mark, password and cipher mode, wherein, cipher mode is optional information.WiFi information can pass through WiFi lists
Form is stored.Above-mentioned specified partition is the subregion set in advance in system partitioning, in the start-up course of operating system,
Kernel program can read the information of the specified partition memory storage.
Because existing mobile terminal be able to will be generally stored in file system with the WiFi information of Wi-Fi hotspot, and operate
System is in starting up, and not load document system, therefore when starting up loads kernel program can not reading and saving
WiFi information in file system, connecting the action of Wi-Fi hotspot can only start completely in system, after load document system
It could carry out.Therefore, the embodiment of the present invention has divided independent specified partition in advance, for example, can be in operating system partition table
Middle addition specified partition WF, the WiFi information of Wi-Fi hotspot, as needed, specified partition WF size can be used for storing
It can be set as 2M or other numerical value.In mobile terminal-opening start-up operation system, kernel program can read and be stored in this
WiFi information in specified partition.
Fig. 1 shows a kind of flow chart for WiFi connection methods that first embodiment of the invention provides, as shown in figure 1, should
Method comprises the following steps:
Step S102, when mobile terminal-opening to kernel program (kernel) loads, scan the WiFi in current environment
Focus.
Mobile terminal-opening or when restarting, the process of start-up operation system is as follows:Chip guide code is first from predefined
Position (being solidificated in ROM) start to perform;Then Boot Loader, Boot Loader loading kernel are loaded, and are performed
kernel.Therefore, a kind of embodiment can be:WiFi drivers (WiFi Driver) are compiled into kernel, moved
During dynamic starting up of terminal loading kernel, WiFi drivers will be initialized, enable WiFi hardware, start scanning motion, are obtained
Wi-Fi hotspot in current environment.
Step S104, according to the WiFi information in scanning obtained Wi-Fi hotspot and specified partition, carry out WiFi connections and grasp
Make.
WiFi drivers can access above-mentioned specified partition by core standard interface, obtain the WiFi in specified partition
Information, the Wi-Fi hotspot in current environment is matched with the WiFi information to prestore, with the Wi-Fi hotspot progress that the match is successful
WiFi connections.
, can be by multiple Wi-Fi hotspots one by one with prestoring if scanning has multiple Wi-Fi hotspots into current environment
WiFi information is matched.When there is first Wi-Fi hotspot that the match is successful, stop matching, with the WiFi that the match is successful
Focus carries out WiFi connections.
The WiFi connection methods, the WiFi information of available Wi-Fi hotspot is stored with the specified partition of mobile terminal, works as shifting
When dynamic starting up of terminal to kernel program loads, that is, scan the Wi-Fi hotspot in current environment, the Wi-Fi hotspot obtained according to scanning
With the WiFi information in specified partition, WiFi attended operations are carried out, connect Wi-Fi hotspot during so as to shorten mobile terminal-opening
Time, improve user experience.
Fig. 2 shows the flow chart for second of WiFi connection method that the embodiment of the present invention is provided, as shown in Fig. 2 should
Method comprises the following steps:
Step S202, when mobile terminal-opening to kernel program loads, scan the Wi-Fi hotspot in current environment.
For example, the instruction of scanning Wi-Fi hotspot can be set up in kernel program.When loading kernel program, can pass through
The instruction being arranged in kernel program enables WiFi hardware, starts scanning motion, obtains the Wi-Fi hotspot in current environment.
Step S204, the WiFi information in specified partition is read, wherein, WiFi information comprises at least:Wi-Fi hotspot identifies
And password.
WiFi information of the kernel program by standard interface reading and saving in specified partition, the WiFi information are mobile whole
Hold the information of Wi-Fi hotspot being successfully connected, including Wi-Fi hotspot mark or be WiFi SSID (Service Set
Identifier service sets), MAC (Media Access Control, media access control) address, password and encryption side
Formula.Wherein, the cipher mode of Wi-Fi hotspot can be:WEP (Wired Equivalent Privacy, Wired Equivalent Privacy) sides
Formula, WPA (WiFi Protected Access, wireless protection intrusion)-PSK (phase-shift keying, phase-shift keying (PSK)) sides
Formula, either WPA2 (WPA upgraded version) modes or WPA2-PSK modes.Wherein, the wireless local of WEP modes has been used
The data of net, mobile terminal and WAP can be all encrypted with a shared key.WPA modes are WEP modes
Upgrade version, it is more all than WEP mode such as in authentication, encryption mechanism and packet inspection etc. in the protection of safety
It is close, it more difficult to invade, improve the abatement functions of wireless network.WPA2 modes are the upgrade versions of WPA modes, and it supports AES
(Advanced Encryption Standard, Advanced Encryption Standard) cipher mode.Above-mentioned WiFi information can pass through form
Form stored.
Step S206, the Wi-Fi hotspot that scanning obtains is matched with the WiFi information of reading one by one.
Step S208, target Wi-Fi hotspot is chosen from the Wi-Fi hotspot that the match is successful.
If scanning obtains multiple Wi-Fi hotspots, multiple Wi-Fi hotspots are matched with the WiFi information of reading one by one.
A Wi-Fi hotspot is chosen from all Wi-Fi hotspots that the match is successful, as target Wi-Fi hotspot.For example, can be according to matching
Successful Wi-Fi hotspot generates a list, as shown in table 1.
Table 1
SSID | MAC Address | Password | Cipher mode |
QIKU | 34:64:A9:33:8B:75 | ********* | WPA-PSK |
Test | 23:54:B9:34:8A:64 | ********* | WPA2 |
Based on above-mentioned list, during reselection target Wi-Fi hotspot, will can scan obtained multiple Wi-Fi hotspots one by one with
Wi-Fi hotspot in list is matched, and determines target Wi-Fi hotspot one of in such a way:(1) from the WiFi heat matched
The maximum Wi-Fi hotspot of signal intensity is chosen in point, as target Wi-Fi hotspot;(2) first WiFi that the match is successful heat is chosen
Point is used as target Wi-Fi hotspot;(3) selected according to the priority of cipher mode set in advance from the Wi-Fi hotspot that the match is successful
Take target Wi-Fi hotspot.
After target Wi-Fi hotspot is selected, for the security of enhancement information transmission, in follow-up transmitting procedure, also
The information of transmission can be encrypted or be decrypted according to cipher mode corresponding to the target Wi-Fi hotspot.
If there is no the Wi-Fi hotspot that the match is successful, then connected without WiFi.After starting shooting, user's selection is prompted
Wi-Fi hotspot, the password of selected Wi-Fi hotspot is inputted, then carry out WiFi connections.
Step S210, linking objective Wi-Fi hotspot.
After basic network initialization, start DHCP (Dynamic Host Configuration Protocol, dynamic
Host configuration), IP address is obtained, establishes and communicates to connect with Wi-Fi hotspot.
Specifically, mobile terminal broadcasts a dhcp message on local physical subnets, to determine Dynamic Host Configuration Protocol server position
And IP address.Due to possible more than one Dynamic Host Configuration Protocol server on network, each Dynamic Host Configuration Protocol server with valid ip address information
It is possible to send a proposal to mobile terminal, mobile terminal selectes IP address information in proposing from first received,
And broadcast the message request of a rental address.By sending the dhcp server response of the proposal message, IP address letter is specified
Cease to the mobile terminal and send a confirmation, and all other Dynamic Host Configuration Protocol server recalls respective proposal.Mobile terminal is completed
The initialization and binding of ICP/IP protocol.After the completion of configuration, mobile terminal can connects external network simultaneously by Wi-Fi hotspot
Carry out network service.
The WiFi connection methods, when mobile terminal-opening to kernel program loads, that is, scan the WiFi in current environment
Focus, the WiFi information in specified partition is read, the Wi-Fi hotspot that scanning the is obtained WiFi information progress with reading one by one
Match somebody with somebody, target Wi-Fi hotspot is chosen from the Wi-Fi hotspot that the match is successful and is attached, is connected when can shorten mobile terminal-opening
The time of Wi-Fi hotspot, improve user experience.
In view of user during using mobile terminal, new Wi-Fi hotspot may be connected.In order that new
Wi-Fi hotspot can use Wi-Fi hotspot in subsequent use, if that is, mobile terminal is when starting shooting next time, scanning to WiFi heat
Point, it can be attached automatically.The embodiments of the invention provide the third WiFi connection method, as shown in figure 3, this method includes
Following steps:
Step S302, when mobile terminal-opening to kernel program loads, scan the Wi-Fi hotspot in current environment.
Step S304, according to the WiFi information in scanning obtained Wi-Fi hotspot and specified partition, carry out WiFi connections and grasp
Make.
Step S306, when establishing connection with new Wi-Fi hotspot, the WiFi information of new Wi-Fi hotspot is stored in finger
Determine in subregion.
During user uses mobile terminal, when mobile terminal is in new region, and new Wi-Fi hotspot is arrived in scanning,
User can be manually entered the password of the Wi-Fi hotspot, the WiFi passwords that mobile terminal is inputted by user, be successfully connected this
Wi-Fi hotspot.The WiFi connection methods, a Wi-Fi hotspot is often connected, the WiFi information of the Wi-Fi hotspot will be detected whether
It is stored in specified partition.Specifically detection method can be:Search in specified partition and whether preserve the Wi-Fi hotspot
Wi-Fi hotspot identify or MAC Address, or, search specified partition in whether preserve the Wi-Fi hotspot Wi-Fi hotspot mark and
MAC Address.If detecting the WiFi information for not preserving the Wi-Fi hotspot in specified partition, the WiFi of the Wi-Fi hotspot is believed
Breath is stored in specified partition, so that mobile terminal, if the Wi-Fi hotspot is arrived in scanning, can be carried out automatically when starting shooting next time
Connection.The time of Wi-Fi hotspot is connected during so as to shorten mobile terminal-opening, improves user experience.
In another optional embodiment, the WiFi information sources stored in specified partition are in the file system of mobile terminal
In WiFi information.Based on this, the embodiment of the present invention additionally provides following two kinds of WiFi connection methods.
Fig. 4 shows the flow chart for the 4th kind of WiFi connection method that the embodiment of the present invention is provided, as shown in figure 4, should
Method comprises the following steps:
Step S402, when mobile terminal-opening to kernel program loads, scan the Wi-Fi hotspot in current environment.
Step S404, according to the WiFi information in scanning obtained Wi-Fi hotspot and specified partition, carry out WiFi connections and grasp
Make.
Step S406, when the WiFi information in the file system of mobile terminal is updated, use updated file
The WiFi information in WiFi information updatings specified partition in system.
Fig. 5 shows the flow chart for the 5th kind of WiFi connection method that the embodiment of the present invention is provided.As shown in figure 5, should
Method comprises the following steps:
Step S502, when mobile terminal-opening to kernel program loads, scan the Wi-Fi hotspot in current environment.
Step S504, according to the WiFi information in scanning obtained Wi-Fi hotspot and specified partition, carry out WiFi connections and grasp
Make.
Step S506, according to the cycle of setting, by the WiFi synchronizing informations in the file system of mobile terminal to specified point
Qu Zhong.
In the terminal, can be stored in the WiFi information of Wi-Fi hotspot in the file system of operating system, it is mobile whole
When end starts WiFi connections, WiFi drivers read the WiFi information stored in file system, the Wi-Fi hotspot that will be scanned
Matched, be attached with the Wi-Fi hotspot that the match is successful, if without the WiFi that the match is successful with the WiFi information of storage
Focus, then connected without WiFi.
Fig. 4 and Fig. 5 provides obtains WiFi information from the file system of mobile terminal operating system, and makes specified partition
In WiFi information and WiFi information in file system preserve two kinds of consistent different modes.A kind of mode is:Work as detection
When being updated to the WiFi information in the file system of mobile terminal, using the WiFi information in updated file system more
WiFi information in new specified partition.Another way is:According to the cycle of setting, by the file system of mobile terminal
WiFi synchronizing informations are into specified partition.The synchronous cycle can be set for as needed, such as 1 day, 1 hour or a few hours.
It the WiFi connection methods, both ensure that in mobile terminal-opening, and can more quickly carry out WiFi connections, improved
The Experience Degree of user, mobile terminal can be made in use again, when starting WiFi connections, WiFi drivers can use
The WiFi information preserved in file system, reduce the number for the intrinsic subregion for accessing operating system.
It should be noted that above-mentioned each embodiment is described by the way of progressive, what each embodiment stressed
The difference with other embodiment, the identical non-repeated description in similar part between each embodiment, can mutually referring to.
Another embodiment of the present invention additionally provides a kind of WiFi attachment means corresponding with above method embodiment, application
In mobile terminal, the specified partition of the mobile terminal is stored with the WiFi information of available Wi-Fi hotspot.Fig. 6 shows of the invention real
The structured flowchart for the first WiFi attachment means that example is provided is applied, as shown in fig. 6, the device includes:
Wi-Fi hotspot scan module 61, for when mobile terminal-opening to kernel program loads, scanning in current environment
Wi-Fi hotspot;
Wifi link blocks 62, for the WiFi information in scanning obtained Wi-Fi hotspot and the specified partition,
Carry out WiFi attended operations.
Wherein, Wi-Fi hotspot scan module 61, can be also used for:The WiFi drivers in kernel program are run, to obtain
Take the Wi-Fi hotspot in current environment.
Wifi link blocks 62, can be also used for:The WiFi information in specified partition is read, wherein, the WiFi information
Including:Wi-Fi hotspot mark, password and cipher mode;WiFi information of the obtained Wi-Fi hotspot one by one with reading will be scanned to carry out
Matching;Target Wi-Fi hotspot is chosen from the Wi-Fi hotspot that the match is successful;Linking objective Wi-Fi hotspot.
In an optional embodiment, as shown in fig. 7, said apparatus can also include:Information storage module 71, for
When establishing connection with new Wi-Fi hotspot, the WiFi information of new Wi-Fi hotspot is stored in specified partition.
In another optional embodiment, as shown in figure 8, said apparatus can also include:Information updating module 81, is used for
When the WiFi information in the file system of mobile terminal is updated, using the WiFi information in updated file system more
WiFi information in new specified partition.
In another optional embodiment, as shown in figure 9, said apparatus can also include:Synchronizing information module 91, is used for
According to the cycle of setting, by the WiFi synchronizing informations in the file system of mobile terminal into specified partition.
The WiFi attachment means that the present embodiment provides, available Wi-Fi hotspot is stored with the specified partition of mobile terminal
WiFi information, Wi-Fi hotspot scan module scan the Wi-Fi hotspot in current environment, according to scanning when kernel program loads
WiFi information in obtained Wi-Fi hotspot and specified partition, WiFi attended operations are carried out, so as to shorten mobile terminal-opening
When connect Wi-Fi hotspot time, improve user experience.
The WiFi attachment means that the present embodiment is provided, its realization principle and caused technique effect and preceding method are implemented
Example is identical, and to briefly describe, device embodiment part does not refer to part, refers to the corresponding contents in preceding method embodiment.
The WiFi attachment means have the function of realizing above-mentioned WiFi connection methods behavior.The function can be realized by hardware,
Corresponding software can be performed by hardware to realize.The hardware or software include one or more corresponding with above-mentioned function phase
Module.
Corresponding with above-described embodiment, the embodiment of the present invention additionally provides a kind of mobile terminal.The mobile terminal can be with
It is to include the terminals such as mobile phone, tablet personal computer, POS (Point of Sales, point-of-sale terminal), vehicle-mounted computer, Intelligent worn device
Equipment.
Figure 10 shows a kind of structured flowchart of mobile terminal provided in an embodiment of the present invention.As shown in Figure 10, in order to just
In explanation, the part related to the embodiment of the present invention is illustrate only, particular technique details does not disclose, refer to implementation of the present invention
Example method part.The mobile terminal 100 includes:Radio frequency (Radio Frequency, RF) circuit 110, memory 120, input are single
Member 130, display unit 140, sensor 150, voicefrequency circuit 160, Wireless Fidelity (wireless fidelity, WiFi) module
170th, the part such as processor 180 and power supply 190.It will be understood by those skilled in the art that the mobile terminal 100 shown in Fig. 9
Structure does not form the restriction to mobile terminal 100, can include than illustrating more or less parts, or some portions of combination
Part, or different parts arrangement.
Each component parts of mobile terminal 100 is specifically introduced with reference to Figure 10:
RF circuits 110 can be used for receive and send messages or communication process in, the reception and transmission of signal, especially, by base station
After downlink information receives, handled to processor 180;In addition, it is sent to base station by up data are designed.Generally, RF circuits 110
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise
Amplifier, LNA), duplexer etc..In addition, RF circuits 110 can also be communicated by radio communication with network and other equipment.
Above-mentioned radio communication can use any communication standard or agreement, including but not limited to global system for mobile communications (Global
System of Mobile communication, GSM), general packet radio service (General Packet Radio
Service, GPRS), CDMA (Code Division Multiple Access, CDMA), WCDMA
(Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution,
LTE), Email, Short Message Service (Short Messaging Service, SMS) etc..Although Figure 10 shows RF circuits
110 but it is understood that, it is simultaneously not belonging to must be configured into for mobile terminal 100, can not change as needed completely
Omitted in the essential scope of invention.
Memory 120 can be used for storage software program and module, as the WiFi connection methods in the embodiment of the present invention with
And programmed instruction/module corresponding to device, processor 180 are stored in the software program and module of memory 120 by operation,
So as to perform the various function application of mobile terminal 100 and data processing, such as WiFi connection sides provided in an embodiment of the present invention
Method.Memory 120 can mainly include storing program area and storage data field, wherein, storing program area can storage program area, extremely
Application program (such as sound-playing function, image player function etc.) needed for few One function etc.;Storage data field can store
Created data (such as voice data, phone directory etc.) etc. are used according to mobile terminal 100.In addition, memory 120 can be with
Including high-speed random access memory, nonvolatile memory, for example, at least disk memory, a flash memory can also be included
Device or other volatile solid-state parts.
Input block 130 can be used for the numeral or character information for receiving input, and produce the user with mobile terminal 100
Set and function control it is relevant key signals input.Specifically, input block 130 may include contact panel 131 and other
Input equipment 132.Contact panel 131, also referred to as touch-screen, collect touch operation of the user on or near it and (for example use
Family uses the behaviour of any suitable object or annex on contact panel 131 or near contact panel 131 such as finger, stylus
Make), and corresponding attachment means are driven according to formula set in advance.Optionally, contact panel 131 may include that touch detection fills
Put and two parts of touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation and bring
Signal, transmit a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and it is turned
Change contact coordinate into, then give processor 180, and the order sent of reception processing device 180 and can be performed.Furthermore, it is possible to
Contact panel 131 is realized using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel
131, input block 130 can also include other input equipments 132.Specifically, other input equipments 132 can include but unlimited
One kind in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc. or
It is a variety of.
Display unit 140 can be used for display by the information of user's input or be supplied to the information and mobile terminal of user
100 various menus.Display unit 140 may include display panel 141, optionally, can use liquid crystal display (Liquid
Crystal Display, LCD), the form such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED)
To configure display panel 141.Further, contact panel 131 can cover display panel 141, when contact panel 131 detects
After touch operation on or near it, processor 180 is sent to determine the type of touch event, is followed by subsequent processing the basis of device 180
The type of touch event processes.Although in fig.9, contact panel 131 and display panel 141 are the parts independent as two
To realize the input of mobile terminal 100 and input function, but in some embodiments it is possible to by contact panel 131 with showing
Panel 141 is integrated and realizes input and the output function of mobile terminal 100.
Mobile terminal 100 may also include at least one sensor 150, for example, optical sensor, motion sensor and other
Sensor.Specifically, optical sensor may include ambient light sensor and proximity transducer, wherein, ambient light sensor can basis
The light and shade of ambient light adjusts the brightness of display panel 141, proximity transducer can when mobile terminal 100 is moved in one's ear,
Close display panel 141 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect (one in all directions
As be three axles) size of acceleration, size and the direction of gravity are can detect that when static, available for the identification appearance of mobile terminal 100
The application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating) of state, Vibration identification correlation function (such as pedometer,
Tap) etc.;The gyroscope that can also configure as mobile terminal 100, barometer, hygrometer, thermometer, infrared ray sensor etc. its
His sensor, will not be repeated here.
Voicefrequency circuit 160, loudspeaker 161, microphone 162 can provide the COBBAIF between user and mobile terminal 100.
Electric signal after the voice data received conversion can be transferred to loudspeaker 161, is changed by loudspeaker 161 by voicefrequency circuit 160
Exported for voice signal;On the other hand, the voice signal of collection is converted to electric signal by microphone 162, is connect by voicefrequency circuit 160
Voice data is converted to after receipts, then after voice data output processor 180 is handled, it is such as another to be sent to through RF circuits 110
One mobile terminal 100, or voice data is exported to memory 120 further to handle.
WiFi belongs to short range wireless transmission technology, and mobile terminal 100 can help user to receive and dispatch by WiFi module 170
Email, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.
Processor 180 is the control centre of mobile terminal 100, utilizes various interfaces and the whole mobile terminal of connection
100 various pieces, by running or performing the software program and/or module that are stored in memory 120, and call storage
Data in memory 120, the various functions and processing data of mobile terminal 100 are performed, so as to be carried out to mobile terminal 100
Integral monitoring.Optionally, processor 180 may include one or more processing units;Optionally, processor 180 can integrate application
Processor and modem processor, wherein, application processor mainly handles operating system, user interface and application program etc.,
Modem processor mainly handles radio communication.It is understood that above-mentioned modem processor can not also be integrated into
In processor 180.
Mobile terminal 100 also includes the power supply 190 (such as battery) to all parts power supply, and optionally, power supply can lead to
Cross power-supply management system and processor 180 be logically contiguous, so as to by power-supply management system realize management charging, electric discharge and
The functions such as power managed.
It is appreciated that structure shown in Figure 10 is only to illustrate, mobile terminal 100 may also include it is more more than shown in Figure 10 or
The less component of person, or there is the configuration different from shown in Figure 10.Each component shown in Figure 10 can use hardware, software
Or its combination is realized.
Further, the embodiment of the present invention additionally provides a kind of machinable medium, the machinable medium
Machine-executable instruction is stored with, when being called and being performed by processor, machine-executable instruction promotees the machine-executable instruction
Processor is set to realize above-mentioned WiFi connection methods.
WiFi connection methods, device and the mobile terminal that the embodiment of the present invention is provided, there is identical technical characteristic,
Can solve identical technical problem, reach identical technique effect.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, can also pass through
Other modes are realized.Device embodiment described above is only schematical, for example, flow chart and block diagram in accompanying drawing
Show the device of multiple embodiments according to the present invention, method and computer program product architectural framework in the cards,
Function and operation.At this point, each square frame in flow chart or block diagram can represent the one of a module, program segment or code
Part, a part for the module, program segment or code include one or more and are used to realize holding for defined logic function
Row instruction.It should also be noted that at some as in the implementation replaced, the function that is marked in square frame can also with different from
The order marked in accompanying drawing occurs.For example, two continuous square frames can essentially perform substantially in parallel, they are sometimes
It can perform in the opposite order, this is depending on involved function.It is it is also noted that every in block diagram and/or flow chart
The combination of individual square frame and block diagram and/or the square frame in flow chart, function or the special base of action as defined in performing can be used
Realize, or can be realized with the combination of specialized hardware and computer instruction in the system of hardware.
In addition, each functional module or unit in each embodiment of the present invention can integrate and to form an independence
Part or modules individualism, can also two or more modules be integrated to form an independent portion
Point.
If the function is realized in the form of software function module and is used as independent production marketing or in use, can be with
It is stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words
The part to be contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter
Calculation machine software product is stored in a storage medium, including some instructions are causing a computer equipment (can be
People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the present invention.
And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality
Body or operation make a distinction with another entity or operation, and not necessarily require or imply and deposited between these entities or operation
In any this actual relation or order, can not be interpreted as indicating or implying relative importance.Moreover, term " bag
Include ", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion so that the mistake including a series of elements
Journey, method, article or equipment not only include those key elements, but also the other element including being not expressly set out, either
Also include for this process, method, article or the intrinsic key element of equipment.In the absence of more restrictions, by sentence
The key element that "including a ..." limits, it is not excluded that also deposited in the process including the key element, method, article or equipment
In other identical element.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies
Change, equivalent substitution, improvement etc., should be included in the scope of the protection.It should be noted that:Similar label and letter exists
Similar terms is represented in following accompanying drawing, therefore, once being defined in a certain Xiang Yi accompanying drawing, is then not required in subsequent accompanying drawing
It is further defined and explained.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained
Cover within protection scope of the present invention.Therefore, protection scope of the present invention described should be defined by scope of the claims.
The embodiment of the present invention further discloses:
A1. a kind of WiFi connection methods, methods described are applied to mobile terminal, the specified partition storage of the mobile terminal
There is the WiFi information of available Wi-Fi hotspot, methods described includes:
When the mobile terminal-opening to kernel program loads, the Wi-Fi hotspot in current environment is scanned;
WiFi information in the Wi-Fi hotspot and the specified partition that are obtained according to scanning, carry out WiFi attended operations.
A2. the method according to A1, it is described scanning current environment in Wi-Fi hotspot the step of, including:
The WiFi drivers in the kernel program are run, to obtain the Wi-Fi hotspot in current environment.
A3. the method according to A1, the WiFi in the obtained Wi-Fi hotspot and the specified partition according to scanning
Information, carry out WiFi attended operations the step of, including:
The WiFi information in the specified partition is read, wherein, the WiFi information comprises at least:Wi-Fi hotspot mark,
Password and cipher mode;
The Wi-Fi hotspot that scanning obtains is matched with the WiFi information of reading one by one;
Target Wi-Fi hotspot is chosen from the Wi-Fi hotspot that the match is successful;
Connect the target Wi-Fi hotspot.
A4. the method according to A1, methods described also include:
Connected if established with new Wi-Fi hotspot, the WiFi information of the new Wi-Fi hotspot is stored in described specify
In subregion.
A5. the method according to A1, methods described also include:
If the WiFi information in the file system of the mobile terminal is updated, the updated file is used
WiFi information in specified partition described in WiFi information updatings in system.
A6. the method according to A1, methods described also include:
According to the cycle of setting, by the WiFi synchronizing informations in the file system of the mobile terminal to the specified partition
In.
B7. a kind of WiFi attachment means, described device are applied to mobile terminal, the specified partition storage of the mobile terminal
There is the WiFi information of available Wi-Fi hotspot, described device includes:
Wi-Fi hotspot scan module, for when the mobile terminal-opening to kernel program loads, scanning current environment
In Wi-Fi hotspot;
Wifi link blocks, for according to the WiFi information scanned in obtained Wi-Fi hotspot and the specified partition, entering
Row WiFi attended operations.
B8. the device according to B7, the Wi-Fi hotspot scan module, is additionally operable to:
The WiFi drivers in the kernel program are run, to obtain the Wi-Fi hotspot in current environment.
B9. the device according to B7, the Wifi link blocks, is additionally operable to:
The WiFi information in the specified partition is read, wherein, the WiFi information includes:Wi-Fi hotspot mark, password
And cipher mode;
The Wi-Fi hotspot that scanning obtains is matched with the WiFi information of reading one by one;
Target Wi-Fi hotspot is chosen from the Wi-Fi hotspot that the match is successful;
Connect the target Wi-Fi hotspot.
B10. the device according to B7, described device also include:
Information storage module, for established with new Wi-Fi hotspot connect when, by the WiFi of the new Wi-Fi hotspot
Information is stored in the specified partition.
B11. the device according to B7, described device also include:
Information updating module, for when the WiFi information in the file system of the mobile terminal is updated, using
WiFi information in specified partition described in WiFi information updatings in the updated file system.
B12. the device according to B7, described device also include:
Synchronizing information module, for the cycle according to setting, by the WiFi information in the file system of the mobile terminal
It is synchronized in the specified partition.
C13. a kind of mobile terminal, the mobile terminal include memory and processor, and the memory is used to store
The program of method any one of computing device A1~A6 is supported, the processor is configurable for performing the storage
The program stored in device.
D14. a kind of machinable medium, the computer used in device any one of promising B7~B12 is stored
Software instruction.
Claims (10)
1. a kind of WiFi connection methods, it is characterised in that methods described is applied to mobile terminal, and specifying for the mobile terminal divides
Area is stored with the WiFi information of available Wi-Fi hotspot, and methods described includes:
When the mobile terminal-opening to kernel program loads, the Wi-Fi hotspot in current environment is scanned;
WiFi information in the Wi-Fi hotspot and the specified partition that are obtained according to scanning, carry out WiFi attended operations.
2. according to the method for claim 1, it is characterised in that it is described scanning current environment in Wi-Fi hotspot the step of,
Including:
The WiFi drivers in the kernel program are run, to obtain the Wi-Fi hotspot in current environment.
3. according to the method for claim 1, it is characterised in that described according to the obtained Wi-Fi hotspot of scanning and described to specify
WiFi information in subregion, carry out WiFi attended operations the step of, including:
The WiFi information in the specified partition is read, wherein, the WiFi information comprises at least:Wi-Fi hotspot mark, password
And cipher mode;
The Wi-Fi hotspot that scanning obtains is matched with the WiFi information of reading one by one;
Target Wi-Fi hotspot is chosen from the Wi-Fi hotspot that the match is successful;
Connect the target Wi-Fi hotspot.
4. according to the method for claim 1, it is characterised in that methods described also includes:
Connected if established with new Wi-Fi hotspot, the WiFi information of the new Wi-Fi hotspot is stored in the specified partition
In.
5. according to the method for claim 1, it is characterised in that methods described also includes:
If the WiFi information in the file system of the mobile terminal is updated, the updated file system is used
In WiFi information updatings described in WiFi information in specified partition.
6. according to the method for claim 1, it is characterised in that methods described also includes:
According to the cycle of setting, by the WiFi synchronizing informations in the file system of the mobile terminal into the specified partition.
7. a kind of WiFi attachment means, it is characterised in that described device is applied to mobile terminal, and specifying for the mobile terminal divides
Area is stored with the WiFi information of available Wi-Fi hotspot, and described device includes:
Wi-Fi hotspot scan module, for when the mobile terminal-opening to kernel program loads, scanning in current environment
Wi-Fi hotspot;
Wifi link blocks, for according to the WiFi information scanned in obtained Wi-Fi hotspot and the specified partition, carrying out
WiFi attended operations.
8. device according to claim 7, it is characterised in that the Wi-Fi hotspot scan module, be additionally operable to:
The WiFi drivers in the kernel program are run, to obtain the Wi-Fi hotspot in current environment.
9. a kind of mobile terminal, it is characterised in that the mobile terminal includes memory and processor, and the memory is used for
The program of method any one of computing device claim 1~6 is supported in storage, and the processor is configurable for holding
The program stored in the row memory.
10. a kind of machinable medium, it is characterised in that store device institute any one of promising claim 7 or 8
Computer software instructions.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711094367.4A CN107770846A (en) | 2017-11-08 | 2017-11-08 | WiFi connection methods, device and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711094367.4A CN107770846A (en) | 2017-11-08 | 2017-11-08 | WiFi connection methods, device and mobile terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107770846A true CN107770846A (en) | 2018-03-06 |
Family
ID=61273739
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711094367.4A Pending CN107770846A (en) | 2017-11-08 | 2017-11-08 | WiFi connection methods, device and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107770846A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110107117A1 (en) * | 2009-11-04 | 2011-05-05 | Samsung Electronics Co., Ltd. | Method and apparatus for activating device |
CN104853448A (en) * | 2015-05-08 | 2015-08-19 | 乐视致新电子科技(天津)有限公司 | Method for automatically establishing wireless connection and device thereof |
CN107333323A (en) * | 2017-06-07 | 2017-11-07 | 青岛海信电器股份有限公司 | WIFI returns method, device and the terminal device connected after Android system start |
-
2017
- 2017-11-08 CN CN201711094367.4A patent/CN107770846A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110107117A1 (en) * | 2009-11-04 | 2011-05-05 | Samsung Electronics Co., Ltd. | Method and apparatus for activating device |
CN104853448A (en) * | 2015-05-08 | 2015-08-19 | 乐视致新电子科技(天津)有限公司 | Method for automatically establishing wireless connection and device thereof |
CN107333323A (en) * | 2017-06-07 | 2017-11-07 | 青岛海信电器股份有限公司 | WIFI returns method, device and the terminal device connected after Android system start |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103475996A (en) | Network connecting method, network sharing method and devices | |
CN103458409A (en) | Network connection method and network sharing method and device | |
CN108255683B (en) | Method for prompting message in terminal and terminal | |
CN104426963B (en) | The method and terminal of associated terminal | |
CN103458408A (en) | Network connection method and network sharing method and device | |
CN103501482A (en) | Network access method, network access device and terminal | |
CN106961676B (en) | Network searching method, device and medium | |
CN106341809B (en) | A kind of data transmission method and equipment | |
CN106454810A (en) | Hotspot establishing method and terminal equipment | |
CN105208458A (en) | Virtual frame display method and device | |
CN106792622A (en) | The method and terminal device of AP are hidden in connection | |
CN106550361B (en) | Data transmission method, equipment and computer readable storage medium | |
CN105704700A (en) | Communication network access method and device | |
CN106658354B (en) | A kind of data transmission method and equipment | |
CN103338193B (en) | Method, system and device for initial media equipment | |
US20220255639A1 (en) | Radio frequency parameter processing method and device, and mobile terminal and storage medium | |
CN106445743A (en) | Data backup transmission method and mobile terminal | |
CN104363590A (en) | Access point connection method and device | |
CN105246075A (en) | Access point connecting method and device | |
CN106535188A (en) | Access control method and mobile terminal | |
CN106454975A (en) | Hotspot network switching method and terminal equipment | |
CN105744600B (en) | Communication network cut-in method and user equipment | |
CN110351702B (en) | System information area determining method, indicating method, terminal and network equipment | |
CN108270764A (en) | A kind of application login method, server and mobile terminal | |
CN105744602A (en) | Communication network access method and device |
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: 20180306 |
|
RJ01 | Rejection of invention patent application after publication |