CN105407473B - WLAN finds method and device - Google Patents

WLAN finds method and device Download PDF

Info

Publication number
CN105407473B
CN105407473B CN201510695294.9A CN201510695294A CN105407473B CN 105407473 B CN105407473 B CN 105407473B CN 201510695294 A CN201510695294 A CN 201510695294A CN 105407473 B CN105407473 B CN 105407473B
Authority
CN
China
Prior art keywords
wlan
mode
application program
scanning
terminal
Prior art date
Application number
CN201510695294.9A
Other languages
Chinese (zh)
Other versions
CN105407473A (en
Inventor
冯超
刘丹
杨冬东
Original Assignee
小米科技有限责任公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 小米科技有限责任公司 filed Critical 小米科技有限责任公司
Priority to CN201510695294.9A priority Critical patent/CN105407473B/en
Publication of CN105407473A publication Critical patent/CN105407473A/en
Application granted granted Critical
Publication of CN105407473B publication Critical patent/CN105407473B/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The disclosure is directed to a kind of WLANs to find method and device, wherein method includes: to obtain the presupposed information of the application program when terminal receives the WLAN discovery request of application program transmission;According to the presupposed information of the application program, the scanning mode of the terminal Current Scan WLAN is determined.By the technical solution, data are sent according to type, the history of application program of the presupposed information of application program, such as application program, the scanning mode of terminal Current Scan WLAN are determined, such as drive sweep mode or active scan mode.In this way, corresponding scanning mode is determined according to the information of application program, WLAN occupation problem caused by active scan can be carried out always to avoid application program, the electricity that frequently scanning is caused is reduced to expend, and due to drive sweep more power saving than active scan, so as to reduce terminal power consumption to a certain extent, extend the cruise duration of terminal.

Description

WLAN finds method and device

Technical field

This disclosure relates to which wireless local area network technology field more particularly to a kind of WLAN find method and device.

Background technique

With the development of science and technology, the function of smart phone is more and more, various application programs emerge one after another, but much answer Some consistency operations can be carried out in the case where user's unaware with program, these operations may result in some power consumptions, wireless The problems such as local area network occupies, directly affects the usage experience of user.

Summary of the invention

The embodiment of the present disclosure provides a kind of WLAN discovery method and device, including following technical solution:

According to the first aspect of the embodiments of the present disclosure, a kind of WLAN discovery method is provided, comprising:

When terminal receives the WLAN discovery request of application program transmission, the default of the application program is obtained Information;

According to the presupposed information of the application program, the scanning mode of the terminal Current Scan WLAN is determined, Wherein, the scanning mode includes active scan mode and drive sweep mode, and the active scan mode is logical for the terminal It crosses to wireless local area networks broadcast probe request, and receives the probing response frame of WLAN return to scan wireless local area Net, the drive sweep mode are the beacon frame that is sent by monitoring wireless local area network of the terminal come Wlan scanning;

WLAN is found according to the determining scanning mode.

In one embodiment, the presupposed information includes the type of the application program, described to apply journey according to described The presupposed information of sequence determines the scanning mode of the terminal Current Scan WLAN, comprising:

Judge whether the type of the application program belongs to preset kind;

When the type of the application program belongs to preset kind, sweeping for the terminal Current Scan WLAN is determined Retouching mode is active scanning mode;

When the type of the application program is not belonging to preset kind, the terminal Current Scan WLAN is determined Scanning mode is drive sweep mode.

In one embodiment, the presupposed information includes that the application program sends going through for WLAN discovery request History sends parameter, and the presupposed information according to the application program determines sweeping for the terminal Current Scan WLAN Retouch mode, comprising:

Judge that the history sends whether parameter is greater than or equal to default transmission parameter;

When the history, which sends parameter, is greater than or equal to default transmission parameter, the wireless office of terminal Current Scan is determined The scanning mode of domain net is drive sweep mode;

When the history, which sends parameter, is less than default transmission parameter, the terminal Current Scan WLAN is determined Scanning mode is active scanning mode.

In one embodiment, it includes that history transmission times or history send frequency that the history, which sends parameter,.

In one embodiment, the method also includes:

After the scanning mode for determining the terminal Current Scan WLAN is drive sweep mode, the end is detected The moving distance at end;

When the moving distance is greater than or equal to pre-determined distance, sweeping for the terminal Current Scan WLAN is determined Retouching mode is active scanning mode.

According to the second aspect of an embodiment of the present disclosure, a kind of WLAN discovery device is provided, comprising:

Module is obtained, when for receiving the WLAN discovery request of application program transmission when terminal, described in acquisition The presupposed information of application program;

First determining module, the presupposed information of the application program for being obtained according to the acquisition module, determines institute State the scanning mode of terminal Current Scan WLAN, wherein the scanning mode includes active scan mode and passively sweeps Retouch mode, the active scan mode is the terminal by wireless local area networks broadcast probe request, and receives wireless office The probing response frame that domain net returns carrys out Wlan scanning, and the drive sweep mode is that the terminal passes through monitoring wireless office The beacon frame that domain net is sent carrys out Wlan scanning;

Discovery module, the scanning mode for being determined according to first determining module find WLAN.

In one embodiment, the presupposed information includes the type of the application program, the first determining module packet It includes:

First judging submodule, for judging whether the type of the application program belongs to preset kind;

First determines submodule, for judging that it is default that the type of the application program belongs in first judging submodule When type, determine that the scanning mode of the terminal Current Scan WLAN is active scanning mode;

Second determines submodule, for judging that it is pre- that the type of the application program is not belonging in first judging submodule If when type, determining that the scanning mode of the terminal Current Scan WLAN is drive sweep mode.

In one embodiment, the presupposed information includes that the application program sends going through for WLAN discovery request History sends parameter, and first determining module includes:

Second judgment submodule, for judging that the history sends whether parameter is greater than or equal to default transmission parameter;

Third determines submodule, for judging that the history sends parameter and is greater than or equal to when the second judgment submodule When default transmission parameter, determine that the scanning mode of the terminal Current Scan WLAN is drive sweep mode;

4th determines submodule, for judging that the history sends parameter and is less than default hair when the second judgment submodule When sending parameter, determine that the scanning mode of the terminal Current Scan WLAN is active scanning mode.

In one embodiment, it includes that history transmission times or history send frequency that the history, which sends parameter,.

In one embodiment, described device further include:

Detection module, for being drive sweep mode in the scanning mode for determining the terminal Current Scan WLAN Afterwards, the moving distance of the terminal is detected;

Second determining module, for detecting that the moving distance is greater than or equal to pre-determined distance in the detection module When, determine that the scanning mode of the terminal Current Scan WLAN is active scanning mode.

According to the third aspect of an embodiment of the present disclosure, a kind of WLAN discovery device is provided, comprising:

Processor;

Memory for storage processor executable instruction;

Wherein, the processor is configured to:

When terminal receives the WLAN discovery request of application program transmission, the default of the application program is obtained Information;

According to the presupposed information of the application program, the scanning mode of the terminal Current Scan WLAN is determined, Wherein, the scanning mode includes active scan mode and drive sweep mode, and the active scan mode is logical for the terminal It crosses to wireless local area networks broadcast probe request, and receives the probing response frame of WLAN return to scan wireless local area Net, the drive sweep mode are the beacon frame that is sent by monitoring wireless local area network of the terminal come Wlan scanning;

WLAN is found according to the determining scanning mode.

The technical scheme provided by this disclosed embodiment can include the following benefits:

Above-mentioned technical proposal is sent out according to the presupposed information of application program, such as type, the history of application program of application program Data etc. are sent, determine the scanning mode of terminal Current Scan WLAN, such as drive sweep mode or active scan mode.This Sample determines corresponding scanning mode according to the information of application program, active scan can be carried out always to avoid application program and caused WLAN occupation problem, reduce the electricity that frequently scanning is caused and expend, and more than active scan due to drive sweep Power saving extends the cruise duration of terminal so as to reduce terminal power consumption to a certain extent.

It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.

Detailed description of the invention

The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.

Fig. 1 is the flow chart of WLAN discovery method shown according to an exemplary embodiment.

Fig. 2 is the process of step S102 in a kind of WLAN discovery method shown according to an exemplary embodiment Figure.

Fig. 3 is the process of step S102 in another WLAN discovery method shown according to an exemplary embodiment Figure.

Fig. 4 is the flow chart according to another WLAN discovery method shown in an exemplary embodiment one.

Fig. 5 is the block diagram of WLAN discovery device shown according to an exemplary embodiment.

Fig. 6 is the frame of the first determining module in a kind of WLAN discovery device shown according to an exemplary embodiment Figure.

Fig. 7 is the first determining module in another WLAN discovery device shown according to an exemplary embodiment Block diagram.

Fig. 8 is the block diagram of another WLAN discovery device shown according to an exemplary embodiment.

Fig. 9 is the block diagram shown according to an exemplary embodiment suitable for WLAN discovery device.

Specific embodiment

Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.

The embodiment of the present disclosure provides a kind of WLAN discovery method, and this method can be used in terminal device, such as Fig. 1 It is shown, the method comprising the steps of S101-S103:

In step s101, when terminal receives the WLAN discovery request of application program transmission, application is obtained The presupposed information of program.

In step s 102, according to the presupposed information of application program, the scanning of terminal Current Scan WLAN is determined Mode, wherein scanning mode includes active scan mode and drive sweep mode, and active scan mode is terminal by wireless LAN broadcast's probe request, and the probing response frame for receiving WLAN return carrys out Wlan scanning, passively sweeps Retouching mode is the beacon frame that is sent by monitoring wireless local area network of terminal come Wlan scanning;

In step s 103, WLAN is found according to determining scanning mode.

In this embodiment, it is sent out according to the presupposed information of application program, such as type, the history of application program of application program Data etc. are sent, determine the scanning mode of terminal Current Scan WLAN, such as drive sweep mode or active scan mode.This Sample determines corresponding scanning mode according to the information of application program, active scan can be carried out always to avoid application program and caused WLAN occupation problem, reduce the electricity that frequently scanning is caused and expend, and more than active scan due to drive sweep Power saving extends the cruise duration of terminal so as to reduce terminal power consumption to a certain extent.

As shown in Fig. 2, in one embodiment, presupposed information includes the type of application program, above-mentioned steps S102 includes Step S201-S203:

In step s 201, judge whether the type of application program belongs to preset kind;

In step S202, when the type of application program belongs to preset kind, terminal Current Scan wireless local area is determined The scanning mode of net is active scanning mode;

In step S203, when the type of application program is not belonging to preset kind, the wireless office of terminal Current Scan is determined The scanning mode of domain net is drive sweep mode.

In this embodiment it is possible to the scanning mode of Current Scan WLAN is determined according to the type of application program, For example, the type when application program belongs to preset kind, such as when the type of application program is setting class application program, determine eventually The scanning mode for holding Current Scan WLAN is active scanning mode, otherwise, it determines terminal Current Scan WLAN Scanning mode be drive sweep mode, can be to avoid answering in this way, determine corresponding scanning mode according to the information of application program It carries out WLAN occupation problem caused by active scan always with program, reduces the electricity that frequently scanning is caused and expend, And due to drive sweep more power saving than active scan, so as to reduce terminal power consumption to a certain extent, extend the continuous of terminal ETS estimated time of sailing.

As shown in figure 3, in one embodiment, presupposed information includes that application program sends WLAN discovery request History sends parameter, and above-mentioned steps S102 includes step S301-S303:

In step S301, judge that history sends whether parameter is greater than or equal to default transmission parameter;

In step s 302, when history, which sends parameter, is greater than or equal to default transmission parameter, terminal Current Scan is determined The scanning mode of WLAN is drive sweep mode;

In step S303, when history, which sends parameter, is less than default transmission parameter, the wireless office of terminal Current Scan is determined The scanning mode of domain net is active scanning mode.

It is determined in this embodiment it is possible to send parameter according to the history that application program sends WLAN discovery request The scanning mode of Current Scan WLAN, wherein it includes that history transmission times or history send frequency that history, which sends parameter, Deng.For example, default history transmission times is 2 times, then when the history transmission times of application program is greater than or equal to 2 times, determine The scanning mode of terminal Current Scan WLAN is drive sweep mode, otherwise, it determines terminal Current Scan wireless local area The scanning mode of net is active scanning mode.In another example it is 2 times/day that default history, which sends frequency, then when the history of application program When sending frequency more than or equal to 2 times/day, determine that the scanning mode of terminal Current Scan WLAN is drive sweep side Formula, otherwise, it determines the scanning mode of terminal Current Scan WLAN is active scanning mode.In this way, according to application program Information determine corresponding scanning mode, can be carried out always to avoid application program WLAN caused by active scan occupancy Problem reduces the electricity that frequently scanning is caused and expends, and due to drive sweep more power saving than active scan, so as to one Determine to reduce terminal power consumption in degree, extends the cruise duration of terminal.

As shown in figure 4, in one embodiment, method further includes step S401-S402:

In step S401, after the scanning mode for determining terminal Current Scan WLAN is drive sweep mode, Detect the moving distance of terminal;

In step S402, when moving distance is greater than or equal to pre-determined distance, terminal Current Scan wireless local area is determined The scanning mode of net is active scanning mode.

In this embodiment, by the scanning mode of terminal Current Scan WLAN be drive sweep mode after, can To detect the moving distance of terminal, if the moving distance of terminal is greater than or equal to pre-determined distance, such as pre-determined distance is 100 Rice illustrates the mobile distance of terminal farther out, needs that position is requested to be believed then when the moving distance of terminal is greater than or equal to 100 meters Breath, can switch to active scan mode for the scanning mode of terminal at this time, so that it is fixed both to have guaranteed that terminal can be normally carried out network Position, and guarantee that terminal can reduce power consumption to a certain extent, extend cruise duration.

Following is embodiment of the present disclosure, can be used for executing embodiments of the present disclosure.

Fig. 5 is a kind of block diagram of WLAN discovery device shown according to an exemplary embodiment, which can be with Pass through being implemented in combination with as some or all of of terminal device for software, hardware or both.As shown in figure 5, the wireless office Domain net finds that device includes:

Module 51 is obtained to be configured as obtaining when terminal receives the WLAN discovery request of application program transmission The presupposed information of the application program;

First determining module 52 is configured as the presupposed information of the application program obtained according to the acquisition module 51, Determine the scanning mode of the terminal Current Scan WLAN, wherein the scanning mode include active scan mode and Drive sweep mode, the active scan mode is the terminal by wireless local area networks broadcast probe request, and is received The probing response frame that WLAN returns carrys out Wlan scanning, and the drive sweep mode is that the terminal passes through monitoring The beacon frame that WLAN is sent carrys out Wlan scanning;

Discovery module 53 is configured as finding wireless office according to the scanning mode that first determining module 52 determines Domain net.

In this embodiment it is possible to the scanning mode of Current Scan WLAN is determined according to the type of application program, For example, the type when application program belongs to preset kind, such as when the type of application program is setting class application program, institute is determined The scanning mode for stating terminal Current Scan WLAN is active scanning mode, otherwise, it determines the wireless office of terminal Current Scan The scanning mode of domain net is that drive sweep mode can be kept away in this way, determining corresponding scanning mode according to the information of application program Exempt from application program and carry out WLAN occupation problem caused by active scan always, reduces the caused electricity consumption of frequently scanning Take, and due to drive sweep more power saving than active scan, so as to reduce terminal power consumption to a certain extent, extend terminal Cruise duration.

As shown in fig. 6, in one embodiment, the presupposed information includes the type of the application program, described first Determining module 52 includes:

First judging submodule 61 is configured as judging whether the type of the application program belongs to preset kind;

First determines that submodule 62 is configured as judging the type of the application program in first judging submodule 61 When belonging to preset kind, determine that the scanning mode of the terminal Current Scan WLAN is active scanning mode;

Second determines that submodule 63 is configured as judging the type of the application program in first judging submodule 61 When being not belonging to preset kind, determine that the scanning mode of the terminal Current Scan WLAN is drive sweep mode.

In this embodiment it is possible to the scanning mode of Current Scan WLAN is determined according to the type of application program, For example, the type when application program belongs to preset kind, such as when the type of application program is setting class application program, institute is determined The scanning mode for stating terminal Current Scan WLAN is active scanning mode, otherwise, it determines the wireless office of terminal Current Scan The scanning mode of domain net is that drive sweep mode can be kept away in this way, determining corresponding scanning mode according to the information of application program Exempt from application program and carry out WLAN occupation problem caused by active scan always, reduces the caused electricity consumption of frequently scanning Take, and due to drive sweep more power saving than active scan, so as to reduce terminal power consumption to a certain extent, extend terminal Cruise duration.

As shown in fig. 7, in one embodiment, the presupposed information includes that the application program sends WLAN hair The history now requested sends parameter, and first determining module 52 includes:

Second judgment submodule 71 is configured as judging that the history sends whether parameter is greater than or equal to default transmission ginseng Number;

Third determines that submodule 72 is configured as judging that the history transmission parameter is big when the second judgment submodule 71 When default transmission parameter, determine that the scanning mode of the terminal Current Scan WLAN is drive sweep side Formula;

4th determines that submodule 73 is configured as judging that the history transmission parameter is small when the second judgment submodule 71 When default transmission parameter, determine that the scanning mode of the terminal Current Scan WLAN is active scanning mode.

It is determined in this embodiment it is possible to send parameter according to the history that application program sends WLAN discovery request The scanning mode of Current Scan WLAN, wherein it includes that history transmission times or history send frequency that history, which sends parameter, Deng.For example, default history transmission times is 2 times, then when the history transmission times of application program is greater than or equal to 2 times, determine The scanning mode of the terminal Current Scan WLAN is drive sweep mode, otherwise, it determines terminal Current Scan is wireless The scanning mode of local area network is active scanning mode.In another example it is 2 times/day that default history, which sends frequency, then when application program When history sends frequency more than or equal to 2 times/day, determine that the scanning mode of the terminal Current Scan WLAN is passive Scanning mode, otherwise, it determines the scanning mode of terminal Current Scan WLAN is active scanning mode.In this way, according to answering Corresponding scanning mode is determined with the information of program, can carry out always wireless local area caused by active scan to avoid application program Net occupation problem reduces the electricity that frequently scanning is caused and expends, and due to drive sweep more power saving than active scan, so as to To reduce terminal power consumption to a certain extent, extend the cruise duration of terminal.

As shown in figure 8, in one embodiment, above-mentioned apparatus further include:

Detection module 81 is configured as in the scanning mode for determining the terminal Current Scan WLAN being passively to sweep After retouching mode, the moving distance of the terminal is detected;

Second determining module 82 is configured as detecting that the moving distance is greater than or equal in advance in the detection module 81 If apart from when, determine the terminal Current Scan WLAN scanning mode be active scanning mode.

In this embodiment, by the scanning mode of terminal Current Scan WLAN be drive sweep mode after, can To detect the moving distance of terminal, if the moving distance of terminal is greater than or equal to pre-determined distance, such as pre-determined distance is 100 Rice illustrates the mobile distance of terminal farther out, needs that position is requested to be believed then when the moving distance of terminal is greater than or equal to 100 meters Breath, can switch to active scan mode for the scanning mode of terminal at this time, so that it is fixed both to have guaranteed that terminal can be normally carried out network Position, and guarantee that terminal can reduce power consumption to a certain extent, extend cruise duration.

According to the third aspect of an embodiment of the present disclosure, a kind of WLAN discovery device is provided, comprising:

Processor;

Memory for storage processor executable instruction;

Wherein, processor is configured as:

When terminal receives the WLAN discovery request of application program transmission, the default of the application program is obtained Information;

According to the presupposed information of the application program, the scanning mode of the terminal Current Scan WLAN is determined, Wherein, the scanning mode includes active scan mode and drive sweep mode, and the active scan mode is logical for the terminal It crosses to wireless local area networks broadcast probe request, and receives the probing response frame of WLAN return to scan wireless local area Net, the drive sweep mode are the beacon frame that is sent by monitoring wireless local area network of the terminal come Wlan scanning;

WLAN is found according to the determining scanning mode.

Above-mentioned processor is also configured to:

When terminal receives the WLAN discovery request of application program transmission, the default of the application program is obtained Information;

According to the presupposed information of the application program, the scanning mode of the terminal Current Scan WLAN is determined, Wherein, the scanning mode includes active scan mode and drive sweep mode, and the active scan mode is logical for the terminal It crosses to wireless local area networks broadcast probe request, and receives the probing response frame of WLAN return to scan wireless local area Net, the drive sweep mode are the beacon frame that is sent by monitoring wireless local area network of the terminal come Wlan scanning.

Above-mentioned processor is also configured to:

The presupposed information includes the type of the application program, the presupposed information according to the application program, really The scanning mode of the fixed terminal Current Scan WLAN, comprising:

Judge whether the type of the application program belongs to preset kind;

When the type of the application program belongs to preset kind, sweeping for the terminal Current Scan WLAN is determined Retouching mode is active scanning mode;

When the type of the application program is not belonging to preset kind, the terminal Current Scan WLAN is determined Scanning mode is drive sweep mode.

Above-mentioned processor is also configured to:

The presupposed information includes the history transmission parameter that the application program sends WLAN discovery request, described According to the presupposed information of the application program, the scanning mode of the terminal Current Scan WLAN is determined, comprising:

Judge that the history sends whether parameter is greater than or equal to default transmission parameter;

When the history, which sends parameter, is greater than or equal to default transmission parameter, the wireless office of terminal Current Scan is determined The scanning mode of domain net is drive sweep mode;

When the history, which sends parameter, is less than default transmission parameter, the terminal Current Scan WLAN is determined Scanning mode is active scanning mode.

It is also configured in above-mentioned processor:

It includes that history transmission times or history send frequency that the history, which sends parameter,.

Above-mentioned processor is also configured to:

The method also includes:

After the scanning mode for determining the terminal Current Scan WLAN is drive sweep mode, the end is detected The moving distance at end;

When the moving distance is greater than or equal to pre-determined distance, sweeping for the terminal Current Scan WLAN is determined Retouching mode is active scanning mode.

Fig. 9 is a kind of block diagram for WLAN discovery device shown according to an exemplary embodiment, the device Suitable for terminal device.For example, device 900 can be mobile phone, computer, digital broadcasting terminal, messaging device, trip Play console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc..

Device 900 may include following one or more components: processing component 902, memory 904, power supply module 906, Multimedia component 908, audio component 910, the interface 912 of input/output (I/O), sensor module 914 and communication component 916。

The integrated operation of the usual control device 900 of processing component 902, such as with display, telephone call, data communication, phase Machine operation and record operate associated operation.Processing element 902 may include that one or more processors 920 refer to execute It enables, to perform all or part of the steps of the methods described above.In addition, processing component 902 may include one or more modules, just Interaction between processing component 902 and other assemblies.For example, processing component 902 may include multi-media module, it is more to facilitate Interaction between media component 908 and processing component 902.

Memory 904 is configured as storing various types of data to support the operation in equipment 900.These data are shown Example includes the instruction of any application or method for operating on device 900, contact data, and telephone book data disappears Breath, picture, video etc..Memory 904 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.

Electric power assembly 906 provides electric power for the various assemblies of device 900.Electric power assembly 906 may include power management system System, one or more power supplys and other with for device 900 generate, manage, and distribute the associated component of electric power.

Multimedia component 908 includes the screen of one output interface of offer between described device 900 and user.One In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers Body component 908 includes a front camera and/or rear camera.When equipment 900 is in operation mode, such as screening-mode or When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.

Audio component 910 is configured as output and/or input audio signal.For example, audio component 910 includes a Mike Wind (MIC), when device 900 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched It is set to reception external audio signal.The received audio signal can be further stored in memory 904 or via communication set Part 916 is sent.In some embodiments, audio component 910 further includes a loudspeaker, is used for output audio signal.

I/O interface 912 provides interface between processing component 902 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock Determine button.

Sensor module 914 includes one or more sensors, and the state for providing various aspects for device 900 is commented Estimate.For example, sensor module 914 can detecte the state that opens/closes of equipment 900, and the relative positioning of component, for example, it is described Component is the display and keypad of device 900, and sensor module 914 can be with 900 1 components of detection device 900 or device Position change, the existence or non-existence that user contacts with device 900,900 orientation of device or acceleration/deceleration and device 900 Temperature change.Sensor module 914 may include proximity sensor, be configured to detect without any physical contact Presence of nearby objects.Sensor module 914 can also include optical sensor, such as CMOS or ccd image sensor, at As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.

Communication component 916 is configured to facilitate the communication of wired or wireless way between device 900 and other equipment.Device 900 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation In example, communication component 916 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 916 further includes near-field communication (NFC) module, to promote short range communication.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.

In the exemplary embodiment, device 900 can be believed by one or more application specific integrated circuit (ASIC), number Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.

In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 904 of instruction, above-metioned instruction can be executed by the processor 920 of device 900 to complete the above method.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..

A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of device 900 When device executes, so that device 900 is able to carry out above-mentioned WLAN discovery method, which comprises

When terminal receives the WLAN discovery request of application program transmission, the default of the application program is obtained Information;

According to the presupposed information of the application program, the scanning mode of the terminal Current Scan WLAN is determined, Wherein, the scanning mode includes active scan mode and drive sweep mode, and the active scan mode is logical for the terminal It crosses to wireless local area networks broadcast probe request, and receives the probing response frame of WLAN return to scan wireless local area Net, the drive sweep mode are the beacon frame that is sent by monitoring wireless local area network of the terminal come Wlan scanning;

WLAN is found according to the determining scanning mode.

In one embodiment, the presupposed information includes the type of the application program, described to apply journey according to described The presupposed information of sequence determines the scanning mode of the terminal Current Scan WLAN, comprising:

Judge whether the type of the application program belongs to preset kind;

When the type of the application program belongs to preset kind, sweeping for the terminal Current Scan WLAN is determined Retouching mode is active scanning mode;

When the type of the application program is not belonging to preset kind, the terminal Current Scan WLAN is determined Scanning mode is drive sweep mode.

In one embodiment, the presupposed information includes that the history of the application program sends parameter, described according to institute The presupposed information that application program sends WLAN discovery request is stated, determines sweeping for the terminal Current Scan WLAN Retouch mode, comprising:

Judge that the history sends whether parameter is greater than or equal to default transmission parameter;

When the history, which sends parameter, is greater than or equal to default transmission parameter, the wireless office of terminal Current Scan is determined The scanning mode of domain net is drive sweep mode;

When the history, which sends parameter, is less than default transmission parameter, the terminal Current Scan WLAN is determined Scanning mode is active scanning mode.

In one embodiment, it includes that history transmission times or history send frequency that the history, which sends parameter,.

In one embodiment, the method also includes:

After the scanning mode for determining the terminal Current Scan WLAN is drive sweep mode, the end is detected The moving distance at end;

When the moving distance is greater than or equal to pre-determined distance, sweeping for the terminal Current Scan WLAN is determined Retouching mode is active scanning mode.

Those skilled in the art will readily occur to its of the disclosure after considering specification and practicing disclosure disclosed herein Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.

It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (9)

1. a kind of WLAN finds method characterized by comprising
When terminal receives the WLAN discovery request of application program transmission, the default letter of the application program is obtained Breath, the presupposed information include that the type of application program and application program send the history that WLAN discovery is requested and send ginseng Number;
According to the presupposed information of the application program, the scanning mode of the terminal Current Scan WLAN is determined, wherein The scanning mode includes active scan mode and drive sweep mode, and the active scan mode is the terminal by nothing Line LAN broadcast probe request, and the probing response frame for receiving WLAN return carrys out Wlan scanning, it is described Drive sweep mode is the beacon frame that is sent by monitoring wireless local area network of the terminal come Wlan scanning;
WLAN is found according to the determining scanning mode;
After the scanning mode for determining the terminal Current Scan WLAN is drive sweep mode, the terminal is detected Moving distance;
When the moving distance is greater than or equal to pre-determined distance, the scanning side of the terminal Current Scan WLAN is determined Formula is active scanning mode.
2. the method according to claim 1, wherein the presupposed information includes the type of the application program, The presupposed information according to the application program determines the scanning mode of the terminal Current Scan WLAN, comprising:
Judge whether the type of the application program belongs to preset kind;
When the type of the application program belongs to preset kind, the scanning side of the terminal Current Scan WLAN is determined Formula is active scanning mode;
When the type of the application program is not belonging to preset kind, the scanning of the terminal Current Scan WLAN is determined Mode is drive sweep mode.
3. the method according to claim 1, wherein the presupposed information includes that the application program is sent wirelessly The history of local area network discovery request sends parameter, and the presupposed information according to the application program determines that the terminal is current The scanning mode of Wlan scanning, comprising:
Judge that the history sends whether parameter is greater than or equal to default transmission parameter;
When the history, which sends parameter, is greater than or equal to default transmission parameter, the terminal Current Scan WLAN is determined Scanning mode be drive sweep mode;
When the history, which sends parameter, is less than default transmission parameter, the scanning of the terminal Current Scan WLAN is determined Mode is active scanning mode.
4. method according to claim 1 or 3, which is characterized in that it includes history transmission times that the history, which sends parameter, Or history sends frequency.
5. a kind of WLAN finds device characterized by comprising
Module being obtained, when for receiving the WLAN discovery request of application program transmission when terminal, obtaining the application The presupposed information of program, the presupposed information include that the type of application program and application program send WLAN discovery request History send parameter;
First determining module, the presupposed information of the application program for being obtained according to the acquisition module, determines the end Hold the scanning mode of Current Scan WLAN, wherein the scanning mode includes active scan mode and drive sweep side Formula, the active scan mode is the terminal by wireless local area networks broadcast probe request, and receives WLAN The probing response frame of return carrys out Wlan scanning, and the drive sweep mode is that the terminal passes through monitoring wireless local area network The beacon frame of transmission carrys out Wlan scanning;
Discovery module, the scanning mode for being determined according to first determining module find WLAN;
Detection module, for the scanning mode for determining the terminal Current Scan WLAN be drive sweep mode after, Detect the moving distance of the terminal;
Second determining module, for the detection module detect the moving distance be greater than or equal to pre-determined distance when, really The scanning mode of the fixed terminal Current Scan WLAN is active scanning mode.
6. device according to claim 5, which is characterized in that the presupposed information includes the type of the application program, First determining module includes:
First judging submodule, for judging whether the type of the application program belongs to preset kind;
First determines submodule, for judging that the type of the application program belongs to preset kind in first judging submodule When, determine that the scanning mode of the terminal Current Scan WLAN is active scanning mode;
Second determines submodule, for judging that the type of the application program is not belonging to default class in first judging submodule When type, determine that the scanning mode of the terminal Current Scan WLAN is drive sweep mode.
7. device according to claim 5, which is characterized in that the presupposed information includes that the application program is sent wirelessly The history of local area network discovery request sends parameter, and first determining module includes:
Second judgment submodule, for judging that the history sends whether parameter is greater than or equal to default transmission parameter;
Third determines submodule, for judging that the history sends parameter more than or equal to default when the second judgment submodule When sending parameter, determine that the scanning mode of the terminal Current Scan WLAN is drive sweep mode;
4th determines submodule, for judging that the history sends parameter and sends parameter in default when the second judgment submodule When, determine that the scanning mode of the terminal Current Scan WLAN is active scanning mode.
8. the device according to claim 5 or 7, which is characterized in that it includes history transmission times that the history, which sends parameter, Or history sends frequency.
9. a kind of WLAN finds device characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
When terminal receives the WLAN discovery request of application program transmission, the default letter of the application program is obtained Breath, the presupposed information include that the type of application program and application program send the history that WLAN discovery is requested and send ginseng Number;
According to the presupposed information of the application program, the scanning mode of the terminal Current Scan WLAN is determined, wherein The scanning mode includes active scan mode and drive sweep mode, and the active scan mode is the terminal by nothing Line LAN broadcast probe request, and the probing response frame for receiving WLAN return carrys out Wlan scanning, it is described Drive sweep mode is the beacon frame that is sent by monitoring wireless local area network of the terminal come Wlan scanning;
After the scanning mode for determining the terminal Current Scan WLAN is drive sweep mode, the terminal is detected Moving distance;
When the moving distance is greater than or equal to pre-determined distance, the scanning side of the terminal Current Scan WLAN is determined Formula is active scanning mode.
CN201510695294.9A 2015-10-22 2015-10-22 WLAN finds method and device CN105407473B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510695294.9A CN105407473B (en) 2015-10-22 2015-10-22 WLAN finds method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510695294.9A CN105407473B (en) 2015-10-22 2015-10-22 WLAN finds method and device

Publications (2)

Publication Number Publication Date
CN105407473A CN105407473A (en) 2016-03-16
CN105407473B true CN105407473B (en) 2019-07-05

Family

ID=55472667

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510695294.9A CN105407473B (en) 2015-10-22 2015-10-22 WLAN finds method and device

Country Status (1)

Country Link
CN (1) CN105407473B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105898705B (en) * 2016-06-24 2019-06-07 维沃移动通信有限公司 A kind of method and mobile terminal of the scan frequency controlling WLAN
CN106503986B (en) * 2016-09-22 2020-10-09 腾讯科技(深圳)有限公司 Virtual resource transfer method and device
CN106604277B (en) * 2016-12-07 2020-03-10 Oppo广东移动通信有限公司 Wireless network access method and mobile terminal
CN106604362B (en) * 2016-12-07 2019-09-10 Oppo广东移动通信有限公司 A kind of Wireless Fidelity Wi-Fi scan method and mobile terminal
CN107969025B (en) * 2017-11-30 2019-12-27 Oppo广东移动通信有限公司 Mobile terminal wireless local area network scanning method and device and computer equipment
CN107896381B (en) * 2017-11-30 2020-08-04 Oppo广东移动通信有限公司 Mobile terminal wireless local area network scanning method and device and computer equipment
CN108040357B (en) * 2017-11-30 2019-10-18 Oppo广东移动通信有限公司 Mobile terminal wireless local area network scan method and apparatus, computer equipment
CN107820302B (en) * 2017-11-30 2021-01-26 Oppo广东移动通信有限公司 Mobile terminal wireless local area network scanning method and device and computer equipment
CN107949040B (en) * 2017-12-04 2020-06-12 Oppo广东移动通信有限公司 Wireless local area network scanning method and device, computer equipment and storage medium
CN108012304B (en) * 2017-12-04 2020-09-11 Oppo广东移动通信有限公司 Wireless local area network scanning method and device, computer equipment and storage medium
CN108366412B (en) * 2018-01-04 2020-11-20 瑞芯微电子股份有限公司 WIFI positioning scanning method and device
CN109068374A (en) * 2018-09-28 2018-12-21 Oppo广东移动通信有限公司 Resident POI determines method, apparatus, terminal and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101491144A (en) * 2006-07-14 2009-07-22 高通股份有限公司 WLAN system scanning and selection
US20100195595A1 (en) * 2007-07-31 2010-08-05 Shinichiro Iwata Wireless lan terminal and method of searching for access point
CN102238694A (en) * 2010-04-23 2011-11-09 启碁科技股份有限公司 Wireless network scanning method and system
CN102761938A (en) * 2011-04-29 2012-10-31 华为终端有限公司 Access point and method for managing access point working group
CN103002545A (en) * 2011-09-16 2013-03-27 诺基亚公司 Methods and apparatuses for wireless network discovery through passive and active scanning
CN104125623A (en) * 2013-04-28 2014-10-29 华为技术有限公司 Wireless local area network discovery method, controller, user equipment and network access equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101491144A (en) * 2006-07-14 2009-07-22 高通股份有限公司 WLAN system scanning and selection
US20100195595A1 (en) * 2007-07-31 2010-08-05 Shinichiro Iwata Wireless lan terminal and method of searching for access point
CN102238694A (en) * 2010-04-23 2011-11-09 启碁科技股份有限公司 Wireless network scanning method and system
CN102761938A (en) * 2011-04-29 2012-10-31 华为终端有限公司 Access point and method for managing access point working group
CN103002545A (en) * 2011-09-16 2013-03-27 诺基亚公司 Methods and apparatuses for wireless network discovery through passive and active scanning
CN104125623A (en) * 2013-04-28 2014-10-29 华为技术有限公司 Wireless local area network discovery method, controller, user equipment and network access equipment

Also Published As

Publication number Publication date
CN105407473A (en) 2016-03-16

Similar Documents

Publication Publication Date Title
CN104993981B (en) Control the method and device of equipment access
JP2017539187A (en) Voice control method, device, program, recording medium, control device and smart device for smart device
US10739854B2 (en) Terminal and touch response method and device
CN105677460B (en) Applied program processing method and device
CN104540184B (en) Equipment networking method and device
CN105407036B (en) Red packet sending method and device
EP2464084B1 (en) Mobile terminal and displaying method thereof
CN105357734B (en) The method and device of control access WIFI hot spot
CN104378587B (en) Imaging apparatus control method, device and equipment
CN105607883B (en) The processing method and processing device of instant message
CN106375604B (en) The method and apparatus of controlling terminal electricity
CN104765990B (en) The setting method and device of intelligent device management account
EP2804429A1 (en) Method of controlling communication unit via magnetic sensor and electronic device using the method
CN106028143A (en) Video live broadcasting method and device
EP3023928A1 (en) Method and device for setting task
KR101804338B1 (en) Mobile terminal
CN105068958B (en) Method for handover control and device
CN105094962B (en) Application program prohibited method and device
US20160295625A1 (en) Method and apparatus for network access
CN104460365A (en) Equipment control method and device
EP3016443B1 (en) Communication method and terminal
CN104536684B (en) interface display method and device
CN104394263A (en) Accessing point list displaying method and device
CN104063655A (en) Child mode processing method and device
CN107145800A (en) Method for protecting privacy and device, terminal and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant