CN110490006B - Slider control method and device in terminal, electronic device, storage medium - Google Patents
Slider control method and device in terminal, electronic device, storage medium Download PDFInfo
- Publication number
- CN110490006B CN110490006B CN201910678869.4A CN201910678869A CN110490006B CN 110490006 B CN110490006 B CN 110490006B CN 201910678869 A CN201910678869 A CN 201910678869A CN 110490006 B CN110490006 B CN 110490006B
- Authority
- CN
- China
- Prior art keywords
- terminal
- slider
- detection sensor
- module
- abnormality detection
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 40
- 238000001514 detection method Methods 0.000 claims abstract description 69
- 230000005856 abnormality Effects 0.000 claims abstract description 51
- 230000006870 function Effects 0.000 claims description 12
- 230000002159 abnormal effect Effects 0.000 claims description 6
- 230000009471 action Effects 0.000 claims description 6
- 238000004590 computer program Methods 0.000 claims description 4
- 238000005516 engineering process Methods 0.000 abstract description 7
- 239000007788 liquid Substances 0.000 description 34
- 238000012545 processing Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 230000008569 process Effects 0.000 description 6
- 230000007797 corrosion Effects 0.000 description 4
- 238000005260 corrosion Methods 0.000 description 4
- 230000001960 triggered effect Effects 0.000 description 4
- 230000001133 acceleration Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000006978 adaptation Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000002378 acidificating effect Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 239000004020 conductor Substances 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000002708 enhancing effect Effects 0.000 description 1
- 238000007654 immersion Methods 0.000 description 1
- 230000003116 impacting effect Effects 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 230000000644 propagated effect Effects 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R19/00—Arrangements for measuring currents or voltages or for indicating presence or sign thereof
- G01R19/165—Indicating that current or voltage is either above or below a predetermined value or within or outside a predetermined range of values
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/70—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
Landscapes
- Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Telephone Function (AREA)
Abstract
本公开是关于一种终端中的滑块控制方法及装置、电子设备、存储介质,涉及电子技术领域,该方法包括:通过终端中的异常检测传感器获取所述终端的电学参数;若根据所述电学参数确定所述终端处于所述目标环境,则触发对所述终端中用于控制图像传感器的滑块模块进行收回操作。本公开能够在终端处于目标环境时,及时触发对滑块模块的收回操作,避免了对终端的损害,提高了可靠性和安全性。
The present disclosure relates to a slider control method and device in a terminal, electronic equipment, and a storage medium, and relates to the field of electronic technology. The method includes: acquiring electrical parameters of the terminal through an abnormality detection sensor in the terminal; if according to the The electrical parameter determines that the terminal is in the target environment, and triggers a retraction operation on the slider module used to control the image sensor in the terminal. The present disclosure can trigger the retraction operation of the slider module in time when the terminal is in the target environment, thereby avoiding damage to the terminal and improving reliability and safety.
Description
技术领域technical field
本公开涉及电子技术领域,具体而言,涉及一种终端中的滑块控制方法、终端中的滑块控制装置、电子设备以及计算机可读存储介质。The present disclosure relates to the field of electronic technologies, and in particular, to a method for controlling a slider in a terminal, a device for controlling a slider in a terminal, electronic equipment, and a computer-readable storage medium.
背景技术Background technique
随着终端的发展,可将屏幕上的一些传感器放置在终端机身内的一个滑块模块内,因此对滑块模块进行有效保护是急需解决的问题。With the development of the terminal, some sensors on the screen can be placed in a slider module in the terminal body, so effective protection of the slider module is an urgent problem to be solved.
相关技术中,利用加速度传感器检测当前的终端是否处于跌落状态以及液体中,从而收回滑块模块。或者是利用触摸屏来检测是否处于液体中,从而起到保护滑块模块的作用。In related technologies, an acceleration sensor is used to detect whether the current terminal is in a dropped state or in liquid, so as to retrieve the slider module. Or use the touch screen to detect whether it is in the liquid, so as to protect the slider module.
上述方式中,加速度传感器要判断是否处于跌落状态,必须满足较大的数据变化,因此可能导致漏识别,判断的结果不准确且具有局限性。通过触摸屏来检测是否处于液体中并收回滑块,效率较低,可能导致终端的损坏几率较大,可靠性较低。In the above method, to determine whether the acceleration sensor is in a falling state, it must satisfy a relatively large data change, which may lead to missed recognition, and the result of the judgment is inaccurate and has limitations. Using the touch screen to detect whether it is in the liquid and retract the slider is inefficient, which may lead to a higher probability of damage to the terminal and lower reliability.
需要说明的是,在上述背景技术部分公开的信息仅用于加强对本公开的背景的理解,因此可以包括不构成对本领域普通技术人员已知的现有技术的信息。It should be noted that the information disclosed in the above background section is only for enhancing the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to those of ordinary skill in the art.
发明内容Contents of the invention
本公开的目的在于提供一种终端中的滑块控制方法及装置、电子设备、存储介质,进而至少在一定程度上克服由于相关技术的限制和缺陷而导致的对终端的检测结果不准确的问题。The purpose of the present disclosure is to provide a slider control method and device in a terminal, an electronic device, and a storage medium, so as to overcome at least to a certain extent the problem of inaccurate detection results of the terminal due to limitations and defects of related technologies .
本公开的其他特性和优点将通过下面的详细描述变得显然,或部分地通过本公开的实践而习得。Other features and advantages of the present disclosure will become apparent from the following detailed description, or in part, be learned by practice of the present disclosure.
根据本公开的一个方面,提供了一种终端中的滑块控制方法,包括:通过终端中的异常检测传感器获取所述终端的电学参数;若根据所述电学参数确定所述终端处于目标环境,则触发对所述终端中用于控制图像传感器的滑块模块进行收回操作。According to one aspect of the present disclosure, a method for controlling a slider in a terminal is provided, including: obtaining electrical parameters of the terminal through an abnormality detection sensor in the terminal; if it is determined according to the electrical parameters that the terminal is in a target environment, Then trigger the retraction operation of the slider module used to control the image sensor in the terminal.
在本公开的一种示例性实施例中,所述电学参数包括电压参数,根据所述电学参数确定所述终端处于所述目标环境包括:通过所述异常检测传感器定时检测所述终端的所述电压参数,并在所述电压参数满足阈值条件时,确定所述终端处于所述目标环境。In an exemplary embodiment of the present disclosure, the electrical parameter includes a voltage parameter, and determining that the terminal is in the target environment according to the electrical parameter includes: regularly detecting the A voltage parameter, and when the voltage parameter satisfies a threshold condition, determine that the terminal is in the target environment.
在本公开的一种示例性实施例中,所述方法还包括:从所述异常检测传感器读取所述阈值条件,并将所述电压参数与所述阈值条件进行对比,以判断所述电压参数是否满足所述阈值条件。In an exemplary embodiment of the present disclosure, the method further includes: reading the threshold condition from the abnormality detection sensor, and comparing the voltage parameter with the threshold condition to determine the voltage Whether the parameter satisfies the threshold condition.
在本公开的一种示例性实施例中,触发对所述终端中用于控制图像传感器的滑块模块进行收回操作包括:通过所述异常检测传感器中断引脚,触发对所述滑块模块进行所述收回操作。In an exemplary embodiment of the present disclosure, triggering the retraction operation of the slider module used to control the image sensor in the terminal includes: triggering the retraction operation of the slider module through the abnormality detection sensor interrupt pin The retraction operation.
在本公开的一种示例性实施例中,触发对所述滑块模块进行所述收回操作包括:若检测到所述滑块模块处于升起状态,则触发对所述滑块模块进行所述收回操作;若检测到所述滑块模块未处于所述升起状态,则控制所述异常检测传感器继续检测所述终端是否处于所述目标环境。In an exemplary embodiment of the present disclosure, triggering the retraction operation on the slider module includes: if it is detected that the slider module is in a raised state, triggering the retraction operation on the slider module retraction operation: if it is detected that the slider module is not in the raised state, then control the abnormality detection sensor to continue detecting whether the terminal is in the target environment.
在本公开的一种示例性实施例中,所述异常检测传感器包括过压保护芯片,且所述异常检测传感器设置于所述终端的接口。In an exemplary embodiment of the present disclosure, the abnormality detection sensor includes an overvoltage protection chip, and the abnormality detection sensor is disposed on an interface of the terminal.
在本公开的一种示例性实施例中,所述方法还包括:提供一提示信号,以便于提示所述收回操作。In an exemplary embodiment of the present disclosure, the method further includes: providing a reminder signal, so as to remind the retracting operation.
根据本公开的一个方面,提供一种终端中的滑块控制装置,包括:参数获取模块,用于通过终端中的异常检测传感器获取所述终端的电学参数;滑块收回模块,用于若根据所述电学参数确定所述终端处于所述目标环境,则触发对所述终端中用于控制图像传感器的滑块模块进行收回操作。According to one aspect of the present disclosure, there is provided a slider control device in a terminal, including: a parameter acquisition module, configured to acquire electrical parameters of the terminal through an abnormality detection sensor in the terminal; a slider retraction module, configured to The electrical parameter determines that the terminal is in the target environment, and triggers a retraction operation on the slider module used to control the image sensor in the terminal.
根据本公开的一个方面,提供一种电子设备,包括:处理器;以及存储器,用于存储所述处理器的可执行指令;其中,所述处理器配置为经由执行所述可执行指令来执行上述任意一项所述的终端中的滑块控制方法。According to one aspect of the present disclosure, there is provided an electronic device, including: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform The slider control method in the terminal described in any one of the above.
根据本公开的一个方面,提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述任意一项所述的终端中的滑块控制方法。According to one aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the method for controlling a slider in a terminal described in any one of the above items is implemented.
本公开示例性实施例中提供的终端中的滑块控制方法、终端中的滑块控制装置、电子设备以及计算机可读存储介质中,通过终端中的异常检测传感器获取的电学参数确定终端处于目标环境时,触发对终端中用于控制图像传感器的滑块模块进行收回操作。一方面,由于通过电学参数判断不需要满足较大的数值变化,可以快速判断终端是否处于目标环境,避免了相关技术中的漏识别和局限性,提高了检测准确率。另一方面,由于通过在终端中设置异常检测传感器得到电学参数,能够快速准确地确定终端是否处于目标环境,进而在终端处于目标环境时及时触发对滑块模块的收回操作,从而降低终端的损坏几率,保障了终端的安全性,提高了便捷性和可靠性。In the slider control method in the terminal, the slider control device in the terminal, the electronic device, and the computer-readable storage medium provided in the exemplary embodiments of the present disclosure, it is determined that the terminal is in the target position through the electrical parameters obtained by the abnormality detection sensor in the terminal. In the environment, trigger the retraction operation of the slider module used to control the image sensor in the terminal. On the one hand, since the judgment of electrical parameters does not need to meet large numerical changes, it can quickly judge whether the terminal is in the target environment, avoiding the missing recognition and limitations of related technologies, and improving the detection accuracy. On the other hand, since the electrical parameters are obtained by setting the abnormality detection sensor in the terminal, it can quickly and accurately determine whether the terminal is in the target environment, and then trigger the retraction operation of the slider module in time when the terminal is in the target environment, thereby reducing the damage of the terminal probability, ensuring the security of the terminal and improving convenience and reliability.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that both 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 disclosure and together with the description serve to explain the principles of the disclosure. Apparently, the drawings in the following description are only some embodiments of the present disclosure, and those skilled in the art can obtain other drawings according to these drawings without creative efforts.
图1示意性示出本公开示例性实施例中一种终端中的滑块控制方法的示意图;FIG. 1 schematically shows a schematic diagram of a slider control method in a terminal in an exemplary embodiment of the present disclosure;
图2示意性示出本公开示例性实施例中判断是否处于目标环境的示意图;Fig. 2 schematically shows a schematic diagram of judging whether it is in a target environment in an exemplary embodiment of the present disclosure;
图3示意性示出本公开示例性实施例中收回操作的示意图;Fig. 3 schematically shows a schematic diagram of a retrieval operation in an exemplary embodiment of the present disclosure;
图4示意性示出本公开示例性实施例中终端中的滑块控制的具体流程图;FIG. 4 schematically shows a specific flowchart of slider control in a terminal in an exemplary embodiment of the present disclosure;
图5示意性示出本公开示例性实施例中终端中的滑块控制装置的框图;Fig. 5 schematically shows a block diagram of a slider control device in a terminal in an exemplary embodiment of the present disclosure;
图6示意性示出本公开示例性实施例中一种电子设备的框图。Fig. 6 schematically shows a block diagram of an electronic device in an exemplary embodiment of the present disclosure.
具体实施方式Detailed ways
现在将参考附图更全面地描述示例实施方式。然而,示例实施方式能够以多种形式实施,且不应被理解为限于在此阐述的范例;相反,提供这些实施方式使得本公开将更加全面和完整,并将示例实施方式的构思全面地传达给本领域的技术人员。所描述的特征、结构或特性可以以任何合适的方式结合在一个或更多实施方式中。在下面的描述中,提供许多具体细节从而给出对本公开的实施方式的充分理解。然而,本领域技术人员将意识到,可以实践本公开的技术方案而省略所述特定细节中的一个或更多,或者可以采用其它的方法、组元、装置、步骤等。在其它情况下,不详细示出或描述公知技术方案以避免喧宾夺主而使得本公开的各方面变得模糊。Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided in order to give a thorough understanding of embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced without one or more of the specific details being omitted, or other methods, components, devices, steps, etc. may be adopted. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
此外,附图仅为本公开的示意性图解,并非一定是按比例绘制。图中相同的附图标记表示相同或类似的部分,因而将省略对它们的重复描述。附图中所示的一些方框图是功能实体,不一定必须与物理或逻辑上独立的实体相对应。可以采用软件形式来实现这些功能实体,或在一个或多个硬件模块或集成电路中实现这些功能实体,或在不同网络和/或处理器装置和/或微控制器装置中实现这些功能实体。Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus repeated descriptions thereof will be omitted. Some of the block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different network and/or processor means and/or microcontroller means.
相关技术中,加速度传感器要判断是否处于跌落状态以及液体中,必须满足较大的数据变化,比如终端系统某个轴向的数据需要持续处于跌落的状态才能判断为是跌落。如果只是很低高度的落入液体,则会失效,不一定认为是跌落。另外,利用触摸屏来检测是否处于液体中,从而起到智能收回滑块,起到保护滑块的作用。In related technologies, to determine whether the acceleration sensor is in a falling state or in a liquid, it must satisfy a large data change. For example, the data of a certain axis of the terminal system needs to be continuously in a falling state to be judged as falling. If it falls into the liquid only at a very low height, it will fail, and it is not necessarily considered a drop. In addition, the touch screen is used to detect whether it is in the liquid, so as to intelligently retract the slider and protect the slider.
上述两种方案中,虽然可以保护滑块模块,但是由于识别状态不及时,导致不能快速及时地对滑块模块进行保护。在接口存在浸入液体或者漏液之后,存在一定时间的腐蚀,导致输入电压的过高导致主板的短路的风险,从而损坏终端。In the above two solutions, although the slider module can be protected, the slider module cannot be protected in a timely manner because the identification state is not timely. After the interface is immersed in liquid or leaks, there will be corrosion for a certain period of time, resulting in the risk of a short circuit on the main board due to an excessively high input voltage, thereby damaging the terminal.
为了解决上述问题,本示例实施方式中首先提供了一种终端中的滑块控制方法,可以应用于对各种终端中配置的滑块模块进行有效控制的应用场景中。接下来,参考附图对本示例性实施例中的终端中的滑块控制方法进行具体说明。In order to solve the above problems, this exemplary embodiment firstly provides a slider control method in a terminal, which can be applied to an application scenario of effectively controlling slider modules configured in various terminals. Next, the slider control method in the terminal in this exemplary embodiment will be specifically described with reference to the drawings.
在步骤S110中,通过终端中的异常检测传感器获取所述终端的电学参数。In step S110, electrical parameters of the terminal are acquired through an abnormality detection sensor in the terminal.
本示例性实施例中,终端可以为任何具有拍照功能的智能终端,例如可以包括但不限于手机、平板电脑、安防类的寻呼机器、拍摄类的照相机等影像器材等。本示例性实施例的终端中可配置有滑块模块,滑块模块可以用于控制图像传感器和/或其他类型的传感器,例如将前置摄像头等需要设置在屏幕上的图像传感器进行隐藏,以使其位于屏幕的下方终端机身内的一个滑块模块内,并且可以通过电机驱动集成电路去驱动马达,做到动态升降滑块模块的方式。或者是也可以将所有的前置摄像头和后置摄像头设置在滑块模块内,此处不做特殊限定。本示例性实施例中以配置有滑块模块的手机为例进行说明,该滑块模块可以在拍照的时候升起和下降(例如从终端的顶部或者是其他位置升起或下降)。In this exemplary embodiment, the terminal can be any intelligent terminal with a camera function, for example, it can include but not limited to a mobile phone, a tablet computer, a security-type paging machine, a camera-type camera and other video equipment. The terminal in this exemplary embodiment can be configured with a slider module, which can be used to control image sensors and/or other types of sensors, for example, to hide image sensors that need to be set on the screen, such as a front camera, to It is located in a slider module in the terminal body below the screen, and the motor can be driven by the motor drive integrated circuit, so as to dynamically lift the slider module. Alternatively, all front cameras and rear cameras can also be set in the slider module, which is not specifically limited here. In this exemplary embodiment, a mobile phone equipped with a slider module is taken as an example for illustration. The slider module can be raised and lowered (for example, raised or lowered from the top of the terminal or other positions) when taking pictures.
由于终端的外部接口在浸入液体或漏液时,经过一定时间的腐蚀,外部接口的输入电压会变高,而输入电压变高会导致终端的主板短路,因此可以设置一个异常检测传感器,以用于执行检测终端是否处于液体环境的功能。异常检测传感器可以包括但不限于过压保护芯片OVP(Over Voltage Protection)。异常检测传感器可以设置于终端的接口中且与终端的接口中的输入电压VIN引脚电性连接。此处的接口可以为终端的外部接口,外部接口例如可以包括USB(Universal Serial Bus,通用串行总线)接口或TYPE C接口,此处对此不作特殊限定。When the external interface of the terminal is immersed in liquid or leaks, after a certain period of corrosion, the input voltage of the external interface will become higher, and the higher input voltage will cause a short circuit on the main board of the terminal. Therefore, an abnormality detection sensor can be set to use It is used to perform the function of detecting whether the terminal is in a liquid environment. The abnormality detection sensor may include but not limited to an over voltage protection chip OVP (Over Voltage Protection). The abnormality detection sensor can be arranged in the interface of the terminal and electrically connected with the input voltage VIN pin of the interface of the terminal. The interface here may be an external interface of the terminal, and the external interface may include, for example, a USB (Universal Serial Bus, universal serial bus) interface or a TYPE C interface, which is not specifically limited herein.
电学参数包括但不限于终端的电压参数、电流参数等等,此处以电压参数为例进行说明。获得电学参数后,可根据该电学参数确定终端是否处于目标环境中。The electrical parameters include but are not limited to voltage parameters, current parameters, etc. of the terminal, and the voltage parameters are taken as an example for description here. After the electrical parameter is obtained, it may be determined according to the electrical parameter whether the terminal is in the target environment.
接下来,继续参考图1所示,在步骤S120中,若根据所述电学参数确定所述终端处于目标环境,则触发对所述终端中用于控制图像传感器的滑块模块进行收回操作。Next, continue to refer to FIG. 1 , in step S120, if it is determined according to the electrical parameters that the terminal is in the target environment, a retraction operation on the slider module used to control the image sensor in the terminal is triggered.
本示例性实施例中,目标环境可以为各种类型的可能对终端造成损害的环境,例如液体环境。液体环境中可以包括任意类型的液体,例如水、酸性液体、腐蚀性液体等类型的液体。如果终端处于液体环境中,外部的液体环境可能对其造成腐蚀,影响终端的主板等部件,对终端造成一定的损伤,从而对终端造成伤害,影响其可靠性和可用性。In this exemplary embodiment, the target environment may be various types of environments that may cause damage to the terminal, such as a liquid environment. The liquid environment may include any type of liquid, such as water, acidic liquid, corrosive liquid, and other types of liquids. If the terminal is in a liquid environment, the external liquid environment may corrode it, affect the motherboard and other components of the terminal, and cause certain damage to the terminal, thereby causing damage to the terminal and affecting its reliability and usability.
图2中示意性示出了确定终端是否处于目标环境的具体流程图,参考图2中所示,主要包括步骤S210和步骤S220,其中:FIG. 2 schematically shows a specific flow chart for determining whether the terminal is in the target environment. Referring to FIG. 2, it mainly includes step S210 and step S220, wherein:
在步骤S210中,通过所述终端中的异常检测传感器定时判断所述终端的所述电压参数是否满足阈值条件。In step S210, whether the voltage parameter of the terminal satisfies a threshold condition is regularly judged by an abnormality detection sensor in the terminal.
本示例性实施例中,可以在终端的USB接口或TYPE C接口的输入电压VIN引脚中,增加一个过压保护芯片。在增加异常检测传感器之后,可以对异常检测传感器进行初始化,并将阈值条件写入异常检测传感器中的寄存器中。其中,阈值条件用于衡量电学参数是否合格,具体可以根据实际需求进行设置。例如,当考量的参数为电压参数时,阈值条件可以为电压阈值。具体地,不同的固件和液体,其对应的阻值不一样,则通过模数传感器采集之后则反映的电压数值则不一样。例如,异常检测传感器,对应的液体的电压数值是150-200,对应的固件的电压数值是100-130。异常检测传感器采集的数据的单位是8通路的转换后的数据,并非电压单位。In this exemplary embodiment, an overvoltage protection chip may be added to the input voltage VIN pin of the USB interface of the terminal or the TYPE C interface. After the abnormality detection sensor is added, the abnormality detection sensor can be initialized, and the threshold condition can be written into a register in the abnormality detection sensor. Among them, the threshold condition is used to measure whether the electrical parameters are qualified, which can be set according to actual needs. For example, when the considered parameter is a voltage parameter, the threshold condition may be a voltage threshold. Specifically, different firmware and liquids have different corresponding resistance values, and the reflected voltage values after being collected by the analog-to-digital sensor are also different. For example, for an abnormality detection sensor, the corresponding liquid voltage value is 150-200, and the corresponding firmware voltage value is 100-130. The unit of data collected by the abnormality detection sensor is the converted data of 8 channels, not the unit of voltage.
过压保护芯片只是手机终端系统内的一个传感器。终端系统指的是由高性能的CPU、RAM、ROM以及其他器件组成的系统。该终端系统内的应用可以设置一个选项“落入液体自动检测收回滑块”。进一步地,在增加一个过压保护芯片之后,终端系统可以开启落液检测收回滑块功能。The overvoltage protection chip is just a sensor in the mobile terminal system. The terminal system refers to the system composed of high-performance CPU, RAM, ROM and other devices. The application in the terminal system can set an option "automatic detection of falling liquid and retracting the slider". Further, after adding an overvoltage protection chip, the terminal system can enable the function of detecting and retracting the slider when falling liquid.
在异常检测传感器进行开机初始化,系统上电正常之后,异常检测传感器一直处于正常工作检测状态,此时可以通过异常检测传感器定时检测该终端当前的电学参数,以便于通过中断触发场景通知终端系统。即,定时检测终端当前的电压参数,终端系统通过用于连接微控制器及其外围设备的总线I2C(Inter-Integrated Circuit)从异常检测传感器的寄存器读取事先设置的阈值条件。进一步可以将当前的电压参数与阈值条件进行对比,以判断电压参数是否满足阈值条件。After the abnormality detection sensor is powered on and initialized and the system is powered on normally, the abnormality detection sensor is always in the normal working detection state. At this time, the abnormality detection sensor can be used to regularly detect the current electrical parameters of the terminal, so as to notify the terminal system through the interrupt triggering scene. That is, the current voltage parameters of the terminal are regularly detected, and the terminal system reads the pre-set threshold conditions from the register of the abnormality detection sensor through the bus I2C (Inter-Integrated Circuit) used to connect the microcontroller and its peripherals. Further, the current voltage parameter can be compared with the threshold condition to determine whether the voltage parameter satisfies the threshold condition.
在步骤S220中,若所述电压参数满足阈值条件,则确定所述终端处于所述目标环境。In step S220, if the voltage parameter satisfies a threshold condition, it is determined that the terminal is in the target environment.
此处的电压参数满足阈值条件指的是电压参数大于阈值条件。如果异常检测传感器检测到的终端的电压参数大于阈值条件,则可以认为终端处于液体环境中。如果异常检测传感器检测到的终端的电压参数小于或者等于阈值条件,则可以认为终端未处于液体环境中。Here, the voltage parameter meeting the threshold condition means that the voltage parameter is greater than the threshold condition. If the voltage parameter of the terminal detected by the abnormality detection sensor is greater than the threshold condition, it can be considered that the terminal is in a liquid environment. If the voltage parameter of the terminal detected by the abnormality detection sensor is less than or equal to the threshold condition, it may be considered that the terminal is not in the liquid environment.
本示例性实施例中,通过终端中设置的异常检测传感器能够准确地检测终端是否处于目标环境,避免了相关技术中的局限性,提高了检测效率和检测的准确率。In this exemplary embodiment, the anomaly detection sensor provided in the terminal can accurately detect whether the terminal is in the target environment, avoiding limitations in related technologies, and improving detection efficiency and detection accuracy.
本示例性实施例中,如果终端处于目标环境,则异常检测传感器可以将终端的当前状态上报至终端系统。终端系统的底层可以获取异常检测传感器上报的通知事件,并通知相关的服务发出收回滑块模块的指令,以触发收回滑块模块的动作。具体地,在异常检测传感器中断引脚的同时,还可以触发通知终端系统,以触发对滑块模块的收回操作。In this exemplary embodiment, if the terminal is in the target environment, the abnormality detection sensor may report the current state of the terminal to the terminal system. The bottom layer of the terminal system can obtain the notification event reported by the abnormality detection sensor, and notify the relevant service to issue an instruction to retract the slider module, so as to trigger the action of retracting the slider module. Specifically, when the abnormality detection sensor interrupts the pin, it can also trigger the notification terminal system to trigger the retraction operation of the slider module.
如果当前检测的电压参数满足阈值条件,异常检测传感器可以中断引脚INT,从而切断引脚与充电输入之间的通路,防止终端由于被液体侵蚀导致内部短路等情况发生,以进行提前保护。虽然终端具有防水功能,但是USB接口或者TPYE C接口中依然可能存在浸入液体或者漏液并存在一定的腐蚀,导致输入电压的过高以及主板的短路的风险。因此,可以在终端USB接口或TYPE C接口的输入电压VIN引脚中增加一个过压保护芯片,过电压保护芯片。当高压高电流高温的情况下,起到控制VIN输入电压到PMIC充电输入之间的开关控制,防止外部电压冲击到内部电路。并且,过压保护芯片可以检测外部接口的是否受到液体的腐蚀,起到内部充电电压的开关控制功能。这对于大多数终端的防水功能,可以减少长期的使用中,外部液体腐蚀USB接口或TYPE C接口,防止导致输入电压VIN引脚的电压出现异常。If the currently detected voltage parameter meets the threshold condition, the abnormality detection sensor can interrupt the pin INT, thereby cutting off the path between the pin and the charging input, preventing the internal short circuit caused by the terminal being corroded by liquid, for early protection. Although the terminal has a waterproof function, there may still be liquid immersion or leakage in the USB interface or TPYE C interface, and there may be some corrosion, resulting in the risk of excessive input voltage and short circuit of the motherboard. Therefore, an overvoltage protection chip can be added to the input voltage VIN pin of the terminal USB interface or TYPE C interface, an overvoltage protection chip. In the case of high voltage, high current and high temperature, it can control the switch between the VIN input voltage and the PMIC charging input to prevent the external voltage from impacting the internal circuit. Moreover, the overvoltage protection chip can detect whether the external interface is corroded by liquid, and has the function of switching and controlling the internal charging voltage. For the waterproof function of most terminals, it can reduce the external liquid corrosion of the USB interface or TYPE C interface during long-term use, and prevent the abnormal voltage of the input voltage VIN pin.
基于此,异常检测传感器的检测原理具体为:利用液体浸入USB接口之后,定时检测该终端对应的电压数值,如果该电压数值达到过压保护芯片内设置的临界阈值,触发中断,通知系统去实现相关动作。Based on this, the detection principle of the abnormality detection sensor is as follows: After the liquid is immersed in the USB interface, the voltage value corresponding to the terminal is regularly detected. If the voltage value reaches the critical threshold set in the overvoltage protection chip, an interrupt is triggered and the system is notified to implement related actions.
图3中示意性示出了收回滑块模块的示意图,参考图3中所示,主要包括步骤S310至步骤S330,且步骤S310至步骤S330是步骤S120的具体实施方式,其中:FIG. 3 schematically shows a schematic diagram of retracting the slider module. Referring to FIG. 3 , it mainly includes steps S310 to S330, and steps S310 to S330 are specific implementations of step S120, wherein:
在步骤S310中,检测所述滑块模块是否处于升起状态;In step S310, it is detected whether the slider module is in a raised state;
在步骤S320中,若检测到所述滑块模块处于所述升起状态,则触发对所述滑块模块进行所述收回操作;In step S320, if it is detected that the slider module is in the raised state, trigger the retraction operation on the slider module;
在步骤S330中,若检测到所述滑块模块未处于所述升起状态,则控制所述异常检测传感器继续检测所述终端是否处于所述目标环境。In step S330, if it is detected that the slider module is not in the raised state, the abnormality detection sensor is controlled to continue detecting whether the terminal is in the target environment.
本示例性实施例中,在异常检测传感器中断引脚之后触发对滑块模块的收回操作时,首先可以检测滑块模块是否处于升起状态。具体可以通过以下两种方式来判断:方式一、通过自身记录是否升起的标志位。其中,标志位为事先确定好的位置,用于表示滑块模块升起的临界值。如果滑块模块超过该标志位,则可以认为滑块模块处于升起状态。方式二、通过滑块模块内预置的预设传感器去计算当前的位置,以判断滑块模块是否升起。预设传感器可以为HALL传感器。具体地,可以在终端内的固定位置安装一个HALL传感器,并在滑块模块内安装磁铁,通过磁铁的位置以及HALL传感器的位置的对比来确定磁铁的位置是否高于HALL传感器。若是,则可以认为滑块模块处于升起状态。若否,则可以认为滑块模块未处于升起状态。In this exemplary embodiment, when the retracting operation of the slider module is triggered after the abnormality detection sensor interrupts the pin, it may first be detected whether the slider module is in a raised state. Specifically, it can be judged in the following two ways: the first way is to record whether the flag is raised by itself. Wherein, the flag position is a pre-determined position, which is used to indicate the critical value of the slider module rising. If the slider module exceeds the flag position, it can be considered that the slider module is in a raised state. The second way is to calculate the current position through the preset preset sensor in the slider module, so as to judge whether the slider module is raised. The preset sensor can be a HALL sensor. Specifically, a HALL sensor can be installed at a fixed position in the terminal, and a magnet can be installed in the slider module, and a comparison between the position of the magnet and the position of the HALL sensor can be used to determine whether the position of the magnet is higher than the HALL sensor. If so, it can be considered that the slider module is in a raised state. If not, it can be considered that the slider module is not in the raised state.
基于此,如果判断终端的电压参数满足阈值条件,则可以继续判断滑块模块是否处于升起状态。如果确定滑块模块处于升起状态,则过压保护芯片上报终端落入液体的状态给终端系统,并通知服务触发对滑块模块的收回操作。如果判断终端的电压参数满足阈值条件但是滑块模块未处于升起状态,则不触发对滑块模块的收回操作而是控制异常检测传感器继续进行正常检测流程。如果判断终端的电压参数不满足阈值条件,则直接控制异常检测传感器继续进行正常检测流程,以检测终端是否处于目标环境,而不触发对滑块模块的收回操作。Based on this, if it is judged that the voltage parameter of the terminal satisfies the threshold condition, it can continue to judge whether the slider module is in the raised state. If it is determined that the slider module is in the raised state, the overvoltage protection chip reports the state of the terminal falling into the liquid to the terminal system, and notifies the service to trigger a retraction operation on the slider module. If it is judged that the voltage parameter of the terminal meets the threshold condition but the slider module is not in the raised state, the retraction operation of the slider module is not triggered but the abnormality detection sensor is controlled to continue the normal detection process. If it is judged that the voltage parameter of the terminal does not meet the threshold condition, the abnormal detection sensor is directly controlled to continue the normal detection process to detect whether the terminal is in the target environment without triggering the retraction operation of the slider module.
本示例性实施例中,通过终端的电压参数是否满足阈值条件,能够准确判断终端是否处于目标环境;并且在判断终端处于目标环境中且滑块模块处于升起状态时,能够通过中断引脚进行过压保护并且及时地收回滑块模块,避免外部的液体环境对终端和滑块模块造成损害,从而影响终端的主板等部件,也避免了对其可靠性和可用性的影响。In this exemplary embodiment, whether the terminal is in the target environment can be accurately judged by whether the voltage parameter of the terminal satisfies the threshold condition; Overvoltage protection and timely retraction of the slider module prevent the external liquid environment from causing damage to the terminal and the slider module, thereby affecting the main board and other components of the terminal, and also avoiding the impact on its reliability and availability.
需要补充的是,在收回滑块模块时,还可以提供一个提示信号,以便于通过该提示信号对收回操作进行及时提醒以及方便用户。该提示信号可以包括声音信号,也可以包括文字信号,还可以包括灯光信号等任意形式的信号。例如,可以通过声音的形式提醒,还可以通过文字的形式提示“终端落入液体中,滑块已自动收回”,以便于用户及时了解滑块模块是否已经完全收回,并且做出相应的措施及时对终端进行保护操作。What needs to be added is that when retracting the slider module, a prompt signal may also be provided, so as to timely remind the retraction operation and facilitate the user through the prompt signal. The prompt signal may include a sound signal, may also include a text signal, and may also include any form of signal such as a light signal. For example, it can be reminded in the form of sound, and it can also be prompted in the form of text that "the terminal has fallen into the liquid and the slider has been automatically retracted", so that the user can know in time whether the slider module has been completely retracted, and take corresponding measures in time Protect the terminal.
图4中示意性示出了滑块处理的整体流程图,参考图4中所示,主要包括以下步骤:Figure 4 schematically shows the overall flow chart of slider processing, referring to Figure 4, which mainly includes the following steps:
在步骤S401中,异常检测传感器初始化的时候,将阈值条件写入异常检测传感器的寄存器中。异常检测传感器为过压保护芯片。In step S401, when the abnormality detection sensor is initialized, the threshold condition is written into the register of the abnormality detection sensor. The abnormal detection sensor is an overvoltage protection chip.
在步骤S402中,终端系统开启落液检测收回滑块功能。In step S402, the terminal system activates the function of detecting and retracting the slider when falling liquid.
在步骤S403中,过压保护芯片处于正常工作检测状态。In step S403, the overvoltage protection chip is in a normal operation detection state.
在步骤S404中,过压保护芯片判断获取的电压参数是否满足阈值条件。若是,则转至步骤S405;若否,则返回至步骤S403。In step S404, the overvoltage protection chip judges whether the acquired voltage parameters meet the threshold condition. If yes, go to step S405; if not, go back to step S403.
在步骤S405中,过压保护芯片上报落入液体检测的状态给终端系统。In step S405, the overvoltage protection chip reports the state of falling into the liquid detection to the terminal system.
在步骤S406中,终端系统获取通知事件,并通知服务触发收回滑块模块的动作。In step S406, the terminal system obtains the notification event, and notifies the service to trigger the action of retracting the slider module.
在步骤S407中,服务下发收回滑块模块的命令,并进行提示。例如可以通过提示信号进行提示。In step S407, the service issues a command to retract the slider module and prompts. For example, a reminder can be provided by a reminder signal.
在步骤S408中,判断滑块模块是否处于升起状态。若是,则转至步骤S409;若否,则转至步骤S410。In step S408, it is determined whether the slider module is in a raised state. If yes, go to step S409; if not, go to step S410.
在步骤S409中,若滑块模块处于升起状态,则收回滑块模块。In step S409, if the slider module is in the raised state, retract the slider module.
在步骤S410中,若滑块模块未处于升起状态,则不收回滑块模块或者不做处理。In step S410, if the slider module is not in the raised state, the slider module is not retracted or processed.
图4中的技术方案,通过异常检测传感器得到电学参数,从而可以准确判断终端是否处于目标环境中,进而能够通过中断引脚,在滑块模块处于升起状态时及时触发对滑块模块的收回操作,保护终端的滑块模块不被液体等腐蚀,提高安全性和终端的可靠性。The technical solution in Figure 4 obtains the electrical parameters through the abnormal detection sensor, so that it can accurately judge whether the terminal is in the target environment, and then trigger the retraction of the slider module in time when the slider module is in the raised state through the interrupt pin. Operation, protect the slider module of the terminal from being corroded by liquid etc., improve the safety and reliability of the terminal.
本示例性实施例中,还提供了一种终端中的滑块控制装置,参考图5中所示,终端中的滑块控制装置500主要包括以下模块:In this exemplary embodiment, a slider control device in a terminal is also provided. Referring to FIG. 5 , the
参数获取模块501,可以用于通过终端中的异常检测传感器获取所述终端的电学参数;The
滑块收回模块502,可以用于若根据所述电学参数确定所述终端处于目标环境,则触发对所述终端中用于控制图像传感器的滑块模块进行收回操作。The
在本公开的一种示例性实施例中,所述电学参数包括电压参数,滑块收回模块包括:环境检测模块,用于通过所述异常检测传感器定时检测所述终端的所述电压参数,并在所述电压参数满足阈值条件时,确定所述终端处于所述目标环境。In an exemplary embodiment of the present disclosure, the electrical parameter includes a voltage parameter, and the slider retracting module includes: an environment detection module, configured to regularly detect the voltage parameter of the terminal through the abnormality detection sensor, and When the voltage parameter satisfies a threshold condition, it is determined that the terminal is in the target environment.
在本公开的一种示例性实施例中,所述装置还包括:对比模块,用于从所述异常检测传感器读取所述阈值条件,并将所述电压参数与所述阈值条件进行对比,以判断所述电压参数是否满足所述阈值条件。In an exemplary embodiment of the present disclosure, the device further includes: a comparison module, configured to read the threshold condition from the abnormality detection sensor, and compare the voltage parameter with the threshold condition, to determine whether the voltage parameter satisfies the threshold condition.
在本公开的一种示例性实施例中,滑块收回模块包括:收回触发模块,用于通过所述异常检测传感器中断引脚,触发对所述滑块模块进行所述收回操作。In an exemplary embodiment of the present disclosure, the slider retracting module includes: a retracting trigger module, configured to trigger the retracting operation on the slider module by interrupting a pin through the abnormality detection sensor.
在本公开的一种示例性实施例中,收回触发模块包括:第一判断模块,用于若检测到所述滑块模块处于升起状态,则触发对所述滑块模块进行所述收回操作;第二判断模块,用于若检测到所述滑块模块未处于所述升起状态,则控制所述异常检测传感器继续检测所述终端是否处于所述目标环境。In an exemplary embodiment of the present disclosure, the retraction trigger module includes: a first judging module, configured to trigger the retraction operation on the slider module if it is detected that the slider module is in a raised state a second judging module, configured to control the abnormality detection sensor to continue detecting whether the terminal is in the target environment if it is detected that the slider module is not in the raised state.
在本公开的一种示例性实施例中,所述异常检测传感器包括过压保护芯片,且所述异常检测传感器设置于所述终端的接口。In an exemplary embodiment of the present disclosure, the abnormality detection sensor includes an overvoltage protection chip, and the abnormality detection sensor is disposed on an interface of the terminal.
在本公开的一种示例性实施例中,所述装置还包括:提示模块,用于提供一提示信号,以便于提示所述收回操作。In an exemplary embodiment of the present disclosure, the device further includes: a prompting module, configured to provide a prompting signal, so as to prompt the retracting operation.
需要说明的是,上述终端中的滑块控制装置中各模块的具体细节已经在对应的终端中的滑块控制方法中进行了详细描述,因此此处不再赘述。It should be noted that the specific details of each module in the slider control device in the above terminal have been described in detail in the corresponding slider control method in the terminal, so details will not be repeated here.
应当注意,尽管在上文详细描述中提及了用于动作执行的设备的若干模块或者单元,但是这种划分并非强制性的。实际上,根据本公开的实施方式,上文描述的两个或更多模块或者单元的特征和功能可以在一个模块或者单元中具体化。反之,上文描述的一个模块或者单元的特征和功能可以进一步划分为由多个模块或者单元来具体化。It should be noted that although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. Actually, according to the embodiment of the present disclosure, the features and functions of two or more modules or units described above may be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided to be embodied by a plurality of modules or units.
此外,尽管在附图中以特定顺序描述了本公开中方法的各个步骤,但是,这并非要求或者暗示必须按照该特定顺序来执行这些步骤,或是必须执行全部所示的步骤才能实现期望的结果。附加的或备选的,可以省略某些步骤,将多个步骤合并为一个步骤执行,以及/或者将一个步骤分解为多个步骤执行等。In addition, although steps of the methods of the present disclosure are depicted in the drawings in a particular order, there is no requirement or implication that the steps must be performed in that particular order, or that all illustrated steps must be performed to achieve the desired result. Additionally or alternatively, certain steps may be omitted, multiple steps may be combined into one step for execution, and/or one step may be decomposed into multiple steps for execution, etc.
在本公开的示例性实施例中,还提供了一种能够实现上述方法的电子设备。In an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
所属技术领域的技术人员能够理解,本发明的各个方面可以实现为系统、方法或程序产品。因此,本发明的各个方面可以具体实现为以下形式,即:完全的硬件实施方式、完全的软件实施方式(包括固件、微代码等),或硬件和软件方面结合的实施方式,这里可以统称为“电路”、“模块”或“系统”。Those skilled in the art can understand that various aspects of the present invention can be implemented as systems, methods or program products. Therefore, various aspects of the present invention can be embodied in the following forms, that is: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software implementations, which can be collectively referred to herein as "circuit", "module" or "system".
下面参照图6来描述根据本发明的这种实施方式的电子设备600。图6显示的电子设备600仅仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。An
如图6所示,电子设备600以通用计算设备的形式表现。电子设备600的组件可以包括但不限于:上述至少一个处理单元610、上述至少一个存储单元620、连接不同系统组件(包括存储单元620和处理单元610)的总线650。As shown in FIG. 6,
其中,所述存储单元存储有程序代码,所述程序代码可以被所述处理单元610执行,使得所述处理单元610执行本说明书上述“示例性方法”部分中描述的根据本发明各种示例性实施方式的步骤。例如,所述处理单元610可以执行如图1中所示的步骤。Wherein, the storage unit stores program codes, and the program codes can be executed by the
存储单元620可以包括易失性存储单元形式的可读介质,例如随机存取存储单元(RAM)6201和/或高速缓存存储单元6202,还可以进一步包括只读存储单元(ROM)6203。The
存储单元620还可以包括具有一组(至少一个)程序模块6205的程序/实用工具6204,这样的程序模块6205包括但不限于:操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。
总线630可以为表示几类总线结构中的一种或多种,包括存储单元总线或者存储单元控制器、外围总线、图形加速端口、处理单元或者使用多种总线结构中的任意总线结构的局域总线。
电子设备600也可以与一个或多个外部设备700(例如键盘、指向设备、蓝牙设备等)通信,还可与一个或者多个使得用户能与该电子设备600交互的设备通信,和/或与使得该电子设备600能与一个或多个其它计算设备进行通信的任何设备(例如路由器、调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口650进行。并且,电子设备600还可以通过网络适配器660与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。如图所示,网络适配器660通过总线630与电子设备600的其它模块通信。应当明白,尽管图中未示出,可以结合电子设备600使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。The
在本公开的示例性实施例中,还提供了一种计算机可读存储介质,其上存储有能够实现本说明书上述方法的程序产品。在一些可能的实施方式中,本发明的各个方面还可以实现为一种程序产品的形式,其包括程序代码,当所述程序产品在终端设备上运行时,所述程序代码用于使所述终端设备执行本说明书上述“示例性方法”部分中描述的根据本发明各种示例性实施方式的步骤。In an exemplary embodiment of the present disclosure, there is also provided a computer-readable storage medium on which a program product capable of implementing the above-mentioned method in this specification is stored. In some possible implementations, various aspects of the present invention can also be implemented in the form of a program product, which includes program code, and when the program product is run on a terminal device, the program code is used to make the The terminal device executes the steps according to various exemplary embodiments of the present invention described in the "Exemplary Method" section above in this specification.
根据本发明的实施方式的用于实现上述方法的程序产品,其可以采用便携式紧凑盘只读存储器(CD-ROM)并包括程序代码,并可以在终端设备,例如个人电脑上运行。然而,本发明的程序产品不限于此,在本文件中,可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。According to the program product for implementing the above method according to the embodiment of the present invention, it may adopt a portable compact disc read-only memory (CD-ROM) and include program codes, and may run on a terminal device such as a personal computer. However, the program product of the present invention is not limited thereto. In this document, a readable storage medium may be any tangible medium containing or storing a program, and the program may be used by or in combination with an instruction execution system, apparatus or device.
所述程序产品可以采用一个或多个可读介质的任意组合。可读介质可以是可读信号介质或者可读存储介质。可读存储介质例如可以为但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。The program product may reside on any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination thereof. More specific examples (non-exhaustive list) of readable storage media include: electrical connection with one or more conductors, portable disk, hard disk, random access memory (RAM), read only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了可读程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。可读信号介质还可以是可读存储介质以外的任何可读介质,该可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。A computer readable signal medium may include a data signal carrying readable program code in baseband or as part of a carrier wave. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium other than a readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device.
可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于无线、有线、光缆、RF等等,或者上述的任意合适的组合。Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
可以以一种或多种程序设计语言的任意组合来编写用于执行本发明操作的程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、C++等,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、作为一个独立的软件包执行、部分在用户计算设备上部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。在涉及远程计算设备的情形中,远程计算设备可以通过任意种类的网络,包括局域网(LAN)或广域网(WAN),连接到用户计算设备,或者,可以连接到外部计算设备(例如利用因特网服务提供商来通过因特网连接)。Program code for carrying out the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages—such as Java, C++, etc., as well as conventional procedural programming languages. Programming language - such as "C" or a similar programming language. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server to execute. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (for example, using an Internet service provider). business to connect via the Internet).
此外,上述附图仅是根据本发明示例性实施例的方法所包括的处理的示意性说明,而不是限制目的。易于理解,上述附图所示的处理并不表明或限制这些处理的时间顺序。另外,也易于理解,这些处理可以是例如在多个模块中同步或异步执行的。In addition, the above-mentioned figures are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present invention, and are not intended to be limiting. It is easy to understand that the processes shown in the above figures do not imply or limit the chronological order of these processes. In addition, it is also easy to understand that these processes may be executed synchronously or asynchronously in multiple modules, for example.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其他实施例。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由权利要求指出。Other embodiments of the disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, and these modifications, uses or adaptations follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure . The specification and examples are to be considered exemplary only, with the true scope and spirit of the disclosure indicated by the appended claims.
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910678869.4A CN110490006B (en) | 2019-07-25 | 2019-07-25 | Slider control method and device in terminal, electronic device, storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910678869.4A CN110490006B (en) | 2019-07-25 | 2019-07-25 | Slider control method and device in terminal, electronic device, storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110490006A CN110490006A (en) | 2019-11-22 |
CN110490006B true CN110490006B (en) | 2023-07-04 |
Family
ID=68548270
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910678869.4A Active CN110490006B (en) | 2019-07-25 | 2019-07-25 | Slider control method and device in terminal, electronic device, storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110490006B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106921064A (en) * | 2017-04-17 | 2017-07-04 | 维沃移动通信有限公司 | A kind of interface structure, plug, charger and mobile terminal |
CN109194790A (en) * | 2018-09-30 | 2019-01-11 | 北京小米移动软件有限公司 | CCD camera assembly, mobile phone, method, apparatus, storage medium and system |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102087639B (en) * | 2010-11-30 | 2015-05-20 | 中兴通讯股份有限公司 | Method for starting USB (Universal Serial Bus) state machine as well as terminal |
CN103955365B (en) * | 2014-04-17 | 2017-08-25 | 小米科技有限责任公司 | The method and device of control terminal when a kind of terminal is fallen |
CN107065754B (en) * | 2017-05-24 | 2020-02-21 | 宇龙计算机通信科技(深圳)有限公司 | Intelligent terminal protection method and intelligent terminal |
-
2019
- 2019-07-25 CN CN201910678869.4A patent/CN110490006B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106921064A (en) * | 2017-04-17 | 2017-07-04 | 维沃移动通信有限公司 | A kind of interface structure, plug, charger and mobile terminal |
CN109194790A (en) * | 2018-09-30 | 2019-01-11 | 北京小米移动软件有限公司 | CCD camera assembly, mobile phone, method, apparatus, storage medium and system |
Also Published As
Publication number | Publication date |
---|---|
CN110490006A (en) | 2019-11-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2821897B1 (en) | Finger detection on touch screens for mobile devices | |
CN103294161B (en) | Electronic device | |
CN103279145B (en) | Monitoring electronics contacts moisture and the methods, devices and systems reacted | |
CN109407871B (en) | A method and device for identifying water immersion status, electronic equipment | |
CN103546643A (en) | A method and device for prompting a mobile smart device to drop and damage in time | |
CN106959386B (en) | A kind of creepage detection method and mobile terminal | |
CN106919824B (en) | Fingerprint unlocking control method and device and computer equipment | |
CN108872762B (en) | Electronic equipment leakage detection method and device, electronic equipment and storage medium | |
CN108733298B (en) | Touch information processing method and device, storage medium and electronic equipment | |
EP2455773A1 (en) | Detecting circuit for electric quantity, processing device and method for state detection of mobile telephone in standby | |
CN104932963A (en) | Method and device for terminal management | |
CN106711933B (en) | A kind of equipment abnormal electrical power supply processing method, device and video camera | |
CN105071489B (en) | A kind of charging method and device of the terminal with data exchanging function | |
CN110490006B (en) | Slider control method and device in terminal, electronic device, storage medium | |
CN103326310B (en) | Communication terminal and its control method | |
CN106058971B (en) | A kind of charge protection method and mobile terminal | |
CN107045295A (en) | The control method and mobile terminal of a kind of mobile terminal | |
CN105844179A (en) | Terminal protection method and device | |
CN112003346B (en) | Charging method and electronic device | |
CN106776228B (en) | Safety protection method of mobile terminal and mobile terminal | |
CN106227638A (en) | A kind of mobile terminal guard method and mobile terminal | |
CN105204954A (en) | Method and terminal for processing dead halt state | |
TWI621046B (en) | Touch sensitive electronic device, touch sensitive processing apparatus and method thereof | |
CN115388991A (en) | A liquid level sensor float fault diagnosis method, device and storage medium | |
CN109617175B (en) | Mobile terminal charger detection and control method, mobile terminal and storage medium |
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 |