WO2018133612A1 - Event indication method and mobile terminal - Google Patents

Event indication method and mobile terminal Download PDF

Info

Publication number
WO2018133612A1
WO2018133612A1 PCT/CN2017/117427 CN2017117427W WO2018133612A1 WO 2018133612 A1 WO2018133612 A1 WO 2018133612A1 CN 2017117427 W CN2017117427 W CN 2017117427W WO 2018133612 A1 WO2018133612 A1 WO 2018133612A1
Authority
WO
WIPO (PCT)
Prior art keywords
acceleration
mobile terminal
flash
screen
preset
Prior art date
Application number
PCT/CN2017/117427
Other languages
French (fr)
Chinese (zh)
Inventor
刘晨曦
Original Assignee
维沃移动通信有限公司
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 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2018133612A1 publication Critical patent/WO2018133612A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72451User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to schedules, e.g. using calendar applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72484User interfaces specially adapted for cordless or mobile telephones wherein functions are triggered by incoming communication events
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M19/00Current supply arrangements for telephone systems
    • H04M19/02Current supply arrangements for telephone systems providing ringing current or supervisory tones, e.g. dialling tone or busy tone
    • H04M19/04Current supply arrangements for telephone systems providing ringing current or supervisory tones, e.g. dialling tone or busy tone the ringing-current being generated at the substations
    • H04M19/048Arrangements providing optical indication of the incoming call, e.g. flasher circuits

Definitions

  • the embodiments of the present disclosure relate to the field of communications technologies, and in particular, to a method for prompting an event and a mobile terminal.
  • mobile terminals have become an indispensable part of people's lives, enabling accessibility anywhere, anytime.
  • applications are usually installed in the mobile terminal, and many common functions are provided to bring convenience to people's lives.
  • the mobile terminal In order to remind the user in a dimly lit environment, the mobile terminal will drive the flash to flash when the alarm sounds and an incoming call is made.
  • the user places the mobile terminal more casually, and the position of the flash is fixed.
  • the flash may be blocked, the user cannot see the light, loses the prompt function, and has poor practicability.
  • the embodiment of the present disclosure provides a method for prompting an event and a mobile terminal to solve the problem that the flash may be obscured to cause a loss of prompting effect.
  • a method for prompting an event is provided, the method being applied to a mobile terminal, wherein the mobile terminal respectively sets at least one flash on at least two different surfaces, the method comprising:
  • a flash configured in the mobile terminal according to the screen orientation
  • the flash is driven to blink.
  • a mobile terminal configured with at least one flash on at least two different surfaces, and the mobile terminal includes:
  • a screen orientation detecting module configured to detect a screen orientation of the mobile terminal when the specified event is monitored
  • a flash association module for associating a flash configured in the mobile terminal according to the screen orientation
  • a flashing drive module for driving the flash to blink.
  • an embodiment of the present disclosure provides a mobile terminal, including: a processor, a memory, and a computer program stored on the memory and executable on the processor, the computer program being the processor The steps in the prompting method of implementing the event as described above at the time of execution.
  • an embodiment of the present disclosure provides a computer readable storage medium having stored thereon a computer program that, when executed by a processor, implements execution by a mobile terminal as described above The steps in the prompt method of the event.
  • the screen orientation of the mobile terminal is detected, the corresponding flash is flashed, the event is prompted, and the appropriate flash is dynamically associated with the screen orientation of the mobile terminal. Prompt to reduce the situation that the flash is blocked due to the fixed position, to ensure the prompt function of the flash, and improve the practicality.
  • 1 is a flow chart of a method of prompting an event of an embodiment of the present disclosure.
  • FIG. 2 is a schematic illustration of an acceleration of one embodiment of the present disclosure.
  • FIG. 3 is a flow chart of a method of prompting an event of another embodiment of the present disclosure.
  • FIG. 4 is a block diagram of a mobile terminal of one embodiment of the present disclosure.
  • FIG. 5 is a block diagram of a screen orientation detecting module of one embodiment of the present disclosure.
  • FIG. 6 is a block diagram of a flash association module of one embodiment of the present disclosure.
  • FIG. 7 is a block diagram of a mobile terminal of another embodiment of the present disclosure.
  • FIG. 8 is a block diagram of an operational mode detection module of one embodiment of the present disclosure.
  • FIG. 9 is a block diagram of a flashing shutdown module of one embodiment of the present disclosure.
  • FIG. 10 is a block diagram of a mobile terminal of another embodiment of the present disclosure.
  • FIG. 11 is a schematic structural diagram of a mobile terminal according to still another embodiment of the present disclosure.
  • FIG. 1 a flowchart of a method for prompting an event according to an embodiment of the present disclosure may be specifically included.
  • Step 101 When the specified event is monitored, the screen orientation of the mobile terminal is detected.
  • embodiments of the present disclosure may be applied to mobile terminals, such as mobile phones, tablets, personal digital assistants, wearable devices (eg, wristbands, glasses, watches, etc.), and the like.
  • the mobile terminal is respectively provided with at least one flash on at least two different surfaces, for example, a flash is disposed on the front side (the surface on which the screen is located), and another flash is disposed on the back side (front facing surface).
  • the operating systems of these mobile terminals may include Android (Android), IOS, Windows Phone, Windows, and the like.
  • an event requiring a prompt such as an alarm clock, an incoming call, and the like, may be set, and the mobile terminal continuously monitors these events.
  • the current screen orientation of the mobile terminal that is, how to place the information of the mobile terminal, can be detected.
  • the mobile terminal is provided with an acceleration sensor, that is, a sensor that can sense acceleration and convert into an available output signal, and generally includes the following types:
  • Piezoelectric type, piezoelectric accelerometer is the piezoelectric effect of piezoelectric ceramic or quartz crystal. When the accelerometer is vibrated, the force of the mass applied to the piezoelectric element also changes.
  • Piezoresistive type, piezoresistive accelerometer adopts the mover of the permanent magnet induction stepping motor.
  • the mover is equipped with three sensors. Through the correction of the acceleration closed loop, the acceleration of the mover is consistent with the command acceleration.
  • Capacitive, capacitive accelerometers are capacitive sensors based on the principle of capacitance. One of the electrodes is fixed and the other is an elastic diaphragm. The elastic diaphragm is displaced by an external force (such as air pressure, hydraulic pressure, etc.) to change the capacitance.
  • an external force such as air pressure, hydraulic pressure, etc.
  • Servo-type, servo-type accelerometer The vibration system consists of the “m-k” system, which is the same as the general accelerometer, but the mass m is followed by an electromagnetic coil. When there is acceleration input on the pedestal, the mass deviates from the equilibrium position. The displacement is detected by the displacement sensor and amplified by the servo amplifier to be converted into a current output. The current flows through the electromagnetic coil to generate electromagnetic recovery in the magnetic field of the permanent magnet. Force, trying to keep the mass in the original equilibrium position in the instrument housing.
  • the first acceleration of the acceleration sensor on the X-axis, the second acceleration on the Y-axis, and the third acceleration on the Z-axis in the mobile terminal can be read.
  • the first difference between the first acceleration, the second acceleration, and 0 is less than a second between a preset first difference threshold, a third acceleration, and a gravitational acceleration (9.8 m/s 2 )
  • a preset first difference threshold a third acceleration
  • a gravitational acceleration 9.8 m/s 2
  • the acceleration of the mobile terminal on the X-axis, the acceleration on the Y-axis is close to or even 0
  • the acceleration on the Z-axis is close to even the acceleration of gravity, indicating that the mobile terminal is not subjected to a force in the horizontal direction. It is only subjected to gravity in the vertical direction.
  • the mobile terminal is allowed to stand, usually placed on an object by the user, and the screen is oriented vertically upwards with the screen facing up.
  • the first difference between the first acceleration, the second acceleration, and 0 is less than a preset first difference threshold, a third acceleration, and a target acceleration (-9.8 m/s 2 )
  • the third difference is less than the preset third difference threshold, it is determined that the screen orientation of the mobile terminal is the screen facing downward.
  • the target acceleration (-9.8 m/s 2 ) is opposite to the gravitational acceleration (9.8 m/s 2 ) and the values are the same.
  • the acceleration of the mobile terminal on the X-axis, the acceleration on the Y-axis is close to or even 0
  • the acceleration on the Z-axis is close to or even the target acceleration opposite to the gravitational acceleration, indicating that there is no horizontal direction in the mobile terminal. Subjected to force, it is only subjected to gravity in the vertical direction.
  • the mobile terminal is allowed to stand, usually placed on an object by the user, the screen orientation is vertical downward, and the orientation is the screen facing downward.
  • screen orientation is only an example.
  • other screen orientations may be set according to actual conditions, for example, screen orientation, and the like, which is not limited by the embodiments of the present disclosure.
  • those skilled in the art may also adopt other screen orientations according to actual needs, and the embodiments of the present disclosure do not limit this.
  • Step 102 Associate a flash configured in the mobile terminal according to the screen orientation.
  • the mobile terminal may configure two or more flashes, such as a fill light of a camera, a breathing light, a flash light dedicated to prompting, and the like.
  • the screen can also be used as a flash by increasing the brightness, displaying a pure white picture, and the like.
  • the flash can be associated for subsequent prompting.
  • the front flash of the mobile terminal is associated when the screen is oriented with the screen facing up.
  • the front flash is oriented the same as the front of the screen, that is, the front flash is facing up. Since the mobile terminal is placed on an object, the downward side is often directly in contact with the object and is blocked. The side is generally not obstructed by obstacles, so the front flash is generally not obstructed by obstacles.
  • the rear flash of the mobile terminal is associated when the screen is oriented with the screen facing down.
  • the rear flash is opposite to the screen orientation, that is, the rear flash is facing up. Since the mobile terminal is placed on an object, the downward side is often directly in contact with the object and is blocked. The side is generally not obstructed by obstacles, so the rear flash is generally not obstructed by obstacles.
  • association manner of the above-mentioned flash is only an example.
  • the manner of association of other flashes may be set according to actual conditions. For example, when the screen is sideways, the front flash and the rear flash are associated at the same time, and so on.
  • the embodiments of the present disclosure do not limit this.
  • the person skilled in the art can also use other flash related manners according to actual needs, and the embodiment of the present disclosure does not limit this.
  • Step 103 Drive the flash to perform blinking.
  • the flash may be driven to blink to prompt the specified event, that is, prompt the user for a corresponding event, such as an alarm, an incoming call, or the like.
  • the flash is the fill light of the camera, in Android, you can use the Camera.Open to turn on the fill light to flash.
  • the flash is a breathing light
  • the related parameter Notification.FLAG_SHOW_LIGHTS is set in the notification, and the breathing light flashes.
  • the screen orientation of the mobile terminal is detected, the corresponding flash is flashed, the event is prompted, and the appropriate flash is dynamically associated with the screen orientation of the mobile terminal. Prompt to reduce the situation that the flash is blocked due to the fixed position, to ensure the prompt function of the flash, and improve the practicality.
  • FIG. 3 a flowchart of a method for prompting an event of another embodiment of the present disclosure is shown, which may specifically include the following steps:
  • Step 301 When the specified event is monitored, the screen orientation of the mobile terminal is detected.
  • Step 302 Associate a flash configured in the mobile terminal according to the screen orientation.
  • Step 303 Drive the flash to blink to prompt the specified event.
  • Step 304 Detect a user operation mode of the mobile terminal.
  • the mobile terminal can be directly operated, such as flipping, picking up, shaking, etc., to turn off the flash.
  • the fourth acceleration of the acceleration sensor on the X-axis, the fifth acceleration on the Y-axis, and the sixth acceleration on the Z-axis in the mobile terminal can be read.
  • the increase of the fourth acceleration, the fifth acceleration, and the sixth acceleration exceeds a preset amplification threshold, it is determined that the user operates the mobile terminal in a flipping operation.
  • the acceleration of the mobile terminal on the X-axis, the acceleration on the Y-axis, and the acceleration on the Z-axis vary greatly (characterized as an increase in acceleration above a preset increase threshold), typically an axis If the data is greater than 2, the mobile terminal can be considered to be flipped by the user.
  • the acceleration of the mobile terminal on the X-axis and the acceleration on the Y-axis do not change significantly (characterized by the acceleration increase not exceeding the preset increase threshold), and the acceleration on the Z-axis varies greatly (characterization)
  • the mobile terminal can be considered to be picked up by the user.
  • the detection method of the foregoing operation mode is only an example.
  • the detection methods of other operation modes may be set according to actual conditions, and the embodiment of the present disclosure does not limit this.
  • those skilled in the art may also adopt other detection methods according to actual needs, and the embodiments of the present disclosure do not limit this.
  • Step 305 stopping driving the flash to perform flicking according to the operation mode.
  • the flash can be turned off correspondingly according to the operation mode.
  • the flash is turned off when the mode of operation is a flip operation.
  • the flash can be turned off directly.
  • the brightness of the flash is turned down, for example, gradually turning down the brightness of the flash until it is turned off.
  • the flash can be gradually dimmed until it is turned off.
  • the flash is the fill light of the camera
  • Android after turning on the fill light, you can get Camera.Parameters and set the flashing parameters, such as brightness.
  • the probe function can be called to control the flicker of the breathing light, such as brightness, frequency, and the like.
  • the embodiment of the present disclosure closes the flash by the user's operation mode on the mobile terminal, and the overall operation of the mobile terminal is more convenient than operating a physical button, thereby improving the flexibility of the closing operation.
  • FIG. 4 a block diagram of a mobile terminal of one embodiment of the present disclosure is shown.
  • the mobile terminal 400 shown in FIG. 4 is respectively provided with at least one flash on at least two different surfaces, and specifically includes the following modules:
  • the screen orientation detecting module 401 is configured to detect a screen orientation of the mobile terminal when the specified event is monitored;
  • a flash association module 402 configured to associate a flash configured in the mobile terminal according to the screen orientation
  • a flashing driving module 403 is configured to drive the flash to perform blinking.
  • the screen orientation detecting module 401 may further include the following sub-modules:
  • a first acceleration reading sub-module 4011 configured to read a first acceleration of the acceleration sensor on the X-axis, a second acceleration on the Y-axis, and a third acceleration on the Z-axis;
  • the first determining sub-module 4012 is configured to: the first difference between the first acceleration, the second acceleration, and 0 is less than a preset first difference threshold, the third acceleration, and the gravitational acceleration When the second difference is less than the preset second difference threshold, determining that the screen orientation of the mobile terminal is the screen facing upward;
  • the second determining sub-module 4013 is configured to: the first difference between the first acceleration, the second acceleration, and 0 is less than a preset first difference threshold, and the third acceleration and the target acceleration When the third difference is less than the preset third difference threshold, it is determined that the screen orientation of the mobile terminal is the screen facing downward, wherein the target acceleration is opposite to the direction of gravity acceleration and the value is the same.
  • the flash association module 402 may further include the following sub-modules:
  • a first associating sub-module 4021 configured to associate a front flash of the mobile terminal when the screen is oriented with the screen facing upward, the front flash being the same as the screen orientation;
  • the second associated sub-module 4022 is configured to associate a rear flash of the mobile terminal when the screen is facing downward, the rear flash is opposite to the screen.
  • the mobile terminal 400 may further include the following modules:
  • the operation mode detecting module 404 is configured to detect a user operation mode of the mobile terminal
  • the flashing off module 405 is configured to stop driving the flash to perform blinking according to the operation mode.
  • the operation mode detection module 404 may further include the following sub-modules:
  • a second acceleration reading sub-module 4041 configured to read a fourth acceleration of the acceleration sensor on the X-axis, a fifth acceleration on the Y-axis, and a sixth acceleration on the Z-axis;
  • the third determining sub-module 4042 is configured to determine, when the fourth acceleration, the fifth acceleration, and the sixth acceleration increase exceed a preset amplification threshold, that the operation mode of the user on the mobile terminal is a flip operation ;
  • a fourth determining sub-module 4043 configured to determine, when the increase of the fourth acceleration and the fifth acceleration does not exceed a preset increase threshold, and the increase of the sixth acceleration exceeds a preset increase threshold
  • the mobile terminal operates in a pick-up operation.
  • the blinking shutdown module 405 may further include the following sub-modules:
  • a first closing sub-module 4051 configured to turn off the flash when the operating mode is a flipping operation
  • the second closing sub-module 4052 is configured to lower the brightness of the flash when the operation mode is a pick-up operation.
  • the mobile terminal 400 can implement various processes implemented by the mobile terminal in the method embodiment of FIG. 1 to FIG. 3, and details are not described herein again to avoid repetition.
  • the screen orientation of the mobile terminal is detected, the corresponding flash is flashed, the event is prompted, and the appropriate flash is dynamically associated with the screen orientation of the mobile terminal. Prompt to reduce the situation that the flash is blocked due to the fixed position, to ensure the prompt function of the flash, and improve the practicality.
  • FIG. 10 is a block diagram of a mobile terminal of another embodiment of the present disclosure.
  • the mobile terminal 1000 shown in FIG. 10 includes at least one processor 1001, a memory 1002, at least one network interface 1004, and other user interfaces 1003.
  • the various components in mobile terminal 1000 are coupled together by bus system 1005.
  • bus system 1005 is used to implement connection communication between these components.
  • the bus system 1005 includes a power bus, a control bus, and a status signal bus in addition to the data bus.
  • various buses are labeled as bus system 1005 in FIG.
  • the user interface 1003 may include a display, a keyboard, or a pointing device (eg, a mouse, a trackball, a touchpad, or a touch screen, etc.).
  • a pointing device eg, a mouse, a trackball, a touchpad, or a touch screen, etc.
  • the memory 1002 in the embodiments of the present disclosure may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory.
  • the non-volatile memory may be a read-only memory (ROM), a programmable read only memory (PROM), an erasable programmable read only memory (Erasable PROM, EPROM), or an electric Erase programmable read only memory (EEPROM) or flash memory.
  • the volatile memory can be a Random Access Memory (RAM) that acts as an external cache.
  • RAM Random Access Memory
  • many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (Synchronous DRAM).
  • SDRAM Double Data Rate Synchronous Dynamic Random Access Memory
  • DDRSDRAM Double Data Rate Synchronous Dynamic Random Access Memory
  • ESDRAM Enhanced Synchronous Dynamic Random Access Memory
  • SDRAM Synchronous Connection Dynamic Random Access Memory
  • DRRAM direct memory bus random access memory
  • the memory 1002 stores elements, executable modules or data structures, or a subset thereof, or their extended set: an operating system 10021 and an application 10022.
  • the operating system 10021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, for implementing various basic services and processing hardware-based tasks.
  • the application 10022 includes various applications, such as a media player (Media Player), a browser, and the like, for implementing various application services.
  • a program implementing the method of the embodiments of the present disclosure may be included in the application 10022.
  • the mobile terminal by calling the program or instruction stored in the memory 1002, specifically, the program or the instruction stored in the application 10022, the mobile terminal respectively sets at least one flash on at least two different surfaces.
  • the processor 1001 is configured to detect a screen orientation of the mobile terminal when the specified event is monitored; associate a flash configured in the mobile terminal according to the screen orientation; drive the flash to perform blinking to the specified event Prompt.
  • the method disclosed in the above embodiments of the present disclosure may be applied to the processor 1001 or implemented by the processor 1001.
  • the processor 1001 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the foregoing method may be completed by an integrated logic circuit of hardware in the processor 1001 or an instruction in a form of software.
  • the processor 1001 may be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a Field Programmable Gate Array (FPGA), or the like. Programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • FPGA Field Programmable Gate Array
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the steps of the method disclosed in connection with the embodiments of the present disclosure may be directly embodied by the execution of the hardware decoding processor or by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like.
  • the storage medium is located in the memory 1002, and the processor 1001 reads the information in the memory 1002 and completes the steps of the above method in combination with its hardware.
  • the embodiments described in the embodiments of the present disclosure can be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof.
  • the processing unit can be implemented in one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processing (DSP), Digital Signal Processing Equipment (DSP Device, DSPD), programmable Programmable Logic Device (PLD), Field-Programmable Gate Array (FPGA), general purpose processor, controller, microcontroller, microprocessor, other electronics for performing the functions described herein Unit or combination thereof.
  • ASICs Application Specific Integrated Circuits
  • DSP Digital Signal Processing
  • DSP Device Digital Signal Processing Equipment
  • PLD programmable Programmable Logic Device
  • FPGA Field-Programmable Gate Array
  • controller microcontroller
  • microprocessor other electronics for performing the functions described herein Unit or combination thereof.
  • the techniques described in this disclosure can be implemented by means of modules (eg, procedures, functions, etc.) that perform the functions described in the embodiments of the present disclosure.
  • the software code can be stored in memory and executed by the processor.
  • the memory can be implemented in the processor or external to the processor.
  • the processor 1001 is further configured to: read a first acceleration of the acceleration sensor on the X axis, a second acceleration on the Y axis, and a third acceleration on the Z axis in the mobile terminal; when the first The acceleration, the first difference between the second acceleration and 0 is less than a preset first difference threshold, and the second difference between the third acceleration and the gravitational acceleration is less than a preset second difference threshold Determining that the screen orientation of the mobile terminal is the screen facing upward; when the first difference between the first acceleration, the second acceleration and 0 is less than a preset first difference threshold, the third When the third difference between the acceleration and the target acceleration is less than the preset third difference threshold, determining that the screen orientation of the mobile terminal is the screen facing downward, wherein the target acceleration is opposite to the direction of gravity acceleration and the value is the same.
  • the processor 1001 is further configured to: associate a front flash of the mobile terminal when the screen orientation is the screen facing upward, the front flash is the same as the screen orientation; when the screen is When the screen is facing downward, the rear flash of the mobile terminal is associated, and the rear flash is opposite to the screen.
  • the processor 1001 is further configured to: detect a manner of operation of the mobile terminal by the user; stop driving the flash to perform blinking according to the operation manner.
  • the processor 1001 is further configured to: read a fourth acceleration of the acceleration sensor on the X axis, a fifth acceleration on the Y axis, and a sixth acceleration on the Z axis in the mobile terminal; Determining, when the acceleration, the fifth acceleration, and the sixth acceleration increase exceed a preset increase threshold, determining a user operation mode of the mobile terminal as a flip operation; when the fourth acceleration and the fifth acceleration are When the increase does not exceed the preset increase threshold and the increase of the sixth acceleration exceeds the preset increase threshold, it is determined that the operation mode of the user on the mobile terminal is a pick-up operation.
  • the processor 1001 is further configured to: when the operation mode is a flip operation, turn off the flash; when the operation mode is a pick up operation, turn down the brightness of the flash.
  • the mobile terminal 1000 can implement various processes implemented by the mobile terminal in the foregoing embodiment. To avoid repetition, details are not described herein again.
  • the screen orientation of the mobile terminal is detected, the corresponding flash is flashed, the event is prompted, and the appropriate flash is dynamically associated with the screen orientation of the mobile terminal. Prompt to reduce the situation that the flash is blocked due to the fixed position, to ensure the prompt function of the flash, and improve the practicality.
  • FIG. 11 is a schematic structural diagram of a mobile terminal according to another embodiment of the present disclosure.
  • the mobile terminal 1100 in FIG. 11 may be a mobile phone, a tablet computer, a personal digital assistant (PDA), or a vehicle-mounted computer.
  • PDA personal digital assistant
  • the mobile terminal 1100 in FIG. 11 includes a radio frequency (RF) circuit 1110, a memory 1120, an input unit 1130, a display unit 1140, a processor 1160, an audio circuit 1170, a WiFi (Wireless Fidelity) module 1180, and a power supply 1190.
  • RF radio frequency
  • the input unit 1130 can be configured to receive numeric or character information input by the user, and generate signal input related to user setting and function control of the mobile terminal 1100.
  • the input unit 1130 may include a touch panel 1131.
  • the touch panel 1131 also referred to as a touch screen, can collect touch operations on or near the user (such as the operation of the user using any suitable object or accessory such as a finger or a stylus on the touch panel 1131), and according to the preset
  • the programmed program drives the corresponding connection device.
  • the touch panel 1131 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • the processor 1160 is provided and can receive commands from the processor 1160 and execute them.
  • the touch panel 1131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 1130 may further include other input devices 1132.
  • the other input devices 1132 may include but are not limited to physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like. One or more of them.
  • the display unit 1140 can be used to display information input by the user or information provided to the user and various menu interfaces of the mobile terminal 1100.
  • the display unit 1140 may include a display panel 1141.
  • the display panel 1141 may be configured in the form of an LCD or an Organic Light-Emitting Diode (OLED).
  • the touch panel 1131 may cover the display panel 1141 to form a touch display screen, and when the touch display screen detects a touch operation on or near it, it is transmitted to the processor 1160 to determine the type of the touch event, and then the processor The 1160 provides a corresponding visual output on the touch display depending on the type of touch event.
  • the touch display includes an application interface display area and a common control display area.
  • the arrangement manner of the application interface display area and the display area of the common control is not limited, and the arrangement manner of the two display areas can be distinguished by up-and-down arrangement, left-right arrangement, and the like.
  • the application interface display area can be used to display the interface of the application. Each interface can contain interface elements such as at least one application's icon and/or widget desktop control.
  • the application interface display area can also be an empty interface that does not contain any content.
  • the common control display area is used to display controls with high usage, such as setting buttons, interface numbers, scroll bars, phone book icons, and the like.
  • the processor 1160 is a control center of the mobile terminal 1100, and connects various parts of the entire mobile phone by using various interfaces and lines, by running or executing software programs and/or modules stored in the first memory 1121, and calling the second storage.
  • the data in the memory 1122 performs various functions and processing data of the mobile terminal 1100, thereby performing overall monitoring of the mobile terminal 1100.
  • processor 1160 can include one or more processing units.
  • the mobile terminal is configured at least on at least two different surfaces by calling a software program and/or module stored in the first memory 1121 and/or data in the second memory 1122.
  • a flash the processor 1160 is configured to: when detecting a specified event, detecting a screen orientation of the mobile terminal; correlating a flash configured in the mobile terminal according to the screen orientation; driving the flash to blink, to Prompt for the specified event.
  • the processor 1160 is further configured to: read a first acceleration of the acceleration sensor on the X axis, a second acceleration on the Y axis, and a third acceleration on the Z axis in the mobile terminal; when the first The acceleration, the first difference between the second acceleration and 0 is less than a preset first difference threshold, and the second difference between the third acceleration and the gravitational acceleration is less than a preset second difference threshold Determining that the screen orientation of the mobile terminal is the screen facing upward; when the first difference between the first acceleration, the second acceleration and 0 is less than a preset first difference threshold, the third When the third difference between the acceleration and the target acceleration is less than the preset third difference threshold, determining that the screen orientation of the mobile terminal is the screen facing downward, wherein the target acceleration is opposite to the direction of gravity acceleration and the value is the same.
  • the processor 1160 is further configured to associate a front flash of the mobile terminal when the screen orientation is the screen facing upward, the front flash is the same as the screen orientation; when the screen is When the screen is facing downward, the rear flash of the mobile terminal is associated, and the rear flash is opposite to the screen.
  • the processor 1160 is further configured to: detect a manner of operation of the mobile terminal by the user; stop driving the flash to perform blinking according to the operation manner.
  • the processor 1160 is further configured to: read a fourth acceleration of the acceleration sensor on the X axis, a fifth acceleration on the Y axis, and a sixth acceleration on the Z axis in the mobile terminal; Determining, when the acceleration, the fifth acceleration, and the sixth acceleration increase exceed a preset increase threshold, determining a user operation mode of the mobile terminal as a flip operation; when the fourth acceleration and the fifth acceleration are When the increase does not exceed the preset increase threshold and the increase of the sixth acceleration exceeds the preset increase threshold, it is determined that the operation mode of the user on the mobile terminal is a pick-up operation.
  • the processor 1160 is further configured to: when the operation mode is a flip operation, turn off the flash; when the operation mode is a pick up operation, turn down the brightness of the flash.
  • the screen orientation of the mobile terminal is detected, the corresponding flash is flashed, the event is prompted, and the appropriate flash is dynamically associated with the screen orientation of the mobile terminal. Prompt to reduce the situation that the flash is blocked due to the fixed position, to ensure the prompt function of the flash, and improve the practicality.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product. Based on such an understanding, a portion of the technical solution of the present disclosure that contributes in essence or to the prior art or a portion of the technical solution may be embodied in the form of a software product stored in a storage medium.
  • a number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present disclosure.
  • the foregoing storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.

Abstract

The embodiments of the invention provide an event indication method and a mobile terminal. The method is applicable to a mobile terminal comprising at least one flash arranged at each of two or more separate surfaces of the mobile terminal. The method comprises: upon detecting a specific event, determining a screen orientation of the mobile terminal; associating, according to the orientation of the screen, a flash configured at the mobile terminal; and driving the flash to produce a blink. The embodiment is utilized to dynamically associate, according to the orientation of the screen, an appropriate flash to provide an indication, preventing a situation in which a fixed location flash is covered, ensuring an indication effect generated by flashes, and having wider applications.

Description

一种事件的提示方法及移动终端Method for prompting event and mobile terminal
相关申请的交叉参考Cross-reference to related applications
本申请主张在2017年1月17日在中国提交的中国专利申请号No.201710032042.7的优先权,其全部内容通过引用包含于此。Priority is claimed on Japanese Patent Application No. 201710032042.7, filed on Jan. 17, 2017, in
技术领域Technical field
本公开文本实施例涉及通信技术领域,尤其涉及一种事件的提示方法和一种移动终端。The embodiments of the present disclosure relate to the field of communications technologies, and in particular, to a method for prompting an event and a mobile terminal.
背景技术Background technique
随着移动通信技术的发展,移动终端已经成为人们生活中不可或缺的一部分,实现了随时随地无障碍通话。并且,在移动终端中通常安装有许多应用,提供很多常用的功能,给人们生活带来便利。With the development of mobile communication technology, mobile terminals have become an indispensable part of people's lives, enabling accessibility anywhere, anytime. Moreover, many applications are usually installed in the mobile terminal, and many common functions are provided to bring convenience to people's lives.
为了在光线较暗的环境中提醒用户,移动终端在闹钟响起、来电时,会驱动闪光灯进行闪烁。In order to remind the user in a dimly lit environment, the mobile terminal will drive the flash to flash when the alarm sounds and an incoming call is made.
但是,用户摆放移动终端较为随意,而闪光灯的位置是固定的,在闪烁时,该闪光灯有可能被遮蔽,用户无法看到灯光,失去提示作用,实用性较差。However, the user places the mobile terminal more casually, and the position of the flash is fixed. When flashing, the flash may be blocked, the user cannot see the light, loses the prompt function, and has poor practicability.
发明内容Summary of the invention
(一)要解决的技术问题(1) Technical problems to be solved
本公开文本实施例提供一种事件的提示方法及移动终端,以解决闪光灯可能被遮蔽导致失去提示作用的问题。The embodiment of the present disclosure provides a method for prompting an event and a mobile terminal to solve the problem that the flash may be obscured to cause a loss of prompting effect.
(二)技术方案(2) Technical plan
第一方面,提供了一种事件的提示方法,所述方法应用在移动终端中,所述移动终端在至少两个不同的表面分别至少设置一闪光灯,所述方法包括:In a first aspect, a method for prompting an event is provided, the method being applied to a mobile terminal, wherein the mobile terminal respectively sets at least one flash on at least two different surfaces, the method comprising:
当监听到指定的事件时,检测移动终端的屏幕朝向;Detecting the screen orientation of the mobile terminal when the specified event is monitored;
根据所述屏幕朝向关联在所述移动终端中配置的闪光灯;以及A flash configured in the mobile terminal according to the screen orientation; and
驱动所述闪光灯进行闪烁。The flash is driven to blink.
第二方面,提供了一种移动终端,所述移动终端在至少两个不同的表面分别至少设置一闪光灯,所述移动终端包括:In a second aspect, a mobile terminal is provided, where the mobile terminal is configured with at least one flash on at least two different surfaces, and the mobile terminal includes:
屏幕朝向检测模块,用于在监听到指定的事件时,检测移动终端的屏幕朝向;a screen orientation detecting module, configured to detect a screen orientation of the mobile terminal when the specified event is monitored;
闪光灯关联模块,用于根据所述屏幕朝向关联在所述移动终端中配置的闪光灯;以及a flash association module for associating a flash configured in the mobile terminal according to the screen orientation;
闪烁驱动模块,用于驱动所述闪光灯进行闪烁。A flashing drive module for driving the flash to blink.
第三方面,本公开文本实施例提供一种移动终端,包括:处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如上所述的事件的提示方法中的步骤。In a third aspect, an embodiment of the present disclosure provides a mobile terminal, including: a processor, a memory, and a computer program stored on the memory and executable on the processor, the computer program being the processor The steps in the prompting method of implementing the event as described above at the time of execution.
第四方面,本公开文本实施例提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上所述的由移动终端执行的事件的提示方法中的步骤。In a fourth aspect, an embodiment of the present disclosure provides a computer readable storage medium having stored thereon a computer program that, when executed by a processor, implements execution by a mobile terminal as described above The steps in the prompt method of the event.
(三)有益效果(3) Beneficial effects
本公开文本实施例所提供的上述技术方案的有益效果如下:The beneficial effects of the above technical solutions provided by the embodiments of the present disclosure are as follows:
这样,本公开文本实施例中,在监听到指定的事件时,检测移动终端的屏幕朝向,以关联相应的闪光灯进行闪烁,对该事件进行提示,通过移动终端的屏幕朝向动态地关联合适的闪光灯进行提示,减少因位置固定造成闪光灯被遮挡的情况,保证闪光灯的提示作用,提高了实用性。In this way, in the embodiment of the present disclosure, when the specified event is monitored, the screen orientation of the mobile terminal is detected, the corresponding flash is flashed, the event is prompted, and the appropriate flash is dynamically associated with the screen orientation of the mobile terminal. Prompt to reduce the situation that the flash is blocked due to the fixed position, to ensure the prompt function of the flash, and improve the practicality.
附图说明DRAWINGS
为了更清楚地说明本公开文本实施例或现有技术中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本公开文本的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only the present disclosure. Some embodiments of the text may also be used to obtain other figures from these figures without departing from the art.
图1是本公开文本一个实施例的事件的提示方法的流程图。1 is a flow chart of a method of prompting an event of an embodiment of the present disclosure.
图2是本公开文本一个实施例的一种加速度的示意图。2 is a schematic illustration of an acceleration of one embodiment of the present disclosure.
图3是本公开文本另一个实施例的事件的提示方法的流程图。3 is a flow chart of a method of prompting an event of another embodiment of the present disclosure.
图4是本公开文本一个实施例的移动终端的框图。4 is a block diagram of a mobile terminal of one embodiment of the present disclosure.
图5是本公开文本一个实施例的屏幕朝向检测模块的框图。FIG. 5 is a block diagram of a screen orientation detecting module of one embodiment of the present disclosure.
图6是本公开文本一个实施例的闪光灯关联模块的框图。6 is a block diagram of a flash association module of one embodiment of the present disclosure.
图7是本公开文本另一个实施例的移动终端的框图。7 is a block diagram of a mobile terminal of another embodiment of the present disclosure.
图8是本公开文本一个实施例的操作方式检测模块的框图。8 is a block diagram of an operational mode detection module of one embodiment of the present disclosure.
图9是本公开文本一个实施例的闪烁关闭模块的框图。9 is a block diagram of a flashing shutdown module of one embodiment of the present disclosure.
图10是本公开文本另一个实施例的移动终端的框图。10 is a block diagram of a mobile terminal of another embodiment of the present disclosure.
图11是本公开文本又一个实施例的移动终端的结构示意图。FIG. 11 is a schematic structural diagram of a mobile terminal according to still another embodiment of the present disclosure.
具体实施方式detailed description
下面将结合本公开文本实施例中的附图,对本公开文本实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开文本一部分实施例,而不是全部的实施例。基于本公开文本中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本公开文本保护的范围。The technical solutions in the embodiments of the present disclosure will be clearly and completely described in conjunction with the drawings in the embodiments of the present disclosure. It is obvious that the described embodiments are a part of the embodiments of the present disclosure, but not all embodiments. . All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present disclosure without departing from the inventive scope are the scope of the disclosure.
第一实施例First embodiment
参照图1,示出了本公开文本一个实施例的事件的提示方法的流程图,具体可以包括如下步骤:Referring to FIG. 1 , a flowchart of a method for prompting an event according to an embodiment of the present disclosure may be specifically included.
步骤101,当监听到指定的事件时,检测移动终端的屏幕朝向。Step 101: When the specified event is monitored, the screen orientation of the mobile terminal is detected.
在具体实现中,本公开文本实施例可以应用在移动终端中,例如,手机、平板电脑、个人数字助理、穿戴设备(如手环、眼镜、手表等)等等。移动终端在至少两个不同的表面分别至少设置一闪光灯,例如,在正面(屏幕所在的表面)设置一闪光灯、在背面(正面相对的表面)设置另一闪光灯。In particular implementations, embodiments of the present disclosure may be applied to mobile terminals, such as mobile phones, tablets, personal digital assistants, wearable devices (eg, wristbands, glasses, watches, etc.), and the like. The mobile terminal is respectively provided with at least one flash on at least two different surfaces, for example, a flash is disposed on the front side (the surface on which the screen is located), and another flash is disposed on the back side (front facing surface).
这些移动终端的操作系统可以包括Android(安卓)、IOS、Windows Phone、Windows等等。The operating systems of these mobile terminals may include Android (Android), IOS, Windows Phone, Windows, and the like.
在本公开文本实施例中,可以设定需要提示的事件,如闹钟、来电等等,移动终端持续对这些事件进行监听。In the embodiment of the present disclosure, an event requiring a prompt, such as an alarm clock, an incoming call, and the like, may be set, and the mobile terminal continuously monitors these events.
例如,在Android系统中,可以写一个Receiver(监听器),该Receiver继承Broadcast Receiver。For example, in the Android system, you can write a Receiver, which inherits the Broadcast Receiver.
在AndroidManifest.xml(用于描述了包(package)中暴露的组件)中,配置写好的Receiver,并拉结相应的BroadcastAction。其中,来电的事件例如为TelephonyManager.ACTION_PHONE_STATE_CHANGED。In the AndroidManifest.xml (used to describe the components exposed in the package), configure the written Receiver and tie the corresponding BroadcastAction. The event of the incoming call is, for example, TelephonyManager.ACTION_PHONE_STATE_CHANGED.
当监听到这些需要提示的事件时,可以检测移动终端当前的屏幕朝向,即如何摆放移动终端的信息。When the events that require prompting are monitored, the current screen orientation of the mobile terminal, that is, how to place the information of the mobile terminal, can be detected.
在具体实现中,移动终端中配置有加速度传感器,即能感受加速度并转换成可用输出信号的传感器,通常可以包括如下几类:In a specific implementation, the mobile terminal is provided with an acceleration sensor, that is, a sensor that can sense acceleration and convert into an available output signal, and generally includes the following types:
1、压电式,压电式加速度传感器是利用压电陶瓷或石英晶体的压电效应,在加速度计受振时,质量块加在压电元件上的力也随之变化。1. Piezoelectric type, piezoelectric accelerometer is the piezoelectric effect of piezoelectric ceramic or quartz crystal. When the accelerometer is vibrated, the force of the mass applied to the piezoelectric element also changes.
2、压阻式,压阻式加速度传感器采用永磁感应子式步进电动机的动子,动子上装有三个传感器,通过加速度闭环的校正作用,使动子的加速度与指令加速度一致。2. Piezoresistive type, piezoresistive accelerometer adopts the mover of the permanent magnet induction stepping motor. The mover is equipped with three sensors. Through the correction of the acceleration closed loop, the acceleration of the mover is consistent with the command acceleration.
3、电容式,电容式加速度传感器是基于电容原理的极距变化型的电容传感器,其中一个电极是固定的,另一变化电极是弹性膜片。弹性膜片在外力(如气压、液压等)作用下发生位移,使电容量发生变化。3. Capacitive, capacitive accelerometers are capacitive sensors based on the principle of capacitance. One of the electrodes is fixed and the other is an elastic diaphragm. The elastic diaphragm is displaced by an external force (such as air pressure, hydraulic pressure, etc.) to change the capacitance.
4、伺服式,伺服式加速度传感器的振动系统由“m-k”系统组成,与一般加速度计相同,但质量m上还接着一个电磁线圈。当基座上有加速度输入时,质量块偏离平衡位置,该位移大小由位移传感器检测出来,经伺服放大器放大后转换为电流输出,该电流流过电磁线圈,在永久磁铁的磁场中产生电磁恢复力,力图使质量块保持在仪表壳体中原来的平衡位置上。4. Servo-type, servo-type accelerometer The vibration system consists of the “m-k” system, which is the same as the general accelerometer, but the mass m is followed by an electromagnetic coil. When there is acceleration input on the pedestal, the mass deviates from the equilibrium position. The displacement is detected by the displacement sensor and amplified by the servo amplifier to be converted into a current output. The current flows through the electromagnetic coil to generate electromagnetic recovery in the magnetic field of the permanent magnet. Force, trying to keep the mass in the original equilibrium position in the instrument housing.
在检测屏幕朝向时,如图2所示,可以读取移动终端中加速度传感器在X轴上的第一加速度、在Y轴上的第二加速度和在Z轴上的第三加速度。When detecting the orientation of the screen, as shown in FIG. 2, the first acceleration of the acceleration sensor on the X-axis, the second acceleration on the Y-axis, and the third acceleration on the Z-axis in the mobile terminal can be read.
在一个示例中,当第一加速度、第二加速度与0之间的第一差值小于预设的第一差值阈值、第三加速度与重力加速度(9.8m/s 2)之间的第二差值小于预设的第二差值阈值时,确定移动终端的屏幕朝向为屏幕朝上。 In one example, the first difference between the first acceleration, the second acceleration, and 0 is less than a second between a preset first difference threshold, a third acceleration, and a gravitational acceleration (9.8 m/s 2 ) When the difference is less than the preset second difference threshold, it is determined that the screen orientation of the mobile terminal is the screen facing upward.
在本示例中,移动终端在X轴上的加速度、在Y轴上的加速度接近甚至为0,在Z轴上的加速度接近甚至为重力加速度,表示在移动终端在水平方向没有受到力的作用,在竖直方向仅受到重力的作用。In this example, the acceleration of the mobile terminal on the X-axis, the acceleration on the Y-axis is close to or even 0, and the acceleration on the Z-axis is close to even the acceleration of gravity, indicating that the mobile terminal is not subjected to a force in the horizontal direction. It is only subjected to gravity in the vertical direction.
这种情况下,移动终端静置,一般为被用户摆放在某个物体上,屏幕朝 向为竖直向上,摆放方位为屏幕朝上。In this case, the mobile terminal is allowed to stand, usually placed on an object by the user, and the screen is oriented vertically upwards with the screen facing up.
在另一个示例中,当第一加速度、第二加速度与0之间的第一差值小于预设的第一差值阈值、第三加速度与目标加速度(-9.8m/s 2)之间的第三差值小于预设的第三差值阈值时,确定移动终端的屏幕朝向为屏幕朝下。 In another example, when the first difference between the first acceleration, the second acceleration, and 0 is less than a preset first difference threshold, a third acceleration, and a target acceleration (-9.8 m/s 2 ) When the third difference is less than the preset third difference threshold, it is determined that the screen orientation of the mobile terminal is the screen facing downward.
在本示例中,目标加速度(-9.8m/s 2)与重力加速度(9.8m/s 2)方向相反、值相同。 In this example, the target acceleration (-9.8 m/s 2 ) is opposite to the gravitational acceleration (9.8 m/s 2 ) and the values are the same.
在本示例中,移动终端在X轴上的加速度、在Y轴上的加速度接近甚至为0,在Z轴上的加速度接近甚至为与重力加速度相反的目标加速度,表示在移动终端在水平方向没有受到力的作用,在竖直方向仅受到重力的作用。In this example, the acceleration of the mobile terminal on the X-axis, the acceleration on the Y-axis is close to or even 0, and the acceleration on the Z-axis is close to or even the target acceleration opposite to the gravitational acceleration, indicating that there is no horizontal direction in the mobile terminal. Subjected to force, it is only subjected to gravity in the vertical direction.
这种情况下,移动终端静置,一般为被用户摆放在某个物体上,屏幕朝向为竖直向下,摆放方位为屏幕朝下。In this case, the mobile terminal is allowed to stand, usually placed on an object by the user, the screen orientation is vertical downward, and the orientation is the screen facing downward.
当然,上述屏幕朝向只是作为示例,在具体实施本公开文本的各个实施例时,可以根据实际情况设置其他屏幕朝向,例如,屏幕侧向,等等,本公开文本实施例对此不加以限制。另外,除了上述屏幕朝向外,本领域技术人员还可以根据实际需要采用其它屏幕朝向,本公开文本实施例对此也不加以限制。Of course, the above-mentioned screen orientation is only an example. When implementing various embodiments of the present disclosure, other screen orientations may be set according to actual conditions, for example, screen orientation, and the like, which is not limited by the embodiments of the present disclosure. In addition, in addition to the above-mentioned screen orientation, those skilled in the art may also adopt other screen orientations according to actual needs, and the embodiments of the present disclosure do not limit this.
步骤102,根据所述屏幕朝向关联在所述移动终端中配置的闪光灯。Step 102: Associate a flash configured in the mobile terminal according to the screen orientation.
在本公开文本实施例中,移动终端可以配置两个或两个以上的闪光灯,如摄像头的补光灯、呼吸灯、专门用于提示的闪光灯等。另外,在某些情况下,屏幕也可以通过提高亮度、显示纯白色的图片等方式作为闪光灯使用。In the embodiment of the present disclosure, the mobile terminal may configure two or more flashes, such as a fill light of a camera, a breathing light, a flash light dedicated to prompting, and the like. In addition, in some cases, the screen can also be used as a flash by increasing the brightness, displaying a pure white picture, and the like.
如果确定了移动终端的屏幕朝向,则可以关联该闪光灯,以待后续进行提示。If the screen orientation of the mobile terminal is determined, the flash can be associated for subsequent prompting.
在一个示例中,当屏幕朝向为屏幕朝上时,关联移动终端的前置的闪光灯。In one example, the front flash of the mobile terminal is associated when the screen is oriented with the screen facing up.
在此示例中,前置的闪光灯与屏幕朝向相同,即前置的闪光灯朝上,由于移动终端摆放在某个物体上时,朝下的一面经常直接接触该物体而被遮挡,而朝上的一面一般不会有障碍物遮挡,因此,前置的闪光灯一般不会有障碍物遮挡。In this example, the front flash is oriented the same as the front of the screen, that is, the front flash is facing up. Since the mobile terminal is placed on an object, the downward side is often directly in contact with the object and is blocked. The side is generally not obstructed by obstacles, so the front flash is generally not obstructed by obstacles.
在另一个示例中,当屏幕朝向为屏幕朝下时,关联移动终端的后置的闪 光灯。In another example, the rear flash of the mobile terminal is associated when the screen is oriented with the screen facing down.
在此示例中,后置的闪光灯与屏幕朝向相反,即后置的闪光灯朝上,由于移动终端摆放在某个物体上时,朝下的一面经常直接接触该物体而被遮挡,而朝上的一面一般不会有障碍物遮挡,因此,后置的闪光灯一般不会有障碍物遮挡。In this example, the rear flash is opposite to the screen orientation, that is, the rear flash is facing up. Since the mobile terminal is placed on an object, the downward side is often directly in contact with the object and is blocked. The side is generally not obstructed by obstacles, so the rear flash is generally not obstructed by obstacles.
当然,上述闪光灯的关联方式只是作为示例,在具体实施本公开文本的各个实施例时,可以根据实际情况设置其他闪光灯的关联方式。例如,当屏幕侧向时,同时关联前置的闪光灯和后置的闪光灯,等等。本公开文本实施例对此不加以限制。另外,除了上述闪光灯的关联方式外,本领域技术人员还可以根据实际需要采用其它闪光灯的关联方式,本公开文本实施例对此也不加以限制。Of course, the association manner of the above-mentioned flash is only an example. When implementing various embodiments of the present disclosure, the manner of association of other flashes may be set according to actual conditions. For example, when the screen is sideways, the front flash and the rear flash are associated at the same time, and so on. The embodiments of the present disclosure do not limit this. In addition, in addition to the above-mentioned manner of the flash, the person skilled in the art can also use other flash related manners according to actual needs, and the embodiment of the present disclosure does not limit this.
步骤103,驱动所述闪光灯进行闪烁。Step 103: Drive the flash to perform blinking.
在具体实现中,若确定了关联的闪光灯,则可以驱动该闪光灯进行闪烁,,以对指定的事件进行提示,即提示用户相应的事件,例如,闹钟、来电等。In a specific implementation, if the associated flash is determined, the flash may be driven to blink to prompt the specified event, that is, prompt the user for a corresponding event, such as an alarm, an incoming call, or the like.
例如,若闪光灯为摄像头的补光灯,在Android中,可以透过Camera.Open开启补光灯进行闪烁。For example, if the flash is the fill light of the camera, in Android, you can use the Camera.Open to turn on the fill light to flash.
又例如,若闪光灯为呼吸灯,在Android中,首先可以申请系统服务Activity.NOTIFICATION_SERVICE获得NotificationManager,然后创建一个不显示的Notification,在通知中设置的相关参数Notification.FLAG_SHOW_LIGHTS,开启呼吸灯闪烁。For example, if the flash is a breathing light, in Android, you can first apply for the system service Activity.NOTIFICATION_SERVICE to obtain the NotificationManager, and then create a notification that is not displayed. The related parameter Notification.FLAG_SHOW_LIGHTS is set in the notification, and the breathing light flashes.
这样,本公开文本实施例中,在监听到指定的事件时,检测移动终端的屏幕朝向,以关联相应的闪光灯进行闪烁,对该事件进行提示,通过移动终端的屏幕朝向动态地关联合适的闪光灯进行提示,减少因位置固定造成闪光灯被遮挡的情况,保证闪光灯的提示作用,提高了实用性。In this way, in the embodiment of the present disclosure, when the specified event is monitored, the screen orientation of the mobile terminal is detected, the corresponding flash is flashed, the event is prompted, and the appropriate flash is dynamically associated with the screen orientation of the mobile terminal. Prompt to reduce the situation that the flash is blocked due to the fixed position, to ensure the prompt function of the flash, and improve the practicality.
第二实施例Second embodiment
参照图3,示出了本公开文本另一个实施例的事件的提示方法的流程图,具体可以包括如下步骤:Referring to FIG. 3, a flowchart of a method for prompting an event of another embodiment of the present disclosure is shown, which may specifically include the following steps:
步骤301,当监听到指定的事件时,检测移动终端的屏幕朝向。Step 301: When the specified event is monitored, the screen orientation of the mobile terminal is detected.
步骤302,根据所述屏幕朝向关联在所述移动终端中配置的闪光灯。Step 302: Associate a flash configured in the mobile terminal according to the screen orientation.
步骤303,驱动所述闪光灯进行闪烁,以对所述指定的事件进行提示。Step 303: Drive the flash to blink to prompt the specified event.
步骤304,检测用户对所述移动终端的操作方式。Step 304: Detect a user operation mode of the mobile terminal.
在本公开文本实施例中,如果用户看到闪光灯的闪烁提示,可以直接对移动终端进行操作,如翻转、拿起、摇晃等,以关闭闪光灯。In the embodiment of the present disclosure, if the user sees the blinking prompt of the flash, the mobile terminal can be directly operated, such as flipping, picking up, shaking, etc., to turn off the flash.
在检测操作方式时,如图2所示,可以读取移动终端中加速度传感器在X轴上的第四加速度、在Y轴上的第五加速度和在Z轴上的第六加速度。When detecting the mode of operation, as shown in FIG. 2, the fourth acceleration of the acceleration sensor on the X-axis, the fifth acceleration on the Y-axis, and the sixth acceleration on the Z-axis in the mobile terminal can be read.
在一个示例中,当第四加速度、第五加速度和第六加速度的增幅超过预设的增幅阈值时,确定用户对移动终端的操作方式为翻转操作。In one example, when the increase of the fourth acceleration, the fifth acceleration, and the sixth acceleration exceeds a preset amplification threshold, it is determined that the user operates the mobile terminal in a flipping operation.
在本示例中,移动终端在X轴上的加速度、在Y轴上的加速度和在Z轴上的加速度有大幅变化(表征为加速度的增幅超过预设的增幅阈值),一般为某个轴的数据大于2,则可以认为移动终端被用户翻转。In this example, the acceleration of the mobile terminal on the X-axis, the acceleration on the Y-axis, and the acceleration on the Z-axis vary greatly (characterized as an increase in acceleration above a preset increase threshold), typically an axis If the data is greater than 2, the mobile terminal can be considered to be flipped by the user.
在另一个示例中,当第四加速度和第五加速度的增幅未超过预设的增幅阈值、且第六加速度的增幅超过预设的增幅阈值时,确定用户对移动终端的操作方式为拿起操作。In another example, when the increase of the fourth acceleration and the fifth acceleration does not exceed the preset increase threshold, and the increase of the sixth acceleration exceeds the preset increase threshold, determining that the user operates the mobile terminal as picking up operation .
在本示例中,移动终端在X轴上的加速度和在Y轴上的加速度未有大幅变化(表征为加速度的增幅未超过预设的增幅阈值),在Z轴上的加速度有大幅变化(表征为加速度的增幅超过预设的增幅阈值),则可以认为移动终端被用户拿起。In this example, the acceleration of the mobile terminal on the X-axis and the acceleration on the Y-axis do not change significantly (characterized by the acceleration increase not exceeding the preset increase threshold), and the acceleration on the Z-axis varies greatly (characterization) In order for the acceleration to increase beyond the preset increase threshold), the mobile terminal can be considered to be picked up by the user.
当然,上述操作方式的检测方法只是作为示例,在具体实施本公开文本的各个实施例时,可以根据实际情况设置其他操作方式的检测方法,本公开文本实施例对此不加以限制。另外,除了上述操作方式的检测方法外,本领域技术人员还可以根据实际需要采用其它操作方式的检测方法,本公开文本实施例对此也不加以限制。Of course, the detection method of the foregoing operation mode is only an example. When the various embodiments of the present disclosure are specifically implemented, the detection methods of other operation modes may be set according to actual conditions, and the embodiment of the present disclosure does not limit this. In addition, in addition to the detection method of the above operation mode, those skilled in the art may also adopt other detection methods according to actual needs, and the embodiments of the present disclosure do not limit this.
步骤305,根据所述操作方式停止驱动所述闪光灯进行闪烁。 Step 305, stopping driving the flash to perform flicking according to the operation mode.
在本公开文本实施例中,如果检测到用户操作移动终端,表示用户知晓提示的事件,则可以按照操作方式相应地关闭闪光灯。In the embodiment of the present disclosure, if it is detected that the user operates the mobile terminal, indicating that the user knows the prompted event, the flash can be turned off correspondingly according to the operation mode.
在一个示例中,当操作方式为翻转操作时,关闭闪光灯。In one example, the flash is turned off when the mode of operation is a flip operation.
在本示例中,如果用户翻转移动终端,则可以直接关闭闪光灯。In this example, if the user flips the mobile terminal, the flash can be turned off directly.
在另一个示例中,当操作方式为拿起操作时,调低闪光灯的亮度,例如, 逐渐调低闪光灯的亮度、直至关闭。In another example, when the mode of operation is a pick up operation, the brightness of the flash is turned down, for example, gradually turning down the brightness of the flash until it is turned off.
在本示例中,如果用户拿起移动终端,则可以将闪光灯逐渐调暗,直至关闭。In this example, if the user picks up the mobile terminal, the flash can be gradually dimmed until it is turned off.
若闪光灯为摄像头的补光灯,在Android中,开启补光灯后可以取得Camera.Parameters,设置闪烁的参数,如亮度。If the flash is the fill light of the camera, in Android, after turning on the fill light, you can get Camera.Parameters and set the flashing parameters, such as brightness.
在关闭时,调用FLASH_MODE_TROCH,设置为FLASH_MODE_OFF后,将其release(释放)即可。When it is closed, call FLASH_MODE_TROCH, set it to FLASH_MODE_OFF, and release it.
又例如,若闪光灯为呼吸灯,在Android中,可以调用probe函数控制呼吸灯的闪烁,如亮度、频率等。For another example, if the flash is a breathing light, in Android, the probe function can be called to control the flicker of the breathing light, such as brightness, frequency, and the like.
目前,闪光灯在闪烁提示时,需要通过实体按键进行关闭,闹钟响起、用户尚处于刚睡醒等状态时,寻找实体按键较为不便,灵活性差。At present, when the flash is flashing, it needs to be closed by the physical button. When the alarm sounds and the user is still in the state of just waking up, it is inconvenient to find the physical button, and the flexibility is poor.
本公开文本实施例通过用户对移动终端的操作方式关闭闪光灯,对于移动终端整体的操作相对于操作某个实体按键较为方便,提高了关闭操作的灵活性。The embodiment of the present disclosure closes the flash by the user's operation mode on the mobile terminal, and the overall operation of the mobile terminal is more convenient than operating a physical button, thereby improving the flexibility of the closing operation.
需要说明的是,对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本公开文本实施例并不受所描述的动作顺序的限制。因为依据本公开文本实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本公开文本实施例所必须的。It should be noted that, for the sake of simple description, the method embodiments are all described as a series of action combinations, but those skilled in the art should understand that the embodiments of the present disclosure are not limited by the described order of actions. Because certain steps may be performed in other sequences or concurrently in accordance with embodiments of the present disclosure. In the following, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present disclosure.
第三实施例Third embodiment
参照图4,示出了本公开文本一个实施例的移动终端的框图。图4所示的移动终端400在至少两个不同的表面分别至少设置一闪光灯,具体可以包括如下模块:Referring to Figure 4, a block diagram of a mobile terminal of one embodiment of the present disclosure is shown. The mobile terminal 400 shown in FIG. 4 is respectively provided with at least one flash on at least two different surfaces, and specifically includes the following modules:
屏幕朝向检测模块401,用于在监听到指定的事件时,检测移动终端的屏幕朝向;The screen orientation detecting module 401 is configured to detect a screen orientation of the mobile terminal when the specified event is monitored;
闪光灯关联模块402,用于根据所述屏幕朝向关联在所述移动终端中配置的闪光灯;a flash association module 402, configured to associate a flash configured in the mobile terminal according to the screen orientation;
闪烁驱动模块403,用于驱动所述闪光灯进行闪烁。A flashing driving module 403 is configured to drive the flash to perform blinking.
在本公开文本的一个实施例中,参考图5所示的屏幕朝向检测模块的框图,所述屏幕朝向检测模块401进一步可以包括如下子模块:In an embodiment of the present disclosure, referring to the block diagram of the screen orientation detecting module shown in FIG. 5, the screen orientation detecting module 401 may further include the following sub-modules:
第一加速度读取子模块4011,用于读取移动终端中加速度传感器在X轴上的第一加速度、在Y轴上的第二加速度和在Z轴上的第三加速度;a first acceleration reading sub-module 4011, configured to read a first acceleration of the acceleration sensor on the X-axis, a second acceleration on the Y-axis, and a third acceleration on the Z-axis;
第一确定子模块4012,用于在所述第一加速度、所述第二加速度与0之间的第一差值小于预设的第一差值阈值、所述第三加速度与重力加速度之间的第二差值小于预设的第二差值阈值时,确定所述移动终端的屏幕朝向为屏幕朝上;The first determining sub-module 4012 is configured to: the first difference between the first acceleration, the second acceleration, and 0 is less than a preset first difference threshold, the third acceleration, and the gravitational acceleration When the second difference is less than the preset second difference threshold, determining that the screen orientation of the mobile terminal is the screen facing upward;
第二确定子模块4013,用于在所述第一加速度、所述第二加速度与0之间的第一差值小于预设的第一差值阈值、所述第三加速度与目标加速度之间的第三差值小于预设的第三差值阈值时,确定所述移动终端的屏幕朝向为屏幕朝下,其中,所述目标加速度与重力加速度方向相反、值相同。The second determining sub-module 4013 is configured to: the first difference between the first acceleration, the second acceleration, and 0 is less than a preset first difference threshold, and the third acceleration and the target acceleration When the third difference is less than the preset third difference threshold, it is determined that the screen orientation of the mobile terminal is the screen facing downward, wherein the target acceleration is opposite to the direction of gravity acceleration and the value is the same.
在本公开文本的一个实施例中,参考图6所示的闪光灯关联模块的框图,所述闪光灯关联模块402进一步可以包括如下子模块:In one embodiment of the present disclosure, referring to the block diagram of the flash association module shown in FIG. 6, the flash association module 402 may further include the following sub-modules:
第一关联子模块4021,用于在所述屏幕朝向为屏幕朝上时,关联所述移动终端的前置的闪光灯,所述前置的闪光灯与所述屏幕朝向相同;a first associating sub-module 4021, configured to associate a front flash of the mobile terminal when the screen is oriented with the screen facing upward, the front flash being the same as the screen orientation;
第二关联子模块4022,用于在所述屏幕朝向为屏幕朝下时,关联所述移动终端的后置的闪光灯,所述后置的闪光灯与所述屏幕朝向相反。The second associated sub-module 4022 is configured to associate a rear flash of the mobile terminal when the screen is facing downward, the rear flash is opposite to the screen.
在图4的基础上,可选地,参见图7,移动终端400还可包括如下模块:On the basis of FIG. 4, optionally, referring to FIG. 7, the mobile terminal 400 may further include the following modules:
操作方式检测模块404,用于检测用户对所述移动终端的操作方式;The operation mode detecting module 404 is configured to detect a user operation mode of the mobile terminal;
闪烁关闭模块405,用于根据所述操作方式停止驱动所述闪光灯进行闪烁。The flashing off module 405 is configured to stop driving the flash to perform blinking according to the operation mode.
在本公开文本的一个实施例中,参考图8所示的操作方式检测模块的框图,所述操作方式检测模块404进一步可以包括如下子模块:In an embodiment of the present disclosure, referring to the block diagram of the operation mode detection module shown in FIG. 8, the operation mode detection module 404 may further include the following sub-modules:
第二加速度读取子模块4041,用于读取移动终端中加速度传感器在X轴上的第四加速度、在Y轴上的第五加速度和在Z轴上的第六加速度;a second acceleration reading sub-module 4041, configured to read a fourth acceleration of the acceleration sensor on the X-axis, a fifth acceleration on the Y-axis, and a sixth acceleration on the Z-axis;
第三确定子模块4042,用于在所述第四加速度、所述第五加速度和所述第六加速度的增幅超过预设的增幅阈值时,确定用户对所述移动终端的操作方式为翻转操作;The third determining sub-module 4042 is configured to determine, when the fourth acceleration, the fifth acceleration, and the sixth acceleration increase exceed a preset amplification threshold, that the operation mode of the user on the mobile terminal is a flip operation ;
第四确定子模块4043,用于在所述第四加速度和所述第五加速度的增幅未超过预设的增幅阈值、且所述第六加速度的增幅超过预设的增幅阈值时,确定用户对所述移动终端的操作方式为拿起操作。a fourth determining sub-module 4043, configured to determine, when the increase of the fourth acceleration and the fifth acceleration does not exceed a preset increase threshold, and the increase of the sixth acceleration exceeds a preset increase threshold The mobile terminal operates in a pick-up operation.
在本公开文本的一个实施例中,参考图9所示的闪烁关闭模块的框图,所述闪烁关闭模块405进一步可以包括如下子模块:In one embodiment of the present disclosure, referring to the block diagram of the blinking shutdown module shown in FIG. 9, the blinking shutdown module 405 may further include the following sub-modules:
第一关闭子模块4051,用于在所述操作方式为翻转操作时,关闭所述闪光灯;a first closing sub-module 4051, configured to turn off the flash when the operating mode is a flipping operation;
第二关闭子模块4052,用于在所述操作方式为拿起操作时,调低所述闪光灯的亮度。The second closing sub-module 4052 is configured to lower the brightness of the flash when the operation mode is a pick-up operation.
移动终端400能够实现图1至图3的方法实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。The mobile terminal 400 can implement various processes implemented by the mobile terminal in the method embodiment of FIG. 1 to FIG. 3, and details are not described herein again to avoid repetition.
这样,本公开文本实施例中,在监听到指定的事件时,检测移动终端的屏幕朝向,以关联相应的闪光灯进行闪烁,对该事件进行提示,通过移动终端的屏幕朝向动态地关联合适的闪光灯进行提示,减少因位置固定造成闪光灯被遮挡的情况,保证闪光灯的提示作用,提高了实用性。In this way, in the embodiment of the present disclosure, when the specified event is monitored, the screen orientation of the mobile terminal is detected, the corresponding flash is flashed, the event is prompted, and the appropriate flash is dynamically associated with the screen orientation of the mobile terminal. Prompt to reduce the situation that the flash is blocked due to the fixed position, to ensure the prompt function of the flash, and improve the practicality.
第四实施例Fourth embodiment
图10是本公开文本另一个实施例的移动终端的框图。图10所示的移动终端1000包括:至少一个处理器1001、存储器1002、至少一个网络接口1004和其他用户接口1003。移动终端1000中的各个组件通过总线系统1005耦合在一起。可理解,总线系统1005用于实现这些组件之间的连接通信。总线系统1005除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图10中将各种总线都标为总线系统1005。10 is a block diagram of a mobile terminal of another embodiment of the present disclosure. The mobile terminal 1000 shown in FIG. 10 includes at least one processor 1001, a memory 1002, at least one network interface 1004, and other user interfaces 1003. The various components in mobile terminal 1000 are coupled together by bus system 1005. It will be appreciated that the bus system 1005 is used to implement connection communication between these components. The bus system 1005 includes a power bus, a control bus, and a status signal bus in addition to the data bus. However, for clarity of description, various buses are labeled as bus system 1005 in FIG.
其中,用户接口1003可以包括显示器、键盘或者点击设备(例如,鼠标,轨迹球(trackball)、触感板或者触摸屏等。The user interface 1003 may include a display, a keyboard, or a pointing device (eg, a mouse, a trackball, a touchpad, or a touch screen, etc.).
可以理解,本公开文本实施例中的存储器1002可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪 存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本公开文本实施例描述的系统和方法的存储器1002旨在包括但不限于这些和任意其它适合类型的存储器。It is to be understood that the memory 1002 in the embodiments of the present disclosure may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory may be a read-only memory (ROM), a programmable read only memory (PROM), an erasable programmable read only memory (Erasable PROM, EPROM), or an electric Erase programmable read only memory (EEPROM) or flash memory. The volatile memory can be a Random Access Memory (RAM) that acts as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (Synchronous DRAM). SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Synchronous Connection Dynamic Random Access Memory (SDRAM) And direct memory bus random access memory (DRRAM). The memory 1002 of the systems and methods described in the present disclosure embodiments is intended to comprise, without being limited to, these and any other suitable types of memory.
在一些实施方式中,存储器1002存储了如下的元素,可执行模块或者数据结构,或者他们的子集,或者他们的扩展集:操作系统10021和应用程序10022。In some implementations, the memory 1002 stores elements, executable modules or data structures, or a subset thereof, or their extended set: an operating system 10021 and an application 10022.
其中,操作系统10021,包含各种系统程序,例如框架层、核心库层、驱动层等,用于实现各种基础业务以及处理基于硬件的任务。应用程序10022,包含各种应用程序,例如媒体播放器(Media Player)、浏览器(Browser)等,用于实现各种应用业务。实现本公开文本实施例方法的程序可以包含在应用程序10022中。The operating system 10021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, for implementing various basic services and processing hardware-based tasks. The application 10022 includes various applications, such as a media player (Media Player), a browser, and the like, for implementing various application services. A program implementing the method of the embodiments of the present disclosure may be included in the application 10022.
在本公开文本实施例中,通过调用存储器1002存储的程序或指令,具体的,可以是应用程序10022中存储的程序或指令,所述移动终端在至少两个不同的表面分别至少设置一闪光灯,处理器1001用于当监听到指定的事件时,检测移动终端的屏幕朝向;根据所述屏幕朝向关联在所述移动终端中配置的闪光灯;驱动所述闪光灯进行闪烁,以对所述指定的事件进行提示。In the embodiment of the present disclosure, by calling the program or instruction stored in the memory 1002, specifically, the program or the instruction stored in the application 10022, the mobile terminal respectively sets at least one flash on at least two different surfaces. The processor 1001 is configured to detect a screen orientation of the mobile terminal when the specified event is monitored; associate a flash configured in the mobile terminal according to the screen orientation; drive the flash to perform blinking to the specified event Prompt.
上述本公开文本实施例揭示的方法可以应用于处理器1001中,或者由处理器1001实现。处理器1001可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器1001中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器1001可以是通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field Programmable Gate  Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本公开文本实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本公开文本实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器1002,处理器1001读取存储器1002中的信息,结合其硬件完成上述方法的步骤。The method disclosed in the above embodiments of the present disclosure may be applied to the processor 1001 or implemented by the processor 1001. The processor 1001 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the foregoing method may be completed by an integrated logic circuit of hardware in the processor 1001 or an instruction in a form of software. The processor 1001 may be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a Field Programmable Gate Array (FPGA), or the like. Programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps, and logical block diagrams disclosed in the embodiments of the present disclosure may be implemented or carried out. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present disclosure may be directly embodied by the execution of the hardware decoding processor or by a combination of hardware and software modules in the decoding processor. The software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like. The storage medium is located in the memory 1002, and the processor 1001 reads the information in the memory 1002 and completes the steps of the above method in combination with its hardware.
可以理解的是,本公开文本实施例描述的这些实施例可以用硬件、软件、固件、中间件、微码或其组合来实现。对于硬件实现,处理单元可以实现在一个或多个专用集成电路(Application Specific Integrated Circuits,ASIC)、数字信号处理器(Digital Signal Processing,DSP)、数字信号处理设备(DSP Device,DSPD)、可编程逻辑设备(Programmable Logic Device,PLD)、现场可编程门阵列(Field-Programmable GateArray,FPGA)、通用处理器、控制器、微控制器、微处理器、用于执行本申请所述功能的其它电子单元或其组合中。It will be understood that the embodiments described in the embodiments of the present disclosure can be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processing (DSP), Digital Signal Processing Equipment (DSP Device, DSPD), programmable Programmable Logic Device (PLD), Field-Programmable Gate Array (FPGA), general purpose processor, controller, microcontroller, microprocessor, other electronics for performing the functions described herein Unit or combination thereof.
对于软件实现,可通过执行本公开文本实施例所述功能的模块(例如过程、函数等)来实现本公开文本实施例所述的技术。软件代码可存储在存储器中并通过处理器执行。存储器可以在处理器中或在处理器外部实现。For a software implementation, the techniques described in this disclosure can be implemented by means of modules (eg, procedures, functions, etc.) that perform the functions described in the embodiments of the present disclosure. The software code can be stored in memory and executed by the processor. The memory can be implemented in the processor or external to the processor.
可选地,处理器1001还用于:读取移动终端中加速度传感器在X轴上的第一加速度、在Y轴上的第二加速度和在Z轴上的第三加速度;当所述第一加速度、所述第二加速度与0之间的第一差值小于预设的第一差值阈值、所述第三加速度与重力加速度之间的第二差值小于预设的第二差值阈值时,确定所述移动终端的屏幕朝向为屏幕朝上;当所述第一加速度、所述第二加速度与0之间的第一差值小于预设的第一差值阈值、所述第三加速度与目标加速度之间的第三差值小于预设的第三差值阈值时,确定所述移动终端的屏幕朝向为屏幕朝下,其中,所述目标加速度与重力加速度方向相反、值相同。Optionally, the processor 1001 is further configured to: read a first acceleration of the acceleration sensor on the X axis, a second acceleration on the Y axis, and a third acceleration on the Z axis in the mobile terminal; when the first The acceleration, the first difference between the second acceleration and 0 is less than a preset first difference threshold, and the second difference between the third acceleration and the gravitational acceleration is less than a preset second difference threshold Determining that the screen orientation of the mobile terminal is the screen facing upward; when the first difference between the first acceleration, the second acceleration and 0 is less than a preset first difference threshold, the third When the third difference between the acceleration and the target acceleration is less than the preset third difference threshold, determining that the screen orientation of the mobile terminal is the screen facing downward, wherein the target acceleration is opposite to the direction of gravity acceleration and the value is the same.
可选地,处理器1001还用于:当所述屏幕朝向为屏幕朝上时,关联所述移动终端的前置的闪光灯,所述前置的闪光灯与所述屏幕朝向相同;当所述 屏幕朝向为屏幕朝下时,关联所述移动终端的后置的闪光灯,所述后置的闪光灯与所述屏幕朝向相反。Optionally, the processor 1001 is further configured to: associate a front flash of the mobile terminal when the screen orientation is the screen facing upward, the front flash is the same as the screen orientation; when the screen is When the screen is facing downward, the rear flash of the mobile terminal is associated, and the rear flash is opposite to the screen.
可选地,处理器1001还用于:检测用户对所述移动终端的操作方式;根据所述操作方式停止驱动所述闪光灯进行闪烁。Optionally, the processor 1001 is further configured to: detect a manner of operation of the mobile terminal by the user; stop driving the flash to perform blinking according to the operation manner.
可选地,处理器1001还用于:读取移动终端中加速度传感器在X轴上的第四加速度、在Y轴上的第五加速度和在Z轴上的第六加速度;当所述第四加速度、所述第五加速度和所述第六加速度的增幅超过预设的增幅阈值时,确定用户对所述移动终端的操作方式为翻转操作;当所述第四加速度和所述第五加速度的增幅未超过预设的增幅阈值、且所述第六加速度的增幅超过预设的增幅阈值时,确定用户对所述移动终端的操作方式为拿起操作。Optionally, the processor 1001 is further configured to: read a fourth acceleration of the acceleration sensor on the X axis, a fifth acceleration on the Y axis, and a sixth acceleration on the Z axis in the mobile terminal; Determining, when the acceleration, the fifth acceleration, and the sixth acceleration increase exceed a preset increase threshold, determining a user operation mode of the mobile terminal as a flip operation; when the fourth acceleration and the fifth acceleration are When the increase does not exceed the preset increase threshold and the increase of the sixth acceleration exceeds the preset increase threshold, it is determined that the operation mode of the user on the mobile terminal is a pick-up operation.
可选地,处理器1001还用于:当所述操作方式为翻转操作时,关闭所述闪光灯;当所述操作方式为拿起操作时,调低所述闪光灯的亮度。Optionally, the processor 1001 is further configured to: when the operation mode is a flip operation, turn off the flash; when the operation mode is a pick up operation, turn down the brightness of the flash.
移动终端1000能够实现前述实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。The mobile terminal 1000 can implement various processes implemented by the mobile terminal in the foregoing embodiment. To avoid repetition, details are not described herein again.
这样,本公开文本实施例中,在监听到指定的事件时,检测移动终端的屏幕朝向,以关联相应的闪光灯进行闪烁,对该事件进行提示,通过移动终端的屏幕朝向动态地关联合适的闪光灯进行提示,减少因位置固定造成闪光灯被遮挡的情况,保证闪光灯的提示作用,提高了实用性。In this way, in the embodiment of the present disclosure, when the specified event is monitored, the screen orientation of the mobile terminal is detected, the corresponding flash is flashed, the event is prompted, and the appropriate flash is dynamically associated with the screen orientation of the mobile terminal. Prompt to reduce the situation that the flash is blocked due to the fixed position, to ensure the prompt function of the flash, and improve the practicality.
第五实施例Fifth embodiment
图11是本公开文本另一个实施例的移动终端的结构示意图。具体地,图11中的移动终端1100可以为手机、平板电脑、个人数字助理(Personal Digital Assistant,PDA)、或车载电脑等。FIG. 11 is a schematic structural diagram of a mobile terminal according to another embodiment of the present disclosure. Specifically, the mobile terminal 1100 in FIG. 11 may be a mobile phone, a tablet computer, a personal digital assistant (PDA), or a vehicle-mounted computer.
图11中的移动终端1100包括射频(Radio Frequency,RF)电路1110、存储器1120、输入单元1130、显示单元1140、处理器1160、音频电路1170、WiFi(Wireless Fidelity)模块1180和电源1190。The mobile terminal 1100 in FIG. 11 includes a radio frequency (RF) circuit 1110, a memory 1120, an input unit 1130, a display unit 1140, a processor 1160, an audio circuit 1170, a WiFi (Wireless Fidelity) module 1180, and a power supply 1190.
其中,输入单元1130可用于接收用户输入的数字或字符信息,以及产生与移动终端1100的用户设置以及功能控制有关的信号输入。具体地,本公开文本实施例中,该输入单元1130可以包括触控面板1131。触控面板1131,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触 笔等任何适合的物体或附件在触控面板1131上的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板1131可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给该处理器1160,并能接收处理器1160发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1131。除了触控面板1131,输入单元1130还可以包括其他输入设备1132,其他输入设备1132可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 1130 can be configured to receive numeric or character information input by the user, and generate signal input related to user setting and function control of the mobile terminal 1100. Specifically, in the embodiment of the present disclosure, the input unit 1130 may include a touch panel 1131. The touch panel 1131, also referred to as a touch screen, can collect touch operations on or near the user (such as the operation of the user using any suitable object or accessory such as a finger or a stylus on the touch panel 1131), and according to the preset The programmed program drives the corresponding connection device. Optionally, the touch panel 1131 may include two parts: a touch detection device and a touch controller. Wherein, the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information. The processor 1160 is provided and can receive commands from the processor 1160 and execute them. In addition, the touch panel 1131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 1131, the input unit 1130 may further include other input devices 1132. The other input devices 1132 may include but are not limited to physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like. One or more of them.
其中,显示单元1140可用于显示由用户输入的信息或提供给用户的信息以及移动终端1100的各种菜单界面。显示单元1140可包括显示面板1141,可选的,可以采用LCD或有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板1141。The display unit 1140 can be used to display information input by the user or information provided to the user and various menu interfaces of the mobile terminal 1100. The display unit 1140 may include a display panel 1141. Alternatively, the display panel 1141 may be configured in the form of an LCD or an Organic Light-Emitting Diode (OLED).
应注意,触控面板1131可以覆盖显示面板1141,形成触摸显示屏,当该触摸显示屏检测到在其上或附近的触摸操作后,传送给处理器1160以确定触摸事件的类型,随后处理器1160根据触摸事件的类型在触摸显示屏上提供相应的视觉输出。It should be noted that the touch panel 1131 may cover the display panel 1141 to form a touch display screen, and when the touch display screen detects a touch operation on or near it, it is transmitted to the processor 1160 to determine the type of the touch event, and then the processor The 1160 provides a corresponding visual output on the touch display depending on the type of touch event.
触摸显示屏包括应用程序界面显示区及常用控件显示区。该应用程序界面显示区及该常用控件显示区的排列方式并不限定,可以为上下排列、左右排列等可以区分两个显示区的排列方式。该应用程序界面显示区可以用于显示应用程序的界面。每一个界面可以包含至少一个应用程序的图标和/或widget桌面控件等界面元素。该应用程序界面显示区也可以为不包含任何内容的空界面。该常用控件显示区用于显示使用率较高的控件,例如,设置按钮、界面编号、滚动条、电话本图标等应用程序图标等。The touch display includes an application interface display area and a common control display area. The arrangement manner of the application interface display area and the display area of the common control is not limited, and the arrangement manner of the two display areas can be distinguished by up-and-down arrangement, left-right arrangement, and the like. The application interface display area can be used to display the interface of the application. Each interface can contain interface elements such as at least one application's icon and/or widget desktop control. The application interface display area can also be an empty interface that does not contain any content. The common control display area is used to display controls with high usage, such as setting buttons, interface numbers, scroll bars, phone book icons, and the like.
其中处理器1160是移动终端1100的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在第一存储器1121内的软件程序和/或模块,以及调用存储在第二存储器1122内的数据,执行移动终端1100的各种功能和处理数据,从而对移动终端1100进行整体监控。可选的,处理 器1160可包括一个或多个处理单元。The processor 1160 is a control center of the mobile terminal 1100, and connects various parts of the entire mobile phone by using various interfaces and lines, by running or executing software programs and/or modules stored in the first memory 1121, and calling the second storage. The data in the memory 1122 performs various functions and processing data of the mobile terminal 1100, thereby performing overall monitoring of the mobile terminal 1100. Alternatively, processor 1160 can include one or more processing units.
在本公开文本实施例中,通过调用存储该第一存储器1121内的软件程序和/或模块和/或该第二存储器1122内的数据,所述移动终端在至少两个不同的表面分别至少设置一闪光灯,处理器1160用于获取当监听到指定的事件时,检测移动终端的屏幕朝向;根据所述屏幕朝向关联在所述移动终端中配置的闪光灯;驱动所述闪光灯进行闪烁,以对所述指定的事件进行提示。In an embodiment of the present disclosure, the mobile terminal is configured at least on at least two different surfaces by calling a software program and/or module stored in the first memory 1121 and/or data in the second memory 1122. a flash, the processor 1160 is configured to: when detecting a specified event, detecting a screen orientation of the mobile terminal; correlating a flash configured in the mobile terminal according to the screen orientation; driving the flash to blink, to Prompt for the specified event.
可选地,处理器1160还用于:读取移动终端中加速度传感器在X轴上的第一加速度、在Y轴上的第二加速度和在Z轴上的第三加速度;当所述第一加速度、所述第二加速度与0之间的第一差值小于预设的第一差值阈值、所述第三加速度与重力加速度之间的第二差值小于预设的第二差值阈值时,确定所述移动终端的屏幕朝向为屏幕朝上;当所述第一加速度、所述第二加速度与0之间的第一差值小于预设的第一差值阈值、所述第三加速度与目标加速度之间的第三差值小于预设的第三差值阈值时,确定所述移动终端的屏幕朝向为屏幕朝下,其中,所述目标加速度与重力加速度方向相反、值相同。Optionally, the processor 1160 is further configured to: read a first acceleration of the acceleration sensor on the X axis, a second acceleration on the Y axis, and a third acceleration on the Z axis in the mobile terminal; when the first The acceleration, the first difference between the second acceleration and 0 is less than a preset first difference threshold, and the second difference between the third acceleration and the gravitational acceleration is less than a preset second difference threshold Determining that the screen orientation of the mobile terminal is the screen facing upward; when the first difference between the first acceleration, the second acceleration and 0 is less than a preset first difference threshold, the third When the third difference between the acceleration and the target acceleration is less than the preset third difference threshold, determining that the screen orientation of the mobile terminal is the screen facing downward, wherein the target acceleration is opposite to the direction of gravity acceleration and the value is the same.
可选地,处理器1160还用于:当所述屏幕朝向为屏幕朝上时,关联所述移动终端的前置的闪光灯,所述前置的闪光灯与所述屏幕朝向相同;当所述屏幕朝向为屏幕朝下时,关联所述移动终端的后置的闪光灯,所述后置的闪光灯与所述屏幕朝向相反。Optionally, the processor 1160 is further configured to associate a front flash of the mobile terminal when the screen orientation is the screen facing upward, the front flash is the same as the screen orientation; when the screen is When the screen is facing downward, the rear flash of the mobile terminal is associated, and the rear flash is opposite to the screen.
可选地,处理器1160还用于:检测用户对所述移动终端的操作方式;根据所述操作方式停止驱动所述闪光灯进行闪烁。Optionally, the processor 1160 is further configured to: detect a manner of operation of the mobile terminal by the user; stop driving the flash to perform blinking according to the operation manner.
可选地,处理器1160还用于:读取移动终端中加速度传感器在X轴上的第四加速度、在Y轴上的第五加速度和在Z轴上的第六加速度;当所述第四加速度、所述第五加速度和所述第六加速度的增幅超过预设的增幅阈值时,确定用户对所述移动终端的操作方式为翻转操作;当所述第四加速度和所述第五加速度的增幅未超过预设的增幅阈值、且所述第六加速度的增幅超过预设的增幅阈值时,确定用户对所述移动终端的操作方式为拿起操作。Optionally, the processor 1160 is further configured to: read a fourth acceleration of the acceleration sensor on the X axis, a fifth acceleration on the Y axis, and a sixth acceleration on the Z axis in the mobile terminal; Determining, when the acceleration, the fifth acceleration, and the sixth acceleration increase exceed a preset increase threshold, determining a user operation mode of the mobile terminal as a flip operation; when the fourth acceleration and the fifth acceleration are When the increase does not exceed the preset increase threshold and the increase of the sixth acceleration exceeds the preset increase threshold, it is determined that the operation mode of the user on the mobile terminal is a pick-up operation.
可选地,处理器1160还用于:当所述操作方式为翻转操作时,关闭所述闪光灯;当所述操作方式为拿起操作时,调低所述闪光灯的亮度。Optionally, the processor 1160 is further configured to: when the operation mode is a flip operation, turn off the flash; when the operation mode is a pick up operation, turn down the brightness of the flash.
可见,本公开文本实施例中,在监听到指定的事件时,检测移动终端的 屏幕朝向,以关联相应的闪光灯进行闪烁,对该事件进行提示,通过移动终端的屏幕朝向动态地关联合适的闪光灯进行提示,减少因位置固定造成闪光灯被遮挡的情况,保证闪光灯的提示作用,提高了实用性。It can be seen that, in the embodiment of the present disclosure, when the specified event is monitored, the screen orientation of the mobile terminal is detected, the corresponding flash is flashed, the event is prompted, and the appropriate flash is dynamically associated with the screen orientation of the mobile terminal. Prompt to reduce the situation that the flash is blocked due to the fixed position, to ensure the prompt function of the flash, and improve the practicality.
本领域普通技术人员可以意识到,结合本公开文本实施例中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本公开文本的范围。Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed in the embodiments of the present disclosure can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods to implement the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present disclosure.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本公开文本各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本公开文本的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的 部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本公开文本各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。The functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product. Based on such an understanding, a portion of the technical solution of the present disclosure that contributes in essence or to the prior art or a portion of the technical solution may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present disclosure. The foregoing storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
以上所述,仅为本公开文本的具体实施方式,但本公开文本的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本公开文本揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本公开文本的保护范围之内。因此,本公开文本的保护范围应以权利要求的保护范围为准。The above description is only a specific embodiment of the present disclosure, but the scope of protection of the present disclosure is not limited thereto, and any person skilled in the art can easily think of changes or within the technical scope disclosed in the present disclosure. Substitutes are intended to be covered by the scope of the present disclosure. Therefore, the scope of protection of the present disclosure should be determined by the scope of the claims.

Claims (14)

  1. 一种事件的提示方法,所述方法应用在移动终端中,所述移动终端在至少两个不同的表面分别至少设置一闪光灯,所述方法包括:A method for prompting an event, the method being applied to a mobile terminal, wherein the mobile terminal respectively sets at least one flash on at least two different surfaces, the method comprising:
    当监听到指定的事件时,检测移动终端的屏幕朝向;Detecting the screen orientation of the mobile terminal when the specified event is monitored;
    根据所述屏幕朝向关联在所述移动终端中配置的闪光灯;以及A flash configured in the mobile terminal according to the screen orientation; and
    驱动所述闪光灯进行闪烁。The flash is driven to blink.
  2. 根据权利要求1所述的方法,其中,所述检测移动终端的屏幕朝向的步骤包括:The method of claim 1, wherein the step of detecting a screen orientation of the mobile terminal comprises:
    读取移动终端中加速度传感器在X轴上的第一加速度、在Y轴上的第二加速度和在Z轴上的第三加速度;Reading a first acceleration of the acceleration sensor on the X axis, a second acceleration on the Y axis, and a third acceleration on the Z axis in the mobile terminal;
    当所述第一加速度、所述第二加速度与0之间的第一差值小于预设的第一差值阈值、所述第三加速度与重力加速度之间的第二差值小于预设的第二差值阈值时,确定所述移动终端的屏幕朝向为屏幕朝上;When the first difference between the first acceleration, the second acceleration, and 0 is less than a preset first difference threshold, and the second difference between the third acceleration and the gravitational acceleration is less than a preset Determining, when the second difference threshold is, the screen orientation of the mobile terminal is the screen facing upward;
    当所述第一加速度、所述第二加速度与0之间的第一差值小于预设的第一差值阈值、所述第三加速度与目标加速度之间的第三差值小于预设的第三差值阈值时,确定所述移动终端的屏幕朝向为屏幕朝下,其中,所述目标加速度与重力加速度方向相反、值相同。When the first difference between the first acceleration, the second acceleration, and 0 is less than a preset first difference threshold, and the third difference between the third acceleration and the target acceleration is less than a preset When the third difference threshold is used, it is determined that the screen orientation of the mobile terminal is the screen facing downward, wherein the target acceleration is opposite to the direction of gravity acceleration and the value is the same.
  3. 根据权利要求2所述的方法,其中,所述根据所述屏幕朝向关联在所述移动终端中配置的闪光灯的步骤包括:The method of claim 2, wherein the step of associating the flash configured in the mobile terminal according to the screen orientation comprises:
    当所述屏幕朝向为屏幕朝上时,关联所述移动终端的前置的闪光灯,所述前置的闪光灯与所述屏幕朝向相同;Correlating a front flash of the mobile terminal when the screen is oriented with the screen facing upward, the front flash is oriented the same as the screen;
    当所述屏幕朝向为屏幕朝下时,关联所述移动终端的后置的闪光灯,所述后置的闪光灯与所述屏幕朝向相反。When the screen is oriented with the screen facing down, the rear flash of the mobile terminal is associated, and the rear flash is opposite to the screen.
  4. 根据权利要求1或2或3所述的方法,其中,在所述驱动所述闪光灯进行闪烁的步骤之后,所述方法还包括:The method according to claim 1 or 2 or 3, wherein after the step of driving the flash to perform blinking, the method further comprises:
    检测用户对所述移动终端的操作方式;以及Detecting how the user operates the mobile terminal;
    根据所述操作方式停止驱动所述闪光灯进行闪烁。The driving of the flash is stopped to perform blinking according to the operation mode.
  5. 根据权利要求4所述的方法,其中,所述检测用户对所述移动终端的 操作方式的步骤包括:The method of claim 4 wherein said step of detecting a manner of operation of said user on said mobile terminal comprises:
    读取移动终端中加速度传感器在X轴上的第四加速度、在Y轴上的第五加速度和在Z轴上的第六加速度;Reading a fourth acceleration of the acceleration sensor on the X axis, a fifth acceleration on the Y axis, and a sixth acceleration on the Z axis in the mobile terminal;
    当所述第四加速度、所述第五加速度和所述第六加速度的增幅超过预设的增幅阈值时,确定用户对所述移动终端的操作方式为翻转操作;Determining, by the user, that the operation mode of the mobile terminal is a flip operation when the increase of the fourth acceleration, the fifth acceleration, and the sixth acceleration exceeds a preset increase threshold;
    当所述第四加速度和所述第五加速度的增幅未超过预设的增幅阈值、且所述第六加速度的增幅超过预设的增幅阈值时,确定用户对所述移动终端的操作方式为拿起操作。Determining that the user operates the mobile terminal when the increase of the fourth acceleration and the fifth acceleration does not exceed a preset increase threshold and the increase of the sixth acceleration exceeds a preset increase threshold Start operation.
  6. 根据权利要求5所述的方法,其中,所述根据所述操作方式停止驱动关联的闪光灯进行闪烁的步骤包括:The method according to claim 5, wherein said step of stopping driving the associated flash to perform blinking according to said operation mode comprises:
    当所述操作方式为翻转操作时,关闭所述闪光灯;Turning off the flash when the operation mode is a flipping operation;
    当所述操作方式为拿起操作时,调低所述闪光灯的亮度。When the operation mode is a pick-up operation, the brightness of the flash is turned down.
  7. 一种移动终端,所述移动终端在至少两个不同的表面分别至少设置一闪光灯,所述移动终端包括:A mobile terminal, wherein the mobile terminal is provided with at least one flash on at least two different surfaces, the mobile terminal comprising:
    屏幕朝向检测模块,用于在监听到指定的事件时,检测移动终端的屏幕朝向;a screen orientation detecting module, configured to detect a screen orientation of the mobile terminal when the specified event is monitored;
    闪光灯关联模块,用于根据所述屏幕朝向关联在所述移动终端中配置的闪光灯;以及a flash association module for associating a flash configured in the mobile terminal according to the screen orientation;
    闪烁驱动模块,用于驱动所述闪光灯进行闪烁。A flashing drive module for driving the flash to blink.
  8. 根据权利要求7所述的移动终端,其中,所述屏幕朝向检测模块包括:The mobile terminal of claim 7, wherein the screen orientation detecting module comprises:
    第一加速度读取子模块,用于读取移动终端中加速度传感器在X轴上的第一加速度、在Y轴上的第二加速度和在Z轴上的第三加速度;a first acceleration reading submodule for reading a first acceleration of the acceleration sensor on the X axis, a second acceleration on the Y axis, and a third acceleration on the Z axis in the mobile terminal;
    第一确定子模块,用于在所述第一加速度、所述第二加速度与0之间的第一差值小于预设的第一差值阈值、所述第三加速度与重力加速度之间的第二差值小于预设的第二差值阈值时,确定所述移动终端的屏幕朝向为屏幕朝上;a first determining submodule, configured to: the first difference between the first acceleration, the second acceleration, and 0 is less than a preset first difference threshold, the third acceleration, and a gravitational acceleration When the second difference is less than the preset second difference threshold, determining that the screen orientation of the mobile terminal is the screen facing upward;
    第二确定子模块,用于在所述第一加速度、所述第二加速度与0之间的第一差值小于预设的第一差值阈值、所述第三加速度与目标加速度之间的第三差值小于预设的第三差值阈值时,确定所述移动终端的屏幕朝向为屏幕朝 下,其中,所述目标加速度与重力加速度方向相反、值相同。a second determining submodule, configured to: the first difference between the first acceleration, the second acceleration, and 0 is less than a preset first difference threshold, and between the third acceleration and the target acceleration When the third difference is less than the preset third difference threshold, determining that the screen orientation of the mobile terminal is the screen facing downward, wherein the target acceleration is opposite to the direction of gravity acceleration and the value is the same.
  9. 根据权利要求8所述的移动终端,其中,所述闪光灯关联模块包括:The mobile terminal of claim 8, wherein the flash association module comprises:
    第一关联子模块,用于在所述屏幕朝向为屏幕朝上时,关联所述移动终端的前置的闪光灯,所述前置的闪光灯与所述屏幕朝向相同;a first associating sub-module, configured to associate a front flash of the mobile terminal when the screen is oriented upward; the front flash is the same as the screen orientation;
    第二关联子模块,用于在所述屏幕朝向为屏幕朝下时,关联所述移动终端的后置的闪光灯,所述后置的闪光灯与所述屏幕朝向相反。a second associated sub-module for associating a rear flash of the mobile terminal when the screen is facing down the screen, the rear flash being opposite to the screen.
  10. 根据权利要求7或8或9所述的移动终端,还包括:The mobile terminal according to claim 7 or 8 or 9, further comprising:
    操作方式检测模块,用于检测用户对所述移动终端的操作方式;An operation mode detecting module, configured to detect a user operation mode of the mobile terminal;
    闪烁关闭模块,用于根据所述操作方式停止驱动所述闪光灯进行闪烁。A flashing off module is configured to stop driving the flash to blink according to the operation mode.
  11. 根据权利要求10所述的移动终端,其中,所述操作方式检测模块包括:The mobile terminal of claim 10, wherein the operation mode detection module comprises:
    第二加速度读取子模块,用于读取移动终端中加速度传感器在X轴上的第四加速度、在Y轴上的第五加速度和在Z轴上的第六加速度;a second acceleration reading submodule for reading a fourth acceleration of the acceleration sensor on the X axis, a fifth acceleration on the Y axis, and a sixth acceleration on the Z axis in the mobile terminal;
    第三确定子模块,用于在所述第四加速度、所述第五加速度和所述第六加速度的增幅超过预设的增幅阈值时,确定用户对所述移动终端的操作方式为翻转操作;a third determining submodule, configured to determine, when the fourth acceleration, the fifth acceleration, and the sixth acceleration increase exceed a preset amplification threshold, that the operation mode of the user on the mobile terminal is a flip operation;
    第四确定子模块,用于在所述第四加速度和所述第五加速度的增幅未超过预设的增幅阈值、且所述第六加速度的增幅超过预设的增幅阈值时,确定用户对所述移动终端的操作方式为拿起操作。a fourth determining submodule, configured to determine, when the increase of the fourth acceleration and the fifth acceleration does not exceed a preset increase threshold, and the increase of the sixth acceleration exceeds a preset increase threshold The operation mode of the mobile terminal is to pick up the operation.
  12. 根据权利要求11所述的移动终端,其中,所述闪烁关闭模块包括:The mobile terminal of claim 11, wherein the blinking shutdown module comprises:
    第一关闭子模块,用于在所述操作方式为翻转操作时,关闭所述闪光灯;以及a first closing sub-module for turning off the flash when the operating mode is a flipping operation;
    第二关闭子模块,用于在所述操作方式为拿起操作时,调低所述闪光灯的亮度。And a second closing sub-module, configured to lower the brightness of the flash when the operation mode is a pick-up operation.
  13. 一种移动终端,包括:处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至6中任一项所述的事件的提示方法中的步骤。A mobile terminal comprising: a processor, a memory, and a computer program stored on the memory and operable on the processor, the computer program being implemented by the processor to implement as claimed in claims 1 to 6 The steps in the method of presenting an event as described in any of the above.
  14. 一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至6中任一项所 述的事件的提示方法中的步骤。A computer readable storage medium having stored thereon a computer program, the computer program being executed by a processor, wherein the method of presenting an event according to any one of claims 1 to 6 step.
PCT/CN2017/117427 2017-01-17 2017-12-20 Event indication method and mobile terminal WO2018133612A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710032042.7 2017-01-17
CN201710032042.7A CN106791175A (en) 2017-01-17 2017-01-17 The reminding method and mobile terminal of a kind of event

Publications (1)

Publication Number Publication Date
WO2018133612A1 true WO2018133612A1 (en) 2018-07-26

Family

ID=58946262

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/117427 WO2018133612A1 (en) 2017-01-17 2017-12-20 Event indication method and mobile terminal

Country Status (2)

Country Link
CN (1) CN106791175A (en)
WO (1) WO2018133612A1 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106791175A (en) * 2017-01-17 2017-05-31 维沃移动通信有限公司 The reminding method and mobile terminal of a kind of event
CN107682512A (en) * 2017-09-22 2018-02-09 上海斐讯数据通信技术有限公司 A kind of method and system of prompting mobile telephone set people of unread information
CN108512991A (en) * 2018-02-27 2018-09-07 努比亚技术有限公司 A kind of based reminding method, mobile terminal and computer readable storage medium
CN109040423B (en) * 2018-06-27 2021-06-25 努比亚技术有限公司 Notification information processing method and device and computer readable storage medium
CN109274822A (en) * 2018-09-26 2019-01-25 努比亚技术有限公司 A kind of method of locating terminal, terminal and computer readable storage medium
CN110177170B (en) * 2019-04-17 2021-07-30 维沃软件技术有限公司 Terminal device control method and terminal device
CN110113451B (en) * 2019-04-19 2020-10-16 维沃移动通信有限公司 Indicator lamp control method and mobile terminal
CN110602330A (en) * 2019-10-25 2019-12-20 深圳传音控股股份有限公司 Incoming call response method, device and computer readable storage medium
CN111556212A (en) * 2020-05-15 2020-08-18 维沃移动通信有限公司 Reminding method and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105100457A (en) * 2015-07-08 2015-11-25 上海与德通讯技术有限公司 Event prompting method of mobile terminal and mobile terminal
CN105704328A (en) * 2016-04-13 2016-06-22 广东欧珀移动通信有限公司 Message reminding method, message reminding apparatus and mobile terminal
CN106200909A (en) * 2016-06-27 2016-12-07 广东欧珀移动通信有限公司 Event-prompting method, device and mobile terminal
CN106791175A (en) * 2017-01-17 2017-05-31 维沃移动通信有限公司 The reminding method and mobile terminal of a kind of event

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105100457A (en) * 2015-07-08 2015-11-25 上海与德通讯技术有限公司 Event prompting method of mobile terminal and mobile terminal
CN105704328A (en) * 2016-04-13 2016-06-22 广东欧珀移动通信有限公司 Message reminding method, message reminding apparatus and mobile terminal
CN106200909A (en) * 2016-06-27 2016-12-07 广东欧珀移动通信有限公司 Event-prompting method, device and mobile terminal
CN106791175A (en) * 2017-01-17 2017-05-31 维沃移动通信有限公司 The reminding method and mobile terminal of a kind of event

Also Published As

Publication number Publication date
CN106791175A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
WO2018133612A1 (en) Event indication method and mobile terminal
KR102535737B1 (en) Electric device comprising force sensor
EP3042264B1 (en) Display device and control method thereof
US10891005B2 (en) Electronic device with bent display and method for controlling thereof
KR102085267B1 (en) Use of Accelerometer Inputs to Change the Operating State of a Convertible Computing Device
WO2018040891A1 (en) Information display method and mobile terminal
US20160291864A1 (en) Method of interacting with a portable electronic device
US10353567B2 (en) Electronic device
KR102557125B1 (en) Electronic device and control method thereof
JP2013105202A (en) Device, method, and program
JP6483452B2 (en) Electronic device, control method, and control program
JP2013131108A (en) Device, method, and program
US20140340336A1 (en) Portable terminal and method for controlling touch screen and system thereof
EP3477441A1 (en) Display device, electronic device including display device, and pressure sensing method therefor
KR20190095005A (en) Fingerprint sensing mehotd based on touch pressure in black screen mode of touch input apparatus and touch input appraratus for the same
KR102536148B1 (en) Method and apparatus for operation of an electronic device
JP5638330B2 (en) Mobile terminal, program, and display control method
CA2757527A1 (en) Motion gestures interface for portable electronic device
KR20190050624A (en) Electronic device for providing time information and a method for the same
CN108628489A (en) Touch input device and its control method
KR102535793B1 (en) Touch processing method and electronic device supporting the same
US9360963B2 (en) Portable terminal and operation inhibition area control method
KR20160029525A (en) Method of controlling user interface and electronic device supporting the same
JP2019082823A (en) Electronic machine
KR20190095168A (en) Fingerprint sensing mehotd based on touch pressure in black screen mode of touch input apparatus and touch input appraratus for the same

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17892429

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17892429

Country of ref document: EP

Kind code of ref document: A1