[go: up one dir, main page]

CN108989459B - Method, apparatus and computer-readable storage medium for controlling terminal - Google Patents

Method, apparatus and computer-readable storage medium for controlling terminal Download PDF

Info

Publication number
CN108989459B
CN108989459B CN201810957358.1A CN201810957358A CN108989459B CN 108989459 B CN108989459 B CN 108989459B CN 201810957358 A CN201810957358 A CN 201810957358A CN 108989459 B CN108989459 B CN 108989459B
Authority
CN
China
Prior art keywords
terminal
cloud server
instruction
control instruction
target process
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810957358.1A
Other languages
Chinese (zh)
Other versions
CN108989459A (en
Inventor
王旭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201810957358.1A priority Critical patent/CN108989459B/en
Publication of CN108989459A publication Critical patent/CN108989459A/en
Application granted granted Critical
Publication of CN108989459B publication Critical patent/CN108989459B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L5/00Arrangements affording multiple use of the transmission path
    • H04L5/003Arrangements for allocating sub-channels of the transmission path
    • H04L5/0053Allocation of signalling, i.e. of overhead other than pilot signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Telephonic Communication Services (AREA)
  • Time Recorders, Dirve Recorders, Access Control (AREA)

Abstract

本公开是关于一种控制终端的方法、装置及计算机可读存储介质,涉及终端技术领域。该方法包括:第一终端向云服务器发送进程信息获取请求,由于该进程信息获取请求携带与第一终端关联的第二终端的终端标识,因此,第一终端可以接收云服务器返回的第二终端当前运行进程的进程信息,并根据该进程信息,生成对当前运行进程中的目标进程的控制指令。然后向云服务器发送该控制指令,以使云服务器将该控制指令转发至第二终端,其中,该控制指令用于控制第二终端执行控制指令对应的控制操作。如此,第一终端可以通过云服务器有效控制第二终端当前运行的进程。

Figure 201810957358

The present disclosure relates to a method, an apparatus and a computer-readable storage medium for controlling a terminal, and relates to the technical field of terminals. The method includes: the first terminal sends a process information acquisition request to the cloud server. Since the process information acquisition request carries the terminal identifier of the second terminal associated with the first terminal, the first terminal can receive the second terminal returned by the cloud server. Process information of the currently running process, and according to the process information, a control instruction for the target process in the currently running process is generated. Then, the control instruction is sent to the cloud server, so that the cloud server forwards the control instruction to the second terminal, wherein the control instruction is used to control the second terminal to execute the control operation corresponding to the control instruction. In this way, the first terminal can effectively control the currently running process of the second terminal through the cloud server.

Figure 201810957358

Description

控制终端的方法、装置及计算机可读存储介质Method, apparatus and computer-readable storage medium for controlling terminal

技术领域technical field

本公开涉及终端技术领域,尤其涉及一种控制终端的方法、装置及计算机可读存储介质。The present disclosure relates to the technical field of terminals, and in particular, to a method, an apparatus, and a computer-readable storage medium for controlling a terminal.

背景技术Background technique

家长为了能够及时联系到自己的孩子通常会给孩子佩带终端,但随着终端技术的不断发展,终端上安装的游戏应用越来越多,孩子花费在终端上的时间也越来越多,进而导致耽误学业。因此,为了在孩子佩带终端的前提下,家长还能有效控制孩子的终端,现亟需一种控制终端的方法。In order to be able to contact their children in time, parents usually wear terminals for their children. However, with the continuous development of terminal technology, more and more game applications are installed on the terminals, and children spend more and more time on the terminal. lead to delay in studies. Therefore, in order for the parent to effectively control the child's terminal under the premise that the child wears the terminal, there is an urgent need for a method for controlling the terminal.

为了便于描述,将家长使用的终端称为第一终端,将孩子使用的终端称为第二终端。目前,家长在为孩子佩带终端之后,为了保证孩子的人身安全,家长通常会通过第一终端控制第二终端返回第二终端的位置信息,以获取孩子的位置信息。For convenience of description, the terminal used by the parent is called the first terminal, and the terminal used by the child is called the second terminal. At present, after a parent wears a terminal for a child, in order to ensure the personal safety of the child, the parent usually controls the second terminal to return the location information of the second terminal through the first terminal to obtain the location information of the child.

发明内容SUMMARY OF THE INVENTION

为克服相关技术中存在的问题,本公开提供一种控制终端的方法、装置及计算机可读存储介质。In order to overcome the problems existing in the related art, the present disclosure provides a method, an apparatus and a computer-readable storage medium for controlling a terminal.

第一方面,提供一种控制终端的方法,应用于第一终端,所述方法包括:A first aspect provides a method for controlling a terminal, which is applied to a first terminal, and the method includes:

向云服务器发送进程信息获取请求,所述进程信息获取请求携带所述第一终端关联的第二终端的终端标识;sending a process information acquisition request to the cloud server, where the process information acquisition request carries the terminal identifier of the second terminal associated with the first terminal;

接收所述云服务器返回的所述第二终端当前运行进程的进程信息,根据所述进程信息,生成对所述当前运行进程中的目标进程的控制指令;receiving the process information of the currently running process of the second terminal returned by the cloud server, and generating a control instruction for the target process in the currently running process according to the process information;

向所述云服务器发送所述控制指令,以使所述云服务器将所述控制指令转发至所述第二终端,所述控制指令用于控制所述第二终端执行所述控制指令对应的控制操作。Send the control instruction to the cloud server, so that the cloud server forwards the control instruction to the second terminal, where the control instruction is used to control the second terminal to execute the control corresponding to the control instruction operate.

在本公开实施例中,第一终端向云服务器发送进程信息获取请求,由于该进程信息获取请求携带与第一终端关联的第二终端的终端标识,因此,第一终端可以接收云服务器返回的第二终端当前运行进程的进程信息,并根据该进程信息,生成对当前运行进程中的目标进程的控制指令。然后向云服务器发送该控制指令,以使云服务器将该控制指令转发至第二终端,其中,该控制指令用于控制第二终端执行控制指令对应的控制操作。如此,第一终端可以通过云服务器有效控制第二终端当前运行的进程。In the embodiment of the present disclosure, the first terminal sends a process information acquisition request to the cloud server. Since the process information acquisition request carries the terminal identifier of the second terminal associated with the first terminal, the first terminal can receive the information returned by the cloud server. Process information of the currently running process of the second terminal, and generate a control instruction for the target process in the currently running process according to the process information. Then, the control instruction is sent to the cloud server, so that the cloud server forwards the control instruction to the second terminal, wherein the control instruction is used to control the second terminal to execute the control operation corresponding to the control instruction. In this way, the first terminal can effectively control the currently running process of the second terminal through the cloud server.

可选地,所述根据所述进程信息,生成对所述当前运行进程中的目标进程的控制指令,包括:Optionally, generating a control instruction for the target process in the currently running process according to the process information includes:

根据所述进程信息,从所述当前运行进程中选择目标进程;According to the process information, a target process is selected from the currently running processes;

显示所述目标进程对应的控制界面,所述控制界面中包括至少一个操作按钮;Displaying a control interface corresponding to the target process, where the control interface includes at least one operation button;

生成被选择的操作按钮对应的控制指令。Generate a control command corresponding to the selected operation button.

在本公开实施例中,可以在从当前运行进程中选择目标进程后,基于显示目标进程对应的控制界面生成控制指令,方便了用户对目标进程的操作。In the embodiment of the present disclosure, after the target process is selected from the current running process, a control instruction may be generated based on the display of the control interface corresponding to the target process, which facilitates the user's operation on the target process.

可选地,所述生成被选择的操作按钮对应的控制指令,包括:Optionally, generating a control instruction corresponding to the selected operation button includes:

当所述被选择的操作按钮为退出按钮时,生成退出所述目标进程的退出指令;或者,When the selected operation button is an exit button, an exit instruction for exiting the target process is generated; or,

当所述被选择的操作按钮为禁用按钮时,生成禁止运行所述目标进程的禁用指令;或者,When the selected operation button is a disable button, generating a disable instruction prohibiting running the target process; or,

当所述被选择的操作按钮为权限设置按钮时,获取所述目标进程的使用权限,所述使用权限包括使用时间段和/或使用时长,生成包含所述使用权限的权限设置指令。When the selected operation button is a permission setting button, the usage permission of the target process is acquired, and the usage permission includes a usage time period and/or a usage duration, and a permission setting instruction including the usage permission is generated.

在本公开实施例中,第一终端针对目标进程可以生成多种不同的控制指令,包括退出指令、禁用指令以及权限设置指令,为用户提供了多种选择,提高了用户体验度。In the embodiment of the present disclosure, the first terminal can generate various different control instructions for the target process, including an exit instruction, a disable instruction, and a permission setting instruction, which provides a variety of choices for the user and improves the user experience.

可选地,所述向云服务器发送进程信息获取请求之前,所述方法还包括:Optionally, before the process information acquisition request is sent to the cloud server, the method further includes:

确定所述第一终端是否登录所述云服务器;determining whether the first terminal logs in to the cloud server;

当所述第一终端登录所述云服务器时,执行所述向云服务器发送进程信息获取请求的步骤。When the first terminal logs in to the cloud server, the step of sending a process information acquisition request to the cloud server is performed.

在本公开实施例中,第一终端在与云服务器交互之前,还可以确定第一终端是否登录云服务器,当确定登录云服务器之后,再进行交互,可以保证第一终端与云服务器成功交互。In the embodiment of the present disclosure, before interacting with the cloud server, the first terminal may also determine whether the first terminal logs in to the cloud server, and after determining to log in to the cloud server, the interaction is performed to ensure successful interaction between the first terminal and the cloud server.

可选地,所述向云服务器发送进程信息获取请求之前,所述方法还包括:Optionally, before the process information acquisition request is sent to the cloud server, the method further includes:

向所述云服务器发送关联请求,所述关联请求中携带所述第二终端的第二标识、退出密码以及所述第一终端对应的第一标识,以使所述云服务器关联所述第一终端和所述第二终端,并将所述退出密码设置为所述第二终端退出登录所述云服务器时的密码。Send an association request to the cloud server, where the association request carries the second identifier of the second terminal, the exit password, and the first identifier corresponding to the first terminal, so that the cloud server is associated with the first terminal terminal and the second terminal, and set the logout password as the password when the second terminal logs out of the cloud server.

在本公开实施例中,第一终端在与云服务器交互之前,还可以请求云服务器关联第一终端和第二终端,并由第一终端设置第二终端退出登录云服务器的退出密码,也即只有当第二终端获取该登录密码时,才可以退出登录云服务器,保证了第一终端可以有效控制第二终端。In the embodiment of the present disclosure, before interacting with the cloud server, the first terminal may also request the cloud server to associate the first terminal and the second terminal, and the first terminal may set the exit password for the second terminal to log out of the cloud server, that is, Only when the second terminal obtains the login password, it can log out of the cloud server, which ensures that the first terminal can effectively control the second terminal.

第二方面,提供一种控制终端方法,应用在第二终端,所述方法包括:In a second aspect, a method for controlling a terminal is provided, which is applied to a second terminal, and the method includes:

采集当前运行进程的进程信息;Collect process information of the currently running process;

向云服务器发送所述进程信息,以使所述云服务器在所述第二终端关联的第一终端获取所述进程信息时,将所述进程信息转发至所述第一终端;sending the process information to the cloud server, so that the cloud server forwards the process information to the first terminal when the first terminal associated with the second terminal acquires the process information;

接收所述云服务器返回的所述第一终端对所述当前运行进程中的目标进程的控制指令,并执行所述控制指令对应的控制操作。Receive the control instruction of the first terminal on the target process in the currently running process returned by the cloud server, and execute the control operation corresponding to the control instruction.

在本公开实施例中,第二终端可以采集当前运行进程的进程信息,并向云服务器发送该进程信息,以使云服务器在第二终端关联的第一终端获取进程信息时,将该进程信息转发至第一终端。由于第一终端可以接收到第二终端的进程信息,因此,当第一终端对目标进程发出控制指令时,第二终端可以接收云服务器返回的第一终端对当前运行进程中的目标进程的控制指令,并执行控制指令对应的控制操作。如此,第二终端可以通过云服务器有效地接受第一终端对第二终端当前运行的进程的控制。In the embodiment of the present disclosure, the second terminal may collect the process information of the currently running process, and send the process information to the cloud server, so that the cloud server can send the process information to the cloud server when the first terminal associated with the second terminal acquires the process information. forwarded to the first terminal. Since the first terminal can receive the process information of the second terminal, when the first terminal sends a control instruction to the target process, the second terminal can receive the control of the target process in the current running process by the first terminal returned by the cloud server instruction, and execute the control operation corresponding to the control instruction. In this way, the second terminal can effectively accept the control of the process currently running by the second terminal from the first terminal through the cloud server.

可选地,所述执行所述控制指令对应的控制操作,包括:Optionally, performing the control operation corresponding to the control instruction includes:

当所述控制指令为退出指令时,退出所述目标进程;或者,When the control instruction is an exit instruction, exit the target process; or,

当所述控制指令为禁用指令时,将所述目标进程的属性设置为禁用;或者,When the control instruction is a disable instruction, set the attribute of the target process to disable; or,

当所述控制指令为权限设置指令时,将所述目标进程的使用权限设置为所述权限设置指令中包含的使用权限,所述使用权限包括使用时间段和/或使用时长。When the control instruction is an authority setting instruction, the use authority of the target process is set to the use authority included in the authority setting instruction, and the use authority includes a use time period and/or a use time period.

在本公开实施例中,由于第一终端可以生成多种不同的控制指令,因此第二终端针对目标进程可以执行多种不同的控制指令对应的多种不同的控制操作,包括退出、设置属性为禁用以及设置权限,为用户提供了多种选择,提高了用户体验度。In the embodiment of the present disclosure, since the first terminal can generate a variety of different control instructions, the second terminal can perform a variety of different control operations corresponding to the various different control instructions for the target process, including exiting, setting attributes as Disabling and setting permissions provide users with a variety of options and improve user experience.

可选地,所述将所述目标进程的使用权限设置为所述权限设置指令中包含的使用权限之后,所述方法还包括:Optionally, after setting the use authority of the target process to the use authority included in the authority setting instruction, the method further includes:

检测当前时间是否在所述使用时间段内,当所述当前时间不在所述使用时间段内,退出所述目标进程;和/或,Detecting whether the current time is within the use time period, when the current time is not within the use time period, exit the target process; and/or,

检测所述目标应用的运行时长是否达到所述使用时长,当所述运行时长达到所述使用时长,退出所述目标进程。Detect whether the running duration of the target application reaches the usage duration, and when the running duration reaches the usage duration, exit the target process.

在本公开实施例中,使用权限包括使用时间段和/或使用时长,因此,在为目标进程设置权限之后,还可以进一步检测使用第二终端的当前时间是否在使用时间段内,和/或,检测运行时长是否达到使用时长,如果否,则退出目标进程,进一步保证了第一终端有效地控制第二终端。In this embodiment of the present disclosure, the usage authority includes the usage time period and/or the usage duration. Therefore, after the permission is set for the target process, it can be further detected whether the current time of using the second terminal is within the usage time period, and/or , to detect whether the running duration reaches the usage duration, and if not, exit the target process, further ensuring that the first terminal effectively controls the second terminal.

可选地,所述向云服务器发送所述进程信息之前,所述方法还包括:Optionally, before the sending the process information to the cloud server, the method further includes:

确定所述第二终端是否登录所述云服务器;determining whether the second terminal logs in to the cloud server;

当所述第二终端登录所述云服务器时,执行所述向云服务器发送所述第二终端运行进程的进程信息的步骤。When the second terminal logs in to the cloud server, the step of sending the process information of the running process of the second terminal to the cloud server is performed.

在本公开实施例中,第二终端在与云服务器交互之前,还可以确定第二终端是否登录云服务器,当确定登录云服务器之后,再进行交互,可以保证第二终端与云服务器成功交互。In the embodiment of the present disclosure, before interacting with the cloud server, the second terminal may also determine whether the second terminal logs in to the cloud server, and after determining to log in to the cloud server, the interaction can ensure the successful interaction between the second terminal and the cloud server.

第三方面,提供一种控制终端的装置,应用于第一终端,所述装置包括:In a third aspect, an apparatus for controlling a terminal is provided, which is applied to a first terminal, and the apparatus includes:

发送模块,用于向云服务器发送进程信息获取请求,所述进程信息获取请求携带所述第一终端关联的第二终端的终端标识;a sending module, configured to send a process information acquisition request to the cloud server, where the process information acquisition request carries the terminal identifier of the second terminal associated with the first terminal;

生成模块,用于接收所述云服务器返回的所述第二终端当前运行进程的进程信息,根据所述进程信息,生成对所述当前运行进程中的目标进程的控制指令;A generating module, configured to receive the process information of the current running process of the second terminal returned by the cloud server, and generate a control instruction for the target process in the currently running process according to the process information;

控制模块,用于向所述云服务器发送所述控制指令,以使所述云服务器将所述控制指令转发至所述第二终端,所述控制指令用于控制所述第二终端执行所述控制指令对应的控制操作。a control module, configured to send the control instruction to the cloud server, so that the cloud server forwards the control instruction to the second terminal, where the control instruction is used to control the second terminal to execute the The control operation corresponding to the control instruction.

可选地,所述生成模块包括:Optionally, the generation module includes:

选择子模块,用于根据所述进程信息,从所述当前运行进程中选择目标进程;A selection sub-module for selecting a target process from the currently running process according to the process information;

显示子模块,用于显示所述目标进程对应的控制界面,所述控制界面中包括至少一个操作按钮;a display sub-module for displaying a control interface corresponding to the target process, the control interface including at least one operation button;

生成子模块,用于生成被选择的操作按钮对应的控制指令。The generating submodule is used to generate the control instruction corresponding to the selected operation button.

可选地,所述生成子模块包括:Optionally, the generating submodule includes:

第一生成单元,用于当所述被选择的操作按钮为退出按钮时,生成退出所述目标进程的退出指令;或者,a first generating unit, configured to generate an exit instruction for exiting the target process when the selected operation button is an exit button; or,

第二生成单元,用于当所述被选择的操作按钮为禁用按钮时,生成禁止运行所述目标进程的禁用指令;或者,a second generating unit, configured to generate a disabling instruction that prohibits running the target process when the selected operation button is a disabling button; or,

第三生成单元,用于当所述被选择的操作按钮为权限设置按钮时,获取所述目标进程的使用权限,所述使用权限包括使用时间段和/或使用时长,生成包含所述使用权限的权限设置指令。a third generating unit, configured to acquire the use authority of the target process when the selected operation button is a authority setting button, the use authority includes the use time period and/or the use time length, and the generation unit includes the use authority Permission setting directive.

可选地,所述装置还包括:Optionally, the device further includes:

确定模块,用于确定所述第一终端是否登录所述云服务器;a determining module, configured to determine whether the first terminal logs in to the cloud server;

触发模块,用于当所述第一终端登录所述云服务器时,触发所述发送模块向所述云服务器发送所述进程信息获取请求。A triggering module, configured to trigger the sending module to send the process information acquisition request to the cloud server when the first terminal logs in to the cloud server.

可选地,所述装置还包括:Optionally, the device further includes:

关联模块,用于向所述云服务器发送关联请求,所述关联请求中携带所述第二终端的第二标识、退出密码以及所述第一终端对应的第一标识,以使所述云服务器关联所述第一终端和所述第二终端,并将所述退出密码设置为所述第二终端退出登录所述云服务器时的密码。an association module, configured to send an association request to the cloud server, where the association request carries the second identification of the second terminal, the exit password, and the first identification corresponding to the first terminal, so that the cloud server The first terminal and the second terminal are associated, and the logout password is set as the password when the second terminal logs out of the cloud server.

第四方面,提供一种控制终端装置,应用在第二终端,所述装置包括:In a fourth aspect, a device for controlling a terminal is provided, which is applied to a second terminal, and the device includes:

采集模块,用于采集当前运行进程的进程信息;The collection module is used to collect the process information of the currently running process;

发送模块,用于向云服务器发送所述进程信息,以使所述云服务器在所述第二终端关联的第一终端获取所述进程信息时,将所述进程信息转发至所述第一终端;A sending module, configured to send the process information to a cloud server, so that the cloud server forwards the process information to the first terminal when the first terminal associated with the second terminal acquires the process information ;

执行模块,用于接收所述云服务器返回的所述第一终端对所述当前运行进程中的目标进程的控制指令,并执行所述控制指令对应的控制操作。The execution module is configured to receive the control instruction of the first terminal on the target process in the currently running process returned by the cloud server, and execute the control operation corresponding to the control instruction.

可选地,所述执行模块包括:Optionally, the execution module includes:

退出子模块,用于当所述控制指令为退出指令时,退出所述目标进程;或者,The exit submodule is used to exit the target process when the control instruction is an exit instruction; or,

禁用子模块,用于当所述控制指令为禁用指令时,将所述目标进程的属性设置为禁用;或者,A disabling submodule, configured to set the attribute of the target process to disabling when the control instruction is a disabling instruction; or,

权限设置子模块,用于当所述控制指令为权限设置指令时,将所述目标进程的使用权限设置为所述权限设置指令中包含的使用权限,所述使用权限包括使用时间段和/或使用时长。a permission setting submodule, configured to set the use permission of the target process to the use permission included in the permission setting instruction when the control instruction is a permission setting command, and the use permission includes a use time period and/or duration of use.

可选地,所述装置还包括:Optionally, the device further includes:

第一检测模块,用于检测当前时间是否在所述使用时间段内,当所述当前时间不在所述使用时间段内,退出所述目标进程;和/或,a first detection module, configured to detect whether the current time is within the use time period, and exit the target process when the current time is not within the use time period; and/or,

第二检测模块,用于检测所述目标应用的运行时长是否达到所述使用时长,当所述运行时长达到所述使用时长,退出所述目标进程。The second detection module is configured to detect whether the running duration of the target application reaches the usage duration, and when the running duration reaches the usage duration, exit the target process.

可选地,所述装置还包括:Optionally, the device further includes:

确定模块,用于确定所述第二终端是否登录所述云服务器;a determining module, configured to determine whether the second terminal logs in to the cloud server;

触发模块,用于当所述第二终端登录所述云服务器时,触发所述发送模块向所述云服务器发送所述第二终端运行进程的进程信息。A triggering module, configured to trigger the sending module to send the process information of the running process of the second terminal to the cloud server when the second terminal logs in to the cloud server.

第五方面,提供一种控制终端装置,所述装置包括:In a fifth aspect, a control terminal device is provided, the device comprising:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,所述处理器被配置为执行上述第一方面所述的任一项方法的步骤。Wherein, the processor is configured to perform the steps of any one of the methods described in the first aspect above.

第六方面,提供一种控制终端装置,所述装置包括:In a sixth aspect, a control terminal device is provided, the device comprising:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,所述处理器被配置为执行上述第二方面所述的任一项方法的步骤。Wherein, the processor is configured to perform the steps of any one of the methods described in the second aspect above.

第七方面,提供一种计算机可读存储介质,所述计算机可读存储介质上存储有指令,所述指令被处理器执行时实现上述第一方面所述的任一项方法的步骤。In a seventh aspect, a computer-readable storage medium is provided, where instructions are stored on the computer-readable storage medium, and when the instructions are executed by a processor, implement the steps of any one of the methods described in the first aspect.

第八方面,提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第二方面任一项所述方法的步骤。In an eighth aspect, there is provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the steps of the method according to any one of the above-mentioned second aspects.

第九方面,提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第一方面任一项所述方法的步骤。In a ninth aspect, there is provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the steps of the method according to any one of the first aspects above.

第十方面,提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第二方面任一项所述方法的步骤。In a tenth aspect, there is provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the steps of the method according to any one of the above-mentioned second aspects.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description serve to explain the principles of the invention.

图1是根据一示例性实施例示出的一种控制终端的方法流程图。Fig. 1 is a flowchart of a method for controlling a terminal according to an exemplary embodiment.

图2是根据一示例性实施例示出的一种控制终端的方法流程图。Fig. 2 is a flowchart of a method for controlling a terminal according to an exemplary embodiment.

图3是根据一示例性实施例示出的一种控制终端的方法流程图。Fig. 3 is a flowchart of a method for controlling a terminal according to an exemplary embodiment.

图4是根据一示例性实施例示出的一种控制终端的装置框图。Fig. 4 is a block diagram of an apparatus for controlling a terminal according to an exemplary embodiment.

图5是根据一示例性实施例示出的一种控制终端的装置框图。Fig. 5 is a block diagram of an apparatus for controlling a terminal according to an exemplary embodiment.

图6是根据一示例性实施例示出的一种控制终端的装置框图。Fig. 6 is a block diagram of an apparatus for controlling a terminal according to an exemplary embodiment.

图7是根据一示例性实施例示出的一种控制终端的装置框图。Fig. 7 is a block diagram of an apparatus for controlling a terminal according to an exemplary embodiment.

具体实施方式Detailed ways

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与本发明的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. Where the following description refers to the drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the illustrative examples below are not intended to represent all implementations consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present invention.

在对本公开实施例进行详细的解释说明之前,先对本公开实施例的应用场景进行介绍:Before explaining the embodiments of the present disclosure in detail, the application scenarios of the embodiments of the present disclosure are first introduced:

随着终端技术地不断发展,终端上安装的游戏应用越来越多,这类应用受到广大用户的热烈追捧,但同时也给用户带来了较大的负面影响。例如,小学生的自控力较差,当持有终端时,往往会被终端上安装的游戏应用所吸引,进而在终端上花费的时间越来越多,导致耽误学业或/和损失财物。为此,一些游戏应用的商家推出了玩家年龄限制和在线时长的健康系统,但仍然不能有效地改善游戏带给用户的负面影响,类似学生因为手游导致耽误学业甚至花费家长大量金钱的新闻也层出不穷。另一方面,终端已成为目前生活中越来越不可或缺的必需品,因此,家长也不得不给孩子佩戴终端。With the continuous development of terminal technology, more and more game applications are installed on the terminal, and such applications are enthusiastically sought after by the majority of users, but at the same time, they also bring a great negative impact to the users. For example, primary school students have poor self-control. When holding the terminal, they are often attracted by the game applications installed on the terminal, and then spend more and more time on the terminal, resulting in delay in their studies and/or loss of property. For this reason, some game app merchants have launched health systems that limit the age of players and online time, but they still cannot effectively improve the negative impact of games on users. Similar to the news that students delay their studies due to mobile games and even cost parents a lot of money. There are endless. On the other hand, terminals have become more and more indispensable necessities in current life. Therefore, parents also have to wear terminals for their children.

目前,家长为孩子佩带终端的主要目的是保证孩子的人生安全,为此家长通常会通过第一终端控制孩子佩戴的第二终端返回第二终端的位置信息,进而获取孩子的位置信息。当家长发现孩子在终端上花费时间较多时,通常会进行口头教育。然而,一方面,口头教育并不能起到有效的作用,另一方面,通过终端仅仅获取孩子的位置信息,没有充分发挥出终端的功能。因此,本公开实施例提供了一种控制终端的方法,通过该方法家长可以有效控制孩子使用终端,并充分发挥了终端的功能。At present, the main purpose of parents wearing terminals for their children is to ensure the safety of children's life. For this reason, parents usually control the second terminal worn by the child through the first terminal to return the location information of the second terminal, and then obtain the location information of the child. Oral education is usually given when parents find that their children spend more time on the terminal. However, on the one hand, oral education cannot play an effective role, and on the other hand, only the location information of the child is obtained through the terminal, and the function of the terminal is not fully exerted. Therefore, the embodiments of the present disclosure provide a method for controlling a terminal, by which a parent can effectively control the child's use of the terminal, and fully utilize the functions of the terminal.

图1是根据一示例性实施例示出的一种控制终端的方法的流程图,如图1所示,该方法应用于第一终端,包括以下步骤。Fig. 1 is a flowchart of a method for controlling a terminal according to an exemplary embodiment. As shown in Fig. 1 , the method is applied to a first terminal and includes the following steps.

在步骤101中,向云服务器发送进程信息获取请求,该进程信息获取请求携带该第一终端关联的第二终端的终端标识。In step 101, a process information acquisition request is sent to the cloud server, where the process information acquisition request carries a terminal identifier of a second terminal associated with the first terminal.

在步骤102中,接收该云服务器返回的该第二终端当前运行进程的进程信息,根据该进程信息,生成对该当前运行进程中的目标进程的控制指令。In step 102, the process information of the current running process of the second terminal returned by the cloud server is received, and according to the process information, a control instruction of the target process in the currently running process is generated.

在步骤103中,向该云服务器发送该控制指令,以使该云服务器将该控制指令转发至该第二终端,该控制指令用于控制该第二终端执行该控制指令对应的控制操作。In step 103, the control instruction is sent to the cloud server, so that the cloud server forwards the control instruction to the second terminal, where the control instruction is used to control the second terminal to perform the control operation corresponding to the control instruction.

可选地,根据该进程信息,生成对该当前运行进程中的目标进程的控制指令,包括:Optionally, according to the process information, generate a control instruction for the target process in the currently running process, including:

根据该进程信息,从该当前运行进程中选择目标进程;According to the process information, select the target process from the current running process;

显示该目标进程对应的控制界面,该控制界面中包括至少一个操作按钮;Displaying a control interface corresponding to the target process, where the control interface includes at least one operation button;

生成被选择的操作按钮对应的控制指令。Generate a control command corresponding to the selected operation button.

可选地,生成被选择的操作按钮对应的控制指令,包括:Optionally, generating a control instruction corresponding to the selected operation button, including:

当该被选择的操作按钮为退出按钮时,生成退出该目标进程的退出指令;或者,When the selected operation button is the exit button, an exit instruction for exiting the target process is generated; or,

当该被选择的操作按钮为禁用按钮时,生成禁止运行该目标进程的禁用指令;或者,When the selected operation button is a disable button, generate a disable instruction prohibiting running the target process; or,

当该选择的操作按钮为权限设置按钮时,获取该目标进程的使用权限,该使用权限包括使用时间段和/或使用时长,生成包含该使用权限的权限设置指令。When the selected operation button is a permission setting button, the usage permission of the target process is obtained, and the usage permission includes the usage time period and/or the usage duration, and a permission setting instruction including the usage permission is generated.

可选地,向云服务器发送进程信息获取请求之前,该方法还包括:Optionally, before sending the process information acquisition request to the cloud server, the method further includes:

确定该第一终端是否登录该云服务器;determining whether the first terminal logs in to the cloud server;

当该第一终端登录该云服务器时,执行该向云服务器发送进程信息获取请求的步骤。When the first terminal logs in to the cloud server, the step of sending a process information acquisition request to the cloud server is performed.

可选地,向云服务器发送进程信息获取请求之前,该方法还包括:Optionally, before sending the process information acquisition request to the cloud server, the method further includes:

向该云服务器发送关联请求,该关联请求中携带该第二终端的第二标识、退出密码以及该第一终端对应的第一标识,以使该云服务器关联该第一终端和该第二终端,并将该退出密码设置为该第二终端退出登录该云服务器时的密码。Send an association request to the cloud server, where the association request carries the second identification of the second terminal, the exit password, and the first identification corresponding to the first terminal, so that the cloud server associates the first terminal and the second terminal , and set the logout password as the password when the second terminal logs out of the cloud server.

在本公开实施例中,第一终端向云服务器发送进程信息获取请求,由于该进程信息获取请求携带与第一终端关联的第二终端的终端标识,因此,第一终端可以接收云服务器返回的第二终端当前运行进程的进程信息,并根据该进程信息,生成对当前运行进程中的目标进程的控制指令。然后向云服务器发送该控制指令,以使云服务器将该控制指令转发至第二终端,其中,该控制指令用于控制第二终端执行控制指令对应的控制操作。如此,第一终端可以通过云服务器有效控制第二终端当前运行的进程。In the embodiment of the present disclosure, the first terminal sends a process information acquisition request to the cloud server. Since the process information acquisition request carries the terminal identifier of the second terminal associated with the first terminal, the first terminal can receive the information returned by the cloud server. Process information of the currently running process of the second terminal, and generate a control instruction for the target process in the currently running process according to the process information. Then, the control instruction is sent to the cloud server, so that the cloud server forwards the control instruction to the second terminal, wherein the control instruction is used to control the second terminal to execute the control operation corresponding to the control instruction. In this way, the first terminal can effectively control the currently running process of the second terminal through the cloud server.

上述所有可选技术方案,均可按照任意结合形成本公开的可选实施例,本公开实施例对此不再一一赘述。All the above-mentioned optional technical solutions can be combined to form optional embodiments of the present disclosure, which are not repeated in the embodiments of the present disclosure.

图2是根据一示例性实施例示出的一种控制终端的方法的流程图,如图2所示,该方法应用于第二终端,包括以下步骤。Fig. 2 is a flowchart of a method for controlling a terminal according to an exemplary embodiment. As shown in Fig. 2 , the method is applied to a second terminal and includes the following steps.

在步骤201中,采集当前运行进程的进程信息。In step 201, process information of the currently running process is collected.

在步骤202中,向云服务器发送该进程信息,以使该云服务器在该第二终端关联的第一终端获取该进程信息时,将该进程信息转发至该第一终端。In step 202, the process information is sent to the cloud server, so that the cloud server forwards the process information to the first terminal when the first terminal associated with the second terminal acquires the process information.

在步骤203中,接收该云服务器返回的该第一终端对该当前运行进程中的目标进程的控制指令,并执行该控制指令对应的控制操作。In step 203, a control instruction of the first terminal on the target process in the current running process returned by the cloud server is received, and a control operation corresponding to the control instruction is executed.

可选地,执行该控制指令对应的控制操作,包括:Optionally, executing the control operation corresponding to the control instruction includes:

当该控制指令为退出指令时,退出该目标进程;或者,When the control instruction is an exit instruction, exit the target process; or,

当该控制指令为禁用指令时,将该目标进程的属性设置为禁用;或者,When the control instruction is a disable instruction, set the attribute of the target process to disable; or,

当该控制指令为权限设置指令时,将该目标进程的使用权限设置为该权限设置指令中包含的使用权限,该使用权限包括使用时间段和/或使用时长。When the control instruction is an authority setting instruction, the use authority of the target process is set as the use authority included in the authority setting instruction, and the use authority includes the use time period and/or the use time period.

可选地,将该目标进程的使用权限设置为该权限设置指令中包含的使用权限之后,该方法还包括:Optionally, after setting the usage permission of the target process to the usage permission included in the permission setting instruction, the method further includes:

检测当前时间是否在该使用时间段内,当该当前时间不在该使用时间段内,退出该目标进程;和/或,Detect whether the current time is within the usage time period, and when the current time is not within the usage time period, exit the target process; and/or,

检测该目标应用的运行时长是否达到该使用时长,当该运行时长达到该使用时长,退出该目标进程。It is detected whether the running duration of the target application reaches the usage duration, and when the running duration reaches the usage duration, the target process is exited.

可选地,向云服务器发送该进程信息之前,该方法还包括:Optionally, before sending the process information to the cloud server, the method further includes:

确定该第二终端是否登录该云服务器;determining whether the second terminal logs in to the cloud server;

当该第二终端登录该云服务器时,执行该向云服务器发送该第二终端运行进程的进程信息的步骤。When the second terminal logs in to the cloud server, the step of sending the process information of the running process of the second terminal to the cloud server is performed.

在本公开实施例中,第二终端可以采集当前运行进程的进程信息,并向云服务器发送该进程信息,以使云服务器在第二终端关联的第一终端获取进程信息时,将该进程信息转发至第一终端。由于第一终端可以接收到第二终端的进程信息,因此,当第一终端对目标进程发出控制指令时,第二终端可以接收云服务器返回的第一终端对当前运行进程中的目标进程的控制指令,并执行控制指令对应的控制操作。如此,第二终端可以通过云服务器有效地接受第一终端对第二终端当前运行的进程的控制。In the embodiment of the present disclosure, the second terminal may collect the process information of the currently running process, and send the process information to the cloud server, so that the cloud server can send the process information to the cloud server when the first terminal associated with the second terminal acquires the process information. forwarded to the first terminal. Since the first terminal can receive the process information of the second terminal, when the first terminal sends a control instruction to the target process, the second terminal can receive the control of the target process in the current running process by the first terminal returned by the cloud server instruction, and execute the control operation corresponding to the control instruction. In this way, the second terminal can effectively accept the control of the process currently running by the second terminal from the first terminal through the cloud server.

上述所有可选技术方案,均可按照任意结合形成本公开的可选实施例,本公开实施例对此不再一一赘述。All the above-mentioned optional technical solutions can be combined to form optional embodiments of the present disclosure, which are not repeated in the embodiments of the present disclosure.

图3是根据一示例性实施例示出的一种控制终端的方法的流程图,本实施例将对图1所示的实施例进行展开说明。如图3所示,该方法包括以下步骤。FIG. 3 is a flowchart of a method for controlling a terminal according to an exemplary embodiment, and this embodiment will expand the description of the embodiment shown in FIG. 1 . As shown in Figure 3, the method includes the following steps.

在步骤301中,第二终端采集当前运行进程的进程信息,并向云服务器发送该进程信息。In step 301, the second terminal collects process information of the currently running process, and sends the process information to the cloud server.

为了便于用户在第一终端上通过云服务器查看并控制第二终端当前运行的进程,第二终端可以采集当前运行进程的进程信息,并向云服务器发送该进程信息。In order for the user to view and control the currently running process of the second terminal on the first terminal through the cloud server, the second terminal may collect process information of the currently running process and send the process information to the cloud server.

在一种可能的实施例中,第二终端可以主动采集当前运行进程的进程信息,也可以被动采集当前运行进程的进程信息。当第二终端被动采集当前运行进程的进程信息时,第二终端可以接收云服务器发送的第一进程采集指令,进而在该第一进程采集指令的触发下,采集当前运行进程的进程信息。其中,该第一进程采集指令用于指示第二终端采集当前运行进程的进程信息。In a possible embodiment, the second terminal may actively collect the process information of the currently running process, and may also passively collect the process information of the currently running process. When the second terminal passively collects the process information of the currently running process, the second terminal may receive the first process acquisition instruction sent by the cloud server, and then collect the process information of the currently running process under the trigger of the first process acquisition instruction. Wherein, the first process collection instruction is used to instruct the second terminal to collect process information of the currently running process.

需要说明的是,采集的进程信息可以包括进程标识、开始运行进程的时间,截止采集时刻进程已运行的时长。例如,第二终端当前运行的进程为游戏进程1,游戏进程1的标识为游戏1,开始运行游戏进程1的时间为10:00,采集游戏进程1的进程信息的采集时刻为10:30,则游戏进程1截止采集时刻已运行时长为30min。因此,采集游戏进程1的进程信息为游戏1、开始运行进程的时间为10:00,以及已运行时长为30min。当然,进程信息还可以包括进程的其他信息,本公开实施例对此不作限定。It should be noted that the collected process information may include a process identifier, the time when the process starts to run, and the duration that the process has run by the time of collection. For example, the process currently running on the second terminal is game process 1, the logo of game process 1 is game 1, the time to start running game process 1 is 10:00, and the collection time for collecting process information of game process 1 is 10:30. Then the game process 1 has been running for 30 minutes as of the collection time. Therefore, the process information collected for game process 1 is game 1, the time when the process started running is 10:00, and the running time is 30 minutes. Certainly, the process information may also include other information of the process, which is not limited in this embodiment of the present disclosure.

另外,第二终端在采集完当前运行进程的进程信息后,可以向云服务器发送该进程信息。In addition, after collecting the process information of the currently running process, the second terminal may send the process information to the cloud server.

需要说明的是,第二终端在采集完当前运行进程的进程信息后,可以确定第二终端是否登录云服务器,当确定第二终端登录云服务器时,再向云服务器发送该进程信息。It should be noted that after collecting the progress information of the currently running process, the second terminal can determine whether the second terminal is logged in to the cloud server, and when it is determined that the second terminal is logged in to the cloud server, send the process information to the cloud server.

在另一种可能的实施例中,第二终端除了可以采集当前运行进程的进程信息,还可以采集当前时刻之前指定时刻运行进程的进程信息。在该种情况下,第二终端可以实时存储运行进程的进程信息,当第二终端采集时,便可获取存储的运行进程的进程信息。In another possible embodiment, in addition to collecting process information of a currently running process, the second terminal may also collect process information of a running process at a specified time before the current time. In this case, the second terminal can store the process information of the running process in real time, and when the second terminal collects the process information, it can obtain the stored process information of the running process.

需要说明的是,第二终端可以主动采集当前时刻之前指定时刻运行进程的进程信息,也可以被动采集当前时刻之前指定时刻运行进程的进程信息。当第二终端被动采集当前时刻之前指定时刻运行进程的进程信息时,第二终端可以接收云服务器发送的第二进程采集指令,进而在该第二进程采集指令的触发下,采集当前时刻之前指定时刻运行进程的进程信息。其中,该第二进程采集指令中可以携带需要采集运行进程的第一指定时刻,该第二进程采集指令用于指示第二终端采集第一指定时刻运行进程的进程信息。It should be noted that the second terminal may actively collect process information of a process running at a specified time before the current time, or passively collect process information of a process running at a specified time before the current time. When the second terminal passively collects the process information of the running process at the specified time before the current time, the second terminal can receive the second process collection instruction sent by the cloud server, and then, under the trigger of the second process collection instruction, collect the process information specified before the current time. Process information of the running process at all times. Wherein, the second process collection instruction may carry a first designated time at which the running process needs to be collected, and the second process collection instruction is used to instruct the second terminal to collect process information of the running process at the first designated time.

需要说明的是,在另一种可能的实施例中,采集的进程信息可以包括进程标识、开始运行进程的时间,结束运行进程的时间。例如,当前时刻为10:00,第二终端需要采集第一指定时刻为9:00的运行进程的进程信息,9:00运行的进程为游戏进程1,游戏进程1的标识为游戏1,开始运行游戏进程1的时间为8:30,结束运行游戏进程1的时间为9:10。因此,采集游戏进程1的进程信息为游戏1、开始运行进程的时间为8:30,以及,结束运行游戏进程1的时间为9:10。当然,进程信息还可以包括进程的其他信息,本公开实施例对此不作限定。It should be noted that, in another possible embodiment, the collected process information may include a process identifier, the time when the running process is started, and the time when the running process is terminated. For example, the current time is 10:00, the second terminal needs to collect the process information of the running process whose first specified time is 9:00, the process running at 9:00 is game process 1, and the identifier of game process 1 is game 1, and start The time to run game process 1 is 8:30, and the time to end running game process 1 is 9:10. Therefore, the process information collected for the game process 1 is the game 1, the time to start the running process is 8:30, and the time to end the running of the game process 1 is 9:10. Certainly, the process information may also include other information of the process, which is not limited in this embodiment of the present disclosure.

另外,第二终端在采集完当前时刻之前指定时刻运行进程的进程信息后,可以向云服务器发送该进程信息。In addition, after collecting the process information of the running process at the specified time before the current time, the second terminal may send the process information to the cloud server.

需要说明的是,第二终端在采集完当前时刻之前指定时刻运行进程的进程信息后,可以确定第二终端是否登录云服务器,当确定第二终端登录云服务器时,再向云服务器发送该进程信息。It should be noted that, after collecting the process information of the running process at the specified time before the current time, the second terminal can determine whether the second terminal is logged in to the cloud server, and when it is determined that the second terminal is logged in to the cloud server, send the process to the cloud server. information.

在步骤302中,第一终端向云服务器发送进程信息获取请求,该进程信息获取请求携带该第一终端关联的第二终端的终端标识。In step 302, the first terminal sends a process information acquisition request to the cloud server, where the process information acquisition request carries the terminal identifier of the second terminal associated with the first terminal.

当父母想要查看并控制孩子的第二终端运行进程的进程信息时,可以通过第一终端向云服务器发送进程信息获取请求,该进程信息获取请求中可以携带该第一终端关联的第二终端的终端标识。When the parent wants to view and control the process information of the running process of the child's second terminal, the first terminal can send a process information acquisition request to the cloud server, and the process information acquisition request can carry the second terminal associated with the first terminal. terminal ID.

在一种可能的实施例中,第一终端向云服务器发送的进程信息获取请求用于获取第二终端当前运行进程的进程信息,因此,在该种情况下,该进程信息获取请求中还可以包括获取第二终端当前运行进程的指示信息。In a possible embodiment, the process information acquisition request sent by the first terminal to the cloud server is used to acquire the process information of the currently running process of the second terminal. Therefore, in this case, the process information acquisition request may also Including obtaining the indication information of the current running process of the second terminal.

在另外一种可能的实施例中,第一终端向云服务器发送的进程信息获取请求还可以用于获取第二终端当前时刻之前的指定时刻运行进程的进程信息,因此,在该种情况下,该进程信息获取请求中可以包括获取第二终端第一指定时刻运行进程的指示信息。例如,当前时刻为10:00,第一终端向云服务器发送的进程信息获取请求是用于获取第二终端9:00运行进程的进程信息。In another possible embodiment, the process information acquisition request sent by the first terminal to the cloud server may also be used to acquire process information of the process running at a specified time before the current time of the second terminal. Therefore, in this case, The process information acquisition request may include acquiring indication information of the running process of the second terminal at the first specified time. For example, the current time is 10:00, and the process information acquisition request sent by the first terminal to the cloud server is for acquiring the process information of the running process of the second terminal at 9:00.

需要说明的是,第一终端可以先确定第一终端是否登录云服务器,当确定第一终端登录云服务器时,向云服务器发送进程信息获取请求。It should be noted that the first terminal may first determine whether the first terminal is logged in to the cloud server, and when it is determined that the first terminal is logged in to the cloud server, send a process information acquisition request to the cloud server.

另外,第一终端在向云服务器发送进程信息获取请求之前,还可以通过云服务器与第一终端进行关联并设置第二终端退出登录云服务器的密码。可选地,第一终端可以向云服务器发送关联请求,该关联请求中携带第二终端的第二标识、退出密码以及第一终端对应的第一标识,云服务器在接收到第一终端发送的进程信息获取请求时,可以解析该进程信息获取请求以得到第二终端的第二标识、退出密码以及第一终端对应的第一标识,然后关联第一终端和第二终端,并将退出密码设置为第二终端退出登录云服务器时的密码。In addition, before sending the process information acquisition request to the cloud server, the first terminal may also associate with the first terminal through the cloud server and set a password for the second terminal to log out of the cloud server. Optionally, the first terminal may send an association request to the cloud server, where the association request carries the second identification of the second terminal, the exit password, and the first identification corresponding to the first terminal, and the cloud server receives the information sent by the first terminal. When the process information acquisition request is made, the process information acquisition request can be parsed to obtain the second identification of the second terminal, the exit password and the first identification corresponding to the first terminal, and then the first terminal and the second terminal are associated, and the exit password is set. It is the password for the second terminal to log out and log in to the cloud server.

需要说明的是,为了保证家长通过第一终端能够随时查看并控制第二终端运行的进程,家长可以通过第一终端设置第二终端退出登录云服务器的密码,并在向云服务器发送进程信息获取请求的时候,将该密码携带在该请求中。如此,只有当孩子知道该密码时,才可以控制第二终端通过该密码退出登录云服务器,否则,第二终端将一直处于登录云服务器的状态,家长也就可以通过第一终端随时查看并控制第二终端运行的进程。It should be noted that, in order to ensure that parents can view and control the running process of the second terminal at any time through the first terminal, parents can set the password of the second terminal to log out of the cloud server through the first terminal, and send the process information to the cloud server to obtain the password. When requesting, carry the password in the request. In this way, only when the child knows the password, the second terminal can be controlled to log out of the cloud server through the password, otherwise, the second terminal will always be in the state of logging in to the cloud server, and the parent can view and control it at any time through the first terminal. The process running on the second terminal.

在另外一种可能的实施例中,为了保证家长通过第一终端能够随时查看并控制第二终端运行的进程,除了可以为第二终端设置退出登录云服务器的密码,还可以为云服务器对应的APP(Application,应用程序)设置使用密码,该APP安装于第一终端和第二终端中。可选地,第一终端向云服务器发送关联请求中可以携带第二终端的第二标识、使用密码以及第一终端对应的第一标识,因此,云服务器在关联第一终端和第二终端时,可以将该使用密码设置为安装于第二终端上的该APP的使用密码。由于第一终端通过云服务器在与第二终端关联时,第一终端和第二终端都处于登录云服务器的状态,因此,当第二终端的该APP后台运行后,孩子再次使用该APP时,则需要通过使用密码来操控该APP,在孩子不知道该使用密码的情况下,该APP将会一直处于开启状态,也即第二终端一直处于登录云服务器的状态,家长也就可以通过第一终端随时查看并控制第二终端运行的进程。In another possible embodiment, in order to ensure that the parent can view and control the running process of the second terminal at any time through the first terminal, in addition to setting the password for logging out of the cloud server for the second terminal, it can also set a password corresponding to the cloud server for the second terminal. An APP (Application, application program) is set to use a password, and the APP is installed in the first terminal and the second terminal. Optionally, the association request sent by the first terminal to the cloud server may carry the second identification of the second terminal, the password used, and the first identification corresponding to the first terminal. Therefore, when the cloud server associates the first terminal with the second terminal , the usage password can be set as the usage password of the APP installed on the second terminal. Since the first terminal and the second terminal are both in the state of logging into the cloud server when the first terminal is associated with the second terminal through the cloud server, when the APP of the second terminal runs in the background, when the child uses the APP again, Then you need to use the password to control the APP. If the child does not know the password, the APP will always be in the open state, that is, the second terminal is always in the state of logging in to the cloud server. The terminal can view and control the processes running on the second terminal at any time.

在步骤303中,第一终端接收云服务器返回的第二终端当前运行进程的进程信息,根据该进程信息,生成对当前运行进程中的目标进程的控制指令。In step 303, the first terminal receives the process information of the current running process of the second terminal returned by the cloud server, and generates a control instruction for the target process in the currently running process according to the process information.

第一终端根据该进程信息,生成对当前运行进程中的目标进程的控制指令时,可以根据进程信息,从当前运行进程中选择目标进程,并显示该目标进程对应的控制界面,该控制界面中包括至少一个操作按钮,然后生成被选择的操作按钮对应的控制指令。When the first terminal generates a control instruction for the target process in the current running process according to the process information, it can select the target process from the current running process according to the process information, and display the control interface corresponding to the target process. At least one operation button is included, and then a control instruction corresponding to the selected operation button is generated.

需要说明的是,第二终端当前可能运行多个不同的进程,不同的进程对应的控制界面可能不同,因此,当家长根据进程信息从当前运行进程中选择出目标进程后,可以显示该目标进程对应的控制界面,该控制界面中包括至少一个操作按钮。该至少一个操作按钮可以包括退出按钮、禁用按钮以及权限设置按钮。当然,该控制界面中还可以包括其他信息,例如,第二终端运行目标进程时所在的位置信息、第二终端运行目标进程时第二终端的电量信息等。It should be noted that the second terminal may currently run multiple different processes, and the control interfaces corresponding to different processes may be different. Therefore, when the parent selects the target process from the currently running processes according to the process information, the target process can be displayed. The corresponding control interface includes at least one operation button. The at least one operation button may include an exit button, a disable button, and a permission setting button. Of course, the control interface may also include other information, for example, information about the location where the second terminal is running the target process, information about the power level of the second terminal when the second terminal is running the target process, and the like.

进一步,第一终端可以在显示的目标进程对应的控制界面中根据不同的操作按钮生成不同的控制指令。当被选择的操作按钮为退出按钮时,生成退出目标进程的退出指令;当被选择的操作按钮为禁用按钮时,生成禁止运行目标进程的禁用指令;当被选择的操作按钮为权限设置按钮时,获取目标进程的使用权限,该使用权限包括使用时间段和/或使用时长,生成包含使用权限的权限设置指令。Further, the first terminal may generate different control instructions according to different operation buttons in the control interface corresponding to the displayed target process. When the selected operation button is the exit button, an exit instruction for exiting the target process is generated; when the selected operation button is a disable button, a disable instruction for prohibiting the running of the target process is generated; when the selected operation button is a permission setting button , to obtain the usage permission of the target process, the usage permission includes the usage time period and/or the usage duration, and a permission setting instruction including the usage permission is generated.

需要说明的是,当被选择的操作按钮为权限设置按钮时,获取目标进程的使用权限可以为:当被选择的操作按钮为权限设置按钮时,第一终端显示权限设置按钮对应的控制界面,该控制界面中包括使用时间段按钮和/或使用时长按钮,然后获取被选择的使用时间段按钮或使用时长按钮对应的目标进程的使用权限。It should be noted that, when the selected operation button is the authority setting button, the acquisition of the use authority of the target process may be: when the selected operation button is the authority setting button, the first terminal displays the control interface corresponding to the authority setting button, The control interface includes a use time period button and/or a use time period button, and then obtains the use authority of the target process corresponding to the selected use time period button or the use time period button.

其中,家长在显示的权限设置按钮对应的控制界面中选择使用时间段按钮时,可以对目标进程设置具体的使用时间段,例如,设置游戏应用的使用时间段为10:00-10:15。当家长选择使用时长按钮时,可以对目标进程设置具体的使用时长,例如,设置游戏应用的使用时长为15min。When the parent selects the use time period button in the control interface corresponding to the displayed permission setting button, the parent can set a specific use time period for the target process, for example, set the use time period of the game application to 10:00-10:15. When the parent selects the usage duration button, a specific usage duration can be set for the target process, for example, the usage duration of the game application is set to 15 minutes.

另外,该控制指令中还可以包括第二指定时刻,该第二指定时刻用于控制第二终端在该第二指定时刻时执行控制指令对应的控制操作。该第二指定时刻可以为当前时刻、当前时刻之前的时刻或当前时刻之后的时刻。In addition, the control instruction may further include a second designated time, where the second designated time is used to control the second terminal to execute the control operation corresponding to the control instruction at the second designated time. The second designated time may be the current time, the time before the current time, or the time after the current time.

在步骤304中,第一终端向云服务器发送控制指令,以使云服务器将该控制指令转发至第二终端。In step 304, the first terminal sends a control instruction to the cloud server, so that the cloud server forwards the control instruction to the second terminal.

第一终端生成控制指令后,可以向云服务器发送该控制指令,云服务器在接收到该控制指令时,可以将该控制指令转发至第二终端,After the first terminal generates the control instruction, it can send the control instruction to the cloud server, and when the cloud server receives the control instruction, it can forward the control instruction to the second terminal,

在步骤305中,第二终端接收云服务器返回的第一终端对当前运行进程中的目标进程的控制指令,并执行该控制指令对应的控制操作。In step 305, the second terminal receives the control instruction of the first terminal on the target process in the current running process returned by the cloud server, and executes the control operation corresponding to the control instruction.

由于第一终端生成的控制指令包括退出指令、禁用指令和权限设置指令,因此当第二终端接收到控制指令时,可以控制第二终端执行该控制指令对应的操作。当控制指令为退出指令时,退出目标进程;当控制指令为禁用指令时,将目标进程的属性设置为禁用;当控制指令为权限设置指令时,将目标进程的使用权限设置为权限设置指令中包含的使用权限,该使用权限包括使用时间段和/或使用时长。Since the control instruction generated by the first terminal includes an exit instruction, a disable instruction and an authority setting instruction, when the second terminal receives the control instruction, the second terminal can be controlled to execute the operation corresponding to the control instruction. When the control command is an exit command, exit the target process; when the control command is a disable command, set the attribute of the target process to disable; when the control command is a permission setting command, set the use permission of the target process to the permission setting command Included usage rights, including usage periods and/or duration of usage.

需要说明的是,第二终端在将目标进程的使用权限设置为权限设置指令中包含的使用权限之后,由于使用权限包括使用时间段和/或使用时长,因此,第二终端还可以检测当前时间是否在使用时间段内,当当前时间不在使用时间段内时退出目标进程;和/或,检测目标应用的运行时长是否达到使用时长,当运行时长达到使用时长时退出目标进程。也即,孩子只能在权限设置指令中包含的使用时间段和/或使用时长内控制目标进程运行。It should be noted that, after the second terminal sets the use authority of the target process to the use authority included in the authority setting instruction, since the use authority includes the use time period and/or the use time period, the second terminal can also detect the current time. Whether it is within the use time period, exit the target process when the current time is not within the use time period; and/or, detect whether the running time of the target application reaches the use time, and exit the target process when the running time reaches the use time. That is, the child can only control the running of the target process within the usage time period and/or usage time period included in the permission setting instruction.

在本公开实施例中,第一终端向云服务器发送进程信息获取请求,由于该进程信息获取请求携带与第一终端关联的第二终端的终端标识,因此,第一终端可以接收云服务器返回的第二终端当前运行进程的进程信息,并根据该进程信息,生成对当前运行进程中的目标进程的控制指令。然后向云服务器发送该控制指令,以使云服务器将该控制指令转发至第二终端,其中,该控制指令用于控制第二终端执行控制指令对应的控制操作。如此,第一终端可以通过云服务器有效控制第二终端当前运行的进程。In the embodiment of the present disclosure, the first terminal sends a process information acquisition request to the cloud server. Since the process information acquisition request carries the terminal identifier of the second terminal associated with the first terminal, the first terminal can receive the information returned by the cloud server. Process information of the currently running process of the second terminal, and generate a control instruction for the target process in the currently running process according to the process information. Then, the control instruction is sent to the cloud server, so that the cloud server forwards the control instruction to the second terminal, wherein the control instruction is used to control the second terminal to execute the control operation corresponding to the control instruction. In this way, the first terminal can effectively control the currently running process of the second terminal through the cloud server.

图4是根据一示例性实施例示出的一种控制终端的装置400的框图。如图4所示,该装置包括发送模块401,生成模块402和控制模块403。FIG. 4 is a block diagram of an apparatus 400 for controlling a terminal according to an exemplary embodiment. As shown in FIG. 4 , the apparatus includes a sending module 401 , a generating module 402 and a control module 403 .

发送模块401,用于向云服务器发送进程信息获取请求,该进程信息获取请求携带该第一终端关联的第二终端的终端标识;A sending module 401, configured to send a process information acquisition request to a cloud server, where the process information acquisition request carries a terminal identifier of a second terminal associated with the first terminal;

生成模块402,用于接收该云服务器返回的该第二终端当前运行进程的进程信息,根据该进程信息,生成对该当前运行进程中的目标进程的控制指令;A generating module 402, configured to receive the process information of the current running process of the second terminal returned by the cloud server, and generate a control instruction of the target process in the current running process according to the process information;

控制模块403,用于向该云服务器发送该控制指令,以使该云服务器将该控制指令转发至该第二终端,该控制指令用于控制该第二终端执行该控制指令对应的控制操作。The control module 403 is configured to send the control instruction to the cloud server, so that the cloud server forwards the control instruction to the second terminal, where the control instruction is used to control the second terminal to execute the control operation corresponding to the control instruction.

可选地,该生成模块包括:Optionally, the generation module includes:

选择子模块,用于根据该进程信息,从该当前运行进程中选择目标进程;The selection submodule is used to select the target process from the current running process according to the process information;

显示子模块,用于显示该目标进程对应的控制界面,该控制界面中包括至少一个操作按钮;A display submodule, used for displaying a control interface corresponding to the target process, the control interface including at least one operation button;

生成子模块,用于生成被选择的操作按钮对应的控制指令。The generating submodule is used to generate the control instruction corresponding to the selected operation button.

可选地,该生成子模块包括:Optionally, the generating submodule includes:

第一生成单元,用于当该被选择的操作按钮为退出按钮时,生成退出该目标进程的退出指令;或者,a first generating unit, configured to generate an exit instruction for exiting the target process when the selected operation button is an exit button; or,

第二生成单元,用于当该被选择的操作按钮为禁用按钮时,生成禁止运行该目标进程的禁用指令;或者,a second generating unit, configured to generate a disable instruction prohibiting running the target process when the selected operation button is a disable button; or,

第三生成单元,用于当该选择的操作按钮为权限设置按钮时,获取该目标进程的使用权限,该使用权限包括使用时间段和/或使用时长,生成包含该使用权限的权限设置指令。The third generating unit is configured to acquire the use rights of the target process when the selected operation button is a rights setting button, the use rights include the use time period and/or the use time length, and generate a rights setting instruction including the use rights.

可选地,该装置还包括:Optionally, the device also includes:

确定模块,用于确定该第一终端是否登录该云服务器;a determining module, configured to determine whether the first terminal logs in to the cloud server;

触发模块,用于当该第一终端登录该云服务器时,触发该发送模块向该云服务器发送该进程信息获取请求。A triggering module, configured to trigger the sending module to send the process information acquisition request to the cloud server when the first terminal logs in to the cloud server.

可选地,该装置还包括:Optionally, the device also includes:

关联模块,用于向该云服务器发送关联请求,该关联请求中携带该第二终端的第二标识、退出密码以及该第一终端对应的第一标识,以使该云服务器关联该第一终端和该第二终端,并将该退出密码设置为该第二终端退出登录该云服务器时的密码。an association module, configured to send an association request to the cloud server, where the association request carries the second identification of the second terminal, the exit password and the first identification corresponding to the first terminal, so that the cloud server is associated with the first terminal and the second terminal, and set the logout password as the password when the second terminal logs out of the cloud server.

在本公开实施例中,第一终端向云服务器发送进程信息获取请求,由于该进程信息获取请求携带与第一终端关联的第二终端的终端标识,因此,第一终端可以接收云服务器返回的第二终端当前运行进程的进程信息,并根据该进程信息,生成对当前运行进程中的目标进程的控制指令。然后向云服务器发送该控制指令,以使云服务器将该控制指令转发至第二终端,其中,该控制指令用于控制第二终端执行控制指令对应的控制操作。如此,第一终端可以通过云服务器有效控制第二终端当前运行的进程。In the embodiment of the present disclosure, the first terminal sends a process information acquisition request to the cloud server. Since the process information acquisition request carries the terminal identifier of the second terminal associated with the first terminal, the first terminal can receive the information returned by the cloud server. Process information of the currently running process of the second terminal, and generate a control instruction for the target process in the currently running process according to the process information. Then, the control instruction is sent to the cloud server, so that the cloud server forwards the control instruction to the second terminal, wherein the control instruction is used to control the second terminal to execute the control operation corresponding to the control instruction. In this way, the first terminal can effectively control the currently running process of the second terminal through the cloud server.

关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the above-mentioned embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be described in detail here.

图5是根据一示例性实施例示出的一种控制终端的装置500的框图。如图5所示,该装置包括采集模块501,发送模块502和执行模块503。Fig. 5 is a block diagram of an apparatus 500 for controlling a terminal according to an exemplary embodiment. As shown in FIG. 5 , the device includes a collection module 501 , a sending module 502 and an execution module 503 .

采集模块501,用于采集当前运行进程的进程信息;The collection module 501 is used to collect process information of the currently running process;

发送模块502,用于向云服务器发送该进程信息,以使该云服务器在该第二终端关联的第一终端获取该进程信息时,将该进程信息转发至该第一终端;A sending module 502, configured to send the process information to the cloud server, so that the cloud server forwards the process information to the first terminal when the first terminal associated with the second terminal acquires the process information;

执行模块503,用于接收该云服务器返回的该第一终端对该当前运行进程中的目标进程的控制指令,并执行该控制指令对应的控制操作。The execution module 503 is configured to receive the control instruction of the first terminal on the target process in the current running process returned by the cloud server, and execute the control operation corresponding to the control instruction.

可选地,该执行模块包括:Optionally, the execution module includes:

退出子模块,用于当该控制指令为退出指令时,退出该目标进程;或者,The exit submodule is used to exit the target process when the control instruction is an exit instruction; or,

禁用子模块,用于当该控制指令为禁用指令时,将该目标进程的属性设置为禁用;或者,The disable submodule is used to set the attribute of the target process to disabled when the control instruction is a disable instruction; or,

权限设置子模块,用于当该控制指令为权限设置指令时,将该目标进程的使用权限设置为该权限设置指令中包含的使用权限,该使用权限包括使用时间段和/或使用时长。The permission setting sub-module is used to set the use permission of the target process to the usage permission included in the permission setting instruction when the control instruction is a permission setting instruction, and the usage permission includes the usage time period and/or the usage duration.

可选地,该装置还包括:Optionally, the device also includes:

第一检测模块,用于检测当前时间是否在该使用时间段内,当该当前时间不在该使用时间段内,退出该目标进程;和/或,The first detection module is used to detect whether the current time is within the use time period, and when the current time is not within the use time period, exit the target process; and/or,

第二检测模块,用于检测该目标应用的运行时长是否达到该使用时长,当该运行时长达到该使用时长,退出该目标进程。The second detection module is used to detect whether the running duration of the target application reaches the usage duration, and when the running duration reaches the usage duration, exit the target process.

可选地,该装置还包括:Optionally, the device also includes:

确定模块,用于确定该第二终端是否登录该云服务器;a determining module for determining whether the second terminal logs in to the cloud server;

触发模块,用于当该第二终端登录该云服务器时,触发该发送模块向该云服务器发送该第二终端运行进程的进程信息。The triggering module is configured to trigger the sending module to send the process information of the running process of the second terminal to the cloud server when the second terminal logs in to the cloud server.

在本公开实施例中,第二终端可以采集当前运行进程的进程信息,并向云服务器发送该进程信息,以使云服务器在第二终端关联的第一终端获取进程信息时,将该进程信息转发至第一终端。由于第一终端可以接收到第二终端的进程信息,因此,当第一终端对目标进程发出控制指令时,第二终端可以接收云服务器返回的第一终端对当前运行进程中的目标进程的控制指令,并执行控制指令对应的控制操作。如此,第二终端可以通过云服务器有效地接受第一终端对第二终端当前运行的进程的控制。In the embodiment of the present disclosure, the second terminal may collect the process information of the currently running process, and send the process information to the cloud server, so that the cloud server can send the process information to the cloud server when the first terminal associated with the second terminal acquires the process information. forwarded to the first terminal. Since the first terminal can receive the process information of the second terminal, when the first terminal sends a control instruction to the target process, the second terminal can receive the control of the target process in the current running process by the first terminal returned by the cloud server instruction, and execute the control operation corresponding to the control instruction. In this way, the second terminal can effectively accept the control of the process currently running by the second terminal from the first terminal through the cloud server.

关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the above-mentioned embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be described in detail here.

图6是根据一示例性实施例示出的一种用于控制终端的装置600的框图。例如,装置600可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。FIG. 6 is a block diagram of an apparatus 600 for controlling a terminal according to an exemplary embodiment. For example, apparatus 600 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, and the like.

参照图6,装置600可以包括以下一个或多个组件:处理组件602,存储器604,电源组件606,多媒体组件608,音频组件610,输入/输出(I/O)的接口612,传感器组件614,以及通信组件616。6, the apparatus 600 may include one or more of the following components: a processing component 602, a memory 604, a power supply component 606, a multimedia component 608, an audio component 610, an input/output (I/O) interface 612, a sensor component 614, and communication component 616 .

处理组件602通常控制装置600的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件602可以包括一个或多个处理器620来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件602可以包括一个或多个模块,便于处理组件602和其他组件之间的交互。例如,处理组件602可以包括多媒体模块,以方便多媒体组件608和处理组件602之间的交互。The processing component 602 generally controls the overall operation of the device 600, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to perform all or some of the steps of the methods described above. Additionally, processing component 602 may include one or more modules that facilitate interaction between processing component 602 and other components. For example, processing component 602 may include a multimedia module to facilitate interaction between multimedia component 608 and processing component 602.

存储器604被配置为存储各种类型的数据以支持在装置600的操作。这些数据的示例包括用于在装置600上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器604可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。Memory 604 is configured to store various types of data to support operations at device 600 . Examples of such data include instructions for any application or method operating on device 600, contact data, phonebook data, messages, pictures, videos, and the like. Memory 604 may be implemented by any type of volatile or nonvolatile storage device or combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.

电源组件606为装置600的各种组件提供电源。电源组件606可以包括电源管理系统,一个或多个电源,及其他与为装置600生成、管理和分配电源相关联的组件。Power supply assembly 606 provides power to the various components of device 600 . Power components 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to device 600 .

多媒体组件608包括在所述装置600和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件608包括一个前置摄像头和/或后置摄像头。当装置600处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。Multimedia component 608 includes screens that provide an output interface between the device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, swipe, and gestures on the touch panel. The touch sensor may not only sense the boundaries of a touch or swipe action, but also detect the duration and pressure associated with the touch or swipe action. In some embodiments, the multimedia component 608 includes a front-facing camera and/or a rear-facing camera. When the apparatus 600 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each of the front and rear cameras can be a fixed optical lens system or have focal length and optical zoom capability.

音频组件610被配置为输出和/或输入音频信号。例如,音频组件610包括一个麦克风(MIC),当装置600处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器604或经由通信组件616发送。在一些实施例中,音频组件610还包括一个扬声器,用于输出音频信号。Audio component 610 is configured to output and/or input audio signals. For example, audio component 610 includes a microphone (MIC) that is configured to receive external audio signals when device 600 is in operating modes, such as call mode, recording mode, and voice recognition mode. The received audio signal may be further stored in memory 604 or transmitted via communication component 616 . In some embodiments, audio component 610 also includes a speaker for outputting audio signals.

I/O接口612为处理组件602和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 612 provides an interface between the processing component 602 and a peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to: home button, volume buttons, start button, and lock button.

传感器组件614包括一个或多个传感器,用于为装置600提供各个方面的状态评估。例如,传感器组件614可以检测到装置600的打开/关闭状态,组件的相对定位,例如所述组件为装置600的显示器和小键盘,传感器组件614还可以检测装置600或装置600一个组件的位置改变,用户与装置600接触的存在或不存在,装置600方位或加速/减速和装置600的温度变化。传感器组件614可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件614还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件614还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 614 includes one or more sensors for providing status assessment of various aspects of device 600 . For example, the sensor assembly 614 can detect the open/closed state of the device 600, the relative positioning of components, such as the display and keypad of the device 600, and the sensor assembly 614 can also detect a change in the position of the device 600 or a component of the device 600 , the presence or absence of user contact with the device 600 , the orientation or acceleration/deceleration of the device 600 and the temperature change of the device 600 . Sensor assembly 614 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

通信组件616被配置为便于装置600和其他设备之间有线或无线方式的通信。装置600可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件616经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件616还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。Communication component 616 is configured to facilitate wired or wireless communication between apparatus 600 and other devices. Device 600 may access wireless networks based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 616 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

在示例性实施例中,装置600可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述图1或图2所示实施例提供的方法。In an exemplary embodiment, apparatus 600 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), a controller, a microcontroller, a microprocessor or other electronic components are implemented to execute the method provided by the embodiment shown in FIG. 1 or FIG. 2 .

在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器604,上述指令可由装置600的处理器620执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as a memory 604 including instructions, executable by the processor 620 of the apparatus 600 to perform the method described above. For example, the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.

一种非临时性计算机可读存储介质,当所述存储介质中的指令由终端的处理器执行时,使得终端能够执行一种控制终端方法。A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by the processor of the terminal, enable the terminal to execute a method of controlling the terminal.

一种包含指令的计算机程序产品,当该计算机程序产品中的指令由终端的处理器执行时,使得终端能够执行上述图1和图2中控制终端方法。A computer program product containing instructions, when the instructions in the computer program product are executed by a processor of a terminal, enable the terminal to execute the method for controlling a terminal in the above-mentioned FIG. 1 and FIG. 2 .

图7是根据一示例性实施例示出的一种用于控制终端的装置700的框图。例如,装置700可以被提供为一服务器。参照图7,装置700包括处理器722,其进一步包括一个或多个处理器,以及由存储器732所代表的存储器资源,用于存储可由处理器722的执行的指令,例如应用程序。存储器732中存储的应用程序可以包括一个或一个以上的每一个对应于一组指令的模块。此外,处理器722被配置为执行指令,以执行上述图1和图2所示实施例提供的方法。FIG. 7 is a block diagram of an apparatus 700 for controlling a terminal according to an exemplary embodiment. For example, the apparatus 700 may be provided as a server. 7, apparatus 700 includes a processor 722, which further includes one or more processors, and a memory resource, represented by memory 732, for storing instructions executable by processor 722, such as an application program. An application program stored in memory 732 may include one or more modules, each corresponding to a set of instructions. In addition, the processor 722 is configured to execute instructions to perform the methods provided by the embodiments shown in FIG. 1 and FIG. 2 above.

装置700还可以包括一个电源组件726被配置为执行装置700的电源管理,一个有线或无线网络接口750被配置为将装置700连接到网络,和一个输入输出(I/O)接口758。装置700可以操作基于存储在存储器732的操作系统,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM或类似。Device 700 may also include a power supply assembly 726 configured to perform power management of device 700 , a wired or wireless network interface 750 configured to connect device 700 to a network, and an input output (I/O) interface 758 . Device 700 may operate based on an operating system stored in memory 732, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™ or the like.

在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器732,上述指令可由装置700的处理器722执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as a memory 732 including instructions, executable by the processor 722 of the apparatus 700 to perform the method described above. For example, the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.

一种非临时性计算机可读存储介质,当所述存储介质中的指令由服务器的处理器执行时,使得服务器能够执行一种控制终端方法。A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by the processor of the server, enable the server to execute a method of controlling a terminal.

本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本发明的其它实施方案。本申请旨在涵盖本发明的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本发明的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。Other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or conventional techniques in the art not disclosed by this disclosure .

应当理解的是,本发明并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。It should be understood that the present invention is not limited to the precise structures described above and illustrated in the accompanying drawings, and that various modifications and changes may be made without departing from its scope.

Claims (18)

1. A method for controlling a terminal, applied to a first terminal, the method comprising:
sending an association request to a cloud server, wherein the association request carries a second identifier of a second terminal, an exit password and a first identifier corresponding to the first terminal, so that the cloud server associates the first terminal with the second terminal, and the exit password is set as a password when the second terminal exits from logging in the cloud server;
sending a process information acquisition request to the cloud server, wherein the process information acquisition request carries a terminal identifier of a second terminal associated with the first terminal;
receiving process information of a current running process of the second terminal returned by the cloud server, and selecting a target process from the current running process according to the process information;
displaying a control interface corresponding to the target process, wherein the control interface comprises at least one operation button and position information of the second terminal when the target process is operated;
generating a control instruction corresponding to the selected operation button;
sending the control instruction to the cloud server so that the cloud server forwards the control instruction to the second terminal, wherein the control instruction comprises a second specified time and is used for controlling the second terminal to execute the control operation corresponding to the control instruction at the second specified time, and an application program installed on the second terminal and corresponding to the cloud server is provided with a use password.
2. The method of claim 1, wherein the generating the control instruction corresponding to the selected operation button comprises:
when the selected operation button is an exit button, generating an exit instruction for exiting the target process; or,
when the selected operation button is a forbidden button, generating a forbidden instruction for forbidding the running of the target process; or,
and when the selected operation button is an authority setting button, acquiring the use authority of the target process, wherein the use authority comprises a use time period and/or a use duration, and generating an authority setting instruction containing the use authority.
3. The method of claim 1, wherein prior to sending the process information acquisition request to the cloud server, the method further comprises:
determining whether the first terminal logs in the cloud server;
and when the first terminal logs in the cloud server, executing the step of sending a process information acquisition request to the cloud server.
4. A method for controlling a terminal, applied to a second terminal, the method comprising:
collecting process information of a current running process;
sending the process information to a cloud server, so that the cloud server forwards the process information to a first terminal when the first terminal associated with the second terminal acquires the process information; the first terminal is used for sending an association request to the cloud server, wherein the association request carries a second identifier of a second terminal, a quit password and a first identifier corresponding to the first terminal, so that the cloud server associates the first terminal with the second terminal, and the quit password is set as a password when the second terminal quits and logs in the cloud server;
receiving a control instruction, returned by the cloud server, of the first terminal to a target process in the currently running process, and executing a control operation corresponding to the control instruction at a second designated time, wherein the control instruction comprises the second designated time, and an application program, corresponding to the cloud server, installed on the second terminal is provided with a use password; the target process is selected from the current running process by the first terminal according to the process information, the control instruction is an instruction corresponding to the selected operation button generated after the control interface corresponding to the target process is displayed by the first terminal, and the control interface comprises at least one operation button and position information of the second terminal when the target process is run.
5. The method of claim 4, wherein the executing the control operation corresponding to the control instruction comprises:
when the control instruction is an exit instruction, exiting the target process; or,
when the control instruction is a disable instruction, setting the attribute of the target process to be disabled; or,
and when the control instruction is an authority setting instruction, setting the use authority of the target process as the use authority contained in the authority setting instruction, wherein the use authority comprises a use time period and/or a use duration.
6. The method of claim 5, wherein after the setting of the usage right of the target process to the usage right contained in the right setting instruction, the method further comprises:
detecting whether the current time is in the use time period or not, and exiting the target process when the current time is not in the use time period; and/or the presence of a gas in the gas,
and detecting whether the running time of the target process reaches the use time, and exiting the target process when the running time reaches the use time.
7. The method of any one of claims 4-6, wherein prior to sending the progress information to the cloud server, the method further comprises:
determining whether the second terminal logs in the cloud server;
and when the second terminal logs in the cloud server, executing the step of sending the process information of the second terminal running process to the cloud server.
8. An apparatus for controlling a terminal, applied to a first terminal, the apparatus comprising:
the association module is used for sending an association request to a cloud server, wherein the association request carries a second identifier of a second terminal, a quit password and a first identifier corresponding to the first terminal, so that the cloud server associates the first terminal with the second terminal, and the quit password is set as a password when the second terminal quits and logs in the cloud server;
a sending module, configured to send a process information acquisition request to the cloud server, where the process information acquisition request carries a terminal identifier of a second terminal associated with the first terminal;
the selection submodule is used for receiving the process information of the current running process of the second terminal returned by the cloud server and selecting a target process from the current running process according to the process information;
the display sub-module is used for displaying a control interface corresponding to the target process, wherein the control interface comprises at least one operation button and position information of the second terminal when the target process is operated;
the generation submodule is used for generating a control instruction corresponding to the selected operation button;
the control module is configured to send the control instruction to the cloud server, so that the cloud server forwards the control instruction to the second terminal, where the control instruction includes a second specified time and is used to control the second terminal to execute a control operation corresponding to the control instruction, and an application program installed on the second terminal and corresponding to the cloud server is provided with a use password.
9. The apparatus of claim 8, wherein the generating sub-module comprises:
a first generating unit, configured to generate an exit instruction for exiting the target process when the selected operation button is an exit button; or,
a second generating unit, configured to generate a disable instruction for prohibiting the target process from being executed when the selected operation button is a disable button; or,
and the third generating unit is used for acquiring the use authority of the target process when the selected operation button is an authority setting button, wherein the use authority comprises a use time period and/or a use duration, and generating an authority setting instruction containing the use authority.
10. The apparatus of claim 8, wherein the apparatus further comprises:
the determining module is used for determining whether the first terminal logs in the cloud server or not;
and the triggering module is used for triggering the sending module to send the process information obtaining request to the cloud server when the first terminal logs in the cloud server.
11. An apparatus for controlling a terminal, applied to a second terminal, the apparatus comprising:
the acquisition module is used for acquiring the process information of the current running process;
a sending module, configured to send the process information to a cloud server, so that the cloud server forwards the process information to a first terminal associated with the second terminal when the first terminal acquires the process information; the first terminal is used for sending an association request to the cloud server, wherein the association request carries a second identifier of a second terminal, a quit password and a first identifier corresponding to the first terminal, so that the cloud server associates the first terminal with the second terminal, and the quit password is set as a password when the second terminal quits and logs in the cloud server;
the execution module is used for receiving a control instruction of the first terminal to a target process in the current running process, which is returned by the cloud server, and executing a control operation corresponding to the control instruction at a second designated time, wherein the control instruction comprises the second designated time, and an application program which is installed on the second terminal and corresponds to the cloud server is provided with a use password; the target process is selected from the current running process by the first terminal according to the process information, the control instruction is an instruction corresponding to the selected operation button generated after the control interface corresponding to the target process is displayed by the first terminal, and the control interface comprises at least one operation button and position information of the second terminal when the target process is run.
12. The apparatus of claim 11, wherein the execution module comprises:
the quit submodule is used for quitting the target process when the control instruction is a quit instruction; or,
the disabling submodule is used for setting the attribute of the target process to be disabled when the control instruction is a disabling instruction; or,
and the permission setting submodule is used for setting the use permission of the target process as the use permission contained in the permission setting instruction when the control instruction is the permission setting instruction, and the use permission comprises a use time period and/or a use duration.
13. The apparatus of claim 12, wherein the apparatus further comprises:
the first detection module is used for detecting whether the current time is in the use time period or not, and quitting the target process when the current time is not in the use time period; and/or the presence of a gas in the gas,
and the second detection module is used for detecting whether the running time of the target process reaches the use time, and quitting the target process when the running time reaches the use time.
14. The apparatus of any one of claims 11-13, further comprising:
the determining module is used for determining whether the second terminal logs in the cloud server;
and the triggering module is used for triggering the sending module to send the process information of the running process of the second terminal to the cloud server when the second terminal logs in the cloud server.
15. An apparatus for controlling a terminal, the apparatus comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the steps of any of the methods of claims 1-3.
16. An apparatus for controlling a terminal, the apparatus comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the steps of any of the methods of claims 4-7.
17. A computer-readable storage medium having instructions stored thereon, wherein the instructions, when executed by a processor, implement the steps of any of the methods of claims 1-3.
18. A computer-readable storage medium having instructions stored thereon, wherein the instructions, when executed by a processor, implement the steps of any of the methods of claims 4-7.
CN201810957358.1A 2018-08-21 2018-08-21 Method, apparatus and computer-readable storage medium for controlling terminal Active CN108989459B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810957358.1A CN108989459B (en) 2018-08-21 2018-08-21 Method, apparatus and computer-readable storage medium for controlling terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810957358.1A CN108989459B (en) 2018-08-21 2018-08-21 Method, apparatus and computer-readable storage medium for controlling terminal

Publications (2)

Publication Number Publication Date
CN108989459A CN108989459A (en) 2018-12-11
CN108989459B true CN108989459B (en) 2021-11-02

Family

ID=64554132

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810957358.1A Active CN108989459B (en) 2018-08-21 2018-08-21 Method, apparatus and computer-readable storage medium for controlling terminal

Country Status (1)

Country Link
CN (1) CN108989459B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109446031B (en) * 2018-12-13 2022-04-08 创维集团智能科技有限公司 Control method of terminal equipment, terminal and readable storage medium
CN113422815B (en) * 2018-12-17 2023-03-24 北京百度网讯科技有限公司 Remote control method, device, equipment and computer readable storage medium
CN109951473B (en) * 2019-03-12 2021-06-04 北京三快在线科技有限公司 Function triggering method, system, electronic device and computer readable storage medium
CN111078434B (en) * 2019-12-17 2024-01-23 联想(北京)有限公司 Control method, device and terminal
CN112068876A (en) * 2020-08-14 2020-12-11 北京达佳互联信息技术有限公司 A process management method, device and system
CN113938510A (en) * 2021-09-29 2022-01-14 青岛海信移动通信技术股份有限公司 Terminal equipment and terminal control method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106790417A (en) * 2016-11-30 2017-05-31 宇龙计算机通信科技(深圳)有限公司 A kind of long-range control method, terminal and system
CN107197091A (en) * 2017-05-19 2017-09-22 广东小天才科技有限公司 Terminal control method, terminal control device, terminal equipment and computer readable storage medium
CN108304297A (en) * 2018-02-09 2018-07-20 北京航智信息技术有限公司 Realize the method and device of remote control student's mobile terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103188227A (en) * 2011-12-29 2013-07-03 北京网秦天下科技有限公司 Method and system for conducting parental control over mobile equipment
WO2015095597A1 (en) * 2013-12-19 2015-06-25 Websafety, Inc. Devices and methods for improving web safety and deterrence of cyberbullying
CN105245566A (en) * 2015-08-28 2016-01-13 广东小天才科技有限公司 Monitoring method, device and system of learning terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106790417A (en) * 2016-11-30 2017-05-31 宇龙计算机通信科技(深圳)有限公司 A kind of long-range control method, terminal and system
CN107197091A (en) * 2017-05-19 2017-09-22 广东小天才科技有限公司 Terminal control method, terminal control device, terminal equipment and computer readable storage medium
CN108304297A (en) * 2018-02-09 2018-07-20 北京航智信息技术有限公司 Realize the method and device of remote control student's mobile terminal

Also Published As

Publication number Publication date
CN108989459A (en) 2018-12-11

Similar Documents

Publication Publication Date Title
CN108989459B (en) Method, apparatus and computer-readable storage medium for controlling terminal
US10425403B2 (en) Method and device for accessing smart camera
US20170064182A1 (en) Method and device for acquiring image file
EP3136793A1 (en) Method and apparatus for awakening electronic device
KR20160001594A (en) Method and device for processing kid mode
CN109729414A (en) A kind of transmission, display methods, device, server and terminal for commenting on message
CN106790043B (en) Method and device for sending message in live broadcast application
US10523494B2 (en) Method and apparatus for processing network failure
US10379602B2 (en) Method and device for switching environment picture
WO2017036039A1 (en) Method for remote assistance and client
US20170034336A1 (en) Event prompting method and device
CN112019893A (en) Screen projection method and screen projection device of terminal
WO2017045302A1 (en) Information collection method and device
CN106774849B (en) Virtual reality equipment control method and device
US20180035154A1 (en) Method, Apparatus, and Storage Medium for Sharing Video
EP3203690B1 (en) Message transmission method and apparatus, and electronic device
CN107454204B (en) User information labeling method and device
CN107132769B (en) Intelligent equipment control method and device
US10111026B2 (en) Detecting method and apparatus, and storage medium
KR20170012872A (en) Method and apparatus for acquiring search results
CN107911380B (en) Identity verification method and device
CN105704174B (en) Information prompting method and device
CN105277193A (en) Prompt information output method, device and system
CN105843894A (en) Information recommending method and device
US10516849B2 (en) Video call method, apparatus and system

Legal Events

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