CN105430715B - Control the method and device of WIFI scanning - Google Patents

Control the method and device of WIFI scanning Download PDF

Info

Publication number
CN105430715B
CN105430715B CN201510697181.2A CN201510697181A CN105430715B CN 105430715 B CN105430715 B CN 105430715B CN 201510697181 A CN201510697181 A CN 201510697181A CN 105430715 B CN105430715 B CN 105430715B
Authority
CN
China
Prior art keywords
wifi scanning
wifi
application program
scanning
trigger
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510697181.2A
Other languages
Chinese (zh)
Other versions
CN105430715A (en
Inventor
冯超
杨冬东
刘丹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510697181.2A priority Critical patent/CN105430715B/en
Publication of CN105430715A publication Critical patent/CN105430715A/en
Application granted granted Critical
Publication of CN105430715B publication Critical patent/CN105430715B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

The disclosure is directed to a kind of method and devices of control WIFI scanning.The described method includes: determining the application program for needing to trigger WIFI scanning in mobile device in backstage;If the mobile device is currently at motion state, the moving distance of the mobile device is determined;Determine whether the application program for needing to trigger WIFI scanning in backstage triggers WIFI scanning according to the moving distance.Disclosed technique scheme can optimize WIFI occupation problem caused by being scanned by the WIFI of application triggers to avoid the power consumption due to caused by the WIFI scan round of application triggers in same panel region and the influence of the performance to WIFI.

Description

Control the method and device of WIFI scanning
Technical field
This disclosure relates to network technique field more particularly to a kind of method and device of control WIFI scanning.
Background technique
With the extensive use of smart phone, user can be with by installing various application programs (app) on smart phone Meets the needs of different such as positioning, viewing video, text chat.When opening multiple and different app on smart phone, no Same app can carry out some consistency operations in the case where user's unaware, and these consistency operations may be triggered constantly The problems such as smart phone carries out WIFI scanning, occupies so as to cause WIFI directly affects the experience that user uses smart phone.
Summary of the invention
To overcome the problems in correlation technique, the embodiment of the present disclosure provides the method and dress of a kind of control WIFI scanning It sets, to solve the problems, such as that the consistency operation due to app causes circulation triggering WIFI scanning to occupy WIFI.
According to the first aspect of the embodiments of the present disclosure, a kind of method of control WIFI scanning is provided, comprising:
Determine the application program for needing to trigger WIFI scanning in mobile device in backstage;
If the mobile device is currently at motion state, the moving distance of the mobile device is determined;
Determine whether the application program for needing to trigger WIFI scanning in backstage triggers according to the moving distance WIFI scanning.
In one embodiment, described to need to trigger what WIFI was scanned in backstage according to moving distance determination is described Whether application program triggers WIFI scanning, it may include:
Determine whether the moving distance is more than or equal to preset threshold;
If the moving distance is more than or equal to the preset threshold, determination is described to be needed to trigger in backstage The application program of WIFI scanning needs to trigger WIFI scanning;
If the moving distance is less than the preset threshold, need to trigger what WIFI was scanned in backstage according to described The number that application program has triggered WIFI scanning determines the need for triggering WIFI scanning.
In one embodiment, the application program for needing to trigger WIFI scanning according in backstage has triggered The number of WIFI scanning determines the need for triggering WIFI scanning, it may include:
Determine each application program in the application program for needing to trigger WIFI scanning in backstage in the shifting The number for having triggered WIFI scanning in dynamic distance range;
If the number expression for having triggered WIFI scanning triggers for the first time, control belongs to the WIFI scanning of triggering for the first time Application triggers WIFI scanning;
If the number for having triggered WIFI scanning indicates non-and triggers for the first time, forbids belonging to and described non-trigger WIFI for the first time The application triggers WIFI of scanning is scanned.
In one embodiment, the method may also include that
After determining that the application program for needing to trigger WIFI scanning in backstage needs to trigger WIFI scanning, obtain WIFI scanning result;
The WIFI scanning result is returned into the application program for needing to trigger WIFI scanning in backstage.
In one embodiment, the method may also include that
Whether determine in the application program for needing to trigger WIFI scanning in backstage has application program in default column In table, described the presets list is used to record the preset application program of installation on the mobile device;
If there is application program is in described the presets list, determines and trigger application program recorded in described the presets list Corresponding WIFI scanning.
According to the second aspect of an embodiment of the present disclosure, a kind of device of control WIFI scanning is provided, comprising:
First determining module is configured to determine that in mobile device the application journey for needing to trigger WIFI scanning in backstage Sequence;
Second determining module, if being configured as first determining module determines that the mobile device is currently at movement State determines the moving distance of the mobile device;
Third determining module is configured as determining the place according to the moving distance that second determining module determines Whether the application program for needing to trigger WIFI scanning in backstage triggers WIFI scanning.
In one embodiment, the third determining module can include:
First determines submodule, is configured to determine that whether the moving distance is more than or equal to preset threshold;
Second determine submodule, if be configured as it is described first determine submodule determine the moving distance be greater than or Person is equal to the preset threshold, determines that the application program for needing to trigger WIFI scanning in backstage needs to trigger WIFI and sweeps It retouches;
Third determines submodule, if being configured as described second determines that submodule determines the moving distance less than described Preset threshold is determined according to the number that the application program for needing to trigger WIFI scanning in backstage has triggered WIFI scanning Whether need to trigger WIFI scanning.
In one embodiment, the third determines submodule can include:
4th determines submodule, is configured to determine that in the application program for needing to trigger WIFI scanning in backstage Each application program in the displacement distance scope triggered WIFI scanning number;
Control submodule, if being configured as the described 4th determines determining time for having triggered WIFI scanning of submodule Number indicates to trigger for the first time, and control belongs to the application triggers WIFI scanning of the WIFI scanning of triggering for the first time;
Forbid submodule, if being configured as the described 4th determines determining time for having triggered WIFI scanning of submodule Number indicates non-and triggers for the first time, forbids the application triggers WIFI scanning for belonging to the non-WIFI scanning of triggering for the first time.
In one embodiment, described device may also include that
Module is obtained, is configured as determining that the WIFI that needs to trigger in backstage is scanned in the third determining module Application program need to trigger WIFI scanning after, obtain WIFI scanning result;
Result return module is configured as returning to the WIFI scanning result that the acquisition module is got described The application program for needing to trigger WIFI scanning in backstage.
In one embodiment, described device may also include that
4th determining module is configured to determine that the described of the first determining module determination needs to trigger in backstage Whether there is application program in the presets list in the application program of WIFI scanning, described the presets list is mounted on described for record Preset application program in mobile device;
5th determining module has application program in described the presets list if being configured as the 4th determining module determination In, it determines and triggers the corresponding WIFI scanning of application program recorded in described the presets list.
According to the third aspect of an embodiment of the present disclosure, a kind of device of control WIFI scanning is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Determine the application program for needing to trigger WIFI scanning in mobile device in backstage;
If the mobile device is currently at motion state, the moving distance of the mobile device is determined;
Determine whether the application program for needing to trigger WIFI scanning in backstage triggers according to the moving distance WIFI scanning.
The technical scheme provided by this disclosed embodiment can include the following benefits: if mobile device is currently at Motion state determines the moving distance of mobile device, is determined according to moving distance and needs to trigger what WIFI was scanned in backstage Whether application program triggers WIFI scanning, if moving distance in a certain range when, the router near mobile device will not It changing, the result of WIFI scanning can be identical as last scanning result, WIFI scanning need not be triggered at this time, thus can be to avoid The power consumption due to caused by the WIFI scan round of application triggers and the influence of the performance to WIFI in same panel region, WIFI occupation problem caused by optimization is scanned by the WIFI of application triggers, and then optimize user experience.
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 and meets implementation of the invention Example, and be used to explain the principle of the present invention together with specification.
Figure 1A is the flow chart of the method for control WIFI triggering shown according to an exemplary embodiment.
Figure 1B is the scene figure of the method for control WIFI triggering shown according to an exemplary embodiment.
Fig. 2A is the flow chart according to the method for the control WIFI triggering shown in an exemplary embodiment one.
Fig. 2 B is the flow chart according to the step S207 shown in an exemplary embodiment one.
Fig. 3 is the flow chart according to the method for the control WIFI triggering shown in an exemplary embodiment two.
Fig. 4 is a kind of block diagram of the device of control WIFI triggering shown according to an exemplary embodiment.
Fig. 5 is the block diagram of the device of another control WIFI triggering shown according to an exemplary embodiment.
Fig. 6 is a kind of block diagram suitable for controlling the device of WIFI triggering shown according to an exemplary embodiment.
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 embodiments consistented with the present invention.On the contrary, they be only with it is such as appended The example of device and method being described in detail in claims, some aspects of the invention are consistent.
Figure 1A is the flow chart of the method for control WIFI triggering shown according to an exemplary embodiment, and Figure 1B is according to one The scene figure of the method for control WIFI triggering shown in exemplary embodiment;The method of control WIFI triggering, which can be applied, is moving Dynamic equipment (such as: smart phone, tablet computer) on, as shown in Figure 1A, the method for control WIFI triggering includes the following steps S101-S 103:
In step s101, the application program for needing to trigger WIFI scanning in mobile device in backstage is determined.
In one embodiment, the application program that backstage is in mobile device can be counted, determination needs to trigger WIFI scanning application program, for example, from backstage 10 application programs in determine application program A, application program B, Application program C needs to trigger WIFI scanning.
In step s 102, if mobile device is currently at motion state, the moving distance of mobile device is determined.
In one embodiment, it can be set by acceleration transducer in mobile device and gyro sensor detection movement It is standby whether to be kept in motion and the moving distance of mobile device.
In step s 103, whether the application program for needing to trigger WIFI scanning in backstage is determined according to moving distance Trigger WIFI scanning.
In one embodiment, if the moving distance of mobile device still in a certain range, can be with for example, within 5 meters The mobile device last time WIFI result scanned is directly returned to need to trigger the application program of WIFI scanning, if had exceeded The range, for example, being more than the then new WIFI scanning of retriggered within 5 meters.
In an exemplary scene, as shown in Figure 1B, the application program A on backstage is in mobile device 11, using journey Sequence B, application program C need to trigger WIFI scanning, to obtain the road near mobile device 11 when needing to request network positions By the MAC Address of device 121 and router 122 etc., mobile device 11 uploads to the MAC Address of router 121 and router 122 Server 13, server 13 match a network site and the network site are returned to movement and set by those MAC Address Standby 11.In the related technology, if application program A, application program B, application program C request position information always, application program A, application program B, application program C will trigger always WIFI scanning, and the operation for triggering WIFI scanning can occupy WIFI, directly Influence the operations such as WIFI online.In the disclosure, mobile device 11 can be determined first and need to trigger WIFI in backstage thereon The application program of scanning;If detecting that mobile device 11 is currently at movement by acceleration transducer and gyro sensor State and detect mobile device moving distance be greater than a certain range when, control triggering by application program A, application program B, answer The scanning of the WIFI caused by program C forbids triggering by application program if the moving distance of mobile device is less than a certain range A, WIFI caused by application program B, application program C is scanned, can be direct by the last WIFI scanning result of mobile device 11 Return to application program A, application program B, application program C.
In the present embodiment, if mobile device is currently at motion state, the moving distance of mobile device is determined, according to shifting Dynamic distance determines whether the application program for needing to trigger WIFI scanning in backstage triggers WIFI scanning, if moving distance exists When in a certain range, the router near mobile device will not be changed, and the result of WIFI scanning can be with last scanning result It is identical, WIFI scanning need not be triggered at this time, thus can be followed to avoid the WIFI in same panel region due to application triggers Power consumption caused by ring scans and the influence of the performance to WIFI, WIFI caused by optimization is scanned by the WIFI of application triggers Occupation problem, and then optimize user experience.
In one embodiment, whether the application program for needing to trigger WIFI scanning in backstage is determined according to moving distance Trigger WIFI scanning, it may include:
Determine whether moving distance is more than or equal to preset threshold;
If moving distance is more than or equal to preset threshold, the application for needing to trigger WIFI scanning in backstage is determined Program needs to trigger WIFI scanning;
If moving distance is less than preset threshold, touched according to the application program for needing to trigger WIFI scanning in backstage The number of hair WIFI scanning determines the need for triggering WIFI scanning.
In one embodiment, WIFI scanning has been triggered according to the application program for needing to trigger WIFI scanning in backstage Number determines the need for triggering WIFI scanning, it may include:
Determine each application program in the application program for needing to trigger WIFI scanning in backstage in moving distance model The number for having triggered WIFI scanning in enclosing;
If the number expression for having triggered WIFI scanning triggers for the first time, control belongs to the application journey of triggering WIFI scanning for the first time Sequence triggers WIFI scanning;
It is triggered for the first time if the number for having triggered WIFI scanning indicates non-, forbids belonging to answering for non-triggering WIFI scanning for the first time With program triggering WIFI scanning.
In one embodiment, method may also include that
After determining that the application program for needing to trigger WIFI scanning in backstage needs to trigger WIFI scanning, WIFI is obtained Scanning result;
WIFI scanning result is returned to the application program for needing to trigger WIFI scanning in backstage.
In one embodiment, method may also include that
Whether determine in the application program for needing to trigger WIFI scanning in backstage has application program in the presets list, The presets list is used to record the preset application program of installation on the mobile apparatus;
If there is application program is in the presets list, triggering WIFI scanning is determined according to the application program in the presets list.
WIFI triggering specifically how is controlled, subsequent embodiment is please referred to.
So far, the embodiment of the present disclosure provide the above method, can to avoid in same panel region due to application program touch Power consumption caused by the WIFI scan round of hair and the influence of the performance to WIFI, optimization are scanned by the WIFI of application triggers Caused WIFI occupation problem optimizes user experience.
The technical solution of embodiment of the present disclosure offer is provided below with specific embodiment.
Fig. 2A is according to the flow chart of the method for the control WIFI triggering shown in an exemplary embodiment one, and Fig. 2 B is basis The flow chart of step S207 shown in one exemplary embodiment one;The above-mentioned side that the present embodiment utilizes the embodiment of the present disclosure to provide Method, how to determine whether the application program for needing to trigger WIFI scanning in backstage triggers according to the moving distance It is illustrated for WIFI scanning, the backstage of mobile device is in application program A, application program B, application program C And need to trigger WIFI scanning for example, as shown in Figure 2 A, including the following steps:
In step s 201, the application program for needing to trigger WIFI scanning in mobile device in backstage is determined.
In step S202, if mobile device is currently at motion state, the moving distance of mobile device is determined.
The description of step S201 and step S202 may refer to the description of above-mentioned steps S101 and step S102, herein no longer It is described in detail.
In step S203, determine whether moving distance is more than or equal to preset threshold, if moving distance be greater than or Person is equal to preset threshold, executes step S204, if moving distance is less than preset threshold, executes step S207.
In one embodiment, preset threshold can be obtained according to experimental test, for example, 5 meters or 10 meters etc., it can basis The distribution situation of the router of environment carrys out equipment where mobile device, and the distribution of router is more intensive, and preset threshold can be set That sets is smaller, and the distribution of router is more evacuated, and preset threshold can be set more larger, tool of the disclosure to preset threshold Body value is with no restrictions.
In step S204, if moving distance is more than or equal to preset threshold, determines and need to trigger in backstage The application program of WIFI scanning needs to trigger WIFI scanning, executes step S205.
In one embodiment, if the moving distance of mobile device is more than or equal to preset threshold, mobile device is indicated Farther out, the router around mobile device can have variation to the last position of distance at this time for the position being currently located, because This can determine needs according to application program A, application program B, application program C triggering WIFI scanning.
In step S205, WIFI scanning result is obtained.
In one embodiment, WIFI scanning result, this public affairs can be got in such a way that WIFI in the related technology is scanned Open that this will not be detailed here.
In step S206, WIFI scanning result is returned to the application journey for needing to trigger WIFI scanning in backstage Sequence.
For example, after WIFI scanning result is returned to application program A, application program B, application program C, application program A, Application program B, application program C can realize respective network positions function according to WIFI scanning result.
In step S207, if moving distance is less than preset threshold, need to trigger WIFI scanning according in backstage Application program triggered WIFI scanning number determine the need for triggering WIFI scanning.
In one embodiment, the detailed description of step S207 may refer to Fig. 2 B, as shown in Figure 2 B, include the following steps:
In step S211, each application program in the application program for needing to trigger WIFI scanning in backstage is determined The number for having triggered WIFI scanning in displacement distance scope.
In step S212, determines and triggered whether the number of WIFI scanning is to trigger for the first time, if it is triggering for the first time, hold Row step S213 executes step S214 if not triggering for the first time.
In step S213, if the number expression for having triggered WIFI scanning triggers for the first time, control belongs to be triggered for the first time The application triggers WIFI scanning of WIFI scanning.
It in step S214, is triggered for the first time if the number for having triggered WIFI scanning indicates non-, forbids belonging to and non-touch for the first time Send out the application triggers WIFI scanning of WIFI scanning.
Property scene as an example, if application program D apart from the home position where mobile device it is closer away from From in range, application program D indicates that this triggering has been to trigger for the first time, then controls if it is first time triggering WIFI scanning Application program D triggers WIFI scanning, if application program A, application program B, application program C are apart from the original where mobile device Triggered in the closer distance range in beginning position 1 time, indicate this triggering be it is non-trigger for the first time, forbid applying at this time Program A, application program B, application program C trigger WIFI scanning again.
In the present embodiment, if moving distance is less than preset threshold, need to trigger what WIFI was scanned according in backstage The number that application program has triggered WIFI scanning determines the need for triggering WIFI scanning, so as to according to application triggers The number of WIFI scanning controls WIFI triggering, reduce frequent WIFI scanning, and also condition movement is set to a certain extent Standby power consumption extends the cruise duration of mobile device.
Fig. 3 is the flow chart according to the method for the control WIFI triggering shown in an exemplary embodiment two;The present embodiment benefit The above method provided with the embodiment of the present disclosure, how to trigger the requested WIFI of preset application program on the mobile apparatus It is illustrated for scanning, as shown in figure 3, including the following steps:
In step S301, the application program for needing to trigger WIFI scanning in mobile device in backstage is determined.
In step s 302, determine in the application program for needing to trigger WIFI scanning in backstage whether there is application program It is recorded in the presets list, wherein the presets list is used to record the preset application program of installation on the mobile apparatus, if there is answering With program in the presets list, step S303 is executed, if there is application program is not in the presets list, directly according to above-mentioned implementation Example control WIFI scanning.
In step S303, if there is application records are in the presets list, determine recorded in triggering the presets list Application program corresponding WIFI scanning.
Property scene as an example, for the threshold application program in mobile device, for example, journey is applied in setting Sequence, if setting application program is in the backstage of mobile device, and is arranged application program and needs to trigger WIFI scanning, in order to true The highest priority of the preset application program in mobile device is protected, no matter mobile device is needed to be located at where is intended to triggering backstage WIFI scan operation.For example, application program A, application program B, application program C and application program E are the needs in backstage The application program for triggering WIFI scanning indicates that application program is in mobile device if application program E is recorded in the presets list Preset application program be required to triggering application program E corresponding WIFI scanning no matter the position of mobile device at this time.
In the present embodiment, if there is application records are in the presets list, determine recorded in triggering the presets list The corresponding WIFI scanning of application program, so as to ensure the highest priority of the preset application program in mobile device, it is ensured that No matter preset application program mobile device is located at WIFI scan operation where is intended to triggering backstage.
Fig. 4 is a kind of block diagram of the device of control WIFI triggering shown according to an exemplary embodiment, as shown in figure 4, Controlling the device that WIFI is triggered includes:
First determining module 41 is configured to determine that in mobile device the application for needing to trigger WIFI scanning in backstage Program;
Second determining module 42, if being configured as the first determining module 41 determines that mobile device is currently at movement shape State determines the moving distance of mobile device;
Third determining module 43 is configured as being determined according to the moving distance that the second determining module 42 determines in backstage Whether the application program for needing to trigger WIFI scanning triggers WIFI scanning.
Fig. 5 is the block diagram of the device of another control WIFI triggering shown according to an exemplary embodiment, such as Fig. 5 institute Show, on the basis of above-mentioned embodiment illustrated in fig. 4, in one embodiment, third determining module 43 can include:
First determines submodule 431, is configured to determine that whether moving distance is more than or equal to preset threshold;
Second determine submodule 432, if be configured as first determine submodule 431 determine moving distance be greater than or Equal to preset threshold, determine that the application program for needing to trigger WIFI scanning in backstage needs to trigger WIFI scanning;
Third determines submodule 433, if being configured as second determines that submodule 432 determines that moving distance is less than default threshold Value determines the need for touching according to the number that the application program for needing to trigger WIFI scanning in backstage has triggered WIFI scanning Send out WIFI scanning.
In one embodiment, third determines submodule 433 can include:
4th determines submodule 4331, is configured to determine that in the application program for needing to trigger WIFI scanning in backstage Each application program in displacement distance scope triggered WIFI scanning number;
Control submodule 4332, if being configured as the 4th determines time for having triggered WIFI scanning that submodule 4331 determines Number indicates to trigger for the first time, and control belongs to the application triggers WIFI scanning of triggering WIFI scanning for the first time;
Forbid submodule 4333, if being configured as the 4th determines time for having triggered WIFI scanning that submodule 4331 determines Number indicates non-and triggers for the first time, forbids the application triggers WIFI scanning for belonging to the non-WIFI scanning of triggering for the first time.
In one embodiment, device may also include that
Module 44 is obtained, is configured as needing to trigger answering for WIFI scanning in backstage in the determination of third determining module 43 After needing to trigger WIFI scanning with program, WIFI scanning result is obtained;
Result return module 45 is configured as will acquire the WIFI scanning result that module 44 is got and returns in backstage Need to trigger WIFI scanning application program.
In one embodiment, device may also include that
4th determining module 46, is configured as the determination that the first determining module 41 determines and is in backstage needing to trigger WIFI Whether there is application program in the presets list in the application program of scanning, the presets list is used to record and install on the mobile apparatus Preset application program;
5th determining module 47, if being configured as the determination of the 4th determining module 46 has application program in the presets list, Determine the corresponding WIFI scanning of application program recorded in triggering the presets list.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
Fig. 6 is a kind of block diagram suitable for controlling the device of WIFI triggering shown according to an exemplary embodiment.For example, Device 600 can be mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, doctor Treat equipment, body-building equipment, personal digital assistant etc..
Referring to Fig. 6, device 600 may include following one or more components: processing component 602, memory 604, power supply Component 606, multimedia component 608, audio component 610, the interface 612 of input/output (I/O), sensor module 614, and Communication component 616.
The integrated operation of the usual control device 600 of processing component 602, such as with display, telephone call, data communication, phase Machine operation and record operate associated operation.Processing element 602 may include that one or more processors 620 refer to execute It enables, to perform all or part of the steps of the methods described above.In addition, processing component 602 may include one or more modules, just Interaction between processing component 602 and other assemblies.For example, processing component 602 may include multi-media module, it is more to facilitate Interaction between media component 608 and processing component 602.
Memory 604 is configured as storing various types of data to support the operation in equipment 600.These data are shown Example includes the instruction of any application or method for operating on device 600, contact data, and telephone book data disappears Breath, picture, video etc..Memory 604 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 606 provides electric power for the various assemblies of device 600.Electric power assembly 606 may include power management system System, one or more power supplys and other with for device 600 generate, manage, and distribute the associated component of electric power.
Multimedia component 608 includes the screen of one output interface of offer between described device 600 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 608 includes a front camera and/or rear camera.When equipment 600 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 610 is configured as output and/or input audio signal.For example, audio component 610 includes a Mike Wind (MIC), when device 600 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 604 or via communication set Part 616 is sent.In some embodiments, audio component 610 further includes a loudspeaker, is used for output audio signal.
I/O interface 612 provides interface between processing component 602 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 614 includes one or more sensors, and the state for providing various aspects for device 600 is commented Estimate.For example, sensor module 614 can detecte the state that opens/closes of equipment 600, and the relative positioning of component, for example, it is described Component is the display and keypad of device 600, and sensor module 614 can be with 600 1 components of detection device 600 or device Position change, the existence or non-existence that user contacts with device 600,600 orientation of device or acceleration/deceleration and device 600 Temperature change.Sensor module 614 may include proximity sensor, be configured to detect without any physical contact Presence of nearby objects.Sensor module 614 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 616 is configured to facilitate the communication of wired or wireless way between device 600 and other equipment.Device 600 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 616 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 616 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 600 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 604 of instruction, above-metioned instruction can be executed by the processor 620 of device 600 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..
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 (7)

1. a kind of method of control WIFI scanning, which is characterized in that the described method includes:
Determine the application program for needing to trigger WIFI scanning in mobile device in backstage;
If the mobile device is currently at motion state, the moving distance of the mobile device is determined;
Determine whether the application program for needing to trigger WIFI scanning in backstage triggers WIFI according to the moving distance Scanning;It is described to determine whether the application program for needing to trigger WIFI scanning in backstage triggers according to the moving distance WIFI scanning, comprising:
Determine whether the moving distance is more than or equal to preset threshold;
If the moving distance is more than or equal to the preset threshold, determine that the WIFI that needs to trigger in backstage is swept The application program retouched needs to trigger WIFI scanning;
If the moving distance is less than the preset threshold, according to the application for needing to trigger WIFI scanning in backstage The number that program has triggered WIFI scanning determines the need for triggering WIFI scanning;
The number that the application program for needing to trigger WIFI scanning according in backstage has triggered WIFI scanning determines Whether need to trigger WIFI scanning, comprising:
Determine each application program in the application program for needing to trigger WIFI scanning in backstage the movement away from From the number for having triggered WIFI scanning in range;
If the number expression for having triggered WIFI scanning triggers for the first time, control belongs to answering for the triggering WIFI scanning for the first time With program triggering WIFI scanning;
If the number for having triggered WIFI scanning indicates non-and triggers for the first time, forbid belonging to the non-WIFI scanning of triggering for the first time Application triggers WIFI scanning.
2. the method according to claim 1, wherein the method also includes:
After determining that the application program for needing to trigger WIFI scanning in backstage needs to trigger WIFI scanning, WIFI is obtained Scanning result;
The WIFI scanning result is returned into the application program for needing to trigger WIFI scanning in backstage.
3. the method according to claim 1, wherein the method also includes:
Whether determine in the application program for needing to trigger WIFI scanning in backstage has application program in the presets list, Described the presets list is used to record the preset application program of installation on the mobile device;
If there is application program is in described the presets list, determine that triggering application program recorded in described the presets list corresponds to WIFI scanning.
4. a kind of device of control WIFI scanning, which is characterized in that described device includes:
First determining module is configured to determine that in mobile device the application program for needing to trigger WIFI scanning in backstage;
Second determining module, if being configured as first determining module determines that the mobile device is currently at movement shape State determines the moving distance of the mobile device;
Third determining module is configured as after being according to the moving distance determination of second determining module determination Whether the application program for needing to trigger WIFI scanning of platform triggers WIFI scanning;The third determining module includes:
First determines submodule, is configured to determine that whether the moving distance is more than or equal to preset threshold;
Second determines submodule, is greater than or waits if being configured as the moving distance that described first determines that submodule determines In the preset threshold, determine that the application program for needing to trigger WIFI scanning in backstage needs to trigger WIFI scanning;
Third determines submodule, if being configured as described second determines that submodule determines that the moving distance is less than described preset Threshold value determines whether according to the number that the application program for needing to trigger WIFI scanning in backstage has triggered WIFI scanning Need to trigger WIFI scanning;
The third determines that submodule includes:
4th determines submodule, is configured to determine that every in the application program for needing to trigger WIFI scanning in backstage The number that has triggered WIFI scanning of one application program in the displacement distance scope;
Control submodule, if being configured as the described 4th determines the determining frequency table for having triggered WIFI scanning of submodule Show and trigger for the first time, control belongs to the application triggers WIFI scanning of the WIFI scanning of triggering for the first time;
Forbid submodule, if being configured as the described 4th determines the determining frequency table for having triggered WIFI scanning of submodule Show the non-application triggers WIFI scanning for triggering for the first time, forbidding belonging to the non-WIFI scanning of triggering for the first time.
5. device according to claim 4, which is characterized in that described device further include:
Module is obtained, is configured as determining in the third determining module and described needs to trigger answering for WIFI scanning in backstage After needing to trigger WIFI scanning with program, WIFI scanning result is obtained;
Result return module is configured as the WIFI scanning result that the acquisition module is got returning to described be in The application program for needing to trigger WIFI scanning on backstage.
6. device according to claim 4, which is characterized in that described device further include:
4th determining module is configured to determine that the described of the first determining module determination needs to trigger WIFI in backstage Whether there is application program in the presets list in the application program of scanning, described the presets list is mounted on the movement for recording Preset application program in equipment;
5th determining module has application program in described the presets list if being configured as the 4th determining module determination, It determines and triggers the corresponding WIFI scanning of application program recorded in described the presets list.
7. a kind of device of control WIFI scanning, which is characterized in that described device includes:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Determine the application program for needing to trigger WIFI scanning in mobile device in backstage;
If the mobile device is currently at motion state, the moving distance of the mobile device is determined;
Determine whether the application program for needing to trigger WIFI scanning in backstage triggers WIFI according to the moving distance Scanning;
It is described to determine whether the application program for needing to trigger WIFI scanning in backstage triggers according to the moving distance WIFI scanning, comprising:
Determine whether the moving distance is more than or equal to preset threshold;
If the moving distance is more than or equal to the preset threshold, determine that the WIFI that needs to trigger in backstage is swept The application program retouched needs to trigger WIFI scanning;
If the moving distance is less than the preset threshold, according to the application for needing to trigger WIFI scanning in backstage The number that program has triggered WIFI scanning determines the need for triggering WIFI scanning;
The number that the application program for needing to trigger WIFI scanning according in backstage has triggered WIFI scanning determines Whether need to trigger WIFI scanning, comprising:
Determine each application program in the application program for needing to trigger WIFI scanning in backstage the movement away from From the number for having triggered WIFI scanning in range;
If the number expression for having triggered WIFI scanning triggers for the first time, control belongs to answering for the triggering WIFI scanning for the first time With program triggering WIFI scanning;
If the number for having triggered WIFI scanning indicates non-and triggers for the first time, forbid belonging to the non-WIFI scanning of triggering for the first time Application triggers WIFI scanning.
CN201510697181.2A 2015-10-22 2015-10-22 Control the method and device of WIFI scanning Active CN105430715B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510697181.2A CN105430715B (en) 2015-10-22 2015-10-22 Control the method and device of WIFI scanning

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510697181.2A CN105430715B (en) 2015-10-22 2015-10-22 Control the method and device of WIFI scanning

Publications (2)

Publication Number Publication Date
CN105430715A CN105430715A (en) 2016-03-23
CN105430715B true CN105430715B (en) 2018-12-11

Family

ID=55508580

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510697181.2A Active CN105430715B (en) 2015-10-22 2015-10-22 Control the method and device of WIFI scanning

Country Status (1)

Country Link
CN (1) CN105430715B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105744607A (en) * 2016-04-29 2016-07-06 乐视控股(北京)有限公司 Intelligent WIFI scanning control method of mobile terminal and mobile terminal
CN105898705B (en) * 2016-06-24 2019-06-07 维沃移动通信有限公司 A kind of method and mobile terminal of the scan frequency controlling WLAN
CN106604361B (en) * 2016-12-07 2020-07-21 Oppo广东移动通信有限公司 WiFi scanning 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
CN106879055B (en) * 2017-01-19 2020-12-29 北京安云世纪科技有限公司 Wireless network scanning control method and related equipment
CN107027150A (en) * 2017-04-11 2017-08-08 广东欧珀移动通信有限公司 WiFi control methods, device and terminal device
CN107172687A (en) * 2017-05-08 2017-09-15 广东欧珀移动通信有限公司 Information processing method, device and mobile terminal

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103237292A (en) * 2013-05-13 2013-08-07 钟国峰 Locator-based locating method
CN103997711A (en) * 2013-02-20 2014-08-20 百度在线网络技术(北京)有限公司 Method for realizing positioning server at mobile terminal and software development kit module

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8428637B2 (en) * 2007-07-10 2013-04-23 Qualcomm Incorporated Extending access terminal battery life through search rate control

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103997711A (en) * 2013-02-20 2014-08-20 百度在线网络技术(北京)有限公司 Method for realizing positioning server at mobile terminal and software development kit module
CN103237292A (en) * 2013-05-13 2013-08-07 钟国峰 Locator-based locating method

Also Published As

Publication number Publication date
CN105430715A (en) 2016-03-23

Similar Documents

Publication Publication Date Title
CN105430715B (en) Control the method and device of WIFI scanning
US10739854B2 (en) Terminal and touch response method and device
EP3163569B1 (en) Method and device for controlling a smart device by voice, computer program and recording medium
RU2633187C1 (en) Management method, device and equipment for adjustment of shooting function
EP3188520A1 (en) Method and device for enabling virtual subscriber identity module card
CN106547663B (en) Key management method and device
CN105653323A (en) Application program management method and device
CN103491225A (en) Mobile terminal and controlling method thereof
CN106231640B (en) Wireless access point switching method and device
CN110262692B (en) Touch screen scanning method, device and medium
KR20170038178A (en) Method, apparatus, and mobile terminal for identificating fingerprint
CN105933465B (en) Access the method and device of wireless network
CN108307308B (en) Positioning method, device and storage medium for wireless local area network equipment
EP3322227B1 (en) Methods and apparatuses for controlling wireless connection, computer program and recording medium
CN107393528B (en) Voice control method and device
CN109039877A (en) A kind of method, apparatus, electronic equipment and storage medium showing unread message quantity
CN105653165A (en) Method and device for regulating character display
CN109862169B (en) Electronic equipment control method, device and storage medium
CN104811904A (en) Contact setting method and device
CN106919302B (en) Operation control method and device of mobile terminal
CN106922005B (en) Method and device for accessing wireless access point and computer readable storage medium
CN110290272A (en) A kind of method, apparatus and medium of display function card
CN105988602B (en) Mouse emulation method and apparatus
CN108877742A (en) Luminance regulating method and device
CN105915603B (en) File management method and device

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