CN108307483A - wireless network connecting method and mobile terminal - Google Patents

wireless network connecting method and mobile terminal Download PDF

Info

Publication number
CN108307483A
CN108307483A CN201710897447.7A CN201710897447A CN108307483A CN 108307483 A CN108307483 A CN 108307483A CN 201710897447 A CN201710897447 A CN 201710897447A CN 108307483 A CN108307483 A CN 108307483A
Authority
CN
China
Prior art keywords
wireless network
network
optimal
signal strength
mobile terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710897447.7A
Other languages
Chinese (zh)
Inventor
谭湛江
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201710897447.7A priority Critical patent/CN108307483A/en
Publication of CN108307483A publication Critical patent/CN108307483A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/18Selecting a network or a communication service
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Landscapes

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

Abstract

The invention discloses a kind of mobile terminals comprising memory, processor and is stored in the wireless network connection program that can be run on the memory and on the processor, wireless network connection program realizes following steps when being executed by processor:The wireless network near current location is scanned to obtain a wireless network list;It obtains the signal strength of each wireless network in the wireless network list and has connected number;Optimal wireless network is determined according to the signal strength and the number that has connected;Automatically the optimal wireless network is connected.Compared with prior art, the present invention, which realizes, automatically determines optimal wireless network and automatically accesses optimal wireless network, actively searches optimal wireless network without user and connects manually, avoid user's operation, improves user experience.

Description

Wireless network connecting method and mobile terminal
Technical field
The present invention relates to technical field of mobile terminals more particularly to a kind of wireless network connecting methods and mobile terminal.
Background technology
Currently, universal due to mobile payment and wireless local area network technology, many businessmans (such as market, dining room) all can Free WiFi is provided to use to customer.Especially in roaming, since data service campus network is higher, WiFi is not at must The internetwork connection mode that can lack.
However, after user enters shop and opens WLAN functions, it is required for the WiFi in the inquired work personnel shop every time Title and password select corresponding wireless network to carry out from the currently available wireless network list of mobile terminal again after knowing Connection, the wireless network in the wherein shop are defaulted as optimal wireless network.However, the wireless network connection mode whole process needs to use Family is manually operated, and cumbersome, user experience is poor.
Therefore, it is necessary to provide a kind of wireless network connecting method and mobile terminal to solve above-mentioned technical problem.
Invention content
It is a primary object of the present invention to propose a kind of wireless network connecting method and mobile terminal, it is intended to solve existing The technical issues of user's manual operation, cumbersome, poor user experience are needed in wireless network connection mode.
First, to achieve the above object, the present invention provides a kind of mobile terminal, and the mobile terminal includes memory, place It manages device and is stored in the wireless network connection program that can be run on the memory and on the processor, the wireless network Linker realizes following steps when being executed by the processor:
The wireless network near current location is scanned to obtain a wireless network list;
It obtains the signal strength of each wireless network in the wireless network list and has connected number;
Optimal wireless network is determined according to the signal strength and the number that has connected;
Automatically the optimal wireless network is connected.
Optionally, the processor is additionally operable to execute the wireless network connection program, to realize following steps:
Judge each wireless network for public network or private network according to the number that has connected;
It searches the strongest wireless network of signal strength in public network and is set as the optimal wireless network.
Optionally, after described the step of connecting the optimal wireless network automatically, the processor is additionally operable to execute institute Wireless network connection program is stated, to realize following steps:
Obtain the optimal wireless network allows connection duration;
In real time detection user access the optimal wireless network duration whether will reach it is described allow connect duration;
When the test results is yes, it prompts the user whether to disconnect the optimal wireless network.
Optionally, described to obtain the signal strength of each wireless network in the wireless network list and have connected number Before step, the processor is additionally operable to execute the wireless network connection program, to realize following steps:
Obtain the shop title corresponding to current location;
It searches and whether there is wireless network corresponding with the shop title in the wireless network list;
If lookup result is yes, it sets the wireless network found to the optimal wireless network;
If lookup result is no, the signal strength for obtaining each wireless network in the wireless network list is executed With the step of having connected number.
Meanwhile the present invention also provides a kind of wireless network connecting methods, are applied to mobile terminal, the wireless network connection Method includes the following steps:
The wireless network near current location is scanned to obtain a wireless network list;
It obtains the signal strength of each wireless network in the wireless network list and has connected number;
Optimal wireless network is determined according to the signal strength and the number that has connected;
Automatically the optimal wireless network is connected.
Optionally, described according to the signal strength and described to have connected the step of number determines optimal wireless network and include:
Judge each wireless network for public network or private network according to the number that has connected;
It searches the strongest wireless network of signal strength in public network and is set as the optimal wireless network.
Optionally, number is had connected described in the basis judges each wireless network for public network or private network Step is specially:
Judge each wireless network successively has connected whether number is more than default value;
If the determination result is YES, then the corresponding wireless network is determined as public network;
If judging result is no, the corresponding wireless network is determined as private network.
Optionally, further include after described the step of connecting the optimal wireless network automatically:
Obtain the optimal wireless network allows connection duration;
In real time detection user access the optimal wireless network duration whether will reach it is described allow connect duration;
When the test results is yes, it prompts the user whether to disconnect the optimal wireless network.
Optionally, described to obtain the signal strength of each wireless network in the wireless network list and have connected number Further include before step:
Obtain the shop title corresponding to current location;
It searches and whether there is wireless network corresponding with the shop title in the wireless network list;
If lookup result is yes, it sets the wireless network found to the optimal wireless network;
If lookup result is no, the signal strength for obtaining each wireless network in the wireless network list is executed With the step of having connected number.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium It is stored with wireless network connection program on storage medium, is realized as above-mentioned when the wireless network connection program is executed by processor The step of wireless network connecting method.
Compared to the prior art, it wireless network connecting method proposed by the invention, mobile terminal and computer-readable deposits Storage media can scan the wireless network near current location to obtain a wireless network list, later after opening WLAN functions Obtain in the wireless network list signal strength of each wireless network and have connected number, and according to the signal strength and The number that has connected determines optimal wireless network, finally connects the optimal wireless network automatically, automatic true to realize Determine optimal wireless network and automatically access optimal wireless network, actively searches optimal wireless network without user and connect manually It connects, avoids user's operation, improve user experience.
Description of the drawings
The hardware architecture diagram of Fig. 1 one optional mobile terminals of each embodiment to realize the present invention;
Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention;
Fig. 3 is the high-level schematic functional block diagram of wireless network connection program first embodiment of the present invention;
Fig. 4 is the high-level schematic functional block diagram of wireless network connection program second embodiment of the present invention;
Fig. 5 is the implementation process diagram of wireless network connecting method first embodiment of the present invention;
Fig. 6 is the implementation process diagram of wireless network connecting method second embodiment of the present invention;
Fig. 7 will be reached for the duration of user's access optimal wireless network when allowing to connect duration, shown on mobile terminal One embodiment of prompting interface schematic diagram.
Reference numeral:
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific implementation mode
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, using for indicating that the suffix of such as " module ", " component " or " unit " of element is only The explanation for being conducive to the present invention, itself does not have a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, tablet Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable The shiftings such as media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer The fixed terminals such as dynamic terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special Except element for moving purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware architecture diagram of its mobile terminal of each embodiment to realize the present invention, the shifting Moving terminal 100 may include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1 Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram, Either combine certain components or different components arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating Frequency unit 101 can also be communicated with network and other equipment by radio communication.Above-mentioned wireless communication can use any communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102 Sub- mail, browsing webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need It to be omitted in the range for the essence for not changing invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, it is that radio frequency unit 101 or WiFi module 102 are received or The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103 The relevant audio output of specific function executed with mobile terminal 100 can also be provided (for example, call signal receives sound, disappears Breath receives sound etc.).Audio output unit 103 may include loud speaker, buzzer etc..
A/V input units 104 are for receiving audio or video signal.A/V input units 104 may include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained by image capture apparatus (such as camera) in image capture mode carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case of telephone calling model. Microphone 1042 can implement various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition) The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, size and the direction of gravity are can detect that when static, can be used to identify the application of mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode may be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family is arranged and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect user on it or neighbouring touch operation (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071 Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating lever etc. It is one or more, do not limit herein specifically.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel 1061 be to realize the function that outputs and inputs of mobile terminal as two independent components, but in certain embodiments, can The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example, External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with For the transmission data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can include mainly storing program area And storage data field, wherein storing program area can storage program area, application program (such as the sound needed at least one function Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place Reason device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, below to the communications network system that is based on of mobile terminal of the present invention into Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system System is the LTE system of universal mobile communications technology, which includes communicating UE (User Equipment, the use of connection successively Family equipment) (the lands Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (ServingGate Way, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers Such as the function of home location register (not shown) etc, and some are preserved in relation to use such as service features, data rates The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201 Address is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resources Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And the following new network system etc., it does not limit herein.
Based on 100 hardware configuration of above-mentioned mobile terminal and communications network system, each embodiment of the method for the present invention is proposed.
First, the present invention proposes that a kind of mobile terminal, the mobile terminal include memory, processor and be stored in described On memory and the wireless network connection program 400 that can run on the processor.
As shown in figure 3, being the high-level schematic functional block diagram of 400 first embodiment of wireless network connection program of the present invention.At this In embodiment, the wireless network connection program 400 can be divided into one or more modules, one or more of modules It is stored in the memory 109 of the mobile terminal 100, and (is the control in the present embodiment by one or more processors Device 110) it is performed, to complete the present invention.For example, in figure 3, the wireless network connection program 400, which can be divided into, sweeps Retouch module 401, data obtaining module 402, optimum network determining module 403 and link block 404.The so-called module of the present invention Refer to a series of a kind of acquisition machine program instruction sections that can complete specific function, than obtaining machine program more suitable for describing software Implementation procedure in the mobile terminal 100.The concrete function of above-mentioned each function module 401-404 will be carried out below detailed Description.Wherein:
The scan module 401, for scanning the wireless network near current location to obtain a wireless network list.This In embodiment, after mobile terminal opens WLAN functions, mobile terminal can search for all wireless networks on current location periphery automatically Network, the wireless network include all wireless networks that can search for such as private network, public network, and each wireless network usually with The form of wireless network list records.
Described information acquisition module 402, the signal strength for obtaining each wireless network in the wireless network list And have connected number.Specifically, when mobile terminal to search is to wireless network, the network information of the wireless network can be learnt, it should The network information includes network name (i.e. network SSID), encrypted state, has connected the information such as number and signal strength.This implementation In example, after searching wireless network list, the signal strength of each wireless network in wireless network list can be obtained and connected Connect number.
The optimum network determining module 403, for being determined most preferably according to the signal strength and the number that has connected Wireless network.Specifically, according to the signal strength and described having connected the step of number determines optimal wireless network and including: (1) having connected number according to judges each wireless network for public network or private network;(2) it searches in public network The strongest wireless network of signal strength is simultaneously set as optimal wireless network.Wherein, judge that wireless network is according to the number of having connected The principle of public network or private network is:Private network user usually only allows the people of the only a fews such as one or two to access it The wireless network provided, and the access number of public network generally has very much, therefore may determine that pair according to the number of having connected The wireless network answered is private network or public network.Specifically, when the number that has connected is more than default value, judge that this is wireless Network is public network, if the number on the contrary that has connected is not more than default value, judges the wireless network for private network.This Outside, after basis, which has connected number, finds public network included in wireless network list, to belonging to each of public network A wireless network sorts according to signal strength, then sets the strongest wireless network of signal strength in public network to best nothing Gauze network, i.e., optimal wireless network is the strongest public network of signal strength in the present invention.
The link block 404, for connecting the optimal wireless network automatically.In the present embodiment, when the best nothing of determination After gauze network, mobile terminal can be sent connection request from trend optimal wireless network and be established with the optimal wireless network with automatic Connection.It should be noted that the present invention automatically accesses optimal wireless network to realize, it is that each wireless network of acquiescence does not need Password is provided.
By above-mentioned module 401-404, wireless network connection program of the present invention can scan current after opening WLAN functions Wireless network near position obtains each wireless network in the wireless network list later to obtain a wireless network list Signal strength and have connected number, and optimal wireless network is determined according to the signal strength and the number that has connected, most It connects the optimal wireless network automatically afterwards, automatically determines optimal wireless network to realize and automatically access optimal wireless Network is actively searched optimal wireless network without user and is connected manually, avoid user's operation, improves user experience.
Further, the first embodiment based on aforementioned present invention wireless network connection program 400 proposes that the present invention is wireless The second embodiment of network attachment procedure 400.Referring to FIG. 4, Fig. 4 is implemented for wireless network connection program 400 second of the present invention The high-level schematic functional block diagram of example, compared with first embodiment, in the present embodiment, wireless network connection program 400 further includes searching Module 405, connection duration judgment module 406 and reminding module 407.In the present embodiment, each function module is described as follows:
The searching module 405 for obtaining the shop title corresponding to current location, and searches the wireless network row It whether there is wireless network corresponding with the shop title in table;It is described wireless by what is found if lookup result is yes Network settings are the optimal wireless network;If lookup result is no, described information acquisition module 402 is executed.The present embodiment In, after opening WLAN functionality scans and obtaining wireless network list, mobile terminal can automatically select optimal wireless network and automatic It is attached, wherein when automatically selecting optimal wireless network, in the present embodiment, first passes through locating module and obtain user's Current location, then obtain current location corresponding to shop title, the step be for realizing:It is current residing for user Location determination optimal wireless network.Due to that can include shop name information in the title of the wireless network of general shop offer, because Shop title corresponding to current location got is compared with the title of each wireless network for this can determine whether currently Wireless network list in whether there is wireless network corresponding with the shop title.In the present embodiment, when wireless network arranges When existing with shop residing for user (shop i.e. corresponding to current location) corresponding wireless network in table, which is set It is set to optimal wireless network.
The connection duration judgment module 406, for obtain the optimal wireless network allow connect duration, and in real time Detection user access the optimal wireless network duration whether will reach it is described allow connect duration.Specifically, in order to true The normal use of wireless network is protected, the load for preventing user's loiter network from being brought to wireless network, public network can be pre- under normal circumstances First being arranged one allows to connect duration, that is, allows longest usage time of each mobile terminal after accessing wireless network, such as should The 30 minutes a length of, durations such as 20 minutes when allowing to connect.After user accesses optimal wireless network, mobile terminal can meet user The time for entering the optimal wireless network carries out timing, and whether i.e. detection user accesses the duration of the optimal wireless network in real time By reach optimal wireless network allow connect duration, if will reach it is described allow connect duration, execute reminding module 407.Wherein, judge user access the optimal wireless network duration whether will reach it is described allow connect duration the step of Can be specially:Judge whether user accesses the duration of the optimal wireless network and the difference for allowing to connect duration Less than one predetermined threshold value if the determination result is YES then judges that user accesses the duration of the optimal wireless network and will reach It is described to allow to connect duration.
The reminding module 407, the testing result for long judgment module 406 when attached are to prompt user to be when being It is no to disconnect the optimal wireless network.In the present embodiment, when the duration that user accesses the optimal wireless network will reach institute State allow connect duration when, can prompt the user whether disconnect optimal wireless network, user can determine according to their needs disconnect or The optimal wireless network currently connected is not turned off.By prompting the user whether to disconnect and providing option of operation to user, Ke Yishi Current family temporarily disconnects the wireless network when not needing network, and the duration due to accessing the optimal wireless network is avoided to reach Allow to connect duration and cause not connecting when must be using wireless network.Certainly, the present embodiment also in can also prompt to use The information such as the remaining connection duration of optimal wireless network described in family.Referring to FIG. 7, Fig. 7, which is user, accesses optimal wireless network Duration will reach when allowing to connect duration, the schematic diagram of one embodiment of prompting interface shown on mobile terminal, such as Fig. 7 institutes Show, what mobile terminal can prompt user's optimal wireless network at this time allows to connect duration (such as 30 minutes) and remaining connection duration (such as 5 minutes), and the option of operation for disconnecting or not turning off and (continue) is provided to user.
By above-mentioned module 401-407, wireless network connection program proposed by the invention is after opening WLAN functions, meeting The wireless network near current location is scanned to obtain a wireless network list, obtains the store name corresponding to current location later Claim, and search and whether there is wireless network corresponding with the shop title in the wireless network list, and if it exists, then will be with The corresponding wireless network of shop title is set as optimal wireless network, if being not present, according to the letter of each wireless network Number intensity and have connected number and determine optimal wireless network, connect the optimal wireless network automatically later, to realize from It is dynamic to determine optimal wireless network and automatically access optimal wireless network, optimal wireless network and hand are actively searched without user Dynamic connection, avoids user's operation, improves user experience;Meanwhile the present invention obtains after automatically accessing optimal wireless network The optimal wireless network allows to connect duration, and whether i.e. detection user accesses the duration of the optimal wireless network in real time To reach it is described allow connect duration prompt the user whether to disconnect the optimal wireless network, pass through when the test results is yes It prompts the user whether to disconnect and provide option of operation to user, user may be implemented and temporarily disconnect this when not needing network wirelessly Network is avoided since the duration arrival for accessing the optimal wireless network allows connection duration and leads to that wireless network must be being used It can not be connected when network.
Further it is proposed that a kind of wireless network connecting method, which is applied to Fig. 1 to Fig. 2 Shown mobile terminal, the mobile terminal include memory and processor.
As shown in figure 5, being the implementing procedure figure of wireless network connecting method first embodiment of the present invention.In the present embodiment In, the execution sequence of the step in flow chart shown in fig. 5 can change according to different requirements, and certain steps can be omitted. The wireless network connecting method includes:
Step S501 scans the wireless network near current location to obtain a wireless network list.
In the present embodiment, after mobile terminal opens WLAN functions, mobile terminal can search for current location periphery automatically All wireless networks, the wireless network include all wireless networks that can search for such as private network, public network, and each wireless Network records usually in the form of wireless network list.
Step S502 obtains the signal strength of each wireless network in the wireless network list and has connected number.
Specifically, when mobile terminal to search is to wireless network, the network information of the wireless network can be learnt, network letter Breath includes network name (i.e. network SSID), encrypted state, has connected the information such as number and signal strength.In the present embodiment, After searching wireless network list, the signal strength of each wireless network in wireless network list can be obtained and have connected people Number.
Step S503 determines optimal wireless network according to the signal strength and the number that has connected.
Specifically, according to the signal strength and described having connected the step of number determines optimal wireless network and including:(1) Judge each wireless network for public network or private network according to the number that has connected;(2) it searches and believes in public network Number strongest wireless network of intensity is simultaneously set as optimal wireless network.Wherein, judge wireless network for public affairs according to the number of having connected The principle of common network network or private network is:Private network user usually only allows the people of the only a fews such as one or two to access its institute The wireless network of offer, and the access number of public network generally has very much, therefore correspondence may determine that according to the number of having connected Wireless network be private network or public network.Specifically, when the number that has connected is more than default value, the wireless network is judged Network is public network, if the number on the contrary that has connected is not more than default value, judges the wireless network for private network.In addition, After basis, which has connected number, finds public network included in wireless network list, to belonging to each nothing of public network Gauze network sorts according to signal strength, then sets the strongest wireless network of signal strength in public network to optimal wireless net Network, i.e., optimal wireless network is the strongest public network of signal strength in the present invention.
Step S504 connects the optimal wireless network automatically.
In the present embodiment, after determining optimal wireless network, mobile terminal can send from trend optimal wireless network and connect Request is connected with automatic established with the optimal wireless network.It should be noted that the present invention automatically accesses most preferably to realize Wireless network, which is each wireless network of acquiescence, need not provide password.
S501-S504 through the above steps, wireless network connecting method of the present invention can scan and work as after opening WLAN functions Wireless network near front position obtains each wireless network in the wireless network list later to obtain a wireless network list The signal strength of network and number is had connected, and optimal wireless network is determined according to the signal strength and the number that has connected, The optimal wireless network is finally connected automatically, is automatically determined optimal wireless network to realize and is automatically accessed best nothing Gauze network is actively searched optimal wireless network without user and is connected manually, avoid user's operation, improves user's body It tests.
Further, it is based on above-mentioned first embodiment, proposes the second embodiment of wireless network connecting method of the present invention.Such as It is the implementing procedure figure of wireless network connecting method second embodiment of the present invention shown in Fig. 6.In the present embodiment, according to difference Demand, the execution sequence of the step in flow chart shown in fig. 6 can change, and certain steps can be omitted.The wireless network Network connection method includes:
Step S601 scans the wireless network near current location to obtain a wireless network list.
Step S602 obtains the shop title corresponding to current location.
In the present embodiment, after unlatching WLAN functionality scans obtain wireless network list, mobile terminal can automatically select most Good wireless network is simultaneously attached automatically, wherein when automatically selecting optimal wireless network, in the present embodiment, it is fixed to first pass through Position module obtain user current location, then obtain current location corresponding to shop title, the step be for realizing:Root Optimal wireless network is determined according to the current location residing for user.
Step S603 is searched and be whether there is wireless network corresponding with the shop title in the wireless network list, If lookup result is yes, S604 is thened follow the steps, if conversely, lookup result is no, thens follow the steps S605.
Due to that can include shop name information in the title of the wireless network of general shop offer, work as what is got Shop title corresponding to front position is compared with the title of each wireless network can determine whether current wireless network list In whether there is wireless network corresponding with the shop title.
Step S604 sets the wireless network found to the optimal wireless network, and executes step S607. In the present embodiment, when in wireless network list exist nothing corresponding with shop residing for user (shop i.e. corresponding to current location) When gauze network, it sets the wireless network to optimal wireless network.
Step S605 obtains the signal strength of each wireless network in the wireless network list and has connected number.
Step S606 judges that each wireless network for public network or private network, is looked into according to the number that has connected It looks for the strongest wireless network of signal strength in public network and is set as the optimal wireless network.Specifically, step S606 is According to signal strength and the specific steps for having connected number and determining optimal wireless network.Wherein, sentenced according to the number of having connected Disconnected wireless network is the principle of public network or private network:Private network user usually only allows one or two equal few Several people accesses its wireless network provided, and the access number of public network generally has very much, therefore according to having connected people Number may determine that corresponding wireless network is private network or public network.Specifically, when the number that has connected is more than default value When, the wireless network is judged for public network, if the number on the contrary that has connected is not more than default value, judges that the wireless network is Private network.In addition, after basis has connected number and finds public network included in wireless network list, it is public to belonging to Each wireless network of common network network sorts according to signal strength, then sets the strongest wireless network of signal strength in public network It is set to optimal wireless network, i.e., optimal wireless network is the strongest public network of signal strength in the present invention.
Step S607 connects the optimal wireless network automatically.
Step S608, obtain the optimal wireless network allows connection duration.
Specifically, in order to ensure the normal use of wireless network, the load for preventing user's loiter network from being brought to wireless network, one As in the case of public network can pre-set one allow connect duration, that is, allow each mobile terminal after accessing wireless network Longest usage time, such as this allow connection when 30 minutes a length of, 20 minutes durations.
Whether step S609, detecting user in real time and accessing the duration of the optimal wireless network will reach and described allow to connect Duration is connect, if testing result is yes, thens follow the steps S610, otherwise repeats step S609.
After user accesses optimal wireless network, the time that mobile terminal can access user on the optimal wireless network carries out Timing, and detection user accesses the duration of the optimal wireless network and whether will reach optimal wireless network and allow to connect in real time Connect duration, if will reach it is described allow connect duration, then follow the steps S610.Wherein, judge that user accesses the best nothing The duration of gauze network whether will reach it is described allow connect duration the step of can be specially:Judge described in user's access The duration of optimal wireless network allows whether the difference for connecting duration is less than a predetermined threshold value with described, if judging result is Be then judge user access the optimal wireless network duration will reach it is described allow connect duration.
Step S610 is prompted the user whether to disconnect the optimal wireless network, and is selected to disconnect or do not turn off according to user The optimal wireless network.
In the present embodiment, when user access the optimal wireless network duration will reach it is described allow connect duration When, it can prompt the user whether to disconnect optimal wireless network, user can determine to disconnect or do not turn off current connection according to their needs Optimal wireless network.By prompting the user whether to disconnect and providing option of operation to user, user may be implemented and do not needing The wireless network is temporarily disconnected when network, avoid allowing to connect duration due to the duration arrival for accessing the optimal wireless network and Cause not connecting when must be using wireless network.Certainly, the present embodiment also in can also prompt optimal wireless described in user The information such as the remaining connection duration of network.Referring to FIG. 7, Fig. 7 be user access optimal wireless network duration will reach it is fair When connecting duration perhaps, the schematic diagram of one embodiment of prompting interface shown on mobile terminal, as shown in fig. 7, mobile terminal at this time Can prompt user's optimal wireless network allows to connect duration (such as 30 minutes) and remaining connection duration (such as 5 minutes), and carries For disconnecting or not turning off the option of operation of (i.e. continuation) to user.
S601 to S610 through the above steps, wireless network connecting method of the present invention can scan after opening WLAN functions Wireless network near current location obtains the shop title corresponding to current location later to obtain a wireless network list, And search and whether there is wireless network corresponding with the shop title in the wireless network list, and if it exists, then will be with institute It states the corresponding wireless network of shop title and is set as optimal wireless network, if being not present, according to the signal of each wireless network It intensity and has connected number and determines optimal wireless network, connect the optimal wireless network automatically later, it is automatic to realize It determines optimal wireless network and automatically accesses optimal wireless network, optimal wireless network and manual is actively searched without user Connection, avoids user's operation, improves user experience;Meanwhile the present invention obtains institute after automatically accessing optimal wireless network That states optimal wireless network allows to connect duration, and whether detection user accesses the duration of the optimal wireless network and will in real time Reach it is described allow connect duration prompt the user whether to disconnect the optimal wireless network, by carrying when the test results is yes Show whether user disconnects and provide option of operation to user, user may be implemented and temporarily disconnect the wireless network when not needing network Network is avoided since the duration arrival for accessing the optimal wireless network allows connection duration and leads to that wireless network must be being used When and can not connect.
In addition, the present invention also provides a kind of computer readable storage medium, stored on the computer readable storage medium There are wireless network linker, the wireless network connection program to realize the wireless network described in Fig. 5 to Fig. 6 when being executed by processor The step of network connection method.
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements include not only those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this There is also other identical elements in the process of element, method, article or device.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (can be mobile phone, computer, clothes Be engaged in device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of mobile terminal, which is characterized in that the mobile terminal includes memory, processor and is stored in the memory Wireless network connection program that is upper and can running on the processor, the wireless network connection program are held by the processor Following steps are realized when row:
The wireless network near current location is scanned to obtain a wireless network list;
It obtains the signal strength of each wireless network in the wireless network list and has connected number;
Optimal wireless network is determined according to the signal strength and the number that has connected;
Automatically the optimal wireless network is connected.
2. mobile terminal as described in claim 1, which is characterized in that the processor is additionally operable to execute the wireless network company Program is connect, to realize following steps:
Judge each wireless network for public network or private network according to the number that has connected;
It searches the strongest wireless network of signal strength in public network and is set as the optimal wireless network.
3. mobile terminal as claimed in claim 1 or 2, which is characterized in that described to connect the optimal wireless network automatically After step, the processor is additionally operable to execute the wireless network connection program, to realize following steps:
Obtain the optimal wireless network allows connection duration;
In real time detection user access the optimal wireless network duration whether will reach it is described allow connect duration;
When the test results is yes, it prompts the user whether to disconnect the optimal wireless network.
4. mobile terminal as described in claim 1, which is characterized in that each wireless in the acquisition wireless network list With before the step of having connected number, the processor is additionally operable to execute the wireless network connection journey signal strength of network Sequence, to realize following steps:
Obtain the shop title corresponding to current location;
It searches and whether there is wireless network corresponding with the shop title in the wireless network list;
If lookup result is yes, it sets the wireless network found to the optimal wireless network;
If lookup result is no, the signal strength of each wireless network and of obtaining in the wireless network list is executed The step of connection number.
5. a kind of wireless network connecting method, it is applied to mobile terminal, which is characterized in that the wireless network connecting method includes Following steps:
The wireless network near current location is scanned to obtain a wireless network list;
It obtains the signal strength of each wireless network in the wireless network list and has connected number;
Optimal wireless network is determined according to the signal strength and the number that has connected;
Automatically the optimal wireless network is connected.
6. wireless network connecting method as claimed in claim 5, which is characterized in that described according to the signal strength and described The number of having connected determines that the step of optimal wireless network includes:
Judge each wireless network for public network or private network according to the number that has connected;
It searches the strongest wireless network of signal strength in public network and is set as the optimal wireless network.
7. wireless network connecting method as claimed in claim 6, which is characterized in that have connected number judgement described in the basis Each wireless network be public network or private network the step of be specially:
Judge each wireless network successively has connected whether number is more than default value;
If the determination result is YES, then the corresponding wireless network is determined as public network;
If judging result is no, the corresponding wireless network is determined as private network.
8. such as claim 5 to 7 any one of them wireless network connecting method, which is characterized in that described in the automatic connection Further include after the step of optimal wireless network:
Obtain the optimal wireless network allows connection duration;
In real time detection user access the optimal wireless network duration whether will reach it is described allow connect duration;
When the test results is yes, it prompts the user whether to disconnect the optimal wireless network.
9. wireless network connecting method as claimed in claim 5, which is characterized in that described to obtain in the wireless network list The signal strength of each wireless network and the step of have connected number before further include:
Obtain the shop title corresponding to current location;
It searches and whether there is wireless network corresponding with the shop title in the wireless network list;
If lookup result is yes, it sets the wireless network found to the optimal wireless network;
If lookup result is no, the signal strength of each wireless network and of obtaining in the wireless network list is executed The step of connection number.
10. a kind of computer readable storage medium, which is characterized in that be stored with wireless network on the computer readable storage medium Network linker is realized when the wireless network connection program is executed by processor as described in any one of claim 5 to 9 The step of wireless network connecting method.
CN201710897447.7A 2017-09-28 2017-09-28 wireless network connecting method and mobile terminal Pending CN108307483A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710897447.7A CN108307483A (en) 2017-09-28 2017-09-28 wireless network connecting method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710897447.7A CN108307483A (en) 2017-09-28 2017-09-28 wireless network connecting method and mobile terminal

Publications (1)

Publication Number Publication Date
CN108307483A true CN108307483A (en) 2018-07-20

Family

ID=62869328

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710897447.7A Pending CN108307483A (en) 2017-09-28 2017-09-28 wireless network connecting method and mobile terminal

Country Status (1)

Country Link
CN (1) CN108307483A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109450746A (en) * 2018-10-17 2019-03-08 珠海格力电器股份有限公司 Method of network entry, device, server and the storage medium of power peak regulation system equipment
CN110213733A (en) * 2019-05-23 2019-09-06 武汉金牛经济发展有限公司 A kind of electromagnetism hot-melt welding machine internet of things system
CN110831115A (en) * 2020-01-09 2020-02-21 炬星科技(深圳)有限公司 Method, device and storage medium for dynamically selecting network connection point
CN110958608A (en) * 2018-09-26 2020-04-03 腾讯科技(深圳)有限公司 Wireless network connection method, device, storage medium and computer equipment
WO2023050400A1 (en) * 2021-09-30 2023-04-06 西门子股份公司 Mobile edge device, connection manager, system, method, apparatus, and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103024929A (en) * 2012-12-20 2013-04-03 惠州Tcl移动通信有限公司 Mobile terminal and method for connecting wireless network based on mobile terminal
CN103533670A (en) * 2013-10-15 2014-01-22 深圳市江波龙电子有限公司 Method and device for connecting wireless network equipment, and wireless network system
CN104837215A (en) * 2015-04-14 2015-08-12 广东欧珀移动通信有限公司 Wireless access point connecting method and device
CN106792952A (en) * 2016-12-22 2017-05-31 三星半导体(中国)研究开发有限公司 The method and apparatus of Wireless Fidelity access point are connected to for terminal
CN107124732A (en) * 2017-05-12 2017-09-01 北京奇虎科技有限公司 The method for digging and device of public access wireless LAN

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103024929A (en) * 2012-12-20 2013-04-03 惠州Tcl移动通信有限公司 Mobile terminal and method for connecting wireless network based on mobile terminal
CN103533670A (en) * 2013-10-15 2014-01-22 深圳市江波龙电子有限公司 Method and device for connecting wireless network equipment, and wireless network system
CN104837215A (en) * 2015-04-14 2015-08-12 广东欧珀移动通信有限公司 Wireless access point connecting method and device
CN106792952A (en) * 2016-12-22 2017-05-31 三星半导体(中国)研究开发有限公司 The method and apparatus of Wireless Fidelity access point are connected to for terminal
CN107124732A (en) * 2017-05-12 2017-09-01 北京奇虎科技有限公司 The method for digging and device of public access wireless LAN

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110958608A (en) * 2018-09-26 2020-04-03 腾讯科技(深圳)有限公司 Wireless network connection method, device, storage medium and computer equipment
CN109450746A (en) * 2018-10-17 2019-03-08 珠海格力电器股份有限公司 Method of network entry, device, server and the storage medium of power peak regulation system equipment
CN110213733A (en) * 2019-05-23 2019-09-06 武汉金牛经济发展有限公司 A kind of electromagnetism hot-melt welding machine internet of things system
CN110213733B (en) * 2019-05-23 2022-07-19 武汉金牛经济发展有限公司 Internet of things system of electromagnetic hot melting welding machine
CN110831115A (en) * 2020-01-09 2020-02-21 炬星科技(深圳)有限公司 Method, device and storage medium for dynamically selecting network connection point
WO2021139819A1 (en) * 2020-01-09 2021-07-15 炬星科技(深圳)有限公司 Method for dynamic selection of network connection point, device, and storage medium
WO2023050400A1 (en) * 2021-09-30 2023-04-06 西门子股份公司 Mobile edge device, connection manager, system, method, apparatus, and medium

Similar Documents

Publication Publication Date Title
CN106961706A (en) Method, mobile terminal and the computer-readable recording medium of communication pattern switching
CN108307483A (en) wireless network connecting method and mobile terminal
CN107343083A (en) One kind lifting game experiencing method, apparatus and computer-readable recording medium
CN108684068A (en) network search method, mobile terminal and computer readable storage medium
CN109548114A (en) Public land mobile network cut-in method, terminal and computer readable storage medium
CN108540297A (en) A kind of chat management method, mobile terminal and computer readable storage medium
CN109005574A (en) Cell selecting method, mobile terminal and computer readable storage medium
CN110300435A (en) A kind of communication pattern switching method, terminal and computer readable storage medium
CN107995060A (en) Audio frequency of mobile terminal test method, device and computer-readable recording medium
CN108172161A (en) Display methods, mobile terminal and computer readable storage medium based on flexible screen
CN107580336A (en) A kind of method for connecting network, terminal and computer-readable recording medium
CN110187808A (en) Dynamic wallpaper setting method, device and computer readable storage medium
CN107197470A (en) Wireless network connecting method, mobile terminal and computer-readable recording medium
CN109803249A (en) A kind of WIFI network sharing method, terminal and computer readable storage medium
CN109842725A (en) A kind of method for controlling volume of mobile terminal, mobile terminal and storage medium
CN108776600A (en) Application program pretrigger method, mobile terminal and computer readable storage medium
CN108810264A (en) A kind of brightness adjusting method and terminal, computer readable storage medium
CN109151174A (en) Message display method, wearable device and computer readable storage medium
CN108093407A (en) Pseudo-base station cell recognition method, mobile terminal and computer readable storage medium
CN110139332A (en) A kind of residence reselecting of mobile terminal, mobile terminal and storage medium
CN109522276A (en) Application icon management method, terminal and computer readable storage medium
CN108541046A (en) A kind of network selecting method, terminal and storage medium
CN108540697A (en) It is double before and after one kind to take the photograph circuit structure and its mobile terminal
CN107466081A (en) A kind of wireless switching method and terminal
CN107580357A (en) Limitation communication means, equipment and the computer-readable storage medium of a kind of black list user

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

RJ01 Rejection of invention patent application after publication