WO2017084100A1 - Terminal operation method and terminal - Google Patents

Terminal operation method and terminal Download PDF

Info

Publication number
WO2017084100A1
WO2017084100A1 PCT/CN2015/095199 CN2015095199W WO2017084100A1 WO 2017084100 A1 WO2017084100 A1 WO 2017084100A1 CN 2015095199 W CN2015095199 W CN 2015095199W WO 2017084100 A1 WO2017084100 A1 WO 2017084100A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
interval
pointing
pointing direction
current
Prior art date
Application number
PCT/CN2015/095199
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 华为技术有限公司
Priority to CN201580079535.5A priority Critical patent/CN107534698A/en
Priority to PCT/CN2015/095199 priority patent/WO2017084100A1/en
Publication of WO2017084100A1 publication Critical patent/WO2017084100A1/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/725Cordless telephones

Definitions

  • the present invention relates to electronic technologies, and in particular, to a terminal operating method and a terminal.
  • the mobile phone provides the user with a plurality of types of operations that can be selectively performed, for example, selecting a scene mode, selecting a charging mode, selecting to activate an APP, etc., wherein the scene mode includes: a silent mode, an outdoor mode, and a vibration mode. , flight mode and other modes; charging modes include: mild charging mode, extreme charging mode, etc., to meet the needs of users in different places. For example, when the user is exercising outdoors, the scene mode type is usually set to the outdoor mode; when the charging time is limited, the charging mode type is usually set to the extreme charging mode.
  • the present invention provides a terminal operation method and a terminal, which are used to solve the problem that the process of determining the operation to be performed by the terminal in the prior art is too dependent on the user's own operation and has low flexibility.
  • an embodiment of the present invention provides a method for operating a terminal, including:
  • the terminal acquires a current pointing direction of the terminal
  • the terminal performs an operation corresponding to the determined first pointing interval according to a correspondence between a preset pointing interval and an operation performed by the terminal, where the first pointing interval is included in the The preset points within the interval.
  • the correspondence between the direction of the direction and the operation to be performed by the terminal is preset, and the current direction of the terminal is obtained, so that the terminal determines the operation to be performed by the terminal according to the current direction, thereby improving the operation of determining the terminal.
  • Type flexibility
  • an embodiment of the present invention provides a method for operating a terminal, including:
  • the terminal acquires a current pointing direction of the terminal
  • the terminal performs an operation corresponding to the first rotation angle interval according to a correspondence between a preset rotation angle interval and an execution operation of the terminal, where the first rotation angle interval is included in the preset Within the range of rotation angles.
  • the preset relationship between the rotation angle interval of the terminal and the operation to be performed by the terminal is preset, and the first rotation angle of the terminal is obtained, so that the terminal determines the operation to be performed by the terminal according to the first rotation angle, and improves the determination.
  • the flexibility of the type of terminal operation is preset, and the first rotation angle of the terminal is obtained, so that the terminal determines the operation to be performed by the terminal according to the first rotation angle, and improves the determination.
  • the acquiring, by the terminal, the current direction of the terminal specifically includes:
  • the terminal when the terminal detects that the preset startup time arrives, the terminal obtains the current pointing direction;
  • the terminal acquires a current pointing direction when receiving an operation instruction input by the user, where the operation instruction is used to indicate that the current pointing direction is acquired.
  • the present embodiment provides a trigger condition for the terminal to obtain the current pointing direction, so that when the terminal detects that the trigger condition is met, , the current pointing direction of the terminal can be obtained to complete the purpose of determining the operation type of the terminal.
  • the method further includes:
  • the terminal displays the current pointing direction of the terminal and the corresponding relationship to the user, so that the user adjusts the current pointing direction of the terminal according to the corresponding relationship.
  • the terminal may also display the preset corresponding relationship in the terminal and display the current pointing direction of the terminal. Thereby, the user can adjust the pointing direction section of the terminal so that the terminal performs the type of operation required by the user.
  • the terminal receives the confirmation indication input by the user, performing an operation corresponding to the determined first pointing interval.
  • the operation type corresponding to the pointing direction is executed, thereby improving the accuracy of determining the operation to be performed by the terminal, and in the specific implementation process.
  • the terminal can also directly receive the confirmation instruction input by the user, thereby reducing the delay for determining the operation to be performed by the terminal, and improving the user experience.
  • the method before performing the operation corresponding to the determined first pointing interval, the method further includes:
  • the terminal performs an operation in the execution operation selection message
  • the terminal performs an operation corresponding to the determined first pointing interval.
  • the terminal determines the operation to be performed by the terminal according to the pointing direction, if the terminal receives the type of operation to be performed by the terminal input by the user, the user directly inputs the user input.
  • the acquiring, by the terminal, the current direction of the terminal specifically includes:
  • the terminal acquires a current pointing direction from a direction detecting component in the terminal;
  • the terminal acquires the current pointing direction of the terminal with respect to the associated device, where the associated device includes a direction detecting component.
  • an embodiment of the present invention provides a terminal, including:
  • An obtaining module configured to acquire a current pointing direction of the terminal
  • a determining module configured to determine a first pointing interval where the current pointing direction of the terminal is located
  • An execution module configured to perform an operation corresponding to the determined first pointing interval according to a correspondence between a preset pointing interval and an operation performed by the terminal, where the first pointing interval is included in The preset points are within the interval.
  • the acquiring module is specifically configured to:
  • the current pointing direction is obtained, wherein the operation instruction is used to indicate that the current pointing direction is obtained.
  • an embodiment of the present invention provides a terminal, including:
  • An obtaining module configured to acquire a current pointing direction of the terminal
  • the acquiring module is further configured to acquire a first angle that the terminal rotates from the current pointing direction;
  • a determining module configured to determine a first rotation angle interval in which the first angle is located
  • An execution module configured to perform an operation corresponding to the first rotation angle interval according to a correspondence between a preset rotation angle interval and an execution operation of the terminal, wherein the first rotation angle interval is included in the Preset within the rotation angle range.
  • the terminal further includes: a display module,
  • the executing module is further configured to: before performing an operation corresponding to the determined first pointing interval:
  • an operation corresponding to the determined first directional section is performed.
  • the executing module before the performing module performs an operation corresponding to the determined first pointing interval, the executing module is further configured to:
  • the acquiring module is specifically configured to:
  • the associated device includes a direction detecting component.
  • an embodiment of the present invention provides a terminal, including: a processor, a memory, and a communication interface;
  • the memory is configured to store program code
  • the processor, the memory, and the communication interface communicate with each other through a bus;
  • the processor is configured to read program code stored in the memory, and perform the following operations:
  • an embodiment of the present invention provides a terminal, including: a processor, a memory, and a communication interface;
  • the memory is configured to store program code
  • the processor, the memory, and the communication interface communicate with each other through a bus;
  • the processor is configured to read program code stored in the memory, and perform the following operations:
  • the processor when the processor obtains the current pointing direction of the terminal, the processor is specifically configured to:
  • the current pointing direction is acquired.
  • the processor before performing the operation corresponding to the determined first pointing interval, the processor is further configured to:
  • an operation corresponding to the determined first directional section is performed.
  • the processor before performing an operation corresponding to the determined first pointing interval, the processor is further configured to:
  • the processor is specifically configured to:
  • the associated device includes a direction detecting component.
  • the preset pointing interval comprises:
  • the terminal is placed on the surface of the associated device in a direction section divided in a plane in which the surface of the associated device associated with the terminal is located.
  • the direction of the direction of the terminal may be not only the direction of the terminal itself, but also the direction of the device associated with the terminal.
  • the device associated with the terminal may be a charging board.
  • the operations performed by the terminal comprise at least one of the following:
  • Select a profile select a charging mode, execute an application, select a keyboard input mode, or select a communication connection mode.
  • not only a type of operation executable by the terminal but also a combination of several types of operations may be determined, for example, selecting a scene mode and executing an application.
  • the confirmation indication comprises a voice operation indication and/or a touch operation indication.
  • the direction detecting element comprises at least one of the following detecting elements:
  • Magnetic field sensor acceleration sensor or gyroscope.
  • a seventh aspect of the present invention provides a method for operating a terminal, including:
  • the terminal is placed on a surface of an associated device associated with the terminal;
  • the terminal performs an operation corresponding to the determined first location according to a correspondence between the preset location and an operation performed by the terminal; wherein the first location is included in the pre- Set within the location.
  • An embodiment of the present invention provides a terminal operation method, including: the terminal first acquires a current pointing direction of the terminal, and then determines a first pointing interval where the current pointing direction of the terminal is located, and finally, performs operations according to the preset pointing interval and the terminal.
  • the operation corresponding to the determined pointing interval is performed, wherein the terminal can determine the performed operation according to the current pointing direction of the terminal, thereby improving the flexibility of determining the terminal to perform the operation.
  • FIG. 1 is a block diagram showing a partial structure of a terminal when a terminal is a mobile phone according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for operating a mobile phone according to Embodiment 1 of the present invention
  • Figure 3 is a schematic diagram showing the current pointing direction of the mobile phone
  • Figure 4 is a schematic diagram showing the pointing range of the current pointing direction of the mobile phone when the Y-axis is pointing;
  • FIG. 5 is a schematic diagram showing a pointing direction when the current pointing direction of the mobile phone is in the direction indicated by the black arrow;
  • FIG. 6 is a flowchart of a method for operating a mobile phone according to Embodiment 2 of the present invention.
  • FIG. 7 is a schematic diagram showing a section of a direction in which the charging board itself is divided.
  • FIG. 8 is a schematic structural diagram 1 of a terminal according to Embodiment 1 of the present invention.
  • FIG. 9 is a schematic structural diagram 2 of a terminal according to Embodiment 1 of the present invention.
  • the terminal has a variety of executable operations, including, for example, selecting a profile desired by the user, or selecting a charging mode desired by the user.
  • the user generally selects the operation to be performed by the terminal through manual operation, which is excessively dependent on the user and has low flexibility.
  • the application scenario of the present invention is to determine the type of operation to be performed by the terminal, and the terminal can directly determine the operation to be performed by the terminal according to the pointing direction of the terminal, without manual operation by the user, improving the flexibility of determining the type of operation, and improving the user. Satisfaction of experience.
  • the terminal can be a mobile phone, a tablet computer, a notebook computer, an ultra-mobile personal computer (UMC), a netbook, a personal digital assistant (PDA), etc., in the embodiment of the present invention.
  • the terminal is taken as an example for explaining the mobile phone.
  • FIG. 1 is a block diagram showing a part of the structure of the mobile phone 100 related to the embodiment of the present invention.
  • FIG. 1 is a block diagram showing a partial structure of a terminal when a terminal is a mobile phone according to an embodiment of the present invention.
  • the mobile phone includes: a radio frequency (Radio Frequency, abbreviated as: RF) circuit 1110, a memory 1120, an input unit 1130, a display unit 1140, a sensor 1150, an audio circuit 1160, and a wireless device.
  • RF Radio Frequency
  • a component of the wireless fidelity (abbreviation: WiFi) module 1170, the processor 1180, and the power source 1190 is a radio frequency (Radio Frequency, abbreviated as: RF) circuit 1110, a memory 1120, an input unit 1130, a display unit 1140, a sensor 1150, an audio circuit 1160, and a wireless device.
  • a component of the wireless fidelity (abbreviation: WiFi) module 1170, the processor 1180, and the power source 1190 the structure of the handset shown in FIG. 1 does not constitute a limitation to the handset
  • the RF circuit 1110 can be used for receiving and transmitting signals during the transmission or reception of information or during a call. Specifically, after receiving the downlink information of the base station, the processing is performed by the processor 1180. In addition, the uplink data is sent to the base station.
  • RF circuits include, but are not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like.
  • LNA Low Noise Amplifier
  • RF circuitry 1110 can also communicate with the network and other devices via wireless communication. The above wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), and code. Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), e-mail, Short Messaging Service (SMS), etc.
  • GSM Global System of Mobile communication
  • GPRS General Packet Radio Service
  • the memory 1120 can be used to store software programs and modules, and the processor 1180 executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory 1120.
  • the memory 1120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data created by the use of the mobile phone (such as audio data, phone book, etc.).
  • memory 1120 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • the input unit 1130 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the handset 1100.
  • the input unit 1130 may include a touch panel 1131 and other input devices 1132.
  • the touch panel 1131 also referred to as a touch screen, can collect touch operations on or near the user (such as the user using a finger, a stylus, or the like on the touch panel 1131 or near the touch panel 1131. Operation) and drive the corresponding connecting device according to a preset program.
  • the touch panel 1131 can include touch detection. Two parts of the device and the 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 1180 is provided and can receive commands from the processor 1180 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 also include other input devices 1132.
  • other input devices 1132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • the display unit 1140 can be used to display information input by the user or information provided to the user as well as various menus of the mobile phone.
  • the display unit 1140 may include a display panel 1141.
  • the display panel 1141 may be configured in the form of a liquid crystal display (LCD) or an organic light-emitting diode (OLED).
  • the touch panel 1131 can be overlaid on the display panel 1141.
  • the touch panel 1131 detects a touch operation thereon or nearby, the touch panel 1131 transmits to the processor 1180 to determine the type of the touch event, and then the processor 1180 is The type of touch event provides a corresponding visual output on display panel 1141.
  • the touch panel 1131 and the display panel 1141 are used as two independent components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 1131 and the display panel 1141 may be integrated. Realize the input and output functions of the phone.
  • the handset may also include at least one type of sensor 1150, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1141 according to the brightness of the ambient light, and the light sensor may close the display panel 1141 and/or when the mobile phone moves to the ear. Or backlight.
  • the acceleration sensor can detect the acceleration of each direction (usually three axes). When it is still, it can detect the magnitude and direction of gravity. It can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related games). , magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping).
  • the mobile phone can also be equipped with a magnetic field sensor and a gyroscope.
  • the magnetic field sensor is used to sense the magnetic field strength to measure physical parameters such as current, position and direction.
  • the gyroscope is orthogonal to the inertia space of the momentum moment sensitive housing of the high speed rotating body.
  • An angular motion detecting device for one or two axes of the rotation axis.
  • the other sensors such as a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which can be configured on the mobile phone, no further description is provided here.
  • Audio circuitry 1160, speaker 1161, and microphone 1162 can provide an audio interface between the user and the handset.
  • the audio circuit 1160 can transmit the converted electrical data of the received audio data to the speaker 1161, and convert it into a sound signal output by the speaker 1161; on the other hand, the microphone 1162 converts the collected sound signal into an electrical signal, and the audio circuit 1160 After receiving, it is converted into audio data, and then processed by the audio data output processor 1180, transmitted to the other mobile phone via the RF circuit 1110, or outputted to the memory 1120 for further processing.
  • WiFi is a short-range wireless transmission technology.
  • the mobile phone can help users to send and receive emails, browse web pages and access streaming media through the WiFi module 1170, which provides users with wireless broadband Internet access.
  • FIG. 1 shows the WiFi module 1170, it can be understood that it does not belong to the essential configuration of the mobile phone, and may be omitted as needed within the scope of not changing the essence of the invention.
  • the processor 1180 is a control center for the handset, which connects various portions of the entire handset using various interfaces and lines, by executing or executing software programs and/or modules stored in the memory 1120, and invoking data stored in the memory 1120, The phone's various functions and processing data, so that the overall monitoring of the phone.
  • the processor 1180 may include one or more processing units; preferably, the processor 1180 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 1180.
  • the handset also includes a power source 1190 (such as a battery) that powers the various components.
  • a power source can be logically coupled to the processor 1180 via a power management system to manage functions such as charging, discharging, and power management through the power management system.
  • the mobile phone can also include a camera 1200, which can be a front camera or a rear camera.
  • the mobile phone may further include a Bluetooth module, a Global Positioning System (GPS) module, and the like, and details are not described herein again.
  • GPS Global Positioning System
  • FIG. 2 is a flowchart of a method for operating a mobile phone according to Embodiment 1 of the present invention. As shown in FIG. 2, the method in this embodiment may include:
  • Step 101 The mobile phone obtains a current pointing direction of the mobile phone.
  • the mobile phone when the mobile phone is held by the user, the mobile phone can pass the preset direction check. Measure the component to get the current pointing direction of the phone.
  • the direction detecting element may include, for example, at least one of a magnetic field sensor, an acceleration sensor, or a gyroscope.
  • the pointing direction may be a direction having a fixed relative positional relationship with a fixed portion of the mobile phone, for example, a direction passing through the center of the screen and the top border of the mobile phone, and perpendicular to the top border of the mobile phone.
  • the pointing direction may also be other preset directions, and the direction detecting component may give a corresponding detection result according to the preset pointing direction, which is not limited by the embodiment of the present invention.
  • the mobile phone when the mobile phone is placed on the surface of other associated devices, the mobile phone can obtain its pointing direction with respect to the associated device.
  • the associated device also includes a direction detecting component.
  • the associated device may be, for example, a wearable device, a charging board, or the like.
  • the pointing direction may be a direction of the mobile phone relative to the associated device, wherein the mobile phone is placed on the surface of the associated device.
  • the mobile phone when the mobile phone is connected to the associated device, the mobile phone obtains the pointing direction of the mobile phone through the preset direction detecting component, for example, the mobile phone measures the first angle between itself and the magnetic pole of the earth through the magnetic field sensor, and the associated device passes the preset.
  • the direction detecting component acquires the pointing direction of the associated device.
  • the associated device measures the second angle between itself and the earth magnetic pole through the magnetic field sensor, and then the mobile phone can determine the current pointing direction of the mobile phone according to the first angle and the second angle.
  • the following takes the associated device as the charging board as an example, and assumes that the charging board has a rectangular planar structure, specifically illustrating how the mobile phone obtains the current pointing direction.
  • the shape of the charging board can be any shape.
  • the rectangular shape is taken as an example, and is only convenient for description. .
  • Figure 3 shows a schematic diagram of the current direction of the mobile phone. Taking the rectangular surface of the associated device as the coordinate plane, taking the coincidence point of the center of the mobile phone and the charging board as the coordinate origin, and setting the line parallel to the bottom edge of the associated device as the x-axis and the line parallel to the side of the associated device as the y-axis. Plane coordinate system.
  • the magnetic field sensor in the mobile phone measures the angle between itself and the magnetic pole of the earth, that is, the first angle, for example, the first angle is -30 degrees, and the magnetic field sensor in the associated device measures the relationship between itself and the earth magnetic pole.
  • the angle is the second angle, and the second angle is, for example, 0 degrees.
  • the current direction of the mobile phone to obtain the mobile phone can be triggered in the following ways:
  • the mobile phone When the mobile phone detects the charging signal input, it acquires the current pointing direction.
  • the charging signal is a charging signal during wired charging or a charging signal during wireless charging.
  • the mobile phone when the mobile phone is charged by the wireless charging pad, when the mobile phone is placed on the wireless charging board, the mobile phone receives a wireless charging negotiation request (equivalent to a charging signal) of the wireless charging board, and when the mobile phone receives the request, it can be wirelessly charged.
  • the board is connected and gets the current pointing direction.
  • the mobile phone when the mobile phone detects that the preset startup time arrives, the mobile phone obtains the current pointing direction.
  • the user may preset the start time of the current pointing direction according to personal preference to perform the action of the selection operation. For example, the user may wish to be woken up by various means such as ringing an alarm clock or opening a news app. Then, the user can preset to obtain the current pointing direction of the mobile phone at 7:00 in the morning, and select the corresponding direction according to the current pointing direction. Operation. For example, if the user wants to choose to open the news app and wake up, the user can place the mobile phone in the pointing direction corresponding to the open news APP before going to sleep. By 7:00 in the morning, the mobile phone will obtain the current pointing direction, and then according to the current Point to the direction and choose to open the news app.
  • the current pointing direction is obtained.
  • Preset locations include desks, bedside tables, TV cabinets, etc. Due to the location, the user has different needs for performing operations on the phone.
  • the user can set the current pointing direction when the mobile phone reaches different preset locations as needed to perform the selection operation. For example, when the user is ready to sleep and put the mobile phone on the nightstand, the mobile phone can choose to start the music, select to start the English broadcast, select the silent mode, etc., then when the user wants the mobile phone to select to start the music, the mobile phone can be placed on the nightstand and It is placed in the pointing direction corresponding to the selected start music, so that when the mobile phone detects that the mobile phone is placed on the bedside table, the current pointing direction is obtained, and then the operation of turning on the music is selected according to the current pointing direction.
  • the mobile phone acquires a current pointing direction when receiving an operation instruction input by the user, where the operation instruction is used to indicate that the current pointing direction is obtained;
  • the operation instruction of the user may be, for example, a preset shortcut key in the mobile phone.
  • the mobile phone receives an operation instruction corresponding to the shortcut key, and then the mobile phone acquires the current pointing direction according to the operation instruction.
  • the shortcut keys can be physical buttons in the phone or preset action gestures.
  • the operation instruction input by the user may also include a preset voice instruction, for example, Limited.
  • Step 102 The mobile phone determines a first pointing interval in which the current pointing direction of the mobile phone is located.
  • the pointing interval can be divided as follows: the plane of the mobile phone screen is taken as the coordinate plane, and the mobile phone center is taken as the coordinate origin, and the straight line parallel to the user's binocular line of sight or the ground plane is taken as the x-axis.
  • a plane coordinate system is established for the y-axis with a line perpendicular to the user's binocular line of sight or the ground plane, so that four quadrants, that is, four pointing intervals, are included in the plane coordinate system.
  • the direction detecting component in the mobile phone detects the current pointing direction of the mobile phone, the mobile phone can determine the position in the coordinate system where the current pointing direction is located, which is shown in FIG.
  • FIG. 4 is shown in FIG.
  • the schematic diagram of the pointing range is the Y-axis
  • FIG. 5 is a schematic diagram of the pointing direction when the current pointing direction of the mobile phone is the direction indicated by the black arrow.
  • the pointing interval may be divided according to the established coordinate system in step 101, that is, the four quadrants respectively correspond to four pointing intervals, as shown in FIG. 3, where the current pointing direction of the mobile phone is located.
  • the first pointing interval is the fourth quadrant.
  • the user or the mobile phone can preset the pointing interval where the pointing direction is when the pointing direction of the mobile phone is parallel to the coordinate axis direction.
  • the pointing direction of the mobile phone points to the positive X direction
  • the pointing direction of the pointing direction is the first quadrant
  • the pointing direction of the mobile phone points to the positive direction of the Y axis
  • the pointing direction of the pointing direction is the second quadrant
  • the mobile phone is The pointing direction points to the X-axis negative direction
  • the pointing direction of the pointing direction is the third quadrant
  • the pointing direction of the mobile phone points to the Y-axis negative direction
  • the pointing direction of the pointing direction is the fourth quadrant.
  • the division of the pointing interval is not limited to four, and is not limited to the above-mentioned division manner; the correspondence between the pointing direction and the pointing interval may also be preset according to the needs of the user, or preset by the mobile phone.
  • Step 103 The mobile phone performs an operation corresponding to the determined first pointing interval according to a correspondence between a preset pointing interval and an operation performed by the mobile phone.
  • the operation performed by the mobile phone includes: selecting a scene mode, selecting a charging mode, executing an application, selecting a keyboard input mode, or selecting a communication connection mode.
  • the operation performed by the mobile phone may be the selection of the silent mode, or the operation performed by the mobile phone may be the selection of the silent mode and the extreme charging mode.
  • a plurality of pointing intervals are preset in the mobile phone, and each pointing interval corresponds to an operation performed by one mobile phone, so that when the pointing direction of the mobile phone is in different pointing intervals, The phone can perform different operations.
  • a coordinate system is established in a plane parallel to the screen of the mobile phone and divided into four quadrants, that is, four pointing sections, and different pointing sections perform different operations corresponding to the mobile phone.
  • the mobile phone when the current pointing direction of the mobile phone is in the first quadrant, the mobile phone performs an operation of selecting a sleep mode; when the current pointing direction of the mobile phone is in the second quadrant, the mobile phone performs an operation of selecting a working mode; when the current pointing direction of the mobile phone is at the In the three quadrants, the mobile phone performs an operation of selecting a conference mode; when the current pointing direction of the mobile phone is in the fourth quadrant, the mobile phone performs an operation of selecting an entertainment mode.
  • the operation corresponding to each of the above-mentioned pointing intervals may also be a mixed combination of various operations.
  • the operation corresponding to the pointing interval represented by the first quadrant is the selected sleep mode and the fast charging mode
  • the operation corresponding to the indication interval of the quadrant representative may be the selection of the sleep mode and the mild charging mode
  • the operation corresponding to the pointing interval represented by the third quadrant may be the selection of the conference mode and the fast charging mode
  • the pointing range represented by the fourth quadrant is correspondingly performed.
  • the operation type can be selected conference mode and mild charging mode.
  • the above correspondence can also be written into the user manual, so that the user can adjust the pointing direction of the mobile phone or the pointing direction of the associated device according to the requirement, so that the operation performed by the mobile phone can be selected.
  • the mobile phone can also display the corresponding relationship between the preset pointing direction and the operation performed by the mobile phone.
  • the following describes the direction of the mobile phone itself, and continues to display the mobile phone screen as shown in FIG. 5 according to the above example. The screen is displayed so that the user clearly knows which direction the pointing direction of the mobile phone corresponds to which one performs the operation.
  • the current pointing direction of the user can also be displayed in the graph shown in FIG. 5 (the black arrow in FIG. 5), so that the user can adjust according to the corresponding relationship.
  • the current direction of the phone is pointed so that the user can change the action performed.
  • the operation corresponding to the pointing interval of the current black arrow is the sleep mode, that is, the operation performed by the terminal at this time is the selection of the sleep mode.
  • the order of displaying the correspondence relationship and the order of displaying the current pointing direction of the mobile phone are not limited, that is, the corresponding relationship shown in FIG. 7 may be displayed first, and then the pointing direction of the mobile phone is displayed in FIG. 5; Pointing to the direction, and then displaying the corresponding relationship shown in FIG. 5; it is also possible to simultaneously display the correspondence shown in FIG. 5 and the pointing direction of the mobile phone.
  • the operation performed by the mobile phone may be switched, and a first preset duration may be preset, and before the mobile phone performs an operation corresponding to the determined first pointing interval, determining that the mobile phone is currently Whether the stopping time in the pointing direction reaches the first preset duration, and if yes, performing an operation corresponding to the determined first pointing interval, wherein the first preset duration may be directly preset in the mobile phone, or may be The user's needs are modified in real time.
  • the mobile phone may further prompt the user to input a confirmation indication.
  • the mobile phone After receiving the confirmation instruction input by the user, the mobile phone performs an operation corresponding to the determined first pointing interval.
  • the confirmation indication includes a voice operation indication and/or a touch operation indication.
  • the mobile phone may prompt the user to confirm, and after receiving the confirmation prompt, for example, the mobile phone may touch the current direction of the mobile phone in the screen.
  • the mobile phone may prompt the user to confirm, and after receiving the confirmation prompt, for example, the mobile phone may touch the current direction of the mobile phone in the screen.
  • Pointing to the interval when the mobile phone receives the touch indication input by the user, determining that the current pointing direction of the mobile phone corresponds to the operation performed by the mobile phone required by the user, performing the operation corresponding to the pointing interval, that is, the user can touch the pointing of the sleep mode In the interval, when the mobile phone receives the touch indication, the mobile phone can select to perform a sleep mode.
  • the mobile phone may further determine whether the operation operation selection message input by the user is received; if the operation selection message is received, the mobile phone performs the execution operation. The operation in the message is selected; otherwise, the handset performs an operation corresponding to the determined first pointing interval.
  • the priority of the execution operation selection message input by the user is greater than the priority of the mobile phone itself to judge the execution operation.
  • the above-mentioned execution operation selection message may be: a voice operation indication and/or a touch operation indication.
  • the mobile phone displays the corresponding operation of the operation and the corresponding relationship of the pointing interval and the current pointing direction of the mobile phone, but does not perform the operation corresponding to the pointing direction where the current pointing direction of the mobile phone is located, if the user wants the operation performed by the mobile phone
  • the mode is the entertainment mode
  • the user can touch the pointing range in which the entertainment mode is located.
  • the mobile phone receives the touch indication, the mobile phone can select the entertainment mode.
  • the mobile phone displays the corresponding relationship and the current pointing direction of the mobile phone, and the operation corresponding to the pointing direction of the current pointing direction of the mobile phone is performed, if the operation mode that the user wants the mobile phone to perform is the entertainment mode, then the user The pointing range in which the entertainment mode is located can be touched, and when the mobile phone receives the touch indication, the mobile phone can select an entertainment mode.
  • different pointing intervals correspond to different operations of the mobile phone.
  • the user needs the mobile phone to perform a certain operation, the user only needs to rotate the terminal, so that the current pointing direction of the terminal changes, and the operation of the mobile phone is completed. There is no need to complete the tedious steps as in the prior art, which improves the user experience and the flexibility of operation.
  • the terminal operation method provided in this embodiment includes: the terminal first acquires the current pointing direction of the terminal, and then determines the first pointing interval where the current pointing direction of the terminal is located, and finally, according to the preset pointing interval and the operation performed by the terminal. Corresponding relationship, performing an operation corresponding to the determined pointing interval, wherein the terminal may determine the type of operation performed according to the current pointing direction of the terminal, thereby improving the flexibility of determining the terminal operation type.
  • FIG. 6 is a flowchart of a method for operating a mobile phone according to Embodiment 2 of the present invention. As shown in FIG. 6, the method in this embodiment may include:
  • Step 201 The mobile phone obtains a current pointing direction of the mobile phone.
  • Step 202 The mobile phone acquires a first angle of rotation of the mobile phone from the current pointing direction.
  • the mobile phone When the mobile phone is held by the user, the mobile phone can obtain the current pointing direction of the mobile phone through the preset direction detecting component, and then the user rotates the mobile phone by a certain angle, and the direction detecting component in the mobile phone can obtain the second pointing direction and the second pointing direction.
  • the difference between the angle with the current pointing direction is the angle of rotation, ie the first angle.
  • the black arrow points to the current pointing direction acquired by the mobile phone
  • the current pointing direction is the direction of 50 degrees in the coordinate system
  • the rotated second pointing direction is the coordinate system.
  • the difference between the angle of the second pointing direction and the angle of the current pointing direction is 30 degrees, that is, the first angle of rotation is 30 degrees.
  • Step 203 The mobile phone determines a first rotation angle interval where the first angle is located.
  • different rotation angle intervals may be preset by the user or preset in the mobile phone.
  • the four rotation angle sections are divided, the first rotation angle section is 0 ⁇ rotation angle ⁇ 90 degrees, the second rotation angle section is 90 ⁇ rotation angle ⁇ 180 degrees, and the third rotation angle section is 180 ⁇ rotation angle ⁇ 270 degrees.
  • the rotation angle interval is 270 degrees ⁇ the rotation angle ⁇ 360 or 0 degrees is the fourth rotation angle interval.
  • the first angle is 30 degrees, it is determined that the first angle is within the first rotation angle interval when 0 ⁇ rotation angle ⁇ 90 degrees.
  • the rotation angle interval may be preset according to the needs of the user or the mobile phone, which is not limited in this embodiment of the present invention.
  • Step 204 The mobile phone performs an operation corresponding to the first rotation angle interval according to the correspondence between the preset rotation angle interval and the operation performed by the mobile phone, wherein the first rotation angle interval is included in the preset rotation angle interval.
  • the different rotation angle ranges may be preset to correspond to different operation types of the mobile phone.
  • an operation corresponding to the first preset rotation angle interval is performed.
  • the mobile phone operating method provided in this embodiment includes: the mobile phone acquires a current pointing direction of the mobile phone, the mobile phone acquires a first angle of rotation of the mobile phone from the current pointing direction, and determines a first rotation angle interval where the first angle is located, and finally, The operation corresponding to the first rotation angle interval is performed according to the correspondence between the preset rotation angle interval and the operation performed by the mobile phone, so that the mobile phone can determine the execution of the preset operation according to the rotation angle, thereby improving the flexibility of the operation performed by the mobile phone. Sex.
  • the current pointing direction of the mobile phone may be obtained, and the operation to be performed by the mobile phone may be determined according to the current pointing direction or the selected angle.
  • the embodiment of the present invention may not acquire the mobile phone. The current direction.
  • the mobile phone is placed on the surface of the associated device associated with the mobile phone; and the mobile phone is on the surface of the associated device a first location; the mobile phone performs an operation corresponding to the determined first location according to a correspondence between the preset location and an operation performed by the mobile phone.
  • the preset position may be, for example, a preset direction section or the like.
  • the surface of the associated device is divided into a plurality of different direction intervals, and each direction interval corresponds to an operation performed by a mobile phone, so that when the mobile phone is located in a different direction interval, different operations can be performed, that is, according to the mobile phone.
  • the operation performed by the mobile phone is determined relative to the direction of the associated device.
  • FIG. 7 is a schematic diagram of a charging section of the charging board itself.
  • the surface of the charging pad is divided into, for example, four direction sections in order from top to bottom, and the first direction section, the second direction section, the third direction section, and the fourth direction are sequentially from top to bottom.
  • the corresponding operation type is the sleep mode
  • the corresponding operation type is the entertainment mode
  • the mobile phone is currently located in the third direction interval
  • the corresponding operation type is the conference mode
  • the mobile phone is currently located in the fourth direction interval, the corresponding operation type is the entertainment mode.
  • the operation corresponding to each of the above-mentioned pointing intervals may also be a mixed combination of various operations.
  • the operations performed by the first pointing interval may be the selection of the sleep mode and the fast charging mode
  • the second direction interval is performed.
  • the operation may be a selection of a sleep mode and a mild charging mode
  • the operation performed in the third direction interval may be a selection of a conference mode and a fast charging mode
  • the operation performed by the fourth direction section may be a selection of a conference mode and a mild charging mode.
  • FIG. 8 is a schematic structural diagram 1 of a terminal according to Embodiment 1 of the present invention.
  • the terminal in this embodiment may include: an obtaining module 11, a determining module 12, and an executing module 13,
  • the obtaining module 11 is configured to obtain a current pointing direction of the terminal.
  • a determining module 12 configured to determine a first pointing interval where the current pointing direction of the terminal is located
  • the execution module 13 is configured to perform an operation corresponding to the determined first pointing interval according to a correspondence between a preset pointing interval and an operation performed by the terminal, where the first pointing interval includes Within the preset pointing interval.
  • the obtaining module 11 is specifically configured to:
  • the current pointing direction is acquired.
  • the preset pointing interval includes:
  • the operations performed by the terminal include at least one of the following operations:
  • Select a profile select a charging mode, execute an application, select a keyboard input mode, or select a communication connection mode.
  • FIG. 9 is a schematic structural diagram 2 of a terminal according to Embodiment 1 of the present invention. As shown in FIG. 9, on the basis of the terminal shown in FIG. 8, the foregoing terminal further includes: a display module 14,
  • the executing module 13 is further configured to:
  • an operation corresponding to the determined first directional section is performed.
  • the confirmation indication includes a voice operation indication and/or a touch operation indication.
  • the executing module 13 is further configured to:
  • the obtaining module 11 is specifically configured to:
  • the associated device includes a direction detecting component.
  • the direction detecting component comprises at least one of the following detecting components:
  • Magnetic field sensor acceleration sensor or gyroscope.
  • the device in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 2, and the implementation principle and technical effects are similar, and details are not described herein again.
  • another terminal provided by the embodiment of the present invention may include: an obtaining module 11, a determining module 12, and an executing module 13,
  • the obtaining module 11 is configured to obtain a current pointing direction of the terminal.
  • the acquiring module 11 is further configured to acquire a first angle that the terminal rotates from the current pointing direction;
  • a determining module 12 configured to determine a first rotation angle interval where the first angle is located
  • the execution module 13 is configured to perform an operation corresponding to the first rotation angle interval according to a correspondence between a preset rotation angle interval and an execution operation of the terminal, where the first rotation angle interval is included in the Within the preset rotation angle interval.
  • the device in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 6.
  • the implementation principle and technical effects are similar, and details are not described herein again.
  • the present invention also provides a terminal, including: a processor 1180, a memory 1120, and a communication interface;
  • the memory 1120 is configured to store program code
  • the processor 1180, the memory 1120, and the communication interface communicate with each other through a bus;
  • the processor 1180 is configured to read a program code stored in the memory 1120, and execute Do the following:
  • the processor when the processor obtains the current direction of the terminal, the processor is specifically configured to:
  • the current pointing direction is acquired.
  • the preset pointing interval includes:
  • the terminal is placed on the surface of the associated device in a direction section divided in a plane in which the surface of the associated device associated with the terminal is located.
  • the operation performed by the mobile phone includes at least one of the following operations:
  • Select a profile select a charging mode, execute an application, select a keyboard input mode, or select a communication connection mode.
  • the terminal further includes: a display unit 1140,
  • the processor before performing the operation corresponding to the determined first pointing interval, the processor is further configured to:
  • an operation corresponding to the determined first directional section is performed.
  • the confirmation indication includes a voice operation indication and/or a touch operation indication.
  • the processor before performing the operation corresponding to the determined first pointing interval, the processor is further configured to:
  • the processor 1180 is specifically configured to: obtain a current pointing direction from a direction detecting component (not shown) in the mobile phone;
  • the associated device includes a direction detecting component.
  • the direction detecting component in the mobile phone comprises at least one of the following detecting components:
  • Magnetic field sensor magnetometer accelerometer electronic compass or gyroscope.
  • the device in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 2, and the implementation principle and technical effects are similar, and details are not described herein again.
  • the present invention further provides another terminal, referring to FIG. 1, comprising: a processor 1180, a memory 1120, and a communication interface;
  • the memory 1120 is configured to store program code
  • the processor 1180, the memory 1120, and the communication interface communicate with each other through a bus;
  • the processor 1180 is configured to read the program code stored in the memory 1120, and perform the following operations:
  • the device in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 6.
  • the implementation principle and technical effects are similar, and details are not described herein again.
  • the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed.
  • the foregoing storage medium includes: a read-only memory (Read-Only Memory, ROM for short), a random access memory (RAM), a disk, or a disk.
  • ROM Read-Only Memory
  • RAM random access memory
  • disk a disk
  • a variety of media such as optical discs that can store program code.

Abstract

Provided are a terminal operation method and a terminal. The method comprises: a terminal firstly acquiring a current pointing direction of the terminal, then determining a first pointing interval within which the current pointing direction of the terminal falls, and finally, according to a pre-set correlation between a pointing interval and an operation to be executed by the terminal, executing an operation corresponding to the determined pointing interval, wherein the terminal can determine an operation to be executed according to the current pointing direction of the terminal, thereby improving the flexibility in determining an operation to be executed by the terminal.

Description

终端操作方法和终端Terminal operation method and terminal 技术领域Technical field
本发明涉及电子技术,尤其涉及一种终端操作方法和终端。The present invention relates to electronic technologies, and in particular, to a terminal operating method and a terminal.
背景技术Background technique
随着科技的发展,手机已成为人们日常生活和工作中必不可少的通讯工具。现有技术中,手机向用户提供有多种可选择的执行的操作类型,例如:选择情景模式、选择充电模式、选择启动一个APP等,其中,情景模式包括:静音模式、室外模式、震动模式、飞行模式等多种模式;充电模式包括:温和充电模式、极速充电模式等等,以满足用户在不同场所的需求。如:用户在户外运动时,通常会将情景模式类型设置为室外模式;用户在充电时间有限的情况下,通常会将充电模式类型设置为极速充电模式。With the development of technology, mobile phones have become an indispensable communication tool in people's daily life and work. In the prior art, the mobile phone provides the user with a plurality of types of operations that can be selectively performed, for example, selecting a scene mode, selecting a charging mode, selecting to activate an APP, etc., wherein the scene mode includes: a silent mode, an outdoor mode, and a vibration mode. , flight mode and other modes; charging modes include: mild charging mode, extreme charging mode, etc., to meet the needs of users in different places. For example, when the user is exercising outdoors, the scene mode type is usually set to the outdoor mode; when the charging time is limited, the charging mode type is usually set to the extreme charging mode.
现有技术中,确定手机待执行的操作的过程过于依赖用户自己的操作,灵活性较低。In the prior art, the process of determining the operation to be performed by the mobile phone is too dependent on the user's own operation, and the flexibility is low.
发明内容Summary of the invention
本发明提供一种终端操作方法和终端,用以解决现有技术中确定终端待执行的操作的过程过于依赖用户自己的操作,灵活性较低的问题。The present invention provides a terminal operation method and a terminal, which are used to solve the problem that the process of determining the operation to be performed by the terminal in the prior art is too dependent on the user's own operation and has low flexibility.
第一方面,本发明实施例提供一种终端的操作方法,包括:In a first aspect, an embodiment of the present invention provides a method for operating a terminal, including:
终端获取所述终端当前的指向方向;The terminal acquires a current pointing direction of the terminal;
所述终端确定所述终端当前的指向方向所在的第一指向区间;Determining, by the terminal, a first pointing interval in which the current pointing direction of the terminal is located;
所述终端根据预设的指向区间与所述终端执行的操作之间的对应关系,执行与所述确定的所述第一指向区间对应的操作,其中,所述第一指向区间包含在所述预设的指向区间内。The terminal performs an operation corresponding to the determined first pointing interval according to a correspondence between a preset pointing interval and an operation performed by the terminal, where the first pointing interval is included in the The preset points within the interval.
本实施例中,通过预设指向方向区间与终端待执行的操作之间的对应关系,并获取终端当前的指向方向,从而终端根据当前的指向方向确定终端待执行的操作,提高了确定终端操作类型的灵活性。 In this embodiment, the correspondence between the direction of the direction and the operation to be performed by the terminal is preset, and the current direction of the terminal is obtained, so that the terminal determines the operation to be performed by the terminal according to the current direction, thereby improving the operation of determining the terminal. Type flexibility.
第二方面,本发明实施例提供一种终端的操作方法,包括:In a second aspect, an embodiment of the present invention provides a method for operating a terminal, including:
终端获取所述终端当前的指向方向;The terminal acquires a current pointing direction of the terminal;
所述终端获取所述终端从所述当前的指向方向旋转的第一角度;Obtaining, by the terminal, a first angle that the terminal rotates from the current pointing direction;
所述终端确定所述第一角度所在的第一旋转角度区间;Determining, by the terminal, a first rotation angle interval in which the first angle is located;
所述终端根据预设旋转角度区间与所述终端的执行操作之间的对应关系,执行与所述第一旋转角度区间对应的操作,其中,所述第一旋转角度区间包含在所述预设旋转角度区间内。The terminal performs an operation corresponding to the first rotation angle interval according to a correspondence between a preset rotation angle interval and an execution operation of the terminal, where the first rotation angle interval is included in the preset Within the range of rotation angles.
本实施例中,通过预设终端旋转角度区间与终端待执行的操作之间的对应关系,并获取终端的第一旋转角度,从而终端根据第一旋转角度确定终端待执行的操作,提高了确定终端操作类型的灵活性。In this embodiment, the preset relationship between the rotation angle interval of the terminal and the operation to be performed by the terminal is preset, and the first rotation angle of the terminal is obtained, so that the terminal determines the operation to be performed by the terminal according to the first rotation angle, and improves the determination. The flexibility of the type of terminal operation.
在前述第一方面或第二方面的一些实施例中,上述终端获取所述终端当前的指向方向,具体包括:In some embodiments of the foregoing first aspect or the second aspect, the acquiring, by the terminal, the current direction of the terminal, specifically includes:
所述终端检测到充电信号输入时,获取当前的指向方向;When the terminal detects the charging signal input, acquiring the current pointing direction;
或者,所述终端检测到预设启动时间到达时,获取当前的指向方向;Or, when the terminal detects that the preset startup time arrives, the terminal obtains the current pointing direction;
或者,所述终端检测到所述终端到达预设地点时,获取当前的指向方向;Or, when the terminal detects that the terminal reaches the preset location, acquiring the current pointing direction;
或者,所述终端在接收到用户输入的操作指令时,获取当前的指向方向,其中,所述操作指令用于指示获取当前的指向方向。Alternatively, the terminal acquires a current pointing direction when receiving an operation instruction input by the user, where the operation instruction is used to indicate that the current pointing direction is acquired.
本实施例中,为了达到通过终端的指向方向更加灵活的确定终端的操作类型的目的,本实施例给出了终端获取当前的指向方向的触发条件,从而当终端检测到有满足上述触发条件后,即可获取终端当前的指向方向,以完成确定终端的操作类型的目的。In this embodiment, in order to achieve a more flexible determination of the operation type of the terminal by the pointing direction of the terminal, the present embodiment provides a trigger condition for the terminal to obtain the current pointing direction, so that when the terminal detects that the trigger condition is met, , the current pointing direction of the terminal can be obtained to complete the purpose of determining the operation type of the terminal.
在前述第一方面或第二方面的一些实施例中,上述方法还包括:In some embodiments of the foregoing first or second aspect, the method further includes:
所述终端向用户显示所述终端当前的指向方向以及所述对应关系,以使所述用户根据所述对应关系调整所述终端当前的指向方向。The terminal displays the current pointing direction of the terminal and the corresponding relationship to the user, so that the user adjusts the current pointing direction of the terminal according to the corresponding relationship.
本实施例中,为了便于用户操作,在终端根据当前的指向方向确定终端待执行的操作类型时,还可以在终端的屏幕中显示终端中预设的对应关系,并显示终端当前的指向方向,从而可使用户调整终端的指向方向区间,以使终端执行用户所需的操作类型。In this embodiment, in order to facilitate the operation of the user, when the terminal determines the type of operation to be performed by the terminal according to the current pointing direction, the terminal may also display the preset corresponding relationship in the terminal and display the current pointing direction of the terminal. Thereby, the user can adjust the pointing direction section of the terminal so that the terminal performs the type of operation required by the user.
在前述第一方面或第二方面的一些实施例中,在执行与所述确定的所 述第一指向区间对应的操作之前,包括:In some embodiments of the foregoing first or second aspect, executing the determined Before the operation corresponding to the first pointing interval, the following:
若所述终端在所述当前的指向方向上的停止时间达到第一预设时长,则执行与所述确定的所述第一指向区间对应的操作;If the stop time of the terminal in the current pointing direction reaches a first preset duration, performing an operation corresponding to the determined first pointing interval;
或者,若所述终端接收到所述用户输入的确认指示,则执行与所述确定的所述第一指向区间对应的操作。Alternatively, if the terminal receives the confirmation indication input by the user, performing an operation corresponding to the determined first pointing interval.
本实施例中,只有终端在某一指向方向上停留的时间达到预设时长,才会执行该指向方向对应的操作类型,从而提高了确定终端待执行的操作的准确性,并且在具体实施过程中,终端还可以直接接收用户输入的确认指令,从而降低了确定终端待执行的操作的时延,以及提升了用户体验。In this embodiment, only when the terminal stays in a certain pointing direction reaches a preset duration, the operation type corresponding to the pointing direction is executed, thereby improving the accuracy of determining the operation to be performed by the terminal, and in the specific implementation process. The terminal can also directly receive the confirmation instruction input by the user, thereby reducing the delay for determining the operation to be performed by the terminal, and improving the user experience.
在前述第一方面或第二方面的一些实施例中,在执行与确定的所述第一指向区间对应的操作之前,还包括:In some embodiments of the foregoing first aspect or the second aspect, before performing the operation corresponding to the determined first pointing interval, the method further includes:
判断所述终端是否接收到用户输入的执行操作选择消息;Determining whether the terminal receives an execution operation selection message input by a user;
若接收到所述执行操作选择消息,则所述终端执行所述执行操作选择消息中的操作;If the execution operation selection message is received, the terminal performs an operation in the execution operation selection message;
否则,所述终端执行与所述确定的所述第一指向区间对应的操作。Otherwise, the terminal performs an operation corresponding to the determined first pointing interval.
本实施例中,为了提高用户的参与性,以及提升用户体验,在终端根据指向方向确定终端待执行的操作之前,如果终端接收到用户输入的终端待执行的操作类型,则直接执行用户输入的终端待执行的操作类型。In this embodiment, in order to improve the user's participation and improve the user experience, before the terminal determines the operation to be performed by the terminal according to the pointing direction, if the terminal receives the type of operation to be performed by the terminal input by the user, the user directly inputs the user input. The type of operation the terminal is to perform.
在前述第一方面或第二方面的一些实施例中,所述终端获取所述终端当前的指向方向,具体包括:In some embodiments of the foregoing first aspect or the second aspect, the acquiring, by the terminal, the current direction of the terminal, specifically includes:
所述终端从所述终端中的方向检测元件中获取当前所处的指向方向;The terminal acquires a current pointing direction from a direction detecting component in the terminal;
或者,所述终端获取所述终端相对于所述关联设备的所述当前的指向方向,其中,所述关联设备中包括方向检测元件。Or the terminal acquires the current pointing direction of the terminal with respect to the associated device, where the associated device includes a direction detecting component.
第三方面,本发明实施例提供一种终端,包括:In a third aspect, an embodiment of the present invention provides a terminal, including:
获取模块,用于获取所述终端当前的指向方向;An obtaining module, configured to acquire a current pointing direction of the terminal;
确定模块,用于确定所述终端当前的指向方向所在的第一指向区间;a determining module, configured to determine a first pointing interval where the current pointing direction of the terminal is located;
执行模块,用于根据预设的指向区间与所述终端执行的操作之间的对应关系,执行与所述确定的所述第一指向区间对应的操作,其中,所述第一指向区间包含在所述预设的指向区间内。 An execution module, configured to perform an operation corresponding to the determined first pointing interval according to a correspondence between a preset pointing interval and an operation performed by the terminal, where the first pointing interval is included in The preset points are within the interval.
结合第三方面,在第三方面的第一种可能的实现方式中,所述获取模块具体用于:In conjunction with the third aspect, in a first possible implementation manner of the third aspect, the acquiring module is specifically configured to:
检测到充电信号输入时,获取当前的指向方向;When the charging signal input is detected, the current pointing direction is obtained;
或者,检测到预设启动时间到达时,获取当前的指向方向,Or, when it is detected that the preset startup time arrives, the current pointing direction is obtained,
或者,检测到所述终端到达预设地点时,获取当前的指向方向,Or, when detecting that the terminal reaches the preset location, acquiring the current pointing direction,
或者,在接收到用户输入的操作指令时,获取当前的指向方向,其中,所述操作指令用于指示获取当前的指向方向。Alternatively, when the operation instruction input by the user is received, the current pointing direction is obtained, wherein the operation instruction is used to indicate that the current pointing direction is obtained.
第四方面,本发明实施例提供一种终端,包括:In a fourth aspect, an embodiment of the present invention provides a terminal, including:
获取模块,用于获取所述终端当前的指向方向;An obtaining module, configured to acquire a current pointing direction of the terminal;
所述获取模块,还用于获取所述终端从所述当前的指向方向旋转的第一角度;The acquiring module is further configured to acquire a first angle that the terminal rotates from the current pointing direction;
确定模块,用于确定所述第一角度所在的第一旋转角度区间;a determining module, configured to determine a first rotation angle interval in which the first angle is located;
执行模块,用于根据预设旋转角度区间与所述终端的执行操作之间的对应关系,执行与所述第一旋转角度区间对应的操作,其中,所述第一旋转角度区间包含在所述预设旋转角度区间内。An execution module, configured to perform an operation corresponding to the first rotation angle interval according to a correspondence between a preset rotation angle interval and an execution operation of the terminal, wherein the first rotation angle interval is included in the Preset within the rotation angle range.
在前述第三方面或第四方面的一些实施例中,上述的终端还包括:显示模块,In some embodiments of the foregoing third or fourth aspect, the terminal further includes: a display module,
用于向用户显示所述终端当前的指向方向以及所述对应关系,以使所述用户根据所述对应关系调整所述终端当前的指向方向。And displaying the current pointing direction of the terminal and the corresponding relationship to the user, so that the user adjusts the current pointing direction of the terminal according to the correspondence.
在前述第三方面或第四方面的一些实施例中,在执行与所述确定的所述第一指向区间对应的操作之前,所述执行模块还用于:In some embodiments of the foregoing third or fourth aspect, the executing module is further configured to: before performing an operation corresponding to the determined first pointing interval:
若所述终端在所述当前的指向方向上的停止时间达到第一预设时长,执行与所述确定的所述第一指向区间对应的操作;If the stopping time of the terminal in the current pointing direction reaches a first preset duration, performing an operation corresponding to the determined first pointing interval;
或者,若接收到用户输入的确认指示,则执行与所述确定的所述第一指向区间对应的操作。Alternatively, if an acknowledgment instruction input by the user is received, an operation corresponding to the determined first directional section is performed.
在前述第三方面或第四方面的一些实施例中,在所述执行模块执行与所述确定的所述第一指向区间对应的操作之前,所述执行模块还用于:In some embodiments of the foregoing third or fourth aspect, before the performing module performs an operation corresponding to the determined first pointing interval, the executing module is further configured to:
判断是否接收到用户输入的执行操作选择消息;Determining whether an execution operation selection message input by the user is received;
若接收到所述执行操作选择消息,则执行所述执行操作选择消息中的操作; If the execution operation selection message is received, performing an operation in the execution operation selection message;
否则,则执行与所述确定的所述第一指向区间对应的操作。Otherwise, an operation corresponding to the determined first pointing interval is performed.
在前述第三方面或第四方面的一些实施例中,所述获取模块具体用于:In some embodiments of the foregoing third or fourth aspect, the acquiring module is specifically configured to:
从所述终端中的方向检测元件中获取所述当前的指向方向;Obtaining the current pointing direction from a direction detecting component in the terminal;
或者,获取所述终端相对于所述关联设备的所述当前的指向方向,其中,所述关联设备中包括方向检测元件。Or acquiring the current pointing direction of the terminal relative to the associated device, where the associated device includes a direction detecting component.
第五方面,本发明实施例提供一种终端,包括:处理器、存储器和通信接口;In a fifth aspect, an embodiment of the present invention provides a terminal, including: a processor, a memory, and a communication interface;
所述存储器,用于存储程序代码;The memory is configured to store program code;
所述处理器、所述存储器和所述通信接口通过总线相互通信;The processor, the memory, and the communication interface communicate with each other through a bus;
所述处理器,用于读取所述存储器中存储的程序代码,执行以下操作:The processor is configured to read program code stored in the memory, and perform the following operations:
获取所述终端当前的指向方向;Obtaining a current direction of the terminal;
确定所述终端当前的指向方向所在的第一指向区间;Determining a first pointing interval in which the current pointing direction of the terminal is located;
根据预设的指向区间与所述终端执行的操作之间的对应关系,执行与所述确定的所述第一指向区间对应的操作,其中,所述第一指向区间包含在所述预设的指向区间内。Performing an operation corresponding to the determined first pointing interval according to a correspondence between a preset pointing interval and an operation performed by the terminal, wherein the first pointing interval is included in the preset Point to the interval.
第六方面,本发明实施例提供一种终端,包括:处理器、存储器和通信接口;In a sixth aspect, an embodiment of the present invention provides a terminal, including: a processor, a memory, and a communication interface;
所述存储器,用于存储程序代码;The memory is configured to store program code;
所述处理器、所述存储器和所述通信接口通过总线相互通信;The processor, the memory, and the communication interface communicate with each other through a bus;
所述处理器,用于读取所述存储器中存储的程序代码,执行以下操作:The processor is configured to read program code stored in the memory, and perform the following operations:
获取所述终端当前的指向方向;Obtaining a current direction of the terminal;
获取所述终端从所述当前的指向方向旋转的第一角度;Obtaining a first angle that the terminal rotates from the current pointing direction;
确定所述第一角度所在的第一旋转角度区间;Determining a first rotation angle interval in which the first angle is located;
根据预设旋转角度区间与所述终端的执行操作之间的对应关系,执行与所述第一旋转角度区间对应的操作,其中,所述第一旋转角度区间包含在所述预设旋转角度区间内。Performing an operation corresponding to the first rotation angle interval according to a correspondence between a preset rotation angle interval and an execution operation of the terminal, wherein the first rotation angle interval is included in the preset rotation angle interval Inside.
在前述第五方面或第六方面的一些实施例中,所述处理器在获取所述终端当前的指向方向时,具体用于: In some embodiments of the foregoing fifth or sixth aspect, when the processor obtains the current pointing direction of the terminal, the processor is specifically configured to:
当所述处理器检测到充电信号输入时,获取当前的指向方向;Obtaining a current pointing direction when the processor detects a charging signal input;
或者,当所述处理器检测到预设启动时间到达时,获取当前的指向方向;Or, when the processor detects that the preset startup time arrives, acquiring the current pointing direction;
或者,当所述处理器检测到所述终端到达预设地点时,获取当前的指向方向;Or, when the processor detects that the terminal reaches a preset location, acquiring a current pointing direction;
或者,在接收到用户输入的操作指令时,获取当前的指向方向。Or, when the operation instruction input by the user is received, the current pointing direction is acquired.
在前述第五方面或第六方面的一些实施例中,还包括:显示单元,In some embodiments of the foregoing fifth or sixth aspect, further comprising: a display unit,
用于向用户显示所述终端当前的指向方向以及所述对应关系,以使所述用户根据所述对应关系调整所述终端当前的指向方向。And displaying the current pointing direction of the terminal and the corresponding relationship to the user, so that the user adjusts the current pointing direction of the terminal according to the correspondence.
在前述第五方面或第六方面的一些实施例中,在执行与所述确定的所述第一指向区间对应的操作之前,所述处理器,还用于:In some embodiments of the foregoing fifth or sixth aspect, before performing the operation corresponding to the determined first pointing interval, the processor is further configured to:
若所述终端在所述当前的指向方向上的停止时间达到第一预设时长,则执行与所述确定的所述第一指向区间对应的操作;If the stop time of the terminal in the current pointing direction reaches a first preset duration, performing an operation corresponding to the determined first pointing interval;
或者,若接收到用户输入的确认指示,则执行与所述确定的所述第一指向区间对应的操作。Alternatively, if an acknowledgment instruction input by the user is received, an operation corresponding to the determined first directional section is performed.
在前述第五方面或第六方面的一些实施例中,在执行与所述确定的所述第一指向区间对应的操作之前,所述处理器还用于:In some embodiments of the foregoing fifth or sixth aspect, before performing an operation corresponding to the determined first pointing interval, the processor is further configured to:
判断是否接收到用户输入的执行操作选择消息;Determining whether an execution operation selection message input by the user is received;
若接收到所述执行操作选择消息,则执行所述执行操作选择消息中的操作;If the execution operation selection message is received, performing an operation in the execution operation selection message;
否则,执行与所述确定的所述第一指向区间对应的操作。Otherwise, an operation corresponding to the determined first pointing interval is performed.
在前述第五方面或第六方面的一些实施例中,所述处理器具体用于:In some embodiments of the foregoing fifth or sixth aspect, the processor is specifically configured to:
从所述终端中的方向检测元件中获取所述当前的指向方向;Obtaining the current pointing direction from a direction detecting component in the terminal;
或者,获取所述终端相对于所述关联设备的所述当前的指向方向,其中,所述关联设备中包括方向检测元件。Or acquiring the current pointing direction of the terminal relative to the associated device, where the associated device includes a direction detecting component.
在前述任意方面的一些实施例中,所述预设的指向区间包括:In some embodiments of any of the foregoing aspects, the preset pointing interval comprises:
在与所述终端屏幕的平行平面内划分的方向区间;a direction interval divided in a parallel plane with the terminal screen;
或,在与所述终端关联的关联设备表面所在的平面内划分的方向区间,所述终端放置在所述关联设备表面。Or, the terminal is placed on the surface of the associated device in a direction section divided in a plane in which the surface of the associated device associated with the terminal is located.
本实施例中,为了进一步提高确定终端的操作类型灵活性的目的,终 端的指向方向区间不仅可以为终端自身的指向方向,还可以为与终端关联的设备的方向区间,优选的,该与终端关联的设备可以为充电板。In this embodiment, in order to further improve the flexibility of determining the operation type of the terminal, The direction of the direction of the terminal may be not only the direction of the terminal itself, but also the direction of the device associated with the terminal. Preferably, the device associated with the terminal may be a charging board.
在前述任意方面的一些实施例中,所述终端执行的操作包括以下操作中的至少一种:In some embodiments of any of the foregoing aspects, the operations performed by the terminal comprise at least one of the following:
选择一种情景模式、选择一种充电模式、执行一个应用程序、选择一种键盘输入模式、或选择一种通信连接模式。Select a profile, select a charging mode, execute an application, select a keyboard input mode, or select a communication connection mode.
本实施例中,不仅可以单一的确定终端可执行的一种操作类型,还可以为几种操作类型的组合,比如:选择一种情景模式并执行一个应用程序等。In this embodiment, not only a type of operation executable by the terminal but also a combination of several types of operations may be determined, for example, selecting a scene mode and executing an application.
在前述任意方面的一些实施例中,所述确认指示,包括语音操作指示和/或触摸操作指示。In some embodiments of any of the foregoing aspects, the confirmation indication comprises a voice operation indication and/or a touch operation indication.
在前述任意方面的一些实施例中,所述方向检测元件包括以下检测元件中的至少一种:In some embodiments of any of the foregoing aspects, the direction detecting element comprises at least one of the following detecting elements:
磁场传感器、加速度传感器或陀螺仪。Magnetic field sensor, acceleration sensor or gyroscope.
第七方面,本发明实施例提供一种终端的操作方法,包括:A seventh aspect of the present invention provides a method for operating a terminal, including:
所述终端放置于与所述终端关联的关联设备表面;The terminal is placed on a surface of an associated device associated with the terminal;
所述终端确定所述终端在所述关联设备的表面的第一位置;Determining, by the terminal, a first location of the terminal on a surface of the associated device;
所述终端根据所述预设的位置与所述终端执行的操作之间的对应关系,执行与所述确定的所述第一位置对应的操作;其中,所述第一位置包含在所述预设的位置内。The terminal performs an operation corresponding to the determined first location according to a correspondence between the preset location and an operation performed by the terminal; wherein the first location is included in the pre- Set within the location.
本发明实施例提供一种终端操作方法,包括:终端首先获取终端当前的指向方向,然后确定终端当前的指向方向所在的第一指向区间,最后,根据预设的指向区间与终端执行的操作之间的对应关系,执行与确定的指向区间对应的操作,其中,终端可根据终端当前的指向方向确定执行的操作,提高了确定终端执行操作的灵活性。An embodiment of the present invention provides a terminal operation method, including: the terminal first acquires a current pointing direction of the terminal, and then determines a first pointing interval where the current pointing direction of the terminal is located, and finally, performs operations according to the preset pointing interval and the terminal. In the corresponding relationship, the operation corresponding to the determined pointing interval is performed, wherein the terminal can determine the performed operation according to the current pointing direction of the terminal, thereby improving the flexibility of determining the terminal to perform the operation.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对 实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following will The drawings used in the embodiments or the description of the prior art are briefly described. It is obvious that the drawings in the following description are some embodiments of the present invention, and are not creative to those skilled in the art. Other drawings can also be obtained from these drawings on the premise of labor.
图1所示为本发明实施例提供的终端为手机时的部分结构的框图;1 is a block diagram showing a partial structure of a terminal when a terminal is a mobile phone according to an embodiment of the present invention;
图2所示为本发明实施例一提供的手机操作方法的流程图;2 is a flowchart of a method for operating a mobile phone according to Embodiment 1 of the present invention;
图3所示为手机获取当前的指向方向的示意图;Figure 3 is a schematic diagram showing the current pointing direction of the mobile phone;
图4所示为手机当前的指向方向为Y轴时指向区间的示意图;Figure 4 is a schematic diagram showing the pointing range of the current pointing direction of the mobile phone when the Y-axis is pointing;
图5所示为手机当前的指向方向为黑色箭头所示方向时指向区间的示意图;FIG. 5 is a schematic diagram showing a pointing direction when the current pointing direction of the mobile phone is in the direction indicated by the black arrow;
图6所示为本发明实施例二提供的手机操作方法的流程图;6 is a flowchart of a method for operating a mobile phone according to Embodiment 2 of the present invention;
图7所示为充电板自身划分方向区间的示意图;FIG. 7 is a schematic diagram showing a section of a direction in which the charging board itself is divided;
图8所示为本发明实施例一提供的一种终端的结构示意图一;FIG. 8 is a schematic structural diagram 1 of a terminal according to Embodiment 1 of the present invention; FIG.
图9所示为本发明实施例一提供的一种终端的结构示意图二。FIG. 9 is a schematic structural diagram 2 of a terminal according to Embodiment 1 of the present invention.
具体实施方式detailed description
终端具有多种可执行的操作,例如包括:选择用户所需的情景模式,或选择用户所需充电模式。但现有技术中,一般都是用户通过手动操作的方式来选择终端所要执行的操作,此种方式过分依赖用户,灵活性较低。The terminal has a variety of executable operations, including, for example, selecting a profile desired by the user, or selecting a charging mode desired by the user. However, in the prior art, the user generally selects the operation to be performed by the terminal through manual operation, which is excessively dependent on the user and has low flexibility.
本发明的应用场景即为确定终端待执行的操作类型,终端可直接根据终端的指向方向确定终端所要执行的操作,而无需通过用户手动操作,提高了确定操作类型的灵活性,并且提升了用户体验的满意度。The application scenario of the present invention is to determine the type of operation to be performed by the terminal, and the terminal can directly determine the operation to be performed by the terminal according to the pointing direction of the terminal, without manual operation by the user, improving the flexibility of determining the type of operation, and improving the user. Satisfaction of experience.
该终端可以为手机、平板电脑、笔记本电脑、超级移动个人计算机(Ultra-mobile Personal Computer,简称为:UMPC)、上网本、个人数字助理(Personal Digital Assistant,简称为:PDA)等,本发明实施例以终端为手机为例进行说明,图1示出的是与本发明实施例相关的手机100的部分结构的框图。The terminal can be a mobile phone, a tablet computer, a notebook computer, an ultra-mobile personal computer (UMC), a netbook, a personal digital assistant (PDA), etc., in the embodiment of the present invention. The terminal is taken as an example for explaining the mobile phone. FIG. 1 is a block diagram showing a part of the structure of the mobile phone 100 related to the embodiment of the present invention.
图1所示为本发明实施例提供的终端为手机时的部分结构的框图。参考图1,手机包括:射频(Radio Frequency,简称为:RF)电路1110、存储器1120、输入单元1130、显示单元1140、传感器1150、音频电路1160、无线 保真(wireless fidelity,简称为:WiFi)模块1170、处理器1180、以及电源1190等部件。本领域技术人员可以理解,图1中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。FIG. 1 is a block diagram showing a partial structure of a terminal when a terminal is a mobile phone according to an embodiment of the present invention. Referring to FIG. 1, the mobile phone includes: a radio frequency (Radio Frequency, abbreviated as: RF) circuit 1110, a memory 1120, an input unit 1130, a display unit 1140, a sensor 1150, an audio circuit 1160, and a wireless device. A component of the wireless fidelity (abbreviation: WiFi) module 1170, the processor 1180, and the power source 1190. It will be understood by those skilled in the art that the structure of the handset shown in FIG. 1 does not constitute a limitation to the handset, and may include more or less components than those illustrated, or some components may be combined, or different components may be arranged.
下面结合图1对手机的各个构成部件进行具体的介绍:The following describes the components of the mobile phone in conjunction with Figure 1:
RF电路1110可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器1180处理;另外,将上行的数据发送给基站。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,简称为:LNA)、双工器等。此外,RF电路1110还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobile communication,简称为:GSM)、通用分组无线服务(General Packet Radio Service,简称为:GPRS)、码分多址(Code Division Multiple Access,简称为:CDMA)、宽带码分多址(Wideband Code Division Multiple Access,简称为:WCDMA)、长期演进(Long Term Evolution,简称为:LTE))、电子邮件、短消息服务(Short Messaging Service,简称为:SMS)等。The RF circuit 1110 can be used for receiving and transmitting signals during the transmission or reception of information or during a call. Specifically, after receiving the downlink information of the base station, the processing is performed by the processor 1180. In addition, the uplink data is sent to the base station. Generally, RF circuits include, but are not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, RF circuitry 1110 can also communicate with the network and other devices via wireless communication. The above wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), and code. Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), e-mail, Short Messaging Service (SMS), etc.
存储器1120可用于存储软件程序以及模块,处理器1180通过运行存储在存储器1120的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器1120可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器1120可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 1120 can be used to store software programs and modules, and the processor 1180 executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory 1120. The memory 1120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data created by the use of the mobile phone (such as audio data, phone book, etc.). Moreover, memory 1120 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
输入单元1130可用于接收输入的数字或字符信息,以及产生与手机1100的用户设置以及功能控制有关的键信号输入。具体地,输入单元1130可包括触控面板1131以及其他输入设备1132。触控面板1131,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1131上或在触控面板1131附近的操作),并根据预先设定的程序驱动相应的连接装置。可选的,触控面板1131可包括触摸检测 装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器1180,并能接收处理器1180发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1131。除了触控面板1131,输入单元1130还可以包括其他输入设备1132。具体地,其他输入设备1132可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 1130 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the handset 1100. Specifically, the input unit 1130 may include a touch panel 1131 and other input devices 1132. The touch panel 1131, also referred to as a touch screen, can collect touch operations on or near the user (such as the user using a finger, a stylus, or the like on the touch panel 1131 or near the touch panel 1131. Operation) and drive the corresponding connecting device according to a preset program. Optionally, the touch panel 1131 can include touch detection. Two parts of the device and the 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 1180 is provided and can receive commands from the processor 1180 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 also include other input devices 1132. Specifically, other input devices 1132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
显示单元1140可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元1140可包括显示面板1141,可选的,可以采用液晶显示器(Liquid Crystal Display,简称为:LCD)、有机发光二极管(Organic Light-Emitting Diode,简称为:OLED)等形式来配置显示面板1141。进一步的,触控面板1131可覆盖于显示面板1141之上,当触控面板1131检测到在其上或附近的触摸操作后,传送给处理器1180以确定触摸事件的类型,随后处理器1180根据触摸事件的类型在显示面板1141上提供相应的视觉输出。虽然在图1中,触控面板1131与显示面板1141是作为两个独立的部件来实现手机的输入和输出功能,但是在某些实施例中,可以将触控面板1131与显示面板1141集成而实现手机的输入和输出功能。The display unit 1140 can be used to display information input by the user or information provided to the user as well as various menus of the mobile phone. The display unit 1140 may include a display panel 1141. Alternatively, the display panel 1141 may be configured in the form of a liquid crystal display (LCD) or an organic light-emitting diode (OLED). . Further, the touch panel 1131 can be overlaid on the display panel 1141. When the touch panel 1131 detects a touch operation thereon or nearby, the touch panel 1131 transmits to the processor 1180 to determine the type of the touch event, and then the processor 1180 is The type of touch event provides a corresponding visual output on display panel 1141. Although in FIG. 1 , the touch panel 1131 and the display panel 1141 are used as two independent components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 1131 and the display panel 1141 may be integrated. Realize the input and output functions of the phone.
手机还可包括至少一种传感器1150,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板1141的亮度,光传感器可在手机移动到耳边时,关闭显示面板1141和/或背光。作为运动传感器的一种,加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等。手机中还可配置磁场传感器和陀螺仪,其中,磁场传感器用于感应磁场强度来测量电流、位置、方向等物理参数,陀螺仪是用高速回转体的动量矩敏感壳体相对惯性空间绕正交于自转轴的一个或二个轴的角运动检测装置。至于手机还可配置的气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。 The handset may also include at least one type of sensor 1150, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1141 according to the brightness of the ambient light, and the light sensor may close the display panel 1141 and/or when the mobile phone moves to the ear. Or backlight. As a kind of motion sensor, the acceleration sensor can detect the acceleration of each direction (usually three axes). When it is still, it can detect the magnitude and direction of gravity. It can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related games). , magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping). The mobile phone can also be equipped with a magnetic field sensor and a gyroscope. The magnetic field sensor is used to sense the magnetic field strength to measure physical parameters such as current, position and direction. The gyroscope is orthogonal to the inertia space of the momentum moment sensitive housing of the high speed rotating body. An angular motion detecting device for one or two axes of the rotation axis. As for the other sensors such as a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which can be configured on the mobile phone, no further description is provided here.
音频电路1160、扬声器1161以及传声器1162可提供用户与手机之间的音频接口。音频电路1160可将接收到的音频数据转换后的电信号,传输到扬声器1161,由扬声器1161转换为声音信号输出;另一方面,传声器1162将收集的声音信号转换为电信号,由音频电路1160接收后转换为音频数据,再将音频数据输出处理器1180处理后,经RF电路1110以发送给比如另一手机,或者将音频数据输出至存储器1120以便进一步处理。 Audio circuitry 1160, speaker 1161, and microphone 1162 can provide an audio interface between the user and the handset. The audio circuit 1160 can transmit the converted electrical data of the received audio data to the speaker 1161, and convert it into a sound signal output by the speaker 1161; on the other hand, the microphone 1162 converts the collected sound signal into an electrical signal, and the audio circuit 1160 After receiving, it is converted into audio data, and then processed by the audio data output processor 1180, transmitted to the other mobile phone via the RF circuit 1110, or outputted to the memory 1120 for further processing.
WiFi属于短距离无线传输技术,手机通过WiFi模块1170可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图1示出了WiFi模块1170,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-range wireless transmission technology. The mobile phone can help users to send and receive emails, browse web pages and access streaming media through the WiFi module 1170, which provides users with wireless broadband Internet access. Although FIG. 1 shows the WiFi module 1170, it can be understood that it does not belong to the essential configuration of the mobile phone, and may be omitted as needed within the scope of not changing the essence of the invention.
处理器1180是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器1120内的软件程序和/或模块,以及调用存储在存储器1120内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器1180可包括一个或多个处理单元;优选的,处理器1180可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1180中。The processor 1180 is a control center for the handset, which connects various portions of the entire handset using various interfaces and lines, by executing or executing software programs and/or modules stored in the memory 1120, and invoking data stored in the memory 1120, The phone's various functions and processing data, so that the overall monitoring of the phone. Optionally, the processor 1180 may include one or more processing units; preferably, the processor 1180 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like. The modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 1180.
手机还包括给各个部件供电的电源1190(比如电池),优选的,电源可以通过电源管理系统与处理器1180逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The handset also includes a power source 1190 (such as a battery) that powers the various components. Preferably, the power source can be logically coupled to the processor 1180 via a power management system to manage functions such as charging, discharging, and power management through the power management system.
手机还可以包括摄像头1200,该摄像头可以为前置摄像头,也可以为后置摄像头。The mobile phone can also include a camera 1200, which can be a front camera or a rear camera.
尽管未示出,手机还可以包括蓝牙模块、全球定位系统(Global Positioning System,简称为:GPS)模块等,在此不再赘述。Although not shown, the mobile phone may further include a Bluetooth module, a Global Positioning System (GPS) module, and the like, and details are not described herein again.
下面结合附图,并以手机为例,对本发明本发明实施例进行说明。The embodiments of the present invention will be described below with reference to the accompanying drawings and taking a mobile phone as an example.
实施例一Embodiment 1
图2所示为本发明实施例一提供的手机操作方法的流程图,如图2所示,本实施例的方法可以包括:FIG. 2 is a flowchart of a method for operating a mobile phone according to Embodiment 1 of the present invention. As shown in FIG. 2, the method in this embodiment may include:
步骤101、手机获取手机当前的指向方向。Step 101: The mobile phone obtains a current pointing direction of the mobile phone.
在本步骤中,当手机被用户手持时,手机可以通过其中预置的方向检 测元件来获取手机当前的指向方向。In this step, when the mobile phone is held by the user, the mobile phone can pass the preset direction check. Measure the component to get the current pointing direction of the phone.
其中,方向检测元件,例如可以包括:磁场传感器、加速度传感器或陀螺仪中的至少一种。The direction detecting element may include, for example, at least one of a magnetic field sensor, an acceleration sensor, or a gyroscope.
指向方向可以为与手机的某一固定部分具有固定的相对位置关系的一个方向,例如,穿过屏幕中心以及手机上边框,且与手机上边框垂直的方向。当然,指向方向还可以为其他预设的方向,方向检测元件会根据预设的指向方向给出相应的检测结果,本发明实施例对此不作限定。The pointing direction may be a direction having a fixed relative positional relationship with a fixed portion of the mobile phone, for example, a direction passing through the center of the screen and the top border of the mobile phone, and perpendicular to the top border of the mobile phone. Of course, the pointing direction may also be other preset directions, and the direction detecting component may give a corresponding detection result according to the preset pointing direction, which is not limited by the embodiment of the present invention.
可选的,当手机放置在其他关联设备的表面时,手机可以获取其相对于关联设备的指向方向,在此种可实现的方式中,关联设备中同样包括方向检测元件。Optionally, when the mobile phone is placed on the surface of other associated devices, the mobile phone can obtain its pointing direction with respect to the associated device. In this achievable manner, the associated device also includes a direction detecting component.
其中,关联设备例如可以为:可穿戴设备、充电板等。The associated device may be, for example, a wearable device, a charging board, or the like.
此时,指向方向可以为手机相对于关联设备的一个方向,其中,手机放置在关联设备表面。At this time, the pointing direction may be a direction of the mobile phone relative to the associated device, wherein the mobile phone is placed on the surface of the associated device.
具体来说,当手机与关联设备相连接后,手机通过预置的方向检测元件获取手机的指向方向,例如手机通过磁场传感器测量自身与地球磁极之间的第一角度,关联设备通过预置的方向检测元件获取关联设备的指向方向,例如关联设备通过磁场传感器测量自身与地球磁极之间的第二角度,之后,手机根据第一角度以及第二角度可以确定手机当前的指向方向。Specifically, when the mobile phone is connected to the associated device, the mobile phone obtains the pointing direction of the mobile phone through the preset direction detecting component, for example, the mobile phone measures the first angle between itself and the magnetic pole of the earth through the magnetic field sensor, and the associated device passes the preset. The direction detecting component acquires the pointing direction of the associated device. For example, the associated device measures the second angle between itself and the earth magnetic pole through the magnetic field sensor, and then the mobile phone can determine the current pointing direction of the mobile phone according to the first angle and the second angle.
下面以关联设备为充电板为例,并假设充电板为长方形平面结构,具体说明手机如何获取当前的指向方向,当然,充电板的外形可以为任意形状,此处以长方形为例,仅为描述方便。The following takes the associated device as the charging board as an example, and assumes that the charging board has a rectangular planar structure, specifically illustrating how the mobile phone obtains the current pointing direction. Of course, the shape of the charging board can be any shape. Here, the rectangular shape is taken as an example, and is only convenient for description. .
图3所示为手机获取当前的指向方向的示意图。以关联设备的长方形表面为坐标平面,以手机中心与充电板的重合点为坐标原点,以平行于关联设备底边的直线为x轴、以平行于关联设备的侧边的直线为y轴建立平面坐标系。当手机与关联设备连接后,手机中的磁场传感器测量自身与地球磁极之间的夹角即第一角度,第一角度例如为-30度,关联设备中的磁场传感器测量自身与地球磁极之间的夹角即第二角度,该第二角度例如为0度。第一角度与第二角度之间的差值-30-0=-30度,即手机与充电板之间的夹角为-30度,那么可以确定手机当前的指向方向为坐标系中-30度的方向。Figure 3 shows a schematic diagram of the current direction of the mobile phone. Taking the rectangular surface of the associated device as the coordinate plane, taking the coincidence point of the center of the mobile phone and the charging board as the coordinate origin, and setting the line parallel to the bottom edge of the associated device as the x-axis and the line parallel to the side of the associated device as the y-axis. Plane coordinate system. When the mobile phone is connected to the associated device, the magnetic field sensor in the mobile phone measures the angle between itself and the magnetic pole of the earth, that is, the first angle, for example, the first angle is -30 degrees, and the magnetic field sensor in the associated device measures the relationship between itself and the earth magnetic pole. The angle is the second angle, and the second angle is, for example, 0 degrees. The difference between the first angle and the second angle is -30-0=-30 degrees, that is, the angle between the mobile phone and the charging board is -30 degrees, then it can be determined that the current pointing direction of the mobile phone is in the coordinate system -30 The direction of the degree.
可选的,手机获取手机当前的指向方向可以通过以下多种方式触发: Optionally, the current direction of the mobile phone to obtain the mobile phone can be triggered in the following ways:
手机检测到充电信号输入时,获取当前的指向方向。When the mobile phone detects the charging signal input, it acquires the current pointing direction.
其中,充电信号为有线充电时的充电信号或无线充电时的充电信号。The charging signal is a charging signal during wired charging or a charging signal during wireless charging.
例如:手机通过无线充电板充电时,当手机放置于无线充电板上,手机会接收到无线充电板的无线充电协商请求(相当于充电信号),当手机接收到该请求后,可以与无线充电板连接,并获取当前的指向方向。For example, when the mobile phone is charged by the wireless charging pad, when the mobile phone is placed on the wireless charging board, the mobile phone receives a wireless charging negotiation request (equivalent to a charging signal) of the wireless charging board, and when the mobile phone receives the request, it can be wirelessly charged. The board is connected and gets the current pointing direction.
可选的,手机检测到预设启动时间到达时,获取当前的指向方向。Optionally, when the mobile phone detects that the preset startup time arrives, the mobile phone obtains the current pointing direction.
例如:用户根据个人的喜好,可以预设获取当前的指向方向的启动时间,以执行选择操作的动作。比如用户可能希望通过闹钟响铃、或开启新闻APP等多种方式被叫醒,那么,用户可以预设在早上七点中,获取手机当前的指向方向,根据当前的指向方向选择与该方向对应的操作。例如,用户希望选择开启新闻APP被叫醒,则用户可以在入睡之前,将手机按照与开启新闻APP对应的指向方向上摆放,到了早上七点,手机会获取当前的指向方向,进而根据当前的指向方向,选择开启新闻APP的操作。For example, the user may preset the start time of the current pointing direction according to personal preference to perform the action of the selection operation. For example, the user may wish to be woken up by various means such as ringing an alarm clock or opening a news app. Then, the user can preset to obtain the current pointing direction of the mobile phone at 7:00 in the morning, and select the corresponding direction according to the current pointing direction. Operation. For example, if the user wants to choose to open the news app and wake up, the user can place the mobile phone in the pointing direction corresponding to the open news APP before going to sleep. By 7:00 in the morning, the mobile phone will obtain the current pointing direction, and then according to the current Point to the direction and choose to open the news app.
可选的,当手机检测到手机到达预设地点时,获取当前的指向方向。Optionally, when the mobile phone detects that the mobile phone reaches the preset location, the current pointing direction is obtained.
预设地点包括办公桌、床头柜、电视柜等,由于地点不同,则用户对手机执行操作的需求不同。Preset locations include desks, bedside tables, TV cabinets, etc. Due to the location, the user has different needs for performing operations on the phone.
例如:用户根据需要可以设定手机到达不同预设地点时,获取当前的指向方向,以执行选择操作的动作。比如,用户准备睡觉并将手机放置在床头柜上时,手机可以选择启动音乐、选择启动英语广播、选择静音模式等操作,那么当用户希望手机选择启动音乐时,可以在将手机放置在床头柜上并以与选择启动音乐对应的指向方向上摆放好,这样当手机检测到手机放置于床头柜上,则获取当前的指向方向,进而根据当前的指向方向,选择开启音乐的操作。For example, the user can set the current pointing direction when the mobile phone reaches different preset locations as needed to perform the selection operation. For example, when the user is ready to sleep and put the mobile phone on the nightstand, the mobile phone can choose to start the music, select to start the English broadcast, select the silent mode, etc., then when the user wants the mobile phone to select to start the music, the mobile phone can be placed on the nightstand and It is placed in the pointing direction corresponding to the selected start music, so that when the mobile phone detects that the mobile phone is placed on the bedside table, the current pointing direction is obtained, and then the operation of turning on the music is selected according to the current pointing direction.
可选的,手机在接收到用户输入的操作指令时,获取当前的指向方向,其中,操作指令用于指示获取当前的指向方向;Optionally, the mobile phone acquires a current pointing direction when receiving an operation instruction input by the user, where the operation instruction is used to indicate that the current pointing direction is obtained;
其中,用户的操作指令例如可以为:手机中的预设快捷键,用户启动该快捷键时,手机接收到与该快捷键对应的操作指令,然后手机根据该操作指令获取当前的指向方向,此快捷键可以为手机中的物理按键,也可以为预设的操作手势。The operation instruction of the user may be, for example, a preset shortcut key in the mobile phone. When the user activates the shortcut key, the mobile phone receives an operation instruction corresponding to the shortcut key, and then the mobile phone acquires the current pointing direction according to the operation instruction. The shortcut keys can be physical buttons in the phone or preset action gestures.
此外,用户输入的操作指令例如还可以包括预设的语音指令,在此不 作限定。In addition, the operation instruction input by the user may also include a preset voice instruction, for example, Limited.
步骤102:手机确定手机当前的指向方向所在的第一指向区间。Step 102: The mobile phone determines a first pointing interval in which the current pointing direction of the mobile phone is located.
对于手机被用户手持的情况,例如可以参照如下方式对指向区间进行划分:以手机屏幕所在平面为坐标平面,以手机中心为坐标原点,以与用户双眼视线或地平面平行的直线为x轴,以与用户双眼视线或地平面垂直的直线为y轴建立平面坐标系,从而在此平面坐标系中包括了四个象限即四个指向区间。当手机中的方向检测元件检测到手机当前的指向方向时,手机可以确定该当前的指向方向所在坐标系中的位置即所在的指向区间,可参见图4或图5,其中,图4所示为手机当前的指向方向为Y轴时指向区间的示意图,图5所示为手机当前的指向方向为黑色箭头所示方向时指向区间的示意图。For the case where the mobile phone is held by the user, for example, the pointing interval can be divided as follows: the plane of the mobile phone screen is taken as the coordinate plane, and the mobile phone center is taken as the coordinate origin, and the straight line parallel to the user's binocular line of sight or the ground plane is taken as the x-axis. A plane coordinate system is established for the y-axis with a line perpendicular to the user's binocular line of sight or the ground plane, so that four quadrants, that is, four pointing intervals, are included in the plane coordinate system. When the direction detecting component in the mobile phone detects the current pointing direction of the mobile phone, the mobile phone can determine the position in the coordinate system where the current pointing direction is located, which is shown in FIG. 4 or FIG. 5, wherein FIG. 4 is shown in FIG. For the current pointing direction of the mobile phone, the schematic diagram of the pointing range is the Y-axis, and FIG. 5 is a schematic diagram of the pointing direction when the current pointing direction of the mobile phone is the direction indicated by the black arrow.
对于手机放置在其他关联设备的表面时,指向区间可以按照步骤101中已建立的坐标系进行划分,即将四个象限分别对应四个指向区间,如图3所示,手机当前的指向方向所在的第一指向区间为第四象限。When the mobile phone is placed on the surface of other associated devices, the pointing interval may be divided according to the established coordinate system in step 101, that is, the four quadrants respectively correspond to four pointing intervals, as shown in FIG. 3, where the current pointing direction of the mobile phone is located. The first pointing interval is the fourth quadrant.
需要说明的是,对于上述两种情况,用户或手机中均可以预设当手机的指向方向平行于坐标轴方向时,指向方向所在的指向区间。例如,当手机的指向方向指向X轴正向,则指向方向的指向区间为第一象限;当手机的指向方向指向Y轴正向,则指向方向的指向区间为第二像限;当手机的指向方向指向X轴负向,则指向方向的指向区间为第三象限;当手机的指向方向指向Y轴负向,则指向方向的指向区间为第四象限。It should be noted that, in the above two cases, the user or the mobile phone can preset the pointing interval where the pointing direction is when the pointing direction of the mobile phone is parallel to the coordinate axis direction. For example, when the pointing direction of the mobile phone points to the positive X direction, the pointing direction of the pointing direction is the first quadrant; when the pointing direction of the mobile phone points to the positive direction of the Y axis, the pointing direction of the pointing direction is the second quadrant; when the mobile phone is The pointing direction points to the X-axis negative direction, and the pointing direction of the pointing direction is the third quadrant; when the pointing direction of the mobile phone points to the Y-axis negative direction, the pointing direction of the pointing direction is the fourth quadrant.
当然,上述仅为举例说明,对于指向区间的划分不限于四个,也不限于上述划分方式;指向方向与指向区间的对应关系,也可以根据用户需要进行预设,或由手机预先设定。Of course, the above is only an example. The division of the pointing interval is not limited to four, and is not limited to the above-mentioned division manner; the correspondence between the pointing direction and the pointing interval may also be preset according to the needs of the user, or preset by the mobile phone.
步骤103:手机根据预设的指向区间与手机执行的操作之间的对应关系,执行与所述确定的第一指向区间对应的操作。Step 103: The mobile phone performs an operation corresponding to the determined first pointing interval according to a correspondence between a preset pointing interval and an operation performed by the mobile phone.
在本发明实例中,手机执行的操作包括:选择一种情景模式、选择一种充电模式、执行一个应用程序、选择一种键盘输入模式、或选择一种通信连接模式。In the example of the present invention, the operation performed by the mobile phone includes: selecting a scene mode, selecting a charging mode, executing an application, selecting a keyboard input mode, or selecting a communication connection mode.
例如:手机执行的操作可以为选择静音模式,或,手机执行的操作可以为选择静音和极速充电模式。 For example, the operation performed by the mobile phone may be the selection of the silent mode, or the operation performed by the mobile phone may be the selection of the silent mode and the extreme charging mode.
值得注意的是,以上执行的操作仅仅是一种举例,在实际应用中还可扩展为手机执行的其他操作,本发明不对其加以限制。It should be noted that the operations performed above are merely examples, and may be extended to other operations performed by the mobile phone in practical applications, and the present invention does not limit them.
可选的,在执行上述步骤101和步骤102之前,在手机中预设多个指向区间,且每一个指向区间对应一个手机执行的操作,这样,当手机的指向方向在不同的指向区间内,手机就可以执行不同的操作。Optionally, before performing the foregoing steps 101 and 102, a plurality of pointing intervals are preset in the mobile phone, and each pointing interval corresponds to an operation performed by one mobile phone, so that when the pointing direction of the mobile phone is in different pointing intervals, The phone can perform different operations.
如图4所示,将与手机屏幕平行的平面内建立坐标系并划分四个象限即四个指向区间,不同的指向区间对应手机执行不同的操作。As shown in FIG. 4, a coordinate system is established in a plane parallel to the screen of the mobile phone and divided into four quadrants, that is, four pointing sections, and different pointing sections perform different operations corresponding to the mobile phone.
例如,当手机当前的指向方向在第一象限时,手机执行选择睡眠模式的操作;当手机当前的指向方向在第二象限时,手机执行选择工作模式的操作;当手机当前的指向方向在第三象限时,手机执行选择会议模式的操作;当手机当前的指向方向在第四象限时,手机执行选择娱乐模式的操作。For example, when the current pointing direction of the mobile phone is in the first quadrant, the mobile phone performs an operation of selecting a sleep mode; when the current pointing direction of the mobile phone is in the second quadrant, the mobile phone performs an operation of selecting a working mode; when the current pointing direction of the mobile phone is at the In the three quadrants, the mobile phone performs an operation of selecting a conference mode; when the current pointing direction of the mobile phone is in the fourth quadrant, the mobile phone performs an operation of selecting an entertainment mode.
值得注意的是,上述的各个指向区间对应执行的操作还可以为各种不同的操作的混合组合,比如,第一象限代表的指向区间对应执行的操作为选择睡眠模式与快速充电模式,第二象限代表的指向区间对应执行的操作可以为选择睡眠模式与温和充电模式,第三象限代表的指向区间对应执行的操作可以为选择会议模式与快速充电模式,第四象限代表的指向区间对应执行的操作类型可以为选择会议模式与温和充电模式。It should be noted that the operation corresponding to each of the above-mentioned pointing intervals may also be a mixed combination of various operations. For example, the operation corresponding to the pointing interval represented by the first quadrant is the selected sleep mode and the fast charging mode, and the second. The operation corresponding to the indication interval of the quadrant representative may be the selection of the sleep mode and the mild charging mode, and the operation corresponding to the pointing interval represented by the third quadrant may be the selection of the conference mode and the fast charging mode, and the pointing range represented by the fourth quadrant is correspondingly performed. The operation type can be selected conference mode and mild charging mode.
实际使用中,还可以将上述对应关系写入使用手册中,从而用户可根据需求调整手机自身的的指向方向或相对于关联设备的指向方向,从而可选择手机执行的操作。In actual use, the above correspondence can also be written into the user manual, so that the user can adjust the pointing direction of the mobile phone or the pointing direction of the associated device according to the requirement, so that the operation performed by the mobile phone can be selected.
上述手机执行的操作只是一种举例,并不以此为限。The operations performed by the above mobile phone are only an example and are not limited thereto.
为了提高用户体验,手机还可以向用户显示预设指向方向与手机执行的操作的对应关系,下面以手机自身的指向方向进行说明,继续按照上述的例子,可以在手机屏幕上显示如图5所示的画面,从而用户清楚的知道手机的指向方向与哪一个执行操作相对应。In order to improve the user experience, the mobile phone can also display the corresponding relationship between the preset pointing direction and the operation performed by the mobile phone. The following describes the direction of the mobile phone itself, and continues to display the mobile phone screen as shown in FIG. 5 according to the above example. The screen is displayed so that the user clearly knows which direction the pointing direction of the mobile phone corresponds to which one performs the operation.
与此同时,在图4的基础上,如图5所示,还可将用户当前的指向方向显示在图5所示的图中(图5中的黑色箭头),以使用户根据对应关系调整手机当前的指向方向,从而用户可以改变执行的操作。例如,如图7所示,当前黑色箭头所在的指向区间对应的操作为睡眠模式,也即此时终端执行的操作为选择睡眠模式。当用户需要将手机执行的操作从睡眠模式 切换为娱乐模式时,只需将手机向右或向左旋转,使得黑色箭头随着手机一起旋转至娱乐模式对应的指向区间即可。At the same time, on the basis of FIG. 4, as shown in FIG. 5, the current pointing direction of the user can also be displayed in the graph shown in FIG. 5 (the black arrow in FIG. 5), so that the user can adjust according to the corresponding relationship. The current direction of the phone is pointed so that the user can change the action performed. For example, as shown in FIG. 7, the operation corresponding to the pointing interval of the current black arrow is the sleep mode, that is, the operation performed by the terminal at this time is the selection of the sleep mode. When the user needs to perform the operation of the phone from sleep mode When switching to the entertainment mode, simply rotate the phone to the right or left so that the black arrow rotates with the phone to the pointing zone corresponding to the entertainment mode.
在实际应用中,显示对应关系的图与显示手机当前指向方向的顺序不受限制,即可以先显示图7所示的对应关系,然后在图5中显示手机的指向方向;也可先显示手机的指向方向,然后显示图5所示的对应关系;还可以同时显示图5所示的对应关系以及手机的指向方向。In the actual application, the order of displaying the correspondence relationship and the order of displaying the current pointing direction of the mobile phone are not limited, that is, the corresponding relationship shown in FIG. 7 may be displayed first, and then the pointing direction of the mobile phone is displayed in FIG. 5; Pointing to the direction, and then displaying the corresponding relationship shown in FIG. 5; it is also possible to simultaneously display the correspondence shown in FIG. 5 and the pointing direction of the mobile phone.
值得注意的是,上述图5中的各个指向区间对应执行的操作还可以为上述所述的各种不同的操作的混合组合。It should be noted that the operations corresponding to the respective pointing sections in FIG. 5 described above may also be a hybrid combination of the various operations described above.
进一步的,为了防止手机不小心被触碰,而导致手机执行的操作的切换,可以预设一第一预设时长,在手机执行与确定的第一指向区间对应的操作之前,判断手机在当前的指向方向上的停止时间是否达到第一预设时长,如果是,则执行与确定的第一指向区间对应的操作,其中,此第一预设时长可以直接预设在手机中,也可以根据用户的需求进行实时的修改。Further, in order to prevent the mobile phone from being accidentally touched, the operation performed by the mobile phone may be switched, and a first preset duration may be preset, and before the mobile phone performs an operation corresponding to the determined first pointing interval, determining that the mobile phone is currently Whether the stopping time in the pointing direction reaches the first preset duration, and if yes, performing an operation corresponding to the determined first pointing interval, wherein the first preset duration may be directly preset in the mobile phone, or may be The user's needs are modified in real time.
通过预设一第一预设时长,从而可以有效避免手机被触碰而带来的操作的频繁切换,有效提高了用户体验。By preset a first preset duration, it is possible to effectively avoid frequent switching of operations caused by the touch of the mobile phone, thereby effectively improving the user experience.
进一步的为了提高用户体验,手机还可以提醒用户输入确认指示,当接收到用户输入的确认指示后,手机执行与确定的第一指向区间对应的操作。其中,确认指示,包括语音操作指示和/或触摸操作指示。Further, in order to improve the user experience, the mobile phone may further prompt the user to input a confirmation indication. After receiving the confirmation instruction input by the user, the mobile phone performs an operation corresponding to the determined first pointing interval. Wherein, the confirmation indication includes a voice operation indication and/or a touch operation indication.
具体来说,当手机显示了执行的操作和指向区间的上述对应关系以及手机当前的指向方向后,手机可以提示用户进行确认,用户接收到确认提示后,例如可以触摸屏幕中手机当前方向所在的指向区间,当手机收到用户输入的触摸指示后,确定手机当前的指向方向与用户所需要手机执行的操作对应,则执行该指向区间对应的操作,也即,用户可以触摸睡眠模式所在的指向区间,当手机接收到该触摸指示后,手机可选择执行睡眠模式。Specifically, when the mobile phone displays the corresponding operation and the corresponding relationship of the pointing interval and the current pointing direction of the mobile phone, the mobile phone may prompt the user to confirm, and after receiving the confirmation prompt, for example, the mobile phone may touch the current direction of the mobile phone in the screen. Pointing to the interval, when the mobile phone receives the touch indication input by the user, determining that the current pointing direction of the mobile phone corresponds to the operation performed by the mobile phone required by the user, performing the operation corresponding to the pointing interval, that is, the user can touch the pointing of the sleep mode In the interval, when the mobile phone receives the touch indication, the mobile phone can select to perform a sleep mode.
进一步的为了提高用户体验,在手机执行与确定的第一指向区间对应的操作之前,手机还可以判断是否接收到用户输入的执行操作选择消息;若接收到执行操作选择消息,则手机执行执行操作选择消息中的操作;否则,手机执行与确定的第一指向区间对应的操作。Further, in order to improve the user experience, before the mobile phone performs the operation corresponding to the determined first pointing interval, the mobile phone may further determine whether the operation operation selection message input by the user is received; if the operation selection message is received, the mobile phone performs the execution operation. The operation in the message is selected; otherwise, the handset performs an operation corresponding to the determined first pointing interval.
也即,用户输入的执行操作选择消息的优先级大于手机自身判断执行操作的优先级。 That is, the priority of the execution operation selection message input by the user is greater than the priority of the mobile phone itself to judge the execution operation.
上述的执行操作选择消息可以为:语音操作指示和/或触摸操作指示。The above-mentioned execution operation selection message may be: a voice operation indication and/or a touch operation indication.
具体来说,当手机显示了执行的操作和指向区间的上述对应关系以及手机当前的指向方向后,但未执行手机当前的指向方向所在的指向区间对应的操作,如果用户想要手机执行的操作模式为娱乐模式,则此时用户可以触摸娱乐模式所在的指向区间,当手机接收到该触摸指示后,手机可选择娱乐模式。或者,当手机显示了上述对应关系与手机当前的指向方向后,且已执行手机当前的指向方向所在的指向区间对应的操作,如果用户想要手机执行的操作模式为娱乐模式,则此时用户可以触摸娱乐模式所在的指向区间,当手机接收到该触摸指示后,手机可选择娱乐模式。Specifically, when the mobile phone displays the corresponding operation of the operation and the corresponding relationship of the pointing interval and the current pointing direction of the mobile phone, but does not perform the operation corresponding to the pointing direction where the current pointing direction of the mobile phone is located, if the user wants the operation performed by the mobile phone When the mode is the entertainment mode, the user can touch the pointing range in which the entertainment mode is located. When the mobile phone receives the touch indication, the mobile phone can select the entertainment mode. Or, when the mobile phone displays the corresponding relationship and the current pointing direction of the mobile phone, and the operation corresponding to the pointing direction of the current pointing direction of the mobile phone is performed, if the operation mode that the user wants the mobile phone to perform is the entertainment mode, then the user The pointing range in which the entertainment mode is located can be touched, and when the mobile phone receives the touch indication, the mobile phone can select an entertainment mode.
本发明中,不同的指向区间对应手机执行不同的操作,当用户需要手机执行某一操作时,只需旋转终端,使得终端的当前的指向方向发生变化,即可完成手机执行的操作的切换,无需像现有技术中通过繁琐的步骤完成,提高了用户体验以及操作的灵活性。In the present invention, different pointing intervals correspond to different operations of the mobile phone. When the user needs the mobile phone to perform a certain operation, the user only needs to rotate the terminal, so that the current pointing direction of the terminal changes, and the operation of the mobile phone is completed. There is no need to complete the tedious steps as in the prior art, which improves the user experience and the flexibility of operation.
本实施例提供的终端操作方法,包括:终端首先获取终端当前的指向方向,然后确定终端当前的指向方向所在的第一指向区间,最后,根据预设的指向区间与终端执行的操作之间的对应关系,执行与确定的指向区间对应的操作,其中,终端可根据终端当前的指向方向确定执行的操作类型,提高了确定终端操作类型的灵活性。The terminal operation method provided in this embodiment includes: the terminal first acquires the current pointing direction of the terminal, and then determines the first pointing interval where the current pointing direction of the terminal is located, and finally, according to the preset pointing interval and the operation performed by the terminal. Corresponding relationship, performing an operation corresponding to the determined pointing interval, wherein the terminal may determine the type of operation performed according to the current pointing direction of the terminal, thereby improving the flexibility of determining the terminal operation type.
实施例二Embodiment 2
图6所示为本发明实施例二提供的手机操作方法的流程图,如图6所示,本实施例的方法可以包括:FIG. 6 is a flowchart of a method for operating a mobile phone according to Embodiment 2 of the present invention. As shown in FIG. 6, the method in this embodiment may include:
步骤201、手机获取手机当前的指向方向。Step 201: The mobile phone obtains a current pointing direction of the mobile phone.
步骤202、手机获取手机从当前的指向方向旋转的第一角度。Step 202: The mobile phone acquires a first angle of rotation of the mobile phone from the current pointing direction.
当手机被用户手持时,手机可以通过其中预置的方向检测元件来获取手机当前的指向方向,然后用户将手机旋转一定角度,手机中的方向检测元件可以获得第二指向方向,第二指向方向与当前的指向方向所在角度之间的差值即为旋转的角度,即第一角度。When the mobile phone is held by the user, the mobile phone can obtain the current pointing direction of the mobile phone through the preset direction detecting component, and then the user rotates the mobile phone by a certain angle, and the direction detecting component in the mobile phone can obtain the second pointing direction and the second pointing direction. The difference between the angle with the current pointing direction is the angle of rotation, ie the first angle.
例如,参照图5,黑色箭头的指向为手机获取的当前的指向方向,当前的指向方向为坐标系中50度的方向,旋转后的第二指向方向为坐标系 中80度的方向,则第二指向方向所在角度与当前的指向方向所在角度之间的差值为30度,即旋转的第一角度为30度。For example, referring to FIG. 5, the black arrow points to the current pointing direction acquired by the mobile phone, the current pointing direction is the direction of 50 degrees in the coordinate system, and the rotated second pointing direction is the coordinate system. In the direction of 80 degrees, the difference between the angle of the second pointing direction and the angle of the current pointing direction is 30 degrees, that is, the first angle of rotation is 30 degrees.
步骤203:手机确定第一角度所在的第一旋转角度区间。Step 203: The mobile phone determines a first rotation angle interval where the first angle is located.
本发明实施例中,例如可以由用户预设或在手机中预设不同的旋转角度区间。例如,划分四个旋转角度区间,0≤旋转角度<90度时为第一旋转角度区间,90≤旋转角度<180度时为第二旋转角度区间,180≤旋转角度<270度时为第三旋转角度区间,270度≤旋转角度<360或0度时为第四旋转角度区间。In the embodiment of the present invention, for example, different rotation angle intervals may be preset by the user or preset in the mobile phone. For example, the four rotation angle sections are divided, the first rotation angle section is 0≤ rotation angle <90 degrees, the second rotation angle section is 90≤rotation angle <180 degrees, and the third rotation angle section is 180≤rotation angle <270 degrees. The rotation angle interval is 270 degrees ≤ the rotation angle <360 or 0 degrees is the fourth rotation angle interval.
当第一角度为30度时,则确定第一角度位于0≤旋转角度<90度时为第一旋转角度区间内。When the first angle is 30 degrees, it is determined that the first angle is within the first rotation angle interval when 0≤rotation angle <90 degrees.
当然,旋转角度区间可以根据用户需要或手机内预设为多个,本发明实施例对此不做限制。Of course, the rotation angle interval may be preset according to the needs of the user or the mobile phone, which is not limited in this embodiment of the present invention.
步骤204:手机根据预设旋转角度区间与手机执行的操作之间的对应关系,执行与第一旋转角度区间对应的操作,其中,第一旋转角度区间包含在预设旋转角度区间内。Step 204: The mobile phone performs an operation corresponding to the first rotation angle interval according to the correspondence between the preset rotation angle interval and the operation performed by the mobile phone, wherein the first rotation angle interval is included in the preset rotation angle interval.
其中,在步骤203中划分了不同的预设旋转角度区间后,可以预设不同旋转角度区间对应手机不同的操作类型。当手机旋转的第一角度位于第一预设旋转角度区间时,执行与第一预设旋转角度区间对应的操作。After the different preset rotation angle intervals are divided in step 203, the different rotation angle ranges may be preset to correspond to different operation types of the mobile phone. When the first angle of rotation of the mobile phone is in the first preset rotation angle interval, an operation corresponding to the first preset rotation angle interval is performed.
本实施例与实施例一的区别仅在于上述的介绍,其他实现方式类似或相同,详见实施例一的描述。The difference between this embodiment and the first embodiment is only the above description. Other implementations are similar or identical. For details, refer to the description of the first embodiment.
本实施例提供的手机操作方法,包括:手机获取手机当前的指向方向,手机获取手机从当前的指向方向的位置旋转的第一角度,并确定第一角度所在的第一旋转角度区间,最后,根据预设旋转角度区间与手机执行的操作之间的对应关系,执行与第一旋转角度区间对应的操作,使得手机可根据旋转的角度确定执行预设的操作,提高了手机执行的操作的灵活性。The mobile phone operating method provided in this embodiment includes: the mobile phone acquires a current pointing direction of the mobile phone, the mobile phone acquires a first angle of rotation of the mobile phone from the current pointing direction, and determines a first rotation angle interval where the first angle is located, and finally, The operation corresponding to the first rotation angle interval is performed according to the correspondence between the preset rotation angle interval and the operation performed by the mobile phone, so that the mobile phone can determine the execution of the preset operation according to the rotation angle, thereby improving the flexibility of the operation performed by the mobile phone. Sex.
需要说明的是,除上述实施例一、二可以获取手机当前的指向方向,并根据当前指向方向或选择的角度判断手机要执行的操作外,可选的,本发明实施例还可以不获取手机当前的指向方向。It should be noted that, in addition to the foregoing Embodiments 1 and 2, the current pointing direction of the mobile phone may be obtained, and the operation to be performed by the mobile phone may be determined according to the current pointing direction or the selected angle. Optionally, the embodiment of the present invention may not acquire the mobile phone. The current direction.
手机放置于与手机关联的关联设备表面;并手机在关联设备的表面的 第一位置;手机根据预设的位置与手机执行的操作之间的对应关系,执行与确定的第一位置对应的操作。The mobile phone is placed on the surface of the associated device associated with the mobile phone; and the mobile phone is on the surface of the associated device a first location; the mobile phone performs an operation corresponding to the determined first location according to a correspondence between the preset location and an operation performed by the mobile phone.
预设的位置例如可以为预设的方向区间等。例如,对关联设备的表面划分为多个不同的方向区间,且每一个方向区间对应一种手机执行的操作,这样,当手机位于不同的方向区间内,就可以执行不同的操作,即根据手机相对于关联设备的方向来确定手机执行的操作。The preset position may be, for example, a preset direction section or the like. For example, the surface of the associated device is divided into a plurality of different direction intervals, and each direction interval corresponds to an operation performed by a mobile phone, so that when the mobile phone is located in a different direction interval, different operations can be performed, that is, according to the mobile phone. The operation performed by the mobile phone is determined relative to the direction of the associated device.
以关联设备为充电板为例,图7所示为充电板自身划分方向区间的示意图。如图7所示,按从上到下的顺序,将充电板表面划分为例如4个方向区间,从上到下依次为第一方向区间、第二方向区间、第三方向区间和第四方向区间,当手机当前位于第一方向区间内时,对应的操作类型为睡眠模式;当手机当前位于第二方向区间内时,对应的操作类型为娱乐模式;当手机当前位于第三方向区间内时,对应的操作类型为会议模式;当手机当前位于第四方向区间内时,对应的操作类型为娱乐模式。Taking the associated device as a charging board as an example, FIG. 7 is a schematic diagram of a charging section of the charging board itself. As shown in FIG. 7, the surface of the charging pad is divided into, for example, four direction sections in order from top to bottom, and the first direction section, the second direction section, the third direction section, and the fourth direction are sequentially from top to bottom. Interval, when the mobile phone is currently located in the first direction interval, the corresponding operation type is the sleep mode; when the mobile phone is currently located in the second direction interval, the corresponding operation type is the entertainment mode; when the mobile phone is currently located in the third direction interval The corresponding operation type is the conference mode; when the mobile phone is currently located in the fourth direction interval, the corresponding operation type is the entertainment mode.
值得注意的是,上述各个指向区间对应执行的操作还可以为各种不同的操作的混合组合,比如,第一指向区间执行的操作可以为选择睡眠模式与快速充电模式,第二方向区间执行的操作可以为选择睡眠模式与温和充电模式,第三方向区间执行的操作可以为选择会议模式与快速充电模式,第四方向区间执行的操作可以为选择会议模式与温和充电模式。It should be noted that the operation corresponding to each of the above-mentioned pointing intervals may also be a mixed combination of various operations. For example, the operations performed by the first pointing interval may be the selection of the sleep mode and the fast charging mode, and the second direction interval is performed. The operation may be a selection of a sleep mode and a mild charging mode, and the operation performed in the third direction interval may be a selection of a conference mode and a fast charging mode, and the operation performed by the fourth direction section may be a selection of a conference mode and a mild charging mode.
实施例三Embodiment 3
图8所示为本发明实施例一提供的一种终端的结构示意图一,如图8所示,本实施例的终端可以包括:获取模块11、确定模块12和执行模块13,FIG. 8 is a schematic structural diagram 1 of a terminal according to Embodiment 1 of the present invention. As shown in FIG. 8, the terminal in this embodiment may include: an obtaining module 11, a determining module 12, and an executing module 13,
获取模块11,用于获取所述终端当前的指向方向;The obtaining module 11 is configured to obtain a current pointing direction of the terminal.
确定模块12,用于确定所述终端当前的指向方向所在的第一指向区间;a determining module 12, configured to determine a first pointing interval where the current pointing direction of the terminal is located;
执行模块13,用于根据预设的指向区间与所述终端执行的操作之间的对应关系,执行与所述确定的所述第一指向区间对应的操作,其中,所述第一指向区间包含在所述预设的指向区间内。The execution module 13 is configured to perform an operation corresponding to the determined first pointing interval according to a correspondence between a preset pointing interval and an operation performed by the terminal, where the first pointing interval includes Within the preset pointing interval.
可选的,所述获取模块11具体用于: Optionally, the obtaining module 11 is specifically configured to:
检测到充电信号输入时,获取当前的指向方向;When the charging signal input is detected, the current pointing direction is obtained;
或者,检测到预设启动时间到达时,获取当前的指向方向,Or, when it is detected that the preset startup time arrives, the current pointing direction is obtained,
或者,检测到所述终端到达预设地点时,获取当前的指向方向,Or, when detecting that the terminal reaches the preset location, acquiring the current pointing direction,
或者,在接收到用户输入的操作指令时,获取当前的指向方向。Or, when the operation instruction input by the user is received, the current pointing direction is acquired.
可选的,所述预设的指向区间包括:Optionally, the preset pointing interval includes:
在与所述终端屏幕的平行平面内划分的方向区间;或a direction interval divided in a parallel plane with the screen of the terminal; or
与所述终端进行关联的关联设备的方向区间,所述终端放置在所述关联设备表面。a direction interval of the associated device associated with the terminal, the terminal being placed on the surface of the associated device.
可选的,所述终端执行的操作包括以下操作中的至少一种:Optionally, the operations performed by the terminal include at least one of the following operations:
选择一种情景模式、选择一种充电模式、执行一个应用程序、选择一种键盘输入模式、或选择一种通信连接模式。Select a profile, select a charging mode, execute an application, select a keyboard input mode, or select a communication connection mode.
进一步的,图9所示为本发明实施例一提供的一种终端的结构示意图二。如图9所示,在图8所示终端的基础上,上述的终端还包括:显示模块14,Further, FIG. 9 is a schematic structural diagram 2 of a terminal according to Embodiment 1 of the present invention. As shown in FIG. 9, on the basis of the terminal shown in FIG. 8, the foregoing terminal further includes: a display module 14,
用于向用户显示所述终端当前的指向方向以及所述对应关系,以使所述用户根据所述对应关系调整所述终端当前的指向方向。And displaying the current pointing direction of the terminal and the corresponding relationship to the user, so that the user adjusts the current pointing direction of the terminal according to the correspondence.
进一步的,在执行与确定的所述第一指向区间对应的操作之前,所述执行模块13还用于:Further, before performing the operation corresponding to the determined first pointing interval, the executing module 13 is further configured to:
若所述终端在所述当前的指向方向上的停止时间达到第一预设时长,执行与所述确定的所述第一指向区间对应的操作;If the stopping time of the terminal in the current pointing direction reaches a first preset duration, performing an operation corresponding to the determined first pointing interval;
或者,若接收到用户输入的确认指示,则执行与所述确定的所述第一指向区间对应的操作。Alternatively, if an acknowledgment instruction input by the user is received, an operation corresponding to the determined first directional section is performed.
可选的,所述确认指示,包括语音操作指示和/或触摸操作指示。Optionally, the confirmation indication includes a voice operation indication and/or a touch operation indication.
可选的,在所述执行模块13执行与确定的所述第一指向区间对应的操作之前,所述执行模块13还用于:Optionally, before the performing the module 13 performs the operation corresponding to the determined first pointing interval, the executing module 13 is further configured to:
判断是否接收到用户输入的执行操作选择消息;Determining whether an execution operation selection message input by the user is received;
若接收到所述执行操作选择消息,则执行所述执行操作选择消息中的操作;If the execution operation selection message is received, performing an operation in the execution operation selection message;
否则,则执行与所述确定的所述第一指向区间对应的操作。Otherwise, an operation corresponding to the determined first pointing interval is performed.
可选的,所述获取模块11具体用于: Optionally, the obtaining module 11 is specifically configured to:
从所述终端中的方向检测元件中获取所述当前的指向方向;Obtaining the current pointing direction from a direction detecting component in the terminal;
或者,获取所述终端相对于所述关联设备的所述当前的指向方向,其中,所述关联设备中包括方向检测元件。Or acquiring the current pointing direction of the terminal relative to the associated device, where the associated device includes a direction detecting component.
可选的,所述方向检测元件包括以下检测元件中的至少一种:Optionally, the direction detecting component comprises at least one of the following detecting components:
磁场传感器、加速度传感器或陀螺仪。Magnetic field sensor, acceleration sensor or gyroscope.
本实施例的装置,可以用于执行图2所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The device in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 2, and the implementation principle and technical effects are similar, and details are not described herein again.
实施例四Embodiment 4
结合实施例三的图8、图9,本发明实施例提供的另一种终端可以包括:获取模块11、确定模块12和执行模块13,With reference to FIG. 8 and FIG. 9 of the third embodiment, another terminal provided by the embodiment of the present invention may include: an obtaining module 11, a determining module 12, and an executing module 13,
获取模块11,用于获取所述终端当前的指向方向;The obtaining module 11 is configured to obtain a current pointing direction of the terminal.
所述获取模块11,还用于获取所述终端从所述当前的指向方向旋转的第一角度;The acquiring module 11 is further configured to acquire a first angle that the terminal rotates from the current pointing direction;
确定模块12,用于确定所述第一角度所在的第一旋转角度区间;a determining module 12, configured to determine a first rotation angle interval where the first angle is located;
执行模块13,用于根据预设旋转角度区间与所述终端的执行操作之间的对应关系,执行与所述第一旋转角度区间对应的操作,其中,所述第一旋转角度区间包含在所述预设旋转角度区间内。The execution module 13 is configured to perform an operation corresponding to the first rotation angle interval according to a correspondence between a preset rotation angle interval and an execution operation of the terminal, where the first rotation angle interval is included in the Within the preset rotation angle interval.
需要说明的是,本实施例与实施例三的区别仅在于上述对实施例四的介绍,其他内容与实施例三相同,在此不再赘述。It should be noted that the difference between the embodiment and the third embodiment is only the above description of the fourth embodiment, and the other content is the same as that of the third embodiment, and details are not described herein again.
本实施例的装置,可以用于执行图6所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The device in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 6. The implementation principle and technical effects are similar, and details are not described herein again.
实施例五Embodiment 5
本发明还提供一种终端,包括:处理器1180、存储器1120和通信接口;The present invention also provides a terminal, including: a processor 1180, a memory 1120, and a communication interface;
所述存储器1120,用于存储程序代码;The memory 1120 is configured to store program code;
所述处理器1180、所述存储器1120和所述通信接口通过总线相互通信;The processor 1180, the memory 1120, and the communication interface communicate with each other through a bus;
所述处理器1180,用于读取所述存储器1120中存储的程序代码,执 行以下操作:The processor 1180 is configured to read a program code stored in the memory 1120, and execute Do the following:
获取所述终端当前的指向方向;Obtaining a current direction of the terminal;
确定所述终端当前的指向方向所在的第一指向区间;Determining a first pointing interval in which the current pointing direction of the terminal is located;
根据预设的指向区间与所述终端执行的操作之间的对应关系,执行与所述确定的所述第一指向区间对应的操作,其中,所述第一指向区间包含在所述预设的指向区间内。Performing an operation corresponding to the determined first pointing interval according to a correspondence between a preset pointing interval and an operation performed by the terminal, wherein the first pointing interval is included in the preset Point to the interval.
可选的,所述处理器在获取所述终端当前的指向方向时,具体用于:Optionally, when the processor obtains the current direction of the terminal, the processor is specifically configured to:
当所述处理器检测到充电信号输入时,获取当前的指向方向;Obtaining a current pointing direction when the processor detects a charging signal input;
或者,当所述处理器检测到预设启动时间到达时,获取当前的指向方向;Or, when the processor detects that the preset startup time arrives, acquiring the current pointing direction;
或者,当所述处理器检测到所述终端到达预设地点时,获取当前的指向方向;Or, when the processor detects that the terminal reaches a preset location, acquiring a current pointing direction;
或者,在接收到用户输入的操作指令时,获取当前的指向方向。Or, when the operation instruction input by the user is received, the current pointing direction is acquired.
其中,所述预设的指向区间包括:The preset pointing interval includes:
在与所述终端屏幕的平行平面内划分的方向区间;a direction interval divided in a parallel plane with the terminal screen;
或,在与所述终端关联的关联设备表面所在的平面内划分的方向区间,所述终端放置在所述关联设备表面。Or, the terminal is placed on the surface of the associated device in a direction section divided in a plane in which the surface of the associated device associated with the terminal is located.
其中,所述手机执行的操作包括以下操作中的至少一种:The operation performed by the mobile phone includes at least one of the following operations:
选择一种情景模式、选择一种充电模式、执行一个应用程序、选择一种键盘输入模式、或选择一种通信连接模式。Select a profile, select a charging mode, execute an application, select a keyboard input mode, or select a communication connection mode.
可选的,终端还包括:显示单元1140,Optionally, the terminal further includes: a display unit 1140,
用于向用户显示所述手机当前的指向方向以及所述对应关系,以使所述用户根据所述对应关系调整所述手机当前的指向方向。And displaying the current pointing direction of the mobile phone and the corresponding relationship to the user, so that the user adjusts a current pointing direction of the mobile phone according to the corresponding relationship.
可选的,在执行与所述确定的所述第一指向区间对应的操作之前,所述处理器还用于:Optionally, before performing the operation corresponding to the determined first pointing interval, the processor is further configured to:
若所述终端在所述当前的指向方向上的停止时间达到第一预设时长,则执行与所述确定的所述第一指向区间对应的操作;If the stop time of the terminal in the current pointing direction reaches a first preset duration, performing an operation corresponding to the determined first pointing interval;
或者,若接收到用户输入的确认指示,则执行与所述确定的所述第一指向区间对应的操作。Alternatively, if an acknowledgment instruction input by the user is received, an operation corresponding to the determined first directional section is performed.
其中,所述确认指示,包括语音操作指示和/或触摸操作指示。 The confirmation indication includes a voice operation indication and/or a touch operation indication.
可选的,在执行与所述确定的所述第一指向区间对应的操作之前,所述处理器还用于:Optionally, before performing the operation corresponding to the determined first pointing interval, the processor is further configured to:
判断是否接收到用户输入的执行操作选择消息;Determining whether an execution operation selection message input by the user is received;
若接收到所述执行操作选择消息,则执行所述执行操作选择消息中的操作;If the execution operation selection message is received, performing an operation in the execution operation selection message;
否则,执行与所述确定的所述第一指向区间对应的操作。Otherwise, an operation corresponding to the determined first pointing interval is performed.
可选的,所述处理器1180具体用于:从所述手机中的方向检测元件(图中未示出)中获取当前所处的指向方向;Optionally, the processor 1180 is specifically configured to: obtain a current pointing direction from a direction detecting component (not shown) in the mobile phone;
或者,获取所述手机相对于所述关联设备的指向方向,其中,所述关联设备中包括方向检测元件。Or acquiring a pointing direction of the mobile phone with respect to the associated device, wherein the associated device includes a direction detecting component.
其中,手机中的方向检测元件包括以下检测元件中的至少一种:Wherein the direction detecting component in the mobile phone comprises at least one of the following detecting components:
磁场传感器磁力计、加速度传感器电子罗盘或陀螺仪。Magnetic field sensor magnetometer, accelerometer electronic compass or gyroscope.
本实施例的装置,可以用于执行图2所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The device in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 2, and the implementation principle and technical effects are similar, and details are not described herein again.
实施六Implementation six
本发明还提供另一种终端,参照图1,包括:处理器1180、存储器1120和通信接口;The present invention further provides another terminal, referring to FIG. 1, comprising: a processor 1180, a memory 1120, and a communication interface;
所述存储器1120,用于存储程序代码;The memory 1120 is configured to store program code;
所述处理器1180、所述存储器1120和所述通信接口通过总线相互通信;The processor 1180, the memory 1120, and the communication interface communicate with each other through a bus;
所述处理器1180,用于读取所述存储器1120中存储的程序代码,执行以下操作:The processor 1180 is configured to read the program code stored in the memory 1120, and perform the following operations:
获取所述终端从所述当前的指向方向旋转的第一角度;Obtaining a first angle that the terminal rotates from the current pointing direction;
确定所述第一角度所在的第一旋转角度区间;Determining a first rotation angle interval in which the first angle is located;
根据预设旋转角度区间与所述终端的执行操作之间的对应关系,执行与所述第一旋转角度区间对应的操作,其中,所述第一旋转角度区间包含在所述预设旋转角度区间内。Performing an operation corresponding to the first rotation angle interval according to a correspondence between a preset rotation angle interval and an execution operation of the terminal, wherein the first rotation angle interval is included in the preset rotation angle interval Inside.
需要说明的是,本实施例与实施例五的区别仅在于上述对另一种终端的实现方式的介绍,其他内容均与实施例五相同,在此不再赘述。 It should be noted that the difference between the embodiment and the fifth embodiment is only the foregoing description of the implementation of the other terminal, and the other content is the same as that of the fifth embodiment, and details are not described herein again.
本实施例的装置,可以用于执行图6所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The device in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 6. The implementation principle and technical effects are similar, and details are not described herein again.
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:只读存储记忆体(Read-Only Memory,简称为:ROM)、随机存储记忆体(Random Access Memory,简称为:RAM)、磁碟或者光盘等各种可以存储程序代码的介质。A person skilled in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by using hardware related to the program instructions. The foregoing program may be stored in a computer readable storage medium, and the program is executed when executed. The foregoing storage medium includes: a read-only memory (Read-Only Memory, ROM for short), a random access memory (RAM), a disk, or a disk. A variety of media such as optical discs that can store program code.
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。 Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the foregoing embodiments may be modified, or some or all of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the technical solutions of the embodiments of the present invention. range.

Claims (33)

  1. 一种终端的操作方法,其特征在于,包括:A method for operating a terminal, comprising:
    终端获取所述终端当前的指向方向;The terminal acquires a current pointing direction of the terminal;
    所述终端确定所述终端当前的指向方向所在的第一指向区间;Determining, by the terminal, a first pointing interval in which the current pointing direction of the terminal is located;
    所述终端根据预设的指向区间与所述终端执行的操作之间的对应关系,执行与所述确定的所述第一指向区间对应的操作,其中,所述第一指向区间包含在所述预设的指向区间内。The terminal performs an operation corresponding to the determined first pointing interval according to a correspondence between a preset pointing interval and an operation performed by the terminal, where the first pointing interval is included in the The preset points within the interval.
  2. 根据权利要求1所述的方法,其特征在于,所述终端获取所述终端当前的指向方向,包括:The method according to claim 1, wherein the terminal acquires the current pointing direction of the terminal, including:
    所述终端检测到充电信号输入时,获取当前的指向方向;When the terminal detects the charging signal input, acquiring the current pointing direction;
    或者,所述终端检测到预设启动时间到达时,获取当前的指向方向;Or, when the terminal detects that the preset startup time arrives, the terminal obtains the current pointing direction;
    或者,所述终端检测到所述终端到达预设地点时,获取当前的指向方向;Or, when the terminal detects that the terminal reaches the preset location, acquiring the current pointing direction;
    或者,所述终端在接收到用户输入的操作指令时,获取当前的指向方向,其中,所述操作指令用于指示获取当前的指向方向。Alternatively, the terminal acquires a current pointing direction when receiving an operation instruction input by the user, where the operation instruction is used to indicate that the current pointing direction is acquired.
  3. 根据权利要求1或2所述的方法,其特征在于,所述预设的指向区间包括:The method according to claim 1 or 2, wherein the preset pointing interval comprises:
    在与所述终端屏幕的平行平面内划分的方向区间;a direction interval divided in a parallel plane with the terminal screen;
    或,在与所述终端关联的关联设备表面所在的平面内划分的方向区间,所述终端放置在所述关联设备表面。Or, the terminal is placed on the surface of the associated device in a direction section divided in a plane in which the surface of the associated device associated with the terminal is located.
  4. 根据权利要求1~3中任一项所述的方法,其特征在于,所述终端执行的操作包括以下操作中的至少一种:The method according to any one of claims 1 to 3, wherein the operation performed by the terminal comprises at least one of the following operations:
    选择一种情景模式、选择一种充电模式、执行一个应用程序、选择一种键盘输入模式、或选择一种通信连接模式。Select a profile, select a charging mode, execute an application, select a keyboard input mode, or select a communication connection mode.
  5. 根据权利要求1~4中任一项所述的方法,其特征在于,还包括:The method according to any one of claims 1 to 4, further comprising:
    所述终端向用户显示所述终端当前的指向方向以及所述对应关系,以使所述用户根据所述对应关系调整所述终端当前的指向方向。The terminal displays the current pointing direction of the terminal and the corresponding relationship to the user, so that the user adjusts the current pointing direction of the terminal according to the corresponding relationship.
  6. 根据权利要求1~5中任一项所述的方法,其特征在于,在执行与所述确定的所述第一指向区间对应的操作之前,包括:The method according to any one of claims 1 to 5, wherein before performing the operation corresponding to the determined first pointing interval, the method comprises:
    若所述终端在所述当前的指向方向上的停止时间达到第一预设时长, 则执行与所述确定的所述第一指向区间对应的操作;If the stop time of the terminal in the current pointing direction reaches a first preset duration, And performing an operation corresponding to the determined first pointing interval;
    或者,若所述终端接收到所述用户输入的确认指示,则执行与所述确定的所述第一指向区间对应的操作。Alternatively, if the terminal receives the confirmation indication input by the user, performing an operation corresponding to the determined first pointing interval.
  7. 根据权利要求6所述的方法,其特征在于,所述确认指示,包括:语音操作指示和/或触摸操作指示。The method of claim 6, wherein the confirmation indication comprises: a voice operation indication and/or a touch operation indication.
  8. 根据权利要求1~5中任一项所述的方法,其特征在于,在执行与所述确定的所述第一指向区间对应的操作之前,还包括:The method according to any one of claims 1 to 5, further comprising: before performing the operation corresponding to the determined first pointing interval, further comprising:
    判断所述终端是否接收到用户输入的执行操作选择消息;Determining whether the terminal receives an execution operation selection message input by a user;
    若接收到所述执行操作选择消息,则所述终端执行所述执行操作选择消息中的操作;If the execution operation selection message is received, the terminal performs an operation in the execution operation selection message;
    否则,所述终端执行与所述确定的所述第一指向区间对应的操作。Otherwise, the terminal performs an operation corresponding to the determined first pointing interval.
  9. 根据权利要求1~8中任一项所述的方法,其特征在于,所述终端获取所述终端当前的指向方向,具体包括:The method according to any one of claims 1 to 8, wherein the terminal obtains the current pointing direction of the terminal, which specifically includes:
    所述终端从所述终端中的方向检测元件中获取所述当前的指向方向;The terminal acquires the current pointing direction from a direction detecting component in the terminal;
    或者,所述终端获取所述终端相对于所述关联设备的所述当前的指向方向,其中,所述关联设备中包括方向检测元件。Or the terminal acquires the current pointing direction of the terminal with respect to the associated device, where the associated device includes a direction detecting component.
  10. 根据权利要求9所述的方法,其特征在于,所述方向检测元件包括以下检测元件中的至少一种:The method of claim 9 wherein said direction detecting element comprises at least one of the following detecting elements:
    磁场传感器、加速度传感器或陀螺仪。Magnetic field sensor, acceleration sensor or gyroscope.
  11. 一种终端的操作方法,其特征在于,包括:A method for operating a terminal, comprising:
    终端获取所述终端当前的指向方向;The terminal acquires a current pointing direction of the terminal;
    所述终端获取所述终端从所述当前的指向方向旋转的第一角度;Obtaining, by the terminal, a first angle that the terminal rotates from the current pointing direction;
    所述终端确定所述第一角度所在的第一旋转角度区间;Determining, by the terminal, a first rotation angle interval in which the first angle is located;
    所述终端根据预设旋转角度区间与所述终端的执行操作之间的对应关系,执行与所述第一旋转角度区间对应的操作,其中,所述第一旋转角度区间包含在所述预设旋转角度区间内。The terminal performs an operation corresponding to the first rotation angle interval according to a correspondence between a preset rotation angle interval and an execution operation of the terminal, where the first rotation angle interval is included in the preset Within the range of rotation angles.
  12. 一种终端,其特征在于,包括:A terminal, comprising:
    获取模块,用于获取所述终端当前的指向方向;An obtaining module, configured to acquire a current pointing direction of the terminal;
    确定模块,用于确定所述终端当前的指向方向所在的第一指向区间;a determining module, configured to determine a first pointing interval where the current pointing direction of the terminal is located;
    执行模块,用于根据预设的指向区间与所述终端执行的操作之间的对 应关系,执行与所述确定的所述第一指向区间对应的操作,其中,所述第一指向区间包含在所述预设的指向区间内。An execution module, configured to perform, according to a preset pointing interval, an operation performed by the terminal Correspondingly, an operation corresponding to the determined first pointing interval is performed, wherein the first pointing interval is included in the preset pointing interval.
  13. 根据权利要求12所述的终端,其特征在于,所述获取模块具体用于:The terminal according to claim 12, wherein the obtaining module is specifically configured to:
    检测到充电信号输入时,获取当前的指向方向;When the charging signal input is detected, the current pointing direction is obtained;
    或者,检测到预设启动时间到达时,获取当前的指向方向;Or, when it is detected that the preset startup time arrives, the current pointing direction is obtained;
    或者,检测到所述终端到达预设地点时,获取当前的指向方向;Or, when detecting that the terminal reaches the preset location, acquiring the current pointing direction;
    或者,在接收到用户输入的操作指令时,获取当前的指向方向,其中,所述操作指令用于指示获取当前的指向方向。Alternatively, when the operation instruction input by the user is received, the current pointing direction is obtained, wherein the operation instruction is used to indicate that the current pointing direction is obtained.
  14. 根据权利要求12或13中任一项所述的终端,其特征在于,所述预设的指向区间包括:The terminal according to any one of claims 12 or 13, wherein the preset pointing interval comprises:
    在与所述终端屏幕的平行平面内划分的方向区间;a direction interval divided in a parallel plane with the terminal screen;
    或,在与所述终端关联的关联设备表面所在的平面内划分的方向区间,所述终端放置在所述关联设备表面。Or, the terminal is placed on the surface of the associated device in a direction section divided in a plane in which the surface of the associated device associated with the terminal is located.
  15. 根据权利要求12~14所述的终端,其特征在于,所述终端执行的操作包括以下操作中的至少一种:The terminal according to any one of claims 12 to 14, wherein the operation performed by the terminal comprises at least one of the following operations:
    选择一种情景模式、选择一种充电模式、执行一个应用程序、选择一种键盘输入模式、或选择一种通信连接模式。Select a profile, select a charging mode, execute an application, select a keyboard input mode, or select a communication connection mode.
  16. 根据权利要求12~15中任一项所述的终端,其特征在于,还包括:显示模块,The terminal according to any one of claims 12 to 15, further comprising: a display module,
    用于向用户显示所述终端当前的指向方向以及所述对应关系,以使所述用户根据所述对应关系调整所述终端当前的指向方向。And displaying the current pointing direction of the terminal and the corresponding relationship to the user, so that the user adjusts the current pointing direction of the terminal according to the correspondence.
  17. 根据权利要求12~16中任一项所述的终端,其特征在于,在执行与所述确定的所述第一指向区间对应的操作之前,所述执行模块还用于:The terminal according to any one of claims 12 to 16, wherein before the performing the operation corresponding to the determined first pointing interval, the executing module is further configured to:
    若所述终端在所述当前的指向方向上的停止时间达到第一预设时长,执行与所述确定的所述第一指向区间对应的操作;If the stopping time of the terminal in the current pointing direction reaches a first preset duration, performing an operation corresponding to the determined first pointing interval;
    或者,若接收到用户输入的确认指示,则执行与所述确定的所述第一指向区间对应的操作。Alternatively, if an acknowledgment instruction input by the user is received, an operation corresponding to the determined first directional section is performed.
  18. 根据权利要求17所述的终端,其特征在于,所述确认指示,包括语音操作指示和/或触摸操作指示。 The terminal according to claim 17, wherein the confirmation indication comprises a voice operation indication and/or a touch operation indication.
  19. 根据权利要求12~16中任一项所述的终端,其特征在于,在所述执行模块执行与确定的所述第一指向区间对应的操作之前,所述执行模块还用于:The terminal according to any one of claims 12 to 16, wherein the execution module is further configured to: before the execution module performs an operation corresponding to the determined first pointing interval:
    判断是否接收到用户输入的执行操作选择消息;Determining whether an execution operation selection message input by the user is received;
    若接收到所述执行操作选择消息,则执行所述执行操作选择消息中的操作;If the execution operation selection message is received, performing an operation in the execution operation selection message;
    否则,则执行与所述确定的所述第一指向区间对应的操作。Otherwise, an operation corresponding to the determined first pointing interval is performed.
  20. 根据权利要求12~19中任一项所述的终端,其特征在于,所述获取模块具体用于:The terminal according to any one of claims 12 to 19, wherein the obtaining module is specifically configured to:
    从所述终端中的方向检测元件中获取所述当前的指向方向;Obtaining the current pointing direction from a direction detecting component in the terminal;
    或者,获取所述终端相对于所述关联设备的所述当前的指向方向,其中,所述关联设备中包括方向检测元件。Or acquiring the current pointing direction of the terminal relative to the associated device, where the associated device includes a direction detecting component.
  21. 根据权利要求20所述的终端,其特征在于,所述方向检测元件包括以下检测元件中的至少一种:The terminal according to claim 20, wherein said direction detecting element comprises at least one of the following detecting elements:
    磁场传感器、加速度传感器或陀螺仪。Magnetic field sensor, acceleration sensor or gyroscope.
  22. 一种终端,其特征在于,包括:A terminal, comprising:
    获取模块,用于获取所述终端当前的指向方向;An obtaining module, configured to acquire a current pointing direction of the terminal;
    所述获取模块,还用于获取所述终端从所述当前的指向方向旋转的第一角度;The acquiring module is further configured to acquire a first angle that the terminal rotates from the current pointing direction;
    确定模块,用于确定所述第一角度所在的第一旋转角度区间;a determining module, configured to determine a first rotation angle interval in which the first angle is located;
    执行模块,用于根据预设旋转角度区间与所述终端的执行操作之间的对应关系,执行与所述第一旋转角度区间对应的操作,其中,所述第一旋转角度区间包含在所述预设旋转角度区间内。An execution module, configured to perform an operation corresponding to the first rotation angle interval according to a correspondence between a preset rotation angle interval and an execution operation of the terminal, wherein the first rotation angle interval is included in the Preset within the rotation angle range.
  23. 一种终端,其特征在于,包括:处理器、存储器和通信接口;A terminal, comprising: a processor, a memory, and a communication interface;
    所述存储器,用于存储程序代码;The memory is configured to store program code;
    所述处理器、所述存储器和所述通信接口通过总线相互通信;The processor, the memory, and the communication interface communicate with each other through a bus;
    所述处理器,用于读取所述存储器中存储的程序代码,执行以下操作:The processor is configured to read program code stored in the memory, and perform the following operations:
    获取所述终端当前的指向方向;Obtaining a current direction of the terminal;
    确定所述终端当前的指向方向所在的第一指向区间;Determining a first pointing interval in which the current pointing direction of the terminal is located;
    根据预设的指向区间与所述终端执行的操作之间的对应关系,执行与 所述确定的所述第一指向区间对应的操作,其中,所述第一指向区间包含在所述预设的指向区间内。Performing and corresponding according to a correspondence between a preset pointing interval and an operation performed by the terminal And the determined operation corresponding to the first pointing interval, wherein the first pointing interval is included in the preset pointing interval.
  24. 根据权利要求23所述的终端,其特征在于,所述处理器在获取所述终端当前的指向方向时,具体用于:The terminal according to claim 23, wherein when the processor obtains the current pointing direction of the terminal, the processor is specifically configured to:
    当所述处理器检测到充电信号输入时,获取当前的指向方向;Obtaining a current pointing direction when the processor detects a charging signal input;
    或者,当所述处理器检测到预设启动时间到达时,获取当前的指向方向;Or, when the processor detects that the preset startup time arrives, acquiring the current pointing direction;
    或者,当所述处理器检测到所述终端到达预设地点时,获取当前的指向方向;Or, when the processor detects that the terminal reaches a preset location, acquiring a current pointing direction;
    或者,在接收到用户输入的操作指令时,获取当前的指向方向。Or, when the operation instruction input by the user is received, the current pointing direction is acquired.
  25. 根据权利要求23或24所述的终端,其特征在于,所述预设的指向区间包括:The terminal according to claim 23 or 24, wherein the preset pointing interval comprises:
    在与所述终端屏幕的平行平面内划分的方向区间;a direction interval divided in a parallel plane with the terminal screen;
    或,在与所述终端关联的关联设备表面所在的平面内划分的方向区间,所述终端放置在所述关联设备表面。Or, the terminal is placed on the surface of the associated device in a direction section divided in a plane in which the surface of the associated device associated with the terminal is located.
  26. 根据权利要求23~25中任一项所述的终端,其特征在于,所述终端执行的操作包括以下操作中的至少一种:The terminal according to any one of claims 23 to 25, wherein the operation performed by the terminal comprises at least one of the following operations:
    选择一种情景模式、选择一种充电模式、执行一个应用程序、选择一种键盘输入模式、或选择一种通信连接模式。Select a profile, select a charging mode, execute an application, select a keyboard input mode, or select a communication connection mode.
  27. 根据权利要求23~26中任一项所述的终端,其特征在于,还包括:显示单元,The terminal according to any one of claims 23 to 26, further comprising: a display unit,
    用于向用户显示所述终端当前的指向方向以及所述对应关系,以使所述用户根据所述对应关系调整所述终端当前的指向方向。And displaying the current pointing direction of the terminal and the corresponding relationship to the user, so that the user adjusts the current pointing direction of the terminal according to the correspondence.
  28. 根据权利要求23~27中任一项所述的终端,其特征在于,在执行与所述确定的所述第一指向区间对应的操作之前,所述处理器还用于:The terminal according to any one of claims 23 to 27, wherein, before performing an operation corresponding to the determined first pointing interval, the processor is further configured to:
    若所述终端在所述当前的指向方向上的停止时间达到第一预设时长,则执行与所述确定的所述第一指向区间对应的操作;If the stop time of the terminal in the current pointing direction reaches a first preset duration, performing an operation corresponding to the determined first pointing interval;
    或者,若接收到用户输入的确认指示,则执行与所述确定的所述第一指向区间对应的操作。Alternatively, if an acknowledgment instruction input by the user is received, an operation corresponding to the determined first directional section is performed.
  29. 根据权利要求28所述的终端,其特征在于,所述确认指示,包 括语音操作指示和/或触摸操作指示。The terminal according to claim 28, wherein said confirmation indication packet A voice operation indication and/or a touch operation indication are included.
  30. 根据权利要求23~27中任一项所述的终端,其特征在于,在执行与所述确定的所述第一指向区间对应的操作之前,所述处理器还用于:The terminal according to any one of claims 23 to 27, wherein, before performing an operation corresponding to the determined first pointing interval, the processor is further configured to:
    判断是否接收到用户输入的执行操作选择消息;Determining whether an execution operation selection message input by the user is received;
    若接收到所述执行操作选择消息,则执行所述执行操作选择消息中的操作;If the execution operation selection message is received, performing an operation in the execution operation selection message;
    否则,执行与所述确定的所述第一指向区间对应的操作。Otherwise, an operation corresponding to the determined first pointing interval is performed.
  31. 根据权利要求23~30中任一项所述的终端,其特征在于,所述处理器具体用于:The terminal according to any one of claims 23 to 30, wherein the processor is specifically configured to:
    从所述终端中的方向检测元件中获取所述当前的指向方向;Obtaining the current pointing direction from a direction detecting component in the terminal;
    或者,获取所述终端相对于所述关联设备的所述当前的指向方向,其中,所述关联设备中包括方向检测元件。Or acquiring the current pointing direction of the terminal relative to the associated device, where the associated device includes a direction detecting component.
  32. 根据权利要求31所述的终端,其特征在于,所述方向检测元件包括以下检测元件中的至少一种:The terminal according to claim 31, wherein said direction detecting element comprises at least one of the following detecting elements:
    磁场传感器、加速度传感器或陀螺仪。Magnetic field sensor, acceleration sensor or gyroscope.
  33. 一种终端,其特征在于,包括:处理器、存储器和通信接口;A terminal, comprising: a processor, a memory, and a communication interface;
    所述存储器,用于存储程序代码;The memory is configured to store program code;
    所述处理器、所述存储器和所述通信接口通过总线相互通信;The processor, the memory, and the communication interface communicate with each other through a bus;
    所述处理器,用于读取所述存储器中存储的程序代码,执行以下操作:获取所述终端当前的指向方向;The processor is configured to read the program code stored in the memory, and perform the following operations: acquiring a current pointing direction of the terminal;
    获取所述终端从所述当前的指向方向旋转的第一角度;Obtaining a first angle that the terminal rotates from the current pointing direction;
    确定所述第一角度所在的第一旋转角度区间;Determining a first rotation angle interval in which the first angle is located;
    根据预设旋转角度区间与所述终端的执行操作之间的对应关系,执行与所述第一旋转角度区间对应的操作,其中,所述第一旋转角度区间包含在所述预设旋转角度区间内。 Performing an operation corresponding to the first rotation angle interval according to a correspondence between a preset rotation angle interval and an execution operation of the terminal, wherein the first rotation angle interval is included in the preset rotation angle interval Inside.
PCT/CN2015/095199 2015-11-20 2015-11-20 Terminal operation method and terminal WO2017084100A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201580079535.5A CN107534698A (en) 2015-11-20 2015-11-20 Terminal operation method and terminal
PCT/CN2015/095199 WO2017084100A1 (en) 2015-11-20 2015-11-20 Terminal operation method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/095199 WO2017084100A1 (en) 2015-11-20 2015-11-20 Terminal operation method and terminal

Publications (1)

Publication Number Publication Date
WO2017084100A1 true WO2017084100A1 (en) 2017-05-26

Family

ID=58717268

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/095199 WO2017084100A1 (en) 2015-11-20 2015-11-20 Terminal operation method and terminal

Country Status (2)

Country Link
CN (1) CN107534698A (en)
WO (1) WO2017084100A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006270498A (en) * 2005-03-24 2006-10-05 Nippon Seiki Co Ltd Handsfree telephone speech system
CN102843496A (en) * 2011-06-21 2012-12-26 联想(北京)有限公司 Video collecting processing method and portable electronic device
CN103076880A (en) * 2012-12-28 2013-05-01 深圳市金立通信设备有限公司 Method and terminal for controlling flipping-over of page when page browsed by terminal
CN103095912A (en) * 2012-12-24 2013-05-08 广东欧珀移动通信有限公司 Method and system for automatic calling of mobile terminal
CN104618597A (en) * 2015-01-30 2015-05-13 深圳市金立通信设备有限公司 Terminal
CN104639747A (en) * 2015-01-30 2015-05-20 深圳市金立通信设备有限公司 Dialing method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006270498A (en) * 2005-03-24 2006-10-05 Nippon Seiki Co Ltd Handsfree telephone speech system
CN102843496A (en) * 2011-06-21 2012-12-26 联想(北京)有限公司 Video collecting processing method and portable electronic device
CN103095912A (en) * 2012-12-24 2013-05-08 广东欧珀移动通信有限公司 Method and system for automatic calling of mobile terminal
CN103076880A (en) * 2012-12-28 2013-05-01 深圳市金立通信设备有限公司 Method and terminal for controlling flipping-over of page when page browsed by terminal
CN104618597A (en) * 2015-01-30 2015-05-13 深圳市金立通信设备有限公司 Terminal
CN104639747A (en) * 2015-01-30 2015-05-20 深圳市金立通信设备有限公司 Dialing method

Also Published As

Publication number Publication date
CN107534698A (en) 2018-01-02

Similar Documents

Publication Publication Date Title
US9024877B2 (en) Method for automatically switching user interface of handheld terminal device, and handheld terminal device
WO2018095129A1 (en) Method and device for playing live video
EP3242461A1 (en) Intelligent device control method and device
CN109683847A (en) A kind of volume adjusting method and terminal
CN110417960B (en) Folding method of foldable touch screen and electronic equipment
US9329661B2 (en) Information processing method and electronic device
CN108415641B (en) Icon processing method and mobile terminal
WO2020253340A1 (en) Navigation method and mobile terminal
WO2016045027A1 (en) Screen sensitivity adjustment method and mobile terminal
CN106487984B (en) A kind of method and apparatus adjusting volume
WO2018036565A1 (en) Terminal control method, terminal, intelligent wearable device and system
CN108287655A (en) A kind of interface display method, interface display apparatus and mobile terminal
WO2013155918A1 (en) Scheduled task execution method and device, computer readable storage medium, graphical user interface, and mobile terminal
US20150077437A1 (en) Method for Implementing Electronic Magnifier and User Equipment
CN108900695A (en) A kind of display processing method and terminal device
TWI575458B (en) Method, device and system for providing service based on application
WO2019042478A1 (en) Control method for input method soft keyboard of mobile terminal, storage medium, and mobile terminal
CN111651030B (en) Sensor detection method and device, storage medium and mobile terminal
CN110837319B (en) Visual angle adjusting method and electronic equipment
WO2018133211A1 (en) Screen switching method for dual-screen electronic device, and dual-screen electronic device
WO2017032180A1 (en) Method and device for shifting angle of image captured by electronic terminal
WO2016131180A1 (en) Keyboard display method, apparatus and terminal device
WO2017084100A1 (en) Terminal operation method and terminal
EP3239825A1 (en) Multimedia information presentation method and terminal
US10936109B2 (en) Terminal device and terminal device control method

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: 15908596

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: 15908596

Country of ref document: EP

Kind code of ref document: A1