[go: up one dir, main page]

CN105072675A - A method, system and mobile terminal for automatically closing WIFI connection - Google Patents

A method, system and mobile terminal for automatically closing WIFI connection Download PDF

Info

Publication number
CN105072675A
CN105072675A CN201510443638.7A CN201510443638A CN105072675A CN 105072675 A CN105072675 A CN 105072675A CN 201510443638 A CN201510443638 A CN 201510443638A CN 105072675 A CN105072675 A CN 105072675A
Authority
CN
China
Prior art keywords
mobile terminal
wifi
mobile
network
connect
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510443638.7A
Other languages
Chinese (zh)
Inventor
陈根祥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510443638.7A priority Critical patent/CN105072675A/en
Publication of CN105072675A publication Critical patent/CN105072675A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. Transmission Power Control [TPC] or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0251Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones
    • H04M1/73Battery saving arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. Transmission Power Control [TPC] or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0251Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
    • H04W52/0254Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity detecting a user operation or a tactile contact or a motion of the device
    • 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)
  • Telephone Function (AREA)

Abstract

本发明公开了一种自动关闭WIFI连接的方法、系统及移动终端,该方法包括以下步骤:检测移动终端是否断开任何可以连接的WIFI网络;检测移动终端断开任何可以连接的WIFI网络的时间是否大于预设阈值T1;若断开的时间大于预设阈值T1,则继续检测移动终端是否处于移动状态;若移动终端处于移动状态,则自动关闭WIFI网络连接。本发明能自动关闭WIFI连接以达到节省移动终端电量的目的,并且不需要用户手动关闭WIFI连接,减少操作步骤。

The present invention discloses a method, system and mobile terminal for automatically closing a WIFI connection. The method comprises the following steps: detecting whether the mobile terminal is disconnected from any WIFI network that can be connected; detecting whether the time when the mobile terminal is disconnected from any WIFI network that can be connected is greater than a preset threshold value T1; if the disconnection time is greater than the preset threshold value T1, continuing to detect whether the mobile terminal is in a mobile state; if the mobile terminal is in a mobile state, automatically closing the WIFI network connection. The present invention can automatically close the WIFI connection to save power of the mobile terminal, and does not require the user to manually close the WIFI connection, thereby reducing the operation steps.

Description

一种自动关闭WIFI连接的方法、系统及移动终端A method, system and mobile terminal for automatically closing WIFI connection

技术领域technical field

本发明涉及通信终端技术领域,更具体地说,是涉及一种自动关闭WIFI连接的方法、系统及移动终端。The present invention relates to the technical field of communication terminals, and more specifically relates to a method, system and mobile terminal for automatically closing a WIFI connection.

背景技术Background technique

通信终端(如手机等)是现代社会中人们必不可少的联络工具,给人们的工作和生活带来了极大的便利。出于工作或生活中的某种需要,人民对于无线网络(WLAN)的依赖性也越来越强,现在移动终端比如智能移动终端连接无线网络(WLAN)上网非常普遍,无论是在家里还是在办公室,因为使用WIFI上网可以节省移动终端本身的数据流量。但是如果移动终端离开WIFI覆盖的区域还是一直进行网络扫描则会消耗很大电量,移动终端的电量是有限的,如果长时间忘记关闭WIFI连接则耗电量更大,同时也损害移动终端的使用寿命。Communication terminals (such as mobile phones, etc.) are indispensable communication tools for people in modern society, which bring great convenience to people's work and life. Due to certain needs in work or life, people are increasingly dependent on wireless networks (WLAN). Nowadays, mobile terminals such as smart mobile terminals are very common to connect to wireless networks (WLAN) to surf the Internet, whether at home or at home. Office, because using WIFI to surf the Internet can save the data traffic of the mobile terminal itself. However, if the mobile terminal leaves the area covered by WIFI and continues to scan the network, it will consume a lot of power. The power of the mobile terminal is limited. If you forget to turn off the WIFI connection for a long time, the power consumption will be greater, and it will also damage the use of the mobile terminal. life.

发明内容Contents of the invention

本发明的目的在于克服现有技术中的上述缺陷,提供一种能自动关闭WIFI连接以达到节省移动终端电量的目的,并且不需要用户手动关闭WIFI连接的方法、系统及移动终端。The purpose of the present invention is to overcome the above-mentioned defects in the prior art, and provide a method, system and mobile terminal that can automatically close the WIFI connection to save the power of the mobile terminal, and do not require the user to manually close the WIFI connection.

为实现上述目的,本发明提供的技术方案如下:一种自动关闭WIFI连接的方法,该方法包括以下步骤:In order to achieve the above object, the technical solution provided by the present invention is as follows: a method for automatically closing a WIFI connection, the method comprising the following steps:

检测移动终端是否断开任何可以连接的WIFI网络;Detect whether the mobile terminal is disconnected from any WIFI network that can be connected;

检测移动移动终端断开任何可以连接的WIFI网络的时间是否大于预设阈值T1;Detect whether the time for the mobile terminal to disconnect from any WIFI network that can be connected is greater than the preset threshold T1;

若断开的时间大于预设阈值T1,则继续检测移动终端是否处于移动状态;If the disconnection time is greater than the preset threshold T1, continue to detect whether the mobile terminal is in a moving state;

若移动终端处于移动状态,则自动关闭WIFI网络连接。If the mobile terminal is in a moving state, the WIFI network connection is automatically closed.

作为优选的,在检测移动终端是否断开任何可以连接的WIFI网络的步骤中,检测是否断开任何可以连接的WIFI网络的方法为:As preferably, in the step of detecting whether the mobile terminal disconnects any WIFI network that can be connected, the method for detecting whether to disconnect any WIFI network that can be connected is:

移动终端打开无线网络连接功能后,对周围的WIFI网络进行扫描,如果没有可以连接得上的网络,则移动终端的WIFI连接会处于断开状态。作为优选的,所述检测移动移动终端断开任何可以连接的WIFI网络的时间是否大于预设阈值T1的步骤中,还包括下述步骤:After the mobile terminal turns on the wireless network connection function, it scans the surrounding WIFI networks. If there is no network that can be connected, the WIFI connection of the mobile terminal will be disconnected. As preferably, in the step of detecting whether the time for the mobile terminal to disconnect any WIFI network that can be connected is greater than the preset threshold T1, the following steps are also included:

根据用户的需求设定阈值T1的大小。The size of the threshold T1 is set according to user requirements.

作为优选的,在若断开的时间大于预设阈值T1,则继续检测移动终端是否处于移动状态的步骤中,检测移动终端是否处于移动状态的方法为:Preferably, in the step of continuing to detect whether the mobile terminal is in a moving state if the disconnection time is greater than the preset threshold T1, the method for detecting whether the mobile terminal is in a moving state is:

通过移动终端内置的加速度传感器、重力传感器判断移动终端是否在移动,并检测移动终端的运动方向,以及在各个方向上的移动距离、移动速度和加速度信息。Use the built-in acceleration sensor and gravity sensor of the mobile terminal to judge whether the mobile terminal is moving, and detect the direction of movement of the mobile terminal, as well as the moving distance, moving speed and acceleration information in each direction.

作为优选的,检测移动终端的运动方向,以及在各个方向上的移动距离、移动速度和加速度信息的方法为:As preferably, the method for detecting the direction of motion of the mobile terminal, and the moving distance, moving speed and acceleration information in each direction is:

通过重力传感器获取移动终端相对于水平面的倾斜角度;通过加速度传感器获取移动终端在X、Y、Z三个方向上的加速度值ax、ay、az,设定间隔T2从移动终端的各传感器获取一次值,根据运动学公式:Obtain the inclination angle of the mobile terminal relative to the horizontal plane through the gravity sensor; obtain the acceleration values ax, ay, and az of the mobile terminal in the three directions of X, Y, and Z through the acceleration sensor, and set the interval T2 to obtain it once from each sensor of the mobile terminal value, according to the kinematic formula:

v=v0+at;v=v 0 +at;

s=v0t+0.5*at2s=v 0 t+0.5*at 2 ;

假设移动终端当前位置坐标为P1(x1,y1,z1),下一个位置坐标为P2(x2,y2,z2),根据上述公式,可以得出P2相对P1的位置,若这两点的差值大于临界值,则说明移动终端的移动幅度较大,移动终端处于移动状态,所述临界值为人们在步行活动中通常的移动值。Assume that the current position coordinates of the mobile terminal are P1 (x1, y1, z1), and the next position coordinates are P2 (x2, y2, z2). According to the above formula, the position of P2 relative to P1 can be obtained. If the difference between these two points If it is greater than the critical value, it indicates that the mobile terminal has a relatively large moving range, and the mobile terminal is in a moving state, and the critical value is the usual moving value of people in walking activities.

本发明还提供一种自动关闭WIFI连接的系统,该系统包括:The present invention also provides a system for automatically closing the WIFI connection, the system comprising:

第一检测模块,用于检测移动终端是否断开任何可以连接的WIFI网络;The first detection module is used to detect whether the mobile terminal disconnects any WIFI network that can be connected;

判断模块,用于检测移动移动终端断开任何可以连接的WIFI网络的时间是否大于预设阈值T1;Judgment module, used to detect whether the time for the mobile terminal to disconnect any WIFI network that can be connected is greater than the preset threshold T1;

第二检测模块,用于若断开的时间大于预设阈值T1,则继续检测移动终端是否处于移动状态;The second detection module is used to continue to detect whether the mobile terminal is in a moving state if the disconnection time is greater than the preset threshold T1;

执行模块,用于若移动终端处于移动状态,则自动关闭WIFI网络连接。The execution module is used for automatically closing the WIFI network connection if the mobile terminal is in a moving state.

作为优选的,该系统还包括阈值设定模块,用于根据用户的需求设定阈值T1的大小。Preferably, the system further includes a threshold setting module, configured to set the threshold T1 according to user requirements.

作为优选的,所述第二检测模块包括加速度传感器和重力传感器,通过移动终端内置的加速度传感器、重力传感器判断移动终端是否在移动,并检测移动终端的运动方向,以及在各个方向上的移动距离、移动速度和加速度信息。Preferably, the second detection module includes an acceleration sensor and a gravity sensor, and judges whether the mobile terminal is moving through the built-in acceleration sensor and gravity sensor of the mobile terminal, and detects the moving direction of the mobile terminal and the moving distance in each direction , moving speed and acceleration information.

作为优选的,所述重力传感器用于获取移动终端相对于水平面的倾斜角度,所述加速度传感器用于获取移动终端在X、Y、Z三个方向上的加速度值ax、ay、az,设定间隔T2从移动终端的各传感器获取一次值,根据运动学公式:Preferably, the gravity sensor is used to obtain the inclination angle of the mobile terminal relative to the horizontal plane, and the acceleration sensor is used to obtain the acceleration values ax, ay, az of the mobile terminal in the three directions of X, Y, and Z. The interval T2 obtains a value from each sensor of the mobile terminal, according to the kinematic formula:

v=v0+at;v=v 0 +at;

s=v0t+0.5*at2s=v 0 t+0.5*at 2 ;

假设移动终端当前位置坐标为P1(x1,y1,z1),下一个位置坐标为P2(x2,y2,z2),根据上述公式,可以得出P2相对P1的位置,若这两点的差值大于临界值,则说明移动终端的移动幅度较大,移动终端处于移动状态,所述临界值在人们在步行活动中通常的移动值。Assume that the current position coordinates of the mobile terminal are P1 (x1, y1, z1), and the next position coordinates are P2 (x2, y2, z2). According to the above formula, the position of P2 relative to P1 can be obtained. If the difference between these two points If it is greater than the critical value, it indicates that the mobile terminal has a relatively large moving range, and the mobile terminal is in a moving state, and the critical value is a normal moving value of people in walking activities.

作为优选的,所述第一检测模块包括无线网络连接模块,用于移动终端打开无线网络连接功能后,对周围的WIFI网络进行扫描,如果没有可以连接得上的网络,则移动终端的WIFI连接会处于断开状态。Preferably, the first detection module includes a wireless network connection module, which is used to scan the surrounding WIFI networks after the mobile terminal turns on the wireless network connection function. If there is no network that can be connected, the WIFI connection of the mobile terminal will be disconnected.

本发明还提供一种移动终端,其特征在于,包括上述的自动关闭WIFI连接的系统。The present invention also provides a mobile terminal, which is characterized by comprising the above-mentioned system for automatically closing WIFI connections.

与现有技术相比,本发明的有益效果在于:Compared with prior art, the beneficial effect of the present invention is:

1、本发明通过检测用户移动终端是否有WIFI连接,进而判断移动终端是否处于移动状态,从而确定是否关闭WIFI连接,运用本发明之后,能自动关闭WIFI连接以达到节省移动终端电量的目的,并且不需要用户手动关闭WIFI连接,减少操作步骤,给用户更好的使用体验。1. The present invention detects whether the user's mobile terminal has a WIFI connection, and then judges whether the mobile terminal is in a moving state, thereby determining whether to close the WIFI connection. After using the present invention, the WIFI connection can be automatically closed to achieve the purpose of saving the power of the mobile terminal, and It does not require users to manually close the WIFI connection, reducing operation steps and giving users a better experience.

2、本发明通过重力传感器获取移动终端相对于水平面的倾斜角度;通过加速度传感器获取移动终端在三轴的加速度值,运用运动学公式,可以准确的识别出移动终端是否处于移动状态,从而确定是否在该状态下断开WIFI连接,整个识别过程简单方便,且准确度高。2. The present invention obtains the inclination angle of the mobile terminal relative to the horizontal plane through the gravity sensor; obtains the acceleration value of the mobile terminal in three axes through the acceleration sensor, and uses the kinematics formula to accurately identify whether the mobile terminal is in a moving state, thereby determining whether it is In this state, the WIFI connection is disconnected, the whole identification process is simple and convenient, and the accuracy is high.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are For some embodiments of the present invention, those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1是本发明实施例一提供的自动关闭WIFI连接的方法流程图;FIG. 1 is a flowchart of a method for automatically closing a WIFI connection provided by Embodiment 1 of the present invention;

图2是本发明实施例二提供的自动关闭WIFI连接的方法流程图;FIG. 2 is a flow chart of a method for automatically closing a WIFI connection provided by Embodiment 2 of the present invention;

图3是本发明实施例三提供的自动关闭WIFI连接的系统方框图;Fig. 3 is a system block diagram of automatically closing the WIFI connection provided by Embodiment 3 of the present invention;

图4是本发明实施例四提供的自动关闭WIFI连接的系统方框图。FIG. 4 is a block diagram of a system for automatically closing a WIFI connection provided by Embodiment 4 of the present invention.

具体实施方式detailed description

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

实施例一Embodiment one

本发明的实施例一提供了一种自动关闭WIFI连接的方法,下面结合附图对本实施例进行详细说明。图1是本发明实施例一的方法流程图,请参考图1,本发明实施例的方法包括以下步骤:Embodiment 1 of the present invention provides a method for automatically closing a WIFI connection, and this embodiment will be described in detail below in conjunction with the accompanying drawings. Fig. 1 is a method flow chart of the first embodiment of the present invention, please refer to Fig. 1, the method of the embodiment of the present invention includes the following steps:

步骤S101、检测移动终端是否断开任何可以连接的WIFI网络;Step S101, detecting whether the mobile terminal is disconnected from any connectable WIFI network;

步骤S102、检测移动移动终端断开任何可以连接的WIFI网络的时间是否大于预设阈值T1;Step S102, detecting whether the time for the mobile terminal to disconnect from any WIFI network that can be connected is greater than the preset threshold T1;

步骤S103、若断开的时间大于预设阈值T1,则继续检测移动终端是否处于移动状态,即是否在上下左右移动,据此得出移动终端是否跟随人一起活动(比如走路、跑步等等);Step S103, if the disconnection time is greater than the preset threshold T1, then continue to detect whether the mobile terminal is in a moving state, that is, whether it is moving up, down, left, and right, and based on this, it can be concluded whether the mobile terminal is moving with people (such as walking, running, etc.) ;

步骤S104、若移动终端处于移动状态,则自动关闭WIFI网络连接。Step S104, if the mobile terminal is in a moving state, automatically close the WIFI network connection.

本实施例可具体运用到下述场景,需要指出的是,该场景只是本发明的应用场景之一,本发明还可以运用到其他场景中:This embodiment can be specifically applied to the following scenarios. It should be noted that this scenario is only one of the application scenarios of the present invention, and the present invention can also be applied to other scenarios:

移动终端离开WIFI覆盖的区域一定时间后还不能连接上任意一个WIFI网络,则检测移动终端是否在移动(比如人离开了办公室,在外面走动时,身上的物体会上下左右移动,通过检测物体是否移动可以得出物体所处的状态),如果是则自动关闭WIFI网络,节省电量。If the mobile terminal cannot connect to any WIFI network after leaving the area covered by WIFI for a certain period of time, it will detect whether the mobile terminal is moving (for example, when a person leaves the office and walks outside, the objects on his body will move up and down, left and right, by detecting whether the object is The state of the object can be obtained by moving), if it is, the WIFI network will be automatically turned off to save power.

运用本发明之后,能自动关闭WIFI连接以达到节省移动终端电量的目的,并且不需要用户手动关闭WIFI连接,减少操作步骤,给用户更好的使用体验。After using the present invention, the WIFI connection can be automatically closed to save the power of the mobile terminal, and the user does not need to manually close the WIFI connection, reducing operation steps and giving the user a better use experience.

实施例二Embodiment two

本发明的实施例二提供了一种自动关闭WIFI连接的方法,是在实施例一的基础之上进行的改进。图2是本发明实施例二的方法流程图,请参考图2,本发明实施例的方法包括以下步骤:Embodiment 2 of the present invention provides a method for automatically closing a WIFI connection, which is an improvement on the basis of Embodiment 1. Fig. 2 is a method flowchart of the second embodiment of the present invention, please refer to Fig. 2, the method of the embodiment of the present invention includes the following steps:

步骤S201、检测移动终端是否断开任何可以连接的WIFI网络;Step S201, detecting whether the mobile terminal is disconnected from any connectable WIFI network;

在步骤S201中,打开无线网络连接(WLAN)功能后,移动终端(如手机)会对周围的WIFI网络进行扫描,如果没有可以连接得上的网络,则移动终端的WIFI连接会处于断开状态,通过计算机程序可以检测出这种状态,即移动终端是否连接上WIFI网络。In step S201, after the wireless network connection (WLAN) function is turned on, the mobile terminal (such as a mobile phone) will scan the surrounding WIFI networks, if there is no network that can be connected, the WIFI connection of the mobile terminal will be in a disconnected state , this state can be detected through a computer program, that is, whether the mobile terminal is connected to the WIFI network.

步骤S202、检测移动移动终端断开任何可以连接的WIFI网络的时间是否大于预设阈值T1;Step S202, detecting whether the time for the mobile terminal to disconnect from any WIFI network that can be connected is greater than the preset threshold T1;

步骤S203、若断开的时间大于预设阈值T1,则继续检测移动终端是否处于移动状态,即是否在上下左右移动,据此得出移动终端是否跟随人一起活动(比如走路、跑步等等);Step S203, if the disconnection time is greater than the preset threshold T1, continue to detect whether the mobile terminal is in a moving state, that is, whether it is moving up, down, left, and right, and based on this, it can be concluded whether the mobile terminal is following people (such as walking, running, etc.) ;

步骤S204、通过移动终端内置的加速度传感器、重力传感器判断移动终端是否在移动,并检测移动终端的运动方向,以及在各个方向上的移动距离、移动速度和加速度信息。具体实现形式如下:Step S204, judge whether the mobile terminal is moving through the built-in acceleration sensor and gravity sensor of the mobile terminal, and detect the moving direction of the mobile terminal, as well as the moving distance, moving speed and acceleration information in each direction. The specific implementation form is as follows:

通过重力传感器获取移动终端相对于水平面的倾斜角度;通过加速度传感器获取移动终端在X、Y、Z三个方向上的加速度值ax、ay、az,设定间隔T2从移动终端的各传感器获取一次值,根据运动学公式:Obtain the inclination angle of the mobile terminal relative to the horizontal plane through the gravity sensor; obtain the acceleration values ax, ay, and az of the mobile terminal in the three directions of X, Y, and Z through the acceleration sensor, and set the interval T2 to obtain it once from each sensor of the mobile terminal value, according to the kinematic formula:

v=v0+at;v=v 0 +at;

s=v0t+0.5*at2s=v 0 t+0.5*at 2 ;

假设移动终端当前位置坐标为P1(x1,y1,z1),下一个位置坐标为P2(x2,y2,z2),根据上述公式,可以得出P2相对P1的位置,若这两点的差值大于临界值,则说明移动终端的移动幅度较大,移动终端处于移动状态,所述临界值在人们在步行活动中通常的移动值。Assume that the current position coordinates of the mobile terminal are P1 (x1, y1, z1), and the next position coordinates are P2 (x2, y2, z2). According to the above formula, the position of P2 relative to P1 can be obtained. If the difference between these two points If it is greater than the critical value, it indicates that the mobile terminal has a relatively large moving range, and the mobile terminal is in a moving state, and the critical value is a normal moving value of people in walking activities.

步骤S205、若移动终端处于移动状态,则自动关闭WIFI网络连接,达到节省电量的目的。Step S205, if the mobile terminal is in a moving state, automatically close the WIFI network connection to achieve the purpose of saving power.

本发明的步骤S1之前,还包括下述步骤:Before the step S1 of the present invention, the following steps are also included:

S200、根据用户的需求设定阈值T1的大小,从而可以更加灵活的根据用户的实际情况来确定是否全部断开了WIFI网络连接。S200. Set the threshold value T1 according to the needs of the user, so that it can be more flexibly determined whether all WIFI network connections are disconnected according to the actual situation of the user.

本发明通过重力传感器获取移动终端相对于水平面的倾斜角度;通过加速度传感器获取移动终端在三轴的加速度值,运用运动学公式,可以准确的识别出移动终端是否处于移动状态,从而确定是否在该状态下断开WIFI连接,整个识别过程简单方便,且准确度高。The present invention obtains the inclination angle of the mobile terminal relative to the horizontal plane through the gravity sensor; obtains the acceleration value of the mobile terminal in the three axes through the acceleration sensor, and uses the kinematics formula to accurately identify whether the mobile terminal is in a moving state, thereby determining whether it is in the Disconnect the WIFI connection in the state, the whole identification process is simple and convenient, and the accuracy is high.

实施例三Embodiment three

本发明的实施例三提供了一种自动关闭WIFI连接的系统,请参考图3,本发明实施例的通信终端包括第一检测模块1、判断模块2、第二检测模块3和执行模块4,所述第一检测模块1、判断模块2、第二检测模块3和执行模块4顺序连接,下面将对各模块的功能进行详细说明。Embodiment 3 of the present invention provides a system for automatically closing WIFI connections. Please refer to FIG. 3 . The communication terminal of the embodiment of the present invention includes a first detection module 1, a judgment module 2, a second detection module 3 and an execution module 4. The first detection module 1 , judgment module 2 , second detection module 3 and execution module 4 are sequentially connected, and the functions of each module will be described in detail below.

第一检测模块1,用于检测移动终端是否断开任何可以连接的WIFI网络;The first detection module 1 is used to detect whether the mobile terminal disconnects any WIFI network that can be connected;

判断模块2,用于检测移动移动终端断开任何可以连接的WIFI网络的时间是否大于预设阈值T1;Judgment module 2, used to detect whether the time for the mobile terminal to disconnect any WIFI network that can be connected is greater than the preset threshold T1;

第二检测模块3,用于若断开的时间大于预设阈值T1,则继续检测移动终端是否处于移动状态,即是否在上下左右移动,据此得出移动终端是否跟随人一起活动(比如走路、跑步等等)The second detection module 3 is used to continue to detect whether the mobile terminal is in a moving state if the time of disconnection is greater than the preset threshold T1, that is, whether it is moving up, down, left, and right, and thus draws whether the mobile terminal is active with people (such as walking) , running, etc.)

执行模块4,用于若移动终端处于移动状态,则自动关闭WIFI网络连接。The execution module 4 is configured to automatically close the WIFI network connection if the mobile terminal is in a moving state.

实施例四Embodiment four

本发明的实施例四提供了一种自动关闭WIFI连接的系统,请参考图4,本发明实施例的通信终端与上述实施例三的通信终端的区别在于,还包括阈值设定模块5,用于根据用户的需求设定阈值T1的大小。Embodiment 4 of the present invention provides a system for automatically closing WIFI connections. Please refer to FIG. The value of the threshold T1 is set according to the needs of the user.

另外,所述第二检测模块3包括加速度传感器6和重力传感器7,通过移动终端内置的加速度传感器6、重力传感器7判断移动终端是否在移动,并检测移动终端的运动方向,以及在各个方向上的移动距离、移动速度和加速度信息。所述重力传感器6用于获取移动终端相对于水平面的倾斜角度,所述加速度传感器7用于获取移动终端在X、Y、Z三个方向上的加速度值ax、ay、az,设定间隔T2从移动终端的各传感器获取一次值,根据运动学公式:In addition, the second detection module 3 includes an acceleration sensor 6 and a gravity sensor 7, through the built-in acceleration sensor 6 and gravity sensor 7 of the mobile terminal, it is judged whether the mobile terminal is moving, and the direction of motion of the mobile terminal is detected, and in each direction The moving distance, moving speed and acceleration information. The gravity sensor 6 is used to obtain the inclination angle of the mobile terminal relative to the horizontal plane, and the acceleration sensor 7 is used to obtain the acceleration values ax, ay and az of the mobile terminal in the three directions of X, Y and Z, and the interval T2 is set Obtain a value from each sensor of the mobile terminal, according to the kinematic formula:

v=v0+at;v=v 0 +at;

s=v0t+0.5*at2s=v 0 t+0.5*at 2 ;

假设移动终端当前位置坐标为P1(x1,y1,z1),下一个位置坐标为P2(x2,y2,z2),根据上述公式,可以得出P2相对P1的位置,若这两点的差值大于临界值,则说明移动终端的移动幅度较大,移动终端处于移动状态,所述临界值为人们在步行活动中通常的移动值。Assume that the current position coordinates of the mobile terminal are P1 (x1, y1, z1), and the next position coordinates are P2 (x2, y2, z2). According to the above formula, the position of P2 relative to P1 can be obtained. If the difference between these two points If it is greater than the critical value, it indicates that the mobile terminal has a relatively large moving range, and the mobile terminal is in a moving state, and the critical value is the usual moving value of people in walking activities.

所述第一检测模块1包括无线网络连接模块8,用于移动终端打开无线网络连接功能后,对周围的WIFI网络进行扫描,如果没有可以连接得上的网络,则移动终端的WIFI连接会处于断开状态。The first detection module 1 includes a wireless network connection module 8, which is used to scan the surrounding WIFI networks after the mobile terminal opens the wireless network connection function. If there is no network that can be connected, the WIFI connection of the mobile terminal will be in Disconnected state.

实施例五Embodiment five

发明的实施例五提供了一种移动终端,该移动终端包括上述的自动关闭WIFI连接的系统,可以应用前述对应的一种自动关闭WIFI连接的方法,详情参见上述实施例一至实施例四的描述,在此不再赘述。Embodiment 5 of the invention provides a mobile terminal, which includes the above-mentioned system for automatically closing WIFI connections, and the aforementioned corresponding method for automatically closing WIFI connections can be applied. For details, refer to the descriptions of the first to fourth embodiments above. , which will not be repeated here.

需要说明的是,上述实施例提供的一种通信终端,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将系统的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。此外,该通信终端可以是手机、平板电脑、人机交互终端或其他具有菜单键的通信终端设备。It should be noted that, the communication terminal provided by the above-mentioned embodiment is only illustrated by the division of the above-mentioned functional modules. The structure is divided into different functional modules to complete all or part of the functions described above. In addition, the communication terminal may be a mobile phone, a tablet computer, a human-computer interaction terminal or other communication terminal devices with menu keys.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,所述的程序可以在存储于一计算机可读取存储介质中,所述的存储介质,如ROM/RAM、磁盘、光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the method of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the described Storage media, such as ROM/RAM, magnetic disk, optical disk, etc.

上述实施例为本发明较佳的实施方式,但本发明的实施方式并不受上述实施例的限制,其他的任何未背离本发明的精神实质与原理下所作的改变、修饰、替代、组合、简化,均应为等效的置换方式,都包含在本发明的保护范围之内。The above-mentioned embodiment is a preferred embodiment of the present invention, but the embodiment of the present invention is not limited by the above-mentioned embodiment, and any other changes, modifications, substitutions, combinations, Simplifications should be equivalent replacement methods, and all are included in the protection scope of the present invention.

Claims (11)

1. automatically close the method that WIFI connects, it is characterized in that, the method comprises the following steps:
Detect mobile terminal and whether disconnect any WIFI network that can connect;
Whether the time detecting any WIFI network that can connect of mobile mobile terminal disconnection is greater than predetermined threshold value T1;
If the time disconnected is greater than predetermined threshold value T1, then continues to detect mobile terminal and whether be in mobile status;
If mobile terminal is in mobile status, then automatically closes WIFI network and connect.
2. whether the method for automatic closedown WIFI connection according to claim 1, is characterized in that disconnect in the step of any WIFI network that can connect at detection mobile terminal, and detecting the method whether disconnecting any WIFI network that can connect is:
After mobile terminal opens wireless network linkage function, scan the WIFI network of surrounding, if do not have the network that can connect, then the WIFI connection of mobile terminal can be in off-state.
3. the method for automatic closedown WIFI connection according to claim 1, it is characterized in that, whether the time that the mobile mobile terminal of described detection disconnects any WIFI network that can connect is greater than in the step of predetermined threshold value T1, also comprises the steps:
According to the size of the requirements set threshold value T1 of user.
4. the method for automatic closedown WIFI connection according to claim 1, it is characterized in that, whether if be greater than predetermined threshold value T1 in the time disconnected, then continue to detect mobile terminal and be in the step of mobile status, the method whether detection mobile terminal is in mobile status is:
Judge whether mobile terminal is moving by the built-in acceleration transducer of mobile terminal, gravity sensor, and detect the direction of motion of mobile terminal, and displacement, translational speed and acceleration information in all directions.
5. the method that connects of automatic closedown WIFI according to claim 4, is characterized in that, detect the direction of motion of mobile terminal, and the method for displacement, translational speed and acceleration information is in all directions:
Mobile terminal angle of inclination is with respect to the horizontal plane obtained by gravity sensor; Obtain mobile terminal accekeration ax, ay, az on X, Y, Z tri-directions by acceleration transducer, setting interval T 2 obtains a sub-value, according to kinematics formula from each transducer of mobile terminal:
v=v 0+at;
s=v 0t+0.5*at 2
Suppose that mobile terminal current position coordinates is P1 (x1, y1, z1), next position coordinates is P2 (x2, y2, z2), according to above-mentioned formula, the position of the relative P1 of P2 can be drawn, if this difference of 2 is greater than critical value, then illustrate that the mobile range of mobile terminal is comparatively large, mobile terminal is in mobile status, and described critical value is people's common movement values in ambulatory activities.
6. automatically close the system that WIFI connects, it is characterized in that, this system comprises:
Whether first detection module, disconnect any WIFI network that can connect for detecting mobile terminal;
Judge module, whether the time disconnecting any WIFI network that can connect for detecting mobile mobile terminal is greater than predetermined threshold value T1;
Second detection module, if be greater than predetermined threshold value T1 for the time disconnected, then continue to detect mobile terminal and whether is in mobile status;
Executive Module, if be in mobile status for mobile terminal, then automatically close WIFI network and connects.
7. the system of automatic closedown WIFI connection according to claim 6, it is characterized in that, this system also comprises threshold value setting module, for the size of the requirements set threshold value T1 according to user.
8. the system of automatic closedown WIFI connection according to claim 6, it is characterized in that, described second detection module comprises acceleration transducer and gravity sensor, judge whether mobile terminal is moving by the built-in acceleration transducer of mobile terminal, gravity sensor, and detect the direction of motion of mobile terminal, and displacement, translational speed and acceleration information in all directions.
9. the system of automatic closedown WIFI connection according to claim 8, it is characterized in that, described gravity sensor is for obtaining mobile terminal angle of inclination with respect to the horizontal plane, described acceleration transducer is for obtaining mobile terminal accekeration ax, ay, az on X, Y, Z tri-directions, setting interval T 2 obtains a sub-value, according to kinematics formula from each transducer of mobile terminal:
v=v 0+at;
s=v 0t+0.5*at 2
Suppose that mobile terminal current position coordinates is P1 (x1, y1, z1), next position coordinates is P2 (x2, y2, z2), according to above-mentioned formula, the position of the relative P1 of P2 can be drawn, if this difference of 2 is greater than critical value, then illustrate that the mobile range of mobile terminal is comparatively large, mobile terminal is in mobile status, and described critical value is people's common movement values in ambulatory activities.
10. the system of automatic closedown WIFI connection according to claim 6, it is characterized in that, described first detection module comprises wireless network link block, after opening wireless network linkage function for mobile terminal, the WIFI network of surrounding is scanned, if do not have the network that can connect, then the WIFI connection of mobile terminal can be in off-state.
11. 1 kinds of mobile terminals, is characterized in that, comprise the system that the automatic closedown WIFI according to any one of claim 6-10 connects.
CN201510443638.7A 2015-07-24 2015-07-24 A method, system and mobile terminal for automatically closing WIFI connection Pending CN105072675A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510443638.7A CN105072675A (en) 2015-07-24 2015-07-24 A method, system and mobile terminal for automatically closing WIFI connection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510443638.7A CN105072675A (en) 2015-07-24 2015-07-24 A method, system and mobile terminal for automatically closing WIFI connection

Publications (1)

Publication Number Publication Date
CN105072675A true CN105072675A (en) 2015-11-18

Family

ID=54501919

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510443638.7A Pending CN105072675A (en) 2015-07-24 2015-07-24 A method, system and mobile terminal for automatically closing WIFI connection

Country Status (1)

Country Link
CN (1) CN105072675A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105636238A (en) * 2016-02-26 2016-06-01 北京小米移动软件有限公司 Wireless fidelity WiFi connection control method and device
CN105744607A (en) * 2016-04-29 2016-07-06 乐视控股(北京)有限公司 Intelligent WIFI scanning control method of mobile terminal and mobile terminal
CN106255146A (en) * 2016-08-16 2016-12-21 广东欧珀移动通信有限公司 The electricity-saving control method of a kind of terminal, device and terminal
CN106793039A (en) * 2016-12-30 2017-05-31 深圳天珑无线科技有限公司 Terminal control method and device
WO2017206867A1 (en) * 2016-05-31 2017-12-07 广东欧珀移动通信有限公司 Sensor shutdown method and apparatus, storage medium, and electronic device
CN107517445A (en) * 2017-08-30 2017-12-26 努比亚技术有限公司 WLAN WifiTrak method and mobile terminal
CN108234760A (en) * 2017-12-28 2018-06-29 努比亚技术有限公司 Athletic posture recognition methods, mobile terminal and computer readable storage medium
CN108770046A (en) * 2018-04-08 2018-11-06 天芯智能(深圳)股份有限公司 A kind of method of the saving electricity of smartwatch
CN116056190A (en) * 2022-05-06 2023-05-02 荣耀终端有限公司 Method for managing terminal device, electronic device and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110171909A1 (en) * 2010-01-12 2011-07-14 Samsung Electronics Co., Ltd. Method and apparatus for automatically connecting short range wireless network in portable terminal
CN103179647A (en) * 2013-03-11 2013-06-26 广东欧珀移动通信有限公司 Method for intelligently controlling wifi module and mobile terminal
CN103220758A (en) * 2013-03-28 2013-07-24 东莞宇龙通信科技有限公司 WiFi (wireless fidelity) automatic configuration method and system of mobile terminal
CN103716864A (en) * 2014-01-13 2014-04-09 联想(北京)有限公司 Information processing method, system and electronic device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110171909A1 (en) * 2010-01-12 2011-07-14 Samsung Electronics Co., Ltd. Method and apparatus for automatically connecting short range wireless network in portable terminal
CN103179647A (en) * 2013-03-11 2013-06-26 广东欧珀移动通信有限公司 Method for intelligently controlling wifi module and mobile terminal
CN103220758A (en) * 2013-03-28 2013-07-24 东莞宇龙通信科技有限公司 WiFi (wireless fidelity) automatic configuration method and system of mobile terminal
CN103716864A (en) * 2014-01-13 2014-04-09 联想(北京)有限公司 Information processing method, system and electronic device

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105636238A (en) * 2016-02-26 2016-06-01 北京小米移动软件有限公司 Wireless fidelity WiFi connection control method and device
CN105636238B (en) * 2016-02-26 2019-02-22 北京小米移动软件有限公司 Wireless Fidelity WiFi connection control method and device
CN105744607A (en) * 2016-04-29 2016-07-06 乐视控股(北京)有限公司 Intelligent WIFI scanning control method of mobile terminal and mobile terminal
WO2017206867A1 (en) * 2016-05-31 2017-12-07 广东欧珀移动通信有限公司 Sensor shutdown method and apparatus, storage medium, and electronic device
CN106255146A (en) * 2016-08-16 2016-12-21 广东欧珀移动通信有限公司 The electricity-saving control method of a kind of terminal, device and terminal
CN106793039A (en) * 2016-12-30 2017-05-31 深圳天珑无线科技有限公司 Terminal control method and device
CN107517445A (en) * 2017-08-30 2017-12-26 努比亚技术有限公司 WLAN WifiTrak method and mobile terminal
CN108234760A (en) * 2017-12-28 2018-06-29 努比亚技术有限公司 Athletic posture recognition methods, mobile terminal and computer readable storage medium
CN108234760B (en) * 2017-12-28 2020-12-15 湖南塔澳通信有限公司 Motion gesture recognition method, mobile terminal and computer readable storage medium
CN108770046A (en) * 2018-04-08 2018-11-06 天芯智能(深圳)股份有限公司 A kind of method of the saving electricity of smartwatch
CN108770046B (en) * 2018-04-08 2021-04-30 天芯智能(深圳)股份有限公司 Method for saving electric quantity of smart watch
CN116056190A (en) * 2022-05-06 2023-05-02 荣耀终端有限公司 Method for managing terminal device, electronic device and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN105072675A (en) A method, system and mobile terminal for automatically closing WIFI connection
US10817708B2 (en) Facial tracking method and apparatus, and storage medium
CN103400108B (en) Face identification method, device and mobile terminal
CN111316673B (en) Electronic fence updating method and communication device
CN105302284B (en) A kind of control method of Intelligent worn device, apparatus and system
CN107546808B (en) Charging identification circuit, identification method and terminal equipment
CN107734615A (en) The control method and mobile terminal of the antenna of mobile terminal
CN106471697A (en) Method, device, power adapter and mobile terminal for controlling charging
CN106340925A (en) A charging control method, device and terminal
CN106506820B (en) Backup method and device for mobile terminal data
CN106961676B (en) Network searching method, device and medium
CN106603548A (en) Application registration method and mobile terminal
CN108990105A (en) wireless communication transmission method, device, mobile terminal and computer readable storage medium
CN106851755A (en) A kind of cell registration method and device
CN105048018B (en) The charging method and device of a kind of terminal with data exchanging function
CN105933944A (en) Optimized use method, device and mobile terminal of 4G network
CN106791084A (en) Synchronization method of personalized parameters and mobile terminal
CN106453908A (en) A method, device, and mobile terminal for switching between dual-card networks based on calls
CN106570431A (en) File reading method and device
CN105517192A (en) A wireless network connection method and device
CN105357378B (en) It automatically opens WIFI list and connects the method and mobile terminal of WIFI
CN106500751B (en) Calibration method of proximity sensor and mobile terminal
US10719926B2 (en) Image stitching method and electronic device
CN115278932A (en) Network reconnection method, device, terminal device and storage medium
CN106714279A (en) A hotspot network switching method and terminal equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20151118

RJ01 Rejection of invention patent application after publication