CN110490006B - Slider control method and device in terminal, electronic equipment and storage medium - Google Patents

Slider control method and device in terminal, electronic equipment and storage medium Download PDF

Info

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
module
detection sensor
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
Application number
CN201910678869.4A
Other languages
Chinese (zh)
Other versions
CN110490006A (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 CN201910678869.4A priority Critical patent/CN110490006B/en
Publication of CN110490006A publication Critical patent/CN110490006A/en
Application granted granted Critical
Publication of CN110490006B publication Critical patent/CN110490006B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • G01R19/165Indicating that current or voltage is either above or below a predetermined value or within or outside a predetermined range of values
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer

Abstract

The disclosure relates to a method and a device for controlling a sliding block in a terminal, electronic equipment and a storage medium, and relates to the technical field of electronics, wherein the method comprises the following steps: acquiring electrical parameters of a terminal through an abnormality detection sensor in the terminal; and if the terminal is determined to be in the target environment according to the electrical parameters, triggering a slider module used for controlling an image sensor in the terminal to retract. According to the method and the device, when the terminal is in the target environment, the retraction operation of the sliding block module can be triggered in time, damage to the terminal is avoided, and reliability and safety are improved.

Description

Slider control method and device in terminal, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of electronics technology, and in particular, to a slider control method in a terminal, a slider control device in a terminal, an electronic apparatus, and a computer-readable storage medium.
Background
With the development of terminals, some sensors on a screen may be placed in one slider module in a terminal body, so that effective protection of the slider module is an urgent problem to be solved.
In the related art, whether the current terminal is in a dropped state and in the liquid is detected by using an acceleration sensor, thereby retracting the slider module. Or a touch screen is used for detecting whether the sliding block module is in liquid or not, so that the sliding block module is protected.
In the above manner, the acceleration sensor needs to satisfy a large data change to determine whether the sensor is in a falling state, so that recognition omission may be caused, and the determination result is inaccurate and has limitation. Whether the touch screen is in the liquid or not is detected, the sliding block is retracted, the efficiency is low, the damage probability of the terminal is possibly high, and the reliability is low.
It should be noted that the information disclosed in the above background section is only for enhancing understanding of the background of the present disclosure and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The disclosure aims to provide a slider control method and device in a terminal, an electronic device and a storage medium, so as to overcome the problem of inaccurate detection results of the terminal caused by limitations and defects of related technologies at least to a certain extent.
Other features and advantages of the present disclosure will be apparent from the following detailed description, or may be learned in part by the practice of the disclosure.
According to one aspect of the present disclosure, there is provided a slider control method in a terminal, including: acquiring electrical parameters of a terminal through an abnormality detection sensor in the terminal; and if the terminal is determined to be in the target environment according to the electrical parameters, triggering the slider module used for controlling the image sensor in the terminal to retract.
In an exemplary embodiment of the disclosure, the electrical parameter includes a voltage parameter, and determining that the terminal is in the target environment based on the electrical parameter includes: and detecting the voltage parameter of the terminal at fixed time through the abnormality detection sensor, and determining that the terminal is in the target environment when the voltage parameter meets a threshold condition.
In an exemplary embodiment of the present disclosure, the method further comprises: the threshold condition is read from the abnormality detection sensor, and the voltage parameter is compared with the threshold condition to determine whether the voltage parameter satisfies the threshold condition.
In an exemplary embodiment of the present disclosure, triggering the retracting operation of the slider module for controlling the image sensor in the terminal includes: and triggering the slider module to carry out the retracting operation through the interrupt pin of the abnormality detection sensor.
In one exemplary embodiment of the present disclosure, triggering the retracting operation of the slider module includes: triggering the retraction operation of the slider module if the slider module is detected to be in a lifting state; and if the slider module is detected not to be in the lifting state, controlling the abnormality detection sensor to continuously detect whether the terminal is in the target environment.
In one exemplary embodiment of the present disclosure, the abnormality detection sensor includes an overvoltage protection chip, and the abnormality detection sensor is provided at an interface of the terminal.
In an exemplary embodiment of the present disclosure, the method further comprises: a prompt signal is provided to prompt the retraction operation.
According to an aspect of the present disclosure, there is provided a slider control apparatus in a terminal, including: the parameter acquisition module is used for acquiring the electrical parameters of the terminal through an abnormality detection sensor in the terminal; and the slider retraction module is used for triggering the slider module used for controlling the image sensor in the terminal to carry out retraction operation if the terminal is determined to be in the target environment according to the electrical parameters.
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 execute the slider control method in the terminal of any one of the above via execution of the executable instructions.
According to an aspect of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the slider control method in the terminal of any one of the above.
In the slider control method in the terminal, the slider control device in the terminal, the electronic equipment and the computer readable storage medium provided in the exemplary embodiments of the present disclosure, when the electrical parameter acquired by the abnormality detection sensor in the terminal determines that the terminal is in the target environment, the slider module in the terminal for controlling the image sensor is triggered to perform the retraction operation. On the one hand, because the electrical parameter judgment is not required to meet larger numerical value change, whether the terminal is in a target environment or not can be rapidly judged, the missing identification and limitation in the related technology are avoided, and the detection accuracy is improved. On the other hand, as the electrical parameters are obtained by arranging the anomaly detection sensor in the terminal, whether the terminal is in the target environment or not can be rapidly and accurately determined, and further the retraction operation of the sliding block module is timely triggered when the terminal is in the target environment, so that the damage probability of the terminal is reduced, the safety of the terminal is ensured, and the convenience and the reliability are improved.
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 disclosure.
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. It will be apparent to those of ordinary skill in the art that the drawings in the following description are merely examples of the disclosure and that other drawings may be derived from them without undue effort.
Fig. 1 schematically illustrates a schematic diagram of a slider control method in a terminal in an exemplary embodiment of the present disclosure;
FIG. 2 schematically illustrates a diagram of determining whether a target environment is present in an exemplary embodiment of the present disclosure;
FIG. 3 schematically illustrates a schematic diagram of a retraction operation in an exemplary embodiment of the present disclosure;
FIG. 4 schematically illustrates a particular flow chart of slider control in a terminal in an exemplary embodiment of the present disclosure;
fig. 5 schematically illustrates a block diagram of a slider control in a terminal in an exemplary embodiment of the present disclosure;
fig. 6 schematically illustrates a block diagram of an electronic device in an exemplary embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may 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 the 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 to give a thorough understanding of embodiments of the present disclosure. One skilled in the relevant art will recognize, however, that the aspects of the disclosure may be practiced without one or more of the specific details, or with other methods, components, devices, steps, etc. 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 a repetitive description thereof will be omitted. Some of the block diagrams shown in the figures 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 networks and/or processor devices and/or microcontroller devices.
In the related art, to determine whether the acceleration sensor is in a falling state or not and in the liquid, a larger data change must be satisfied, for example, data in a certain axial direction of the terminal system needs to be continuously in the falling state to determine that the terminal system is falling. If the liquid falls to a very low level, it will fail and not necessarily be considered a drop. In addition, whether the touch screen is in liquid is detected, so that the intelligent slider retraction device has an intelligent slider retraction function and a slider protection function.
In the two schemes, although the slider module can be protected, the slider module cannot be protected quickly and timely due to the fact that the identification state is not timely. After the interface is immersed in liquid or leaked, there is corrosion for a certain time, resulting in the risk of short circuit of the main board caused by excessive input voltage, thereby damaging the terminal.
In order to solve the above-mentioned problems, the present exemplary embodiment first provides a slider control method in a terminal, which can be applied to an application scenario for effectively controlling slider modules configured in various terminals. Next, a slider control method in the terminal in the present exemplary embodiment will be specifically described with reference to the drawings.
In step S110, an electrical parameter of the terminal is acquired by an abnormality detection sensor in the terminal.
In this exemplary embodiment, the terminal may be any intelligent terminal with a photographing function, for example, may include, but not limited to, a mobile phone, a tablet computer, a security paging machine, a photographing camera, and other image equipment. The terminal of the present exemplary embodiment may be configured with a slider module, where the slider module may be used to control an image sensor and/or other types of sensors, for example, to hide an image sensor that needs to be disposed on a screen, such as a front camera, so that the image sensor is located in a slider module in a terminal body below the screen, and may drive a motor through a motor driving integrated circuit to dynamically lift the slider module. Alternatively, all the front camera and the rear camera may be disposed in the slider module, which is not particularly limited herein. In the present exemplary embodiment, a mobile phone provided with a slider module that can be raised and lowered (e.g., from the top of a terminal or other positions) at the time of photographing is described as an example.
Because the external interface of the terminal is corroded after a certain time when immersed in liquid or leaked, the input voltage of the external interface becomes high, and the input voltage becomes high to cause the short circuit of the main board of the terminal, an abnormality detection sensor can be arranged for executing the function of detecting whether the terminal is in a liquid environment. The anomaly detection sensor may include, but is not limited to, an overvoltage protection chip OVP (Over Voltage Protection). The abnormality detection sensor may be disposed in an interface of the terminal and electrically connected to an input voltage VIN pin in the interface of the terminal. The interface here may be an external interface of the terminal, which may include, for example, a USB (Universal Serial Bus ) interface or a TYPE C interface, which is not particularly limited herein.
The electrical parameters include, but are not limited to, voltage parameters of the terminals, current parameters, etc., which are described herein as examples. After the electrical parameter is obtained, it may be determined whether the terminal is in the target environment based on the electrical parameter.
Next, with continued reference to fig. 1, in step S120, if it is determined that the terminal is in the target environment according to the electrical parameter, a retracting operation of a slider module for controlling an image sensor in the terminal is triggered.
In the present exemplary embodiment, the target environment may be various types of environments that may cause damage to the terminal, such as a liquid environment. Any type of liquid may be included in the liquid environment, such as water, acidic liquids, corrosive liquids, and the like. If the terminal is in the liquid environment, the external liquid environment may corrode the terminal, affect parts such as a main board of the terminal, and cause a certain damage to the terminal, thereby causing damage to the terminal and affecting the reliability and usability of the terminal.
A specific flowchart for determining whether a terminal is in a target environment is schematically shown in fig. 2, and referring to fig. 2, the flowchart mainly includes step S210 and step S220, where:
in step S210, it is determined whether the voltage parameter of the terminal satisfies a threshold condition by an abnormality detection sensor in the terminal at a timing.
In this exemplary embodiment, an overvoltage protection chip may be added to the input voltage VIN pin of the USB interface or the TYPE C interface of the terminal. After the addition of the abnormality detection sensor, the abnormality detection sensor may be initialized and a threshold condition written into a register in the abnormality detection sensor. The threshold condition is used for measuring whether the electrical parameters are qualified or not, and can be specifically set according to actual requirements. For example, when the parameter under consideration is a voltage parameter, the threshold condition may be a voltage threshold. Specifically, different firmware and liquid have different corresponding resistance values, and then the voltage values reflected after being collected by the analog-digital sensor are different. For example, the abnormality detection sensor corresponds to a voltage value of 150-200 for the liquid and 100-130 for the firmware. The unit of data collected by the abnormality detection sensor is converted data of 8 paths, and is not a voltage unit.
The overvoltage protection chip is only one sensor in the mobile phone terminal system. An end system refers to a system consisting of high performance CPU, RAM, ROM and other devices. The application within the end system may set an option "drop in liquid auto-detect retract slider". Further, after adding an overpressure protection chip, the terminal system can start the liquid drop detection and recovery slider function.
After the abnormality detection sensor is started and initialized and the system is powered on normally, the abnormality detection sensor is always in a normal work detection state, and at the moment, the current electrical parameters of the terminal can be detected at fixed time through the abnormality detection sensor so as to be convenient for notifying the terminal system through the interrupt triggering scene. That is, the current voltage parameter of the terminal is detected at a timing, and the terminal system reads a threshold condition set in advance from a register of the abnormality detection sensor through a bus I2C (Inter-Integrated Circuit) for connecting the microcontroller and its peripheral devices. The current voltage parameter may be further compared with a threshold condition to determine whether the voltage parameter satisfies the threshold condition.
In step S220, if the voltage parameter meets a threshold condition, it is determined that the terminal is in the target environment.
The voltage parameter satisfying the threshold condition here 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, the terminal may be considered to be 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, the terminal may be considered not to be in the liquid environment.
In the present exemplary embodiment, whether the terminal is in the target environment or not can be accurately detected by the abnormality detection sensor provided in the terminal, so that limitations in the related art are avoided, and detection efficiency and detection accuracy are improved.
In the present 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 acquire the notification event reported by the abnormality detection sensor and notify related services to send out an instruction for retracting the slider module so as to trigger the action of retracting the slider module. Specifically, the notification terminal system may be triggered to trigger the retracting operation of the slider module while the abnormality detection sensor interrupts the pin.
If the currently detected voltage parameter meets the threshold condition, the abnormality detection sensor can interrupt the pin INT, so that a passage between the pin and the charging input is cut off, and the terminal is prevented from being internally short-circuited and the like due to corrosion by liquid, so that advanced protection is performed. Although the terminal has a waterproof function, there may still exist some corrosion caused by immersion liquid or leakage liquid in the USB interface or the TPYE C interface, resulting in the risk of excessively high input voltage and short circuit of the motherboard. Therefore, an overvoltage protection chip can be added in the input voltage VIN pin of the terminal USB interface or the TYPE C interface. Under the conditions of high voltage, high current and high temperature, the switch control between the VIN input voltage and the PMIC charging input is controlled, and the external voltage is prevented from being impacted to the internal circuit. And the overvoltage protection chip can detect whether the external interface is corroded by liquid or not, and plays a role in controlling the switch of the internal charging voltage. This can reduce in the long-term use to the waterproof function of most terminals, outside liquid corrodes USB interface or TYPE C interface, prevents to lead to the voltage of input voltage VIN pin to appear unusual.
Based on this, the detection principle of the abnormality detection sensor is specifically: after the liquid is immersed into the USB interface, the voltage value corresponding to the terminal is detected at fixed time, and if the voltage value reaches a critical threshold value set in the overvoltage protection chip, an interrupt is triggered to inform the system to realize related actions.
A schematic view of the retracting slide module is schematically shown in fig. 3, referring to fig. 3, mainly including steps S310 to S330, and steps S310 to S330 are specific embodiments of step S120, where:
in step S310, it is detected whether the slider module is in a raised state;
in step S320, if it is detected that the slider module is in the raised state, the retracting operation of the slider module is triggered;
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 to detect whether the terminal is in the target environment.
In the present exemplary embodiment, when the retracting operation of the slider module is triggered after the abnormality detection sensor interrupts the pin, it is first possible to detect whether the slider module is in the raised state. Specifically, the judgment can be made by the following two modes: in the first mode, whether the flag bit is lifted is recorded by the self. The flag bit is a position determined in advance and is used for indicating a critical value of the lifting of the slider module. If the slider module exceeds the flag bit, the slider module may be considered to be in a raised state. And in the second mode, the current position is calculated through a preset sensor preset in the sliding block module so as to judge whether the sliding block module is lifted. The preset sensor may be a HALL sensor. In particular, a HALL sensor may be installed at a fixed position in the terminal, and a magnet may be installed in the slider module, and whether the position of the magnet is higher than the HALL sensor may be determined by comparing the position of the magnet with the position of the HALL sensor. If so, the slider module may be considered to be in a raised state. If not, the slider module may be considered not to be in a raised state.
Based on this, if it is determined that the voltage parameter of the terminal satisfies the threshold condition, it can be continued to determine whether the slider module is in the raised state. If the slider module is determined to be in the lifting state, the overvoltage protection chip reports the state that the terminal falls into liquid to the terminal system, and the service is notified to trigger the retraction operation of the slider module. If the voltage parameter of the terminal meets the threshold value condition but the sliding block module is not in the lifting state, the retraction operation of the sliding block module is not triggered, and the abnormal detection sensor is controlled to continue the normal detection flow. If the voltage parameter of the terminal does not meet the threshold condition, the abnormal detection sensor is directly controlled to continue the normal detection flow so as to detect whether the terminal is in the target environment or not, and the retraction operation of the slider module is not triggered.
In the present exemplary embodiment, whether the terminal is in the target environment can be accurately determined by whether the voltage parameter of the terminal satisfies the threshold condition; and when judging that the terminal is in the target environment and the slider module is in a lifting state, overvoltage protection can be carried out through the interrupt pin, and the slider module is timely retracted, so that damage to the terminal and the slider module caused by an external liquid environment is avoided, parts such as a main board of the terminal are affected, and the influence on reliability and usability of the terminal is also avoided.
It is to be added that when the slider module is retracted, a prompt signal can be provided, so that the retraction operation can be timely reminded and the user can be facilitated through the prompt signal. The prompting signal can comprise a sound signal, a text signal, a light signal and other signals in any form. For example, the terminal can be reminded in a sound mode, and the terminal can be reminded to fall into liquid in a text mode, so that a user can know whether the slider module is completely retracted or not in time, and corresponding measures are taken to protect the terminal in time.
An overall flow chart of the slider process is schematically shown in fig. 4, and with reference to fig. 4, mainly comprises the following steps:
in step S401, when the abnormality detection sensor is initialized, a threshold condition is written into a register of the abnormality detection sensor. The abnormality detection sensor is an overvoltage protection chip.
In step S402, the terminal system turns on the liquid drop detection retraction slider function.
In step S403, the overvoltage protection chip is in a normal operation detection state.
In step S404, the overvoltage protection chip determines whether the acquired voltage parameter satisfies a threshold condition. If yes, go to step S405; if not, the process returns to step S403.
In step S405, the overvoltage protection chip reports the state of falling into the liquid detection to the terminal system.
In step S406, the terminal system acquires a notification event, and the notification service triggers an action of retracting the slider module.
In step S407, the service issues a command to retract the slider module and prompts. The prompting may be performed, for example, by a prompting signal.
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.
In step S409, if the slider module is in the raised state, the slider module is retracted.
In step S410, if the slider module is not in the raised state, the slider module is not retracted or is not processed.
According to the technical scheme in FIG. 4, the electrical parameters are obtained through the anomaly detection sensor, so that whether the terminal is in a target environment or not can be accurately judged, further, the retraction operation of the slider module can be triggered in time when the slider module is in a lifting state through the interrupt pins, the slider module of the terminal is protected from being corroded by liquid and the like, and the safety and the reliability of the terminal are improved.
In the present exemplary embodiment, there is also provided a slider control apparatus in a terminal, referring to fig. 5, a slider control apparatus 500 in a terminal mainly includes the following modules:
a parameter obtaining module 501, configured to obtain an electrical parameter of a terminal through an anomaly detection sensor in the terminal;
the slider retraction module 502 may be configured to trigger a retraction operation of a slider module in the terminal for controlling the image sensor if it is determined that the terminal is in the target environment according to the electrical parameter.
In one exemplary embodiment of the present disclosure, the electrical parameter includes a voltage parameter, and the slider retraction module includes: and the environment detection module is used for detecting the voltage parameter of the terminal at fixed time through the abnormality detection sensor and determining that the terminal is in the target environment when the voltage parameter meets a threshold condition.
In an exemplary embodiment of the present disclosure, the apparatus further comprises: and the comparison module is used for reading the threshold condition from the abnormality detection sensor and comparing the voltage parameter with the threshold condition to judge whether the voltage parameter meets the threshold condition.
In one exemplary embodiment of the present disclosure, a slider retraction module includes: and the retraction triggering module is used for triggering the retraction operation of the sliding block module through the interrupt pin of the abnormality detection sensor.
In one exemplary embodiment of the present disclosure, the retraction triggering module includes: the first judging module is used for triggering the retraction operation of the sliding block module if the sliding block module is detected to be in a lifting state; and the second judging module is used for controlling the abnormality detection sensor to continuously detect whether the terminal is in the target environment or not if the slider module is detected not to be in the lifting state.
In one exemplary embodiment of the present disclosure, the abnormality detection sensor includes an overvoltage protection chip, and the abnormality detection sensor is provided at an interface of the terminal.
In an exemplary embodiment of the present disclosure, the apparatus further comprises: and the prompt module is used for providing a prompt signal so as to prompt the retraction 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 slider control method in the corresponding terminal, so that the details are not repeated here.
It should be noted that although in the above detailed description several modules or units of a device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit in accordance with embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
Furthermore, although the steps of the methods in the present disclosure are depicted in a particular order in the drawings, this does not require or imply that the steps must be performed in that particular order or that all illustrated steps be performed in order to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step to perform, and/or one step decomposed into multiple steps to perform, 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 will appreciate that the various aspects of the invention may be implemented as a system, method, or program product. Accordingly, aspects of the invention may be embodied in the following forms, namely: an entirely hardware embodiment, an entirely software embodiment (including firmware, micro-code, etc.) or an embodiment combining hardware and software aspects may be referred to herein as a "circuit," module "or" system.
An electronic device 600 according to this embodiment of the invention is described below with reference to fig. 6. The electronic device 600 shown in fig. 6 is merely an example, and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in fig. 6, the electronic device 600 is in the form of a general purpose computing device. Components of electronic device 600 may include, but are not limited to: the at least one processing unit 610, the at least one memory unit 620, and a bus 650 connecting the different system components, including the memory unit 620 and the processing unit 610.
Wherein the storage unit stores program code that is executable by the processing unit 610 such that the processing unit 610 performs steps according to various exemplary embodiments of the present invention described in the above-described "exemplary methods" section of the present specification. For example, the processing unit 610 may perform the steps as shown in fig. 1.
The storage unit 620 may include readable media in the form of volatile storage units, such as Random Access Memory (RAM) 6201 and/or cache memory unit 6202, and may further include Read Only Memory (ROM) 6203.
The storage unit 620 may also include a program/utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
Bus 630 may be a local bus representing one or more of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or using any of a variety of bus architectures.
The electronic device 600 may also communicate with one or more external devices 700 (e.g., keyboard, pointing device, bluetooth device, etc.), one or more devices that enable a user to interact with the electronic device 600, and/or any device (e.g., router, modem, etc.) that enables the electronic device 600 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 650. Also, electronic device 600 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, through network adapter 660. As shown, network adapter 660 communicates with other modules of electronic device 600 over bus 630. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 600, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
In an exemplary embodiment of the present disclosure, a computer-readable storage medium having stored thereon a program product capable of implementing the method described above in the present specification is also provided. In some possible embodiments, the various aspects of the invention may also be implemented in the form of a program product comprising program code for causing a terminal device to carry out the steps according to the various exemplary embodiments of the invention as described in the "exemplary methods" section of this specification, when said program product is run on the terminal device.
A program product for implementing the above-described method according to an embodiment of the present invention may employ a portable compact disc read-only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ 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 can be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a 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), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
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.
Program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. 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, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, 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 (e.g., connected via the Internet using an Internet service provider).
Furthermore, the above-described drawings are only schematic illustrations of processes included in the method according to the exemplary embodiment of the present invention, and are not intended to be limiting. It will be readily appreciated that the processes shown in the above figures do not indicate or limit the temporal order of these processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, for example, among a plurality of modules.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (7)

1. A slider control method in a terminal, comprising:
acquiring electrical parameters of a terminal through an abnormality detection sensor in the terminal; the abnormality detection sensor is an overvoltage protection chip and is arranged in an input voltage pin of an external interface of the terminal; the electrical parameter includes a voltage parameter;
if the terminal is determined to be in a target environment which can cause damage to the terminal according to the electrical parameter meeting a threshold condition, reporting the current state of the terminal to a terminal system by an abnormality detection sensor, acquiring a reported event by the bottom layer of the terminal system, and notifying related services to send out instructions to trigger the action of retracting the slider module;
when the sliding block module is in a lifting state, the pin is interrupted by the abnormality detection sensor to cut off a passage between the pin and the charging input so as to prevent the input voltage from becoming high, and the switch control between the input voltage and the charging input and the switch control function of the internal charging voltage are realized by the overvoltage protection chip, so that the sliding block module used for controlling the image sensor in the terminal is triggered to be retracted; the sliding block module can be dynamically lifted.
2. The method for controlling a slider in a terminal according to claim 1, characterized in that the method further comprises:
the threshold condition is read from the abnormality detection sensor, and the voltage parameter is compared with the threshold condition to determine whether the voltage parameter satisfies the threshold condition.
3. The method of slider control in a terminal according to claim 1, wherein triggering the retracting operation of the slider module comprises:
triggering the retraction operation of the slider module if the slider module is detected to be in a lifting state;
and if the slider module is detected not to be in the lifting state, controlling the abnormality detection sensor to continuously detect whether the terminal is in the target environment.
4. The method for controlling a slider in a terminal according to claim 1, characterized in that the method further comprises:
a prompt signal is provided to prompt the retraction operation.
5. A slider control apparatus in a terminal, comprising:
the parameter acquisition module is used for acquiring the electrical parameters of the terminal through an abnormality detection sensor in the terminal; the abnormality detection sensor is an overvoltage protection chip and is arranged in an input voltage pin of an external interface of the terminal; the electrical parameter includes a voltage parameter;
the sliding block recovery module is used for determining that the terminal is in a target environment capable of damaging the terminal according to the electrical parameters meeting a threshold condition, reporting the current state of the terminal to a terminal system by an abnormality detection sensor, acquiring a reported event at the bottom layer of the terminal system, and notifying related services to send out instructions to trigger actions of recovering the sliding block module;
when the sliding block module is in a lifting state, the pin is interrupted by the abnormality detection sensor to cut off a passage between the pin and the charging input so as to prevent the input voltage from becoming high, and the switch control between the input voltage and the charging input and the switch control function of the internal charging voltage are realized by the overvoltage protection chip, so that the sliding block module used for controlling the image sensor in the terminal is triggered to be retracted; the sliding block module can be dynamically lifted.
6. An electronic device, comprising:
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 of any of claims 1-4 via execution of the executable instructions.
7. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements a slider control method in a terminal as claimed in any one of claims 1-4.
CN201910678869.4A 2019-07-25 2019-07-25 Slider control method and device in terminal, electronic equipment and storage medium Active CN110490006B (en)

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 equipment and 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 equipment and 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 equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110490006B (en)

Citations (2)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (2)

* Cited by examiner, † Cited by third party
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
US20220043067A1 (en) Charging method and device, charging system, electronic equipment and storage medium
KR102069404B1 (en) Apparatuses, systems, and methods for detecting and reacting to exposure of an electronic device to moisture
CN110207784B (en) Transformer oil level warning method and device and terminal equipment
CN108845655B (en) Electronic equipment control method and device, control circuit and electronic equipment
CN109217248B (en) Fault processing method and system for connector
CN104035702B (en) A kind of method preventing intelligent terminal's maloperation and intelligent terminal
EP2455773A1 (en) Detecting circuit for electric quantity, processing device and method for state detection of mobile telephone in standby
KR20180012246A (en) Sensor-based signal transmission methods and apparatus
CN102749496A (en) Multi-functional digital electronic detonator current detection device
CN106897177B (en) Short circuit detection and protection method and system based on mobile terminal fingerprint system
CN105005526A (en) Information reminding method and mobile terminal
CN106711933B (en) A kind of equipment abnormal electrical power supply processing method, device and video camera
CN110490006B (en) Slider control method and device in terminal, electronic equipment and storage medium
US11466972B2 (en) Systems and methods for detecting battery system swelling in information handling systems
EP2448122A2 (en) Electronic control device
CN116340038A (en) Method and device for protecting erasing power-down data of flash memory
US20140237268A1 (en) Moisture shutdown control
CN111186332B (en) Charging pile working mode switching method and system, computer readable storage medium and computer equipment
CN111716350B (en) Collision detection method and device, collision detector, system and storage medium
CN103675693A (en) Marine battery detection device
JP5422312B2 (en) Protective relay
CN112988445A (en) Computer board card fault diagnosis method and system and computer board card
CN105141836A (en) Method and device for reducing false triggering of rotating camera of terminal

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