WO2012065374A1 - Method and device for controlling on/off of data link - Google Patents

Method and device for controlling on/off of data link Download PDF

Info

Publication number
WO2012065374A1
WO2012065374A1 PCT/CN2011/071150 CN2011071150W WO2012065374A1 WO 2012065374 A1 WO2012065374 A1 WO 2012065374A1 CN 2011071150 W CN2011071150 W CN 2011071150W WO 2012065374 A1 WO2012065374 A1 WO 2012065374A1
Authority
WO
WIPO (PCT)
Prior art keywords
user
network connection
state
network
disconnect
Prior art date
Application number
PCT/CN2011/071150
Other languages
French (fr)
Chinese (zh)
Inventor
刘彩凤
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2012065374A1 publication Critical patent/WO2012065374A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/12Arrangements for remote connection or disconnection of substations or of equipment thereof
    • 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/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Definitions

  • the present invention relates to the field of communications and computers and embedded systems, and more particularly to a method and apparatus for controlling data link switching. Background technique
  • the terminal device Due to the attention to traffic, a large number of traffic monitoring software has emerged. But these software can only monitor traffic and cannot play a controlling role.
  • the mobile terminal When the user stops the Internet operation but does not disconnect the network, the mobile terminal is still connected to the network and occupies the link resources.
  • the terminal device also exchanges some information with the network side, and all of the information needs to occupy network resources.
  • the terminal device has the functions of a mobile phone and a computer, and the terminal device is externally connected with a conventional television as a display. Unlike a general mobile terminal, the screen is always bright. The state, there is no state in which the smart terminal sleeps.
  • the link is always in a connected state, and some network software running in the background device in the terminal device will regularly perform operations such as synchronization, generate a large amount of traffic, and waste a lot of network resources.
  • the communication service operator will always incur charges based on the time of the Internet or the flow rate.
  • the embodiments of the present invention provide a method and apparatus for controlling data link switching, which are used to save network resources.
  • a method for controlling data link switching includes the following steps: detecting whether there is service data transmission; when detecting that there is no preset time duration When the service data is transmitted, it is detected whether it is in the non-user use state; if yes, the network connection is disconnected.
  • the disconnecting the network connection includes: entering the sleep state if the user is in the non-user use state, and disconnecting the network connection when entering the sleep state.
  • the step of detecting whether it is in a non-user use state includes: detecting whether it is in a non-user use state by detecting whether a lock that prevents entering the sleep state is detected, and if not, determining that it is in a non-user use state.
  • the step of disconnecting the network connection includes: the control layer sends a signal requesting disconnection of the network connection to the radio interface layer RIL; the RIL forwards a signal requesting disconnection of the network connection to the radio layer; and the wireless layer disconnects the network connection.
  • the disconnecting the network connection further includes the steps of: receiving an operation command of the user, and establishing a network connection.
  • a device for controlling data link switching comprising:
  • a detecting module configured to detect whether there is service data transmission
  • the power management module is configured to detect whether the user is in a non-user usage state when no service data transmission is detected within a preset duration;
  • the control module is configured to disconnect the network when the user is in a non-user state.
  • the power management module is further configured to perform a sleep process if the user is in a non-user state.
  • the control module is specifically configured to disconnect the network when entering the sleep state.
  • the power management module passes: detecting whether there is a lock that prevents the sleep state from entering, if not, Then determine that it is in a non-user usage state.
  • the control module includes: a control layer unit, a RIL unit, and a radio layer unit; the control layer unit is configured to send a signal requesting disconnection of the network connection to the RIL unit; and the RIL unit is configured to forward the signal requesting disconnection of the network connection to the radio layer unit
  • the wireless layer unit is used to disconnect the network.
  • the device further includes: an interface module, configured to receive an operation command of the user; and the control module is further configured to establish a network connection.
  • the embodiment of the present invention disconnects the network connection when there is no service data transmission (including receiving and transmitting) for a period of time, and the user is disconnected from the network when the user is not using the mobile terminal, and the network is still in the connected state and occupies the network resources. Increase the power consumption of the device.
  • FIG. 1 is a schematic flowchart of a basic method for controlling a data link to be disconnected according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a detailed method for controlling a data link disconnection according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of a user according to an embodiment of the present invention
  • FIG. 4 is a schematic flowchart of a detailed method for disconnecting a lock control data link by preventing a lock from entering a sleep state according to an embodiment of the present invention
  • FIG. 5 is a schematic flowchart of a method for controlling data link connectivity according to an embodiment of the present invention
  • FIG. 6 is a schematic diagram of a basic structure of a device according to an embodiment of the present invention
  • FIG. 7 is a schematic structural diagram of a device according to an embodiment of the present invention. detailed description
  • the embodiment of the present invention disconnects the network connection when there is no service data transmission (including receiving and transmitting) for a period of time, and the user is disconnected from the network when the user is not using the mobile terminal, and the network is still in the connected state and occupies the network resources. Increase the power consumption of the device.
  • the service data refers to data related to the service content, and is used to maintain the network connection.
  • the data is control data and is not part of the business data.
  • Step 101 Check whether there is service data transmission. When it is detected that there is a service data transmission, the detection is continued, and step 101 is repeated.
  • Step 102 When it is detected that there is no service data transmission within the preset duration, it is detected whether it is in a non-user usage state.
  • the preset duration may be 3-5 minutes.
  • Step 103 If the user is in a non-user state, disconnect the network. If it is not in the non-user mode, continue the test and repeat step 101.
  • Step 201 Periodically check whether there is service data transmission. After the data link is established, the mobile terminal software generates a virtual network card, and the network card driver records the data traffic via the network card, thereby determining whether there is service data transmission. This period can be 1-5 seconds. If there is a service data transmission, repeat this step, otherwise proceed to step 202.
  • Step 202 The control layer sends a signal requesting disconnection of the network connection to the RIL (Radio Interface Layer).
  • RIL Radio Interface Layer
  • Step 203 The RIL forwards a signal requesting disconnection of the network connection to the wireless layer.
  • Step 204 The wireless layer disconnects the network.
  • the user may perform other operations temporarily. If the network connection is disconnected at this time, the subsequent online operation may be affected. Therefore, preferably, when no service data transmission is detected, it is further detected whether it is in a non-user usage state, and disconnects the network connection when in a non-user usage state.
  • the detailed method for controlling the data link disconnection by the user using the state in this embodiment is as follows:
  • Step 301 Periodically check whether there is service data transmission. If there is data transmission, repeat this step, otherwise proceed to step 302.
  • Step 302 Detect whether it is in a non-user usage state, and if yes, proceed to step 303, otherwise continue to step 301.
  • Step 303 Enter sleep processing. Hibernation processing includes locking the screen, the drive node is in the suspend state, releasing CPU resources, and so on.
  • Step 304 The control layer sends a signal to the RIL requesting to disconnect the network.
  • Step 305 The RIL forwards a signal requesting to disconnect the network connection to the wireless layer.
  • Step 306 The wireless layer disconnects the network.
  • the wireless layer can also feed back the completed signal to the upper layer.
  • the detailed method for controlling the disconnection of the data link by preventing the lock from entering the sleep state in this embodiment is as follows:
  • Step 401 Periodically check whether there is service data transmission. If there is a service data transmission, proceed to step 402, otherwise proceed to step 403.
  • Step 402 Each time the same bright screen lock is applied, and the start time of the bright screen lock is refreshed, the timer released when the bright screen lock is reset is reset, and then step 401 is continued.
  • the lock of the time release mechanism is used, and the lock is equivalent to a mark, which can be released when the preset time is reached (ie, the mark is cleared).
  • Step 403 Release the bright screen lock when the length of time to release the bright screen lock is reached. As long as the bright screen is latched, it does not go to sleep.
  • Step 404 Detect whether there are other locks that prevent entering the sleep state, such as some locks running the software in the background, if yes, proceed to step 401, otherwise continue to step 405.
  • Step 405 Enter the pre-sleep state.
  • Step 406 The timer released when the bright screen is locked is timed out, enters the sleep state, and disconnects the network. Pick up.
  • the lock is used to control whether to enter the sleep state.
  • the terminal device with the network box adds sleep processing thereto, and the sleep processing triggers the disconnection of the network connection, thereby saving the network. Resources, and reduce power consumption, and extend equipment life.
  • the method for controlling data link connectivity in this embodiment is as follows:
  • Step 501 Receive an operation command of the user.
  • Step 502 The control layer sends a signal to the RIL requesting to establish a network connection.
  • Step 503 The RIL forwards a signal requesting to establish a network connection to the wireless layer.
  • Step 504 The wireless layer establishes a network connection.
  • the wireless layer can also feedback the completion of the signal to the upper layer.
  • the apparatus for controlling data link switching in this embodiment includes: a detecting module 601, a control module 602, and a power management module 603.
  • the device may be a mobile terminal such as a mobile phone or a device with a network box.
  • the detecting module 601 is configured to detect whether there is service data transmission.
  • the power management module 603 is configured to detect whether the user is in a non-user usage state when no service data transmission is detected within a preset time period.
  • the control module 602 is configured to disconnect the network when in a non-user state of use.
  • the power management module 603 performs a sleep process. Control module 602 disconnects the network when entering the sleep state. The power management module 603 detects whether there is a lock that blocks the sleep state, and if not, determines that it is in a non-user use state.
  • the control module 602 includes: a control layer unit, an RIL unit, and a radio layer unit.
  • the control layer unit is configured to send a signal to the RIL unit requesting disconnection of the network connection.
  • the RIL unit is used to forward a signal requesting disconnection of the network connection to the radio layer unit.
  • the wireless layer unit is used to disconnect the network.
  • the device further includes: an interface module 604 for receiving an operation command of the user, as shown in FIG.
  • Control module 602 is also used to establish a network connection.
  • the embodiment of the present invention disconnects the network connection when there is no service data transmission (including receiving and transmitting) for a period of time, and the user is disconnected from the network when the user is not using the mobile terminal, and the network is still in the connected state and occupies the network resources. Increase the power consumption of the device.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can be embodied in the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Landscapes

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

Abstract

A method and device for controlling on/off of a data link is disclosed, and the method includes: detecting if service data transmission exists in the data link; when it is detected that there is no service data transmission in preset duration, detecting if the mobile terminal is in non-user using state; and if yes, disconnecting the network.

Description

一种控制数据链路通断的方法及装置 技术领域  Method and device for controlling data link on and off
本发明涉及通信及计算机和嵌入式领域, 特别是涉及一种控制数据链 路通断的方法及装置。 背景技术  The present invention relates to the field of communications and computers and embedded systems, and more particularly to a method and apparatus for controlling data link switching. Background technique
随着通信技术的发展, 人们的生活已离不开网络。 伴随着手机和上网 盒( Internet box )等移动终端嵌入式技术的快速发展, 移动终端具有了与计 算机基本相同的上网功能。 例如, 浏览网页、 下载电影和音乐、 及视频通 话等。 各通信运营商已将数据业务作为一大发展方向。 移动终端所携带的 数据业务功能已得到非常普遍的发展及完善。 移动终端的数据业务被普遍 使用, 流量和资费的控制成为移动终端用户关注的焦点。  With the development of communication technology, people's lives are inseparable from the network. Along with the rapid development of mobile terminal embedded technologies such as mobile phones and Internet boxes, mobile terminals have basically the same Internet access function as computers. For example, browsing the web, downloading movies and music, and video calls. Each communication carrier has taken data services as a major development direction. The data service functions carried by mobile terminals have been very developed and improved. The data services of mobile terminals are widely used, and the control of traffic and tariffs has become the focus of attention of mobile terminal users.
出于对流量的关注, 大量流量监控软件纷纷出现。 但是这些软件只能 监控流量, 无法起到控制的作用。 在用户停止上网操作但未断开网络连接 时, 移动终端仍然处于与网络连接的状态, 占用着链路资源。 并且, 终端 设备为了保持链路连接, 还会与网络侧交互一些信息, 这些信息都需要占 用网络资源。 尤其是对于一些特殊的移动终端, 如带上网盒的终端设备, 该终端设备兼具有手机和计算机的功能, 该终端设备外接传统的电视作为 显示器, 与一般的移动终端不同, 屏幕一直处于亮的状态, 没有智能终端 休眠的状态。 针对这样特殊的终端设备, 链路一直处于连接状态, 终端设 备中一些后台运行的网络软件就会有规律进行同步等操作, 产生大量的流 量, 浪费大量网络资源。 另外, 通信服务运营商根据上网时间或流量计费, 这种连接状态将一直产生费用。 发明内容 Due to the attention to traffic, a large number of traffic monitoring software has emerged. But these software can only monitor traffic and cannot play a controlling role. When the user stops the Internet operation but does not disconnect the network, the mobile terminal is still connected to the network and occupies the link resources. Moreover, in order to maintain the link connection, the terminal device also exchanges some information with the network side, and all of the information needs to occupy network resources. Especially for some special mobile terminals, such as terminal devices with a network box, the terminal device has the functions of a mobile phone and a computer, and the terminal device is externally connected with a conventional television as a display. Unlike a general mobile terminal, the screen is always bright. The state, there is no state in which the smart terminal sleeps. For such a special terminal device, the link is always in a connected state, and some network software running in the background device in the terminal device will regularly perform operations such as synchronization, generate a large amount of traffic, and waste a lot of network resources. In addition, the communication service operator will always incur charges based on the time of the Internet or the flow rate. Summary of the invention
有鉴于此, 本发明实施例提供一种控制数据链路通断的方法及装置, 用于节省网络资源。  In view of this, the embodiments of the present invention provide a method and apparatus for controlling data link switching, which are used to save network resources.
为解决上述技术问题, 本发明实施例提供的技术方案是这样实现的: 一种控制数据链路通断的方法, 包括以下步骤: 检测是否有业务数据 传输; 当检测到在预设时长内无业务数据传输时, 检测是否处于非用户使 用态; 若是, 则断开网络连接。  To solve the above technical problem, the technical solution provided by the embodiment of the present invention is implemented as follows: A method for controlling data link switching includes the following steps: detecting whether there is service data transmission; when detecting that there is no preset time duration When the service data is transmitted, it is detected whether it is in the non-user use state; if yes, the network connection is disconnected.
若处于非用户使用态, 则所述断开网络连接的步骤包括: 若处于非用 户使用态, 则进入休眠, 并在进入休眠态时断开网络连接。  If the user is in a non-user state, the disconnecting the network connection includes: entering the sleep state if the user is in the non-user use state, and disconnecting the network connection when entering the sleep state.
所述检测是否处于非用户使用态的步骤包括: 通过检测是否有阻止进 入休眠状态的锁来检测是否处于非用户使用态, 若没有, 则确定处于非用 户使用态。  The step of detecting whether it is in a non-user use state includes: detecting whether it is in a non-user use state by detecting whether a lock that prevents entering the sleep state is detected, and if not, determining that it is in a non-user use state.
所述断开网络连接的步骤包括: 控制层向无线接口层 RIL发送请求断 开网络连接的信号; RIL向无线层转发请求断开网络连接的信号; 无线层断 开网络连接。  The step of disconnecting the network connection includes: the control layer sends a signal requesting disconnection of the network connection to the radio interface layer RIL; the RIL forwards a signal requesting disconnection of the network connection to the radio layer; and the wireless layer disconnects the network connection.
所述断开网络连接之后还包括步骤: 接收用户的操作命令, 并建立网 络连接。  The disconnecting the network connection further includes the steps of: receiving an operation command of the user, and establishing a network connection.
一种用于控制数据链路通断的装置, 包括:  A device for controlling data link switching, comprising:
检测模块, 用于检测是否有业务数据传输;  a detecting module, configured to detect whether there is service data transmission;
电源管理模块, 用于当检测到在预设时长内无业务数据传输时, 检测 是否处于非用户使用态;  The power management module is configured to detect whether the user is in a non-user usage state when no service data transmission is detected within a preset duration;
控制模块, 用于在处于非用户使用态时, 断开网络连接。  The control module is configured to disconnect the network when the user is in a non-user state.
若处于非用户使用态, 则所述电源管理模块还用于进行休眠处理; 所 述控制模块具体用于在进入休眠态时断开网络连接。  The power management module is further configured to perform a sleep process if the user is in a non-user state. The control module is specifically configured to disconnect the network when entering the sleep state.
所述电源管理模块通过: 检测是否有阻止进入休眠状态的锁, 若没有, 则确定处于非用户使用态。 The power management module passes: detecting whether there is a lock that prevents the sleep state from entering, if not, Then determine that it is in a non-user usage state.
所述控制模块包括: 控制层单元、 RIL单元和无线层单元; 控制层单元 用于向 RIL单元发送请求断开网络连接的信号; RIL单元用于向无线层单 元转发请求断开网络连接的信号; 无线层单元用于断开网络连接。  The control module includes: a control layer unit, a RIL unit, and a radio layer unit; the control layer unit is configured to send a signal requesting disconnection of the network connection to the RIL unit; and the RIL unit is configured to forward the signal requesting disconnection of the network connection to the radio layer unit The wireless layer unit is used to disconnect the network.
所述装置还包括: 接口模块, 用于接收用户的操作命令; 所述控制模 块还用于建立网络连接。  The device further includes: an interface module, configured to receive an operation command of the user; and the control module is further configured to establish a network connection.
本发明实施例在一段时间内无业务数据传输 (包括收和发)、 且处于非 用户使用态时断开网络连接, 避免用户在不使用移动终端时, 网络仍然处 于连接态, 占用网络资源, 增加设备的耗电。 附图说明  The embodiment of the present invention disconnects the network connection when there is no service data transmission (including receiving and transmitting) for a period of time, and the user is disconnected from the network when the user is not using the mobile terminal, and the network is still in the connected state and occupies the network resources. Increase the power consumption of the device. DRAWINGS
图 1为本发明实施例中控制数据链路通断的基本方法流程示意图; 图 2为本发明实施例中控制数据链路断开的详细方法流程示意图; 图 3 为本发明实施例中通过用户使用状态控制数据链路断开的详细方 法流程示意图;  1 is a schematic flowchart of a basic method for controlling a data link to be disconnected according to an embodiment of the present invention; FIG. 2 is a schematic flowchart of a detailed method for controlling a data link disconnection according to an embodiment of the present invention; FIG. 3 is a schematic diagram of a user according to an embodiment of the present invention; A schematic diagram of the detailed method of using state control data link disconnection;
图 4为本发明实施例中通过阻止进入休眠状态的锁控制数据链路断开 的详细方法流程示意图;  4 is a schematic flowchart of a detailed method for disconnecting a lock control data link by preventing a lock from entering a sleep state according to an embodiment of the present invention;
图 5为本发明实施例中控制数据链路连通的方法流程示意图; 图 6为本发明实施例中装置的基本结构示意图;  5 is a schematic flowchart of a method for controlling data link connectivity according to an embodiment of the present invention; FIG. 6 is a schematic diagram of a basic structure of a device according to an embodiment of the present invention;
图 7为本发明实施例中装置的详细结构示意图。 具体实施方式  FIG. 7 is a schematic structural diagram of a device according to an embodiment of the present invention. detailed description
本发明实施例在一段时间内无业务数据传输 (包括收和发)、 且处于非 用户使用态时断开网络连接, 避免用户在不使用移动终端时, 网络仍然处 于连接态, 占用网络资源, 增加设备的耗电。  The embodiment of the present invention disconnects the network connection when there is no service data transmission (including receiving and transmitting) for a period of time, and the user is disconnected from the network when the user is not using the mobile terminal, and the network is still in the connected state and occupies the network resources. Increase the power consumption of the device.
本实施例中业务数据是指与业务内容有关的数据, 用于保持网络连接 的数据为控制数据, 不属于业务数据。 In this embodiment, the service data refers to data related to the service content, and is used to maintain the network connection. The data is control data and is not part of the business data.
参见图 1 , 本实施例中控制数据链路通断的基本方法流程如下: 步骤 101 : 检测是否有业务数据传输。 当检测到有业务数据传输时, 继 续检测, 重复步骤 101。  Referring to FIG. 1, the basic method for controlling data link switching in this embodiment is as follows: Step 101: Check whether there is service data transmission. When it is detected that there is a service data transmission, the detection is continued, and step 101 is repeated.
步骤 102: 当检测到在预设时长内无业务数据传输时,检测是否处于非 用户使用态。 所述预设时长可以是 3-5分钟。  Step 102: When it is detected that there is no service data transmission within the preset duration, it is detected whether it is in a non-user usage state. The preset duration may be 3-5 minutes.
步骤 103: 若处于非用户使用态, 则断开网络连接。 若不处于非用户使 用态, 则继续检测, 重复步骤 101。  Step 103: If the user is in a non-user state, disconnect the network. If it is not in the non-user mode, continue the test and repeat step 101.
参见图 2, 本实施例中控制数据链路断开的详细方法流程如下: 步骤 201 : 周期性检测是否有业务数据传输。 当数据链路建立后, 移动 终端软件产生虚拟的网卡, 网卡驱动会记录经由网卡的数据流量, 从而以 此判断是否有业务数据传输。 该周期可以是 1-5秒。 若有业务数据传输, 则 重复此步骤, 否则继续步骤 202。  Referring to FIG. 2, the detailed method for controlling the disconnection of the data link in this embodiment is as follows: Step 201: Periodically check whether there is service data transmission. After the data link is established, the mobile terminal software generates a virtual network card, and the network card driver records the data traffic via the network card, thereby determining whether there is service data transmission. This period can be 1-5 seconds. If there is a service data transmission, repeat this step, otherwise proceed to step 202.
步骤 202: 控制层向 RIL ( Radio Interface Layer, 无线接口层)发送请 求断开网络连接的信号。  Step 202: The control layer sends a signal requesting disconnection of the network connection to the RIL (Radio Interface Layer).
步骤 203: RIL向无线层转发请求断开网络连接的信号。  Step 203: The RIL forwards a signal requesting disconnection of the network connection to the wireless layer.
步骤 204: 无线层断开网络连接。  Step 204: The wireless layer disconnects the network.
检测到没有业务数据传输时, 此时用户可能在临时进行其它操作, 如 果此时立刻断开网络连接, 可能影响用户后续的上网操作。 因此, 较佳的, 在检测到无业务数据传输时, 进一步检测是否处于非用户使用态, 在处于 非用户使用态时断开网络连接。 下面通过实施例来详细介绍。  When no service data transmission is detected, the user may perform other operations temporarily. If the network connection is disconnected at this time, the subsequent online operation may be affected. Therefore, preferably, when no service data transmission is detected, it is further detected whether it is in a non-user usage state, and disconnects the network connection when in a non-user usage state. The details are described below by way of examples.
参见图 3 ,本实施例中通过用户使用状态控制数据链路断开的详细方法 流程如下:  Referring to FIG. 3, the detailed method for controlling the data link disconnection by the user using the state in this embodiment is as follows:
步骤 301 : 周期性检测是否有业务数据传输。 若有数据传输, 则重复此 步骤, 否则继续步骤 302。 步骤 302: 检测是否处于非用户使用态, 若是, 则继续步骤 303 , 否则 继续步骤 301。 Step 301: Periodically check whether there is service data transmission. If there is data transmission, repeat this step, otherwise proceed to step 302. Step 302: Detect whether it is in a non-user usage state, and if yes, proceed to step 303, otherwise continue to step 301.
步骤 303: 进入休眠处理。 休眠处理包括锁屏、 驱动节点处于 suspend 状态, 释放 CPU资源等。  Step 303: Enter sleep processing. Hibernation processing includes locking the screen, the drive node is in the suspend state, releasing CPU resources, and so on.
步骤 304: 控制层向 RIL发送请求断开网络连接的信号。  Step 304: The control layer sends a signal to the RIL requesting to disconnect the network.
步骤 305: RIL向无线层转发请求断开网络连接的信号。  Step 305: The RIL forwards a signal requesting to disconnect the network connection to the wireless layer.
步骤 306: 无线层断开网络连接。 无线层还可以向上层反馈断开完成的 信号。  Step 306: The wireless layer disconnects the network. The wireless layer can also feed back the completed signal to the upper layer.
其中, 检测是否处于非用户使用态有多种具体实现方式, 如是否收到 用户的输入命令; 或者, 通过检测是否有阻止进入休眠状态的锁来检测是 否处于非用户使用态, 若没有, 则确定处于非用户使用态。 下面针对后一 种情况来详细介绍。  There are multiple implementation manners for detecting whether the user is in a non-user usage state, such as whether an input command is received from the user, or detecting whether the lock is in a non-user state by detecting whether the lock is blocked from entering the sleep state. Make sure you are in a non-user state. The following is a detailed description of the latter case.
参见图 4,本实施例中通过阻止进入休眠状态的锁控制数据链路断开的 详细方法流程如下:  Referring to FIG. 4, the detailed method for controlling the disconnection of the data link by preventing the lock from entering the sleep state in this embodiment is as follows:
步骤 401 : 周期性检测是否有业务数据传输。 若有业务数据传输, 则继 续步骤 402 , 否则继续步骤 403。  Step 401: Periodically check whether there is service data transmission. If there is a service data transmission, proceed to step 402, otherwise proceed to step 403.
步骤 402: 每次申请同一亮屏锁, 并刷新亮屏锁的起始时间, 即重新设 置亮屏锁定时释放的定时器, 然后继续步骤 401。 本实施例中釆用定时释放 机制的锁, 该锁相当于一种标记, 达到预设时长时可释放(即清除标记)。  Step 402: Each time the same bright screen lock is applied, and the start time of the bright screen lock is refreshed, the timer released when the bright screen lock is reset is reset, and then step 401 is continued. In this embodiment, the lock of the time release mechanism is used, and the lock is equivalent to a mark, which can be released when the preset time is reached (ie, the mark is cleared).
步骤 403: 达到释放亮屏锁的时长时释放亮屏锁。 只要亮屏锁存在, 就 不进入休眠。  Step 403: Release the bright screen lock when the length of time to release the bright screen lock is reached. As long as the bright screen is latched, it does not go to sleep.
步骤 404: 检测是否有其它阻止进入休眠状态的锁, 例如某些后台运行 软件的锁, 若有, 则继续步骤 401 , 否则继续步骤 405。  Step 404: Detect whether there are other locks that prevent entering the sleep state, such as some locks running the software in the background, if yes, proceed to step 401, otherwise continue to step 405.
步骤 405: 进入预休眠状态。  Step 405: Enter the pre-sleep state.
步骤 406: 亮屏锁定时释放的定时器超时, 进入休眠状态, 断开网络连 接。 Step 406: The timer released when the bright screen is locked is timed out, enters the sleep state, and disconnects the network. Pick up.
本实施例通过锁来控制是否进入休眠, 对于无休眠态的移动终端来说, 如带上网盒的终端设备, 为其增加了休眠处理, 通过休眠处理来触发网络 连接的断开, 节省了网络资源, 而且减少耗电, 以及延长设备寿命。  In this embodiment, the lock is used to control whether to enter the sleep state. For the mobile terminal without the sleep state, for example, the terminal device with the network box adds sleep processing thereto, and the sleep processing triggers the disconnection of the network connection, thereby saving the network. Resources, and reduce power consumption, and extend equipment life.
断开网络连接后, 如果有用户操作, 还需要建立网络连接, 参见下面 的实施例。  After disconnecting the network, if there is user operation, you need to establish a network connection, see the following example.
参见图 5 , 本实施例中控制数据链路连通的方法流程如下:  Referring to FIG. 5, the method for controlling data link connectivity in this embodiment is as follows:
步骤 501 : 接收用户的操作命令。  Step 501: Receive an operation command of the user.
步骤 502: 控制层向 RIL发送请求建立网络连接的信号。  Step 502: The control layer sends a signal to the RIL requesting to establish a network connection.
步骤 503: RIL向无线层转发请求建立网络连接的信号。  Step 503: The RIL forwards a signal requesting to establish a network connection to the wireless layer.
步骤 504: 无线层建立网络连接。 无线层还可以向上层反馈建立完成的 信号。  Step 504: The wireless layer establishes a network connection. The wireless layer can also feedback the completion of the signal to the upper layer.
通过以上描述了解了控制数据链路通断的实现过程, 该过程主要由装 置实现, 下面对该装置的内部结构和功能进行介绍。  Through the above description, the implementation process of controlling the data link on/off is known. The process is mainly implemented by the device. The internal structure and function of the device are introduced below.
参见图 6, 本实施例中用于控制数据链路通断的装置包括: 检测模块 601、 控制模块 602和电源管理模块 603。 该装置可以是手机或带上网盒的 设备等移动终端。  Referring to FIG. 6, the apparatus for controlling data link switching in this embodiment includes: a detecting module 601, a control module 602, and a power management module 603. The device may be a mobile terminal such as a mobile phone or a device with a network box.
检测模块 601用于检测是否有业务数据传输。  The detecting module 601 is configured to detect whether there is service data transmission.
电源管理模块 603 用于当检测到在预设时长内无业务数据传输时, 检 测是否处于非用户使用态。  The power management module 603 is configured to detect whether the user is in a non-user usage state when no service data transmission is detected within a preset time period.
控制模块 602用于在处于非用户使用态时, 断开网络连接。  The control module 602 is configured to disconnect the network when in a non-user state of use.
具体的, 若处于非用户使用态, 则电源管理模块 603 进行休眠处理。 控制模块 602在进入休眠态时断开网络连接。 电源管理模块 603通过检测 是否有阻止进入休眠状态的锁, 若没有, 则确定处于非用户使用态。  Specifically, if it is in a non-user use state, the power management module 603 performs a sleep process. Control module 602 disconnects the network when entering the sleep state. The power management module 603 detects whether there is a lock that blocks the sleep state, and if not, determines that it is in a non-user use state.
控制模块 602包括: 控制层单元、 RIL单元和无线层单元。 控制层单元用于向 RIL单元发送请求断开网络连接的信号。 RIL单元 用于向无线层单元转发请求断开网络连接的信号。 无线层单元用于断开网 络连接。 The control module 602 includes: a control layer unit, an RIL unit, and a radio layer unit. The control layer unit is configured to send a signal to the RIL unit requesting disconnection of the network connection. The RIL unit is used to forward a signal requesting disconnection of the network connection to the radio layer unit. The wireless layer unit is used to disconnect the network.
所述装置还包括: 接口模块 604用于接收用户的操作命令, 参见图 7 所示。 控制模块 602还用于建立网络连接。  The device further includes: an interface module 604 for receiving an operation command of the user, as shown in FIG. Control module 602 is also used to establish a network connection.
本发明实施例在一段时间内无业务数据传输 (包括收和发)、 且处于非 用户使用态时断开网络连接, 避免用户在不使用移动终端时, 网络仍然处 于连接态, 占用网络资源, 增加设备的耗电。  The embodiment of the present invention disconnects the network connection when there is no service data transmission (including receiving and transmitting) for a period of time, and the user is disconnected from the network when the user is not using the mobile terminal, and the network is still in the connected state and occupies the network resources. Increase the power consumption of the device.
本领域内的技术人员应明白, 本发明的实施例可提供为方法、 系统、 或计算机程序产品。 因此, 本发明可釆用完全硬件实施例、 完全软件实施 例、 或结合软件和硬件方面的实施例的形式。 而且, 本发明可釆用在一个 或多个其中包含有计算机可用程序代码的计算机可用存储介质 (包括但不 限于磁盘存储器和光学存储器等 )上实施的计算机程序产品的形式。  Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can be embodied in the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
本发明是参照根据本发明实施例的方法、 设备(系统)、 和计算机程序 产品的流程图和 /或方框图来描述的。 应理解可由计算机程序指令实现流 程图和 /或方框图中的每一流程和 /或方框、 以及流程图和 /或方框图中 的流程和 /或方框的结合。 可提供这些计算机程序指令到通用计算机、 专 用计算机、 嵌入式处理机或其他可编程数据处理设备的处理器以产生一个 机器, 使得通过计算机或其他可编程数据处理设备的处理器执行的指令产 生用于实现在流程图一个流程或多个流程和 /或方框图一个方框或多个方 框中指定的功能的装置。  The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart and/or block diagrams, and combinations of flows and/or blocks in the flowcharts and/or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理 设备以特定方式工作的计算机可读存储器中, 使得存储在该计算机可读存 储器中的指令产生包括指令装置的制造品, 该指令装置实现在流程图一个 流程或多个流程和 /或方框图一个方框或多个方框中指定的功能。 这些计算机程序指令也可装载到计算机或其他可编程数据处理设备 上, 使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机 实现的处理, 从而在计算机或其他可编程设备上执行的指令提供用于实现 在流程图一个流程或多个流程和 /或方框图一个方框或多个方框中指定的 功能的步骤。 本发明的精神和范围。 这样, 倘若本发明的这些修改和变型属于本发明权 利要求及其等同技术的范围之内, 则本发明也意图包含这些改动和变型在 内。 The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart. These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram. The spirit and scope of the invention. Thus, it is intended that the present invention cover the modifications and the modifications of the invention

Claims

权利要求书 Claim
1、 一种控制数据链路通断的方法, 其特征在于, 包括以下步骤: 检测是否有业务数据传输;  A method for controlling data link switching, comprising the steps of: detecting whether there is service data transmission;
当检测到在预设时长内无业务数据传输时, 检测是否处于非用户使用 态;  When it is detected that there is no service data transmission within the preset duration, it is detected whether it is in a non-user usage state;
若是, 则断开网络连接。  If yes, disconnect the network.
2、 如权利要求 1所述的方法, 其特征在于, 若处于非用户使用态, 则 所述断开网络连接的步骤包括: 若处于非用户使用态, 则进入休眠, 并在 进入休眠态时断开网络连接。  2. The method according to claim 1, wherein if the user is in a non-user state, the disconnecting the network connection comprises: entering the sleep state when in a non-user use state, and entering the sleep state Disconnect from the network.
3、 如权利要求 1所述的方法, 其特征在于, 所述检测是否处于非用户 使用态的步骤包括: 通过检测是否有阻止进入休眠状态的锁来检测是否处 于非用户使用态, 若没有, 则确定处于非用户使用态。  3. The method according to claim 1, wherein the step of detecting whether the user is in a non-user use state comprises: detecting whether the user is in a non-user use state by detecting whether a lock that blocks the sleep state is detected, and if not, Then determine that it is in a non-user usage state.
4、 如权利要求 1至 3中任一项所述的方法, 其特征在于, 所述断开网 络连接的步骤包括: 控制层向无线接口层 RIL发送请求断开网络连接的信 号; RIL向无线层转发请求断开网络连接的信号; 无线层断开网络连接。  The method according to any one of claims 1 to 3, wherein the disconnecting the network connection comprises: the control layer transmitting a signal requesting disconnection of the network connection to the wireless interface layer RIL; RIL to the wireless Layer forwarding requests to disconnect the network connection; the wireless layer disconnects the network.
5、 如权利要求 1至 3中任一项所述的方法, 其特征在于, 所述断开网 络连接之后还包括步骤: 接收用户的操作命令, 并建立网络连接。  The method according to any one of claims 1 to 3, characterized in that after the disconnecting the network connection, the method further comprises the steps of: receiving an operation command of the user, and establishing a network connection.
6、 一种用于控制数据链路通断的装置, 其特征在于, 包括: 检测模块, 用于检测是否有业务数据传输;  A device for controlling the on and off of a data link, comprising: a detecting module, configured to detect whether there is service data transmission;
电源管理模块, 用于当检测到在预设时长内无业务数据传输时, 检测 是否处于非用户使用态;  The power management module is configured to detect whether the user is in a non-user usage state when no service data transmission is detected within a preset duration;
控制模块, 用于在处于非用户使用态时, 断开网络连接。  The control module is configured to disconnect the network when the user is in a non-user state.
7、 如权利要求 6所述的装置, 其特征在于, 若处于非用户使用态, 则 所述电源管理模块还用于进行休眠处理;  The device according to claim 6, wherein the power management module is further configured to perform a sleep process if the user is in a non-user use state;
所述控制模块具体用于在进入休眠态时断开网络连接。 The control module is specifically configured to disconnect the network connection when entering the sleep state.
8、 如权利要求 7所述的装置, 其特征在于, 所述电源管理模块通过: 检测是否有阻止进入休眠状态的锁, 若没有, 则确定处于非用户使用态。 8. The apparatus according to claim 7, wherein the power management module passes: detecting whether there is a lock that prevents entering a sleep state, and if not, determining that it is in a non-user usage state.
9、 如权利要求 6至 8中任一项所述的装置, 其特征在于, 所述控制模 块包括: 控制层单元、 RIL单元和无线层单元;  The apparatus according to any one of claims 6 to 8, wherein the control module comprises: a control layer unit, an RIL unit, and a radio layer unit;
控制层单元用于向 RIL单元发送请求断开网络连接的信号; RIL单元 用于向无线层单元转发请求断开网络连接的信号; 无线层单元用于断开网 络连接。  The control layer unit is configured to send a signal requesting disconnection of the network connection to the RIL unit; the RIL unit is configured to forward a signal requesting disconnection of the network connection to the wireless layer unit; and the wireless layer unit is configured to disconnect the network connection.
10、 如权利要求 6至 8中任一项所述的装置, 其特征在于, 所述装置 还包括: 接口模块, 用于接收用户的操作命令;  The device according to any one of claims 6 to 8, wherein the device further comprises: an interface module, configured to receive an operation command of the user;
所述控制模块还用于建立网络连接。  The control module is also used to establish a network connection.
PCT/CN2011/071150 2010-11-19 2011-02-21 Method and device for controlling on/off of data link WO2012065374A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010552336.0 2010-11-19
CN2010105523360A CN102014021A (en) 2010-11-19 2010-11-19 Method and device for controlling connection/disconnection of data link

Publications (1)

Publication Number Publication Date
WO2012065374A1 true WO2012065374A1 (en) 2012-05-24

Family

ID=43844047

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/071150 WO2012065374A1 (en) 2010-11-19 2011-02-21 Method and device for controlling on/off of data link

Country Status (2)

Country Link
CN (1) CN102014021A (en)
WO (1) WO2012065374A1 (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102711227B (en) * 2012-05-29 2015-11-18 宇龙计算机通信科技(深圳)有限公司 The control method of terminal and data communication mode
CN103067938B (en) * 2012-12-04 2016-01-20 广东欧珀移动通信有限公司 Save the method for mobile terminal data flow
CN103036652B (en) * 2012-12-21 2016-08-24 广东欧珀移动通信有限公司 A kind of data transmission method and device
CN103227861B (en) * 2013-03-29 2015-02-11 东莞宇龙通信科技有限公司 Mobile terminal and method for starting data service of mobile terminal
CN103260205A (en) * 2013-04-28 2013-08-21 深圳桑菲消费通信有限公司 Initiatively switching network connecting method and initiatively switching network connecting device
CN103313427A (en) * 2013-05-08 2013-09-18 广东欧珀移动通信有限公司 Method and device for starting data network of mobile terminal and mobile terminal
CN104301235B (en) * 2013-07-18 2018-10-02 腾讯科技(深圳)有限公司 The control method and device of network flow
CN104469970B (en) * 2013-09-18 2018-12-14 联想(北京)有限公司 A kind of method and apparatus reconnecting data network
CN104902581B (en) * 2014-03-07 2019-06-25 联想(北京)有限公司 Wireless connection control method, apparatus and terminal device
CN106020415B (en) * 2016-05-09 2019-01-29 深圳市万普拉斯科技有限公司 Application control method and device under smart machine standby mode
CN106066963A (en) * 2016-05-26 2016-11-02 维沃移动通信有限公司 A kind of networking method and mobile terminal
CN107566146B (en) * 2016-06-30 2021-03-19 北京北信源软件股份有限公司 Method for automatically switching network cards
CN106060280B (en) * 2016-07-29 2020-02-18 宇龙计算机通信科技(深圳)有限公司 Data service management method, device and terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1507204A (en) * 2002-12-09 2004-06-23 华为技术有限公司 Control method for on-line network users
CN101667942A (en) * 2009-10-14 2010-03-10 中兴通讯股份有限公司 Control method of home gateway and device thereof
CN101808103A (en) * 2010-04-26 2010-08-18 中兴通讯股份有限公司 Device and method for realizing point to point protocol data service disconnection

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1507204A (en) * 2002-12-09 2004-06-23 华为技术有限公司 Control method for on-line network users
CN101667942A (en) * 2009-10-14 2010-03-10 中兴通讯股份有限公司 Control method of home gateway and device thereof
CN101808103A (en) * 2010-04-26 2010-08-18 中兴通讯股份有限公司 Device and method for realizing point to point protocol data service disconnection

Also Published As

Publication number Publication date
CN102014021A (en) 2011-04-13

Similar Documents

Publication Publication Date Title
WO2012065374A1 (en) Method and device for controlling on/off of data link
EP3462802B1 (en) Bluetooth connection method and terminal
AU2019204877B2 (en) Method for interaction between terminal and network device, and terminal
CN101873616B (en) Mobile terminal self-check method and system and mobile terminal
EP2649859B1 (en) Automatically enabling wireless communication
US9338642B2 (en) Method and apparatus for processing application program, and mobile terminal therefor
CN108900370A (en) It is long to connect multiple overtime judgment method, device and computer readable storage medium
CN103092691A (en) Process management method and management unit of Android system
CN106874077A (en) process operation method and device
WO2015154462A1 (en) Method and device for managing instant communication application program, and mobile terminal thereof
CN104469970B (en) A kind of method and apparatus reconnecting data network
CN104243720A (en) Electricity saving method of terminal device and terminal device
CN107577508A (en) Applied program processing method, device, readable storage medium storing program for executing and mobile terminal
CN106060280B (en) Data service management method, device and terminal
KR100698665B1 (en) System and Method for PPP session termination on the dormant state of a mobile phone
CN104955133A (en) Mobile device and method for managing network connection and storage medium
WO2019109557A1 (en) Method and device for reducing power consumption
JP2011259281A (en) Background transfer system and program by mobile phone
CN111669818A (en) Wi-Fi control method and device and electronic equipment
CN105376637A (en) A Bluetooth hardware sharing system and method
CN101860983B (en) Method, system and mobile terminal for entering power saving mode under long connection mode
CN106937407A (en) A kind of wireless network connection management method and device, terminal
CN113965915A (en) Data processing method and electronic equipment
CN104657152A (en) Data transmission management method and electronic equipment
JP2019149824A (en) Method and terminal for interaction between the terminal and network device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11842120

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11842120

Country of ref document: EP

Kind code of ref document: A1