WO2024222597A1 - Mode switching method and related apparatus - Google Patents
Mode switching method and related apparatus Download PDFInfo
- Publication number
- WO2024222597A1 WO2024222597A1 PCT/CN2024/088984 CN2024088984W WO2024222597A1 WO 2024222597 A1 WO2024222597 A1 WO 2024222597A1 CN 2024088984 W CN2024088984 W CN 2024088984W WO 2024222597 A1 WO2024222597 A1 WO 2024222597A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- electronic device
- mode
- crown
- movement
- rotation
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 66
- 230000004044 response Effects 0.000 claims abstract description 32
- 230000015654 memory Effects 0.000 claims description 18
- 238000004590 computer program Methods 0.000 claims description 10
- 238000005259 measurement Methods 0.000 description 31
- 230000006870 function Effects 0.000 description 30
- 238000001514 detection method Methods 0.000 description 29
- 238000013186 photoplethysmography Methods 0.000 description 24
- 238000010586 diagram Methods 0.000 description 20
- 238000004891 communication Methods 0.000 description 14
- 238000012544 monitoring process Methods 0.000 description 11
- 230000001133 acceleration Effects 0.000 description 10
- 230000003993 interaction Effects 0.000 description 10
- 230000008569 process Effects 0.000 description 9
- 238000012545 processing Methods 0.000 description 9
- 210000000707 wrist Anatomy 0.000 description 9
- 230000006978 adaptation Effects 0.000 description 8
- 238000006243 chemical reaction Methods 0.000 description 6
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 4
- 238000005265 energy consumption Methods 0.000 description 4
- 230000036541 health Effects 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 229920001621 AMOLED Polymers 0.000 description 3
- 238000007726 management method Methods 0.000 description 3
- 238000013528 artificial neural network Methods 0.000 description 2
- QVGXLLKOCUKJST-UHFFFAOYSA-N atomic oxygen Chemical compound [O] QVGXLLKOCUKJST-UHFFFAOYSA-N 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 239000008280 blood Substances 0.000 description 2
- 210000004369 blood Anatomy 0.000 description 2
- 230000036772 blood pressure Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000004927 fusion Effects 0.000 description 2
- 230000005484 gravity Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 229910052760 oxygen Inorganic materials 0.000 description 2
- 239000001301 oxygen Substances 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 230000003862 health status Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 239000002096 quantum dot Substances 0.000 description 1
- 230000005855 radiation Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Definitions
- the present application relates to the field of electronic technology, and in particular to a mode switching method and related devices.
- wearable devices are increasingly used in daily life. Users can use wearable devices to measure sports or health data. Users can also use wearable devices to play music, receive messages, etc. Wearable devices greatly facilitate users' daily life and travel.
- the direction of the displayed content in the display screen of the wearable device is a fixed direction relative to the display screen.
- the direction of the displayed content relative to the display screen remains unchanged. In this way, the direction of the displayed content does not conform to the browsing habits of the user, and it is not convenient for the user to view and operate the displayed content.
- the present application provides a mode switching method and related devices, which ensure that when an electronic device is rotated, the direction of displayed content remains unchanged relative to the display screen, making it easier for users to view and operate.
- the present application provides a mode switching method, which is applied to an electronic device, wherein the electronic device includes a display screen and a button, and the electronic device stores a coordinate system and one or more touch screen events; the method includes: the electronic device displays a first interface on the display screen, and the button is located in a first position; in response to a first operation of a user, the first operation is used to rotate the electronic device by a first angle in a first rotation direction; after the electronic device is rotated by a first angle in the first rotation direction, the button is located in a second position, and the first position is different from the second position; the electronic device rotates the first interface relative to the display screen by a first angle in a second rotation direction, and the second rotation direction is opposite to the first rotation direction; the electronic device rotates the coordinate system by a first angle in the second rotation direction; and the electronic device adjusts one or more touch screen events based on the first angle.
- one or more touch screen events include a first touch screen event, the first touch screen event includes a first sliding direction and a first touch screen response, the first sliding direction is the direction of a sliding track of the first touch screen event on the display screen, and the first sliding direction is determined according to an angle between the sliding track and a first reference line of the display screen; the electronic device adjusts the first touch screen event based on the first angle, specifically including: the electronic device adjusts the first sliding direction to a second sliding direction, and the second sliding direction is the direction of the first sliding direction after rotating the first sliding direction by a second rotation direction by a first angle.
- the first reference line may be a line between the center of the display screen and the button, or may be other straight lines on the display screen.
- the method before the electronic device rotates by a first angle in a first rotation direction, the method further includes: receiving a second operation of a user; and starting to monitor the rotation angle of the electronic device in response to the second operation.
- the electronic device can monitor the rotation angle of the electronic device.
- the second operation is a click operation of the user on the first control.
- the electronic device includes a movement and a strap, the movement includes a display screen, and a first shell is disposed on the strap; the method further includes: when it is detected that the movement is connected to the first shell, the electronic device enters a watch mode.
- the electronic device includes a movement and a strap, the movement includes a display screen, and a first shell is disposed on the strap; the method further includes: when it is detected that the movement is not connected to the first shell, the electronic device enters a movement mode.
- the electronic device can determine the wearing mode of the electronic device by judging whether the movement is connected to the first housing.
- the wearing mode includes a watch mode and movement mode.
- the electronic device stores multiple key rotation events acting on a key, the key rotation event including a key rotation direction and a key rotation response; after the electronic device rotates a first angle in a first rotation direction, the method also includes: when the first angle is greater than 90° and less than or equal to 270°, the electronic device adjusts the key rotation direction to the opposite direction.
- the wearing mode of the electronic device is a watch mode; the method also includes: receiving a third operation of the user switching the wearing mode; in response to the third operation, switching the wearing mode of the electronic device to a movement mode, and turning off a photoelectric volumetric pulse wave (PPG) measurement function.
- PPG photoelectric volumetric pulse wave
- the PPG measurement function can be turned off in movement mode to avoid detecting inaccurate data.
- the method before switching the wearing mode of the electronic device to the movement mode, the method further includes: outputting a mode switching prompt, where the mode switching prompt is used to prompt the user that the PPG measurement function cannot be used in the movement mode.
- the wearing mode of the electronic device is a movement mode; the method also includes: receiving a fourth operation of the user using the PPG measurement function, the fourth operation being used to trigger the electronic device to measure the user's first data; in response to the fourth operation, outputting a prompt message, the prompt message being used to prompt the user that the PPG measurement function cannot be used in the movement mode.
- the method further includes: receiving a fifth operation of the user switching the wearing mode; in response to the fifth operation, switching the wearing mode of the electronic device to the watch mode, and turning on the PPG measurement function; and measuring the first data.
- the electronic device can quickly switch to the watch mode and measure the first data.
- the first data includes any one or more of the following: blood oxygen data, blood pressure data, sleep data, energy consumption data, exercise data, and heart rate data.
- the present application provides an electronic device, including one or more processors, one or more memories, one or more display screens, and one or more buttons.
- the one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer program codes, and the computer program codes include computer instructions, and when the one or more processors execute the computer instructions, the electronic device executes the mode switching method in any possible implementation of any of the above aspects.
- an embodiment of the present application provides a computer storage medium, including computer instructions.
- the computer instructions When the computer instructions are executed on an electronic device, the electronic device executes a mode switching method in any possible implementation of any of the above aspects.
- an embodiment of the present application provides a computer program product.
- the computer program product When the computer program product is run on a computer, the computer executes the mode switching method in any possible implementation of any of the above aspects.
- the beneficial effects of the second to fourth aspects can refer to the beneficial effects of the first aspect mentioned above.
- FIGS. 1A to 1B are schematic diagrams of the device form of an electronic device 100 provided in an embodiment of the present application;
- FIG1C is a schematic diagram of the hardware structure of an electronic device 100 provided in an embodiment of the present application.
- FIG1D is a schematic diagram of a three-dimensional space coordinate system provided in an embodiment of the present application.
- FIG2 is a schematic diagram of a direction of displaying content provided by an embodiment of the present application.
- 3A to 3B are schematic diagrams of interfaces of a group of electronic devices 100 before and after rotation provided by an embodiment of the present application;
- 4A to 4H are schematic diagrams of a set of interfaces for switching direction modes provided in an embodiment of the present application.
- 5A to 5F are schematic diagrams of a group of application scenarios provided in an embodiment of the present application.
- 6A to 6D are schematic diagrams of a set of interfaces for switching direction modes when micro motion detection is enabled, provided in an embodiment of the present application;
- FIG7 is a schematic flow chart of a mode switching method provided in an embodiment of the present application.
- FIGS. 8A to 8D are schematic diagrams of direction changes of a touch screen event in a group of different direction modes provided by an embodiment of the present application.
- 9A to 9D are schematic diagrams showing changes in a set of coordinate systems before and after mode switching provided by an embodiment of the present application.
- FIG10 is a schematic flow chart of a mode switching method provided in an embodiment of the present application.
- FIG11 is a schematic flow chart of another mode switching method provided in an embodiment of the present application.
- FIG12 is a schematic diagram of functional modules of an electronic device 100 provided in an embodiment of the present application.
- FIG. 13 is a flow chart of a mode switching method provided in an embodiment of the present application.
- first and second are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features.
- a feature defined as “first” or “second” may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality” means two or more.
- GUI graphical user interface
- FIG1A shows a schematic diagram of a device form of an electronic device 100 provided in an embodiment of the present application.
- the electronic device 100 may be a watch 100A.
- the watch 100A may include a movement 11A, and optionally, the watch 100A may further include a strap 12A.
- the movement 11A may include a display screen 13A.
- the movement 11A may further include a crown 14A.
- the crown 14A may be disposed on the right side of the movement 11A, or may be disposed at other positions of the movement 11A, and the present application does not limit this.
- the movement 11A may display contents such as a dial and an application interface through the display screen 13A.
- the crown 14A may be used to adjust the contents displayed on the display screen 13A, such as adjusting the display size of the contents displayed on the display screen 13A, adjusting the volume, etc.
- the position of the crown 14A may also be used to determine the direction of the contents displayed on the display screen 13A.
- the specific definition of the direction of the displayed contents may refer to the relevant contents in the embodiment shown in FIG2 below, and will not be described in detail here.
- the strap 12A may also be provided with a case (also referred to as a first case), which may be used to fix the movement 11A so that the movement 11A and the strap 12A are combined into a watch 100A.
- the movement 11A and the strap 12A are detachable.
- the movement 11A can form a wearable device with the strap 12A, which is convenient for the user to wear on the wrist or other positions.
- the watch 100A may also include only the movement 11A.
- the watch 100A is used as an accessory or for other purposes.
- the watch 100A can be used as a necklace, an alarm clock, a stopwatch, a pocket watch, an ornament installed on a backpack, etc.
- the specific content can refer to the relevant content in the following embodiments, which will not be described in detail here.
- FIG1B shows a schematic diagram of the device form of another electronic device 100 provided in an embodiment of the present application.
- the electronic device 100 may be a bracelet 100B.
- the bracelet 100B may include a movement 11B, and optionally, the bracelet 100B may also include a strap 12B.
- the movement 11B may include a display screen 13B.
- the movement 11B may also include a button 15B, and the button 15B may also be used to adjust the display content in the display screen 13B, such as turning off or on the display screen 13B, adjusting the volume, etc.
- the position of the button 15B may also be used to determine the direction of the content displayed on the display screen 13A.
- the movement 11B and the strap 12B are also detachable, and the movement 11B can be combined with the strap 12B to form a wearable device, which is convenient for users to wear on their wrists, etc.
- the movement 11B can also be used as an accessory or for other purposes.
- the electronic device 100 may also be a wearable device in other forms, the shape of the movement may also be any shape such as a circle, a rectangle, a square, a hexagon, etc., the crown (or button) may also be replaced by other devices such as an operating rod and an operating ball, and the electronic device 100 may also include multiple crowns, buttons or other buttons.
- the above-mentioned crown, button, operating rod and other components can be collectively referred to as buttons.
- FIG1C shows a schematic diagram of the hardware structure of an electronic device 100 provided in an embodiment of the present application.
- the electronic device 100 may be a wearable device such as a watch or a bracelet, and the embodiment of the present application does not impose any particular limitation on the specific type of the electronic device.
- the electronic device 100 may include: a processor 101, a memory 102, a display screen 103, a communication module 104, a power module 105, an input/output interface 106, a sensor module 107, a button 109, and optionally, the electronic device 100 may also include an audio module 108.
- a processor 101 a memory 102, a display screen 103, a communication module 104, a power module 105, an input/output interface 106, a sensor module 107, a button 109, and optionally, the electronic device 100 may also include an audio module 108.
- the processor 101 may include one or more processing units, for example, the processor 101 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc.
- different processing units can be independent devices or integrated in one or more processors.
- the controller can generate an operation control signal according to the instruction opcode and the timing signal to complete the control of fetching and executing instructions.
- the processor 101 may also be provided with a memory for storing instructions and data.
- the memory in the processor 101 is a cache memory.
- the memory may store instructions or data that the processor 101 has just used or cyclically used. If the processor 101 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 101, and thus improves the efficiency of the system.
- the processor 101 may be used to analyze the signals collected by the sensor module 107, or to analyze the signals collected by other modules (such as the audio module 108, etc.), etc.
- the processor 101 may be used to perform corresponding processing operations according to the analysis results, such as determining the rotation angle of the electronic device 100 based on the collected signals, or determining the wearing mode of the electronic device 100 based on the collected signals, etc.
- the memory 102 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM).
- the random access memory can be directly read and written by the processor 101, and can be used to store executable programs (such as machine instructions) of the operating system or other running programs, and can also be used to store user and application data, etc.
- the non-volatile memory can also store executable programs and store user and application data, etc., and can be loaded into the random access memory in advance for direct reading and writing by the processor 101.
- the memory 102 is coupled to the processor 101 and is used to store various software programs and/or multiple sets of instructions. In some embodiments, the memory 102 can also store a communication program, which can be used to communicate with one or more servers or other devices.
- the display screen 103 can be used to display images, videos, etc.
- the display screen 103 includes a display panel.
- the display panel can be a liquid crystal display (LCD), and the display panel can also be made of an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diodes (QLED), etc.
- the electronic device 100 may include 1 or N display screens 103, where N is a positive integer greater than 1.
- the display screen 103 may include the display screen 13A shown in FIG. 1A above.
- the display screen 103 may include the display screen 13B shown in FIG. 1B above.
- the electronic device 100 may further include a communication module 104.
- the communication module 104 may provide a solution for any one or more wireless communications including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) applied to the electronic device 100.
- WLAN wireless local area networks
- BT Bluetooth
- GNSS global navigation satellite system
- FM frequency modulation
- NFC near field communication
- IR infrared
- the communication module 104 may be one or more devices integrating at least one communication processing module.
- the communication module 104 may include a Bluetooth chip.
- the electronic device 100 may be paired with the Bluetooth chip of other electronic devices through the Bluetooth chip and establish a Bluetooth connection to realize wireless communication and business processing between the electronic device 100 and other devices through the Bluetooth connection.
- the Bluetooth chip may support BR/EDR Bluetooth and BLE, for example, it may receive/send paging information, receive/send BLE broadcast messages, etc.
- the communication module 104 may further include an antenna, and the communication module 104 receives electromagnetic waves via the antenna, modulates the frequency of the electromagnetic wave signal, performs filtering processing, and sends the processed signal to the processor 101.
- the communication module 104 may also receive a signal to be sent from the processor 101, modulate the frequency of the signal, amplify the signal, and convert it into an electromagnetic wave for radiation through the antenna.
- the power module 105 can be used to provide system power for the electronic device 100, power various modules of the electronic device 100, and support the electronic device 100 to receive charging input, etc.
- the power module 105 can include a power management unit (PMU) and a battery.
- the power management unit can receive external charging input, provide the electrical signal input by the charging circuit to the battery for charging, and can also provide the electrical signal provided by the battery to other modules such as the audio module 108 and the communication module 104 to prevent the battery from being overcharged, over-discharged, short-circuited or over-current, etc.
- the power management unit can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc.
- the plurality of input/output interfaces 106 may be used to provide wired connections for charging or communication of the electronic device 100.
- the input/output interface may be a USB interface.
- the sensor module 107 may include one or more different sensors.
- the sensor module 107 may include a touch sensor, a photoelectric sensor, and an inertial measurement unit (IMU).
- the IMU may include one or more sensors, such as an accelerometer, a gyroscope, and a magnetometer.
- the sensor module 107 may also include other sensors such as a direction sensor and a gravity sensor.
- the sensor module 107 may be used to collect motion signals of the electronic device 100.
- the touch sensor may be used to detect a user's single click, double click, multiple clicks, long press, heavy pressure, and other touch operations.
- an accelerometer may detect the magnitude of the acceleration of the electronic device 100 in all directions (generally three axes).
- the magnitude and direction of gravity may be detected. It may also be used to identify the posture of the electronic device, pedometer, and other applications.
- a gyroscope may be used to determine the motion posture of the electronic device 100.
- the angular velocity of the electronic device 100 around three axes may be determined by a gyroscope, and so on.
- the electronic device 100 may further include an audio module 108.
- the audio module 108 may be used to manage audio data and enable the electronic device 100 to input and output audio signals.
- the audio module 108 may include a speaker (or earpiece, receiver) component for outputting audio signals, a microphone (or microphone, microphone), a microphone receiving circuit matched with the microphone, etc.
- the speaker may be used to convert an audio electrical signal into a sound signal and play it.
- the microphone may be used to convert a sound signal into an audio electrical signal.
- the audio module 108 may be used to output prompt information, etc.
- the button 109 includes a power button, a volume button, etc.
- the button 109 may be a mechanical button. It may also be a touch button.
- the electronic device 100 may receive a button input and generate a key signal input related to the user settings and function control of the electronic device 100.
- the button 109 may include the button 15B in the embodiment shown in FIG. 1B above.
- the button 109 may include the crown 14A in the embodiment shown in FIG. 1A above.
- the button 109 may also include a device such as an operating rod.
- the electronic device 100 shown in FIG. 1C is only an example, and the electronic device 100 may have more or fewer components than those shown in FIG. 1C, may combine two or more components, or may have different component configurations.
- the various components shown in the figure may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits.
- the following description will be made by taking the electronic device 100 as a watch 100A as an example.
- FIG1D shows a schematic diagram of a three-dimensional space coordinate system XYZ provided in an embodiment of the present application.
- the space where the electronic device 100 is located can construct a three-dimensional space coordinate system
- the three-dimensional coordinate system may include an X-axis, a Y-axis, and a Z-axis, and any two of the three coordinate axes are perpendicular to each other.
- the origin O of the coordinate system is the center position of the display screen 13A
- the two-dimensional plane formed by the X-axis and the Y-axis may be the two-dimensional plane where the display screen of the electronic device 100 (such as the display screen 13A or the display screen 13B, etc.) is located.
- the three-dimensional space coordinate system XYZ is a constant coordinate system, that is, regardless of whether the electronic device 100 rotates, the three-dimensional space coordinate system XYZ remains unchanged.
- the rotation of the electronic device 100 may include the following two situations:
- Case 1 The electronic device 100 rotates clockwise (or counterclockwise) on the two-dimensional plane formed by the X-axis and the Y-axis, that is, before and after the rotation, the electronic device 100 has a rotation angle relative to the X-axis and the Y-axis, but does not have a rotation angle relative to the Z-axis.
- the rotation angle of the electronic device 100 in the following embodiments of the present application refers to the angle of rotation of the electronic device 100 relative to the X-axis (or Y-axis) shown in FIG. 1D before and after the rotation.
- Case 2 The electronic device 100 rotates in the three-dimensional space coordinate system shown in FIG1D, that is, the electronic device 100 has a rotation angle relative to any coordinate axis.
- the rotation angle of the electronic device 100 in the following embodiments of the present application refers to the angle of rotation of the electronic device 100 relative to the X-axis (or Y-axis) shown in FIG1D before and after the rotation.
- the embodiment shown in Figure 1D is only an example of the rotation method of the electronic device 100 using the movement 11A shown in Figure 1A above as an example.
- the device form of the electronic device 100 can also be the bracelet 100B, movement 11B or other forms of devices shown in Figure 1B above, and the present application does not limit this.
- FIG. 2 shows a schematic diagram of the direction of display content in a display screen 13A provided in an embodiment of the present application.
- an interface 200 is displayed in the display screen 13A of the movement 11A.
- the interface 200 is located in the XOY plane of the two-dimensional coordinate plane, and the XOY plane is a two-dimensional coordinate plane constructed by the X-axis, the Y-axis and the origin O in the coordinate system shown in FIG1D above.
- the crown 14A is located in the positive direction of the X-axis relative to the movement 11A.
- the display direction of the interface 200 is a positive display.
- the positive display is that the horizontal layout of the interface elements is from the negative direction of the X-axis to the positive direction of the X-axis, such as the interface element "08:00", and the vertical layout is from the positive direction of the Y-axis to the negative direction of the Y-axis.
- the user can easily view the interface 200 or operate the interface elements in the interface 200.
- the reverse display may be to rotate the display content displayed in the forward direction by 180° (or 180° ⁇ °, ⁇ may be 5, 10 or 30, etc.) and then display it. At this time, the display content is displayed upside down.
- the horizontal layout of the interface elements is from the positive direction of the X axis to the negative direction of the X axis
- the vertical layout is from the negative direction of the Y axis to the positive direction of the Y axis.
- the left-hand display may be displayed by rotating the display content of the forward display 270° (or 270° ⁇ °) clockwise, or by rotating the display content of the forward display 90° (or 90° ⁇ °) counterclockwise.
- the horizontal layout of the interface elements is from the negative direction of the Y axis to the positive direction of the Y axis
- the vertical layout is from the negative direction of the X axis to the positive direction of the X axis.
- the right-hand display may be displayed by rotating the display content of the forward display clockwise by 90° (or 90° ⁇ °, ⁇ may be 5, 10 or 30, etc.), or by rotating the display content of the forward display counterclockwise by 270° (or 270° ⁇ °).
- the horizontal layout of the interface elements is from the positive Y axis to the negative Y axis
- the vertical layout is from the positive X axis to the negative X axis.
- crown on right mode uses the watch 100A shown in Figure 1A as an example to introduce the following various direction modes: crown on right mode, crown on left mode, crown on top mode, crown on bottom mode, crown on lower left mode, crown on lower right mode, crown on upper left mode and crown on upper right mode, etc.
- Crown in right mode is also called crown in right.
- crown in right mode when crown 14A is on the right side of movement 11A (i.e., the direction of crown 14A relative to movement 11A is the positive direction of X axis), the display content in display screen 13A is displayed in the positive direction.
- the display content is not displayed in the positive direction.
- Crown-left mode is also called crown-left.
- crown-left mode when crown 14A is on the left side of movement 11A (i.e., the direction of crown 14A relative to movement 11A is the negative direction of X axis), the display content in display screen 13A is positive display.
- the display content When crown 14A is in other positions of movement 11A, the display content is not positive display.
- Crown-up mode is also called crown-up.
- crown-up mode when the crown 14A is on the upper side of the movement 11A (i.e., the direction of the crown 14A relative to the movement 11A is the positive direction of the Y axis), the display content on the display screen 13A is displayed in the positive direction.
- the display content is not displayed in the positive direction.
- Crown down mode is also called crown down.
- crown down mode when the crown 14A is at the lower side of the movement 11A (i.e., the direction of the crown 14A relative to the movement 11A is the negative direction of the Y axis), the display content on the display screen 13A is positive display.
- the display content is not positive display.
- Crown in lower left mode is also called crown in lower left.
- crown in lower left mode when crown 14A is at the lower left side of movement 11A, the display content in display screen 13A is displayed in the forward direction.
- crown 14A is at other positions of movement 11A, the display content is not displayed in the forward direction.
- crown 14A is at the lower left side of movement 11A, which may mean that the angle between the direction of crown 14A relative to movement 11A and the positive direction of Y axis is about 225° (for example, 220°, 228°, etc.).
- Crown in upper left mode is also called crown in upper left.
- crown in upper left mode when crown 14A is at the upper left side of movement 11A, the display content in display screen 13A is displayed in the forward direction.
- crown 14A is at other positions of movement 11A, the display content is not displayed in the forward direction.
- crown 14A is at the upper left side of movement 11A, which may mean that the angle between the direction of crown 14A relative to movement 11A and the positive direction of Y axis is about 315° (for example, 311°, 319°, etc.).
- Crown in lower right mode Crown in upper right mode is also called crown in upper right.
- crown in upper right mode when crown 14A is at the upper right side of movement 11A, the display content in display screen 13A is displayed in the forward direction.
- crown 14A is at other positions of movement 11A, the display content is not displayed in the forward direction.
- crown 14A is at the upper right side of movement 11A, which may mean that the angle between the direction of crown 14A relative to movement 11A and the positive direction of Y axis is about 45° (for example, 41°, 47°, etc.).
- Crown in upper right mode is also called crown in lower right.
- crown in lower right mode when crown 14A is at the lower right side of movement 11A, the display content in display screen 13A is displayed in the forward direction.
- crown 14A is at other positions of movement 11A, the display content is not displayed in the forward direction.
- crown 14A is at the lower right side of movement 11A, which can refer to the direction of crown 14A relative to movement 11A.
- the angle with the positive direction of the Y axis is approximately 135° (eg, 130°, 138°, etc.).
- the various directional modes here are just a few examples.
- the electronic device 100 may also include more or fewer directional modes than the above embodiments, or include directional modes different from the above embodiments, and the present application does not limit this.
- the various directional modes in the embodiment here are also described by taking the watch 100A shown in FIG. 1A as an example.
- the crown 14A can also be replaced by a button 15B or other devices, and the present application does not limit this.
- the embodiment of the present application names the various directional modes by taking the watch 100A as an example. It is understandable that the embodiment of the present application does not limit the names of the various directional modes.
- the display screen 13A displays the display content in the forward direction. If the movement 11A rotates, since the direction of the display content is fixed relative to the display screen 13A, after the rotation, the display content in the display screen 13A is no longer displayed in the forward direction.
- FIG3A and FIG3B show a set of interface diagrams of the electronic device 100 before and after rotation.
- the electronic device 100 includes the movement 11A shown in FIG1A, and the crown 14A is arranged on the right side of the movement 11A, that is, when the crown 14A is located on the right side of the movement 11A, the display content on the display screen 13A is displayed in the forward direction.
- the crown 14A is located on the right side of the movement 11A, and the movement 11A displays the interface 200, and the interface 200 is displayed in the forward direction.
- the rotation angle of the movement 11A is 0°.
- the crown 14A is located on the left side of the movement 11A, and the rotation angle of the movement 11A is 180°. Since the relative positional relationship between the movement 11A and the interface 200 remains unchanged, after the movement 11A rotates, the interface 200 is not displayed in the forward direction, but in the reverse direction.
- the display content in the display screen 13A will also maintain a relative position with the display screen 13A, thereby changing the direction of the display content from the positive direction to other directions, which is inconvenient for the user to normally view and operate the display content.
- the display content of the electronic device 100 may not be displayed in the positive direction, which is inconvenient for the user to view and operate. In this way, the user experience is poor.
- the embodiment of the present application provides a mode switching method.
- the electronic device includes a display screen and a button, and the electronic device stores a coordinate system and one or more touch screen events; the method includes: the electronic device displays a first interface on the display screen, and the button is located in a first orientation; in response to a first operation of a user, the first operation is used to rotate the electronic device by a first angle in a first rotation direction; after the electronic device rotates by a first angle in the first rotation direction, the button is located in a second orientation, and the first orientation is different from the second orientation; the electronic device rotates the first interface relative to the display screen by a first angle in a second rotation direction, and the second rotation direction is opposite to the first rotation direction; the electronic device rotates the coordinate system by a first angle in the second rotation direction; the electronic device adjusts one or more touch screen events based on the first angle.
- the electronic device 100 displays a wearing mode interface, which includes multiple direction mode controls, such as a crown-on-top mode control, a crown-on-bottom mode control, a crown-on-left mode control, a crown-on-right mode control, and the like.
- the electronic device 100 can receive and respond to a user's operation on any of the above direction mode controls, set the direction mode to the direction mode corresponding to the direction mode control, and rotate the display content (e.g., the wearing mode interface) of the electronic device 100 based on the switched direction mode, wherein the direction modes before and after the switching are different. In this way, the electronic device 100 can be rotated at any angle, and the displayed content can be set to a direction that is convenient for the user to view and operate.
- multiple direction mode controls such as a crown-on-top mode control, a crown-on-bottom mode control, a crown-on-left mode control, a crown-on-right mode control, and the like.
- the electronic device 100 can receive and respond to a user's
- the crown 14A is located on the right side of the movement 11A, and the electronic device 100 displays a desktop 400, and the desktop 400 is displayed in the forward direction.
- the desktop 400 may include one or more application icons, for example, a setting application icon 401, a music application icon, a workout application icon 402, a heart rate application icon 403, and the like.
- the electronic device 100 may receive and, in response to a user's click operation on a settings application icon, display a settings application interface 410 as shown in FIG. 4B .
- the settings application interface 410 may include one or more settings entries, such as a Bluetooth entry, a watch face and desktop entry, a custom card entry, a wearing mode entry 411 , and the like.
- the electronic device 100 may receive and, in response to a user's click operation on the wearing mode entry 411 , display a wearing mode interface 420 as shown in FIG. 4C .
- the wearing mode interface 420 may include multiple wearing mode controls, such as a watch mode control 421 and a movement mode control 422.
- the watch mode control 421 can be used to trigger the electronic device 100 to set the wearing mode to the watch mode
- the movement mode control 422 can be used to trigger the electronic device 100 to set the wearing mode to the movement mode.
- a check mark 423 may also be displayed next to the movement mode control 422, and the check mark 423 is used to prompt the user that the currently set wearing mode is the movement mode. It is understandable that the check mark 423 can be a circular pattern mark as shown in FIG4C, or a check mark or other pattern mark, or a highlight display mark such as a highlight display, which is not limited in this application.
- a text prompt may also be displayed in the wearing mode interface 420, and the text prompt may be used to prompt the user how to select the wearing mode.
- the electronic device 100 can receive and respond to the user's operation of sliding upward on the wearing mode interface 420, as shown in Figure 4D, and display multiple directional mode controls located below the wearing mode control in the wearing mode interface 420.
- the multiple direction mode controls may include a right control 431, a left control 432, an upper control 433, and a lower control 434.
- more direction mode controls may be included, such as an upper left control, a lower left control, an upper right control, a lower right control, and the like.
- the direction mode control may be used to trigger the electronic device 100 to set the corresponding direction mode.
- the upper control 433 may be used to trigger the electronic device 100 to set the direction mode to the crown on top, that is, when the crown is on top, the displayed content is displayed in the forward direction.
- Patterns and/or texts may be displayed on the direction mode control, wherein both the pattern and the text may be used to prompt the user that the direction mode corresponding to the direction mode control.
- the pattern of the upper control 433 may be a pattern of a watch movement, and in the pattern, the crown is located above the movement.
- the text "up" may be displayed on the upper control 433 to prompt the user that the direction mode corresponding to the direction mode control is the crown on top. It is understandable that the embodiment shown in FIG. 4D is only an example. In the embodiment of the present application, the pattern displayed on the direction mode control may also be a pattern of other shapes, and the text may also be other text, which is not limited in the present application.
- a check mark 435 may also be displayed on (or near) the right control 431 to prompt the user that the current direction mode is the crown on the right.
- the check mark 435 may be a ring mark as shown in FIG. 4D, or it may be a mark of other shapes.
- the check mark 435 may also be highlighted by highlighting, enlarging, or other ways of highlighting the direction mode control, which is not limited in the present application.
- the electronic device 100 can receive and respond to the user's click operation on the upper control 433.
- the wearing interface 420 shown in Figure 4D is rotated 90° clockwise (or 270° counterclockwise) and displayed on the electronic device 100, and the display of the selection mark 435 is turned off, and the selection mark 436 is displayed on the upper control 433.
- the user can rotate the electronic device 100 270° clockwise so that the crown 14A is located above the movement 11A.
- the electronic device 100 displays a wearing mode interface 420.
- the wearing mode interface 420 is displayed in the forward direction and is the same as the wearing mode interface 420 shown in FIG. 4E .
- the electronic device 100 when the electronic device 100 is in watch mode, the electronic device 100 may display fewer directional mode controls in the wearing mode interface 420 than in the movement mode.
- the electronic device 100 displays a wearing mode interface 420, and a check mark 424 is displayed next to the watch mode 421 in the wearing mode interface 420, which is used to prompt the user that the current wearing mode is the watch mode.
- a check mark 424 is displayed next to the watch mode 421 in the wearing mode interface 420, which is used to prompt the user that the current wearing mode is the watch mode.
- the electronic device 100 When the electronic device 100 is in the watch mode, upon receiving and responding to an upward swipe operation by the user, the electronic device 100 may display a wearing mode interface 420 as shown in FIG. 4H .
- a plurality of directional mode controls are displayed in the wearing mode interface 420, including a right control 431 and a left control 432.
- the specific functions of the right control 431 and the left control 432 can refer to the relevant description of the embodiment shown in FIG4D above.
- FIG4D By comparing FIG4D with FIG4H , it can be seen that in the movement mode, the electronic device 100 can display more directional mode controls in the wearing mode interface 420.
- the electronic device 100 may also receive and respond to a user's click operation on the movement mode control 422, as shown in FIG. 4D above, and display multiple direction mode controls in the wearing mode interface 420.
- the electronic device 100 may also receive and respond to a user's click operation on the watch mode control shown in FIG. 4C, as shown in FIG. 4H above, and display multiple direction mode controls.
- Figures 4A to 4H only illustrate the mode switching method by taking the electronic device 100 including the movement 11A shown in Figure 1A as an example.
- the movement 11A can also be the movement 11A shown in Figure 1B above, or a movement of other shapes, and the crown 14A can also be replaced by buttons, operating balls, operating levers and other devices, and the present application does not limit this.
- the rotation direction of the electronic device 100 and the rotation direction of the displayed content are described by taking clockwise rotation as an example.
- the rotation direction of the electronic device 100 and the rotation direction of the displayed content are described by clockwise rotation as an example.
- the rotation direction of the displayed content can also be counterclockwise, in which case the value of the rotation angle also changes accordingly, that is, the sum of the counterclockwise rotation angle and the clockwise rotation angle under the same circumstances is 360°.
- the contents related to the rotation angle in the following embodiments of this application can also refer to the relevant descriptions here.
- the electronic device 100 may also receive and respond to the user's operation on the direction mode control, and after detecting the user's operation of exiting the wearing mode interface (or turning off the screen), the display content in the display screen 13A is rotated based on the direction mode corresponding to the direction mode control. In this way, if the direction mode control selected by the user does not meet the expectations, it is convenient for the user to switch to the expected direction mode in time.
- the electronic device 100 may also receive and respond to the user's operation on the direction mode control, and after detecting the user's operation of rotating the electronic device 100, the display content in the display screen 13A is rotated based on the direction mode corresponding to the direction mode control. In this way, the display content can always be in a display direction that is convenient for the user to view and operate.
- 5A to 5F show a set of application scenario schematic diagrams provided in an embodiment of the present application.
- the user can wear the electronic device 100 on the left wrist, and the crown 14A of the electronic device 100 is located on the right side of the movement 11A.
- the direction mode of the electronic device 100 can be set to the crown on the right, at which time, the display content in the display screen 13A is displayed in the forward direction.
- the user can wear the electronic device 100 on the right wrist, and the crown 14A of the electronic device 100 is located on the left side of the movement 11A.
- the direction mode of the electronic device 100 can be set to the crown on the left, at which time, the display content in the display screen 13A is displayed in the forward direction.
- the user can connect the crown 14A of the electronic device 100 to the necklace and wear it around the neck as a necklace, and the crown 14A is located above the movement 11A.
- the orientation mode of the electronic device 100 can be set to crown up, and the display content on the display screen 13A is displayed in the forward direction.
- the user can combine the electronic device 100 with other devices to form an alarm clock.
- the crown 14A of the electronic device 100 is located above the movement 11A.
- the orientation mode of the electronic device 100 can be set to the crown on top, in which case the display content on the display screen 13A is displayed in the forward direction.
- the user can install the electronic device 100 as an accessory on a backpack.
- the crown 14A is located below the movement 11A.
- the orientation mode of the electronic device 100 can be set to the crown down, and the display content on the display screen 13A is displayed in the forward direction.
- the user can install the electronic device 100 in the middle of the handlebar of the bicycle.
- the crown 14A of the electronic device 100 is located below the movement 11A.
- the direction mode of the electronic device 100 can be set to the crown at the bottom.
- the display content in the display screen 13A is displayed in the forward direction, and the user can easily view the route through the electronic device 100.
- FIG. 5A to 5F are only illustrative of several application scenarios of the mode switching method provided in the embodiments of the present application. In the embodiments of the present application, more application scenarios can also be included, such as using the electronic device 100 as a pocket watch, stopwatch, etc., which is not limited in the present application.
- the electronic device 100 may display a wearing mode interface, in which a micro-motion detection switch control is displayed.
- the electronic device 100 may accept and respond to the user's operation on the micro-motion detection switch control to turn on/off micro-motion detection.
- the micro-motion detection is turned on, when the electronic device 100 detects that the movement 11A is rotating, it may rotate the displayed content on the display screen 13A based on the rotation angle of the movement 11A, so that the displayed content is always displayed in the forward direction, which is convenient for the user to view and operate. In this way, when the movement 11A rotates continuously, the user does not need to operate multiple times.
- the electronic device 100 can detect the rotation angle in real time and adapt the displayed content, touch screen events, etc., so that the user can view and operate the displayed content.
- the crown 14A of the electronic device 100 is located on the right side of the movement 11A, and the electronic device 100 displays a wearing mode interface 420, which is displayed in a forward direction.
- the specific content of the wearing mode interface 420 can refer to the relevant description in the embodiment shown in FIG4D above, which will not be repeated here.
- the electronic device 100 can receive and respond to the user's swiping up operation on the wearing mode interface 420 , as shown in FIG. 6B , and display the lower part of the interface content of the wearing mode interface 420 , including the micro-motion detection switch 441 .
- a micro-motion detection switch 441 is displayed in the wearing mode interface 420, and the micro-motion detection switch 441 can be used to trigger the electronic device 100 to turn on or off micro-motion detection.
- a switch mark 442 can also be displayed near the micro-motion detection switch 441 to prompt the user whether the current micro-motion detection is turned on.
- the switch mark 442 can be the text "OFF" shown in FIG6B, or other text or patterns. According to the switch mark 442, it can be known that the current micro-motion detection is in the off state.
- the electronic device 100 can receive and respond to a user's click operation on the micro-motion detection switch 441, as shown in FIG6C , to turn on the micro-motion detection switch 441. Measure and change the switch mark 442.
- the switch mark 442 may be changed to the text “ON” as shown in FIG. 6C , to prompt the user that the micro-motion detection is currently turned on.
- the electronic device 100 After the micro-motion detection is turned on, when the electronic device 100 detects that the user rotates the electronic device 100 shown in Figure 6C clockwise by 315°, the electronic device 100 will rotate the display content 45° clockwise relative to the display screen 13A and then display it on the display screen 13A, that is, display the wearing mode interface 420 as shown in Figure 6D, and the wearing mode interface 420 is displayed in the forward direction.
- the electronic device 100 detects that the user rotates the electronic device 100 shown in FIG. 6C clockwise by 225°, the electronic device 100 will display the content on the display screen 13A after rotating it 135° clockwise relative to the display screen 13A.
- the electronic device 100 detects that the user rotates the electronic device 100 shown in FIG. 6C clockwise by 135°, the electronic device 100 will display the content on the display screen 13A after rotating it 225° clockwise relative to the display screen 13A.
- FIGS. 6A to 6D are merely exemplary illustrations of how the displayed content can remain displayed in the forward direction during the micro-rotation of the movement 11A after the micro-motion detection is turned on, so as to facilitate user viewing and operation.
- the displayed content may also be other application interfaces or dials, etc.
- the rotation angle of the electronic device 100 may also include more angles than the above embodiments, and the rotation direction of the electronic device 100 and/or the displayed content may also be counterclockwise.
- the conversion method of the rotation angle in the case of counterclockwise rotation may refer to the relevant contents in the embodiments shown in FIGS. 4A to 4F above, and the present application does not limit this.
- the electronic device 100 may also be preset with multiple rotation angle intervals (for example, every 10° or every 15° is a rotation angle interval, etc.).
- the rotation angle may be set to the median of the rotation angle interval (or any angle within the rotation angle interval). In this way, it can not only ensure that the displayed content is in a direction that is convenient for the user to view and operate, but also reduce the rotation of the displayed content relative to the display screen 13A caused by vibration and shaking, thereby reducing energy consumption.
- a specific process of a mode switching method provided in an embodiment of the present application may include the following steps:
- the electronic device 100 receives and responds to the user's operation 1, and determines the direction mode 1 after switching.
- the electronic device 100 may include multiple direction modes, such as crown on the left, crown on the right, crown on the top, crown on the bottom, etc.
- the multiple direction modes may also include crown on the top left, crown on the bottom left, crown on the top right, crown on the bottom right, etc.
- the definition of the direction mode may refer to the relevant description in the embodiment shown in FIG. 2 above, and will not be repeated here.
- the multiple orientation modes of the electronic device 100 may include multiple orientation modes set at the factory.
- the multiple orientation modes may also include user-defined orientation modes, for example, the user may set the name of the orientation mode and the rotation angle corresponding to the orientation mode.
- Operation 1 can be used to set the direction mode.
- Operation 1 can be a click operation on the direction mode control, for example, in the embodiment shown in FIG. 4D above, a click operation on the left control 432, and so on.
- the electronic device 100 can determine the direction mode 1 after switching based on operation 1. For example, based on the operation object of operation 1 being the left control 432 shown in FIG. 4D above, it is determined that the direction mode 1 after switching is the crown on the left, etc.
- the electronic device 100 determines rotation angle 1 based on direction mode 1 .
- Rotation angle 1 is the angle at which the displayed content needs to be rotated clockwise relative to the display screen 13A. It should be noted that in the embodiments of the present application, the rotation angle is mostly described by taking clockwise rotation as an example. In some embodiments, the rotation angle may also be a counterclockwise rotation angle. In this case, the sum of the rotation angle corresponding to the counterclockwise rotation and the angle corresponding to the clockwise rotation is 360°, which is not limited in the present application.
- the direction mode of the electronic device 100 is direction mode 2 .
- rotation angle 1 may be the rotation angle of direction mode 1 relative to direction mode 2, that is, the angle at which the displayed content in display screen 13A needs to be rotated clockwise before and after the mode switching.
- electronic device 100 may determine rotation angle 1 based on the direction modes before and after the switching.
- the electronic device 100 Before the electronic device 100 receives the user's operation 1 for setting the direction mode, the electronic device 100 can obtain that the direction mode before switching is direction mode 2. For example, a check mark 435 is displayed on the right control 431 in the wearing mode interface 420 shown in FIG. 4D above. Then the crown corresponding to the right control 431 is in direction mode 2 on the right.
- the electronic device 100 may store a correspondence between the direction modes before and after the switching and the rotation angle 1.
- Table 1 shows a correspondence between the direction modes before and after the switching and the rotation angle 1 provided in an embodiment of the present application.
- the correspondence table between the switching forward and backward direction modes and the rotation angle 1 stored in the electronic device 100 may include direction mode 2, direction mode 1 and rotation angle 1.
- the rotation angle 1 is 180°; when direction mode 2 is the crown on the right and direction mode 1 is the crown on the top, the rotation angle 1 is 90°; when direction mode 2 is the crown on the right and direction mode 1 is the crown on the bottom, the rotation angle 1 is 270°; when direction mode 2 is the crown on the left and direction mode 1 is the crown on the top, the rotation angle 1 is 270°; when direction mode 2 is the crown on the top and direction mode 1 is the crown on the bottom, the rotation angle 1 is 180°; when direction mode 2 is the crown on the bottom and direction mode 1 is the crown on the left, the rotation angle 1 is 270°.
- the rotation angle 1 is the angle at which the display content rotates clockwise relative to the display screen 13A.
- the embodiment shown in the above Table 1 is only an illustrative example of how the electronic device 100 can store the correspondence between the direction mode before and after switching and the rotation angle 1.
- the electronic device 100 can also store more or less content than the embodiment shown in Table 1, and the present application does not limit this.
- the electronic device 100 may determine the rotation angle 1 based on the stored correspondence between the direction modes before and after the switching and the rotation angle 1.
- the electronic device 100 may store an initial direction mode and an initial display direction in the initial direction mode, and the initial display direction is the direction of the display content (hereinafter referred to as the initial display content) in the initial direction mode.
- the initial display content in the initial direction mode is displayed in the forward direction.
- the rotation angle 1 can be the rotation angle of the direction mode 1 relative to the initial direction mode, that is, the angle at which the direction of the display content in the display screen 13A needs to be rotated clockwise relative to the initial display direction after the mode is switched.
- the electronic device 100 can determine the rotation angle 1 based on the direction mode 1 after the switch and the initial direction mode.
- the electronic device 100 may store a correspondence between the initial direction mode, the direction mode after switching, and the rotation angle 1.
- Table 2 shows the correspondence between an initial direction mode, the direction mode after switching, and the rotation angle 1 provided in an embodiment of the present application.
- the correspondence table between the initial direction mode, the direction mode after switching and the rotation angle 1 stored in the electronic device 100 may include the initial direction mode, direction mode 1 and rotation angle 1.
- the rotation angle 1 when the initial direction mode is the crown on the right, when the direction mode 1 is the crown on the left, the rotation angle 1 is 180°; when the direction mode 1 is the crown on the top, the rotation angle 1 is 90°; when the direction mode 1 is the crown on the bottom, the rotation angle 1 is 270°; when the direction mode 1 is the crown on the right, the rotation angle 1 is 0°.
- the rotation angle 1 is the angle of the display content rotated clockwise relative to the display screen 13A.
- the embodiment shown in the above Table 2 is only an illustrative example of how the electronic device 100 can store the correspondence between the direction modes before and after switching and the rotation angle 1.
- the initial direction mode may also be a direction mode different from that in the embodiment shown in Table 2.
- the electronic device 100 may also store more or fewer direction modes than those in the embodiment shown in Table 2. The present application does not limit this.
- the electronic device 100 After determining the direction mode 1 after switching, the electronic device 100 can be based on the stored initial direction mode, direction mode 1 and rotation mode. The corresponding relationship between angle 1 and rotation angle 1 is determined.
- the electronic device 100 may rotate the display content based on the rotation angle 1. Specifically, after determining the rotation angle 1, the electronic device 100 may send a rotation instruction to the GPU, the rotation instruction including the rotation angle 1, and the rotation instruction is used to instruct the GPU to rotate the display content (the display content in the current display screen or the initial display content), and the rotation angle is the rotation angle 1. After receiving the rotation instruction, the GPU may rotate the display content based on the rotation angle 1.
- rotation angle 1 is the rotation angle of direction mode 1 relative to direction mode 2 before switching
- electronic device 100 can rotate the display content in the current display screen 13A clockwise relative to display screen 13A, and the rotation angle is rotation angle 1.
- rotation angle 1 is the rotation angle of direction mode 1 relative to the initial direction mode
- the electronic device 100 can rotate the initial display content clockwise relative to the display screen 13A, and the rotation angle is rotation angle 1.
- step S703 to step S706, and steps S704 to step S706 are all optional steps.
- S704 The electronic device 100 adapts the touch screen event based on direction mode 1 or rotation angle 1.
- the actual direction of the user's touch screen event may be inconsistent with the direction detected by the electronic device 100.
- the electronic device 100 needs to adapt the touch screen event.
- 8A to 8D illustrate a set of directions perceived by a user and directions detected by the electronic device 100 in different direction modes provided by an embodiment of the present application.
- the crown 14A of the electronic device 100 is located on the right side of the movement 11A, and the two-dimensional plane where the display screen 13A of the electronic device 100 is located can be the XOY plane in the coordinate system shown in FIG1D above, and the direction of the crown 14A relative to the movement 11A is the positive direction of the X axis.
- the electronic device 100 can display a desktop 400, and the specific description of the desktop 400 can refer to the relevant content shown in FIG4A above. In FIG8A , the desktop 400 is displayed in the positive direction.
- the direction perceived by the user can be defined based on the two-dimensional plane XOY: the user perceives "up” as the positive direction of the Y axis; the user perceives “down” as the negative direction of the Y axis; the user perceives "left” as the negative direction of the X axis; the user perceives "right” as the positive direction of the X axis.
- the direction detected by the electronic device 100 can be defined based on the relative position of the crown 14A and the movement 11A: when the direction mode is the crown on the right as shown in Figure 8A, the "right” detected by the electronic device 100 can be the direction of the crown 14A relative to the movement 11A, that is, the direction indicated by the arrow "b"; the “left” detected by the electronic device 100 can be the direction of the movement 11A relative to the crown 14A, that is, the direction indicated by the arrow "d”; the “up” detected by the electronic device 100 can be the direction of the "right” direction rotated 90° counterclockwise, that is, the direction indicated by the arrow "a”; the “down” detected by the electronic device 100 can be the direction of the "right” direction rotated 90° clockwise, that is, the direction indicated by the arrow "c".
- the electronic device 100 After the direction mode is switched from the crown on the right as shown in FIG8A to the crown on the left, as shown in FIG8B , the electronic device 100 has not rotated compared to FIG8A , and the crown 14A is still located on the right side of the movement 11A.
- the electronic device 100 can display the desktop 400, which is displayed in reverse. Since neither the X-axis nor the Y-axis has changed, the direction perceived by the user has not changed. At this time, the direction detected by the electronic device 100 needs to be opposite to the direction shown in FIG8A in order for the electronic device 100 to respond correctly.
- the direction detected by the electronic device 100 can be defined based on the relative position of the crown 14A and the movement 11A: when the direction mode is the crown on the left as shown in Figure 8B, the "left” detected by the electronic device 100 can be the direction of the crown 14A relative to the movement 11A, that is, the direction indicated by the arrow "b"; the “right” detected by the electronic device 100 can be the direction of the movement 11A relative to the crown 14A, that is, the direction indicated by the arrow "d”; the “up” detected by the electronic device 100 can be the direction of the "right” direction rotated 90° counterclockwise, that is, the direction indicated by the arrow "c”; the “down” detected by the electronic device 100 can be the direction of the "right” direction rotated 90° clockwise, that is, the direction indicated by the arrow "a".
- the electronic device 100 After the direction mode is switched from the crown on the right as shown in FIG8A to the crown on the top, as shown in FIG8C, the electronic device 100 has not rotated compared to FIG8A, and the crown 14A is still located on the right side of the movement 11A.
- the electronic device 100 can display the desktop 400, and the desktop 400 is displayed in the right direction. Since the X-axis and the Y-axis have not changed, the direction perceived by the user has not changed. At this time, the direction detected by the electronic device 100 needs to be rotated 90° clockwise relative to the direction shown in FIG8A in order for the electronic device 100 to respond correctly.
- the direction detected by the electronic device 100 can be defined based on the relative position of the crown 14A and the movement 11A: when the direction mode is the crown up as shown in Figure 8C, the "up” detected by the electronic device 100 can be the direction of the crown 14A relative to the movement 11A, that is, the direction indicated by the arrow "b"; the “down” detected by the electronic device 100 can be the direction of the movement 11A relative to the crown 14A, that is, the direction indicated by the arrow "d”; the “right” detected by the electronic device 100 can be the direction of the "up” direction rotated 90° clockwise, that is, the direction indicated by the arrow "c”; the "left” detected by the electronic device 100 can be the direction of the "up” direction rotated 90° counterclockwise, that is, the direction indicated by the arrow "a".
- the electronic device 100 After the direction mode is switched from the crown on the right as shown in FIG8A to the crown on the bottom, as shown in FIG8D, the electronic device 100 has not rotated compared to FIG8A, and the crown 14A is still located on the right side of the movement 11A.
- the electronic device 100 can display the desktop 400, and the desktop 400 is displayed in the left direction. Since the X-axis and the Y-axis have not changed, the direction perceived by the user has not changed. At this time, the direction detected by the electronic device 100 needs to be rotated 90° counterclockwise relative to the direction shown in FIG8A in order for the electronic device 100 to respond correctly.
- the direction detected by the electronic device 100 can be defined based on the relative position of the crown 14A and the movement 11A: when the direction mode is the crown on the left as shown in Figure 8D, the “down” detected by the electronic device 100 can be the direction of the crown 14A relative to the movement 11A, that is, the direction indicated by the arrow "b"; the “up” detected by the electronic device 100 can be the direction of the movement 11A relative to the crown 14A, that is, the direction indicated by the arrow “d”; the “right” detected by the electronic device 100 can be the direction of the “up” direction rotated 90° clockwise, that is, the direction indicated by the arrow "a”; the "left” detected by the electronic device 100 can be the direction of the "right” direction rotated 90° counterclockwise, that is, the direction indicated by the arrow "c".
- the direction detected by the electronic device 100 is determined based on the relative direction of the crown 14A and the movement 11A, after the electronic device 100 is subsequently rotated, if the crown 14A is rotated to the position indicated by the direction mode, the direction detected by the electronic device 100 can coincide with the direction perceived by the user.
- the electronic device 100 can also use the touch screen function normally.
- the electronic device 100 may adapt the touch screen event after determining direction mode 1 or rotation angle 1. In other embodiments, the electronic device 100 may also adapt the touch screen event after determining direction mode 1 or rotation angle 1 and detecting a user's touch screen operation.
- the electronic device 100 may adapt touch screen events (eg, sliding events, etc.) based on direction mode 1.
- touch screen events eg, sliding events, etc.
- Table 3 shows a correspondence between the direction mode 1 after switching and the sliding event conversion adaptation stored in the electronic device 100.
- the initial direction mode is the crown on the right, and the electronic device 100 is set by default to the case where the crown is on the right.
- the operation detected by the electronic device 100 is an upward sliding operation
- the operation detected by the electronic device 100 is a downward sliding operation
- the operation detected by the electronic device 100 is a left sliding operation
- the operation detected by the electronic device 100 is a right sliding operation.
- the electronic device 100 can define the "upward sliding" of the crown in the right mode as the “downward sliding” of the crown in the left mode; define the “downward sliding” of the crown in the right mode as the “upward sliding” of the crown in the left mode; define the "left sliding” of the crown in the right mode as the “right sliding” of the crown in the left mode; and define the "right sliding” of the crown in the right mode as the "left sliding” of the crown in the left mode.
- the electronic device 100 may define the “up swipe” in the right mode as the “left swipe” in the crown up mode; define the “down swipe” in the right mode as the “right swipe” in the crown up mode; define the “left swipe” in the right mode as the “down swipe” in the crown up mode; define the “right swipe” in the right mode as the “up swipe” in the crown up mode.
- the electronic device 100 may define the “up swipe” in the right mode as the “right swipe” in the crown down mode; define the “down swipe” in the right mode as the “left swipe” in the crown down mode; define the “left swipe” in the right mode as the “up swipe” in the crown down mode; define the “right swipe” in the right mode as the “down swipe” in the crown down mode.
- the initial direction mode may also be a direction mode different from the embodiment shown in Table 3
- the sliding event may also include more or fewer sliding events such as upper left sliding, upper right sliding, etc., and may also include sliding events different from the above embodiments.
- the direction mode may also include more or fewer direction modes, and the present application does not make any limitations here.
- the direction of the touch screen event detected by the electronic device 100 can match the direction of the user's actual operation.
- the electronic device 100 may adapt the sliding event in the touch screen event based on the corresponding relationship between the switched direction mode 1 and the sliding event conversion adaptation.
- the electronic device 100 may also adapt the touch screen event based on the rotation angle 1. Specifically, the electronic device 100 may rotate the sliding operation counterclockwise, and the rotation angle is the rotation angle 1. Among them, if the rotation angle 1 is the rotation angle of the direction mode 1 relative to the initial direction mode, the electronic device 100 can perform a counterclockwise rotation of the sliding event in the initial direction mode to obtain a converted sliding event.
- the electronic device 100 can perform a counterclockwise rotation of the sliding event in the direction mode 2 to obtain a converted sliding event.
- the direction mode 2 is the crown on the top
- the rotation angle 1 is 180°
- the sliding operation in the direction mode 2 is rotated 180° counterclockwise, and the converted event is a sliding operation
- the sliding operation in the direction mode 2 is rotated 180° counterclockwise, and the converted event is a sliding operation, etc.
- the electronic device 100 rotates a certain angle so that the position of the crown 14A relative to the movement 11A is consistent with the position of the crown 14A relative to the movement 11A indicated by direction mode 1
- the user's swipe up operation on the display screen 13A corresponds to the response logic of the swipe up event
- the user's swipe down operation on the display screen 13A corresponds to the response logic of the swipe down operation
- the left swipe operation corresponds to the response logic of the left swipe event
- the right swipe operation corresponds to the response logic of the right swipe event
- the electronic device 100 may also configure the parameters of the touch screen event (such as the direction of the sliding event, etc.) and the coordinate system stored inside the electronic device 100 into an integrated circuit (IC) to implement the touch screen operation function.
- the electronic device 100 may define the direction of the touch screen event based on the coordinate axis direction of the coordinate system.
- the purpose of touch screen event adaptation may also be achieved by adapting the coordinate system.
- the adaptation of the coordinate system may refer to the relevant description in the following step S706, which will not be described in detail here.
- the electronic device 100 adapts the crown rotation event based on direction mode 1 or rotation angle 1 .
- the electronic device 100 can detect operations performed by a user on the crown 14A (or button 15B, etc.), such as a crown rotation event.
- a crown rotation event refers to a rotation operation of the crown 14A on the two-dimensional plane where the Z axis and the X axis shown in FIG. 1D are located. Specifically, it may include a clockwise rotation operation and a counterclockwise rotation operation. The user's rotation operation on the crown 14A can trigger the electronic device 100 to perform a corresponding response.
- the electronic device 100 may adapt the crown rotation event after determining direction mode 1 or rotation angle 1. In other embodiments, the electronic device 100 may also adapt the crown rotation event after determining direction mode 1 or rotation angle 1 and detecting the user's rotation operation on the crown 14A.
- the electronic device 100 can adapt the crown rotation event based on direction mode 1. For example, taking the initial direction mode of the crown being on the right as an example, Table 4 shows a correspondence between the switched direction mode 1 and the crown rotation event conversion adaptation stored in the electronic device 100.
- the initial direction mode is the crown on the right, and the electronic device 100 is set by default that when the crown is on the right, rotating the crown clockwise (i.e., rotating the crown upward) is the clockwise rotation of the crown in the initial direction mode, and rotating the crown counterclockwise is the counterclockwise rotation of the crown in the initial direction mode; when the direction mode 1 after switching is the crown on the left, the clockwise rotation of the crown in the initial direction mode is converted to counterclockwise rotation of the crown, and the counterclockwise rotation of the crown is converted to clockwise rotation; when the direction mode 1 after switching is the crown on the top, the clockwise rotation of the crown in the initial direction mode is converted to clockwise rotation of the crown, and the counterclockwise rotation of the crown is converted to counterclockwise rotation; when the direction mode 1 after switching is the crown on the bottom, the clockwise rotation of the crown in the initial direction mode is converted to counterclockwise rotation of the crown, and the counterclockwise rotation of the crown is converted to clockwise rotation.
- the initial direction mode may also be a direction mode different from the embodiment shown in Table 4, and may also include a rotation crown event conversion adaptation different from the above embodiments, and may also include more or fewer direction modes, which are not limited in the present application.
- the electronic device 100 may also adapt the crown rotation event based on rotation angle 1 after determining rotation angle 1 (clockwise rotation). Specifically, when rotation angle 1 is the rotation angle of direction mode 1 relative to the initial direction mode, if rotation angle 1 is within the first angle range, the crown rotation event after adaptation is the same as the crown rotation event in the initial direction mode; If the rotation angle 1 is in the second angle range, the adapted rotation crown event is opposite to the rotation crown event in the initial direction mode, that is, the clockwise rotation crown in the initial direction mode is switched to the counterclockwise rotation crown, and the counterclockwise rotation crown in the initial direction mode is switched to the clockwise rotation crown.
- the first angle range may include [0°, 90°] and (270°, 360°]
- the second angle range may include (90°, 270°].
- the electronic device 100 may not perform step S705.
- the button 15B of the electronic device 100 includes an up button and a down button, or other devices such as an operating stick of the electronic device 100 have events such as upward and downward dialing, the electronic device 100 may also adapt the corresponding event based on the switched direction mode 1 or rotation angle 1, which will not be described in detail here.
- the electronic device 100 can normally detect the user's operation on the crown 14A (or button 15B) before and after the direction mode is switched (or before and after the electronic device 100 is rotated).
- S706 The electronic device 100 adapts the coordinate system based on direction mode 1 or rotation angle 1 .
- the electronic device 100 may store a coordinate system, which may be a three-dimensional space coordinate system established based on the three axes of any device in the IMU.
- the IMU may include any one or more of the following: an accelerometer (accelerometer unit), a gyroscope (gyro-sensor), a magnetometer, etc. Therefore, the coordinate system stored in the electronic device 100 may also be referred to as an A+G coordinate system.
- the three axes of the A+G coordinate system may be coordinate axes corresponding to the three axes of the gyroscope, or may be three coordinate axes obtained by rotating the three axes of the gyroscope.
- the electronic device 100 can configure gesture parameters (including wrist movement directions corresponding to different gesture operations) and coordinate systems into an integrated circuit (IC) to implement gesture functions (such as raising the wrist, swinging the arm, etc.) of the electronic device 100. Therefore, after adapting the coordinate system, the gesture function of the electronic device 100 can also be used normally in the current scene. It can be understood that step S706 is an optional step. In some embodiments, if the electronic device 100 is not configured with a gesture function, or the electronic device 100 is in the movement mode, the electronic device 100 may not execute step S706.
- the three axes of the coordinate system stored in the electronic device 100 may be referred to as the X0 axis, the Y0 axis, and the Z0 axis.
- FIG. 9A shows a coordinate system stored by the electronic device 100 before the direction mode is switched.
- the electronic device 100 can establish a three-dimensional space coordinate system based on the three axes of any device in the IMU (such as a gyroscope, an accelerometer, a magnetometer, etc.) as the three axes of the three-dimensional coordinate system, and any two coordinate axes of the X0 axis, the Y0 axis, and the Z0 axis are perpendicular to each other.
- IMU such as a gyroscope, an accelerometer, a magnetometer, etc.
- the three-dimensional space coordinate system X0Y0Z0 can also be called the A+G coordinate system. It should be noted that during the rotation of the electronic device 100, since the IMU of the electronic device 100 will also rotate with the electronic device 100, the three-dimensional space coordinate system X0Y0Z0 will also rotate.
- the three-dimensional space coordinate system X0Y0Z0 is fixed relative to the electronic device 100, but is not fixed relative to the three-dimensional space coordinate system XYZ shown in FIG. 1D above.
- the three-dimensional space coordinate system X0Y0Z0 may coincide with the three-dimensional space coordinate system XYZ shown in FIG. 1D above.
- the three axes of the coordinate system stored by the electronic device 100 may be referred to as the X1 axis, the Y1 axis, and the Z1 axis.
- the XOY plane needs to be considered, that is, only the rotation from the X0 axis to the X1 axis and the rotation from the Y0 axis to the Y1 axis need to be considered, and the corresponding relationship between the rotation angle and the direction mode 1 can refer to the following content
- the Z1 axis maintains the relative position relationship between the Z0 axis and the X0 axis and the Y0 axis in the coordinate system shown in FIG. 9A.
- Table 5 shows the correspondence between the switched direction mode 1 stored in the electronic device 100 and the angle at which the coordinate system needs to be rotated.
- the initial orientation mode is that the crown is on the right, and the electronic device 100 is set by default to the initial coordinate system position when the crown is on the right.
- the initial coordinate system can be the coordinate system shown in FIG. 1D above, and the rotation angle is 0°.
- the rotation angle of the switched coordinate system relative to the initial coordinate system is 180°; when the direction mode 1 after switching is the crown on the top, the rotation angle of the switched coordinate system relative to the initial coordinate system is 90° clockwise; when the direction mode 1 after switching is the crown on the bottom, the rotation angle of the switched coordinate system relative to the initial coordinate system is 270° clockwise.
- the embodiment shown in Table 5 is only an example.
- the initial direction mode may also be a direction mode different from the embodiment shown in Table 5, and may also include more or fewer direction modes, which is not limited in the present application.
- the electronic device 100 can rotate the two-dimensional plane coordinate system where the display screen 13A is located based on the rotation angle, or rotate the two-dimensional rectangular coordinate system formed by the X-axis and Y-axis in the three-dimensional space coordinate system, and construct a new three-dimensional space coordinate system with the Z axis.
- the electronic device 100 may adapt the coordinate system based on the rotation angle 1. Specifically, when the rotation angle 1 is the rotation angle of the direction mode 1 relative to the direction mode 2 before switching, the electronic device 100 may rotate the current coordinate system counterclockwise to obtain an adapted coordinate system, and the rotation angle is the rotation angle 1 (or clockwise, and the rotation angle is the difference between 360° and the rotation angle 1); when the rotation angle 1 is the rotation angle of the direction mode 1 relative to the initial direction mode, the electronic device 100 may rotate the standard coordinate system in the initial direction mode counterclockwise to obtain an adapted coordinate system, and the rotation angle is the rotation angle 1.
- 9A to 9D are schematic diagrams showing changes in a coordinate system before and after a mode switch provided in an embodiment of the present application.
- the coordinate system X0Y0Z0 stored in the electronic device 100 may refer to the embodiment shown in FIG. 9A above.
- the coordinate system stored in the electronic device 100 will also rotate, and the rotation direction and rotation angle of the X0 axis and the Y0 axis are the same as the rotation direction and rotation angle of the electronic device 100.
- the rotated three-dimensional space coordinate system X0Y0Z0 is shown in FIG. 9B , wherein the crown 14A is located below the movement 11A, i.e., in the positive direction of the X0 axis.
- the Y0 axis is perpendicular to the X0 axis, and the two-dimensional plane formed by the X0 axis and the Y0 axis is the screen surface where the display screen 13A is located.
- the Z0 axis is perpendicular to the X0 axis and the Y0 axis.
- the coordinate system X1Y1Z1 adapted based on the three-dimensional space coordinate system X0Y0Z0 is shown in FIG9C .
- the three-dimensional space coordinate system X1Y1Z1 includes three mutually perpendicular axes: the X1 axis, the Y1 axis, and the Z1 axis, and the origin O is located at the center of the display screen 13A, the display screen 13A is located on the two-dimensional plane constructed by the X1 axis and the Y1 axis, and the crown 14A of the electronic device 100 is located on the right side of the movement 11A.
- the X1 axis is the coordinate axis of the X0 axis after rotating 270° clockwise with the origin O as the center; the Y1 axis is the coordinate axis of the Y0 axis after rotating 270° clockwise with the origin O as the center.
- the display content of the electronic device 100 is displayed in the left direction.
- the direction of the crown 14A relative to the movement 11A is the negative direction of the Y1 axis.
- FIG. 9D When the electronic device 100 rotates until the crown 14A is located below the movement 11A, the three-dimensional space coordinate system X1Y1Z1 shown in FIG. 9C rotates with the electronic device 100, and the rotated electronic device 100 and the coordinate system X1Y1Z1 are shown in FIG. 9D. As shown in FIG. 9D, the display content of the electronic device 100 is displayed in the forward direction, and the rotated three-dimensional space coordinate system X1Y1Z1 coincides with the three-dimensional space coordinate system X0Y0Z0 shown in FIG. 9A. It can be understood that the embodiments shown in FIG. 9A and FIG. 9D are only exemplary illustrations of the changes in the coordinate system before and after the direction mode is switched. In the embodiments of the present application, the direction mode before and after the switch may also be other direction modes, and the coordinate system may also be other types of coordinate systems, which are not limited in the present application.
- the electronic device 100 can normally detect the user's gesture operation (such as wrist raising operation, etc.) before and after the direction mode is switched (or before and after the electronic device 100 is rotated).
- the user's gesture operation such as wrist raising operation, etc.
- the electronic device 100 can adapt the display content, touch screen events, crown rotation events, and coordinate system based on the direction mode set by the user. In this way, no matter how much the electronic device 100 is rotated, the user can easily view the display content of the electronic device 100 and operate the display content.
- the specific process of another mode switching method may include the following steps:
- the electronic device 100 starts micro-motion detection.
- the electronic device 100 may receive and respond to the user's operation of turning on micro-motion detection, turn on micro-motion detection, and the electronic device 100 may begin to monitor the rotation of the electronic device 100 (or the movement 11A).
- the user's operation of turning on micro-motion detection may be a click operation on the micro-motion detection switch 441 in the embodiment shown in FIG. 6B above.
- the electronic device 100 may also enable micro-motion detection by default after the device is started.
- the electronic device 100 may also enable micro-motion detection when it is detected that the wearing mode of the electronic device 100 is the movement mode (or when it is detected that the user switches the wearing mode to the movement mode).
- the trigger conditions for the electronic device 100 to enable micro-motion detection are just some examples.
- the conditions for triggering the electronic device 100 to enable micro-motion detection may also be trigger conditions different from those in the above embodiments, and may also include more or fewer conditions than the above trigger conditions. The present application does not limit this.
- the electronic device 100 may include an inertial measurement unit (IMU), which may be used to measure the rotation angle of the movement 11A.
- the IMU may include one or more sensors, such as an accelerometer and a gyroscope, and optionally, a magnetometer and the like.
- the accelerometer may be used to measure the acceleration of the electronic device 100, that is, the linear acceleration of the electronic device 100 in different directions.
- the gyroscope may be used to measure the angular acceleration of the electronic device 100 in different directions.
- the magnetometer is used to measure the environmental magnetic field data in different directions in the environment where the electronic device 100 is located.
- the electronic device 100 can detect the rotation of the movement 11A through the IMU and determine the rotation angle 2 of the movement 11A.
- the rotation angle 2 of the movement 11A can be the rotation angle of the electronic device 100 (or movement 11A) before and after the rotation, or the rotation angle of the electronic device 100 (or movement 11A) after the rotation relative to the electronic device 100 (or movement 11A) in the initial orientation mode.
- the IMU may return a measurement result, which may include any one or more of a rotation matrix, Euler angles, and quaternions, and the measurement result may be used to describe a spatial rotation.
- the electronic device 100 may obtain the rotation angle of the movement 11A based on the above measurement results, and then determine the rotation angle 2.
- the IMU may also return the measured raw data, which includes: the linear acceleration of the electronic device 100 in the x0 axis direction of the accelerometer, the linear acceleration in the y0 axis direction, and the linear acceleration in the z0 axis direction; the angular acceleration of the electronic device 100 rotating with the x1 axis of the gyroscope as the rotation axis, the angular acceleration of the gyroscope rotating with the y1 axis as the rotation axis, and the angular acceleration of the gyroscope rotating with the z1 axis as the rotation axis.
- the electronic device 100 may also include the magnetic field data of the electronic device 100 in the x2 axis direction of the magnetometer, the magnetic field data in the y2 axis direction, and the magnetic field data in the z2 axis direction.
- the electronic device 100 can use six-axis fusion, nine-axis fusion and other algorithms based on the original data measured by the above-mentioned IMU to obtain the rotation angle of the movement 11A, and then determine the rotation angle 2.
- the electronic device 100 may divide 360° into a plurality of equally large angle intervals, for example, each angle interval includes 15° or 10°, etc.
- the electronic device 100 may use any angle in the angle interval (for example, the median of the angle interval) as the angle of rotation of the movement 11A.
- the electronic device 100 may determine that the rotation angle 2 is 65°. In this way, it can not only ensure that the displayed content is in a direction that is convenient for the user to view and operate, but also reduce the rotation of the displayed content relative to the display screen 13A due to vibration and shaking, thereby reducing energy consumption.
- the electronic device 100 determines a rotation angle 3 of the displayed content based on the rotation angle 2 .
- the rotation angle 3 refers to the angle at which the display content is rotated relative to the display screen 13A.
- rotation angle of the displayed content may be an angle in the opposite direction to the rotation angle of the movement. That is, rotation angle 3 may be the difference between 360° and rotation angle 2. For example, when the movement 11A rotates clockwise at 45°, rotation angle 3 is 45° counterclockwise, that is, 315° clockwise.
- S1005 The electronic device 100 adapts the touch screen event based on the rotation angle 3.
- the electronic device 100 adapts the crown rotation event based on rotation angle 3 .
- the electronic device 100 adapts the coordinate system based on the rotation angle 3 .
- steps S1004 to S1007 can refer to the specific contents of rotating the displayed content based on the rotation angle in steps S703 to S706 shown in Figure 7 above, and adapting the touch screen event, crown rotation event and coordinate system based on the rotation angle, which will not be repeated here.
- the electronic device 100 can adapt the display content, touch screen events, crown rotation events, coordinate system and other contents based on the rotation angle of the movement 11A in real time. Even in the scene where the movement 11A is continuously rotating, the user can also easily view and operate the display content.
- FIGS. 7 to 10 are described by taking the electronic device 100 as the watch 100A or the movement 11A shown in FIG. 1A as an example.
- the electronic device 100 may also be the bracelet 100B or the movement 11B shown in FIG. 1B, or a device of other forms.
- the direction mode may also be defined based on the position of other devices such as the button 15B or the operating lever, and the present application does not limit this.
- the rotation direction of the electronic device 100 and the rotation direction of the displayed content are described by taking clockwise rotation as an example for the rotation angle (e.g., rotation angle 1, rotation angle 2, and rotation angle 3, etc.), and in the embodiments of the present application, the rotation direction of the electronic device 100 and the rotation direction of the displayed content can also be counterclockwise rotation.
- the value of the rotation angle is also changed accordingly, that is, the sum of the counterclockwise rotation angle and the clockwise rotation angle under the same circumstances is 360°.
- the contents related to the rotation angle in the following embodiments of the present application can also refer to the relevant statements here.
- FIG. 11 shows a flow chart of a method for switching wearing modes provided in an embodiment of the present application.
- a method for switching wearing modes provided in an embodiment of the present application may include the following steps:
- the electronic device 100 receives the user's operation 2.
- Operation 2 may be an operation for the user to switch the wearing mode, such as a click operation on the movement mode control 422 in the embodiment shown in FIG. 4C above, or a click operation on the watch mode control 421, etc.
- operation 2 may also be an operation for the user to connect or separate the movement 11A and the strap 12A (for example, the housing on the strap 12A).
- the electronic device 100 may also be provided with gesture operations to switch the wearing mode. In this case, the electronic device 100 may be provided with gesture operation 1 for switching to the movement mode and gesture operation 2 for switching to the watch mode, and gesture operation 1 and gesture operation 2 are different.
- Operation 2 may be gesture operation 1 or gesture operation 2.
- the wearing mode may include a watch mode and a movement mode.
- the electronic device 100 may switch the wearing mode from the watch mode to the movement mode, or may switch the wearing mode from the movement mode to the watch mode.
- the wearing mode after switching depends on the object of operation 2. For example, if the object of operation 2 is the movement mode control 422 shown in FIG. 4C , the wearing mode after switching is the movement mode; if the object of operation 2 is the watch mode control 421 shown in FIG. 4C , the wearing mode after switching is the watch mode.
- the movement 11A when the user wears the electronic device 100 on the wrist, the movement 11A is connected to the strap 12 through the shell on the strap 12, and the shell and the movement 11A may be provided with a signal transmitter and a signal receiver (such as a chip, an LED light and a photoelectric sensor, an infrared transmitter and an infrared receiver, etc.).
- the signal transmitter and the signal receiver can be used to identify whether the shell and the movement 11A are connected.
- the movement 11A can also detect the chip on the shell through a magnetometer to determine whether the shell and the movement 11A are connected.
- the electronic device 100 can determine that the wearing mode is the watch mode; when the electronic device 100 determines that the shell is not connected to the movement 11A, the electronic device 100 can determine that the wearing mode is the movement mode.
- the electronic device 100 can also determine whether the wearing mode after switching is the movement mode based on whether operation 2 is gesture operation 1.
- the watch mode and/or the movement mode may be further subdivided into multiple modes, for example, the watch mode may include forward wearing and reverse wearing, etc.; the movement mode may include necklace mode, pocket watch mode, alarm clock mode, etc.
- the electronic device 100 may also switch the wearing mode from one mode in the watch mode (for example, forward wearing) to another mode in the watch mode (for example, reverse mode), or from one mode in the movement mode (for example, necklace mode) to another mode in the movement mode (for example, alarm clock mode), etc.
- the electronic device 100 may also store the correspondence between the wearing mode and the direction mode. In this case, in response to operation 2, the electronic device 100 may determine whether to switch the direction mode based on the correspondence between the switched wearing mode and the direction mode. If the direction mode is switched, the display content, coordinate system, touch screen event, etc. are adapted based on the switched direction mode.
- the specific adaptation method can refer to the relevant content in the embodiment shown in Figure 7 above, which will not be repeated here.
- the electronic device 100 turns off the photoplethysmography (PPG) measurement function.
- PPG photoplethysmography
- the electronic device 100 can broadcast a notification to the monitoring module of the electronic device 100 that the wearing mode has changed, and notify the monitoring module to turn off the PPG measurement function.
- PPG measurement can be used to measure blood oxygen, blood pressure, stress, energy consumption, sleep and other sports and health-related data.
- the electronic device 100 can keep the PPG measurement function turned off.
- the electronic device 100 can broadcast a notification of the wearing mode change to the monitoring module of the electronic device 100, and notify the monitoring module to start the PPG measurement function.
- the electronic device 100 can keep the PPG measurement function turned on.
- the wearing mode of the electronic device 100 can be switched.
- the PPG measurement function can be turned off to avoid collecting inaccurate data that affects the measurement results.
- the electronic device 100 receives the user's operation 3.
- operation 3 may be a user clicking an icon of an application of a health type, a sports type, etc. Operation 3 may also be a user clicking a measurement control in an application interface of an application of a health type, a sports type, etc., and the measurement control is used to trigger the electronic device 100 to measure corresponding data using the PPG measurement function.
- the electronic device 100 displays a mode switching prompt, including a mode switching control.
- the mode switching prompt is used to prompt the user that the PPG measurement function cannot be used normally in the movement mode, and ask the user whether to switch to the watch mode.
- the mode switching prompt may include a mode switching control, which can be used to trigger the electronic device 100 to switch the wearing mode from the movement mode to the watch mode.
- the electronic device 100 receives and responds to the user's operation 4, switching the movement mode to the watch mode.
- Operation 4 may be a click operation on the mode switching control, a preset gesture operation for switching to the watch mode, or an operation for connecting the movement 11A to the housing of the strap 12A.
- the electronic device 100 may execute a response corresponding to operation 3 and measure corresponding data through the PPG measurement function.
- the electronic device 100 when the electronic device 100 is in the movement mode, if the user's operation of using the PPG measurement function is received, it can quickly switch back to the watch mode. In this way, not only can inaccurate data be collected, but also fast switching of the wearing mode can be achieved.
- the electronic device 100 may include the following modules: an interaction module 1201 , a mode setting module 1202 , a coordinate system module 1203 , a display module 1204 , a monitoring module 1205 , and the like.
- the interaction module 1201 can receive the user's operation, such as the operation 1 of the user setting the direction mode, the operation 2 of the user switching the wearing mode, the operation 3 of the user using the PPG measurement function, the operation 4 of the user switching the wearing mode, etc.
- the interaction module 1201 can send an instruction to the mode setting module 1202, which is used to instruct the mode setting module 1202 to switch the wearing mode and/or instruct the mode setting module 1202 to switch the direction mode.
- the specific content of the instruction depends on the user's operation received by the interaction module 1201.
- the interaction module 1201 can also receive the direction mode and/or rotation angle sent by the mode setting module 1202, and adjust the interaction event based on the direction mode and/or rotation angle, such as the touch screen event and the crown rotation event in the embodiments shown in Figures 7 and 10 above.
- the mode setting module 1202 can receive instructions sent by the interaction module 1201 to switch the wearing mode and/or the direction mode.
- the mode setting module 1202 can send the switched direction mode (for example, direction mode 1 in the embodiment shown in FIG. 7 above) to the interaction module 1201, the coordinate system module 1203, the display module 1204, etc. after switching the direction mode.
- the mode setting module 1202 can also determine the rotation angle (for example, rotation angle 1, rotation angle 3, etc. in the above embodiment) based on the switched direction mode after switching the direction mode, and send the rotation angle to the interaction module 1201, the coordinate system module 1203, the display module 1204, etc.
- the mode setting module 1202 may determine whether the switched wearing mode is the movement mode after switching the wearing mode.
- the mode setting module 1202 may send a shutdown instruction to the monitoring module 1205 to instruct the monitoring module 1205 to turn off the PPG measurement function. If the switched wearing mode is the watch mode, the mode setting module 1202 may send an opening instruction to the monitoring module 1205 to instruct the monitoring module 1205 to turn on the PPG measurement function.
- the coordinate system module 1203 may receive the direction mode and/or the rotation angle sent by the mode setting module 1202, and adapt the coordinate system based on the direction mode and/or the rotation angle.
- the display module 1204 may receive the direction mode and/or the rotation angle sent by the mode setting module 1202 , and adjust the display direction of the displayed content based on the direction mode and/or the rotation angle.
- the monitoring module 1205 may receive an on instruction sent by the mode setting module 1202, and in response to the on instruction, turn on the PPG measurement function.
- the monitoring module 1205 may receive an off instruction sent by the mode setting module 1202, and in response to the off instruction, turn off the PPG measurement function.
- the electronic device 100 may also include more or fewer functional modules than the embodiment shown in Figure 12, and may also include functional modules different from the embodiment shown in Figure 12 above, and the present application does not limit this.
- FIG. 13 is a schematic flow chart of a mode switching method provided in an embodiment of the present application.
- the process of the mode switching method may include the following steps:
- the electronic device includes a display screen and a button, and stores a coordinate system and one or more touch screen events.
- the electronic device displays a first interface on the display screen, and the button is located at a first position.
- the electronic device may be the electronic device 100 in the above embodiment.
- the electronic device includes a display screen and buttons, and the buttons may include the crown 14A in the above embodiment, or may include the button 15B in the above embodiment.
- the display content of the display screen 13A before and after the electronic device 100 rotates can also be referred to as the first interface.
- the display content before and after the orientation mode of the electronic device 100 is switched can also be referred to as the first interface.
- the orientation of the buttons (including the crown 14A) relative to the electronic device 100 can be referred to as the first orientation.
- the crown 14A is on the right side of the movement 11A relative to the movement 11A.
- the first operation in response to a first operation of the user, is used to rotate the electronic device in a first rotation direction by a first angle, after the electronic device is rotated in the first rotation direction by the first angle, the key is located in a second orientation, and the first orientation is different from the second orientation.
- the first operation of the user may be an operation of rotating the electronic device 100 .
- the first rotation direction may be clockwise rotation or counterclockwise rotation.
- the first angle may be the rotation angle 2 in the embodiment shown in FIG. 10 .
- the electronic device rotates the first interface relative to the display screen by a first angle in a second rotation direction, where the second rotation direction is opposite to the first rotation direction.
- step S1303 For the specific content of step S1303, reference may be made to step S703 shown in FIG. 7 and step S1004 shown in FIG. 10 .
- S1304 The electronic device rotates the coordinate system by a first angle in a second rotation direction.
- step S1304 may refer to step S706 shown in FIG. 7 and step S1007 shown in FIG. 10 .
- S1305 The electronic device adjusts one or more touch screen events based on the first angle.
- the one or more touch screen events may include a first touch screen event (e.g., an upward slide event, a downward slide event, a left slide event, a right slide event, etc.).
- the first touch screen event includes a first slide direction and a first touch screen response.
- the first slide direction is the direction of a slide track of the first touch screen event on the display screen.
- the first slide direction is determined according to the angle between the slide track and a first reference line of the display screen.
- the first reference line may be a line between the center position of the display screen and the button, or may be other straight lines on the display screen, which is not limited in this application.
- the electronic device adjusts the first touch screen event based on the first angle, specifically including: the electronic device adjusts the first sliding direction to a second sliding direction, where the second sliding direction is a direction of the first sliding direction rotated by a first angle in a second rotation direction.
- step S704 shown in FIG. 7 and step S1005 shown in FIG. 10 .
- the electronic device after the electronic device rotates the first angle in the first rotation direction, it can also adjust the key rotation event (such as the crown rotation event in the above embodiment) acting on the key based on the first angle. Specifically, when the first angle is greater than 90° and less than or equal to 270°, the electronic device adjusts the key rotation direction to the opposite direction.
- the key rotation event such as the crown rotation event in the above embodiment
- the computer program product includes one or more computer instructions.
- the computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device.
- the computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium.
- the computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means.
- the computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated.
- the available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state drive (SSD)), etc.
- SSD solid state drive
- the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media.
- the programs can include the processes of the above-mentioned method embodiments.
- the aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
The present application discloses a mode switching method and a related apparatus. An electronic device comprises a display screen and a button, and stores a coordinate system and one or more touch screen events. The method comprises: the electronic device displaying a first interface in the display screen, the button being located in a first orientation; in response to a first operation of a user, the first operation being used for rotating the electronic device by a first angle in a first rotation direction, the electronic device rotating the first interface by the first angle relative to the display screen in a second rotation direction, the second rotation direction being opposite to the first rotation direction; the electronic device rotating the coordinate system by the first angle in the second rotation direction; and the electronic device adjusting the one or more touch screen events on the basis of the first angle. Therefore, when the electronic device rotates, the direction of display content is kept unchanged relative to the display screen, so that the user can check and operate the display content conveniently.
Description
本申请要求于2023年4月28日提交中国专利局、申请号为202310491113.5、申请名称为“一种模式切换方法及相关装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed with the China Patent Office on April 28, 2023, with application number 202310491113.5 and application name “A mode switching method and related device”, all contents of which are incorporated by reference in this application.
本申请涉及电子技术领域,尤其涉及一种模式切换方法及相关装置。The present application relates to the field of electronic technology, and in particular to a mode switching method and related devices.
随着电子技术的不断发展,可穿戴设备在日常生活中的应用越发广泛。用户可以使用可穿戴设备测量运动或健康等数据。用户也可以使用可穿戴设备播放音乐、接收消息等。可穿戴设备极大方便了用户的生活出行。With the continuous development of electronic technology, wearable devices are increasingly used in daily life. Users can use wearable devices to measure sports or health data. Users can also use wearable devices to play music, receive messages, etc. Wearable devices greatly facilitate users' daily life and travel.
当前,可穿戴设备的显示屏中显示内容的方向相对于显示屏是一个固定的方向。当用户旋转可穿戴设备的显示屏时,显示内容的方向相对于显示屏不变。这样,显示内容的方向不符合用户的浏览习惯,不便于用户对显示内容的查看和操作。Currently, the direction of the displayed content in the display screen of the wearable device is a fixed direction relative to the display screen. When the user rotates the display screen of the wearable device, the direction of the displayed content relative to the display screen remains unchanged. In this way, the direction of the displayed content does not conform to the browsing habits of the user, and it is not convenient for the user to view and operate the displayed content.
发明内容Summary of the invention
本申请提供了一种模式切换方法及相关装置,实现了在电子设备发生旋转时,显示内容的方向相对于显示屏保持不变,便于用户查看和操作。The present application provides a mode switching method and related devices, which ensure that when an electronic device is rotated, the direction of displayed content remains unchanged relative to the display screen, making it easier for users to view and operate.
第一方面,本申请提供了一种模式切换方法,应用于电子设备,电子设备包括显示屏和按键,且电子设备存储有坐标系和一个或多个触屏事件;方法包括:电子设备将第一界面显示在显示屏中,按键位于第一方位;响应于用户的第一操作,第一操作用于将电子设备以第一旋转方向旋转第一角度;在电子设备以第一旋转方向旋转第一角度之后,按键位于第二方位,第一方位与第二方位不同;电子设备将第一界面相对于显示屏以第二旋转方向旋转第一角度,第二旋转方向与第一旋转方向相反;电子设备将坐标系以第二旋转方向旋转第一角度;电子设备基于第一角度调整一个或多个触屏事件。In a first aspect, the present application provides a mode switching method, which is applied to an electronic device, wherein the electronic device includes a display screen and a button, and the electronic device stores a coordinate system and one or more touch screen events; the method includes: the electronic device displays a first interface on the display screen, and the button is located in a first position; in response to a first operation of a user, the first operation is used to rotate the electronic device by a first angle in a first rotation direction; after the electronic device is rotated by a first angle in the first rotation direction, the button is located in a second position, and the first position is different from the second position; the electronic device rotates the first interface relative to the display screen by a first angle in a second rotation direction, and the second rotation direction is opposite to the first rotation direction; the electronic device rotates the coordinate system by a first angle in the second rotation direction; and the electronic device adjusts one or more touch screen events based on the first angle.
这样,在电子设备发生旋转时,显示内容的方向相对于显示屏保持不变,触屏操作和手势操作也可以正常使用,便于用户查看和操作。In this way, when the electronic device is rotated, the direction of the displayed content remains unchanged relative to the display screen, and touch screen operations and gesture operations can also be used normally, making it easier for users to view and operate.
在一种可能的实现方式中,一个或多个触屏事件包括第一触屏事件,第一触屏事件包括第一滑动方向和第一触屏响应,第一滑动方向为第一触屏事件在显示屏上的滑动轨迹的方向,第一滑动方向是根据滑动轨迹相对于显示屏的第一参考线之间的夹角确定的;电子设备基于第一角度调整第一触屏事件,具体包括:电子设备将第一滑动方向调整为第二滑动方向,第二滑动方向为第一滑动方向以第二旋转方向旋转第一角度后的方向。In one possible implementation, one or more touch screen events include a first touch screen event, the first touch screen event includes a first sliding direction and a first touch screen response, the first sliding direction is the direction of a sliding track of the first touch screen event on the display screen, and the first sliding direction is determined according to an angle between the sliding track and a first reference line of the display screen; the electronic device adjusts the first touch screen event based on the first angle, specifically including: the electronic device adjusts the first sliding direction to a second sliding direction, and the second sliding direction is the direction of the first sliding direction after rotating the first sliding direction by a second rotation direction by a first angle.
其中,第一参考线可以是显示屏中心位置与按键之间的连线,也可以是显示屏上的其他直线。The first reference line may be a line between the center of the display screen and the button, or may be other straight lines on the display screen.
在一种可能的实现方式中,在电子设备以第一旋转方向旋转第一角度之前,方法还包括:接收用户的第二操作;响应于第二操作,开始监测电子设备的旋转角度。In a possible implementation, before the electronic device rotates by a first angle in a first rotation direction, the method further includes: receiving a second operation of a user; and starting to monitor the rotation angle of the electronic device in response to the second operation.
这样,电子设备可以监测电子设备的旋转角度。In this way, the electronic device can monitor the rotation angle of the electronic device.
在一种可能的实现方式中,第二操作为用户针对第一控件的点击操作。In a possible implementation, the second operation is a click operation of the user on the first control.
在一种可能的实现方式中,电子设备包括机芯和表带,机芯包括显示屏,表带上设置有第一壳体;方法还包括:检测到机芯与第一壳体连接,电子设备进入腕表模式。In a possible implementation, the electronic device includes a movement and a strap, the movement includes a display screen, and a first shell is disposed on the strap; the method further includes: when it is detected that the movement is connected to the first shell, the electronic device enters a watch mode.
在一种可能的实现方式中,电子设备包括机芯和表带,机芯包括显示屏,表带上设置有第一壳体;方法还包括:检测到机芯与第一壳体未连接,电子设备进入机芯模式。In a possible implementation, the electronic device includes a movement and a strap, the movement includes a display screen, and a first shell is disposed on the strap; the method further includes: when it is detected that the movement is not connected to the first shell, the electronic device enters a movement mode.
这样,电子设备可以通过判断机芯与第一壳体是否连接确定电子设备的佩戴模式。佩戴模式包括腕表
模式和机芯模式。In this way, the electronic device can determine the wearing mode of the electronic device by judging whether the movement is connected to the first housing. The wearing mode includes a watch mode and movement mode.
在一种可能的实现方式中,电子设备存储有多个作用于按键的按键旋转事件,按键旋转事件包括按键旋转方向和按键旋转响应;在电子设备以第一旋转方向旋转第一角度之后,方法还包括:当第一角度大于90°且小于等于270°时,电子设备将按键旋转方向调整为相反方向。In one possible implementation, the electronic device stores multiple key rotation events acting on a key, the key rotation event including a key rotation direction and a key rotation response; after the electronic device rotates a first angle in a first rotation direction, the method also includes: when the first angle is greater than 90° and less than or equal to 270°, the electronic device adjusts the key rotation direction to the opposite direction.
这样,在电子设备发生旋转之后,作用于按键(包括表冠)的旋转操作也可以正常使用。In this way, after the electronic device is rotated, the rotation operation acting on the buttons (including the crown) can also be used normally.
在一种可能的实现方式中,电子设备的佩戴模式为腕表模式;方法还包括:接收用户切换佩戴模式的第三操作;响应于第三操作,将电子设备的佩戴模式切换为机芯模式,且关闭光电容积脉搏波PPG测量功能。In one possible implementation, the wearing mode of the electronic device is a watch mode; the method also includes: receiving a third operation of the user switching the wearing mode; in response to the third operation, switching the wearing mode of the electronic device to a movement mode, and turning off a photoelectric volumetric pulse wave (PPG) measurement function.
这样,在机芯模式下可以关闭PPG测量功能,避免检测到不准确的数据。In this way, the PPG measurement function can be turned off in movement mode to avoid detecting inaccurate data.
在一种可能的实现方式中,在将电子设备的佩戴模式切换为机芯模式之前,方法还包括:输出模式切换提示,模式切换提示用于提示用户机芯模式下无法使用PPG测量功能。In a possible implementation, before switching the wearing mode of the electronic device to the movement mode, the method further includes: outputting a mode switching prompt, where the mode switching prompt is used to prompt the user that the PPG measurement function cannot be used in the movement mode.
在一种可能的实现方式中,电子设备的佩戴模式为机芯模式;方法还包括:接收用户使用PPG测量功能的第四操作,第四操作用于触发电子设备测量用户的第一数据;响应于第四操作,输出提示信息,提示信息用于提示用户机芯模式下无法使用PPG测量功能。In one possible implementation, the wearing mode of the electronic device is a movement mode; the method also includes: receiving a fourth operation of the user using the PPG measurement function, the fourth operation being used to trigger the electronic device to measure the user's first data; in response to the fourth operation, outputting a prompt message, the prompt message being used to prompt the user that the PPG measurement function cannot be used in the movement mode.
在一种可能的实现方式中,在输出提示信息之后,方法还包括:接收用户切换佩戴模式的第五操作;响应于第五操作,将电子设备的佩戴模式切换为腕表模式,且开启PPG测量功能;测量第一数据。In a possible implementation, after outputting the prompt information, the method further includes: receiving a fifth operation of the user switching the wearing mode; in response to the fifth operation, switching the wearing mode of the electronic device to the watch mode, and turning on the PPG measurement function; and measuring the first data.
这样,电子设备可以快速切换到腕表模式,并测量第一数据。In this way, the electronic device can quickly switch to the watch mode and measure the first data.
在一种可能的实现方式中,第一数据包括以下任一项或多项:血氧数据、血压数据、睡眠数据、能耗数据、运动数据和心率数据。In a possible implementation, the first data includes any one or more of the following: blood oxygen data, blood pressure data, sleep data, energy consumption data, exercise data, and heart rate data.
第二方面,本申请提供了一种电子设备,包括一个或多个处理器、一个或多个存储器、一个或多个显示屏以及一个或多个按键。该一个或多个存储器与一个或多个处理器耦合,一个或多个存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当一个或多个处理器执行计算机指令时,使得电子设备执行上述任一方面任一项可能的实现方式中的模式切换方法。In a second aspect, the present application provides an electronic device, including one or more processors, one or more memories, one or more display screens, and one or more buttons. The one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer program codes, and the computer program codes include computer instructions, and when the one or more processors execute the computer instructions, the electronic device executes the mode switching method in any possible implementation of any of the above aspects.
第三方面,本申请实施例提供了一种计算机存储介质,包括计算机指令,当计算机指令在电子设备上运行时,使得电子设备执行上述任一方面任一项可能的实现方式中的模式切换方法。In a third aspect, an embodiment of the present application provides a computer storage medium, including computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes a mode switching method in any possible implementation of any of the above aspects.
第四方面,本申请实施例提供了一种计算机程序产品,当计算机程序产品在计算机上运行时,使得计算机执行上述任一方面任一项可能的实现方式中的模式切换方法。In a fourth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on a computer, the computer executes the mode switching method in any possible implementation of any of the above aspects.
第二方面至第四方面的有益效果可以参考上述第一方面的有益效果。The beneficial effects of the second to fourth aspects can refer to the beneficial effects of the first aspect mentioned above.
图1A至图1B为本申请实施例提供的电子设备100的设备形态示意图;1A to 1B are schematic diagrams of the device form of an electronic device 100 provided in an embodiment of the present application;
图1C为本申请实施例提供的一种电子设备100的硬件结构示意图;FIG1C is a schematic diagram of the hardware structure of an electronic device 100 provided in an embodiment of the present application;
图1D为本申请实施例提供的一种三维空间坐标系的示意图;FIG1D is a schematic diagram of a three-dimensional space coordinate system provided in an embodiment of the present application;
图2为本申请实施例提供的一种显示内容的方向示意图;FIG2 is a schematic diagram of a direction of displaying content provided by an embodiment of the present application;
图3A至图3B为本申请实施例提供的一组电子设备100旋转前后的界面示意图;3A to 3B are schematic diagrams of interfaces of a group of electronic devices 100 before and after rotation provided by an embodiment of the present application;
图4A至图4H为本申请实施例提供的一组切换方向模式的界面示意图;4A to 4H are schematic diagrams of a set of interfaces for switching direction modes provided in an embodiment of the present application;
图5A至图5F为本申请实施例提供的一组应用场景示意图;5A to 5F are schematic diagrams of a group of application scenarios provided in an embodiment of the present application;
图6A至图6D为本申请实施例提供的一组开启微动检测的情况下切换方向模式的界面示意图;6A to 6D are schematic diagrams of a set of interfaces for switching direction modes when micro motion detection is enabled, provided in an embodiment of the present application;
图7为本申请实施例提供的一种模式切换方法的流程示意图;
FIG7 is a schematic flow chart of a mode switching method provided in an embodiment of the present application;
图8A至图8D为本申请实施例提供的一组不同方向模式下触屏事件的方向变化示意图;8A to 8D are schematic diagrams of direction changes of a touch screen event in a group of different direction modes provided by an embodiment of the present application;
图9A至图9D为本申请实施例提供的一组模式切换前后坐标系的变化示意图;9A to 9D are schematic diagrams showing changes in a set of coordinate systems before and after mode switching provided by an embodiment of the present application;
图10为本申请实施例提供的一种模式切换方法的流程示意图;FIG10 is a schematic flow chart of a mode switching method provided in an embodiment of the present application;
图11为本申请实施例提供的另一种模式切换方法的流程示意图;FIG11 is a schematic flow chart of another mode switching method provided in an embodiment of the present application;
图12为本申请实施例提供的一种电子设备100的功能模块示意图;FIG12 is a schematic diagram of functional modules of an electronic device 100 provided in an embodiment of the present application;
图13为本申请实施例提供的一种模式切换方法的流程示意图。FIG. 13 is a flow chart of a mode switching method provided in an embodiment of the present application.
下面将结合附图对本申请实施例中的技术方案进行清楚、详尽地描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;文本中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况,另外,在本申请实施例的描述中,“多个”是指两个或多于两个。The technical solutions in the embodiments of the present application will be described clearly and in detail below in conjunction with the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, "/" means or, for example, A/B can mean A or B; "and/or" in the text is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and/or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为暗示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征,在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.
本申请以下实施例中的术语“用户界面(user interface,UI)”,是应用程序或操作系统与用户之间进行交互和信息交换的介质接口,它实现信息的内部形式与用户可以接受形式之间的转换。用户界面是通过java、可扩展标记语言(extensible markup language,XML)等特定计算机语言编写的源代码,界面源代码在电子设备上经过解析,渲染,最终呈现为用户可以识别的内容。用户界面常用的表现形式是图形用户界面(graphic user interface,GUI),是指采用图形方式显示的与计算机操作相关的用户界面。它可以是在电子设备的显示屏中显示的文本、图标、按钮、菜单、选项卡、文本框、对话框、状态栏、导航栏、Widget等可视的界面元素。The term "user interface (UI)" in the following embodiments of the present application refers to a medium interface for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. The user interface is a source code written in a specific computer language such as Java and extensible markup language (XML). The interface source code is parsed and rendered on an electronic device and finally presented as content that can be recognized by the user. The commonly used form of user interface is a graphical user interface (GUI), which refers to a user interface related to computer operation displayed in a graphical manner. It can be a visual interface element such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc. displayed on the display screen of an electronic device.
下面介绍本申请实施例提供的电子设备的设备形态。The following describes the device form of the electronic device provided in the embodiments of the present application.
图1A示出了本申请实施例提供的一种电子设备100的设备形态示意图。FIG1A shows a schematic diagram of a device form of an electronic device 100 provided in an embodiment of the present application.
如图1A所示,电子设备100可以是手表100A。手表100A可以包括机芯11A,可选的,手表100A还可以包括表带12A。其中,机芯11A可以包括显示屏13A,在一些实施例中,机芯11A上还可以包括表冠14A,表冠14A可以设置在机芯11A的右侧,也可以设置在机芯11A的其他位置处,本申请在此不做限定。机芯11A可以通过显示屏13A显示表盘、应用界面等内容。表冠14A可用于调整显示屏13A中显示的内容,例如调整显示屏13A中显示内容的显示尺寸,调整音量大小等。表冠14A的位置还可用于确定的显示屏13A中显示内容的方向,显示内容的方向的具体定义可以参考下述图2所示实施例中的相关内容,此处暂不详述。在一些实施例中,表带12A还可以设置有包括壳体(也称作第一壳体),该壳体可以用于固定机芯11A,使得机芯11A与表带12A组合成手表100A。As shown in FIG1A , the electronic device 100 may be a watch 100A. The watch 100A may include a movement 11A, and optionally, the watch 100A may further include a strap 12A. The movement 11A may include a display screen 13A. In some embodiments, the movement 11A may further include a crown 14A. The crown 14A may be disposed on the right side of the movement 11A, or may be disposed at other positions of the movement 11A, and the present application does not limit this. The movement 11A may display contents such as a dial and an application interface through the display screen 13A. The crown 14A may be used to adjust the contents displayed on the display screen 13A, such as adjusting the display size of the contents displayed on the display screen 13A, adjusting the volume, etc. The position of the crown 14A may also be used to determine the direction of the contents displayed on the display screen 13A. The specific definition of the direction of the displayed contents may refer to the relevant contents in the embodiment shown in FIG2 below, and will not be described in detail here. In some embodiments, the strap 12A may also be provided with a case (also referred to as a first case), which may be used to fix the movement 11A so that the movement 11A and the strap 12A are combined into a watch 100A.
需要说明的是,手表100A中,机芯11A与表带12A是可拆卸的。在本申请实施例中,机芯11A可以与表带12A组成可穿戴设备,便于用户佩戴在手腕等位置。在另一些实施例中,手表100A也可以只包括机芯11A,这种情况下,手表100A作为配饰或其他用途使用。例如,可以将手表100A作为项链、闹钟、秒表、怀表、安装在背包上的饰品等等,具体内容可以参考下述实施例中的相关内容,此处暂不详述。It should be noted that in the watch 100A, the movement 11A and the strap 12A are detachable. In the embodiment of the present application, the movement 11A can form a wearable device with the strap 12A, which is convenient for the user to wear on the wrist or other positions. In other embodiments, the watch 100A may also include only the movement 11A. In this case, the watch 100A is used as an accessory or for other purposes. For example, the watch 100A can be used as a necklace, an alarm clock, a stopwatch, a pocket watch, an ornament installed on a backpack, etc. The specific content can refer to the relevant content in the following embodiments, which will not be described in detail here.
图1B示出了本申请实施例提供的另一种电子设备100的设备形态示意图。FIG1B shows a schematic diagram of the device form of another electronic device 100 provided in an embodiment of the present application.
如图1B所示,电子设备100可以是手环100B。手环100B可以包括机芯11B,可选的,手环100B还可以包括表带12B。其中,机芯11B可以包括显示屏13B,在一些实施例中,机芯11B上还可以包括按键15B,按键15B也可用于调整显示屏13B中的显示内容,例如控件显示屏13B熄屏或亮屏,调整音量大小等。按键15B的位置也可以用于确定显示屏13A中显示内容的方向。此外,图1B所示的手环100B中,机芯11B与表带12B也是可拆卸的,机芯11B可以与表带12B组成可穿戴设备,便于用户佩戴在手腕等位置,机芯11B也可以作为配饰或其他用途使用。As shown in FIG1B , the electronic device 100 may be a bracelet 100B. The bracelet 100B may include a movement 11B, and optionally, the bracelet 100B may also include a strap 12B. Among them, the movement 11B may include a display screen 13B. In some embodiments, the movement 11B may also include a button 15B, and the button 15B may also be used to adjust the display content in the display screen 13B, such as turning off or on the display screen 13B, adjusting the volume, etc. The position of the button 15B may also be used to determine the direction of the content displayed on the display screen 13A. In addition, in the bracelet 100B shown in FIG1B , the movement 11B and the strap 12B are also detachable, and the movement 11B can be combined with the strap 12B to form a wearable device, which is convenient for users to wear on their wrists, etc. The movement 11B can also be used as an accessory or for other purposes.
可以理解的是,图1A和图1B所示实施例只是两种示例,在本申请实施例中,电子设备100还可以是其他形态的可穿戴设备,机芯的形状也可以是圆形、矩形、正方形、六边形等形状中的任一形状,表冠(或按键)还可以替换为操作杆、操作球等其他器件,而且电子设备100也可以包括多个表冠、按键或其他对
应器件,本申请在此均不做限定。本申请实施例中,上述表冠、按键、操作杆等器件可以统称为按键。It is understandable that the embodiments shown in FIG. 1A and FIG. 1B are only two examples. In the embodiment of the present application, the electronic device 100 may also be a wearable device in other forms, the shape of the movement may also be any shape such as a circle, a rectangle, a square, a hexagon, etc., the crown (or button) may also be replaced by other devices such as an operating rod and an operating ball, and the electronic device 100 may also include multiple crowns, buttons or other buttons. In the embodiment of the present application, the above-mentioned crown, button, operating rod and other components can be collectively referred to as buttons.
图1C示出了本申请实施例提供的一种电子设备100的硬件结构示意图。FIG1C shows a schematic diagram of the hardware structure of an electronic device 100 provided in an embodiment of the present application.
电子设备100可以是手表、手环等可穿戴设备,本申请实施例对该电子设备的具体类型不作特殊限制。The electronic device 100 may be a wearable device such as a watch or a bracelet, and the embodiment of the present application does not impose any particular limitation on the specific type of the electronic device.
如图1C所示,电子设备100可以包括:处理器101,存储器102,显示屏103,通信模块104,电源模块105,输入/输出接口106,传感器模块107、按键109,可选的,电子设备100还可以包括音频模块108。其中:As shown in FIG1C , the electronic device 100 may include: a processor 101, a memory 102, a display screen 103, a communication module 104, a power module 105, an input/output interface 106, a sensor module 107, a button 109, and optionally, the electronic device 100 may also include an audio module 108. Among them:
处理器101可以包括一个或多个处理单元,例如:处理器101可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The processor 101 may include one or more processing units, for example, the processor 101 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Among them, different processing units can be independent devices or integrated in one or more processors. The controller can generate an operation control signal according to the instruction opcode and the timing signal to complete the control of fetching and executing instructions.
处理器101中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器101中的存储器为高速缓冲存储器。该存储器可以保存处理器101刚用过或循环使用的指令或数据。如果处理器101需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器101的等待时间,因而提高了系统的效率。The processor 101 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 101 is a cache memory. The memory may store instructions or data that the processor 101 has just used or cyclically used. If the processor 101 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 101, and thus improves the efficiency of the system.
在一些实施例中,处理器101可以用于解析传感器模块107采集到的信号,或是用于解析其他模块(例如音频模块108等)采集到的信号,等等。处理器101可以用于根据解析结果进行相应的处理操作,如基于采集的信号判断电子设备100的旋转角度,或是基于采集的信号判断电子设备100的佩戴模式,等等。In some embodiments, the processor 101 may be used to analyze the signals collected by the sensor module 107, or to analyze the signals collected by other modules (such as the audio module 108, etc.), etc. The processor 101 may be used to perform corresponding processing operations according to the analysis results, such as determining the rotation angle of the electronic device 100 based on the collected signals, or determining the wearing mode of the electronic device 100 based on the collected signals, etc.
存储器102可以包括一个或多个随机存取存储器(random access memory,RAM)和一个或多个非易失性存储器(non-volatile memory,NVM)。随机存取存储器可以由处理器101直接进行读写,可以用于存储操作系统或其他正在运行中的程序的可执行程序(例如机器指令),还可以用于存储用户及应用程序的数据等。非易失性存储器也可以存储可执行程序和存储用户及应用程序的数据等,可以提前加载到随机存取存储器中,用于处理器101直接进行读写。存储器102与处理器101耦合,用于存储各种软件程序和/或多组指令。在一些实施例中,存储器102还可以存储通信程序,该通信程序可用于与一个或多个服务器,或其他设备进行通信。The memory 102 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM). The random access memory can be directly read and written by the processor 101, and can be used to store executable programs (such as machine instructions) of the operating system or other running programs, and can also be used to store user and application data, etc. The non-volatile memory can also store executable programs and store user and application data, etc., and can be loaded into the random access memory in advance for direct reading and writing by the processor 101. The memory 102 is coupled to the processor 101 and is used to store various software programs and/or multiple sets of instructions. In some embodiments, the memory 102 can also store a communication program, which can be used to communicate with one or more servers or other devices.
显示屏103可用于显示图像,视频等。显示屏103包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),显示面板还可以采用有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等制造。在一些实施例中,电子设备100可以包括1个或N个显示屏103,N为大于1的正整数。在一些实施例中,显示屏103可以包括上述图1A所示的显示屏13A。在另一些实施例中,显示屏103可以包括上述图1B所示的显示屏13B。The display screen 103 can be used to display images, videos, etc. The display screen 103 includes a display panel. The display panel can be a liquid crystal display (LCD), and the display panel can also be made of an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diodes (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 103, where N is a positive integer greater than 1. In some embodiments, the display screen 103 may include the display screen 13A shown in FIG. 1A above. In other embodiments, the display screen 103 may include the display screen 13B shown in FIG. 1B above.
电子设备100还可以包括通信模块104。通信模块104可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)中的任一项或多项无线通信的解决方案。通信模块104可以是集成至少一个通信处理模块的一个或多个器件。在一些实施例中,通信模块104可以包括有蓝牙芯片。电子设备100可以通过该蓝牙芯片与其他电子设备的蓝牙芯片之间进行配对并建立蓝牙连接,以通过该蓝牙连接实现电子设备100和其他设备之间的无线通信和业务处理。通常,蓝牙芯片可以支持BR/EDR蓝牙和BLE,例如可以收/发寻呼(page)信息,收/发BLE广播消息等。在一些实施例中,通信模块104还可以包括天线,通信模块104经由天线接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器101。通信模块104还可以从处理器101接收待发送的信号,对其进行调频,放大,经天线转为电磁波辐射出去。The electronic device 100 may further include a communication module 104. The communication module 104 may provide a solution for any one or more wireless communications including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) applied to the electronic device 100. The communication module 104 may be one or more devices integrating at least one communication processing module. In some embodiments, the communication module 104 may include a Bluetooth chip. The electronic device 100 may be paired with the Bluetooth chip of other electronic devices through the Bluetooth chip and establish a Bluetooth connection to realize wireless communication and business processing between the electronic device 100 and other devices through the Bluetooth connection. Generally, the Bluetooth chip may support BR/EDR Bluetooth and BLE, for example, it may receive/send paging information, receive/send BLE broadcast messages, etc. In some embodiments, the communication module 104 may further include an antenna, and the communication module 104 receives electromagnetic waves via the antenna, modulates the frequency of the electromagnetic wave signal, performs filtering processing, and sends the processed signal to the processor 101. The communication module 104 may also receive a signal to be sent from the processor 101, modulate the frequency of the signal, amplify the signal, and convert it into an electromagnetic wave for radiation through the antenna.
电源模块105,可以用于提供电子设备100的系统电源,为电子设备100各个模块供电;支持电子设备100接收充电输入等。电源模块105可以包括电源管理单元(power management unit,PMU)和电池。
其中,电源管理单元可以接收外部的充电输入;将充电电路输入的电信号提供给电池充电,还可以将电池提供的电信号提供给音频模块108、通信模块104等其他模块,以防止电池过充、过放、短路或过流等。在一些实施例中,电源管理单元还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。The power module 105 can be used to provide system power for the electronic device 100, power various modules of the electronic device 100, and support the electronic device 100 to receive charging input, etc. The power module 105 can include a power management unit (PMU) and a battery. The power management unit can receive external charging input, provide the electrical signal input by the charging circuit to the battery for charging, and can also provide the electrical signal provided by the battery to other modules such as the audio module 108 and the communication module 104 to prevent the battery from being overcharged, over-discharged, short-circuited or over-current, etc. In some embodiments, the power management unit can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc.
多个输入/输出接口106,可以用于提供电子设备100进行充电或通信的有线连接。在一些实施例中,该输入/输出接口可以为USB接口。The plurality of input/output interfaces 106 may be used to provide wired connections for charging or communication of the electronic device 100. In some embodiments, the input/output interface may be a USB interface.
传感器模块107可以包括一个或多个不同的传感器。例如,传感器模块107可以包括触摸传感器、光电传感器和惯性测量单元(inertialmeasurementunit,IMU)。IMU可以包括一个或多个传感器,例如加速度计、陀螺仪和磁力计等等。在一些实施例中,传感器模块107还可以包括方向传感器、重力传感器等其他传感器。传感器模块107可用于采集电子设备100的动作信号。例如,触摸传感器可以用于检测用户的单击、双击、多次点击、长按、重压等触摸操作。又例如,加速度计可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,计步器等应用。又例如,陀螺仪可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪确定电子设备100围绕三个轴的角速度,等等。The sensor module 107 may include one or more different sensors. For example, the sensor module 107 may include a touch sensor, a photoelectric sensor, and an inertial measurement unit (IMU). The IMU may include one or more sensors, such as an accelerometer, a gyroscope, and a magnetometer. In some embodiments, the sensor module 107 may also include other sensors such as a direction sensor and a gravity sensor. The sensor module 107 may be used to collect motion signals of the electronic device 100. For example, the touch sensor may be used to detect a user's single click, double click, multiple clicks, long press, heavy pressure, and other touch operations. For another example, an accelerometer may detect the magnitude of the acceleration of the electronic device 100 in all directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity may be detected. It may also be used to identify the posture of the electronic device, pedometer, and other applications. For another example, a gyroscope may be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes may be determined by a gyroscope, and so on.
可选的,电子设备100还可以包括音频模块108。音频模块108可以用于管理音频数据,实现电子设备100输入和输出音频信号。音频模块108可以包括用于输出音频信号的扬声器(或称听筒、受话器)组件,麦克风(或称话筒,传声器),与麦克风相配合的麦克收音电路等。扬声器可以用于将音频电信号转换成声音信号并播放。麦克风可以用于将声音信号转换为音频电信号。在一些实施例中,音频模块108可用于输出提示信息,等。Optionally, the electronic device 100 may further include an audio module 108. The audio module 108 may be used to manage audio data and enable the electronic device 100 to input and output audio signals. The audio module 108 may include a speaker (or earpiece, receiver) component for outputting audio signals, a microphone (or microphone, microphone), a microphone receiving circuit matched with the microphone, etc. The speaker may be used to convert an audio electrical signal into a sound signal and play it. The microphone may be used to convert a sound signal into an audio electrical signal. In some embodiments, the audio module 108 may be used to output prompt information, etc.
按键109包括开机键,音量键等。按键109可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。在一些实施例中,按键109可以包括上述图1B所示实施例中的按键15B。在另一些实施例中,按键109可以包括上述图1A所示实施例中的表冠14A。在一些实施例中,按键109还可以包括操作杆等器件。The button 109 includes a power button, a volume button, etc. The button 109 may be a mechanical button. It may also be a touch button. The electronic device 100 may receive a button input and generate a key signal input related to the user settings and function control of the electronic device 100. In some embodiments, the button 109 may include the button 15B in the embodiment shown in FIG. 1B above. In other embodiments, the button 109 may include the crown 14A in the embodiment shown in FIG. 1A above. In some embodiments, the button 109 may also include a device such as an operating rod.
可以理解的是,图1C所示电子设备100仅是一个示例,并且电子设备100可以具有比图1C中所示的更多的或者更少的部件,可以组合两个或多个的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。It is understood that the electronic device 100 shown in FIG. 1C is only an example, and the electronic device 100 may have more or fewer components than those shown in FIG. 1C, may combine two or more components, or may have different component configurations. The various components shown in the figure may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits.
下文以电子设备100是手表100A为例进行阐述说明。The following description will be made by taking the electronic device 100 as a watch 100A as an example.
下面介绍本申请实施例提供的一种坐标系的示意图。The following is a schematic diagram of a coordinate system provided in an embodiment of the present application.
图1D示出了本申请实施例提供的一种三维空间坐标系XYZ的示意图。FIG1D shows a schematic diagram of a three-dimensional space coordinate system XYZ provided in an embodiment of the present application.
如图1D所示,电子设备100所处空间可以构建一个三维空间坐标系,该三维坐标系可以包括X轴、Y轴和Z轴,且该三个坐标轴中的任意两个坐标轴互相垂直。其中,坐标系的原点O是显示屏13A的中心位置,X轴与Y轴构成的二维平面可以是电子设备100的显示屏(例如显示屏13A或显示屏13B等)所处的二维平面。需要说明的是,在本申请实施例中,三维空间坐标系XYZ是一个恒定的坐标系,即无论电子设备100是否发生旋转,该三维空间坐标系XYZ始终保持不变。As shown in FIG1D , the space where the electronic device 100 is located can construct a three-dimensional space coordinate system, and the three-dimensional coordinate system may include an X-axis, a Y-axis, and a Z-axis, and any two of the three coordinate axes are perpendicular to each other. Among them, the origin O of the coordinate system is the center position of the display screen 13A, and the two-dimensional plane formed by the X-axis and the Y-axis may be the two-dimensional plane where the display screen of the electronic device 100 (such as the display screen 13A or the display screen 13B, etc.) is located. It should be noted that in the embodiment of the present application, the three-dimensional space coordinate system XYZ is a constant coordinate system, that is, regardless of whether the electronic device 100 rotates, the three-dimensional space coordinate system XYZ remains unchanged.
需要说明的是,在本申请实施例中,电子设备100的旋转可以包括以下两种情况:It should be noted that, in the embodiment of the present application, the rotation of the electronic device 100 may include the following two situations:
情况一:电子设备100在X轴和Y轴构成的二维平面上做顺时针旋转(或逆时针旋转),即旋转前后电子设备100相对于X轴和Y轴存在旋转角度,相对于Z轴不存在旋转角度。在这种情况下,本申请以下实施例中电子设备100的旋转角度是指旋转前后电子设备100相对于图1D所示的X轴(或Y轴)旋转的角度。Case 1: The electronic device 100 rotates clockwise (or counterclockwise) on the two-dimensional plane formed by the X-axis and the Y-axis, that is, before and after the rotation, the electronic device 100 has a rotation angle relative to the X-axis and the Y-axis, but does not have a rotation angle relative to the Z-axis. In this case, the rotation angle of the electronic device 100 in the following embodiments of the present application refers to the angle of rotation of the electronic device 100 relative to the X-axis (or Y-axis) shown in FIG. 1D before and after the rotation.
情况二:电子设备100在图1D所示的三维空间坐标系中旋转,即电子设备100相对于任一个坐标轴都存在旋转角度。这种情况下,本申请以下实施例中电子设备100的旋转角度是指旋转前后电子设备100相对于图1D所示的X轴(或Y轴)旋转的角度。Case 2: The electronic device 100 rotates in the three-dimensional space coordinate system shown in FIG1D, that is, the electronic device 100 has a rotation angle relative to any coordinate axis. In this case, the rotation angle of the electronic device 100 in the following embodiments of the present application refers to the angle of rotation of the electronic device 100 relative to the X-axis (or Y-axis) shown in FIG1D before and after the rotation.
可以理解的是,图1D所示实施例只是以上述图1A所示的机芯11A为例示例性说明电子设备100的旋转方式,在本申请实施例中,电子设备100的设备形态也可以是上述图1B所示的手环100B、机芯11B或是其他形态的设备,本申请在此不做限定。It can be understood that the embodiment shown in Figure 1D is only an example of the rotation method of the electronic device 100 using the movement 11A shown in Figure 1A above as an example. In the embodiment of the present application, the device form of the electronic device 100 can also be the bracelet 100B, movement 11B or other forms of devices shown in Figure 1B above, and the present application does not limit this.
需要说明的是,本申请上述实施例以及以下实施例中涉及到电子设备100(或机芯11A、机芯11B等)旋转的内容都可以参考此处所述的两种情况,以下实施例不再赘述。
It should be noted that the contents related to the rotation of the electronic device 100 (or movement 11A, movement 11B, etc.) in the above embodiments and the following embodiments of the present application can refer to the two situations described here, and will not be repeated in the following embodiments.
下面介绍本申请实施例中显示内容的方向。The direction of displaying content in the embodiments of the present application is introduced below.
以上述图1A所示的机芯11A为例,图2示出了本申请实施例提供的一种显示屏13A中显示内容的方向示意图。Taking the movement 11A shown in FIG. 1A as an example, FIG. 2 shows a schematic diagram of the direction of display content in a display screen 13A provided in an embodiment of the present application.
如图2所示,机芯11A的显示屏13A中显示有界面200。界面200位于二维坐标平面XOY平面中,XOY平面为上述图1D所示坐标系中X轴、Y轴以及原点O构建的二维坐标平面。表冠14A相对于机芯11A位于X轴正向。在图2所示实施例中,界面200的显示方向为正向显示,在本申请实施例中,正向显示为界面元素横向的布局为从X轴负向到X轴正向,例如界面元素“08:00”,纵向的布局为从Y轴正向到Y轴负向。此时,用户可以方便地查看界面200或者对界面200中的界面元素进行操作。As shown in FIG2 , an interface 200 is displayed in the display screen 13A of the movement 11A. The interface 200 is located in the XOY plane of the two-dimensional coordinate plane, and the XOY plane is a two-dimensional coordinate plane constructed by the X-axis, the Y-axis and the origin O in the coordinate system shown in FIG1D above. The crown 14A is located in the positive direction of the X-axis relative to the movement 11A. In the embodiment shown in FIG2 , the display direction of the interface 200 is a positive display. In the embodiment of the present application, the positive display is that the horizontal layout of the interface elements is from the negative direction of the X-axis to the positive direction of the X-axis, such as the interface element "08:00", and the vertical layout is from the positive direction of the Y-axis to the negative direction of the Y-axis. At this time, the user can easily view the interface 200 or operate the interface elements in the interface 200.
在本申请实施例中,反向显示可以为,将正向显示的显示内容旋转180°(或180°±α°,α可以是5、10或30等)后显示,此时,显示内容呈倒立显示。在反向显示时,界面元素横向的布局是从X轴正向到X轴负向,纵向的布局为从Y轴负向到Y轴正向。In the embodiment of the present application, the reverse display may be to rotate the display content displayed in the forward direction by 180° (or 180°±α°, α may be 5, 10 or 30, etc.) and then display it. At this time, the display content is displayed upside down. When the reverse display is performed, the horizontal layout of the interface elements is from the positive direction of the X axis to the negative direction of the X axis, and the vertical layout is from the negative direction of the Y axis to the positive direction of the Y axis.
在本申请实施例中,左向显示可以为,将正向显示的显示内容顺时针旋转270°(或270°±α°)后显示,或是将正向显示的显示内容逆时针旋转90°(或90°±α°)后显示。在左向显示时,界面元素横向的布局是从Y轴负向到Y轴正向,纵向的布局为从X轴负向到X轴正向。In the embodiment of the present application, the left-hand display may be displayed by rotating the display content of the forward display 270° (or 270°±α°) clockwise, or by rotating the display content of the forward display 90° (or 90°±α°) counterclockwise. When the left-hand display is performed, the horizontal layout of the interface elements is from the negative direction of the Y axis to the positive direction of the Y axis, and the vertical layout is from the negative direction of the X axis to the positive direction of the X axis.
在本申请实施例中,右向显示可以为,将正向显示的显示内容顺时针旋转90°(或90°±α°,α可以是5、10或30等)后显示,或是将正向显示的显示内容逆时针旋转270°(或270°±α°)后显示。在右向显示时,界面元素横向的布局是从Y轴正向到Y轴负向,纵向的布局为从X轴正向到X轴负向。In the embodiment of the present application, the right-hand display may be displayed by rotating the display content of the forward display clockwise by 90° (or 90°±α°, α may be 5, 10 or 30, etc.), or by rotating the display content of the forward display counterclockwise by 270° (or 270°±α°). When the right-hand display is performed, the horizontal layout of the interface elements is from the positive Y axis to the negative Y axis, and the vertical layout is from the positive X axis to the negative X axis.
下面以图1A所示的手表100A为例介绍以下多种方向模式:表冠在右模式、表冠在左模式、表冠在上模式、表冠在下模式、表冠在左下模式、表冠在右下模式、表冠在左上模式和表冠在右上模式,等。The following uses the watch 100A shown in Figure 1A as an example to introduce the following various direction modes: crown on right mode, crown on left mode, crown on top mode, crown on bottom mode, crown on lower left mode, crown on lower right mode, crown on upper left mode and crown on upper right mode, etc.
表冠在右模式:表冠在右模式也称作表冠在右。在表冠在右模式下,当表冠14A处于机芯11A的右侧(即表冠14A相对于机芯11A的方向为X轴正向)时,显示屏13A中的显示内容为正向显示。当表冠14A处于机芯11A的其他位置时,显示内容不是正向显示。Crown in right mode: Crown in right mode is also called crown in right. In crown in right mode, when crown 14A is on the right side of movement 11A (i.e., the direction of crown 14A relative to movement 11A is the positive direction of X axis), the display content in display screen 13A is displayed in the positive direction. When crown 14A is in other positions of movement 11A, the display content is not displayed in the positive direction.
表冠在左模式:表冠在左模式也称作表冠在左。在表冠在左模式下,当表冠14A处于机芯11A的左侧(即表冠14A相对于机芯11A的方向为X轴负向)时,显示屏13A中的显示内容为正向显示。当表冠14A处于机芯11A的其他位置时,显示内容不是正向显示。Crown-left mode: Crown-left mode is also called crown-left. In crown-left mode, when crown 14A is on the left side of movement 11A (i.e., the direction of crown 14A relative to movement 11A is the negative direction of X axis), the display content in display screen 13A is positive display. When crown 14A is in other positions of movement 11A, the display content is not positive display.
表冠在上模式:表冠在上模式也称作表冠在上。在表冠在上模式下,当表冠14A处于机芯11A的上侧(即表冠14A相对于机芯11A的方向为Y轴正向)时,显示屏13A中的显示内容为正向显示。当表冠14A处于机芯11A的其他位置时,显示内容不是正向显示。Crown-up mode: Crown-up mode is also called crown-up. In crown-up mode, when the crown 14A is on the upper side of the movement 11A (i.e., the direction of the crown 14A relative to the movement 11A is the positive direction of the Y axis), the display content on the display screen 13A is displayed in the positive direction. When the crown 14A is in other positions of the movement 11A, the display content is not displayed in the positive direction.
表冠在下模式:表冠在下模式也称作表冠在下。在表冠在下模式下,当表冠14A处于机芯11A的下侧(即表冠14A相对于机芯11A的方向为Y轴负向)时,显示屏13A中的显示内容为正向显示。当表冠14A处于机芯11A的其他位置时,显示内容不是正向显示。Crown down mode: Crown down mode is also called crown down. In crown down mode, when the crown 14A is at the lower side of the movement 11A (i.e., the direction of the crown 14A relative to the movement 11A is the negative direction of the Y axis), the display content on the display screen 13A is positive display. When the crown 14A is at other positions of the movement 11A, the display content is not positive display.
表冠在左下模式:表冠在左下模式也称作表冠在左下。在表冠在左下模式下,当表冠14A处于机芯11A的左下侧时,显示屏13A中的显示内容为正向显示。当表冠14A处于机芯11A的其他位置时,显示内容不是正向显示。其中,表冠14A处于机芯11A的左下侧,可以是指表冠14A相对于机芯11A的方向与Y轴正向的夹角约为225°(例如,220°、228°等)。Crown in lower left mode: Crown in lower left mode is also called crown in lower left. In crown in lower left mode, when crown 14A is at the lower left side of movement 11A, the display content in display screen 13A is displayed in the forward direction. When crown 14A is at other positions of movement 11A, the display content is not displayed in the forward direction. Among them, crown 14A is at the lower left side of movement 11A, which may mean that the angle between the direction of crown 14A relative to movement 11A and the positive direction of Y axis is about 225° (for example, 220°, 228°, etc.).
表冠在左上模式:表冠在左上模式也称作表冠在左上。在表冠在左上模式下,当表冠14A处于机芯11A的左上侧时,显示屏13A中的显示内容为正向显示。当表冠14A处于机芯11A的其他位置时,显示内容不是正向显示。其中,表冠14A处于机芯11A的左上侧,可以是指表冠14A相对于机芯11A的方向与Y轴正向的夹角约为315°(例如,311°、319°等)。Crown in upper left mode: Crown in upper left mode is also called crown in upper left. In crown in upper left mode, when crown 14A is at the upper left side of movement 11A, the display content in display screen 13A is displayed in the forward direction. When crown 14A is at other positions of movement 11A, the display content is not displayed in the forward direction. Among them, crown 14A is at the upper left side of movement 11A, which may mean that the angle between the direction of crown 14A relative to movement 11A and the positive direction of Y axis is about 315° (for example, 311°, 319°, etc.).
表冠在右下模式:表冠在右上模式也称作表冠在右上。在表冠在右上模式下,当表冠14A处于机芯11A的右上侧时,显示屏13A中的显示内容为正向显示。当表冠14A处于机芯11A的其他位置时,显示内容不是正向显示。其中,表冠14A处于机芯11A的右上侧,可以是指表冠14A相对于机芯11A的方向与Y轴正向的夹角约为45°(例如,41°、47°等)。Crown in lower right mode: Crown in upper right mode is also called crown in upper right. In crown in upper right mode, when crown 14A is at the upper right side of movement 11A, the display content in display screen 13A is displayed in the forward direction. When crown 14A is at other positions of movement 11A, the display content is not displayed in the forward direction. Among them, crown 14A is at the upper right side of movement 11A, which may mean that the angle between the direction of crown 14A relative to movement 11A and the positive direction of Y axis is about 45° (for example, 41°, 47°, etc.).
表冠在右上模式:表冠在右下模式也称作表冠在右下。在表冠在右下模式下,当表冠14A处于机芯11A的右下侧时,显示屏13A中的显示内容为正向显示。当表冠14A处于机芯11A的其他位置时,显示内容不是正向显示。其中,表冠14A处于机芯11A的右下侧,可以是指表冠14A相对于机芯11A的方向
与Y轴正向的夹角约为135°(例如,130°、138°等)。Crown in upper right mode: Crown in lower right mode is also called crown in lower right. In crown in lower right mode, when crown 14A is at the lower right side of movement 11A, the display content in display screen 13A is displayed in the forward direction. When crown 14A is at other positions of movement 11A, the display content is not displayed in the forward direction. Among them, crown 14A is at the lower right side of movement 11A, which can refer to the direction of crown 14A relative to movement 11A. The angle with the positive direction of the Y axis is approximately 135° (eg, 130°, 138°, etc.).
可以理解的是,此处的多种方向模式只是几种示例,在本申请实施例中,电子设备100还可以包括比上述实施例更多或更少的方向模式,或是包括与上述实施例不同的方向模式,本申请在此不做限定。It is understandable that the various directional modes here are just a few examples. In the embodiments of the present application, the electronic device 100 may also include more or fewer directional modes than the above embodiments, or include directional modes different from the above embodiments, and the present application does not limit this.
此外,需要说明的是,此处实施例中的多种方向模式也是以上述图1A所示手表100A为示例进行说明的,在本申请实施例中,表冠14A也可以替换为按键15B或其他器件,本申请在此不做限定。本申请实施例是以手表100A为例对多种方向模式进行命名,可以理解的是,本申请实施例对多种方向模式的名称不作限定。In addition, it should be noted that the various directional modes in the embodiment here are also described by taking the watch 100A shown in FIG. 1A as an example. In the embodiment of the present application, the crown 14A can also be replaced by a button 15B or other devices, and the present application does not limit this. The embodiment of the present application names the various directional modes by taking the watch 100A as an example. It is understandable that the embodiment of the present application does not limit the names of the various directional modes.
在现有技术条件下,显示屏13A中显示有正向显示的显示内容,若机芯11A发生旋转,由于显示内容的方向相对于显示屏13A是固定的,则在旋转之后,显示屏13A中的显示内容不再是正向显示。Under existing technical conditions, the display screen 13A displays the display content in the forward direction. If the movement 11A rotates, since the direction of the display content is fixed relative to the display screen 13A, after the rotation, the display content in the display screen 13A is no longer displayed in the forward direction.
示例性的,图3A至图3B示出了一组电子设备100旋转前后的界面示意图。需要说明的是,在下图3A至图3B所示实施例中,电子设备100包括图1A所示的机芯11A,且表冠14A设置在机芯11A的右侧,即当表冠14A位于机芯11A右侧时显示屏13A中的显示内容为正向显示。Exemplarily, FIG3A and FIG3B show a set of interface diagrams of the electronic device 100 before and after rotation. It should be noted that in the embodiment shown in FIG3A and FIG3B below, the electronic device 100 includes the movement 11A shown in FIG1A, and the crown 14A is arranged on the right side of the movement 11A, that is, when the crown 14A is located on the right side of the movement 11A, the display content on the display screen 13A is displayed in the forward direction.
如图3A所示,表冠14A位于机芯11A的右侧,机芯11A上显示有界面200,且界面200为正向显示。此时,机芯11A的旋转角度为0°。As shown in Fig. 3A, the crown 14A is located on the right side of the movement 11A, and the movement 11A displays the interface 200, and the interface 200 is displayed in the forward direction. At this time, the rotation angle of the movement 11A is 0°.
在将图3A所示的机芯11A以顺时针方向旋转180°之后,如图3B所示,表冠14A位于机芯11A的左侧,机芯11A的旋转角度为180°。由于机芯11A与界面200的相对位置关系不变,在机芯11A旋转之后,界面200不是正向显示,而是反向显示。After the movement 11A shown in FIG3A is rotated 180° clockwise, as shown in FIG3B , the crown 14A is located on the left side of the movement 11A, and the rotation angle of the movement 11A is 180°. Since the relative positional relationship between the movement 11A and the interface 200 remains unchanged, after the movement 11A rotates, the interface 200 is not displayed in the forward direction, but in the reverse direction.
由上述图3A至图3B所示实施例可知,在现有技术条件下,若对机芯11A进行旋转,则显示屏13A中的显示内容也会保持与显示屏13A的相对位置,从而将显示内容的方向从正方向变为其他方向,不便于用户正常查看和操作显示内容。当用户佩戴电子设备100或是将电子设备100作为配饰使用时,会出现电子设备100的显示内容不是正向显示的情况,用户不方便查看和操作。这样,用户体验差。As can be seen from the embodiments shown in FIG. 3A to FIG. 3B above, under the existing technical conditions, if the movement 11A is rotated, the display content in the display screen 13A will also maintain a relative position with the display screen 13A, thereby changing the direction of the display content from the positive direction to other directions, which is inconvenient for the user to normally view and operate the display content. When the user wears the electronic device 100 or uses the electronic device 100 as an accessory, the display content of the electronic device 100 may not be displayed in the positive direction, which is inconvenient for the user to view and operate. In this way, the user experience is poor.
本申请实施例提供了一种模式切换方法。应用于电子设备,电子设备包括显示屏和按键,且电子设备存储有坐标系和一个或多个触屏事件;该方法包括:电子设备将第一界面显示在显示屏中,按键位于第一方位;响应于用户的第一操作,第一操作用于将电子设备以第一旋转方向旋转第一角度;在电子设备以第一旋转方向旋转第一角度之后,按键位于第二方位,第一方位与第二方位不同;电子设备将第一界面相对于显示屏以第二旋转方向旋转第一角度,第二旋转方向与第一旋转方向相反;电子设备将坐标系以第二旋转方向旋转第一角度;电子设备基于第一角度调整一个或多个触屏事件。The embodiment of the present application provides a mode switching method. Applied to an electronic device, the electronic device includes a display screen and a button, and the electronic device stores a coordinate system and one or more touch screen events; the method includes: the electronic device displays a first interface on the display screen, and the button is located in a first orientation; in response to a first operation of a user, the first operation is used to rotate the electronic device by a first angle in a first rotation direction; after the electronic device rotates by a first angle in the first rotation direction, the button is located in a second orientation, and the first orientation is different from the second orientation; the electronic device rotates the first interface relative to the display screen by a first angle in a second rotation direction, and the second rotation direction is opposite to the first rotation direction; the electronic device rotates the coordinate system by a first angle in the second rotation direction; the electronic device adjusts one or more touch screen events based on the first angle.
这样,在电子设备旋转任意角度时,显示内容的方向相对于显示屏保持不变,触屏操作和手势操作也可以正常使用,便于用户查看和操作。该方法不仅可以适用于用户手腕正向或反向佩戴电子设备100的场景,还可以适用于电子设备100作为闹钟、怀表、项链等配饰佩戴的场景。In this way, when the electronic device is rotated at any angle, the direction of the displayed content remains unchanged relative to the display screen, and touch screen operations and gesture operations can also be used normally, which is convenient for users to view and operate. This method can be applied not only to scenarios where the user wears the electronic device 100 on the wrist in the forward or reverse direction, but also to scenarios where the electronic device 100 is worn as an accessory such as an alarm clock, pocket watch, or necklace.
在一些应用场景中,电子设备100显示有佩戴模式界面,佩戴模式界面包括多个方向模式控件,例如,表冠在上模式控件、表冠在下模式控件、表冠在左模式控件、表冠在右模式控件等等。电子设备100可以接收并响应于用户针对上述任一方向模式控件的操作,将方向模式设置为该方向模式控件对应的方向模式,并基于切换后的方向模式旋转电子设备100的显示内容(例如,佩戴模式界面),其中,切换前后的方向模式不同。这样,电子设备100旋转任意角度,显示内容都可以设置为便于用户查看和操作的方向。In some application scenarios, the electronic device 100 displays a wearing mode interface, which includes multiple direction mode controls, such as a crown-on-top mode control, a crown-on-bottom mode control, a crown-on-left mode control, a crown-on-right mode control, and the like. The electronic device 100 can receive and respond to a user's operation on any of the above direction mode controls, set the direction mode to the direction mode corresponding to the direction mode control, and rotate the display content (e.g., the wearing mode interface) of the electronic device 100 based on the switched direction mode, wherein the direction modes before and after the switching are different. In this way, the electronic device 100 can be rotated at any angle, and the displayed content can be set to a direction that is convenient for the user to view and operate.
如图4A所示,表冠14A位于机芯11A的右侧,电子设备100显示有桌面400,且桌面400为正向显示。桌面400可以包括一个或多个应用图标,例如,设置应用图标401、音乐应用图标、锻炼应用图标402、心率应用图标403等等。As shown in Fig. 4A, the crown 14A is located on the right side of the movement 11A, and the electronic device 100 displays a desktop 400, and the desktop 400 is displayed in the forward direction. The desktop 400 may include one or more application icons, for example, a setting application icon 401, a music application icon, a workout application icon 402, a heart rate application icon 403, and the like.
电子设备100可以接收并响应于用户针对设置应用图标的点击操作,显示如图4B所示的设置应用界面410。The electronic device 100 may receive and, in response to a user's click operation on a settings application icon, display a settings application interface 410 as shown in FIG. 4B .
如图4B所示,设置应用界面410可以包括一个或多个设置条目,例如蓝牙条目、表盘和桌面条目、自定义卡片条目、佩戴模式条目411等等。As shown in FIG. 4B , the settings application interface 410 may include one or more settings entries, such as a Bluetooth entry, a watch face and desktop entry, a custom card entry, a wearing mode entry 411 , and the like.
电子设备100可以接收并响应于用户针对佩戴模式条目411的点击操作,显示如图4C所示的佩戴模式界面420。
The electronic device 100 may receive and, in response to a user's click operation on the wearing mode entry 411 , display a wearing mode interface 420 as shown in FIG. 4C .
如图4C所示,佩戴模式界面420可以包括多个佩戴模式控件,例如腕表模式控件421和机芯模式控件422。腕表模式控件421可用于触发电子设备100将佩戴模式设置为腕表模式,机芯模式控件422可用于触发电子设备100将佩戴模式设置为机芯模式。机芯模式控件422旁边还可以显示有选中标记423,选中标记423用于提示用户当前设置的佩戴模式为机芯模式。可以理解的是,选中标记423可以是图4C所示的圆形图案标记,也可以是对号或其他图案的标记,还可以是高亮显示等突出显示方式的标记,本申请在此不做限定。可选的,佩戴模式界面420中还可以显示有文字提示,文字提示可用于提示用户如何选择佩戴模式。As shown in FIG4C , the wearing mode interface 420 may include multiple wearing mode controls, such as a watch mode control 421 and a movement mode control 422. The watch mode control 421 can be used to trigger the electronic device 100 to set the wearing mode to the watch mode, and the movement mode control 422 can be used to trigger the electronic device 100 to set the wearing mode to the movement mode. A check mark 423 may also be displayed next to the movement mode control 422, and the check mark 423 is used to prompt the user that the currently set wearing mode is the movement mode. It is understandable that the check mark 423 can be a circular pattern mark as shown in FIG4C, or a check mark or other pattern mark, or a highlight display mark such as a highlight display, which is not limited in this application. Optionally, a text prompt may also be displayed in the wearing mode interface 420, and the text prompt may be used to prompt the user how to select the wearing mode.
在电子设备100的佩戴模式为机芯模式下,电子设备100可以接收并响应于用户针对佩戴模式界面420向上滑动的操作,如图4D所示,显示佩戴模式界面420中位于佩戴模式控件下方的多个方向模式控件。When the wearing mode of the electronic device 100 is the movement mode, the electronic device 100 can receive and respond to the user's operation of sliding upward on the wearing mode interface 420, as shown in Figure 4D, and display multiple directional mode controls located below the wearing mode control in the wearing mode interface 420.
如图4D所示,在佩戴模式界面420中,该多个方向模式控件可以包括右控件431、左控件432、上控件433以及下控件434。在一些实施例中,还可以包括更多的方向模式控件,例如左上控件、左下控件、右上控件、右下控件等等。方向模式控件可用于触发电子设备100设置对应的方向模式,例如,上控件433可用于触发电子设备100将方向模式设置为表冠在上,即,当表冠在上时,显示内容为正向显示。方向模式控件上可以显示有图案和/或文字,其中,图案和文字都可以用于提示用户该方向模式控件对应的方向模式。例如,上控件433的图案可以是手表机芯的图案,且在该图案中,表冠位于机芯的上方。又例如,上控件433上可以显示有文字“上”,用于提示用户该方向模式控件对应的方向模式为表冠在上。可以理解的是,图4D所示实施例只是一个示例,在本申请实施例中,方向模式控件上显示的图案也可以是其他形状的图案,文字也可以是其他文字,本申请在此不做限定。关于其他方向模式控件的具体描述可参考上控件433的内容描述,此处不再赘述。此外,在右控件431上(或附近)还可以显示有选中标记435,用于提示用户当前的方向模式为表冠在右。选中标记435可以是如图4D所示的环形标记,也可以是其他形状的标记,在一些实施例中,选中标记435还可以采用高亮显示、放大显示等突出显示方向模式控件的方式,本申请在此不做限定。As shown in FIG4D, in the wearing mode interface 420, the multiple direction mode controls may include a right control 431, a left control 432, an upper control 433, and a lower control 434. In some embodiments, more direction mode controls may be included, such as an upper left control, a lower left control, an upper right control, a lower right control, and the like. The direction mode control may be used to trigger the electronic device 100 to set the corresponding direction mode. For example, the upper control 433 may be used to trigger the electronic device 100 to set the direction mode to the crown on top, that is, when the crown is on top, the displayed content is displayed in the forward direction. Patterns and/or texts may be displayed on the direction mode control, wherein both the pattern and the text may be used to prompt the user that the direction mode corresponding to the direction mode control. For example, the pattern of the upper control 433 may be a pattern of a watch movement, and in the pattern, the crown is located above the movement. For another example, the text "up" may be displayed on the upper control 433 to prompt the user that the direction mode corresponding to the direction mode control is the crown on top. It is understandable that the embodiment shown in FIG. 4D is only an example. In the embodiment of the present application, the pattern displayed on the direction mode control may also be a pattern of other shapes, and the text may also be other text, which is not limited in the present application. For a specific description of other direction mode controls, please refer to the content description of the upper control 433, which will not be repeated here. In addition, a check mark 435 may also be displayed on (or near) the right control 431 to prompt the user that the current direction mode is the crown on the right. The check mark 435 may be a ring mark as shown in FIG. 4D, or it may be a mark of other shapes. In some embodiments, the check mark 435 may also be highlighted by highlighting, enlarging, or other ways of highlighting the direction mode control, which is not limited in the present application.
电子设备100可以接收并响应于用户针对上控件433的点击操作,如图4E所示,将图4D所示的佩戴界面420以顺时针旋转90°(或逆时针旋转270°)后显示在电子设备100上,并关闭显示选中标记435,在上控件433上显示选中标记436。The electronic device 100 can receive and respond to the user's click operation on the upper control 433. As shown in Figure 4E, the wearing interface 420 shown in Figure 4D is rotated 90° clockwise (or 270° counterclockwise) and displayed on the electronic device 100, and the display of the selection mark 435 is turned off, and the selection mark 436 is displayed on the upper control 433.
用户可以将电子设备100以顺时针旋转270°,使得表冠14A位于机芯11A的上方,此时如图4F所示,电子设备100显示有佩戴模式界面420,该佩戴模式界面420为正向显示,且该佩戴模式界面420与图4E所示佩戴模式界面420相同。The user can rotate the electronic device 100 270° clockwise so that the crown 14A is located above the movement 11A. At this time, as shown in FIG. 4F , the electronic device 100 displays a wearing mode interface 420. The wearing mode interface 420 is displayed in the forward direction and is the same as the wearing mode interface 420 shown in FIG. 4E .
在一些实施例中,在电子设备100为腕表模式的情况下,电子设备100可以在佩戴模式界面420中显示比机芯模式下更少的方向模式控件。In some embodiments, when the electronic device 100 is in watch mode, the electronic device 100 may display fewer directional mode controls in the wearing mode interface 420 than in the movement mode.
示例性的,如图4G所示,电子设备100显示有佩戴模式界面420,佩戴模式界面420中的腕表模式421旁边显示有选中标记424,用于提示用户当前的佩戴模式为腕表模式。佩戴模式界面420的其他内容可以参考上述图4C所示实施例中的相关描述,此处不再赘述。Exemplarily, as shown in FIG4G , the electronic device 100 displays a wearing mode interface 420, and a check mark 424 is displayed next to the watch mode 421 in the wearing mode interface 420, which is used to prompt the user that the current wearing mode is the watch mode. For other contents of the wearing mode interface 420, reference can be made to the relevant description in the embodiment shown in FIG4C above, which will not be repeated here.
在电子设备100处于腕表模式的情况下,接收并响应于用户向上滑动的操作,电子设备100可以显示如图4H所示的佩戴模式界面420。When the electronic device 100 is in the watch mode, upon receiving and responding to an upward swipe operation by the user, the electronic device 100 may display a wearing mode interface 420 as shown in FIG. 4H .
如图4H所示,佩戴模式界面420中显示有多个方向模式控件,包括右控件431和左控件432。右控件431和左控件432的具体功能可以参考上述图4D所示实施例的相关描述。对比图4D和图4H可知,在机芯模式下,电子设备100可以在佩戴模式界面420中显示更多的方向模式控件。As shown in FIG4H , a plurality of directional mode controls are displayed in the wearing mode interface 420, including a right control 431 and a left control 432. The specific functions of the right control 431 and the left control 432 can refer to the relevant description of the embodiment shown in FIG4D above. By comparing FIG4D with FIG4H , it can be seen that in the movement mode, the electronic device 100 can display more directional mode controls in the wearing mode interface 420.
在一些实施例中,电子设备100显示有上述图4C所示的佩戴模式界面420的情况下,电子设备100也可以接收并响应于用户针对机芯模式控件422的点击操作,如上述图4D所示,在佩戴模式界面420中显示多个方向模式控件。电子设备100也可以接收并响应于用户针对图4C所示的腕表模式控件的点击操作,如上述图4H所示,显示多个方向模式控件。In some embodiments, when the electronic device 100 displays the wearing mode interface 420 shown in FIG. 4C above, the electronic device 100 may also receive and respond to a user's click operation on the movement mode control 422, as shown in FIG. 4D above, and display multiple direction mode controls in the wearing mode interface 420. The electronic device 100 may also receive and respond to a user's click operation on the watch mode control shown in FIG. 4C, as shown in FIG. 4H above, and display multiple direction mode controls.
可以理解的是,图4A至图4H只是以电子设备100包括上述图1A所示的机芯11A为例对模式切换方法进行说明,在本申请实施例中,机芯11A也可以是上述图1B所示的机芯11A,或是其他形状的机芯,表冠14A也可以替换为按键、操作球、操作杆等器件,本申请在此不做限定。It can be understood that Figures 4A to 4H only illustrate the mode switching method by taking the electronic device 100 including the movement 11A shown in Figure 1A as an example. In the embodiment of the present application, the movement 11A can also be the movement 11A shown in Figure 1B above, or a movement of other shapes, and the crown 14A can also be replaced by buttons, operating balls, operating levers and other devices, and the present application does not limit this.
此外,需要说明的是,在上述图4A至图4F所示实施例中,电子设备100的旋转方向以及显示内容的旋转方向都是以顺时针旋转为例对旋转角度进行说明,在本申请实施例中,电子设备100的旋转方向以及
显示内容的旋转方向也可以是以逆时针旋转,此时,旋转角度的数值也相应做出变化,即逆时针旋转角度与相同情况下顺时针旋转角度之和为360°。本申请以下实施例中涉及旋转角度的内容也可以参考此处的相关表述。In addition, it should be noted that in the embodiments shown in FIGS. 4A to 4F above, the rotation direction of the electronic device 100 and the rotation direction of the displayed content are described by taking clockwise rotation as an example. In the embodiments of the present application, the rotation direction of the electronic device 100 and the rotation direction of the displayed content are described by clockwise rotation as an example. The rotation direction of the displayed content can also be counterclockwise, in which case the value of the rotation angle also changes accordingly, that is, the sum of the counterclockwise rotation angle and the clockwise rotation angle under the same circumstances is 360°. The contents related to the rotation angle in the following embodiments of this application can also refer to the relevant descriptions here.
在一些实施例中,电子设备100也可以接收并响应于用户针对方向模式控件的操作,在检测到用户退出佩戴模式界面的操作(或者熄屏操作)之后,将显示屏13A中的显示内容基于方向模式控件对应的方向模式进行旋转。这样,若用户选中的方向模式控件与预期不符,便于用户及时切换到预期中的方向模式。In some embodiments, the electronic device 100 may also receive and respond to the user's operation on the direction mode control, and after detecting the user's operation of exiting the wearing mode interface (or turning off the screen), the display content in the display screen 13A is rotated based on the direction mode corresponding to the direction mode control. In this way, if the direction mode control selected by the user does not meet the expectations, it is convenient for the user to switch to the expected direction mode in time.
在另一些实施例中,电子设备100也可以接收并响应于用户针对方向模式控件的操作,在检测到用户旋转电子设备100的操作之后,将显示屏13A中的显示内容基于方向模式控件对应的方向模式进行旋转。这样,显示内容可以始终处于便于用户查看和操作的显示方向。In other embodiments, the electronic device 100 may also receive and respond to the user's operation on the direction mode control, and after detecting the user's operation of rotating the electronic device 100, the display content in the display screen 13A is rotated based on the direction mode corresponding to the direction mode control. In this way, the display content can always be in a display direction that is convenient for the user to view and operate.
图5A至图5F示出了本申请实施例提供的一组应用场景示意图。5A to 5F show a set of application scenario schematic diagrams provided in an embodiment of the present application.
如图5A所示,用户的左手手腕可以佩戴电子设备100,且电子设备100的表冠14A位于机芯11A的右侧。电子设备100的方向模式可以设置为表冠在右,此时,显示屏13A中的显示内容为正向显示。As shown in Fig. 5A, the user can wear the electronic device 100 on the left wrist, and the crown 14A of the electronic device 100 is located on the right side of the movement 11A. The direction mode of the electronic device 100 can be set to the crown on the right, at which time, the display content in the display screen 13A is displayed in the forward direction.
如图5B所示,用户的右手手腕可以佩戴电子设备100,且电子设备100的表冠14A位于机芯11A的左侧。电子设备100的方向模式可以设置为表冠在左,此时,显示屏13A中的显示内容为正向显示。As shown in Fig. 5B, the user can wear the electronic device 100 on the right wrist, and the crown 14A of the electronic device 100 is located on the left side of the movement 11A. The direction mode of the electronic device 100 can be set to the crown on the left, at which time, the display content in the display screen 13A is displayed in the forward direction.
如图5C所示,用户可以将电子设备100的表冠14A与项链连接作为项链佩戴在脖颈处,此时表冠14A位于机芯11A的上方。电子设备100的方向模式可以设置为表冠在上,此时,显示屏13A中的显示内容为正向显示。As shown in FIG5C , the user can connect the crown 14A of the electronic device 100 to the necklace and wear it around the neck as a necklace, and the crown 14A is located above the movement 11A. The orientation mode of the electronic device 100 can be set to crown up, and the display content on the display screen 13A is displayed in the forward direction.
如图5D所示,用户可以将电子设备100与其他器件拼接成一个闹钟,基于闹钟的结构要求,电子设备100的表冠14A位于机芯11A的上方。电子设备100的方向模式可以设置为表冠在上,此时,显示屏13A中的显示内容为正向显示。As shown in FIG5D , the user can combine the electronic device 100 with other devices to form an alarm clock. Based on the structural requirements of the alarm clock, the crown 14A of the electronic device 100 is located above the movement 11A. The orientation mode of the electronic device 100 can be set to the crown on top, in which case the display content on the display screen 13A is displayed in the forward direction.
如图5E所示,用户可以将电子设备100作为配饰安装在背包上,出于固定需求,此时表冠14A位于机芯11A的下方。电子设备100的方向模式可以设置为表冠在下,此时,显示屏13A中的显示内容为正向显示。As shown in FIG5E , the user can install the electronic device 100 as an accessory on a backpack. For fixing requirements, the crown 14A is located below the movement 11A. The orientation mode of the electronic device 100 can be set to the crown down, and the display content on the display screen 13A is displayed in the forward direction.
如图5F所示,用户可以将电子设备100安装在自行车车把的中间位置,出于固定需求,电子设备100的表冠14A位于机芯11A的下方。电子设备100的方向模式可以设置为表冠在下,此时,显示屏13A中的显示内容为正向显示,用户可以很方便地通过电子设备100查看行进路线。As shown in FIG5F , the user can install the electronic device 100 in the middle of the handlebar of the bicycle. For fixing requirements, the crown 14A of the electronic device 100 is located below the movement 11A. The direction mode of the electronic device 100 can be set to the crown at the bottom. At this time, the display content in the display screen 13A is displayed in the forward direction, and the user can easily view the route through the electronic device 100.
可以理解的是,图5A至图5F所示实施例只是示例性说明了几种本申请实施例提供的模式切换方法的应用场景,在本申请实施例中,还可以包括更多的应用场景,例如将电子设备100作为怀表、秒表等等,本申请在此不做限定。It can be understood that the embodiments shown in Figures 5A to 5F are only illustrative of several application scenarios of the mode switching method provided in the embodiments of the present application. In the embodiments of the present application, more application scenarios can also be included, such as using the electronic device 100 as a pocket watch, stopwatch, etc., which is not limited in the present application.
在一些应用场景中,电子设备100可以显示有佩戴模式界面,佩戴模式界面中显示有微动检测开关控件。电子设备100可以接受并响应于用户针对微动检测开关控件的操作,开启/关闭微动检测。在微动检测开启之后,电子设备100在检测到机芯11A发生旋转时,可以基于机芯11A的旋转角度旋转显示屏13A中显示内容,使得显示内容始终处于正向显示,便于用户查看和操作。这样,在机芯11A不停旋转的情况下,用户不需要多次操作,电子设备100可以实时检测旋转角度并对显示内容、触屏事件等进行适配,以便于用户对显示内容进行查看和操作。In some application scenarios, the electronic device 100 may display a wearing mode interface, in which a micro-motion detection switch control is displayed. The electronic device 100 may accept and respond to the user's operation on the micro-motion detection switch control to turn on/off micro-motion detection. After the micro-motion detection is turned on, when the electronic device 100 detects that the movement 11A is rotating, it may rotate the displayed content on the display screen 13A based on the rotation angle of the movement 11A, so that the displayed content is always displayed in the forward direction, which is convenient for the user to view and operate. In this way, when the movement 11A rotates continuously, the user does not need to operate multiple times. The electronic device 100 can detect the rotation angle in real time and adapt the displayed content, touch screen events, etc., so that the user can view and operate the displayed content.
示例性的,如图6A所示,电子设备100的表冠14A位于机芯11A的右侧,且电子设备100显示有佩戴模式界面420,佩戴模式界面420为正向显示,佩戴模式界面420的具体内容可以参考上述图4D所示实施例中的相关描述,此处不再赘述。Exemplarily, as shown in FIG6A , the crown 14A of the electronic device 100 is located on the right side of the movement 11A, and the electronic device 100 displays a wearing mode interface 420, which is displayed in a forward direction. The specific content of the wearing mode interface 420 can refer to the relevant description in the embodiment shown in FIG4D above, which will not be repeated here.
电子设备100可以接收并响应于用户针对佩戴模式界面420的上滑操作,如图6B所示,显示佩戴模式界面420的下部分界面内容,包括微动检测开关441。The electronic device 100 can receive and respond to the user's swiping up operation on the wearing mode interface 420 , as shown in FIG. 6B , and display the lower part of the interface content of the wearing mode interface 420 , including the micro-motion detection switch 441 .
如图6B所示,佩戴模式界面420中显示有微动检测开关441,微动检测开关441可用于触发电子设备100开启或关闭微动检测。微动检测开关441附近还可以显示有开关标记442,用于提示用户当前微动检测是否开启。开关标记442可以是图6B所示的文字“OFF”,也可以是其他文字或图案。根据开关标记442可知,当前微动检测处于关闭状态。As shown in FIG6B , a micro-motion detection switch 441 is displayed in the wearing mode interface 420, and the micro-motion detection switch 441 can be used to trigger the electronic device 100 to turn on or off micro-motion detection. A switch mark 442 can also be displayed near the micro-motion detection switch 441 to prompt the user whether the current micro-motion detection is turned on. The switch mark 442 can be the text "OFF" shown in FIG6B, or other text or patterns. According to the switch mark 442, it can be known that the current micro-motion detection is in the off state.
电子设备100可以接收并响应于用户针对微动检测开关441的点击操作,如图6C所示,开启微动检
测,并更改开关标记442。The electronic device 100 can receive and respond to a user's click operation on the micro-motion detection switch 441, as shown in FIG6C , to turn on the micro-motion detection switch 441. Measure and change the switch mark 442.
如图6C所示,开关标记442可以更改为如图6C所示的文字“ON”,用于提示用户当前微动检测已开启。As shown in FIG. 6C , the switch mark 442 may be changed to the text “ON” as shown in FIG. 6C , to prompt the user that the micro-motion detection is currently turned on.
在微动检测开启之后,电子设备100可以在检测到用户将图6C所示的电子设备100顺时针旋转315°的操作时,电子设备100将显示内容相对于显示屏13A顺时针旋转45°之后显示在显示屏13A中,即显示如图6D所示佩戴模式界面420,该佩戴模式界面420为正向显示。After the micro-motion detection is turned on, when the electronic device 100 detects that the user rotates the electronic device 100 shown in Figure 6C clockwise by 315°, the electronic device 100 will rotate the display content 45° clockwise relative to the display screen 13A and then display it on the display screen 13A, that is, display the wearing mode interface 420 as shown in Figure 6D, and the wearing mode interface 420 is displayed in the forward direction.
类似的,在微动检测开启之后,电子设备100可以在检测到用户将图6C所示的电子设备100顺时针旋转225°的操作时,电子设备100将显示内容相对于显示屏13A顺时针旋转135°之后显示在显示屏13A中。Similarly, after micro-motion detection is turned on, when the electronic device 100 detects that the user rotates the electronic device 100 shown in FIG. 6C clockwise by 225°, the electronic device 100 will display the content on the display screen 13A after rotating it 135° clockwise relative to the display screen 13A.
类似的,在微动检测开启之后,电子设备100可以在检测到用户将图6C所示的电子设备100顺时针旋转135°的操作时,电子设备100将显示内容相对于显示屏13A顺时针旋转225°之后显示在显示屏13A中。Similarly, after micro-motion detection is turned on, when the electronic device 100 detects that the user rotates the electronic device 100 shown in FIG. 6C clockwise by 135°, the electronic device 100 will display the content on the display screen 13A after rotating it 225° clockwise relative to the display screen 13A.
可以理解的是,图6A至图6D只是示例性说明在开启微动检测之后,显示内容可以在机芯11A的微动旋转过程中保持正向显示,以便于用户查看和操作。在本申请实施例中,显示内容也可以是其他应用界面或者表盘等,电子设备100的旋转角度还可以包括比上述实施例更多的角度,电子设备100和/或显示内容的旋转方向也可以是逆时针方向,逆时针旋转的情况下旋转角度的转换方式可以参考上述图4A至图4F所示实施例中的相关内容,本申请在此均不做限定。It is understandable that FIGS. 6A to 6D are merely exemplary illustrations of how the displayed content can remain displayed in the forward direction during the micro-rotation of the movement 11A after the micro-motion detection is turned on, so as to facilitate user viewing and operation. In the embodiments of the present application, the displayed content may also be other application interfaces or dials, etc., the rotation angle of the electronic device 100 may also include more angles than the above embodiments, and the rotation direction of the electronic device 100 and/or the displayed content may also be counterclockwise. The conversion method of the rotation angle in the case of counterclockwise rotation may refer to the relevant contents in the embodiments shown in FIGS. 4A to 4F above, and the present application does not limit this.
在一些实施例中,电子设备100也可以预设有多个旋转角度区间(例如每10°或每15°为一个旋转角度区间,等),电子设备100在检测到机芯11A的旋转角度落在一个旋转角度区间时,可以将旋转角度设定为该旋转角度区间的中位数(或是该旋转角度区间内的任一角度)。这样,不仅可以保证显示内容处于用户便于查看和操作的方向,还可以减少由于震动、晃动导致的显示内容相对于显示屏13A的旋转,降低能耗。In some embodiments, the electronic device 100 may also be preset with multiple rotation angle intervals (for example, every 10° or every 15° is a rotation angle interval, etc.). When the electronic device 100 detects that the rotation angle of the movement 11A falls into a rotation angle interval, the rotation angle may be set to the median of the rotation angle interval (or any angle within the rotation angle interval). In this way, it can not only ensure that the displayed content is in a direction that is convenient for the user to view and operate, but also reduce the rotation of the displayed content relative to the display screen 13A caused by vibration and shaking, thereby reducing energy consumption.
下面介绍本申请实施例提供的一种模式切换方法的流程。The following describes a process of a mode switching method provided in an embodiment of the present application.
如图7所示,本申请实施例提供的一种模式切换方法的具体流程可以包括以下步骤:As shown in FIG. 7 , a specific process of a mode switching method provided in an embodiment of the present application may include the following steps:
S701,电子设备100接收并响应于用户的操作1,确定切换后的方向模式1。S701, the electronic device 100 receives and responds to the user's operation 1, and determines the direction mode 1 after switching.
电子设备100可以包括多种方向模式,例如表冠在左、表冠在右、表冠在上、表冠在下等。在一些实施例中,该多种方向模式还可以包括表冠在左上、表冠在左下、表冠在右上、表冠在右下等,方向模式的定义可以参考上述图2所示实施例中的相关描述,此处不再赘述。The electronic device 100 may include multiple direction modes, such as crown on the left, crown on the right, crown on the top, crown on the bottom, etc. In some embodiments, the multiple direction modes may also include crown on the top left, crown on the bottom left, crown on the top right, crown on the bottom right, etc. The definition of the direction mode may refer to the relevant description in the embodiment shown in FIG. 2 above, and will not be repeated here.
在一些实施例中,电子设备100的多种方向模式可以包括出厂设置的多种方向模式。在另一些实施例中,该多种方向模式也可以包括用户自定义的方向模式,例如用户可以自行设置方向模式的名称以及该方向模式对应的旋转角度等。In some embodiments, the multiple orientation modes of the electronic device 100 may include multiple orientation modes set at the factory. In other embodiments, the multiple orientation modes may also include user-defined orientation modes, for example, the user may set the name of the orientation mode and the rotation angle corresponding to the orientation mode.
操作1可用于设置方向模式。操作1可以是针对方向模式控件的点击操作,例如,上述图4D所示实施例中,针对左控件432的点击操作,等等。Operation 1 can be used to set the direction mode. Operation 1 can be a click operation on the direction mode control, for example, in the embodiment shown in FIG. 4D above, a click operation on the left control 432, and so on.
电子设备100可以基于操作1确定切换后的方向模式1,例如,基于操作1的操作对象为上述图4D所示的左控件432,确定切换后的方向模式1为表冠在左,等。The electronic device 100 can determine the direction mode 1 after switching based on operation 1. For example, based on the operation object of operation 1 being the left control 432 shown in FIG. 4D above, it is determined that the direction mode 1 after switching is the crown on the left, etc.
S702,电子设备100基于方向模式1确定旋转角度1。S702 , the electronic device 100 determines rotation angle 1 based on direction mode 1 .
旋转角度1是显示内容相对于显示屏13A需要顺时针旋转的角度。需要说明的是,在本申请实施例中,多以顺时针旋转为例对旋转角度的进行说明,在一些实施例中,旋转角度也可以是逆时针旋转的角度,在这种情况下,逆时针旋转对应的旋转角度与顺时针旋转对应的角度之和为360°,本申请在此不做限定。Rotation angle 1 is the angle at which the displayed content needs to be rotated clockwise relative to the display screen 13A. It should be noted that in the embodiments of the present application, the rotation angle is mostly described by taking clockwise rotation as an example. In some embodiments, the rotation angle may also be a counterclockwise rotation angle. In this case, the sum of the rotation angle corresponding to the counterclockwise rotation and the angle corresponding to the clockwise rotation is 360°, which is not limited in the present application.
在电子设备100接收操作1之前,电子设备100的方向模式为方向模式2。Before the electronic device 100 receives operation 1 , the direction mode of the electronic device 100 is direction mode 2 .
在一些实施例中,旋转角度1可以是方向模式1相对于方向模式2的旋转角度,即模式切换前后显示屏13A中显示内容需要顺时针旋转的角度。在这种情况下,电子设备100可以基于切换前后的方向模式确定旋转角度1。In some embodiments, rotation angle 1 may be the rotation angle of direction mode 1 relative to direction mode 2, that is, the angle at which the displayed content in display screen 13A needs to be rotated clockwise before and after the mode switching. In this case, electronic device 100 may determine rotation angle 1 based on the direction modes before and after the switching.
在电子设备100接收用户设置方向模式的操作1之前,电子设备100可以获取到切换之前的方向模式为方向模式2。示例性的,在上述图4D所示的佩戴模式界面420中的右控件431上显示有选中标记435,
则右控件431对应的表冠在右为方向模式2。Before the electronic device 100 receives the user's operation 1 for setting the direction mode, the electronic device 100 can obtain that the direction mode before switching is direction mode 2. For example, a check mark 435 is displayed on the right control 431 in the wearing mode interface 420 shown in FIG. 4D above. Then the crown corresponding to the right control 431 is in direction mode 2 on the right.
在一些实施例中,电子设备100中可以存储有切换前后的方向模式与旋转角度1之间的对应关系。示例性的,表1示出了本申请实施例提供的一种切换前后的方向模式与旋转角度1之间的对应关系。In some embodiments, the electronic device 100 may store a correspondence between the direction modes before and after the switching and the rotation angle 1. For example, Table 1 shows a correspondence between the direction modes before and after the switching and the rotation angle 1 provided in an embodiment of the present application.
表1
Table 1
如表1所示,电子设备100存储的切换前后方向模式与旋转角度1之间的对应关系表可以包括方向模式2、方向模式1以及旋转角度1。根据表1可知,当方向模式2为表冠在右,方向模式1为表冠在左时,旋转角度1为180°;当方向模式2为表冠在右,方向模式1为表冠在上时,旋转角度1为90°;当方向模式2为表冠在右,方向模式1为表冠在下时,旋转角度1为270°;当方向模式2为表冠在左,方向模式1为表冠在上时,旋转角度1为270°;当方向模式2为表冠在上,方向模式1为表冠在下时,旋转角度1为180°;当方向模式2为表冠在下,方向模式1为表冠在左时,旋转角度1为270°。其中,旋转角度1为显示内容相对于显示屏13A顺时针旋转的角度。As shown in Table 1, the correspondence table between the switching forward and backward direction modes and the rotation angle 1 stored in the electronic device 100 may include direction mode 2, direction mode 1 and rotation angle 1. According to Table 1, when direction mode 2 is the crown on the right and direction mode 1 is the crown on the left, the rotation angle 1 is 180°; when direction mode 2 is the crown on the right and direction mode 1 is the crown on the top, the rotation angle 1 is 90°; when direction mode 2 is the crown on the right and direction mode 1 is the crown on the bottom, the rotation angle 1 is 270°; when direction mode 2 is the crown on the left and direction mode 1 is the crown on the top, the rotation angle 1 is 270°; when direction mode 2 is the crown on the top and direction mode 1 is the crown on the bottom, the rotation angle 1 is 180°; when direction mode 2 is the crown on the bottom and direction mode 1 is the crown on the left, the rotation angle 1 is 270°. Among them, the rotation angle 1 is the angle at which the display content rotates clockwise relative to the display screen 13A.
可以理解的是,上述表1所示实施例只是示例性说明电子设备100中可以存储有切换前后的方向模式与旋转角度1之间的对应关系,在本申请实施例中,电子设备100中还可以存储有比表1所示实施例更多或更少的内容,本申请在此不做限定。It can be understood that the embodiment shown in the above Table 1 is only an illustrative example of how the electronic device 100 can store the correspondence between the direction mode before and after switching and the rotation angle 1. In the embodiment of the present application, the electronic device 100 can also store more or less content than the embodiment shown in Table 1, and the present application does not limit this.
在确定出切换前后的方向模式之后,电子设备100可以基于存储的切换前后的方向模式与旋转角度1之间的对应关系,确定出旋转角度1。After determining the direction modes before and after the switching, the electronic device 100 may determine the rotation angle 1 based on the stored correspondence between the direction modes before and after the switching and the rotation angle 1.
在另一些实施例中,电子设备100可以存储有初始方向模式,且存储有初始方向模式下的初始显示方向,初始显示方向为初始方向模式下显示内容(下称初始显示内容)的方向。需要说明的是,初始方向模式下初始显示内容为正向显示。此时,旋转角度1可以是方向模式1相对于初始方向模式的旋转角度,即模式切换之后显示屏13A中显示内容的方向相对于初始显示方向需要顺时针旋转的角度。在这种情况下,电子设备100可以基于切换之后的方向模式1与初始方向模式确定出旋转角度1。In other embodiments, the electronic device 100 may store an initial direction mode and an initial display direction in the initial direction mode, and the initial display direction is the direction of the display content (hereinafter referred to as the initial display content) in the initial direction mode. It should be noted that the initial display content in the initial direction mode is displayed in the forward direction. At this time, the rotation angle 1 can be the rotation angle of the direction mode 1 relative to the initial direction mode, that is, the angle at which the direction of the display content in the display screen 13A needs to be rotated clockwise relative to the initial display direction after the mode is switched. In this case, the electronic device 100 can determine the rotation angle 1 based on the direction mode 1 after the switch and the initial direction mode.
电子设备100可以存储有初始方向模式、切换之后的方向模式以及旋转角度1之间的对应关系。The electronic device 100 may store a correspondence between the initial direction mode, the direction mode after switching, and the rotation angle 1.
示例性的,以表冠在右为初始方向模式为例,表2示出了本申请实施例提供的一种初始方向模式、切换之后的方向模式与旋转角度1之间的对应关系。Exemplarily, taking the crown on the right as the initial direction mode as an example, Table 2 shows the correspondence between an initial direction mode, the direction mode after switching, and the rotation angle 1 provided in an embodiment of the present application.
表2
Table 2
如表2所示,电子设备100存储的初始方向模式、切换之后方向模式与旋转角度1之间的对应关系表可以包括初始方向模式、方向模式1以及旋转角度1。根据表1可知,在初始方向模式为表冠在右的情况下,当方向模式1为表冠在左时,旋转角度1为180°;当方向模式1为表冠在上时,旋转角度1为90°;当方向模式1为表冠在下时,旋转角度1为270°;当方向模式1为表冠在右时,旋转角度1为0°。其中,旋转角度1为显示内容相对于显示屏13A顺时针旋转的角度。As shown in Table 2, the correspondence table between the initial direction mode, the direction mode after switching and the rotation angle 1 stored in the electronic device 100 may include the initial direction mode, direction mode 1 and rotation angle 1. According to Table 1, when the initial direction mode is the crown on the right, when the direction mode 1 is the crown on the left, the rotation angle 1 is 180°; when the direction mode 1 is the crown on the top, the rotation angle 1 is 90°; when the direction mode 1 is the crown on the bottom, the rotation angle 1 is 270°; when the direction mode 1 is the crown on the right, the rotation angle 1 is 0°. Among them, the rotation angle 1 is the angle of the display content rotated clockwise relative to the display screen 13A.
可以理解的是,上述表2所示实施例只是示例性说明电子设备100中可以存储有切换前后的方向模式与旋转角度1之间的对应关系,在本申请实施例中,初始方向模式也可以是与表2所示实施例中不同的方向模式,电子设备100中还可以存储有比表2所示实施例更多或更少的方向模式,本申请在此不做限定。It can be understood that the embodiment shown in the above Table 2 is only an illustrative example of how the electronic device 100 can store the correspondence between the direction modes before and after switching and the rotation angle 1. In an embodiment of the present application, the initial direction mode may also be a direction mode different from that in the embodiment shown in Table 2. The electronic device 100 may also store more or fewer direction modes than those in the embodiment shown in Table 2. The present application does not limit this.
在确定出切换之后的方向模式1后,电子设备100可以基于存储的初始方向模式、方向模式1与旋转
角度1之间的对应关系,确定出旋转角度1。After determining the direction mode 1 after switching, the electronic device 100 can be based on the stored initial direction mode, direction mode 1 and rotation mode. The corresponding relationship between angle 1 and rotation angle 1 is determined.
S703,电子设备100基于旋转角度1对显示内容进行旋转。S703: The electronic device 100 rotates the displayed content based on the rotation angle 1.
在确定出旋转角度1之后,电子设备100可以基于旋转角度1对显示内容进行旋转。具体的,电子设备100可以在确定旋转角度1之后,向GPU发送旋转指令,旋转指令包括旋转角度1,该旋转指令用于指示GPU将显示内容(当前显示屏中的显示内容或初始显示内容)进行旋转,且旋转角度为旋转角度1。GPU在接收到旋转指令之后,可以基于旋转角度1对显示内容进行旋转。After determining the rotation angle 1, the electronic device 100 may rotate the display content based on the rotation angle 1. Specifically, after determining the rotation angle 1, the electronic device 100 may send a rotation instruction to the GPU, the rotation instruction including the rotation angle 1, and the rotation instruction is used to instruct the GPU to rotate the display content (the display content in the current display screen or the initial display content), and the rotation angle is the rotation angle 1. After receiving the rotation instruction, the GPU may rotate the display content based on the rotation angle 1.
在旋转角度1为方向模式1相对于切换之前的方向模式2的旋转角度的情况下,电子设备100可以将当前显示屏13A中的显示内容相对于显示屏13A做顺时针旋转,且旋转角度为旋转角度1。When rotation angle 1 is the rotation angle of direction mode 1 relative to direction mode 2 before switching, electronic device 100 can rotate the display content in the current display screen 13A clockwise relative to display screen 13A, and the rotation angle is rotation angle 1.
在旋转角度1为方向模式1相对于初始方向模式的旋转角度的情况下,电子设备100可以将初始显示内容相对于显示屏13A做顺时针旋转,且旋转角度为旋转角度1。When rotation angle 1 is the rotation angle of direction mode 1 relative to the initial direction mode, the electronic device 100 can rotate the initial display content clockwise relative to the display screen 13A, and the rotation angle is rotation angle 1.
需要说明的是,步骤S703至步骤S706之间不存在时序要求,且步骤S704至步骤S706的步骤均为可选步骤。It should be noted that there is no timing requirement between step S703 to step S706, and steps S704 to step S706 are all optional steps.
S704,电子设备100基于方向模式1或旋转角度1对触屏事件进行适配。S704: The electronic device 100 adapts the touch screen event based on direction mode 1 or rotation angle 1.
在方向模式切换之后,用户触屏事件的实际方向和电子设备100检测到的方向可能不一致,为了使得用户针对电子设备100的触屏操作触发正确的响应,电子设备100需要对触屏事件进行适配。After the direction mode is switched, the actual direction of the user's touch screen event may be inconsistent with the direction detected by the electronic device 100. In order for the user to trigger a correct response to the touch screen operation of the electronic device 100, the electronic device 100 needs to adapt the touch screen event.
图8A至图8D示出了本申请实施例提供的一组不同方向模式下用户感知的方向和电子设备100检测的方向。8A to 8D illustrate a set of directions perceived by a user and directions detected by the electronic device 100 in different direction modes provided by an embodiment of the present application.
如图8A所示,电子设备100的表冠14A位于机芯11A的右侧,电子设备100的显示屏13A所处的二维平面可以是上述图1D所示坐标系中的XOY平面,且表冠14A相对于机芯11A的方向为X轴正向。电子设备100可以显示有桌面400,桌面400的具体描述可以参考上述图4A所示的相关内容。在图8A中,桌面400为正向显示。此时,用户感知的方向可以基于二维平面XOY定义:用户感知“上”可以是Y轴正向;用户感知“下”可以是Y轴负向;用户感知“左”可以是X轴负向;用户感知“右”可以是X轴正向。电子设备100检测的方向可以基于表冠14A与机芯11A的相对位置定义:当方向模式为图8A所示的表冠在右时,电子设备100检测到的“右”可以是表冠14A相对于机芯11A的方向,即箭头“b”所指示的方向;电子设备100检测到的“左”可以是机芯11A相对于表冠14A的方向,即箭头“d”所指示的方向;电子设备100检测到的“上”可以是“右”方向逆时针旋转90°的方向,即箭头“a”所指示的方向;电子设备100检测到的“下”可以是“右”方向顺时针旋转90°的方向,即箭头“c”所指示的方向。As shown in FIG8A , the crown 14A of the electronic device 100 is located on the right side of the movement 11A, and the two-dimensional plane where the display screen 13A of the electronic device 100 is located can be the XOY plane in the coordinate system shown in FIG1D above, and the direction of the crown 14A relative to the movement 11A is the positive direction of the X axis. The electronic device 100 can display a desktop 400, and the specific description of the desktop 400 can refer to the relevant content shown in FIG4A above. In FIG8A , the desktop 400 is displayed in the positive direction. At this time, the direction perceived by the user can be defined based on the two-dimensional plane XOY: the user perceives "up" as the positive direction of the Y axis; the user perceives "down" as the negative direction of the Y axis; the user perceives "left" as the negative direction of the X axis; the user perceives "right" as the positive direction of the X axis. The direction detected by the electronic device 100 can be defined based on the relative position of the crown 14A and the movement 11A: when the direction mode is the crown on the right as shown in Figure 8A, the "right" detected by the electronic device 100 can be the direction of the crown 14A relative to the movement 11A, that is, the direction indicated by the arrow "b"; the "left" detected by the electronic device 100 can be the direction of the movement 11A relative to the crown 14A, that is, the direction indicated by the arrow "d"; the "up" detected by the electronic device 100 can be the direction of the "right" direction rotated 90° counterclockwise, that is, the direction indicated by the arrow "a"; the "down" detected by the electronic device 100 can be the direction of the "right" direction rotated 90° clockwise, that is, the direction indicated by the arrow "c".
在方向模式由图8A所示的表冠在右切换为表冠在左之后,如图8B所示,电子设备100相较于图8A未发生旋转,表冠14A仍位于机芯11A的右侧。电子设备100可以显示桌面400,桌面400为反向显示。由于X轴、Y轴均未发生变化,用户感知到的方向也未发生变化。此时,电子设备100检测到的方向需要与图8A所示的方向相反,才能使得电子设备100做出正确的响应。在这种情况下,电子设备100检测到的方向可以基于表冠14A与机芯11A的相对位置定义:当方向模式为图8B所示的表冠在左时,电子设备100检测到的“左”可以是表冠14A相对于机芯11A的方向,即箭头“b”所指示的方向;电子设备100检测到的“右”可以是机芯11A相对于表冠14A的方向,即箭头“d”所指示的方向;电子设备100检测到的“上”可以是“右”方向逆时针旋转90°的方向,即箭头“c”所指示的方向;电子设备100检测到的“下”可以是“右”方向顺时针旋转90°的方向,即箭头“a”所指示的方向。After the direction mode is switched from the crown on the right as shown in FIG8A to the crown on the left, as shown in FIG8B , the electronic device 100 has not rotated compared to FIG8A , and the crown 14A is still located on the right side of the movement 11A. The electronic device 100 can display the desktop 400, which is displayed in reverse. Since neither the X-axis nor the Y-axis has changed, the direction perceived by the user has not changed. At this time, the direction detected by the electronic device 100 needs to be opposite to the direction shown in FIG8A in order for the electronic device 100 to respond correctly. In this case, the direction detected by the electronic device 100 can be defined based on the relative position of the crown 14A and the movement 11A: when the direction mode is the crown on the left as shown in Figure 8B, the "left" detected by the electronic device 100 can be the direction of the crown 14A relative to the movement 11A, that is, the direction indicated by the arrow "b"; the "right" detected by the electronic device 100 can be the direction of the movement 11A relative to the crown 14A, that is, the direction indicated by the arrow "d"; the "up" detected by the electronic device 100 can be the direction of the "right" direction rotated 90° counterclockwise, that is, the direction indicated by the arrow "c"; the "down" detected by the electronic device 100 can be the direction of the "right" direction rotated 90° clockwise, that is, the direction indicated by the arrow "a".
在方向模式由图8A所示的表冠在右切换为表冠在上之后,如图8C所示,电子设备100相较于图8A未发生旋转,表冠14A仍位于机芯11A的右侧。电子设备100可以显示桌面400,桌面400为右向显示。由于X轴、Y轴均未发生变化,用户感知到的方向也未发生变化。此时,电子设备100检测到的方向需要相对于图8A所示的方向顺时针旋转90°,才能使得电子设备100做出正确的响应。在这种情况下,电子设备100检测到的方向可以基于表冠14A与机芯11A的相对位置定义:当方向模式为图8C所示的表冠在上时,电子设备100检测到的“上”可以是表冠14A相对于机芯11A的方向,即箭头“b”所指示的方向;电子设备100检测到的“下”可以是机芯11A相对于表冠14A的方向,即箭头“d”所指示的方向;电子设备100检测到的“右”可以是“上”方向顺时针旋转90°的方向,即箭头“c”所指示的方向;电子设备100检测到的“左”可以是“上”方向逆时针旋转90°的方向,即箭头“a”所指示的方向。
After the direction mode is switched from the crown on the right as shown in FIG8A to the crown on the top, as shown in FIG8C, the electronic device 100 has not rotated compared to FIG8A, and the crown 14A is still located on the right side of the movement 11A. The electronic device 100 can display the desktop 400, and the desktop 400 is displayed in the right direction. Since the X-axis and the Y-axis have not changed, the direction perceived by the user has not changed. At this time, the direction detected by the electronic device 100 needs to be rotated 90° clockwise relative to the direction shown in FIG8A in order for the electronic device 100 to respond correctly. In this case, the direction detected by the electronic device 100 can be defined based on the relative position of the crown 14A and the movement 11A: when the direction mode is the crown up as shown in Figure 8C, the "up" detected by the electronic device 100 can be the direction of the crown 14A relative to the movement 11A, that is, the direction indicated by the arrow "b"; the "down" detected by the electronic device 100 can be the direction of the movement 11A relative to the crown 14A, that is, the direction indicated by the arrow "d"; the "right" detected by the electronic device 100 can be the direction of the "up" direction rotated 90° clockwise, that is, the direction indicated by the arrow "c"; the "left" detected by the electronic device 100 can be the direction of the "up" direction rotated 90° counterclockwise, that is, the direction indicated by the arrow "a".
在方向模式由图8A所示的表冠在右切换为表冠在下之后,如图8D所示,电子设备100相较于图8A未发生旋转,表冠14A仍位于机芯11A的右侧。电子设备100可以显示桌面400,桌面400为左向显示。由于X轴、Y轴均未发生变化,用户感知到的方向也未发生变化。此时,电子设备100检测到的方向需要相对于图8A所示的方向逆时针旋转90°,才能使得电子设备100做出正确的响应。在这种情况下,电子设备100检测到的方向可以基于表冠14A与机芯11A的相对位置定义:当方向模式为图8D所示的表冠在左时,电子设备100检测到的“下”可以是表冠14A相对于机芯11A的方向,即箭头“b”所指示的方向;电子设备100检测到的“上”可以是机芯11A相对于表冠14A的方向,即箭头“d”所指示的方向;电子设备100检测到的“右”可以是“上”方向顺时针旋转90°的方向,即箭头“a”所指示的方向;电子设备100检测到的“左”可以是“右”方向逆时针旋转90°的方向,即箭头“c”所指示的方向。After the direction mode is switched from the crown on the right as shown in FIG8A to the crown on the bottom, as shown in FIG8D, the electronic device 100 has not rotated compared to FIG8A, and the crown 14A is still located on the right side of the movement 11A. The electronic device 100 can display the desktop 400, and the desktop 400 is displayed in the left direction. Since the X-axis and the Y-axis have not changed, the direction perceived by the user has not changed. At this time, the direction detected by the electronic device 100 needs to be rotated 90° counterclockwise relative to the direction shown in FIG8A in order for the electronic device 100 to respond correctly. In this case, the direction detected by the electronic device 100 can be defined based on the relative position of the crown 14A and the movement 11A: when the direction mode is the crown on the left as shown in Figure 8D, the "down" detected by the electronic device 100 can be the direction of the crown 14A relative to the movement 11A, that is, the direction indicated by the arrow "b"; the "up" detected by the electronic device 100 can be the direction of the movement 11A relative to the crown 14A, that is, the direction indicated by the arrow "d"; the "right" detected by the electronic device 100 can be the direction of the "up" direction rotated 90° clockwise, that is, the direction indicated by the arrow "a"; the "left" detected by the electronic device 100 can be the direction of the "right" direction rotated 90° counterclockwise, that is, the direction indicated by the arrow "c".
由于电子设备100检测到的方向是基于表冠14A与机芯11A的相对方向确定的,因此,后续电子设备100发生旋转之后,若表冠14A旋转到方向模式指示的位置,电子设备100检测的方向可以与用户感知的方向重合。电子设备100也可以正常使用触屏功能。Since the direction detected by the electronic device 100 is determined based on the relative direction of the crown 14A and the movement 11A, after the electronic device 100 is subsequently rotated, if the crown 14A is rotated to the position indicated by the direction mode, the direction detected by the electronic device 100 can coincide with the direction perceived by the user. The electronic device 100 can also use the touch screen function normally.
电子设备100可以在确定方向模式1或旋转角度1之后,对触屏事件进行适配。在另一些实施例中,电子设备100也可以在确定方向模式1或旋转角度1之后,且检测到用户的触屏操作时,对触屏事件进行适配。The electronic device 100 may adapt the touch screen event after determining direction mode 1 or rotation angle 1. In other embodiments, the electronic device 100 may also adapt the touch screen event after determining direction mode 1 or rotation angle 1 and detecting a user's touch screen operation.
在一些实施例中,电子设备100可以基于方向模式1对触屏事件(例如滑动事件等)进行适配。In some embodiments, the electronic device 100 may adapt touch screen events (eg, sliding events, etc.) based on direction mode 1.
以初始方向模式为表冠在右为例,表3示出了一种电子设备100中存储的切换后的方向模式1与滑动事件转换适配的对应关系。Taking the initial direction mode of the crown being on the right as an example, Table 3 shows a correspondence between the direction mode 1 after switching and the sliding event conversion adaptation stored in the electronic device 100.
表3
Table 3
Table 3
如表3所示,初始方向模式为表冠在右,电子设备100默认设置在表冠在右的情况下,当用户实际操作为上滑操作时,电子设备100检测到的操作为上滑操作;当用户实际操作为下滑操作时,电子设备100检测到的操作为下滑操作;当用户实际操作为左滑操作时,电子设备100检测到的操作为左滑操作;当用户实际操作为右滑操作时,电子设备100检测到的操作为右滑操作。当切换后的方向模式1为表冠在左时,电子设备100可以将表冠在右模式下的“上滑”定义为表冠在左模式下的“下滑”;将表冠在右模式下的“下滑”定义为表冠在左模式下的“上滑”;将表冠在右模式下的“左滑”定义为表冠在左模式下的“右滑”;将表冠在右模式下的“右滑”定义为表冠在左模式下的“左滑”。当切换后的方向模式1为表冠在上时,电子设备100可以将表冠在右模式下的“上滑”定义为表冠在上模式下的“左滑”;将表冠在右模式下的“下滑”定义为表冠在上模式下的“右滑”;将表冠在右模式下的“左滑”定义为表冠在上模式下的“下滑”;将表冠在右模式下的“右滑”定义为表冠在上模式下的“上滑”。当切换后的方向模式1为表冠在下时,电子设备100可以将表冠在右模式下的“上滑”定义为表冠在下模式下的“右滑”;将表冠在右模式下的“下滑”定义为表冠在下模式下的“左滑”;将表冠在右模式下的“左滑”定义为表冠在下模式下的“上滑”;将表冠在右模式下的“右滑”定义为表冠在下模式下的“下滑”。As shown in Table 3, the initial direction mode is the crown on the right, and the electronic device 100 is set by default to the case where the crown is on the right. When the user's actual operation is an upward sliding operation, the operation detected by the electronic device 100 is an upward sliding operation; when the user's actual operation is a downward sliding operation, the operation detected by the electronic device 100 is a downward sliding operation; when the user's actual operation is a left sliding operation, the operation detected by the electronic device 100 is a left sliding operation; when the user's actual operation is a right sliding operation, the operation detected by the electronic device 100 is a right sliding operation. When the switched direction mode 1 is the crown on the left, the electronic device 100 can define the "upward sliding" of the crown in the right mode as the "downward sliding" of the crown in the left mode; define the "downward sliding" of the crown in the right mode as the "upward sliding" of the crown in the left mode; define the "left sliding" of the crown in the right mode as the "right sliding" of the crown in the left mode; and define the "right sliding" of the crown in the right mode as the "left sliding" of the crown in the left mode. When the switched direction mode 1 is the crown up, the electronic device 100 may define the “up swipe” in the right mode as the “left swipe” in the crown up mode; define the “down swipe” in the right mode as the “right swipe” in the crown up mode; define the “left swipe” in the right mode as the “down swipe” in the crown up mode; define the “right swipe” in the right mode as the “up swipe” in the crown up mode. When the switched direction mode 1 is the crown down, the electronic device 100 may define the “up swipe” in the right mode as the “right swipe” in the crown down mode; define the “down swipe” in the right mode as the “left swipe” in the crown down mode; define the “left swipe” in the right mode as the “up swipe” in the crown down mode; define the “right swipe” in the right mode as the “down swipe” in the crown down mode.
可以理解的是,表3所示实施例只是一个示例,在本申请实施例中,初始方向模式也可以是与表3所示实施例不同的方向模式,滑动事件也可以包括左上滑动、右上滑动等更多或更少的滑动事件,还可以包括与上述实施例不同的滑动事件,方向模式也可以包括更多或更少的方向模式,本申请在此均不做限定。It can be understood that the embodiment shown in Table 3 is only an example. In the embodiments of the present application, the initial direction mode may also be a direction mode different from the embodiment shown in Table 3, the sliding event may also include more or fewer sliding events such as upper left sliding, upper right sliding, etc., and may also include sliding events different from the above embodiments. The direction mode may also include more or fewer direction modes, and the present application does not make any limitations here.
这样,在电子设备100旋转到方向模式对应的位置(即显示内容正向显示)时,电子设备100检测到的触屏事件的方向可以与用户实际操作的方向匹配。In this way, when the electronic device 100 is rotated to a position corresponding to the direction mode (ie, the display content is displayed forward), the direction of the touch screen event detected by the electronic device 100 can match the direction of the user's actual operation.
电子设备100在确定方向模式1之后,可以基于切换后的方向模式1与滑动事件转换适配的对应关系,对触屏事件中的滑动事件进行适配。After determining the direction mode 1, the electronic device 100 may adapt the sliding event in the touch screen event based on the corresponding relationship between the switched direction mode 1 and the sliding event conversion adaptation.
在另一些实施例中,电子设备100也可以在确定顺时针旋转的旋转角度1之后,基于旋转角度1对触屏事件进行适配。具体的,电子设备100可以将滑动操作的方向沿逆时针旋转,且旋转角度为旋转角度1。
其中,若旋转角度1为方向模式1相对于初始方向模式的旋转角度,则电子设备100可以将初始方向模式下滑动事件执行逆时针旋转得到转换后的滑动事件。例如,在初始方向模式为表冠在右的情况下,若旋转角度1为90°,初始方向模式下的上滑操作在逆时针旋转90°之后,转换的事件为左滑操作;初始方向模式下的下滑操作在逆时针旋转90°之后,转换的事件为右滑操作,等。在一些实施例中,若旋转角度1为方向模式1相对于切换之前的方向模式2的旋转角度,则电子设备100可以将方向模式2下滑动事件执行逆时针旋转得到转换后的滑动事件。例如,在方向模式2为表冠在上的情况下,若旋转角度1为180°,方向模式2下的上滑操作在逆时针旋转180°之后,转换的事件为下滑操作;方向模式2下的下滑操作在逆时针旋转180°之后,转换的事件为上滑操作,等。In other embodiments, after determining the clockwise rotation angle 1, the electronic device 100 may also adapt the touch screen event based on the rotation angle 1. Specifically, the electronic device 100 may rotate the sliding operation counterclockwise, and the rotation angle is the rotation angle 1. Among them, if the rotation angle 1 is the rotation angle of the direction mode 1 relative to the initial direction mode, the electronic device 100 can perform a counterclockwise rotation of the sliding event in the initial direction mode to obtain a converted sliding event. For example, when the initial direction mode is the crown on the right, if the rotation angle 1 is 90°, the sliding operation in the initial direction mode is rotated 90° counterclockwise, and the converted event is a left sliding operation; the sliding operation in the initial direction mode is rotated 90° counterclockwise, and the converted event is a right sliding operation, etc. In some embodiments, if the rotation angle 1 is the rotation angle of the direction mode 1 relative to the direction mode 2 before switching, the electronic device 100 can perform a counterclockwise rotation of the sliding event in the direction mode 2 to obtain a converted sliding event. For example, when the direction mode 2 is the crown on the top, if the rotation angle 1 is 180°, the sliding operation in the direction mode 2 is rotated 180° counterclockwise, and the converted event is a sliding operation; the sliding operation in the direction mode 2 is rotated 180° counterclockwise, and the converted event is a sliding operation, etc.
这样,当电子设备100旋转一定角度,使表冠14A相对于机芯11A的位置与方向模式1指示的表冠14A相对于机芯11A的位置一致时,用户在显示屏13A上的上滑操作对应上滑事件的响应逻辑,用户在显示屏13A上的下滑操作对应下滑操作的响应逻辑,左滑操作对应左滑事件的响应逻辑,右滑操作对应右滑事件的响应逻辑等。In this way, when the electronic device 100 rotates a certain angle so that the position of the crown 14A relative to the movement 11A is consistent with the position of the crown 14A relative to the movement 11A indicated by direction mode 1, the user's swipe up operation on the display screen 13A corresponds to the response logic of the swipe up event, the user's swipe down operation on the display screen 13A corresponds to the response logic of the swipe down operation, the left swipe operation corresponds to the response logic of the left swipe event, the right swipe operation corresponds to the response logic of the right swipe event, and so on.
在另一些实施例中,电子设备100也可以将触屏事件的参数(例如滑动事件的方向等)和电子设备100内部存储的坐标系配置到集成电路(integrated circuit,IC)内部,实现触屏操作功能。具体的,电子设备100可以基于坐标系的坐标轴方向定义触屏事件的方向。此时,也可以通过对该坐标系进行适配来实现触屏事件适配的目的,对坐标系的适配可以参考下述步骤S706中的相关描述,此处暂不详述。In other embodiments, the electronic device 100 may also configure the parameters of the touch screen event (such as the direction of the sliding event, etc.) and the coordinate system stored inside the electronic device 100 into an integrated circuit (IC) to implement the touch screen operation function. Specifically, the electronic device 100 may define the direction of the touch screen event based on the coordinate axis direction of the coordinate system. At this time, the purpose of touch screen event adaptation may also be achieved by adapting the coordinate system. The adaptation of the coordinate system may refer to the relevant description in the following step S706, which will not be described in detail here.
S705,电子设备100基于方向模式1或旋转角度1对旋转表冠事件进行适配。S705 , the electronic device 100 adapts the crown rotation event based on direction mode 1 or rotation angle 1 .
在一些实施例中,电子设备100可以检测用户作用于表冠14A(或按键15B等)的操作,例如旋转表冠事件,旋转表冠事件是指表冠14A在上述图1D所示Z轴和X轴所在的二维平面上的旋转操作,具体可以包括顺时针旋转操作和逆时针旋转操作,用户针对表冠14A的旋转操作可以触发电子设备100执行对应的响应。In some embodiments, the electronic device 100 can detect operations performed by a user on the crown 14A (or button 15B, etc.), such as a crown rotation event. A crown rotation event refers to a rotation operation of the crown 14A on the two-dimensional plane where the Z axis and the X axis shown in FIG. 1D are located. Specifically, it may include a clockwise rotation operation and a counterclockwise rotation operation. The user's rotation operation on the crown 14A can trigger the electronic device 100 to perform a corresponding response.
电子设备100可以在确定方向模式1或旋转角度1之后,对旋转表冠事件进行适配。在另一些实施例中,电子设备100也可以在确定方向模式1或旋转角度1之后,且检测到用户的作用于表冠14A的旋转操作时,对旋转表冠事件进行适配。The electronic device 100 may adapt the crown rotation event after determining direction mode 1 or rotation angle 1. In other embodiments, the electronic device 100 may also adapt the crown rotation event after determining direction mode 1 or rotation angle 1 and detecting the user's rotation operation on the crown 14A.
在一些实施例中,电子设备100可以基于方向模式1对旋转表冠事件进行适配。示例性的,以初始方向模式为表冠在右为例,表4示出了一种电子设备100中存储的切换后的方向模式1与旋转表冠事件转换适配的对应关系。In some embodiments, the electronic device 100 can adapt the crown rotation event based on direction mode 1. For example, taking the initial direction mode of the crown being on the right as an example, Table 4 shows a correspondence between the switched direction mode 1 and the crown rotation event conversion adaptation stored in the electronic device 100.
表4
Table 4
Table 4
如表4所示,初始方向模式为表冠在右,电子设备100默认设置在表冠在右的情况下顺时针旋转表冠(即向上旋转表冠)为初始方向模式下的顺时针旋转表冠,逆时针旋转表冠为初始方向模式下的逆时针旋转表冠;当切换后的方向模式1为表冠在左时,初始方向模式下的顺时针旋转表冠转换为逆时针旋转表冠,逆时针旋转表冠转换为顺时针旋转;当切换后的方向模式1为表冠在上时,初始方向模式下的顺时针旋转表冠转换为顺时针旋转表冠,逆时针旋转表冠转换为逆时针旋转;当切换后的方向模式1为表冠在下时,初始方向模式下的顺时针旋转表冠转换为逆时针旋转表冠,逆时针旋转表冠转换为顺时针旋转。As shown in Table 4, the initial direction mode is the crown on the right, and the electronic device 100 is set by default that when the crown is on the right, rotating the crown clockwise (i.e., rotating the crown upward) is the clockwise rotation of the crown in the initial direction mode, and rotating the crown counterclockwise is the counterclockwise rotation of the crown in the initial direction mode; when the direction mode 1 after switching is the crown on the left, the clockwise rotation of the crown in the initial direction mode is converted to counterclockwise rotation of the crown, and the counterclockwise rotation of the crown is converted to clockwise rotation; when the direction mode 1 after switching is the crown on the top, the clockwise rotation of the crown in the initial direction mode is converted to clockwise rotation of the crown, and the counterclockwise rotation of the crown is converted to counterclockwise rotation; when the direction mode 1 after switching is the crown on the bottom, the clockwise rotation of the crown in the initial direction mode is converted to counterclockwise rotation of the crown, and the counterclockwise rotation of the crown is converted to clockwise rotation.
可以理解的是,表4所示实施例只是一个示例,在本申请实施例中,初始方向模式也可以是与表4所示实施例不同的方向模式,也可以包括与上述实施例中不同的旋转表冠事件转换适配,还可以包括更多或更少的方向模式,本申请在此均不做限定。It can be understood that the embodiment shown in Table 4 is only an example. In the embodiments of the present application, the initial direction mode may also be a direction mode different from the embodiment shown in Table 4, and may also include a rotation crown event conversion adaptation different from the above embodiments, and may also include more or fewer direction modes, which are not limited in the present application.
在另一些实施例中,电子设备100也可以在确定旋转角度1(顺时针旋转)之后,基于旋转角度1对旋转表冠事件进行适配。具体的,在旋转角度1为方向模式1相对于初始方向模式的旋转角度的情况下,若旋转角度1处于第一角度范围,则适配后的旋转表冠事件与初始方向模式下的旋转表冠事件相同;若旋
转角度1处于第二角度范围,则适配后的旋转表冠事件与初始方向模式下的旋转表冠事件相反,即初始方向模式下的顺时针旋转表冠切换为逆时针旋转表冠,初始方向模式下的逆时针旋转表冠切换为顺时针旋转表冠。其中,第一角度范围可以包括[0°,90°]和(270°,360°],第二角度范围可以包括(90°,270°]。In other embodiments, the electronic device 100 may also adapt the crown rotation event based on rotation angle 1 after determining rotation angle 1 (clockwise rotation). Specifically, when rotation angle 1 is the rotation angle of direction mode 1 relative to the initial direction mode, if rotation angle 1 is within the first angle range, the crown rotation event after adaptation is the same as the crown rotation event in the initial direction mode; If the rotation angle 1 is in the second angle range, the adapted rotation crown event is opposite to the rotation crown event in the initial direction mode, that is, the clockwise rotation crown in the initial direction mode is switched to the counterclockwise rotation crown, and the counterclockwise rotation crown in the initial direction mode is switched to the clockwise rotation crown. The first angle range may include [0°, 90°] and (270°, 360°], and the second angle range may include (90°, 270°].
需要说明的是,在另一些实施例中,若电子设备100不具备表冠14A(例如上述图1B所示的设备形态下,电子设备100包括按键15B而不包括表冠),或是电子设备100的表冠14A没有对应的旋转表冠事件,在这种情况下,电子设备100也可以不执行该步骤S705。在一些实施例中,若电子设备100的按键15B包括上按键和下按键,或是电子设备100的操作杆等其他器件存在向上拨动和向下拨动等事件时,电子设备100也可以基于切换后的方向模式1或旋转角度1对对应的事件进行适配,此处不再赘述。It should be noted that, in other embodiments, if the electronic device 100 does not have a crown 14A (for example, in the device form shown in FIG. 1B above, the electronic device 100 includes a button 15B but does not include a crown), or the crown 14A of the electronic device 100 does not have a corresponding event of rotating the crown, in this case, the electronic device 100 may not perform step S705. In some embodiments, if the button 15B of the electronic device 100 includes an up button and a down button, or other devices such as an operating stick of the electronic device 100 have events such as upward and downward dialing, the electronic device 100 may also adapt the corresponding event based on the switched direction mode 1 or rotation angle 1, which will not be described in detail here.
这样,在对用户作用于表冠14A(或按键15B)的操作适配之后,方向模式切换前后(或电子设备100旋转前后),电子设备100可以正常检测用户作用于表冠14A(或按键15B)的操作。In this way, after adapting to the user's operation on the crown 14A (or button 15B), the electronic device 100 can normally detect the user's operation on the crown 14A (or button 15B) before and after the direction mode is switched (or before and after the electronic device 100 is rotated).
S706,电子设备100基于方向模式1或旋转角度1对坐标系进行适配。S706 : The electronic device 100 adapts the coordinate system based on direction mode 1 or rotation angle 1 .
在本申请实施例中,电子设备100可以存储有坐标系,该坐标系可以基于IMU中的任一种器件的三个轴建立的三维空间坐标系。IMU可以包括以下任一项或多项:加速度计(accelerometer unit)、陀螺仪(gyro-sensor)、磁力计等。因此,电子设备100存储的坐标系也可以称作A+G坐标系。具体的,以陀螺仪的三个轴为例,A+G坐标系的三个轴可以是与陀螺仪的三个轴分别对应的坐标轴,也可以是将陀螺仪是三个轴旋转之后得到的三个坐标轴。In an embodiment of the present application, the electronic device 100 may store a coordinate system, which may be a three-dimensional space coordinate system established based on the three axes of any device in the IMU. The IMU may include any one or more of the following: an accelerometer (accelerometer unit), a gyroscope (gyro-sensor), a magnetometer, etc. Therefore, the coordinate system stored in the electronic device 100 may also be referred to as an A+G coordinate system. Specifically, taking the three axes of the gyroscope as an example, the three axes of the A+G coordinate system may be coordinate axes corresponding to the three axes of the gyroscope, or may be three coordinate axes obtained by rotating the three axes of the gyroscope.
电子设备100可以将手势参数(包括不同手势操作对应的手腕移动方向)和坐标系配置到集成电路(integrated circuit,IC)内部,实现电子设备100的手势功能(例如抬腕、摆臂等)。因此,在对坐标系适配之后,电子设备100的手势功能也可以在当前的场景中正常使用。可以理解的是,步骤S706是可选步骤,在一些实施例中,若电子设备100没有配置手势功能,或是电子设备100处于机芯模式下时,电子设备100也可以不执行该步骤S706。The electronic device 100 can configure gesture parameters (including wrist movement directions corresponding to different gesture operations) and coordinate systems into an integrated circuit (IC) to implement gesture functions (such as raising the wrist, swinging the arm, etc.) of the electronic device 100. Therefore, after adapting the coordinate system, the gesture function of the electronic device 100 can also be used normally in the current scene. It can be understood that step S706 is an optional step. In some embodiments, if the electronic device 100 is not configured with a gesture function, or the electronic device 100 is in the movement mode, the electronic device 100 may not execute step S706.
在本申请实施例中,在方向模式切换之前,电子设备100存储的坐标系的三个轴可以称作X0轴、Y0轴和Z0轴。In the embodiment of the present application, before the direction mode is switched, the three axes of the coordinate system stored in the electronic device 100 may be referred to as the X0 axis, the Y0 axis, and the Z0 axis.
示例性的,图9A示出了一种方向模式切换之前电子设备100存储的坐标系。Exemplarily, FIG. 9A shows a coordinate system stored by the electronic device 100 before the direction mode is switched.
如图9A所示,电子设备100可以以显示屏13A的中心位置为原点O,基于IMU中的任一种器件(例如陀螺仪、加速度计、磁力计等)的三个轴作为该三维坐标系的三个轴建立三维空间坐标系,且X0轴、Y0轴和Z0轴中的任两个坐标轴互相垂直。在本申请实施例中,由于该三维空间坐标系的X0轴、Y0轴以及Z0轴可以分别与电子设备100的加速度计(accelerometer unit)的三个轴一一对应,或是分别与陀螺仪(gyro-sensor)的三个轴一一相对应,因此,该三维空间坐标系X0Y0Z0也可以称作A+G坐标系。需要说明的是,在电子设备100旋转的过程中,由于电子设备100的IMU也会跟随电子设备100发生旋转,因此,三维空间坐标系X0Y0Z0也会发生旋转。即,三维空间坐标系X0Y0Z0相对于电子设备100是固定的,但是相对于上述图1D所示的三维空间坐标系XYZ不是固定的。在一些实施例中,例如,当电子设备100默认设置表冠在右,且电子设备100的表冠14A位于机芯11A的右侧时,三维空间坐标系X0Y0Z0可以与上述图1D所示的三维空间坐标系XYZ重合。在方向模式切换之后(或电子设备100旋转之后),电子设备100存储的坐标系的三个轴可以称作X1轴、Y1轴和Z1轴。需要说明的是,在电子设备100的旋转过程中,只需要考虑XOY平面的旋转,即只要考虑X0轴到X1轴的旋转,以及Y0轴到Y1轴的旋转,且旋转角度与方向模式1的对应关系可以参考下述内容,Z1轴则保持原本图9A所示坐标系中Z0轴与X0轴、Y0轴的相对位置关系即可。As shown in FIG9A , the electronic device 100 can establish a three-dimensional space coordinate system based on the three axes of any device in the IMU (such as a gyroscope, an accelerometer, a magnetometer, etc.) as the three axes of the three-dimensional coordinate system, and any two coordinate axes of the X0 axis, the Y0 axis, and the Z0 axis are perpendicular to each other. In the embodiment of the present application, since the X0 axis, the Y0 axis, and the Z0 axis of the three-dimensional space coordinate system can correspond one-to-one with the three axes of the accelerometer (accelerometer unit) of the electronic device 100, or correspond one-to-one with the three axes of the gyro (gyro-sensor), the three-dimensional space coordinate system X0Y0Z0 can also be called the A+G coordinate system. It should be noted that during the rotation of the electronic device 100, since the IMU of the electronic device 100 will also rotate with the electronic device 100, the three-dimensional space coordinate system X0Y0Z0 will also rotate. That is, the three-dimensional space coordinate system X0Y0Z0 is fixed relative to the electronic device 100, but is not fixed relative to the three-dimensional space coordinate system XYZ shown in FIG. 1D above. In some embodiments, for example, when the crown of the electronic device 100 is set to the right by default, and the crown 14A of the electronic device 100 is located on the right side of the movement 11A, the three-dimensional space coordinate system X0Y0Z0 may coincide with the three-dimensional space coordinate system XYZ shown in FIG. 1D above. After the direction mode is switched (or after the electronic device 100 is rotated), the three axes of the coordinate system stored by the electronic device 100 may be referred to as the X1 axis, the Y1 axis, and the Z1 axis. It should be noted that during the rotation of the electronic device 100, only the rotation of the XOY plane needs to be considered, that is, only the rotation from the X0 axis to the X1 axis and the rotation from the Y0 axis to the Y1 axis need to be considered, and the corresponding relationship between the rotation angle and the direction mode 1 can refer to the following content, and the Z1 axis maintains the relative position relationship between the Z0 axis and the X0 axis and the Y0 axis in the coordinate system shown in FIG. 9A.
示例性的,以表冠在右为初始方向模式为例,表5示出了电子设备100中存储的切换后的方向模式1与坐标系需要旋转的角度之间的对应。Exemplarily, taking the crown at the right as the initial direction mode as an example, Table 5 shows the correspondence between the switched direction mode 1 stored in the electronic device 100 and the angle at which the coordinate system needs to be rotated.
表5
Table 5
Table 5
如表5所示,初始方向模式为表冠在右,电子设备100默认设置在表冠在右的情况下坐标系位初始坐
标系,初始坐标系可以是上述图1D所示的坐标系,此时旋转角度为0°。当切换后的方向模式1为表冠在左时,切换后的坐标系相对于初始坐标系的旋转角度为180°;当切换后的方向模式1为表冠在上时,切换后的坐标系相对于初始坐标系的旋转角度为顺时针旋转90°;当切换后的方向模式1为表冠在下时,切换后的坐标系相对于初始坐标系的旋转角度为顺时针旋转270°。As shown in Table 5, the initial orientation mode is that the crown is on the right, and the electronic device 100 is set by default to the initial coordinate system position when the crown is on the right. The initial coordinate system can be the coordinate system shown in FIG. 1D above, and the rotation angle is 0°. When the direction mode 1 after switching is the crown on the left, the rotation angle of the switched coordinate system relative to the initial coordinate system is 180°; when the direction mode 1 after switching is the crown on the top, the rotation angle of the switched coordinate system relative to the initial coordinate system is 90° clockwise; when the direction mode 1 after switching is the crown on the bottom, the rotation angle of the switched coordinate system relative to the initial coordinate system is 270° clockwise.
可以理解的是,表5所示实施例只是一个示例,在本申请实施例中,初始方向模式也可以是与表5所示实施例不同的方向模式,还可以包括更多或更少的方向模式,本申请在此均不做限定。It can be understood that the embodiment shown in Table 5 is only an example. In the embodiments of the present application, the initial direction mode may also be a direction mode different from the embodiment shown in Table 5, and may also include more or fewer direction modes, which is not limited in the present application.
在确定坐标系需要旋转的角度之后,电子设备100可以基于旋转角度将显示屏13A所在的二维平面坐标系进行旋转,或是将三维空间坐标系中X轴和Y轴所构成的二维直角坐标系进行旋转,并与Z轴构建成新的三维空间坐标系。After determining the angle at which the coordinate system needs to be rotated, the electronic device 100 can rotate the two-dimensional plane coordinate system where the display screen 13A is located based on the rotation angle, or rotate the two-dimensional rectangular coordinate system formed by the X-axis and Y-axis in the three-dimensional space coordinate system, and construct a new three-dimensional space coordinate system with the Z axis.
在另一些实施例中,电子设备100可以基于旋转角度1对坐标系进行适配。具体的,在旋转角度1为方向模式1相对于切换之前的方向模式2的旋转角度的情况下,电子设备100可以将当前坐标系以逆时针旋转得到适配后的坐标系,且旋转角度为旋转角度1(或是顺时针旋转,且旋转角度为360°与旋转角度1的差值);在旋转角度1为方向模式1相对于初始方向模式的旋转角度的情况下,电子设备100可以将初始方向模式下的标准坐标系以逆时针旋转得到适配后的坐标系,且旋转角度为旋转角度1。In other embodiments, the electronic device 100 may adapt the coordinate system based on the rotation angle 1. Specifically, when the rotation angle 1 is the rotation angle of the direction mode 1 relative to the direction mode 2 before switching, the electronic device 100 may rotate the current coordinate system counterclockwise to obtain an adapted coordinate system, and the rotation angle is the rotation angle 1 (or clockwise, and the rotation angle is the difference between 360° and the rotation angle 1); when the rotation angle 1 is the rotation angle of the direction mode 1 relative to the initial direction mode, the electronic device 100 may rotate the standard coordinate system in the initial direction mode counterclockwise to obtain an adapted coordinate system, and the rotation angle is the rotation angle 1.
图9A至图9D示出了本申请实施例提供的一种模式切换前后坐标系变化示意图。9A to 9D are schematic diagrams showing changes in a coordinate system before and after a mode switch provided in an embodiment of the present application.
示例性的,在方向模式切换之前(且电子设备100旋转之前),电子设备100存储的坐标系X0Y0Z0可以参考上述图9A所示实施例。Exemplarily, before the orientation mode is switched (and before the electronic device 100 is rotated), the coordinate system X0Y0Z0 stored in the electronic device 100 may refer to the embodiment shown in FIG. 9A above.
当电子设备100发生旋转时,例如电子设备100旋转到如图9B所示的表冠14A位于机芯11A的下方时,电子设备100存储的坐标系也会发生旋转,且X0轴、Y0轴的旋转方向、旋转角度与电子设备100的旋转方向、旋转角度相同。旋转后的三维空间坐标系X0Y0Z0如图9B所示,其中,表冠14A在机芯11A的下方,即位于X0轴的正向。Y0轴与X0轴相互垂直,且X0轴和Y0轴构成的二维平面为显示屏13A所在的屏面。Z0轴与X0轴、Y0轴相互垂直。When the electronic device 100 rotates, for example, when the electronic device 100 rotates to the point where the crown 14A is located below the movement 11A as shown in FIG. 9B , the coordinate system stored in the electronic device 100 will also rotate, and the rotation direction and rotation angle of the X0 axis and the Y0 axis are the same as the rotation direction and rotation angle of the electronic device 100. The rotated three-dimensional space coordinate system X0Y0Z0 is shown in FIG. 9B , wherein the crown 14A is located below the movement 11A, i.e., in the positive direction of the X0 axis. The Y0 axis is perpendicular to the X0 axis, and the two-dimensional plane formed by the X0 axis and the Y0 axis is the screen surface where the display screen 13A is located. The Z0 axis is perpendicular to the X0 axis and the Y0 axis.
当电子设备100将方向模式从表冠在右切换到表冠在下时,基于三维空间坐标系X0Y0Z0适配后的坐标系X1Y1Z1如图9C所示。如图9C所示,三维空间坐标系X1Y1Z1包括三个互相垂直的轴:X1轴、Y1轴和Z1轴,且原点O位于显示屏13A的中心位置,显示屏13A位于X1轴和Y1轴构建的二维平面上,且电子设备100的表冠14A位于机芯11A的右侧。X1轴为X0轴以原点O为中心,顺时针旋转270°后的坐标轴;Y1轴为Y0轴以原点O为中心,顺时针旋转270°后的坐标轴。此时,电子设备100的显示内容为左向显示。其中,表冠14A相对于机芯11A的方向为Y1轴负向。When the electronic device 100 switches the direction mode from crown on right to crown on bottom, the coordinate system X1Y1Z1 adapted based on the three-dimensional space coordinate system X0Y0Z0 is shown in FIG9C . As shown in FIG9C , the three-dimensional space coordinate system X1Y1Z1 includes three mutually perpendicular axes: the X1 axis, the Y1 axis, and the Z1 axis, and the origin O is located at the center of the display screen 13A, the display screen 13A is located on the two-dimensional plane constructed by the X1 axis and the Y1 axis, and the crown 14A of the electronic device 100 is located on the right side of the movement 11A. The X1 axis is the coordinate axis of the X0 axis after rotating 270° clockwise with the origin O as the center; the Y1 axis is the coordinate axis of the Y0 axis after rotating 270° clockwise with the origin O as the center. At this time, the display content of the electronic device 100 is displayed in the left direction. Among them, the direction of the crown 14A relative to the movement 11A is the negative direction of the Y1 axis.
当电子设备100旋转到表冠14A位于机芯11A的下方时,上述图9C所示三维空间坐标系X1Y1Z1跟随电子设备100旋转,旋转后的电子设备100以及坐标系X1Y1Z1如图9D所示。如图9D所示,电子设备100的显示内容为正向显示,且旋转后的三维空间坐标系X1Y1Z1与上述图9A所示的三维空间坐标系X0Y0Z0重合。可以理解的是,图9A和图9D所示实施例只是示例性说明方向模式切换前后坐标系的变化,在本申请实施例中,切换前后的方向模式也可以是其他方向模式,坐标系也可以是其他类型的坐标系,本申请在此不做限定。When the electronic device 100 rotates until the crown 14A is located below the movement 11A, the three-dimensional space coordinate system X1Y1Z1 shown in FIG. 9C rotates with the electronic device 100, and the rotated electronic device 100 and the coordinate system X1Y1Z1 are shown in FIG. 9D. As shown in FIG. 9D, the display content of the electronic device 100 is displayed in the forward direction, and the rotated three-dimensional space coordinate system X1Y1Z1 coincides with the three-dimensional space coordinate system X0Y0Z0 shown in FIG. 9A. It can be understood that the embodiments shown in FIG. 9A and FIG. 9D are only exemplary illustrations of the changes in the coordinate system before and after the direction mode is switched. In the embodiments of the present application, the direction mode before and after the switch may also be other direction modes, and the coordinate system may also be other types of coordinate systems, which are not limited in the present application.
这样,在对电子设备100存储的坐标系适配之后,方向模式切换前后(或电子设备100旋转前后),电子设备100可以正常检测用户的手势操作(例如抬腕操作等)。In this way, after the coordinate system stored in the electronic device 100 is adapted, the electronic device 100 can normally detect the user's gesture operation (such as wrist raising operation, etc.) before and after the direction mode is switched (or before and after the electronic device 100 is rotated).
采用本申请实施例提供的模式切换方法,电子设备100可以基于用户设置的方向模式对显示内容、触屏事件、旋转表冠事件以及坐标系等进行适配,这样,无论电子设备100旋转多少角度,用户都可以很方便地查看电子设备100的显示内容,并对显示内容进行操作。By adopting the mode switching method provided in the embodiment of the present application, the electronic device 100 can adapt the display content, touch screen events, crown rotation events, and coordinate system based on the direction mode set by the user. In this way, no matter how much the electronic device 100 is rotated, the user can easily view the display content of the electronic device 100 and operate the display content.
下面介绍本申请实施例提供的另一种模式切换方法的具体流程。The following describes the specific process of another mode switching method provided in an embodiment of the present application.
如图10所示,本申请实施例提供的另一种模式切换方法的具体流程可以包括以下步骤:As shown in FIG. 10 , the specific process of another mode switching method provided in an embodiment of the present application may include the following steps:
S1001,电子设备100开启微动检测。S1001, the electronic device 100 starts micro-motion detection.
在一些实施例中,电子设备100可以接收并响应于用户开启微动检测的操作,开启微动检测,电子设备100可以开始监测电子设备100(或机芯11A)的旋转。其中,用户开启微动检测的操作可以是上述图6B所示实施例中针对微动检测开关441的点击操作。In some embodiments, the electronic device 100 may receive and respond to the user's operation of turning on micro-motion detection, turn on micro-motion detection, and the electronic device 100 may begin to monitor the rotation of the electronic device 100 (or the movement 11A). The user's operation of turning on micro-motion detection may be a click operation on the micro-motion detection switch 441 in the embodiment shown in FIG. 6B above.
在另一些实施例中,电子设备100也可以在设备启动之后默认开启微动检测。
In some other embodiments, the electronic device 100 may also enable micro-motion detection by default after the device is started.
在一些实施例中,电子设备100也可以在检测到电子设备100的佩戴模式为机芯模式(或是在检测到用户将佩戴模式切换为机芯模式的操作)时,开启微动检测。In some embodiments, the electronic device 100 may also enable micro-motion detection when it is detected that the wearing mode of the electronic device 100 is the movement mode (or when it is detected that the user switches the wearing mode to the movement mode).
可以理解的是,上述电子设备100开启微动检测的触发条件只是一些示例,在本申请实施例中,触发电子设备100开启微动检测的条件也可以是与上述实施例不同的触发条件,还可以包括比上述触发条件更多或更少的条件,本申请在此不做限定。It can be understood that the trigger conditions for the electronic device 100 to enable micro-motion detection are just some examples. In the embodiments of the present application, the conditions for triggering the electronic device 100 to enable micro-motion detection may also be trigger conditions different from those in the above embodiments, and may also include more or fewer conditions than the above trigger conditions. The present application does not limit this.
S1002,电子设备100检测到机芯11A发生旋转时,确定机芯11A的旋转角度2。S1002: When the electronic device 100 detects that the movement 11A rotates, the rotation angle 2 of the movement 11A is determined.
电子设备100可以包括惯性测量单元(inertialmeasurementunit,IMU),IMU可以用于测量机芯11A的旋转角度。IMU可以包括一个或多个传感器,例如加速度计和陀螺仪,可选的,还可以包括磁力计等等。其中,加速度计可以用于测量电子设备100的加速度,即电子设备100在不同方向上的线性加速度。陀螺仪可用于测量电子设备100的在不同方向上的角加速度。磁力计用于测量电子设备100所处环境中不同方向的环境磁场数据。The electronic device 100 may include an inertial measurement unit (IMU), which may be used to measure the rotation angle of the movement 11A. The IMU may include one or more sensors, such as an accelerometer and a gyroscope, and optionally, a magnetometer and the like. Among them, the accelerometer may be used to measure the acceleration of the electronic device 100, that is, the linear acceleration of the electronic device 100 in different directions. The gyroscope may be used to measure the angular acceleration of the electronic device 100 in different directions. The magnetometer is used to measure the environmental magnetic field data in different directions in the environment where the electronic device 100 is located.
在开启微动检测之后,电子设备100可以通过IMU检测机芯11A的旋转,并确定出机芯11A的旋转角度2。机芯11A的旋转角度2可以是旋转前后电子设备100(或机芯11A)的旋转角度,也可以是旋转后的电子设备100(或机芯11A)相对于初始方向模式下的电子设备100(或机芯11A)的旋转角度。After micro-motion detection is turned on, the electronic device 100 can detect the rotation of the movement 11A through the IMU and determine the rotation angle 2 of the movement 11A. The rotation angle 2 of the movement 11A can be the rotation angle of the electronic device 100 (or movement 11A) before and after the rotation, or the rotation angle of the electronic device 100 (or movement 11A) after the rotation relative to the electronic device 100 (or movement 11A) in the initial orientation mode.
在一些实施例中,IMU可以返回测量结果,测量结果可以包括旋转矩阵、欧拉角和四元数中的任一项或多项,测量结果可以用于表述空间旋转。电子设备100可以基于上述测量结果获取机芯11A的旋转角度,进而确定出旋转角度2。在另一些实施例中,IMU也可以返回测量的原始数据,原始数据包括:电子设备100在加速度计的x0轴方向上的线性加速度、y0轴方向上的线性加速度和z0轴方向上的线性加速度;电子设备100以陀螺仪的x1轴为转轴旋转的角加速度、以陀螺仪的y1轴为转轴旋转的角加速度和以陀螺仪的z1轴为转轴旋转的角加速度。可选的,还可以包括电子设备100在磁力计的x2轴方向上的磁场数据、在y2轴方向上的磁场数据和在z2轴方向上的磁场数据。此时,电子设备100可以基于上述IMU测得的原始数据采用六轴融合、九轴融合等算法获取机芯11A的旋转角度,进而确定出旋转角度2。In some embodiments, the IMU may return a measurement result, which may include any one or more of a rotation matrix, Euler angles, and quaternions, and the measurement result may be used to describe a spatial rotation. The electronic device 100 may obtain the rotation angle of the movement 11A based on the above measurement results, and then determine the rotation angle 2. In other embodiments, the IMU may also return the measured raw data, which includes: the linear acceleration of the electronic device 100 in the x0 axis direction of the accelerometer, the linear acceleration in the y0 axis direction, and the linear acceleration in the z0 axis direction; the angular acceleration of the electronic device 100 rotating with the x1 axis of the gyroscope as the rotation axis, the angular acceleration of the gyroscope rotating with the y1 axis as the rotation axis, and the angular acceleration of the gyroscope rotating with the z1 axis as the rotation axis. Optionally, it may also include the magnetic field data of the electronic device 100 in the x2 axis direction of the magnetometer, the magnetic field data in the y2 axis direction, and the magnetic field data in the z2 axis direction. At this time, the electronic device 100 can use six-axis fusion, nine-axis fusion and other algorithms based on the original data measured by the above-mentioned IMU to obtain the rotation angle of the movement 11A, and then determine the rotation angle 2.
在一些实施例中,电子设备100可以将360°划分为多个等大的角度区间,例如,每个角度区间包括15°或10°等。当IMU检测到的旋转角度落在其中一个角度区间中时,电子设备100可以将该角度区间中的任一个角度(例如该角度区间的中位数)作为机芯11A旋转的角度。示例性的,以每个角度区间包括10°为例,若IMU检测到的机芯11A的旋转角度为62°,62°落在角度区间[60°,70°]中,则电子设备100可以确定旋转角度2为65°。这样,不仅可以保证显示内容处于用户便于查看和操作的方向,还可以减少由于震动、晃动导致的显示内容相对于显示屏13A的旋转,降低能耗。In some embodiments, the electronic device 100 may divide 360° into a plurality of equally large angle intervals, for example, each angle interval includes 15° or 10°, etc. When the rotation angle detected by the IMU falls within one of the angle intervals, the electronic device 100 may use any angle in the angle interval (for example, the median of the angle interval) as the angle of rotation of the movement 11A. Exemplarily, taking each angle interval including 10° as an example, if the rotation angle of the movement 11A detected by the IMU is 62°, and 62° falls within the angle interval [60°, 70°], the electronic device 100 may determine that the rotation angle 2 is 65°. In this way, it can not only ensure that the displayed content is in a direction that is convenient for the user to view and operate, but also reduce the rotation of the displayed content relative to the display screen 13A due to vibration and shaking, thereby reducing energy consumption.
S1003,电子设备100基于旋转角度2确定显示内容的旋转角度3。S1003 , the electronic device 100 determines a rotation angle 3 of the displayed content based on the rotation angle 2 .
旋转角度3是指显示内容相对于显示屏13A旋转的角度。The rotation angle 3 refers to the angle at which the display content is rotated relative to the display screen 13A.
在机芯11A顺时针旋转的角度为旋转角度2的情况下,显示内容的旋转角度可以是与机芯喜欢转角度相同方向相反的角度。即,旋转角度3可以是360°与旋转角度2的差值。例如,当机芯11A顺时针旋转45°时,旋转角度3为逆时针旋转45°,即顺时针旋转315°。When the movement 11A rotates clockwise at rotation angle 2, the rotation angle of the displayed content may be an angle in the opposite direction to the rotation angle of the movement. That is, rotation angle 3 may be the difference between 360° and rotation angle 2. For example, when the movement 11A rotates clockwise at 45°, rotation angle 3 is 45° counterclockwise, that is, 315° clockwise.
S1004,电子设备100基于旋转角度3对显示内容进行旋转。S1004: The electronic device 100 rotates the displayed content based on the rotation angle 3.
S1005,电子设备100基于旋转角度3对触屏事件进行适配。S1005: The electronic device 100 adapts the touch screen event based on the rotation angle 3.
S1006,电子设备100基于旋转角度3对旋转表冠事件进行适配。S1006 , the electronic device 100 adapts the crown rotation event based on rotation angle 3 .
S1007,电子设备100基于旋转角度3对坐标系进行适配。S1007 , the electronic device 100 adapts the coordinate system based on the rotation angle 3 .
步骤S1004至步骤S1007的具体内容可以参考上述图7所示步骤S703至步骤S706中基于旋转角度旋转显示内容,以及基于旋转角度对触屏事件、旋转表冠事件和坐标系进行适配的具体内容,此处不再赘述。The specific contents of steps S1004 to S1007 can refer to the specific contents of rotating the displayed content based on the rotation angle in steps S703 to S706 shown in Figure 7 above, and adapting the touch screen event, crown rotation event and coordinate system based on the rotation angle, which will not be repeated here.
采用本申请实施例提供的模式切换方法,电子设备100可以实时基于机芯11A的旋转角度对显示内容、触屏事件、旋转表冠事件、坐标系等内容进行适配,即便是处于机芯11A不停旋转的场景下,用户也可以很方便地对显示内容进行查看和操作。By adopting the mode switching method provided in the embodiment of the present application, the electronic device 100 can adapt the display content, touch screen events, crown rotation events, coordinate system and other contents based on the rotation angle of the movement 11A in real time. Even in the scene where the movement 11A is continuously rotating, the user can also easily view and operate the display content.
可以理解的是,图7至图10所示实施例是以电子设备100为上述图1A所示的手表100A或机芯11A为例进行说明的,在本申请实施例中,电子设备100也可以是图1B所示的手环100B或机芯11B,或是其他形态的设备,此时,方向模式也可以基于按键15B或操作杆等其他器件的位置定义,本申请在此不做限
定。It is understandable that the embodiments shown in FIGS. 7 to 10 are described by taking the electronic device 100 as the watch 100A or the movement 11A shown in FIG. 1A as an example. In the embodiment of the present application, the electronic device 100 may also be the bracelet 100B or the movement 11B shown in FIG. 1B, or a device of other forms. In this case, the direction mode may also be defined based on the position of other devices such as the button 15B or the operating lever, and the present application does not limit this. Certainly.
需要说明的是,在上述图8B至图10所示实施例中,电子设备100的旋转方向以及显示内容的旋转方向都是以顺时针旋转为例对旋转角度(例如旋转角度1、旋转角度2和旋转角度3等)进行说明,在本申请实施例中,电子设备100的旋转方向以及显示内容的旋转方向也可以是以逆时针旋转,此时,旋转角度的数值也相应做出变化,即逆时针旋转角度与相同情况下顺时针旋转角度之和为360°。本申请以下实施例中涉及旋转角度的内容也可以参考此处的相关表述。It should be noted that in the embodiments shown in Figures 8B to 10 above, the rotation direction of the electronic device 100 and the rotation direction of the displayed content are described by taking clockwise rotation as an example for the rotation angle (e.g., rotation angle 1, rotation angle 2, and rotation angle 3, etc.), and in the embodiments of the present application, the rotation direction of the electronic device 100 and the rotation direction of the displayed content can also be counterclockwise rotation. At this time, the value of the rotation angle is also changed accordingly, that is, the sum of the counterclockwise rotation angle and the clockwise rotation angle under the same circumstances is 360°. The contents related to the rotation angle in the following embodiments of the present application can also refer to the relevant statements here.
图11示出了本申请实施例提供的一种切换佩戴模式的方法流程示意图。FIG. 11 shows a flow chart of a method for switching wearing modes provided in an embodiment of the present application.
如图11所示,本申请实施例提供的一种切换佩戴模式的方法流程可以包括以下步骤:As shown in FIG11 , a method for switching wearing modes provided in an embodiment of the present application may include the following steps:
S1101,电子设备100接收到用户的操作2。S1101, the electronic device 100 receives the user's operation 2.
操作2可以是用户切换佩戴模式的操作,例如对上述图4C所示实施例中机芯模式控件422的点击操作,或是对腕表模式控件421的点击操作,等。在另一些实施例中,操作2也可以是用户将机芯11A与表带12A(例如,表带12A上的壳体)连接或拆分的操作。在另一些实施例中,电子设备100也可以设置手势操作来切换佩戴模式,此时,电子设备100可以设置有切换至机芯模式的手势操作1和切换至腕表模式的手势操作2,手势操作1和手势操作2不同。操作2可以是手势操作1或手势操作2。Operation 2 may be an operation for the user to switch the wearing mode, such as a click operation on the movement mode control 422 in the embodiment shown in FIG. 4C above, or a click operation on the watch mode control 421, etc. In other embodiments, operation 2 may also be an operation for the user to connect or separate the movement 11A and the strap 12A (for example, the housing on the strap 12A). In other embodiments, the electronic device 100 may also be provided with gesture operations to switch the wearing mode. In this case, the electronic device 100 may be provided with gesture operation 1 for switching to the movement mode and gesture operation 2 for switching to the watch mode, and gesture operation 1 and gesture operation 2 are different. Operation 2 may be gesture operation 1 or gesture operation 2.
S1102,响应于操作2,电子设备100切换佩戴模式。S1102, in response to operation 2, the electronic device 100 switches the wearing mode.
佩戴模式可以包括腕表模式和机芯模式。The wearing mode may include a watch mode and a movement mode.
响应于操作2,电子设备100可以将佩戴模式由腕表模式切换为机芯模式,也可以将佩戴模式由机芯模式切换为腕表模式。In response to operation 2, the electronic device 100 may switch the wearing mode from the watch mode to the movement mode, or may switch the wearing mode from the movement mode to the watch mode.
在一些实施例中,切换后的佩戴模式取决于操作2的作用对象。例如,操作2的作用对象为上述图4C所示的机芯模式控件422,则切换后的佩戴模式为机芯模式;操作2的作用对象为上述图4C所示的腕表模式控件421,则切换后的佩戴模式为腕表模式。In some embodiments, the wearing mode after switching depends on the object of operation 2. For example, if the object of operation 2 is the movement mode control 422 shown in FIG. 4C , the wearing mode after switching is the movement mode; if the object of operation 2 is the watch mode control 421 shown in FIG. 4C , the wearing mode after switching is the watch mode.
在另一些实施例中,用户手腕佩戴电子设备100的情况下,机芯11A通过表带12上的壳体与表带12连接,壳体上和机芯11A上可以分别设置有信号发射器和信号接收器(例如芯片、LED灯和光电传感器、红外发射器和红外接收器等)。该信号发射器和信号接收器可用于识别壳体和机芯11A是否连接。在一些实施例中,机芯11A也可以通过磁力计检测壳体上的芯片,来判断壳体与机芯11A是否连接。当电子设备100确定壳体与机芯11A连接时,电子设备100可以确定佩戴模式为腕表模式;当电子设备100确定壳体与机芯11A未连接时,电子设备100可以确定佩戴模式为机芯模式。In other embodiments, when the user wears the electronic device 100 on the wrist, the movement 11A is connected to the strap 12 through the shell on the strap 12, and the shell and the movement 11A may be provided with a signal transmitter and a signal receiver (such as a chip, an LED light and a photoelectric sensor, an infrared transmitter and an infrared receiver, etc.). The signal transmitter and the signal receiver can be used to identify whether the shell and the movement 11A are connected. In some embodiments, the movement 11A can also detect the chip on the shell through a magnetometer to determine whether the shell and the movement 11A are connected. When the electronic device 100 determines that the shell is connected to the movement 11A, the electronic device 100 can determine that the wearing mode is the watch mode; when the electronic device 100 determines that the shell is not connected to the movement 11A, the electronic device 100 can determine that the wearing mode is the movement mode.
在另一些实施例中,若电子设备100设置有切换至机芯模式的手势操作1和切换至腕表模式的手势操作2,手势操作1和手势操作2不同,则电子设备100也可以基于操作2是否为手势操作1确定切换后的佩戴模式是否为机芯模式。In other embodiments, if the electronic device 100 is provided with gesture operation 1 for switching to the movement mode and gesture operation 2 for switching to the watch mode, and gesture operation 1 and gesture operation 2 are different, the electronic device 100 can also determine whether the wearing mode after switching is the movement mode based on whether operation 2 is gesture operation 1.
在一些实施例中,腕表模式和/或机芯模式还可以细分为多个模式,例如腕表模式可以包括正向佩戴和反向佩戴等;机芯模式可以包括项链模式、怀表模式、闹钟模式等。在这种情况下,响应于操作2,电子设备100还可以将佩戴模式由腕表模式中的一种模式(例如正向佩戴)切换为腕表模式中的另一种模式(例如反向模式),或是由机芯模式中的一种模式(例如项链模式)切换为机芯模式下的另一种模式(例如闹钟模式)等。In some embodiments, the watch mode and/or the movement mode may be further subdivided into multiple modes, for example, the watch mode may include forward wearing and reverse wearing, etc.; the movement mode may include necklace mode, pocket watch mode, alarm clock mode, etc. In this case, in response to operation 2, the electronic device 100 may also switch the wearing mode from one mode in the watch mode (for example, forward wearing) to another mode in the watch mode (for example, reverse mode), or from one mode in the movement mode (for example, necklace mode) to another mode in the movement mode (for example, alarm clock mode), etc.
在一些实施例中,电子设备100也可以存储有佩戴模式与方向模式之间的对应关系。在这种情况下,响应于操作2,电子设备100可以基于切换后的佩戴模式与方向模式之间的对应关系确定是否切换方向模式,若对方向模式进行切换,则基于切换后的方向模式对显示内容、坐标系、触屏事件等进行适配,具体适配方式可以参考上述图7所示实施例中的相关内容,此处不再赘述。In some embodiments, the electronic device 100 may also store the correspondence between the wearing mode and the direction mode. In this case, in response to operation 2, the electronic device 100 may determine whether to switch the direction mode based on the correspondence between the switched wearing mode and the direction mode. If the direction mode is switched, the display content, coordinate system, touch screen event, etc. are adapted based on the switched direction mode. The specific adaptation method can refer to the relevant content in the embodiment shown in Figure 7 above, which will not be repeated here.
S1103,当切换后的佩戴模式为机芯模式时,电子设备100关闭光电容积脉搏波(photoplethysmography,PPG)测量功能。S1103, when the switched wearing mode is the movement mode, the electronic device 100 turns off the photoplethysmography (PPG) measurement function.
在确定切换后的佩戴模式为机芯模式的情况下,电子设备100可以向电子设备100的监听模块广播通知佩戴模式发生变化,通知监听模块关闭PPG测量功能。电子设备100的监听模块可以用于执行PPG测
量等功能。PPG测量可用于测量血氧、血压、压力、能耗、睡眠等运动、健康相关的数据。When it is determined that the wearing mode after switching is the movement mode, the electronic device 100 can broadcast a notification to the monitoring module of the electronic device 100 that the wearing mode has changed, and notify the monitoring module to turn off the PPG measurement function. PPG measurement can be used to measure blood oxygen, blood pressure, stress, energy consumption, sleep and other sports and health-related data.
需要说明的是,在一些实施例中,若切换前后的佩戴模式均为机芯模式,则电子设备100可以保持关闭PPG测量功能。It should be noted that, in some embodiments, if the wearing modes before and after the switch are both movement modes, the electronic device 100 can keep the PPG measurement function turned off.
S1104,当切换后的佩戴模式为腕表模式时,电子设备100开启PPG测量功能。S1104, when the wearing mode after switching is the watch mode, the electronic device 100 turns on the PPG measurement function.
在确定切换后的佩戴模式为腕表模式的情况下,电子设备100可以向电子设备100的监听模块广播通知佩戴模式发生变化,通知监听模块开启PPG测量功能。When it is determined that the wearing mode after switching is the watch mode, the electronic device 100 can broadcast a notification of the wearing mode change to the monitoring module of the electronic device 100, and notify the monitoring module to start the PPG measurement function.
需要说明的是,在一些实施例中,若切换前后的佩戴模式均为腕表模式,则电子设备100可以保持开启PPG测量功能。It should be noted that, in some embodiments, if the wearing modes before and after the switch are both watch modes, the electronic device 100 can keep the PPG measurement function turned on.
这样,可以切换电子设备100的佩戴模式。而且,在机芯模式下,可以关闭PPG测量功能,避免采集到不准确的数据影响测量结果。In this way, the wearing mode of the electronic device 100 can be switched. Moreover, in the movement mode, the PPG measurement function can be turned off to avoid collecting inaccurate data that affects the measurement results.
S1105,电子设备100接收到用户的操作3。S1105, the electronic device 100 receives the user's operation 3.
在电子设备100的佩戴模式为机芯模式的情况下,操作3可以是用户针对健康类型、运动类型等应用的图标的点击操作。操作3也可以是用户针对健康类型、运动类型等应用的应用界面中的测量控件的点击操作,该测量控件用于触发电子设备100使用PPG测量功能测量对应的数据。When the wearing mode of the electronic device 100 is the movement mode, operation 3 may be a user clicking an icon of an application of a health type, a sports type, etc. Operation 3 may also be a user clicking a measurement control in an application interface of an application of a health type, a sports type, etc., and the measurement control is used to trigger the electronic device 100 to measure corresponding data using the PPG measurement function.
S1106,电子设备100显示模式切换提示,包括模式切换控件。S1106, the electronic device 100 displays a mode switching prompt, including a mode switching control.
模式切换提示用于提示用户机芯模式下无法正常使用PPG测量功能,并询问用户是否切换为腕表模式。模式切换提示可以包括模式切换控件,模式切换控件可用于触发电子设备100将佩戴模式由机芯模式切换为腕表模式。The mode switching prompt is used to prompt the user that the PPG measurement function cannot be used normally in the movement mode, and ask the user whether to switch to the watch mode. The mode switching prompt may include a mode switching control, which can be used to trigger the electronic device 100 to switch the wearing mode from the movement mode to the watch mode.
S1107,电子设备100接收并响应于用户的操作4,将机芯模式切换为腕表模式。S1107, the electronic device 100 receives and responds to the user's operation 4, switching the movement mode to the watch mode.
操作4可以是针对模式切换控件的点击操作。操作4也可以是预设的切换至腕表模式的手势操作,还可以是将机芯11A与表带12A的壳体连接的操作。Operation 4 may be a click operation on the mode switching control, a preset gesture operation for switching to the watch mode, or an operation for connecting the movement 11A to the housing of the strap 12A.
S1108,电子设备100执行操作3对应的响应。S1108, the electronic device 100 executes a response corresponding to operation 3.
在确定佩戴模式切换至腕表模式的情况下,电子设备100可以执行操作3对应的响应,通过PPG测量功能测量对应的数据。When it is determined that the wearing mode is switched to the watch mode, the electronic device 100 may execute a response corresponding to operation 3 and measure corresponding data through the PPG measurement function.
采用本申请实施例提供的模式切换方法,电子设备100在处于机芯模式的情况下,若接收到用户使用PPG测量功能的操作时,可以快速切换回腕表模式。这样,不仅可以避免采集到不准确的数据,还可以实现佩戴模式的快速切换。By adopting the mode switching method provided in the embodiment of the present application, when the electronic device 100 is in the movement mode, if the user's operation of using the PPG measurement function is received, it can quickly switch back to the watch mode. In this way, not only can inaccurate data be collected, but also fast switching of the wearing mode can be achieved.
下面介绍本申请实施例提供的一种电子设备100的功能模块。The following introduces the functional modules of an electronic device 100 provided in an embodiment of the present application.
如图12所示,电子设备100可以包括以下模块:交互模块1201、模式设置模块1202、坐标系模块1203、显示模块1204以及监听模块1205等等。As shown in FIG. 12 , the electronic device 100 may include the following modules: an interaction module 1201 , a mode setting module 1202 , a coordinate system module 1203 , a display module 1204 , a monitoring module 1205 , and the like.
其中,交互模块1201可以接收用户的操作,例如上述实施例中用户设置方向模式的操作1,用户切换佩戴模式的操作2,用户使用PPG测量功能的操作3,用户切换佩戴模式的操作4等等。交互模块1201可以响应于用户的操作,向模式设置模块1202发送指令,该指令用于指示模式设置模块1202切换佩戴模式和/或指示模式设置模块1202切换方向模式,指令的具体内容取决于交互模块1201接收到的用户的操作。交互模块1201还可以接收模式设置模块1202发送的方向模式和/或旋转角度,基于方向模式和/或旋转角度调整交互事件,例如上述图7和图10所示实施例中的触屏事件、旋转表冠事件等。Among them, the interaction module 1201 can receive the user's operation, such as the operation 1 of the user setting the direction mode, the operation 2 of the user switching the wearing mode, the operation 3 of the user using the PPG measurement function, the operation 4 of the user switching the wearing mode, etc. In response to the user's operation, the interaction module 1201 can send an instruction to the mode setting module 1202, which is used to instruct the mode setting module 1202 to switch the wearing mode and/or instruct the mode setting module 1202 to switch the direction mode. The specific content of the instruction depends on the user's operation received by the interaction module 1201. The interaction module 1201 can also receive the direction mode and/or rotation angle sent by the mode setting module 1202, and adjust the interaction event based on the direction mode and/or rotation angle, such as the touch screen event and the crown rotation event in the embodiments shown in Figures 7 and 10 above.
模式设置模块1202可以接收交互模块1201发送的指令,切换佩戴模式和/或方向模式。在一些实施例中,模式设置模块1202可以在切换方向模式之后将切换后的方向模式(例如上述图7所示实施例中的方向模式1)发送至交互模块1201、坐标系模块1203、显示模块1204等。在另一些实施例中,模式设置模块1202也可以在切换方向模式之后,基于切换后的方向模式确定旋转角度(例如上述实施例中的旋转角度1、旋转角度3等),并将旋转角度发送至交互模块1201、坐标系模块1203、显示模块1204等。在一些
实施例中,模式设置模块1202可以在切换佩戴模式之后,确定切换后的佩戴模式是否为机芯模式。若切换后的佩戴模式为机芯模式,则模式设置模块1202可以向监听模块1205发送关闭指令,用于指示监听模块1205关闭PPG测量功能。若切换后的佩戴模式为腕表模式,则模式设置模块1202可以向监听模块1205发送开启指令,用于指示监听模块1205开启PPG测量功能。The mode setting module 1202 can receive instructions sent by the interaction module 1201 to switch the wearing mode and/or the direction mode. In some embodiments, the mode setting module 1202 can send the switched direction mode (for example, direction mode 1 in the embodiment shown in FIG. 7 above) to the interaction module 1201, the coordinate system module 1203, the display module 1204, etc. after switching the direction mode. In other embodiments, the mode setting module 1202 can also determine the rotation angle (for example, rotation angle 1, rotation angle 3, etc. in the above embodiment) based on the switched direction mode after switching the direction mode, and send the rotation angle to the interaction module 1201, the coordinate system module 1203, the display module 1204, etc. In some In an embodiment, the mode setting module 1202 may determine whether the switched wearing mode is the movement mode after switching the wearing mode. If the switched wearing mode is the movement mode, the mode setting module 1202 may send a shutdown instruction to the monitoring module 1205 to instruct the monitoring module 1205 to turn off the PPG measurement function. If the switched wearing mode is the watch mode, the mode setting module 1202 may send an opening instruction to the monitoring module 1205 to instruct the monitoring module 1205 to turn on the PPG measurement function.
坐标系模块1203可以接收模式设置模块1202发送的方向模式和/或旋转角度,并基于发向模式和/或旋转角度对坐标系进行适配。The coordinate system module 1203 may receive the direction mode and/or the rotation angle sent by the mode setting module 1202, and adapt the coordinate system based on the direction mode and/or the rotation angle.
显示模块1204可以接收模式设置模块1202发送的方向模式和/或旋转角度,并基于发向模式和/或旋转角度调整显示内容的显示方向。The display module 1204 may receive the direction mode and/or the rotation angle sent by the mode setting module 1202 , and adjust the display direction of the displayed content based on the direction mode and/or the rotation angle.
监听模块1205可以接收模式设置模块1202发送的开启指令,响应于开启指令,开启PPG测量功能。监听模块1205可以接收模式设置模块1202发送的关闭指令,响应于关闭指令,关闭PPG测量功能。The monitoring module 1205 may receive an on instruction sent by the mode setting module 1202, and in response to the on instruction, turn on the PPG measurement function. The monitoring module 1205 may receive an off instruction sent by the mode setting module 1202, and in response to the off instruction, turn off the PPG measurement function.
可以理解的是,图12所示实施例只是一个示例,在本申请实施例中,电子设备100还可以包括比图12所示实施例更多或更少的功能模块,也可以包括与上述图12所示实施例不同的功能模块,本申请在此不做限定。It can be understood that the embodiment shown in Figure 12 is only an example. In the embodiment of the present application, the electronic device 100 may also include more or fewer functional modules than the embodiment shown in Figure 12, and may also include functional modules different from the embodiment shown in Figure 12 above, and the present application does not limit this.
图13示出了本申请实施例提供的一种模式切换方法的流程示意图。FIG. 13 is a schematic flow chart of a mode switching method provided in an embodiment of the present application.
如图13所示,模式切换方法的流程可以包括以下步骤:As shown in FIG13 , the process of the mode switching method may include the following steps:
S1301,电子设备包括显示屏与按键,且存储有坐标系和一个或多个触屏事件。电子设备将第一界面显示在显示屏中,按键位于第一方位。S1301, the electronic device includes a display screen and a button, and stores a coordinate system and one or more touch screen events. The electronic device displays a first interface on the display screen, and the button is located at a first position.
电子设备可以是上述实施例中的电子设备100。电子设备包括显示屏与按键,按键可以包括上述实施例中的表冠14A,也可以包括上述实施例中的按键15B。The electronic device may be the electronic device 100 in the above embodiment. The electronic device includes a display screen and buttons, and the buttons may include the crown 14A in the above embodiment, or may include the button 15B in the above embodiment.
在本申请实施例中,电子设备100旋转前后显示屏13A中的显示内容也可以称作第一界面,在一些实施例中,电子设备100方向模式切换前后的显示内容也可以称作第一界面。在电子设备100发生旋转之前,按键(包括表冠14A)相对于电子设备100的方位可以称作第一方位,例如上述图6A所示实施例中,表冠14A相对于机芯11A在机芯11A的右侧。In the embodiment of the present application, the display content of the display screen 13A before and after the electronic device 100 rotates can also be referred to as the first interface. In some embodiments, the display content before and after the orientation mode of the electronic device 100 is switched can also be referred to as the first interface. Before the electronic device 100 rotates, the orientation of the buttons (including the crown 14A) relative to the electronic device 100 can be referred to as the first orientation. For example, in the embodiment shown in FIG. 6A above, the crown 14A is on the right side of the movement 11A relative to the movement 11A.
S1302,响应于用户的第一操作,第一操作用于将电子设备以第一旋转方向旋转第一角度,在电子设备以第一旋转方向旋转第一角度之后,按键位于第二方位,第一方位与第二方位不同。S1302, in response to a first operation of the user, the first operation is used to rotate the electronic device in a first rotation direction by a first angle, after the electronic device is rotated in the first rotation direction by the first angle, the key is located in a second orientation, and the first orientation is different from the second orientation.
用户的第一操作可以是旋转电子设备100的操作。The first operation of the user may be an operation of rotating the electronic device 100 .
第一旋转方向可以是顺时针旋转,也可以是逆时针旋转。第一角度可以是上述图10所示实施例中的旋转角度2。The first rotation direction may be clockwise rotation or counterclockwise rotation. The first angle may be the rotation angle 2 in the embodiment shown in FIG. 10 .
S1303,电子设备将第一界面相对于显示屏以第二旋转方向旋转第一角度,第二旋转方向与第一旋转方向相反。S1303: The electronic device rotates the first interface relative to the display screen by a first angle in a second rotation direction, where the second rotation direction is opposite to the first rotation direction.
步骤S1303的具体内容可以参考上述图7所示步骤S703和图10所示步骤S1004。For the specific content of step S1303, reference may be made to step S703 shown in FIG. 7 and step S1004 shown in FIG. 10 .
S1304,电子设备将坐标系以第二旋转方向旋转第一角度。S1304: The electronic device rotates the coordinate system by a first angle in a second rotation direction.
步骤S1304的具体操作可以参考上述图7所示步骤S706和图10所示步骤S1007。The specific operation of step S1304 may refer to step S706 shown in FIG. 7 and step S1007 shown in FIG. 10 .
S1305,电子设备基于第一角度调整一个或多个触屏事件。S1305: The electronic device adjusts one or more touch screen events based on the first angle.
该一个或多个触屏事件可以包括第一触屏事件(例如上滑事件、下滑事件、左滑事件、右滑事件等)。第一触屏事件包括第一滑动方向和第一触屏响应,第一滑动方向为第一触屏事件在显示屏上的滑动轨迹的方向,第一滑动方向是根据滑动轨迹相对于显示屏的第一参考线之间的夹角确定的。其中,第一参考线可以是显示屏的中心位置与按键之间的连线,也可以是显示屏上的其他直线,本申请在此不做限定。The one or more touch screen events may include a first touch screen event (e.g., an upward slide event, a downward slide event, a left slide event, a right slide event, etc.). The first touch screen event includes a first slide direction and a first touch screen response. The first slide direction is the direction of a slide track of the first touch screen event on the display screen. The first slide direction is determined according to the angle between the slide track and a first reference line of the display screen. The first reference line may be a line between the center position of the display screen and the button, or may be other straight lines on the display screen, which is not limited in this application.
电子设备基于第一角度调整第一触屏事件,具体包括:电子设备将第一滑动方向调整为第二滑动方向,第二滑动方向为第一滑动方向以第二旋转方向旋转第一角度后的方向。The electronic device adjusts the first touch screen event based on the first angle, specifically including: the electronic device adjusts the first sliding direction to a second sliding direction, where the second sliding direction is a direction of the first sliding direction rotated by a first angle in a second rotation direction.
其他触屏事件的调整可以参考第一触屏事件。For adjustments to other touch screen events, please refer to the first touch screen event.
触屏事件的具体调整步骤也可以参考上述图7所示步骤S704和图10所示步骤S1005。The specific adjustment steps of the touch screen event can also refer to step S704 shown in FIG. 7 and step S1005 shown in FIG. 10 .
在一些实施例中,电子设备在以第一旋转方向旋转第一角度之后,还可以基于第一角度调整作用于按键的按键旋转事件(例如上述实施例中的旋转表冠事件)。具体的,当第一角度大于90°且小于等于270°时,电子设备将按键旋转方向调整为相反方向。其他与按键旋转事件的调整有关的内容可以参考上述图7所示步骤S705和图10所示步骤S1006。
In some embodiments, after the electronic device rotates the first angle in the first rotation direction, it can also adjust the key rotation event (such as the crown rotation event in the above embodiment) acting on the key based on the first angle. Specifically, when the first angle is greater than 90° and less than or equal to 270°, the electronic device adjusts the key rotation direction to the opposite direction. For other contents related to the adjustment of the key rotation event, please refer to step S705 shown in Figure 7 and step S1006 shown in Figure 10.
本申请的各实施方式可以任意进行组合,以实现不同的技术效果。The various implementation modes of the present application can be combined arbitrarily to achieve different technical effects.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘(solid state disk,SSD))等。In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state drive (SSD)), etc.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,该流程可以由计算机程序来指令相关的硬件完成,该程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法实施例的流程。而前述的存储介质包括:ROM或随机存储记忆体RAM、磁碟或者光盘等各种可存储程序代码的介质。Those skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.
总之,以上所述仅为本发明技术方案的实施例而已,并非用于限定本发明的保护范围。凡根据本发明的揭露,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。
In short, the above description is only an embodiment of the technical solution of the present invention, and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made according to the disclosure of the present invention shall be included in the protection scope of the present invention.
Claims (9)
- 一种模式切换方法,其特征在于,应用于电子设备,所述电子设备包括显示屏和按键,且所述电子设备存储有坐标系和一个或多个触屏事件;所述方法包括:A mode switching method, characterized in that it is applied to an electronic device, the electronic device includes a display screen and a button, and the electronic device stores a coordinate system and one or more touch screen events; the method comprises:所述电子设备将第一界面显示在所述显示屏中,所述按键位于第一方位;The electronic device displays a first interface on the display screen, and the button is located at a first position;响应于用户的第一操作,所述第一操作用于将所述电子设备以第一旋转方向旋转第一角度;In response to a first operation of a user, the first operation is used to rotate the electronic device in a first rotation direction and by a first angle;在所述电子设备以第一旋转方向旋转第一角度之后,所述按键位于第二方位,所述第一方位与所述第二方位不同;After the electronic device is rotated by a first angle in a first rotation direction, the button is located at a second position, and the first position is different from the second position;所述电子设备将第一界面相对于所述显示屏以第二旋转方向旋转所述第一角度,所述第二旋转方向与所述第一旋转方向相反;The electronic device rotates the first interface relative to the display screen by the first angle in a second rotation direction, where the second rotation direction is opposite to the first rotation direction;所述电子设备将所述坐标系以所述第二旋转方向旋转所述第一角度;The electronic device rotates the coordinate system in the second rotation direction by the first angle;所述电子设备基于所述第一角度调整所述一个或多个触屏事件。The electronic device adjusts the one or more touch screen events based on the first angle.
- 根据权利要求1所述的方法,其特征在于,所述一个或多个触屏事件包括第一触屏事件,所述第一触屏事件包括第一滑动方向和第一触屏响应,所述第一滑动方向为所述第一触屏事件在所述显示屏上的滑动轨迹的方向,所述第一滑动方向是根据所述滑动轨迹相对于所述显示屏的第一参考线之间的夹角确定的;The method according to claim 1, characterized in that the one or more touch screen events include a first touch screen event, the first touch screen event includes a first sliding direction and a first touch screen response, the first sliding direction is the direction of a sliding track of the first touch screen event on the display screen, and the first sliding direction is determined according to an angle between the sliding track and a first reference line of the display screen;所述电子设备基于所述第一角度调整所述第一触屏事件,具体包括:The electronic device adjusting the first touch screen event based on the first angle specifically includes:所述电子设备将所述第一滑动方向调整为第二滑动方向,所述第二滑动方向为所述第一滑动方向以所述第二旋转方向旋转所述第一角度后的方向。The electronic device adjusts the first sliding direction to a second sliding direction, where the second sliding direction is a direction obtained by rotating the first sliding direction by the first angle in the second rotation direction.
- 根据权利要求1或2所述的方法,其特征在于,在所述电子设备以第一旋转方向旋转第一角度之前,所述方法还包括:The method according to claim 1 or 2, characterized in that before the electronic device is rotated in the first rotation direction by the first angle, the method further comprises:接收用户的第二操作;receiving a second operation from the user;响应于所述第二操作,开始监测所述电子设备的旋转角度。In response to the second operation, the rotation angle of the electronic device begins to be monitored.
- 根据权利要求3所述的方法,其特征在于,所述第二操作为用户针对第一控件的点击操作。The method according to claim 3 is characterized in that the second operation is a click operation of the user on the first control.
- 根据权利要求1-4中任一项所述的方法,其特征在于,所述电子设备包括机芯和表带,所述机芯包括所述显示屏,所述表带上设置有第一壳体;所述方法还包括:The method according to any one of claims 1 to 4, characterized in that the electronic device comprises a movement and a strap, the movement comprises the display screen, and the strap is provided with a first shell; the method further comprises:检测到所述机芯与第一壳体连接,所述电子设备进入腕表模式。When it is detected that the movement is connected to the first housing, the electronic device enters a watch mode.
- 根据权利要求1-4中任一项所述的方法,其特征在于,所述电子设备包括机芯和表带,所述机芯包括所述显示屏,所述表带上设置有第一壳体;所述方法还包括:The method according to any one of claims 1 to 4, characterized in that the electronic device comprises a movement and a strap, the movement comprises the display screen, and the strap is provided with a first shell; the method further comprises:检测到所述机芯与第一壳体未连接,所述电子设备进入机芯模式。When it is detected that the movement is not connected to the first shell, the electronic device enters the movement mode.
- 根据权利要求1-6中任一项所述的方法,其特征在于,所述电子设备存储有多个作用于所述按键的按键旋转事件,所述按键旋转事件包括按键旋转方向和按键旋转响应;在所述电子设备以第一旋转方向旋转第一角度之后,所述方法还包括:The method according to any one of claims 1 to 6, characterized in that the electronic device stores a plurality of key rotation events acting on the key, the key rotation event comprising a key rotation direction and a key rotation response; after the electronic device rotates a first angle in a first rotation direction, the method further comprises:当所述第一角度大于90°且小于等于270°时,所述电子设备将所述按键旋转方向调整为相反方向。When the first angle is greater than 90° and less than or equal to 270°, the electronic device adjusts the key rotation direction to the opposite direction.
- 一种电子设备,为可穿戴设备,其特征在于,包括:一个或多个处理器、一个或多个存储器、一个或多个显示屏、一个或多个按键;所述一个或多个存储器与所述一个或多个处理器耦合,所述一个或多个存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述一个或多个处理器执行所述计算机指令时,使得所述电子设备执行上述权利要求1-7中任一项所述的方法。An electronic device, which is a wearable device, is characterized in that it includes: one or more processors, one or more memories, one or more display screens, and one or more buttons; the one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer program codes, and the computer program codes include computer instructions, and when the one or more processors execute the computer instructions, the electronic device executes the method described in any one of claims 1 to 7.
- 一种计算机可读存储介质,包括计算机指令,其特征在于,当所述计算机指令在电子设备上运行时,使得所述电子设备执行上述权利要求1-7中任一项所述的方法。 A computer-readable storage medium, comprising computer instructions, characterized in that when the computer instructions are executed on an electronic device, the electronic device executes any one of the methods of claims 1-7.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310491113.5 | 2023-04-28 | ||
CN202310491113.5A CN118860541A (en) | 2023-04-28 | 2023-04-28 | Mode switching method and related device |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2024222597A1 true WO2024222597A1 (en) | 2024-10-31 |
Family
ID=93168017
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2024/088984 WO2024222597A1 (en) | 2023-04-28 | 2024-04-20 | Mode switching method and related apparatus |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN118860541A (en) |
WO (1) | WO2024222597A1 (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105389011A (en) * | 2015-12-01 | 2016-03-09 | 深圳还是威健康科技有限公司 | Display rotation control method and intelligent wearable device |
CN107300973A (en) * | 2017-06-21 | 2017-10-27 | 深圳传音通讯有限公司 | screen rotation control method, system and device |
CN108650405A (en) * | 2018-04-11 | 2018-10-12 | 努比亚技术有限公司 | Intelligent wearable device and its display control method, computer readable storage medium |
CN113473432A (en) * | 2021-07-01 | 2021-10-01 | 浙江强脑科技有限公司 | Communication method and device for intelligent terminal and intelligent wearable device, terminal and medium |
US20220295223A1 (en) * | 2021-03-02 | 2022-09-15 | Google Llc | Precision 6-dof tracking for wearable devices |
-
2023
- 2023-04-28 CN CN202310491113.5A patent/CN118860541A/en active Pending
-
2024
- 2024-04-20 WO PCT/CN2024/088984 patent/WO2024222597A1/en unknown
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105389011A (en) * | 2015-12-01 | 2016-03-09 | 深圳还是威健康科技有限公司 | Display rotation control method and intelligent wearable device |
CN107300973A (en) * | 2017-06-21 | 2017-10-27 | 深圳传音通讯有限公司 | screen rotation control method, system and device |
CN108650405A (en) * | 2018-04-11 | 2018-10-12 | 努比亚技术有限公司 | Intelligent wearable device and its display control method, computer readable storage medium |
US20220295223A1 (en) * | 2021-03-02 | 2022-09-15 | Google Llc | Precision 6-dof tracking for wearable devices |
CN113473432A (en) * | 2021-07-01 | 2021-10-01 | 浙江强脑科技有限公司 | Communication method and device for intelligent terminal and intelligent wearable device, terminal and medium |
Also Published As
Publication number | Publication date |
---|---|
CN118860541A (en) | 2024-10-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9195219B2 (en) | Smart watch and control method thereof | |
CN113204298B (en) | Method and device for displaying release progress, electronic equipment and storage medium | |
CN111005715B (en) | Method and device for determining yield of gas well and storage medium | |
CN108897659B (en) | Method, device and storage medium for modifying log level | |
CN113409427B (en) | Animation playing method and device, electronic equipment and computer readable storage medium | |
CN109766098B (en) | Application program running method and device and storage medium | |
JP2017138307A (en) | Watch equipped with wireless control module | |
CN108734662B (en) | Method and device for displaying icons | |
CN110769120A (en) | Method, device, equipment and storage medium for message reminding | |
CN115017003B (en) | Load prediction method and load prediction device | |
WO2022199102A1 (en) | Image processing method and device | |
CN108664300B (en) | Application interface display method and device in picture-in-picture mode | |
WO2024222597A1 (en) | Mode switching method and related apparatus | |
CN109117037A (en) | A kind of method and terminal device of image procossing | |
CN115421619A (en) | Window display method and electronic equipment | |
CN111370096A (en) | Interactive interface display method, device, equipment and storage medium | |
CN109033473B (en) | Picture sharing method and device and computer readable storage medium | |
CN112100528A (en) | Method, device, equipment and medium for training search result scoring model | |
CN113553368A (en) | Tag information processing method and device of multilayer pie chart and terminal | |
CN111063372B (en) | Method, device and equipment for determining pitch characteristics and storage medium | |
CN111898048B (en) | Data adjustment method and device for display information, electronic equipment and storage medium | |
CN111294320B (en) | Data conversion method and device | |
CN110851435B (en) | Data storage method and device | |
CN112132472A (en) | Resource management method and device, electronic equipment and computer readable storage medium | |
US11467227B2 (en) | Information processing method and mobile device |