[go: up one dir, main page]

CN105389025B - A kind of terminal and the control method based on terminal - Google Patents

A kind of terminal and the control method based on terminal Download PDF

Info

Publication number
CN105389025B
CN105389025B CN201510649529.0A CN201510649529A CN105389025B CN 105389025 B CN105389025 B CN 105389025B CN 201510649529 A CN201510649529 A CN 201510649529A CN 105389025 B CN105389025 B CN 105389025B
Authority
CN
China
Prior art keywords
terminal
pipeline
sphere
processor
photosensitive sensor
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.)
Expired - Fee Related
Application number
CN201510649529.0A
Other languages
Chinese (zh)
Other versions
CN105389025A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510649529.0A priority Critical patent/CN105389025B/en
Publication of CN105389025A publication Critical patent/CN105389025A/en
Application granted granted Critical
Publication of CN105389025B publication Critical patent/CN105389025B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0346Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of the device orientation or free movement in a 3D space, e.g. 3D mice, 6-DOF [six degrees of freedom] pointers using gyroscopes, accelerometers or tilt-sensors
    • GPHYSICS
    • G03PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
    • G03BAPPARATUS OR ARRANGEMENTS FOR TAKING PHOTOGRAPHS OR FOR PROJECTING OR VIEWING THEM; APPARATUS OR ARRANGEMENTS EMPLOYING ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ACCESSORIES THEREFOR
    • G03B15/00Special procedures for taking photographs; Apparatus therefor
    • G03B15/02Illuminating scene
    • G03B15/03Combinations of cameras with lighting apparatus; Flash units
    • G03B15/05Combinations of cameras with electronic flash apparatus; Electronic flash units

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

本发明实施例公开了一种终端和基于终端的控制方法,所述终端包括:管路,设置在所述终端中,所述管路内置有至少一个球体,用于在所述终端的摇动过程中在管路内滚动;传感器,用于检测所述管路内的球体移动状态;处理器,用于根据所述传感器检测到的球体移动状态产生控制指令;执行模块,用于执行所述处理器产生的控制指令,该控制指令可具体用于控制终端的闪光灯。本发明实施例通过采用上述技术方案,可以解决现实生活中终端闪光灯操作过程繁琐耗时、难以单手完成操作的问题,提高用户体验。

The embodiment of the present invention discloses a terminal and a control method based on the terminal. The terminal includes: a pipeline set in the terminal, and at least one sphere is built in the pipeline for use in the shaking process of the terminal. The medium rolls in the pipeline; the sensor is used to detect the moving state of the ball in the pipeline; the processor is used to generate control instructions according to the moving state of the ball detected by the sensor; the execution module is used to execute the processing The control instruction generated by the device can be specifically used to control the flashlight of the terminal. By adopting the above technical solution, the embodiment of the present invention can solve the problems of cumbersome and time-consuming terminal flashlight operation process and difficult operation with one hand in real life, and improve user experience.

Description

一种终端和基于终端的控制方法A terminal and terminal-based control method

技术领域technical field

本发明涉及移动终端领域,尤其涉及一种终端和基于终端的控制方法。The present invention relates to the field of mobile terminals, in particular to a terminal and a control method based on the terminal.

背景技术Background technique

近年来,随着移动通信的快速发展,移动终端越来越向着个性化、便捷化的方向发展。In recent years, with the rapid development of mobile communications, mobile terminals are becoming more and more personalized and convenient.

移动终端一般都安装有闪光灯,用户在光线较暗或是突然断电的情况下通常会使用随身携带的移动终端的闪光灯进行照明。目前移动终端中打开闪光灯的模式一般是先将处于待机状态下的移动终端解锁,找到用来打开闪光灯的应用程序,然后打开闪光灯。Mobile terminals are generally equipped with a flashlight, and the user usually uses the flashlight of the portable mobile terminal for lighting when the light is dark or the power is suddenly cut off. At present, the mode of turning on the flashlight in the mobile terminal is generally to first unlock the mobile terminal in the standby state, find an application program for turning on the flashlight, and then turn on the flashlight.

现有的打开移动终端闪光灯的方法操作过程繁琐,难以单手操作,使用不便,而且在急需使用闪光灯作为应急照明的的特定情况下,这些打开闪光灯的方法需耗费较长的时间,不利于用户的使用,无法满足用户的需要。The existing methods for turning on the flashlight of a mobile terminal are cumbersome, difficult to operate with one hand, and inconvenient to use. In addition, in the specific case where the flashlight is urgently needed as emergency lighting, these methods for turning on the flashlight take a long time, which is not conducive to users. cannot meet the needs of users.

发明内容Contents of the invention

有鉴于此,本发明实施例提供一种终端和基于终端的控制方法,以解决现有技术中打开终端闪光灯的操作过程繁琐、耗费时间较长、使用不便的问题。In view of this, an embodiment of the present invention provides a terminal and a terminal-based control method to solve the problems in the prior art that the operation process of turning on the flashlight of the terminal is cumbersome, time-consuming, and inconvenient to use.

第一方面,本发明实施例提供了一种终端,包括:In a first aspect, an embodiment of the present invention provides a terminal, including:

管路,设置在所述终端中,所述管路内置有至少一个球体,用于在所述终端的摇动过程中在管路内滚动;a pipeline disposed in the terminal, and at least one ball is built in the pipeline for rolling in the pipeline when the terminal is shaken;

传感器,用于检测所述管路内的球体移动状态;A sensor is used to detect the moving state of the sphere in the pipeline;

处理器,用于根据所述传感器检测到的球体移动状态产生控制指令;a processor, configured to generate control instructions according to the movement state of the sphere detected by the sensor;

执行模块,用于执行所述处理器产生的控制指令。An execution module, configured to execute the control instructions generated by the processor.

第二方面,本发明实施例还提供了一种基于终端的控制方法,该方法采用本发明任意实施例所提供的终端来执行,该方法包括:In the second aspect, the embodiment of the present invention also provides a terminal-based control method, the method is executed by using the terminal provided in any embodiment of the present invention, and the method includes:

在用户摇动所述终端时,通过终端内配置的管路带动管路内配置的球体转动;When the user shakes the terminal, the pipeline configured in the terminal drives the sphere configured in the pipeline to rotate;

通过终端内配置的传感器检测所述管路内的球体移动状态;Detecting the moving state of the ball in the pipeline through the sensor configured in the terminal;

通过终端内配置的处理器,根据所述传感器检测到的球体移动状态产生控制指令;A processor configured in the terminal generates a control instruction according to the movement state of the sphere detected by the sensor;

通过终端内配置的执行模块,根据所述控制指令进行相应的操作。Through the execution module configured in the terminal, corresponding operations are performed according to the control instructions.

本发明实施例提供的基于终端的控制方案,通过安装管路、传感器、执行模块等装置,用户摇动终端带动终端内的球体转动,处理器通过传感器感应球体的转动来产生相应的控制指令,该控制指令可具体用于控制终端上配置的闪光灯。通过采用上述技术方案,可以解决现实生活中闪光灯操作过程繁琐、耗费时间较长、难以单手完成操作的问题,提高用户体验。In the terminal-based control solution provided by the embodiments of the present invention, by installing pipelines, sensors, execution modules and other devices, the user shakes the terminal to drive the sphere in the terminal to rotate, and the processor generates corresponding control commands through the sensor sensing the rotation of the sphere. The control instruction can be specifically used to control the flashlight configured on the terminal. By adopting the above technical solution, the problems of cumbersome operation of the flashlight in real life, long time-consuming, and difficult operation with one hand can be solved, and user experience can be improved.

附图说明Description of drawings

通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本发明的其它特征、目的和优点将会变得更明显:Other characteristics, objects and advantages of the present invention will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:

图1是本发明实施例一提供的一种终端的结构框图;FIG. 1 is a structural block diagram of a terminal provided in Embodiment 1 of the present invention;

图2是本发明实施例一提供的一种环形管路的结构示意图;Fig. 2 is a schematic structural diagram of an annular pipeline provided by Embodiment 1 of the present invention;

图3是本发明实施例二提供的一种光敏传感器的结构框图;Fig. 3 is a structural block diagram of a photosensitive sensor provided by Embodiment 2 of the present invention;

图4是本发明实施例二提供的一种终端的结构框图;FIG. 4 is a structural block diagram of a terminal provided in Embodiment 2 of the present invention;

图5A是本发明实施例二提供的第一种环形管路与光敏传感器的相对位置示意图;Fig. 5A is a schematic diagram of the relative positions of the first annular pipeline and the photosensitive sensor provided by the second embodiment of the present invention;

图5B是本发明实施例二提供的第二种环形管路与光敏传感器的相对位置示意图;Fig. 5B is a schematic diagram of the relative positions of the second annular pipeline and the photosensitive sensor provided by the second embodiment of the present invention;

图5C是本发明实施例二提供的第三种环形管路与光敏传感器的相对位置示意图;Fig. 5C is a schematic diagram of the relative positions of the third annular pipeline and the photosensitive sensor provided by the second embodiment of the present invention;

图5D是本发明实施例二提供的第四种环形管路与光敏传感器的相对位置示意图;5D is a schematic diagram of the relative positions of the fourth annular pipeline and the photosensitive sensor provided by the second embodiment of the present invention;

图6是本发明实施例二提供的一种环形管路与光敏传感器的相对位置示意图;Fig. 6 is a schematic diagram of the relative positions of an annular pipeline and a photosensitive sensor provided in Embodiment 2 of the present invention;

图7是本发明实施例三提供的一种基于终端的控制方法的流程示意图。FIG. 7 is a schematic flowchart of a terminal-based control method provided by Embodiment 3 of the present invention.

具体实施方式Detailed ways

下面结合附图和实施例对本发明作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部内容。The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, but not to limit the present invention. In addition, it should be noted that, for the convenience of description, only parts related to the present invention are shown in the drawings but not all content.

实施例一Embodiment one

图1为本发明实施例一提供的一种终端的结构框图,该终端可用于执行本发明实施例提出的基于终端的控制方法。如图1所示,该终端包括:管路110,设置在所述终端中,管路110内置有至少一个球体,用于在所述终端的摇动过程中在管路110内滚动;传感器120,用于检测所述管路110内的球体移动状态;处理器130,用于根据传感器120检测到的球体移动状态产生控制指令;执行模块140,用于执行所述处理器130产生的控制指令。FIG. 1 is a structural block diagram of a terminal provided in Embodiment 1 of the present invention, and the terminal can be used to execute the terminal-based control method proposed in the embodiment of the present invention. As shown in Figure 1, the terminal includes: a pipeline 110, which is arranged in the terminal, and at least one ball is built in the pipeline 110, which is used to roll in the pipeline 110 during the shaking process of the terminal; a sensor 120, It is used to detect the movement state of the ball in the pipeline 110; the processor 130 is used to generate control instructions according to the movement state of the ball detected by the sensor 120; the execution module 140 is used to execute the control instructions generated by the processor 130.

在设计的过程中对球体的直径和管路110的直径之间的相对大小进行合理的设计。若是球体的直径大于管路110的直径,球体就没办法放进管路110中;若是与管路110直径相比,球体的直径过小,球体可以在管路中任意晃动,会增加传感器120检测的难度。所以,在设计时,球体直径的设置应适当,既不能过大也不能过小,示例性的,球体的直径可以等于管路110的直径,使小球恰好可以进入管路110,但是又不会在管路110中任意晃动。During the design process, the relative size between the diameter of the sphere and the diameter of the pipeline 110 is reasonably designed. If the diameter of the sphere is larger than the diameter of the pipeline 110, the sphere cannot be put into the pipeline 110; if the diameter of the sphere is too small compared with the diameter of the pipeline 110, the sphere can shake freely in the pipeline, which will increase the sensor 120. Difficulty of detection. Therefore, when designing, the diameter of the sphere should be set properly, neither too large nor too small. For example, the diameter of the sphere can be equal to the diameter of the pipeline 110, so that the ball can just enter the pipeline 110, but not too large. Will shake freely in the pipeline 110.

进一步的,如图2所示,所述管路210的形状为环形。环形管路210可以使球体220在终端摇动的过程中受力较均匀,从而使球体220具有比较均匀的转动速度,确保当终端沿顺时针/逆时针方向转动时,管路210中的球体220也能够相应的沿顺时针/逆时针方向滚动。Further, as shown in FIG. 2 , the pipeline 210 is annular in shape. The annular pipeline 210 can make the ball 220 bear more uniform force during the shaking process of the terminal, so that the ball 220 has a relatively uniform rotation speed, ensuring that when the terminal rotates clockwise/counterclockwise, the ball 220 in the pipeline 210 It is also possible to scroll clockwise/counterclockwise accordingly.

初始摇动终端时,管路210随终端一起摇动,此时由于球体220存在惯性,球体220相对于管路210来说会向与摇动方向相反的方向移动,但是球体220向相反的方向移动的过程中,管壁会不断的给球体220施加与终端摇动方向相同的力,使球体具有与终端摇动方向相同的加速度,若球体220与管路210之间的摩擦力较小,管壁给球体220施加的力远远大于球体220所受到的摩擦力,那么,通过相关物理知识可知,最终达到平衡状态时,以地面作为参照物,球体220的转动速度会大于终端的摇动速度,球体220相对于管路210的移动方向与终端相对于地面的移动方向相同。所以,为了保证当摇动终端时,球体220相对于管路210的转动方向与终端相对于地面的摇动方向相同,在设计时应尽量减小球体220与管路210之间的摩擦力。When the terminal is initially shaken, the pipeline 210 shakes together with the terminal. At this time, due to the inertia of the ball 220, the ball 220 will move in the opposite direction to the shaking direction relative to the pipeline 210, but the process of moving the ball 220 in the opposite direction In this process, the pipe wall will continuously exert the same force on the ball 220 as the terminal shaking direction, so that the ball has the same acceleration as the terminal shaking direction. If the friction force between the ball 220 and the pipeline 210 is small, the pipe wall will give the ball 220 The applied force is far greater than the frictional force received by the ball 220. Then, according to the relevant physical knowledge, when the equilibrium state is finally reached, with the ground as a reference, the rotation speed of the ball 220 will be greater than the shaking speed of the terminal, and the ball 220 will be relative to the The moving direction of the pipeline 210 is the same as the moving direction of the terminal relative to the ground. Therefore, in order to ensure that when the terminal is shaken, the rotation direction of the ball 220 relative to the pipeline 210 is the same as that of the terminal relative to the ground, the friction between the ball 220 and the pipeline 210 should be minimized during design.

示例性的,当顺时针摇动终端时,管路210随着终端一起沿顺时针方向移动,此时由于球体220存在惯性,球体220相对于管路210来说会沿逆时针方向移动。以管路210作为参照物,移动过程中,球体220不断受到管壁沿顺时针方向的作用力,使得球体220具有顺时针方向的加速度,在此过程中,球体220逆时针方向的速度会不断减小,直至变为零,但是由于球体220此时仍存在加速度,所以球体220会获得沿顺时针方向的速度,其速度值不断增大。由物理力学的相关知识可知,当球体220相对于管路210具有顺时针方向的速度时,球体220会受到管路210逆时针方向的摩擦力和管壁对球体逆时针方向的阻力,随着球体220速度的增大,该阻力值也会不断增大,直至最终达到平衡状态。由以上分析可知,当沿顺时针方向摇动终端时,球体220相对于终端来说在管路210内沿顺时针方向转动。同理,逆时针摇动终端时,球体220相对于终端来说在管路210内沿逆时针方向转动。Exemplarily, when the terminal is shaken clockwise, the pipeline 210 moves clockwise along with the terminal. At this time, due to the inertia of the ball 220 , the ball 220 will move counterclockwise relative to the pipeline 210 . Taking the pipeline 210 as a reference object, during the moving process, the ball 220 is continuously subjected to the clockwise force of the pipe wall, so that the ball 220 has a clockwise acceleration. During this process, the speed of the ball 220 in the counterclockwise direction will continue. Decrease until it becomes zero, but since the sphere 220 still has acceleration at this time, the sphere 220 will obtain a clockwise velocity, and its velocity value will continue to increase. It can be seen from the relevant knowledge of physical mechanics that when the ball 220 has a clockwise velocity relative to the pipeline 210, the ball 220 will be subjected to the counterclockwise friction of the pipeline 210 and the counterclockwise resistance of the pipe wall to the sphere. As the speed of the sphere 220 increases, the resistance value will also continue to increase until finally reaching an equilibrium state. It can be seen from the above analysis that when the terminal is shaken clockwise, the ball 220 rotates clockwise in the pipeline 210 relative to the terminal. Similarly, when the terminal is shaken counterclockwise, the ball 220 rotates counterclockwise in the pipeline 210 relative to the terminal.

进一步的,所述执行模块还用于在所述控制指令执行完成后将相应的信息上报到处理器。该相应的信息包括:闪光灯已打开或闪光灯已关闭等信息。Further, the execution module is further configured to report corresponding information to the processor after the execution of the control instruction is completed. The corresponding information includes information such as: the flash is turned on or the flash is turned off.

进一步的,所述控制指令为闪光灯开关指令;所述执行模块为闪光灯。Further, the control instruction is a flashlight switching instruction; the execution module is a flashlight.

示例性的,当控制指令为闪光灯开关指令时,本实施例所提供的终端的工作过程如下:摇动终端,终端内的管路110随终端一起摇动,从而使球体在管路110内滚动;当球体在管路110内滚动时,设置于管路110一侧的传感器120会检测到球体的移动状态并将检测到的状态发送到处理器130;处理器130根据球体的移动状态产生相应的打开/关闭闪光灯指令;执行模块140根据指令进行相应的操作,完成操作后返回相应的信息到处理器130;处理器130将收到的信息通过终端屏幕显示,告知用户闪光灯已打开/关闭。Exemplarily, when the control command is a flash switch command, the working process of the terminal provided by this embodiment is as follows: shake the terminal, and the pipeline 110 in the terminal shakes together with the terminal, so that the ball rolls in the pipeline 110; When the ball rolls in the pipeline 110, the sensor 120 arranged on one side of the pipeline 110 will detect the moving state of the ball and send the detected state to the processor 130; the processor 130 generates a corresponding opening according to the moving state of the ball /turn off the flash light instruction; the execution module 140 performs corresponding operations according to the instruction, and returns corresponding information to the processor 130 after completing the operation; the processor 130 displays the received information on the terminal screen to inform the user that the flash light has been turned on/off.

本发明实施例提供一种终端,摇动手机时,通过管路给球体施加作用力,使管路中的球体在管路中滚动;通过传感器检测管路内球体的移动状态并将该移动状态传送到处理器;通过处理器根据球体移动状态产生控制指令;通过执行模块根据控制指令进行相应的操作。本发明实施例通过采用上述技术方案,通过终端实现对待控制器件的控制,控制过程方便简洁,可以达到增强终端的功能、提高用户体验的目的,当待控制器件为终端闪光灯时,可以解决现实生活中终端闪光灯操作过程繁琐耗时、难以单手完成操作的问题,提高用户体验。The embodiment of the present invention provides a terminal. When the mobile phone is shaken, a force is applied to the sphere through the pipeline, so that the sphere in the pipeline rolls in the pipeline; the moving state of the sphere in the pipeline is detected by a sensor and the moving state is transmitted to the processor; through the processor to generate control instructions according to the movement state of the sphere; through the execution module to perform corresponding operations according to the control instructions. In the embodiment of the present invention, by adopting the above-mentioned technical solution, the terminal realizes the control of the device to be controlled. The control process is convenient and concise, which can achieve the purpose of enhancing the function of the terminal and improving the user experience. When the device to be controlled is a terminal flashlight, it can solve real-life The operation process of the mid-terminal flash light is cumbersome and time-consuming, and it is difficult to complete the operation with one hand, so as to improve the user experience.

实施例二Embodiment two

本发明实施例二提供一种终端,本实施例以上述实施例为基础,对上述实施例进行优化,进一步的,所述传感器为光敏传感器,用于在所述球体通过所述光敏传感器的检测光路时进行计数。Embodiment 2 of the present invention provides a terminal. This embodiment is based on the above embodiment and optimizes the above embodiment. Further, the sensor is a photosensitive sensor, which is used to detect when the sphere passes through the photosensitive sensor. Counting is performed during the light path.

传感器是一种检测装置,能够根据设定检测被检测信息的变化并将检测到的信息按一定规律转换成电信号或其他所需形式的信息输出,以满足信息的传输、处理、存储、显示、记录和控制等要求。传感器一般由敏感元件、转换元件、变换电路和电源四部分组成,其中,敏感元件用于检测被测量量的变化并输出与被测量量有确定关系的物理信号,转换元件用于将敏感元件输出的物理信号转换成电信号或一些其他信号,变换电路用于将转换元件输出的信号放大,辅助电源用于给转换元件和变换电路供电。常见的传感器有光敏传感器、声敏传感器、压敏传感器、温敏传感器等。光敏传感器通常用来检测外界光强的变化,声敏传感器通常用来检测外界声音的变化,压敏传感器通常用来检测外界压力的变化,温敏传感器通常用来检测外界温度的变化。A sensor is a detection device that can detect changes in the detected information according to the settings and convert the detected information into electrical signals or other required forms of information output according to certain rules, so as to meet the requirements of information transmission, processing, storage, and display. , recording and control requirements. The sensor is generally composed of four parts: sensitive element, conversion element, conversion circuit and power supply. Among them, the sensitive element is used to detect the change of the measured quantity and output a physical signal that has a certain relationship with the measured quantity, and the conversion element is used to output the sensitive element. The physical signal is converted into an electrical signal or some other signal, the conversion circuit is used to amplify the signal output by the conversion element, and the auxiliary power supply is used to supply power to the conversion element and the conversion circuit. Common sensors include photosensitive sensors, sound sensitive sensors, pressure sensitive sensors, temperature sensitive sensors, etc. A photosensitive sensor is usually used to detect changes in external light intensity, an acoustic sensor is usually used to detect changes in external sound, a pressure sensitive sensor is usually used to detect changes in external pressure, and a temperature sensitive sensor is usually used to detect changes in external temperature.

因为终端通常是不透明的,能够阻挡外界光线进入终端内部,外界光线不容易对终端内的传感器造成干扰,而外界声音、温度等因素的变化对传感器的干扰是比较不容易排除的,所以,为了提高传感器检测到的球体移动状态的准确性,本实施例优选采用光敏传感器来检测球体的移动状态。Because the terminal is usually opaque, it can block the external light from entering the terminal, and the external light is not easy to interfere with the sensor in the terminal, and the interference of external sound, temperature and other factors to the sensor is not easy to rule out. Therefore, in order To improve the accuracy of the moving state of the ball detected by the sensor, in this embodiment, a photosensitive sensor is preferably used to detect the moving state of the ball.

示例性的,如图3所示,光敏传感器由光源310、光敏元件320、光电器件330、光电通路340和辅助电源350五部分组成。其中,光源310用于给光敏元件320提供检测所需的光线;光敏元件320用于检测光线的变化并将光线的变化以物理信号的形式输出,光敏元件320有很多不同的分类,例如光敏电阻、光敏二极管、光敏三极管等;光电器件330用于将光敏元件320输出的物理信号转换成电信号;光电通路340用于将光电器件330转换的电信号进行放大;辅助电源350用于给光电器件330和光电通路340供电,在本实施例中,传感器的辅助电源350可以省去,由终端的电源来完成为光电器件330和光电通路340供电的操作。Exemplarily, as shown in FIG. 3 , the photosensitive sensor is composed of five parts: a light source 310 , a photosensitive element 320 , a photoelectric device 330 , a photoelectric channel 340 and an auxiliary power supply 350 . Among them, the light source 310 is used to provide the photosensitive element 320 with the light required for detection; the photosensitive element 320 is used to detect the change of light and output the change of light in the form of a physical signal. There are many different classifications of the photosensitive element 320, such as photoresistor , photodiode, phototransistor, etc.; the photoelectric device 330 is used to convert the physical signal output by the photosensitive element 320 into an electrical signal; the photoelectric path 340 is used to amplify the electrical signal converted by the photoelectric device 330; 330 and the photoelectric path 340 provide power. In this embodiment, the auxiliary power supply 350 of the sensor can be omitted, and the operation of powering the photoelectric device 330 and the photoelectric path 340 is completed by the power supply of the terminal.

进一步的,所述光敏传感器的数量为至少两个,所述处理器具体用于获取各光敏传感器所记录的球体通过时间和次数,作为所述球体移动状态。Further, the number of the photosensitive sensors is at least two, and the processor is specifically configured to acquire the passing time and times of the sphere recorded by each photosensitive sensor as the moving state of the sphere.

示例性的,如图4所示,可以在处理器440和传感器420之间添加微处理器430,微处理器与传感器420和处理器440相连接,由微处理器430来记录球体通过传感器420的时间和次数并将记录到的时间和次数上报到处理器440。Exemplarily, as shown in Figure 4, a microprocessor 430 can be added between the processor 440 and the sensor 420, the microprocessor is connected with the sensor 420 and the processor 440, and the microprocessor 430 records that the ball passes the sensor 420 and report the recorded time and times to the processor 440.

示例性的,光敏传感器的数量可以设置为两个,如图5A、图5B、图5C或图5D所示,球体520的移动状态包括球体520通过光敏传感器530的光路和光敏传感器540的光路的时间,还包括球体520通过光敏传感器530的光路和光敏传感器540的光路的次数。处理器通过记录球体520经过光敏传感器530和光敏传感器540光路的时间来判断球体520是顺时针转动还是逆时针转动从而判断用户想要进行的操作,若球体520通过传感器530光路的时间早于球体520通过传感器540光路的时间,即球体520先通过传感器530的光路再通过传感器540的光路,则处理器判断球体520在沿逆时针方向转动;反之,则处理器判断球体520在沿顺时针方向转动。处理器通过判断球体520通过光敏传感器530和光敏传感器540的光路的次数是否符合预设次数来确定是否对终端上配置的闪光灯进行相应的操作,预设次数可以由用户自行设定,为了减小误触发的可能性,优选的,可以将预设次数设定为大于或等于三次。Exemplarily, the number of photosensitive sensors can be set to two, as shown in FIG. 5A , FIG. 5B , FIG. 5C or FIG. 5D , the moving state of the sphere 520 includes that the sphere 520 passes through the optical path of the photosensitive sensor 530 and the optical path of the photosensitive sensor 540 The time also includes the number of times that the sphere 520 passes through the optical path of the photosensitive sensor 530 and the optical path of the photosensitive sensor 540. The processor judges whether the sphere 520 rotates clockwise or counterclockwise by recording the time when the sphere 520 passes through the optical path of the photosensitive sensor 530 and the photosensitive sensor 540 to determine the operation that the user wants to perform. If the time when the sphere 520 passes through the optical path of the sensor 530 is earlier than 520 passes through the optical path of the sensor 540, that is, the sphere 520 first passes through the optical path of the sensor 530 and then passes through the optical path of the sensor 540, then the processor judges that the sphere 520 is rotating in the counterclockwise direction; otherwise, the processor judges that the sphere 520 is rotating in the clockwise direction turn. The processor determines whether to perform corresponding operations on the flashlight configured on the terminal by judging whether the number of times the sphere 520 passes through the optical path of the photosensitive sensor 530 and the photosensitive sensor 540 meets the preset number of times. The preset number of times can be set by the user. For the possibility of false triggering, preferably, the preset number of times can be set to be greater than or equal to three times.

本实施例中,两光敏传感器位置的设置是很灵活的:将光敏传感器530和光敏传感器540作为一个整体分析,光敏传感器设置于环形管路的一侧,这里所说的一侧可以是但不限于环形管路的上侧、下侧、左侧、右侧的任意位置;将光敏传感器530和光敏传感器540作为单独的个体分析,两光敏传感器530和540之间的相对位置以及两者与环形管路之间的相对位置的设置也是十分灵活的,当光敏传感器530设置于环形管路510的外侧时,光敏传感器540可以设置于环形管路510的外侧(如图5A所示),也可以设置于环形管路510的内侧(如图5B所示);当光敏传感器530设置于环形管路510的内侧时,光敏传感器540可以设置于环形管路510的外侧(如图5C所示),也可以设置于环形管路510的内侧(如图5D所示)。In this embodiment, the setting of the positions of the two photosensitive sensors is very flexible: the photosensitive sensor 530 and the photosensitive sensor 540 are analyzed as a whole, and the photosensitive sensor is arranged on one side of the annular pipeline. It is limited to any position on the upper side, lower side, left side, and right side of the annular pipeline; the photosensitive sensor 530 and the photosensitive sensor 540 are analyzed as a separate individual, the relative position between the two photosensitive sensors 530 and 540 and the relationship between the two photosensitive sensors 530 and 540 The setting of the relative position between the pipelines is also very flexible. When the photosensitive sensor 530 is arranged on the outside of the annular pipeline 510, the photosensitive sensor 540 can be arranged on the outside of the annular pipeline 510 (as shown in FIG. 5A ), or Arranged on the inner side of the annular pipeline 510 (as shown in Figure 5B); when the photosensitive sensor 530 is arranged on the inner side of the annular pipeline 510, the photosensitive sensor 540 can be arranged on the outer side of the annular pipeline 510 (as shown in Figure 5C), It can also be arranged inside the annular pipeline 510 (as shown in FIG. 5D ).

需要注意的是,本实施例中,两光敏传感器之间的距离不是任意的。如图6所示,圆弧630和圆弧640为一圆环被光敏传感器650照射到管路610内的光线670和光敏传感器660照射到管路610内的光线680所截的两部分,该圆环以管路610的圆心为圆心且经过球体620的中心,圆弧630和圆弧640可以组成一个整圆。若圆弧630和圆弧640中较短的圆弧(本图中为圆弧640)大于球体620的直径,则因球体620起始位置的不同而有可能导致处理器出现错误的判断。例如,球体620同样是在沿顺时针方向转动,若球体620转动的起始位置位于圆弧630部分,那么处理器会记录球体620先经过传感器660,再经过传感器650,从而判断球体620在沿顺时针方向转动;若球体620转动的起始位置位于圆弧640部分,那么处理器会记录球体620先经过传感器650,再经过传感器660,这样处理器就会判断球体620在沿逆时针方向转动,这种情况下,处理器就会产生错误的判断进而产生错误的指令。由以上分析可知,为了保证检测的准确性,应尽量缩小传感器650的照射光线670与传感器660的照射光线680沿环形管路610的距离,使二者所截的两段圆弧中有一段具有较短的长度。It should be noted that, in this embodiment, the distance between the two photosensitive sensors is not arbitrary. As shown in FIG. 6 , the arc 630 and the arc 640 are two parts of a circle cut by the light 670 irradiated into the pipeline 610 by the photosensitive sensor 650 and the light 680 irradiated into the pipeline 610 by the photosensitive sensor 660 . The circle takes the center of the pipeline 610 as the center and passes through the center of the sphere 620 , and the arc 630 and the arc 640 can form a complete circle. If the shorter arc (the arc 640 in this figure) of the arc 630 and the arc 640 is larger than the diameter of the sphere 620 , the processor may make a wrong judgment due to the difference in the initial position of the sphere 620 . For example, the ball 620 is also rotating in the clockwise direction. If the starting position of the ball 620 is located at the part of the arc 630, the processor will record that the ball 620 passes the sensor 660 first, and then passes the sensor 650, thereby judging that the ball 620 is moving along the arc 630. Rotate clockwise; if the starting position of the ball 620 is located in the arc 640, the processor will record that the ball 620 passes the sensor 650 first, and then passes the sensor 660, so the processor will judge that the ball 620 is rotating in the counterclockwise direction , In this case, the processor will generate wrong judgments and then generate wrong instructions. It can be seen from the above analysis that in order to ensure the accuracy of detection, the distance between the irradiating light 670 of the sensor 650 and the irradiating light 680 of the sensor 660 along the annular pipeline 610 should be reduced as much as possible, so that one of the two arcs cut by the two has a shorter length.

本实施例在上述实施例的基础上,将传感器具体化为光敏传感器,将传感器的数量具体化为至少为两个,通过判断球体顺时针转动或是逆时针转动确定相应的控制指令,通过判断球体经过传感器光路的次数是否达到预设次数来决定是否触发指令。通过采用本实施例所提供的技术方案,可以解决现实生活中终端闪光灯操作工程繁琐耗时、难以单手完成操作的为题,提高用户体验。In this embodiment, on the basis of the above-mentioned embodiments, the sensor is embodied as a photosensitive sensor, and the number of sensors is embodied as at least two, and the corresponding control command is determined by judging whether the sphere rotates clockwise or counterclockwise, and by judging Whether the number of times the sphere passes through the optical path of the sensor reaches the preset number of times determines whether to trigger the instruction. By adopting the technical solution provided by this embodiment, the problem of tedious and time-consuming operation of the terminal flashlight in real life and difficult to complete the operation with one hand can be solved, and the user experience can be improved.

实施例三Embodiment Three

本发明实施例三提供一种基于终端的控制方法,该方法可由本发明任意实施例提供的终端来执行。图7为本发明实施例提供的一种基于终端的控制方法的流程示意图,如图7所示,本发明实施例提供的基于终端的控制方法包括如下步骤:Embodiment 3 of the present invention provides a terminal-based control method, which can be executed by the terminal provided in any embodiment of the present invention. FIG. 7 is a schematic flowchart of a terminal-based control method provided by an embodiment of the present invention. As shown in FIG. 7 , the terminal-based control method provided by an embodiment of the present invention includes the following steps:

S710、在用户摇动所述终端时,通过终端内配置的管路带动管路内配置的球体转动。S710. When the user shakes the terminal, the pipeline configured in the terminal drives the sphere configured in the pipeline to rotate.

S720、通过终端内配置的传感器检测所述管路内的球体移动状态。S720. Detect the moving state of the ball in the pipeline through the sensor configured in the terminal.

S730、通过终端内配置的处理器,根据所述传感器检测到的球体移动状态产生控制指令。S730. Using the processor configured in the terminal, generate a control instruction according to the movement state of the ball detected by the sensor.

S740、通过终端内配置的执行模块,根据所述控制指令进行相应的操作。S740. Perform corresponding operations according to the control instruction through the execution module configured in the terminal.

进一步的,所述控制指令为闪光灯开关指令。Further, the control instruction is a flash switch instruction.

进一步的,在通过终端内配置的执行模块,根据所述控制指令进行相应的操作之后,还包括:通过终端内配置的执行模块,将所述控制指令执行的相应信息上报到处理器;通过终端内配置的处理器,将所述相应信息通过所述终端的屏幕告知用户。Further, after performing corresponding operations according to the control instruction through the execution module configured in the terminal, it also includes: reporting the corresponding information about the execution of the control instruction to the processor through the execution module configured in the terminal; The processor configured in the terminal notifies the user of the corresponding information through the screen of the terminal.

该相应的信息包括:闪光灯已打开或闪光灯已关闭等信息。The corresponding information includes information such as: the flash is turned on or the flash is turned off.

进一步的,所述方法还包括:接收用户的输入,以更新所述球体移动状态与控制指令之间的对应关系。Further, the method further includes: receiving user input to update the correspondence between the moving state of the sphere and the control instruction.

该步骤的执行顺序是十分灵活的,可以在本发明实施例提供的基于终端的控制方法的任一步骤之前或是之后执行。The execution sequence of this step is very flexible, and may be executed before or after any step of the terminal-based control method provided by the embodiment of the present invention.

球体移动状态与控制指令之间的对应关系包括球体的转动方向与控制指令之间的对应关系和球体的转动次数与控制指令之间的对应关系。球体的转动方向与球体之间的对应关系包括:球体顺时针转动产生打开闪光灯指令,球体逆时针转动产生关闭闪光灯指令;或是,球体逆时针转动产生打开闪光灯指令,球体顺时针转动产生关闭闪光灯指令。球体转动次数与控制指令之间的关系可以是球体转动圈数大于或等于N圈执行相应指令,其中,N为正整数,考虑到操作的便捷性以及为了减少闪光灯误触发情况的发生,优选的,N可以设置为3或4。The correspondence between the movement state of the ball and the control command includes the correspondence between the rotation direction of the ball and the control command, and the correspondence between the number of rotations of the ball and the control command. The corresponding relationship between the rotation direction of the sphere and the sphere includes: the sphere rotates clockwise to generate an instruction to turn on the flash, and the sphere to rotate counterclockwise generates an instruction to turn off the flash; instruction. The relationship between the number of rotations of the sphere and the control instruction can be that the number of rotations of the sphere is greater than or equal to N to execute the corresponding instruction, wherein N is a positive integer. Considering the convenience of operation and in order to reduce the occurrence of false triggering of the flashlight, it is preferable , N can be set to 3 or 4.

示例性的,当N设置为3,球体顺时针转动产生打开闪光灯指令,球体逆时针转动产生关闭闪光灯指令时,顺时针摇动终端三圈以上,就可以打开终端的闪光灯;逆时针摇动终端三圈以上,就可以将终端的闪光灯重新关闭。Exemplarily, when N is set to 3, the sphere rotates clockwise to generate an instruction to turn on the flash, and the sphere rotates counterclockwise to generate an instruction to turn off the flash, and the terminal's flash can be turned on by shaking the terminal clockwise for more than three times; shaking the terminal counterclockwise three times Above, you can turn off the flash light of the terminal again.

本实施例提出的基于终端的控制方法可由上述任意实施例所提出的终端来执行,具备与本发明实施例提出的终端相对应的有益效果。The terminal-based control method proposed in this embodiment can be executed by the terminal proposed in any of the foregoing embodiments, and has beneficial effects corresponding to those of the terminal proposed in the embodiment of the present invention.

注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present invention and applied technical principles. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention, and the present invention The scope is determined by the scope of the appended claims.

Claims (7)

1. a kind of terminal, which is characterized in that including:
Pipeline is arranged in the terminal, and the pipeline is built-in at least one sphere, in the shake process of the terminal In rolled in pipeline;
Photosensitive sensor, for being counted in light path of the sphere by the photosensitive sensor, to detect State the sphere mobile status in pipeline;
Processor, the sphere mobile status for being detected according to the photosensitive sensor generate control instruction;
Execution module, for performing the control instruction that the processor generates, wherein, the control instruction refers to for flash of light lamp switch It enables;The execution module is flash lamp.
2. terminal according to claim 1, it is characterised in that:The shape of the pipeline is annular.
3. terminal according to claim 1, it is characterised in that:The quantity of the photosensitive sensor is at least two, described Processor, by time and number, shape is moved as the sphere specifically for the sphere that each photosensitive sensor of acquisition is recorded State.
4. terminal according to claim 1, which is characterized in that the execution module is additionally operable to perform in the control instruction After the completion by corresponding information reporting to processor.
5. a kind of control method based on terminal, which is characterized in that it is performed using any terminals of claim 1-4, The method includes:
When user shakes the terminal, the sphere being configured in pipeline is driven to rotate by the pipeline being configured in terminal;
It is counted by the photosensitive sensor being configured in terminal in light path of the sphere by the photosensitive sensor Number, to detect the sphere mobile status in the pipeline;
By the processor being configured in terminal, the sphere mobile status detected according to the photosensitive sensor generates control and refers to It enables;
By the execution module being configured in terminal, operated accordingly according to the control instruction, wherein, the control instruction For flash lamp switch order.
6. according to the method described in claim 5, it is characterized in that, the execution module being configured in by terminal, according to described Control instruction is carried out after operating accordingly, is further included:
By the execution module being configured in terminal, the corresponding information that the control instruction performs is reported into processor;
By the processor being configured in terminal, the corresponding information is informed into user by the screen of the terminal.
7. it according to the method described in claim 5, it is characterized in that, further includes:
The input of user is received, to update the correspondence between the sphere mobile status and control instruction.
CN201510649529.0A 2015-10-09 2015-10-09 A kind of terminal and the control method based on terminal Expired - Fee Related CN105389025B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510649529.0A CN105389025B (en) 2015-10-09 2015-10-09 A kind of terminal and the control method based on terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510649529.0A CN105389025B (en) 2015-10-09 2015-10-09 A kind of terminal and the control method based on terminal

Publications (2)

Publication Number Publication Date
CN105389025A CN105389025A (en) 2016-03-09
CN105389025B true CN105389025B (en) 2018-06-29

Family

ID=55421373

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510649529.0A Expired - Fee Related CN105389025B (en) 2015-10-09 2015-10-09 A kind of terminal and the control method based on terminal

Country Status (1)

Country Link
CN (1) CN105389025B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1249833A (en) * 1997-01-10 2000-04-05 艾利森电话股份有限公司 Data input device
CN2615984Y (en) * 2003-05-29 2004-05-12 上海迪比特实业有限公司 Mobile telephone
CN1548921A (en) * 2003-05-15 2004-11-24 邰志强 Gravity induction dip angle sensor
CN1653408A (en) * 2002-03-08 2005-08-10 设计展示公司 Electrical device control equipment
CN101124621A (en) * 2003-11-13 2008-02-13 美蓓亚株式会社 Mechanical motion sensor and low-power trigger circuit
CN201716031U (en) * 2009-12-11 2011-01-19 Tcl集团股份有限公司 Mechanical type direction sensing device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1249833A (en) * 1997-01-10 2000-04-05 艾利森电话股份有限公司 Data input device
CN1653408A (en) * 2002-03-08 2005-08-10 设计展示公司 Electrical device control equipment
CN1548921A (en) * 2003-05-15 2004-11-24 邰志强 Gravity induction dip angle sensor
CN2615984Y (en) * 2003-05-29 2004-05-12 上海迪比特实业有限公司 Mobile telephone
CN101124621A (en) * 2003-11-13 2008-02-13 美蓓亚株式会社 Mechanical motion sensor and low-power trigger circuit
CN201716031U (en) * 2009-12-11 2011-01-19 Tcl集团股份有限公司 Mechanical type direction sensing device

Also Published As

Publication number Publication date
CN105389025A (en) 2016-03-09

Similar Documents

Publication Publication Date Title
US8810514B2 (en) Sensor-based pointing device for natural input and interaction
RU2546063C2 (en) Electronic device with sensing assembly and method of interpreting offset gestures
US20130088434A1 (en) Accessory to improve user experience with an electronic display
US20100207872A1 (en) Optical displacement detecting device and operating method thereof
WO2018214696A1 (en) Fingerprint acquisition method and related product
CN102099922A (en) Method and system for processing signals for microelectromechanical system detectors capable of utilizing human breath to control devices
US20160021291A1 (en) Launching a camera of a wireless device from a wearable device
US9524699B2 (en) Wearable electronic device and peripheral device control method for using the same
US12248632B2 (en) Vibrational input elements
WO2017107813A1 (en) Control apparatus of smart device, smart device, and method and apparatus for operation control
JP6470416B2 (en) Touch operation method, touch operation component, and electronic device
TW201229814A (en) Mobile communication device with three-dimensional sensing and a method therefore
CN108509127B (en) Method and device for starting screen recording task and computer equipment
CN101853091A (en) Optical displacement detection device and its operation method
CN105389025B (en) A kind of terminal and the control method based on terminal
EP3701709B1 (en) Electronic apparatus and control method thereof
CN103399641A (en) Terminal control method, sensing module and terminal
CN110955378A (en) Control method and electronic equipment
CN101854415A (en) Four-dimensional operating mobile phone and information sensing method thereof
WO2018092660A1 (en) Electronic apparatus, program, and control method
CN105303658B (en) A kind of terminal and the control method based on terminal
CN210573484U (en) Display device and wearable equipment
KR101196760B1 (en) Method for controlling terminal using gesture recognition and terminal using the same
TWI676915B (en) Method of generating control commands for an electronic device based on signal accumulation amount of sensors
CN105320255B (en) Data load method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CP01 Change in the name or title of a patent holder
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180629

CF01 Termination of patent right due to non-payment of annual fee