Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present application.
A control method of theelectronic device 100 according to an embodiment of the present application is described below with reference to fig. 1 to 2.
Referring to fig. 1-2, a control method of anelectronic device 100 according to an embodiment of a first aspect of the present application is provided, where theelectronic device 100 includes a housing 1, a main board, a battery, apreset function module 2, and a driving mechanism, the main board and the battery are disposed in the housing 1, the battery, the driving mechanism, and thepreset function module 2 are electrically connected to the main board, thepreset function module 2 is slidable between a first position housed in the housing 1 and a second position exposed outside the housing 1, and the driving mechanism is configured to drive thepreset function module 2 to slide.
The control method comprises the following steps:
detecting the electric quantity of the battery as Qx;
judging whether the Qx is smaller than a first preset value Q1,
when Qx is less than Q1, detecting the position of thepreset function module 2, and when thepreset function module 2 is at the first position, controlling the driving mechanism to be kept in a non-working state, wherein at the moment, even if thepreset function module 2 is triggered, the driving mechanism is kept in the non-working state, the driving mechanism cannot push thepreset function module 2 to slide outwards, and thepreset function module 2 is still kept at the first position, so that the condition that thepreset function module 2 cannot be reset due to insufficient electric quantity can be avoided;
when Qx is larger than or equal to Q1 and thepreset function module 2 is triggered, the driving mechanism can be controlled to work. That is, when the electric quantity Qx of the battery is greater than or equal to the first preset value Q1, if thepreset function module 2 is triggered, the driving mechanism may be controlled to be in an operating state to drive thepreset function module 2 to slide out or slide in. Specifically, if thepreset function module 2 is at the first position, thepreset function module 2 is triggered to slide out to the second position, and the preset function of thepreset function module 2 can be realized; if thepreset function module 2 is located at the second position, thepreset function module 2 is triggered to slide to the first position, so that thepreset function module 2 is hidden in the housing 1 when not in use.
Of course, when Qx is greater than or equal to Q1 and thepreset function module 2 is not triggered, the driving mechanism is kept in the non-working state, that is, thepreset function module 2 is not triggered, and the driving mechanism does not drive thepreset function module 2 to slide.
It should be explained that the process of sliding thepreset function module 2 from the first position to the second position is called sliding out, and the process of sliding thepreset function module 2 from the second position to the first position is called sliding in.
When thepreset function module 2 includes at least one of a camera, a proximity sensor and a receiver, the number of corresponding holes formed in the glass cover plate of theelectronic device 100 can be reduced or avoided, which is beneficial to the realization of the overall screen of theelectronic device 100.
Thepreset function module 2 may only include one of a camera, a proximity sensor and a receiver, for example, thepreset function module 2 may only include a camera, and at this time, the camera may be used and hidden by sliding out and sliding in thepreset function module 2; or, the presetfunctional module 2 may include two of a camera, a proximity sensor and a receiver, for example, the presetfunctional module 2 may include only a camera and a receiver; or, thepreset function module 2 may include a camera, a proximity sensor and a receiver at the same time. Of course, thepreset function module 2 may include other components besides the camera, the proximity sensor and the receiver, and is not limited to the above components.
Optionally, thepreset function module 2 is triggered by a shortcut key, an application start trigger, or manually. When thepreset function module 2 is triggered by a shortcut key, for example, the shortcut key may be triggered by pressing a volume up-down key, pressing the volume up-down key triggers thepreset function module 2 to slide out, and pressing the volume down key triggers thepreset function module 2 to slide in. When the trigger mode of the presetfunctional module 2 is application start trigger, the trigger mode can be triggered by starting of the corresponding application program, for example, when the presetfunctional module 2 includes a camera, when the shooting program is started, the presetfunctional module 2 can be triggered to slide out to the second position, and when the shooting program is closed, the presetfunctional module 2 can be triggered to slide into the first position. When the trigger mode of thepreset function module 2 is manual trigger, the trigger of thepreset function module 2 can be realized by setting the pressure sensor and pressing the position of the pressure sensor by hand, and the trigger slide-out and the trigger slide-in can be distinguished by setting different pressing time.
According to the control method of theelectronic device 100, the electric quantity of the battery is monitored in real time, when the electric quantity of the battery is low, the driving mechanism is controlled to be kept in the non-working state, even if the presetfunctional module 2 is triggered, the presetfunctional module 2 cannot slide out, the situation that the presetfunctional module 2 cannot reset due to insufficient electric quantity can be avoided, and the stable sliding-out and sliding-in of the presetfunctional module 2 can be effectively guaranteed.
According to some embodiments of the present application, when Qx < Q1 and thepreset function module 2 deviates from the first position (the deviation of thepreset function module 2 from the first position means that thepreset function module 2 is not at the first position, including thepreset function module 2 at the second position or at a position between the first position and the second position), the driving mechanism is controlled to operate to drive thepreset function module 2 to slide to the first position. Therefore, if in the sliding process of thepreset function module 2 or when thepreset function module 2 is located at the second position, the detected electric quantity Qx of the battery is smaller than the first preset value Q1, and the driving mechanism is controlled to work to drive thepreset function module 2 to slide to the first position, so that the situation that thepreset function module 2 cannot be reset due to insufficient electric quantity in the sliding process (the sliding process comprises the sliding-out process and the sliding-in process) or the sliding process to the second position can be avoided, the situation that thepreset function module 2 cannot be reset due to insufficient electric quantity is further avoided, and the stable sliding-out and sliding-in of thepreset function module 2 are further effectively ensured.
According to some embodiments of the present application, it is determined whether the battery power Qx is less than a second predetermined value Q2, and when Qx is less than Q2 and thepredetermined function module 2 is triggered to slide out or thepredetermined function module 2 is in a second position, a low power reminder appears on the user interface of theelectronic device 100, where Q2 is greater than Q1. Therefore, when the electric quantity of the battery is detected to be low and the electric quantity is larger than the second preset value Q2, the user can be reminded of that the electric quantity of the battery is low in time, if the electric quantity Qx of the battery is smaller than the second preset value Q2 and is larger than or equal to the first preset value Q1, at the moment, the user can select to trigger thepreset function module 2 to slide out (when thepreset function module 2 is located at the first position), the user can also select not to trigger thepreset function module 2 to slide out (when thepreset function module 2 is located at the first position), or the user can select to trigger thepreset function module 2 to slide in time (when thepreset function module 2 is located at the second position). If the electric quantity Qx of the battery is smaller than the first preset value Q1, even if thepreset function module 2 is triggered to slide out, the driving mechanism will not push thepreset function module 2 to slide out because the driving mechanism is kept in the non-working state.
According to some embodiments of the present application, when Q1 is not less than Qx < Q2 and thepreset function module 2 is triggered to slide out, the user interface of theelectronic device 100 is prompted by a low battery and simultaneously prompted by whether to slide out of thepreset function module 2. At this moment, the user can select the roll-off to presetfunctional module 2 as required, and the user also can choose not to roll off to presetfunctional module 2 to avoid the electric quantity not enough to lead to presetting the unable circumstances that resets offunctional module 2, can effectively guarantee to preset stable roll-off and the roll-in offunctional module 2 simultaneously, can satisfy user demand's variety.
According to some embodiments of the present application, when Q1 is not less than Qx < Q2 and thepreset function module 2 is in the second position, the user interface of theelectronic device 100 is prompted by the low battery and is simultaneously prompted by whether to slide into thepreset function module 2. From this, when the electric quantity of battery is lower, can in time remind the user, the user can choose to slide in as required andpredetermine function module 2, and the user also can choose not to slide in andpredetermine function module 2 to avoiding the electric quantity not enough to lead to predetermineeing the condition thatfunction module 2 can't reset, can effectively guarantee to predetermine stable roll-off offunction module 2 and the variety that can satisfy user's user demand when sliding in.
According to some optional embodiments of the application, thepreset function module 2 comprises a camera, and when thepreset function module 2 is triggered to slide out and Qx is larger than or equal to Q2, a shooting program of the camera is started, wherein Q2 is a second preset value and Q2 is larger than Q1. Therefore, when the electric quantity is sufficient, the shooting program of the camera is started when the presetfunctional module 2 is triggered to slide out to the second position, and the camera is simple and convenient.
Theelectronic device 100 according to the embodiment of the second aspect of the present application includes: casing 1, mainboard, battery, predeterminefunctional module 2, actuating mechanism, electric quantity detection piece and position detection piece, mainboard and battery are all established in casing 1, and the battery, predeterminefunctional module 2, actuating mechanism, electric quantity detection piece and position detection piece and all be connected with the mainboard electricity. Butpredetermine function module 2 and take in the first position in casing 1 and expose in the second position outside casing 1 between slidable,predetermine function module 2 and include at least one in camera, proximity sensor and the receiver, actuating mechanism is used for the drive topredetermine function module 2 gliding, and electric quantity detection spare is used for detecting the battery electric quantity, and position detection spare is used for detecting predetermines 2 positions of function module.
The electric quantity detecting part detects the electric quantity of the battery as Qx, judges whether the Qx is smaller than a first preset value Q1,
when Qx is less than Q1, the position detection piece detects the position of the presetfunctional module 2, when the presetfunctional module 2 is at the first position, the driving mechanism is controlled to be kept in a non-working state, at the moment, even if the presetfunctional module 2 is triggered, the driving mechanism is kept in the non-working state, the driving mechanism cannot push the presetfunctional module 2 to slide outwards, the presetfunctional module 2 is still kept at the first position, and therefore the situation that the presetfunctional module 2 cannot be reset due to insufficient electric quantity can be avoided;
when Qx is larger than or equal to Q1 and thepreset function module 2 is triggered, the driving mechanism is controlled to work. That is, when the electric quantity Qx of the battery is greater than or equal to the first preset value Q1, if thepreset function module 2 is triggered, the driving mechanism may be controlled to be in an operating state to drive thepreset function module 2 to slide out or slide in. Specifically, if thepreset function module 2 is at the first position, thepreset function module 2 is triggered to slide out to the second position, and the preset function of thepreset function module 2 can be realized; if thepreset function module 2 is located at the second position, thepreset function module 2 is triggered to slide to the first position, so that thepreset function module 2 is hidden in the housing 1 when not in use.
Of course, when Qx is greater than or equal to Q1 and thepreset function module 2 is not triggered, the driving mechanism is kept in the non-working state, that is, thepreset function module 2 is not triggered, and the driving mechanism does not drive thepreset function module 2 to slide.
According to theelectronic device 100 of the embodiment of the application, through roll-off and the roll-in of presettingfunctional module 2, realize hiding and using of presettingfunctional module 2, and should presetfunctional module 2 and include the camera, at least one in proximity sensor and the receiver, be favorable to the realization ofelectronic device 100's the whole screen, electric quantity detection piece and position detection piece through setting up simultaneously, can avoid the electric quantity not enough to lead to presetting the unable condition that resets offunctional module 2, can effectively guarantee to preset stable roll-off and the roll-in offunctional module 2.
According to some embodiments of the application, the position detection member includes a magnetic field generating element and a hall element, the magnetic field generating element and the hall element are respectively fixed on the housing 1 and thepreset function module 2, the hall element is connected with the main board, and the current position of thepreset function module 2 is determined according to a magnetic induction intensity value detected by the hall element. The magnetic induction intensity value detected by the Hall element is inversely proportional to the distance between the Hall element and the magnetic field generating element (the distance between the Hall element and the magnetic field generating element is the distance between the Hall element and the magnetic field generating element), after calibration, the specific position of thepreset function module 2 can be obtained through the detected magnetic induction intensity value, and different corresponding operations can be performed after the specific position is obtained.
According to some embodiments of the present application, the charge detector can be a coulometer. Therefore, the current electric quantity of the battery can be conveniently and accurately detected.
The following describes a control method of theelectronic device 100 and theelectronic device 100 according to an embodiment of the present application with reference to fig. 1-2.
Referring to fig. 1-2, in the present embodiment, theelectronic device 100 includes the above-mentioned housing 1, a main board, a battery, apreset function module 2, a driving mechanism, an electric quantity detection component, and a position detection component, where the main board and the battery are all disposed in the housing 1, and the battery, thepreset function module 2, the driving mechanism, the electric quantity detection component, and the position detection component are all electrically connected to the main board. But predeterminefunction module 2 and take in the first position in casing 1 and expose in the second position outside casing 1 between slidable, predeterminefunction module 2 and include at least one in camera, proximity sensor and the receiver, actuating mechanism is used for the drive to predeterminefunction module 2 gliding, and electric quantity detection spare is used for detecting the battery electric quantity, and position detection spare is used for detectingpredetermines function module 2 position.
The control method of theelectronic device 100 of the present embodiment is briefly described below with reference to fig. 2.
The electric quantity detector detects that the electric quantity of the battery is Qx, and judges the magnitude relation between the Qx and a first preset value Q1 and a second preset value Q2, wherein Q2 is larger than Q1.
When Qx is less than Q1, the user interface of theelectronic device 100 is prompted by low power, and meanwhile, the position of thepreset function module 2 is detected, whether thepreset function module 2 is located at the first position is detected, if thepreset function module 2 is located at the first position, the driving mechanism is controlled to be kept in a non-working state, and at this time, even if thepreset function module 2 is triggered, the driving mechanism cannot push thepreset function module 2 to slide outwards; if thepreset function module 2 is not located at the first position (thepreset function module 2 deviates from the first position, for example, thepreset function module 2 is located at the second position or at a position between the first position and the second position), the driving mechanism is controlled to work to drive thepreset function module 2 to slide to the first position.
When Q1 is not less than Qx is less than Q2, the user interface of theelectronic device 100 is prompted by low power, and the position of thepreset function module 2 is detected. If thepreset function module 2 is detected to be in the first position and thepreset function module 2 is triggered to slide out, the user interface simultaneously pops up a prompt whether to slide out of thepreset function module 2, at this time, the user can select to slide out of thepreset function module 2 according to needs, and the user can also select not to slide out of thepreset function module 2; if thepreset function module 2 is detected to be in the second position, the user interface simultaneously pops up a prompt indicating whether to slide into thepreset function module 2, at this time, the user can select to slide into thepreset function module 2 according to needs, and the user can also select not to slide into thepreset function module 2.
When Qx is larger than or equal to Q2, after thepreset function module 2 is triggered, the driving mechanism is controlled to drive thepreset function module 2 to normally slide out or slide in.
The control method of theelectronic device 100 of the embodiment can avoid the situation that the presetfunctional module 2 cannot be reset due to insufficient electric quantity, and can meet the diversity of the user use requirements while effectively ensuring the stable sliding-out and sliding-in of the presetfunctional module 2.
In some embodiments of the present application,electronic apparatus 100 may be any of a variety of types of computer system devices (only one modality shown by way of example in FIG. 1) that are mobile or portable and that perform wireless communications. Specifically, theelectronic apparatus 100 may be a mobile phone or a smart phone (e.g., an iPhone-based phone), a Portable game device (e.g., Nintendo DS, PlayStation Portable, game Advance, iPhone), a laptop computer, a PDA, a Portable internet device, a music player, and a data storage device, other handheld devices, and a head-mounted device (e.g., a head-mounted device (HMD) such as a watch, an in-ear phone, a pendant, a headset, etc.), and theelectronic apparatus 100 may also be other wearable devices (e.g., an electronic glasses, an electronic garment, an electronic bracelet, an electronic necklace, an electronic tattoo, theelectronic apparatus 100, or a smart watch).
Theelectronic device 100 may also be any of a plurality ofelectronic devices 100, the plurality ofelectronic devices 100 including, but not limited to, cellular phones, smart phones, other wireless communication devices, personal digital assistants, audio players, other media players, music recorders, video recorders, cameras, other media recorders, radios, medical equipment, vehicle transportation equipment, calculators, programmable remote controls, pagers, laptop computers, desktop computers, printers, netbook computers, Personal Digital Assistants (PDAs), Portable Multimedia Players (PMPs), moving Picture experts group (MPEG-1 or MPEG-2) Audio layer (MP3) players, portable medical equipment, and digital cameras, and combinations thereof.
In some cases,electronic device 100 may perform multiple functions (e.g., playing music, displaying videos, storing pictures, and receiving and sending telephone calls). If desired, theelectronic apparatus 100 may be a portable device such as a cellular telephone, media player, other handheld device, wrist watch device, pendant device, earpiece device, or other compact portable device.
In some embodiments of the present invention,electronic device 100 may include control circuitry, which may include storage and processing circuitry. The storage and processing circuitry may be memory, such as hard drive memory, non-volatile memory (e.g., flash memory or other electronically programmable read-only memory used to form a solid state drive, etc.), volatile memory (e.g., static or dynamic random access memory, etc.), etc., although embodiments of the invention are not limited in this respect. Processing circuitry in the storage and processing circuitry may be used to control the operation of theelectronic device 100. The processing circuitry may be implemented based on one or more microprocessors, microcontrollers, digital signal processors, baseband processors, power management units, audio codec chips, application specific integrated circuits, display driver integrated circuits, and the like.
The storage and processing circuitry may be used to run software in theelectronic device 100, such as an Internet browsing application, a Voice Over Internet Protocol (VOIP) phone call application, an email application, a media playing application, operating system functions, and so forth. Such software may be used to perform control operations such as, for example, camera-based image capture, ambient light measurement based on an ambient light sensor, proximity sensor 22 measurement based on a proximity sensor 22, information display functionality implemented based on a status indicator such as a status indicator light of a light emitting diode, touch event detection based on a touch sensor, functionality associated with displaying information on multiple (e.g., layered) displays, operations associated with performing wireless communication functionality, operations associated with collecting and generating audio signals, control operations associated with collecting and processing button press event data, and other functions in theelectronic device 100, to name a few.
Theelectronic device 100 may also include communication circuitry that may be used to provide theelectronic device 100 with the ability to communicate with external devices. The communication circuitry may include analog and digital input-output interface circuitry, and wireless communication circuitry based on radio frequency signals and/or optical signals. The wireless communication circuitry in the communication circuitry may include radio frequency transceiver circuitry, power amplifier circuitry, low noise amplifiers, switches, filters, and antennas. For example, the wireless Communication circuitry in the Communication circuitry may include circuitry to support Near Field Communication (NFC) by transmitting and receiving Near Field coupled electromagnetic signals. For example, the communication circuit may include a near field communication antenna and a near field communication transceiver. The communications circuitry may also include cellular telephone transceiver and antennas, wireless local area network transceiver circuitry and antennas, and so forth.
Theelectronic device 100 may also include input-output circuitry. The input-output circuit may be used to enable theelectronic apparatus 100 to implement input and output of data, i.e., to allow theelectronic apparatus 100 to receive data from an external device and also to allow theelectronic apparatus 100 to output data from theelectronic apparatus 100 to the external device. The input-output circuit may further include a sensor. The sensors may include ambient light sensors, light and capacitance based proximity sensors 22, touch sensors (e.g., based on optical touch sensors and/or capacitive touch sensors, where the touch sensors may be part of a touch display screen or may be used independently as a touch sensor structure), acceleration sensors, and other sensors, among others.
The input-output circuitry may also include one or more displays, such as a display. The display may include one or a combination of liquid crystal displays, organic light emitting diode displays, electronic ink displays, plasma displays, displays using other display technologies. The display may include an array of touch sensors (i.e., the display may be a touch display screen). The touch sensor may be a capacitive touch sensor formed by a transparent touch sensor electrode (e.g., an Indium Tin Oxide (ITO) electrode) array, or may be a touch sensor formed using other touch technologies, such as acoustic wave touch, pressure sensitive touch, resistive touch, optical touch, and the like, and embodiments of the invention are not limited thereto.
Theelectronic device 100 may also include an audio component. The audio components may be used to provide audio input and output functionality for theelectronic device 100. Audio components in theelectronic device 100 may include speakers, microphones, buzzers, tone generators, and other components for generating and detecting sound.
In the description herein, reference to the description of the terms "one embodiment," "some embodiments," "an illustrative embodiment," "an example," "a specific example," or "some examples" or the like means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
While embodiments of the present application have been shown and described, it will be understood by those of ordinary skill in the art that: various changes, modifications, substitutions and alterations can be made to the embodiments without departing from the principles and spirit of the application, the scope of which is defined by the claims and their equivalents.