Mode switching method and related apparatus

By rotating the display and buttons in the wearable device, and adjusting the touch screen events and coordinate system, the problem of fixed direction of the displayed content is solved, enabling convenient viewing and operation during rotation, and improving the user experience.

WO2024222597A1PCT designated stage expired Publication Date: 2024-10-31HUAWEI TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/088984
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-28
Filing Date
2024-04-20
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

When the display screen of existing wearable devices is rotated, the direction of the displayed content is fixed relative to the display screen, which does not conform to the user's browsing habits and causes inconvenience for the user to view and operate.

Method used

Provide a mode switching method that adjusts the direction of the displayed content by rotating the display screen and buttons of the electronic device, and adjusts the touch screen events and coordinate system based on the rotation angle to keep the direction of the displayed content unchanged relative to the display screen and adapt to the user Wearing mode and operation method.

Benefits of technology

It achieves the stability of the direction of the displayed content when the electronic device rotates, facilitates user viewing and operation, is suitable for different wearing modes and scenarios, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024088984_31102024_PF_FP_ABST
    Figure CN2024088984_31102024_PF_FP_ABST
Patent Text Reader

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.
Need to check novelty before this filing date? Find Prior Art

Description

Mode switching method and related device

[0001] This application claims priority to 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”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of electronic technology, and in particular to a mode switching method and related devices. Background Art

[0003] With the continuous development of electronic technology, wearable devices are becoming increasingly common in our daily lives. Users can use wearable devices to measure sports and health data. They can also play music, receive messages, and more. Wearable devices have greatly facilitated users' daily lives and travel.

[0004] Currently, the orientation of content displayed on a wearable device's display is fixed relative to the display. When a user rotates the wearable device's display, the orientation of the displayed content relative to the display remains unchanged. This orientation doesn't align with the user's browsing habits, making it difficult for them to view and manipulate the displayed content.

[0005] Summary of the Invention

[0006] The present application provides a mode switching method and related devices, which ensure that when an electronic device is rotated, the direction of the displayed content remains unchanged relative to the display screen, making it easier for users to view and operate.

[0007] In the 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 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 is rotated 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; and the electronic device adjusts one or more touch screen events based on the first angle.

[0008] 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.

[0009] 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 the sliding track of the first touch screen event on the display screen, and the first sliding direction is determined according to the angle between the sliding track and the 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 the second rotation direction by the first angle.

[0010] The first reference line may be a line between the center of the display screen and the button, or may be another straight line on the display screen.

[0011] In a possible implementation, before the electronic device rotates by the first angle in the first rotation direction, the method further includes: receiving a second operation of the user; and starting to monitor the rotation angle of the electronic device in response to the second operation.

[0012] In this way, the electronic device can monitor the rotation angle of the electronic device.

[0013] In a possible implementation, the second operation is a click operation of the user on the first control.

[0014] In one possible implementation, the electronic device includes a movement and a strap, the movement includes a display screen, and a first shell is provided 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.

[0015] In one possible implementation, the electronic device includes a movement and a strap, the movement includes a display screen, and a first shell is provided on the strap; the method further includes: when it is detected that the movement and the first shell are not connected, the electronic device enters a movement mode.

[0016] 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 the watch mode and the movement mode.

[0017] In one possible implementation, the electronic device stores multiple key rotation events acting on a key, and the key rotation event includes 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.

[0018] In this way, after the electronic device is rotated, the rotation operation acting on the buttons (including the crown) can also be used normally.

[0019] In one possible implementation, the wearing mode of the electronic device is a watch mode; the method further 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 the photoplethysmography (PPG) measurement function.

[0020] In this way, the PPG measurement function can be turned off in movement mode to avoid detecting inaccurate data.

[0021] 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.

[0022] In one possible implementation, the wearing mode of the electronic device is the 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.

[0023] In one 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.

[0024] In this way, the electronic device can quickly switch to the watch mode and measure the first data.

[0025] 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.

[0026] In a second aspect, the present application provides an electronic device comprising 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 code, the computer program code comprising computer instructions. When the one or more processors execute the computer instructions, the electronic device performs the mode switching method in any possible implementation of any of the above aspects.

[0027] In a third aspect, an embodiment of the present application provides a computer storage medium comprising computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the mode switching method in any possible implementation of any of the above aspects.

[0028] In a fourth aspect, an embodiment of the present application provides a computer program product, which, when running on a computer, enables the computer to execute the mode switching method in any possible implementation of any of the above aspects.

[0029] The beneficial effects of the second to fourth aspects can refer to the beneficial effects of the first aspect mentioned above. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] 1A and 1B are schematic diagrams of an electronic device 100 according to an embodiment of the present application;

[0031] FIG1C is a schematic diagram of the hardware structure of an electronic device 100 provided in an embodiment of the present application;

[0032] FIG1D is a schematic diagram of a three-dimensional space coordinate system provided in an embodiment of the present application;

[0033] FIG2 is a schematic diagram of a direction of displaying content provided by an embodiment of the present application;

[0034] 3A and 3B are schematic diagrams of interfaces of a group of electronic devices 100 before and after rotation according to an embodiment of the present application;

[0035] 4A to 4H are schematic diagrams of a set of interfaces for switching direction modes provided in an embodiment of the present application;

[0036] 5A to 5F are schematic diagrams of a set of application scenarios provided by an embodiment of the present application;

[0037] 6A to 6D are schematic diagrams of a set of interfaces for switching direction modes with micro motion detection enabled, provided by an embodiment of the present application;

[0038] FIG7 is a schematic flow chart of a mode switching method provided in an embodiment of the present application;

[0039] 8A to 8D are schematic diagrams of direction changes of a touch screen event in different direction modes provided by an embodiment of the present application;

[0040] 9A to 9D are schematic diagrams showing changes in a coordinate system before and after a mode switch according to an embodiment of the present application;

[0041] FIG10 is a schematic flow chart of a mode switching method provided in an embodiment of the present application;

[0042] FIG11 is a flow chart of another mode switching method provided in an embodiment of the present application;

[0043] FIG12 is a schematic diagram of functional modules of an electronic device 100 provided in an embodiment of the present application;

[0044] FIG13 is a flow chart of a mode switching method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0045] The following is a clear and detailed description of the technical solutions in the embodiments of the present application 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 between related 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.

[0046] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood to imply or suggest relative importance or implicitly indicate the number of the technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of this application, unless otherwise specified, "plurality" means two or more.

[0047] The term "user interface (UI)" in the following embodiments of this 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 the user can recognize. The commonly used form of user interface is graphical user interface (GUI), which refers to a user interface related to computer operations that is 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.

[0048] The following describes the device form of the electronic device provided in the embodiments of the present application.

[0049] FIG1A shows a schematic diagram of the device form of an electronic device 100 provided in an embodiment of the present application.

[0050] As shown in Figure 1A, the electronic device 100 can be a watch 100A. The watch 100A may include a movement 11A. 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 set on the right side of the movement 11A or at other positions of the movement 11A. This is not limited in this application. The movement 11A can display the dial, application interface and other contents through the display screen 13A. The crown 14A can be used to adjust the content displayed on the display screen 13A, such as adjusting the display size of the content displayed on the display screen 13A, adjusting the volume, etc. The position of the crown 14A can also be used to determine the direction of the content displayed on the display screen 13A. The specific definition of the direction of the displayed content can refer to the relevant content in the embodiment shown in Figure 2 below, which will not be described in detail here. In some embodiments, the watch 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 watch strap 12A are combined into a watch 100A.

[0051] It should be noted that in watch 100A, movement 11A and strap 12A are detachable. In the embodiment of the present application, movement 11A and strap 12A can form a wearable device, which is convenient for the user to wear on the wrist or other location. In other embodiments, watch 100A can also include only movement 11A. In this case, watch 100A is used as an accessory or for other purposes. For example, watch 100A can be used as a necklace, alarm clock, stopwatch, pocket watch, or as an accessory mounted on a backpack. For details, please refer to the relevant content in the following embodiments and will not be described in detail here.

[0052] FIG1B shows a schematic diagram of the device form of another electronic device 100 provided in an embodiment of the present application.

[0053] As shown in FIG1B , the electronic device 100 may be a wristband 100B. The wristband 100B may include a movement 11B. Optionally, the wristband 100B may further include a strap 12B. The movement 11B may include a display screen 13B. In some embodiments, the movement 11B may further include a button 15B. The button 15B may also be used to adjust the display content on the display screen 13B, such as turning the display screen 13B off or on, 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 wristband 100B shown in FIG1B , the movement 11B and the strap 12B are also detachable. The movement 11B and the strap 12B can form a wearable device, which is convenient for users to wear on their wrists or other places. The movement 11B can also be used as an accessory or for other purposes.

[0054] It is understandable that the embodiments shown in Figures 1A and 1B are just two examples. In the embodiments of the present application, the electronic device 100 can also be a wearable device of other forms, and the shape of the movement can also be any shape such as circular, rectangular, square, hexagonal, etc. The crown (or button) can also be replaced by other devices such as an operating rod and an operating ball, and the electronic device 100 can also include multiple crowns, buttons or other corresponding devices, which are not limited in this application. In the embodiments of the present application, the above-mentioned crowns, buttons, operating rods and other devices can be collectively referred to as buttons.

[0055] FIG1C shows a schematic diagram of the hardware structure of an electronic device 100 provided in an embodiment of the present application.

[0056] The electronic device 100 may be a wearable device such as a watch or a bracelet. The embodiment of the present application does not impose any special restrictions on the specific type of the electronic device.

[0057] 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 further include an audio module 108 .

[0058] The processor 101 may include one or more processing units. For example, the processor 101 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors. The controller may generate operation control signals based on instruction opcodes and timing signals to control instruction fetching and execution.

[0059] Processor 101 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 101 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 101. If processor 101 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 101's latency, and thus improves system efficiency.

[0060] In some embodiments, the processor 101 can be used to analyze signals collected by the sensor module 107, or to analyze signals collected by other modules (such as the audio module 108), etc. The processor 101 can be used to perform corresponding processing operations based on 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.

[0061] 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.

[0062] 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). 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), a MiniLED, a MicroLed, a Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 can include one or N display screens 103, where N is a positive integer greater than 1. In some embodiments, the display screen 103 can include the display screen 13A shown in FIG. 1A above. In other embodiments, the display screen 103 can include the display screen 13B shown in FIG. 1B above.

[0063] The electronic device 100 may also include a communication module 104. The communication module 104 may provide a wireless communication solution including any one or more of 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 pair 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 can support BR / EDR Bluetooth and BLE, for example, it can receive / send paging information, receive / send BLE broadcast messages, etc. In some embodiments, the communication module 104 may further include an antenna. The communication module 104 receives electromagnetic waves via the antenna, frequency-modulates and filters the electromagnetic wave signals, and transmits the processed signals to the processor 101. The communication module 104 may also receive signals to be transmitted from the processor 101, frequency-modulate and amplify the signals, and convert the signals into electromagnetic waves for radiation via the antenna.

[0064] The power module 105 can be used to provide system power to the electronic device 100, power the various modules of the electronic device 100, and support the electronic device 100 to receive charging input, etc. The power module 105 may include a power management unit (PMU) and a battery. The power management unit can receive external charging input, provide the electrical signal input from 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 overcurrent, etc. In some embodiments, the power management unit can also be used to monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage, impedance).

[0065] 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.

[0066] 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 an orientation sensor and a gravity sensor. The sensor module 107 may be used to collect motion signals of the electronic device 100. For example, a touch sensor may be used to detect a user's touch operations, such as a single click, double click, multiple clicks, a long press, or a heavy press. For another example, an accelerometer may detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity may be detected. This may also be used to identify the posture of the electronic device and for applications such as a pedometer. For another example, a gyroscope may be used to determine the motion posture of the electronic device 100. In some embodiments, the gyroscope may be used to determine the angular velocity of the electronic device 100 around three axes, and so on.

[0067] 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, speaker), a microphone receiving circuit that cooperates with the microphone, and the like. The speaker may be used to convert audio electrical signals into sound signals and play them. The microphone may be used to convert sound signals into audio electrical signals. In some embodiments, the audio module 108 may be used to output prompt information, etc.

[0068] Keys 109 include a power button, a volume button, and the like. Keys 109 may be mechanical keys or touch-sensitive keys. Electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of electronic device 100. In some embodiments, keys 109 may include keys 15B in the embodiment shown in FIG. 1B . In other embodiments, keys 109 may include crown 14A in the embodiment shown in FIG. 1A . In some embodiments, keys 109 may also include components such as joysticks.

[0069] It will be appreciated that the electronic device 100 shown in FIG1C is merely an example, and that the electronic device 100 may have more or fewer components than shown in FIG1C , may combine two or more components, or may have a different component configuration. The various components shown in the figure may be implemented in hardware, including one or more signal processing and / or application specific integrated circuits, software, or a combination of hardware and software.

[0070] The following description will be made by taking the electronic device 100 as a watch 100A as an example.

[0071] The following is a schematic diagram of a coordinate system provided in an embodiment of the present application.

[0072] FIG1D shows a schematic diagram of a three-dimensional space coordinate system XYZ provided in an embodiment of the present application.

[0073] As shown in Figure 1D, the space in which the electronic device 100 is located can construct a three-dimensional space coordinate system, and the three-dimensional coordinate system can 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 can 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 always remains unchanged.

[0074] 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:

[0075] 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 this application refers to the angle of rotation of the electronic device 100 relative to the X-axis (or Y-axis) shown in Figure 1D before and after the rotation.

[0076] Case 2: The electronic device 100 rotates in the three-dimensional 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 this 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.

[0077] 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. 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 this application does not limit it here.

[0078] 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 this application can refer to the two situations described here, and will not be repeated in the following embodiments.

[0079] The following describes the direction of displaying content in the embodiments of the present application.

[0080] 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.

[0081] As shown in Figure 2, the display screen 13A of the movement 11A displays an interface 200. The interface 200 is located in the two-dimensional coordinate plane XOY plane, which is a two-dimensional coordinate plane constructed by the X-axis, Y-axis and origin O in the coordinate system shown in Figure 1D above. The crown 14A is located in the positive direction of the X-axis relative to the movement 11A. In the embodiment shown in Figure 2, 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.

[0082] In the embodiment of the present application, reverse display can be achieved by rotating the forward-displayed content by 180° (or 180°±α°, where α can be 5, 10, or 30, etc.) and then displaying it upside down. In reverse display, the horizontal layout of the interface elements is from the positive X-axis to the negative X-axis, and the vertical layout is from the negative Y-axis to the positive Y-axis.

[0083] In the embodiment of the present application, left-facing display can be achieved by rotating the content displayed in the forward direction 270° (or 270°±α°) clockwise, or by rotating the content displayed in the forward direction 90° (or 90°±α°) counterclockwise. In left-facing display, the horizontal layout of the interface elements is from the negative Y axis to the positive Y axis, and the vertical layout is from the negative X axis to the positive X axis.

[0084] In the embodiment of the present application, right-facing display can be achieved by rotating the content displayed in the forward direction 90° (or 90°±α°, where α can be 5, 10, or 30, etc.) clockwise, or by rotating the content displayed in the forward direction 270° (or 270°±α°) counterclockwise. When displayed in the right direction, 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.

[0085] 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.

[0086] Crown-right mode: Crown-right mode is also called crown-right. In crown-right mode, when crown 14A is to the right of movement 11A (i.e., the orientation of crown 14A relative to movement 11A is the positive X-axis), the display on display screen 13A is in the forward direction. When crown 14A is in any other position of movement 11A, the display is not in the forward direction.

[0087] Crown-Left Mode: Crown-Left Mode is also called Crown-Left. In Crown-Left Mode, when crown 14A is to the left of movement 11A (i.e., the direction of crown 14A relative to movement 11A is in the negative X-axis direction), the display on display screen 13A is in the forward direction. When crown 14A is in any other position of movement 11A, the display is not in the forward direction.

[0088] Crown-Up Mode: Crown-Up Mode is also called Crown-Up. In Crown-Up Mode, when crown 14A is positioned above movement 11A (i.e., the orientation of crown 14A relative to movement 11A is in the positive Y-axis direction), the display on display screen 13A is in the forward direction. When crown 14A is in any other position on movement 11A, the display is not in the forward direction.

[0089] Crown-Down Mode: Crown-Down Mode is also referred to as crown-down. In crown-down mode, when crown 14A is positioned below movement 11A (i.e., the orientation of crown 14A relative to movement 11A is in the negative Y-axis direction), the display on display screen 13A is in the forward direction. When crown 14A is in any other position of movement 11A, the display is not in the forward direction.

[0090] Crown-Down-Left Mode: Crown-Down-Left Mode is also referred to as Crown-Down-Left. In Crown-Down-Left Mode, when crown 14A is positioned to the lower left of movement 11A, the display on display screen 13A is in the forward direction. When crown 14A is in any other position within movement 11A, the display is not in the forward direction. Crown 14A being in the lower left of movement 11A may mean that the angle between the orientation of crown 14A relative to movement 11A and the positive Y-axis is approximately 225° (e.g., 220°, 228°, etc.).

[0091] Crown in Upper Left Mode: Crown in Upper Left Mode is also referred to as Crown in Upper Left. In Crown in Upper Left Mode, when crown 14A is in the upper left side of movement 11A, the display on display screen 13A is in the forward direction. When crown 14A is in any other position of movement 11A, the display is not in the forward direction. Crown 14A in the upper left side of movement 11A may mean that the angle between crown 14A and the positive Y-axis is approximately 315° (e.g., 311°, 319°, etc.).

[0092] Crown-Down-Right Mode: Crown-Down-Right Mode is also referred to as Crown-Up-Right. In Crown-Up-Right Mode, when crown 14A is positioned in the upper right corner of movement 11A, the display on display screen 13A is in the forward direction. When crown 14A is in any other position within movement 11A, the display is not in the forward direction. Crown 14A being in the upper right corner of movement 11A may mean that the angle between crown 14A and the positive Y-axis is approximately 45° (e.g., 41°, 47°, etc.).

[0093] Crown-up-right mode: Crown-down-right mode is also called crown-down-right mode. In crown-down-right mode, when crown 14A is in the lower right corner of movement 11A, the display on display screen 13A is in the forward direction. When crown 14A is in any other position of movement 11A, the display is not in the forward direction. Crown 14A being in the lower right corner of movement 11A may mean that the angle between crown 14A and the positive Y-axis is approximately 135° (e.g., 130°, 138°, etc.).

[0094] 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.

[0095] Furthermore, it should be noted that the various directional modes in this embodiment are described using the watch 100A shown in FIG. 1A as an example. In this embodiment, the crown 14A may be replaced with a button 15B or other device, and this is not a limitation. This embodiment uses the watch 100A as an example to name the various directional modes. It should be understood that this embodiment does not limit the names of the various directional modes.

[0096] 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.

[0097] For example, Figures 3A and 3B illustrate a set of interface diagrams of an electronic device 100 before and after rotation. It should be noted that in the embodiment shown in Figures 3A and 3B below, the electronic device 100 includes the movement 11A shown in Figure 1A, and the crown 14A is located to the right of the movement 11A. That is, when the crown 14A is located to the right of the movement 11A, the display screen 13A displays the content in the forward direction.

[0098] As shown in FIG3A , the crown 14A is located on the right side of the movement 11A, and the movement 11A displays the interface 200 , which is displayed in the forward direction.

[0099] After movement 11A shown in FIG3A is rotated 180° clockwise, as shown in FIG3B , crown 14A is located on the left side of movement 11A, and movement 11A has been rotated 180°. Since the relative positional relationship between movement 11A and interface 200 remains unchanged, interface 200 is displayed in reverse, not in the forward direction, after movement 11A is rotated.

[0100] As can be seen from the embodiments shown in Figures 3A and 3B above, under existing technical conditions, if movement 11A is rotated, the display content on display screen 13A will also maintain its relative position to display screen 13A, thereby changing the direction of the display content from the forward direction to another direction, making it inconvenient for the user to normally view and operate the displayed content. When the user wears electronic device 100 or uses electronic device 100 as an accessory, the display content of electronic device 100 may not be displayed in the forward direction, making it inconvenient for the user to view and operate. This results in a poor user experience.

[0101] An embodiment of the present application provides a mode switching method. The method is applied to an electronic device, the electronic device including a display screen and a button, and the electronic device storing a coordinate system and one or more touch screen events; the method comprising: the electronic device displays a first interface on the display screen, with the button located in a first orientation; responding to a first operation of a user, the first operation being used to rotate the electronic device by a first angle in a first rotation direction; after the electronic device is rotated by the first angle in the first rotation direction, the button is located in a second orientation, the first orientation being 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, the second rotation direction being opposite to the first rotation direction; the electronic device rotates the coordinate system by the first angle in the second rotation direction; and the electronic device adjusts the one or more touch screen events based on the first angle.

[0102] In this way, when the electronic device is rotated to any angle, the orientation of the displayed content relative to the display screen remains unchanged, and touchscreen operations and gesture operations can also be used normally, making it easier for the user to view and operate. This method is not only applicable to scenarios where the user wears the electronic device 100 on the wrist in the forward or reverse direction, but also applicable to scenarios where the electronic device 100 is worn as an accessory such as an alarm clock, pocket watch, or necklace.

[0103] In some application scenarios, the electronic device 100 displays a wearing mode interface, which includes multiple direction mode controls, such as a crown-up mode control, a crown-down mode control, a crown-left mode control, a crown-right mode control, and the like. The electronic device 100 can receive and respond to a user's operation on any of the above-mentioned direction mode controls, set the direction mode to the direction mode corresponding to the direction mode control, and rotate the display content of the electronic device 100 (e.g., the wearing mode interface) based on the switched direction mode, wherein the direction modes before and after the switching are different. In this way, when the electronic device 100 is rotated at any angle, the displayed content can be set to a direction that is convenient for the user to view and operate.

[0104] As shown in FIG4A , crown 14A is located to the right of movement 11A, and electronic device 100 displays desktop 400, which is displayed in the forward direction. Desktop 400 may include one or more application icons, such as a settings application icon 401, a music application icon, a workout application icon 402, a heart rate application icon 403, and the like.

[0105] The electronic device 100 may receive and, in response to a user's click operation on the settings application icon, display a settings application interface 410 as shown in FIG. 4B .

[0106] As shown in FIG4B , the settings application interface 410 may include one or more settings items, such as a Bluetooth item, a watch face and desktop item, a custom card item, a wearing mode item 411 , and the like.

[0107] 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 .

[0108] As shown in Figure 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, 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 can 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 Figure 4C, or a check mark or other pattern mark, or a highlight display mark, etc., and this application does not limit this. Optionally, a text prompt can also be displayed in the wearing mode interface 420, and the text prompt can be used to prompt the user how to select the wearing mode.

[0109] 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 direction mode controls located below the wearing mode control in the wearing mode interface 420.

[0110] As shown in Figure 4D, in the wearing mode interface 420, the multiple directional mode controls may include a right control 431, a left control 432, an upper control 433, and a lower control 434. In some embodiments, further directional mode controls may be included, such as an upper left control, a lower left control, an upper right control, a lower right control, and so on. A directional mode control can be used to trigger the electronic device 100 to set the corresponding directional mode. For example, the upper control 433 can be used to trigger the electronic device 100 to set the directional mode to crown up, i.e., when the crown is up, the display is forward-facing. The directional mode control may display an image and / or text, both of which can be used to indicate to the user the directional mode corresponding to the directional mode control. For example, the image on the upper control 433 may be an image of a watch movement, with the crown positioned above the movement. For another example, the upper control 433 may display the text "up" to indicate to the user that the directional mode control corresponds to crown up. It will be understood that the embodiment shown in FIG4D 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 texts, which is not limited in this 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 FIG4D, or a mark of other shapes. In some embodiments, the check mark 435 may also be highlighted by highlighting, magnifying, or other methods of highlighting the direction mode control, which is not limited in this application.

[0111] 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.

[0112] 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 Figure 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 Figure 4E.

[0113] 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.

[0114] For example, as shown in FIG4G , the electronic device 100 displays a wearing mode interface 420 . A check mark 424 is displayed next to the watch mode 421 in the wearing mode interface 420 , indicating that the user is currently in the watch mode. For other contents of the wearing mode interface 420 , please refer to the relevant description of the embodiment shown in FIG4C above and will not be repeated here.

[0115] 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 FIG4H .

[0116] As shown in Figure 4H, multiple 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 be referred to the relevant description of the embodiment shown in Figure 4D above. Comparing Figures 4D and 4H, 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.

[0117] In some embodiments, when the electronic device 100 displays the wearing mode interface 420 shown in FIG. 4C , the electronic device 100 may also receive and respond to a user click operation on the movement mode control 422, as shown in FIG. 4D , by displaying multiple directional mode controls in the wearing mode interface 420. The electronic device 100 may also receive and respond to a user click operation on the watch mode control shown in FIG. 4C , as shown in FIG. 4H , by displaying multiple directional mode controls.

[0118] 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 above 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.

[0119] In addition, it should be noted that in the embodiments shown in Figures 4A to 4F above, the rotation direction of the electronic device 100 and the rotation direction of the displayed content are described using clockwise rotation as an example of the rotation angle. 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. In this case, 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 content related to the rotation angle in the following embodiments of the present application can also refer to the relevant description here.

[0120] In some embodiments, the electronic device 100 may also receive and respond to user operations on the direction mode control. After detecting that the user has exited the wearing mode interface (or turned off the screen), the electronic device 100 may rotate the display content on the display screen 13A 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 match the expected one, the user can switch to the expected direction mode in a timely manner.

[0121] In other embodiments, the electronic device 100 may also receive and respond to a user's operation on a direction mode control. After detecting that the user has rotated the electronic device 100, the electronic device 100 may rotate the displayed content on the display screen 13A based on the direction mode corresponding to the direction mode control. In this way, the displayed content can always be in a display direction that is convenient for the user to view and operate.

[0122] 5A to 5F show a set of application scenario schematic diagrams provided by an embodiment of the present application.

[0123] As shown in FIG5A , the user can wear the electronic device 100 on the left wrist, and the crown 14A of the electronic device 100 is located to the right of the movement 11A. The orientation mode of the electronic device 100 can be set to the crown facing right, in which case the display 13A displays the content in the forward direction.

[0124] 5B , the user can wear the electronic device 100 on the right wrist, and the crown 14A of the electronic device 100 is located to the left of the movement 11A. The orientation mode of the electronic device 100 can be set to the crown on the left, in which case the display 13A displays the content in the forward direction.

[0125] As shown in FIG5C , the user can connect the crown 14A of the electronic device 100 to a necklace and wear it around the neck as a necklace, with the crown 14A positioned above the movement 11A. The orientation mode of the electronic device 100 can be set to crown-up, in which case the display screen 13A displays the content in the forward direction.

[0126] As shown in FIG5D , the user can combine electronic device 100 with other devices to form an alarm clock. Based on the structural requirements of the alarm clock, crown 14A of electronic device 100 is located above movement 11A. The orientation mode of electronic device 100 can be set to crown-up, in which case the display screen 13A displays the content in the forward direction.

[0127] As shown in FIG5E , the user can mount the electronic device 100 on a backpack as an accessory. For securement, the crown 14A is positioned below the movement 11A. The orientation of the electronic device 100 can be set to crown-down, where the display screen 13A displays content in the forward direction.

[0128] As shown in FIG5F , the user can mount electronic device 100 in the middle of the bicycle handlebars. To ensure secure placement, crown 14A of electronic device 100 is positioned below movement 11A. The orientation mode of electronic device 100 can be set to crown-down. In this case, display screen 13A displays content in a forward-facing mode, allowing the user to conveniently view their route using electronic device 100.

[0129] 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.

[0130] 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 micro-motion detection is turned on, when the electronic device 100 detects that the movement 11A is rotating, it may rotate the content displayed 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.

[0131] For example, 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. For the specific content of the wearing mode interface 420 , please refer to the relevant description in the embodiment shown in FIG4D above, which will not be repeated here.

[0132] The electronic device 100 can receive and respond to the user's upward sliding operation on the wearing mode interface 420 , as shown in FIG6B , and display the lower part of the interface content of the wearing mode interface 420 , including the micro-motion detection switch 441 .

[0133] As shown in FIG6B , a micro-motion detection switch 441 is displayed in the wearing mode interface 420. 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 micro-motion detection is currently on. The switch mark 442 can be the text "OFF" as shown in FIG6B , or other text or patterns. According to the switch mark 442, it can be seen that micro-motion detection is currently off.

[0134] The electronic device 100 may receive and respond to a user's click operation on the micro motion detection switch 441 , as shown in FIG6C , by turning on micro motion detection and changing the switch mark 442 .

[0135] As shown in FIG. 6C , the switch mark 442 may be changed to the text “ON” as shown in FIG. 6C , to remind the user that the micro-motion detection is currently turned on.

[0136] 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 shown in Figure 6D, and the wearing mode interface 420 is displayed in the forward direction.

[0137] Similarly, after 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 225°, the electronic device 100 will display the display content on the display screen 13A after rotating it 135° clockwise relative to the display screen 13A.

[0138] Similarly, after 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 135°, the electronic device 100 will display the display content on the display screen 13A after rotating it 225° clockwise relative to the display screen 13A.

[0139] It is understood that Figures 6A to 6D are merely illustrative examples of how, after micro-motion detection is enabled, the display content can remain displayed in the forward direction during the micro-motion rotation of the movement 11A, for ease of user viewing and operation. In embodiments of the present application, the display content may also be other application interfaces or dials, and the rotation angle of the electronic device 100 may include more angles than those in the above-described embodiments. The rotation direction of the electronic device 100 and / or the display content may also be counterclockwise. The method for converting the rotation angle in the case of counterclockwise rotation may refer to the relevant content in the embodiments shown in Figures 4A to 4F above, and this application does not limit this.

[0140] In some embodiments, the electronic device 100 may also be preset with multiple rotation angle intervals (e.g., 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 within 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). This not only ensures that the displayed content is in an orientation that is convenient for the user to view and operate, but also reduces rotation of the displayed content relative to the display screen 13A due to vibration or shaking, thereby reducing energy consumption.

[0141] The following describes a process of a mode switching method provided in an embodiment of the present application.

[0142] As shown in FIG7 , a specific process of a mode switching method provided in an embodiment of the present application may include the following steps:

[0143] S701 , the electronic device 100 receives and responds to a user operation 1 to determine a switched direction mode 1 .

[0144] The electronic device 100 may include multiple orientation 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 orientation 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 orientation mode can refer to the relevant description in the embodiment shown in Figure 2 above, and will not be repeated here.

[0145] 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.

[0146] 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 , a click operation on the left control 432 , and so on.

[0147] 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, the direction mode 1 after switching is determined to be the crown on the left, etc.

[0148] S702 : The electronic device 100 determines rotation angle 1 based on direction mode 1 .

[0149] Rotation angle 1 is the angle by which the displayed content needs to be rotated clockwise relative to display screen 13A. It should be noted that in the embodiments of this application, the rotation angle is often described using clockwise rotation as an example. In some embodiments, the rotation angle can also be a counterclockwise rotation angle. In this case, the sum of the rotation angle corresponding to the counterclockwise rotation and the rotation angle corresponding to the clockwise rotation is 360°, which is not limited in this application.

[0150] Before the electronic device 100 receives operation 1 , the direction mode of the electronic device 100 is direction mode 2 .

[0151] In some embodiments, rotation angle 1 may be the rotation angle of direction mode 1 relative to direction mode 2, i.e., the angle by which the content displayed on display screen 13A needs to be rotated clockwise before and after the mode switch. In this case, electronic device 100 may determine rotation angle 1 based on the direction modes before and after the switch.

[0152] Before the electronic device 100 receives the user's operation 1 to set the direction mode, the electronic device 100 can obtain that the direction mode before switching is direction mode 2. For example, if a check mark 435 is displayed on the right control 431 in the wearing mode interface 420 shown in Figure 4D above, the crown corresponding to the right control 431 is in direction mode 2 on the right.

[0153] In some embodiments, the electronic device 100 may store a correspondence between the direction modes before and after switching and the rotation angle 1. For example, Table 1 shows a correspondence between the direction modes before and after switching and the rotation angle 1 provided in an embodiment of the present application.

[0154] Table 1

[0155] As shown in Table 1, the correspondence table between switching forward and backward direction modes and rotation angle 1 stored in 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, 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, 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, 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, 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, rotation angle 1 is 180°; and when direction mode 2 is the crown on the bottom and direction mode 1 is the crown on the left, rotation angle 1 is 270°. Rotation angle 1 is the angle by which the displayed content is rotated clockwise relative to display screen 13A.

[0156] It can be understood that the embodiment shown in Table 1 above 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.

[0157] 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.

[0158] In other embodiments, the electronic device 100 may store an initial direction mode and an initial display direction in the initial direction mode, where 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 may 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 may determine the rotation angle 1 based on the direction mode 1 after the switch and the initial direction mode.

[0159] The electronic device 100 may store a correspondence between the initial direction mode, the direction mode after switching, and the rotation angle 1.

[0160] For example, taking the crown on the right as the initial direction mode, Table 2 shows the correspondence between an initial direction mode, a direction mode after switching, and a rotation angle 1 provided in an embodiment of the present application.

[0161] Table 2

[0162] As shown in Table 2, the correspondence table between the initial orientation mode, the orientation mode after switching, and rotation angle 1 stored in electronic device 100 may include the initial orientation mode, orientation mode 1, and rotation angle 1. As can be seen from Table 1, when the initial orientation mode is crown-right, when orientation mode 1 is crown-left, rotation angle 1 is 180°; when orientation mode 1 is crown-up, rotation angle 1 is 90°; when orientation mode 1 is crown-down, rotation angle 1 is 270°; and when orientation mode 1 is crown-right, rotation angle 1 is 0°. Rotation angle 1 is the angle by which the displayed content rotates clockwise relative to display screen 13A.

[0163] It can be understood that the embodiment shown in Table 2 above 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. This application does not limit this.

[0164] After determining the direction mode 1 after switching, the electronic device 100 may determine the rotation angle 1 based on the stored correspondence between the initial direction mode, the direction mode 1, and the rotation angle 1.

[0165] S703 : The electronic device 100 rotates the displayed content based on the rotation angle 1 .

[0166] After determining the rotation angle 1, the electronic device 100 may rotate the displayed 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, where the rotation instruction includes the rotation angle 1 and instructs the GPU to rotate the displayed content (the displayed content on the current display screen or the initial displayed content) by the rotation angle 1. After receiving the rotation instruction, the GPU may rotate the displayed content based on the rotation angle 1.

[0167] When rotation angle 1 is the rotation angle of direction mode 1 relative to direction mode 2 before switching, the electronic device 100 can rotate the display content in the current display screen 13A clockwise relative to the display screen 13A, and the rotation angle is rotation angle 1.

[0168] 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.

[0169] 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.

[0170] S704 , the electronic device 100 adapts the touch screen event based on direction mode 1 or rotation angle 1 .

[0171] 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 to enable 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.

[0172] 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.

[0173] As shown in Figure 8A, the crown 14A of the electronic device 100 is located on the right side of the movement 11A. 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 Figure 1D 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. The specific description of the desktop 400 can refer to the relevant content shown in Figure 4A above. In Figure 8A, 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; and 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".

[0174] After the orientation mode is switched from the crown on the right to the crown on the left as shown in FIG8A , as shown in FIG8B , electronic device 100 has not rotated compared to FIG8A , and crown 14A remains to the right of movement 11A. Electronic device 100 can display 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 also not changed. At this point, the direction detected by electronic device 100 must be opposite to that shown in FIG8A in order for 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".

[0175] After the orientation 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 to the right of the movement 11A. The electronic device 100 can display the desktop 400, which is displayed right-facing. Since neither the X-axis nor the Y-axis has changed, the direction perceived by the user has not changed. At this point, 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".

[0176] 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 to the right of the movement 11A. The electronic device 100 can display the desktop 400, which is displayed in a left-facing manner. Since neither the X-axis nor the Y-axis has changed, the direction perceived by the user has not changed. At this point, 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".

[0177] Because the direction detected by the electronic device 100 is determined based on the relative orientation of the crown 14A and the movement 11A, if the electronic device 100 is subsequently rotated and 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.

[0178] The electronic device 100 may adapt to the touch screen event after determining direction mode 1 or rotation angle 1. In other embodiments, the electronic device 100 may also adapt to the touch screen event after determining direction mode 1 or rotation angle 1 and detecting a user's touch screen operation.

[0179] In some embodiments, the electronic device 100 may adapt touch screen events (eg, sliding events, etc.) based on direction mode 1 .

[0180] 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.

[0181] Table 3

[0182] As shown in Table 3, the initial direction mode is crown-right. The electronic device 100 is set by default to the case where the crown is in the right position. When the user's actual operation is an upward swipe, the electronic device 100 detects the operation as an upward swipe; when the user's actual operation is a downward swipe, the electronic device 100 detects the operation as a downward swipe; when the user's actual operation is a left swipe, the electronic device 100 detects the operation as a left swipe; and when the user's actual operation is a right swipe, the electronic device 100 detects the operation as a right swipe. When the switched direction mode 1 is crown-left, the electronic device 100 can define "upward swipe" in the right mode as "downward swipe" in the left mode; define "downward swipe" in the right mode as "upward swipe" in the left mode; define "left swipe" in the right mode as "right swipe" in the left mode; and define "right swipe" in the right mode as "left swipe" in the left mode. When the switched direction mode 1 is the crown up, the electronic device 100 may define the "up swipe" when the crown is in the right mode as the "left swipe" when the crown is in the up mode; define the "down swipe" when the crown is in the right mode as the "right swipe" when the crown is in the up mode; define the "left swipe" when the crown is in the right mode as the "down swipe" when the crown is in the up mode; and define the "right swipe" when the crown is in the right mode as the "up swipe" when the crown is in the up mode. When the switched direction mode 1 is the crown down, the electronic device 100 may define the "up swipe" when the crown is in the right mode as the "right swipe" when the crown is in the down mode; define the "down swipe" when the crown is in the right mode as the "left swipe" when the crown is in the down mode; define the "left swipe" when the crown is in the right mode as the "up swipe" when the crown is in the down mode; and define the "right swipe" when the crown is in the right mode as the "down swipe" when the crown is in the down mode.

[0183] It can be understood that the embodiment shown in Table 3 is only an example. In the embodiment of the present application, the initial direction mode may also be a direction mode different from the embodiment shown in Table 3, and 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 limit them here.

[0184] 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.

[0185] 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.

[0186] In other embodiments, the electronic device 100 may also adapt the touch screen event based on the rotation angle 1 after determining the clockwise rotation angle 1. Specifically, the electronic device 100 may rotate the direction of the sliding operation counterclockwise, and the rotation angle is the rotation angle 1. Wherein, if the rotation angle 1 is the rotation angle of the direction mode 1 relative to the initial direction mode, the electronic device 100 may perform a counterclockwise rotation on the sliding event in the initial direction mode to obtain the converted sliding event. For example, in the case where the initial direction mode is the crown to the right, if the rotation angle 1 is 90°, the upward sliding operation in the initial direction mode is converted to a left sliding operation after being rotated 90° counterclockwise; the downward sliding operation in the initial direction mode is converted to a right sliding operation after being rotated 90° counterclockwise, and so on. In some embodiments, if the rotation angle 1 is the rotation angle of the direction mode 1 relative to the direction mode 2 before the switch, the electronic device 100 may perform a counterclockwise rotation on the sliding event in the direction mode 2 to obtain the converted sliding event. For example, in direction mode 2 with the crown up, if rotation angle 1 is 180°, an upward swipe operation in direction mode 2 will be converted to a downward swipe operation after rotating 180° counterclockwise; a downward swipe operation in direction mode 2 will be converted to an upward swipe operation after rotating 180° counterclockwise, and so on.

[0187] 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 upward swipe operation on the display screen 13A corresponds to the response logic of the upward swipe event, the user's downward swipe operation on the display screen 13A corresponds to the response logic of the downward swipe 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.

[0188] 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 in 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. In this case, the purpose of touch screen event adaptation may also be achieved by adapting the coordinate system. For the adaptation of the coordinate system, reference may be made to the relevant description in step S706 below, which will not be described in detail here.

[0189] S705 , the electronic device 100 adapts the crown rotation event based on direction mode 1 or rotation angle 1 .

[0190] In some embodiments, the electronic device 100 can detect operations performed by the user on the crown 14A (or button 15B, etc.), such as a crown rotation event. The crown rotation event refers to the rotation operation of the crown 14A on the two-dimensional plane where the Z axis and X axis shown in the above-mentioned Figure 1D are located. Specifically, it can include clockwise rotation operation and counterclockwise rotation operation. The user's rotation operation on the crown 14A can trigger the electronic device 100 to perform a corresponding response.

[0191] 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.

[0192] 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 as the crown facing 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.

[0193] Table 4

[0194] 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 the 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.

[0195] 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.

[0196] In other embodiments, the electronic device 100 may also adapt the crown rotation event based on the rotation angle 1 after determining the rotation angle 1 (clockwise rotation). Specifically, when the rotation angle 1 is the rotation angle of the direction mode 1 relative to the initial direction mode, if the rotation angle 1 is in the first angle range, the adapted crown rotation event 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 crown rotation event is opposite to the crown rotation 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°].

[0197] 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 crown rotation event, 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 if 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 to the corresponding event based on the switched direction mode 1 or rotation angle 1, which will not be repeated here.

[0198] In this way, after adapting to the user's operations on the crown 14A (or button 15B), the electronic device 100 can normally detect the user's operations 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).

[0199] S706 : The electronic device 100 adapts the coordinate system based on direction mode 1 or rotation angle 1 .

[0200] 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, respectively, or may be three coordinate axes obtained by rotating the gyroscope along the three axes.

[0201] The electronic device 100 can configure the gesture parameters (including the wrist movement direction corresponding to different gesture operations) and the coordinate system into the integrated circuit (IC) to realize the gesture function of the electronic device 100 (such as raising the wrist, swinging the arm, etc.). Therefore, after adapting the coordinate system, the gesture function of the electronic device 100 can also be used normally in the current scenario. 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 movement mode, the electronic device 100 may not execute step S706.

[0202] 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.

[0203] Exemplarily, FIG9A shows a coordinate system stored by the electronic device 100 before the orientation mode is switched.

[0204] As shown in FIG9A , the electronic device 100 can establish a three-dimensional space coordinate system with the center position of the display screen 13A as the origin O, based on the three axes of any device in the IMU (such as a gyroscope, accelerometer, magnetometer, etc.) as the three axes of the three-dimensional coordinate system, and any two coordinate axes of the X0 axis, Y0 axis and Z0 axis are perpendicular to each other. In an embodiment of the present application, since the X0 axis, Y0 axis and 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 referred to as 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 Figure 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 can coincide with the three-dimensional space coordinate system XYZ shown in Figure 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 can be called 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 correspondence 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 Figure 9A.

[0205] Exemplarily, taking the crown at the right as the initial direction mode as an example, Table 5 shows the correspondence between the direction mode 1 after switching stored in the electronic device 100 and the angle that the coordinate system needs to rotate.

[0206] Table 5

[0207] As shown in Table 5, the initial orientation mode is crown-right. Electronic device 100 defaults to the initial coordinate system when the crown is in the right position. The initial coordinate system may be the coordinate system shown in FIG. 1D , where the rotation angle is 0°. When orientation mode 1 is switched to crown-left, the rotation angle of the switched coordinate system relative to the initial coordinate system is 180°. When orientation mode 1 is switched to crown-up, the rotation angle of the switched coordinate system relative to the initial coordinate system is 90° clockwise. When orientation mode 1 is switched to crown-down, the rotation angle of the switched coordinate system relative to the initial coordinate system is 270° clockwise.

[0208] It can be understood that the embodiment shown in Table 5 is only an example. In the embodiment 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.

[0209] 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.

[0210] In other embodiments, the electronic device 100 may adapt the coordinate system based on rotation angle 1. Specifically, when rotation angle 1 is the rotation angle of direction mode 1 relative to 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 rotation angle 1 (or clockwise, and the rotation angle is the difference between 360° and rotation angle 1); when rotation angle 1 is the rotation angle of 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 rotation angle 1.

[0211] 9A to 9D are schematic diagrams showing changes in a coordinate system before and after a mode switch provided by an embodiment of the present application.

[0212] Illustratively, 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 .

[0213] 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 FIG9B , the coordinate system stored in the electronic device 100 also rotates, and the rotation direction and angle of the X0 axis and the Y0 axis are the same as the rotation direction and angle of the electronic device 100. The rotated three-dimensional spatial coordinate system X0Y0Z0 is shown in FIG9B , where 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.

[0214] When the electronic device 100 switches its orientation mode from crown-right to crown-down, the adapted coordinate system X1Y1Z1 based on the three-dimensional coordinate system X0Y0Z0 is shown in Figure 9C . As shown in Figure 9C , the three-dimensional coordinate system X1Y1Z1 consists of three mutually perpendicular axes: the X1 axis, the Y1 axis, and the Z1 axis. 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 and Y1 axes. The crown 14A of the electronic device 100 is located to the right of the movement 11A. The X1 axis is the coordinate axis of the X0 axis rotated 270° clockwise with the origin O as the center. The Y1 axis is the coordinate axis of the Y0 axis rotated 270° clockwise with the origin O as the center. At this point, the display of the electronic device 100 is left-facing. The direction of the crown 14A relative to the movement 11A is the negative direction of the Y1 axis.

[0215] When the electronic device 100 is rotated until the crown 14A is located below the movement 11A, the three-dimensional spatial coordinate system X1Y1Z1 shown in FIG9C rotates with the electronic device 100. The rotated electronic device 100 and the coordinate system X1Y1Z1 are shown in FIG9D. As shown in FIG9D, the display content of the electronic device 100 is displayed in the forward direction, and the rotated three-dimensional spatial coordinate system X1Y1Z1 coincides with the three-dimensional spatial coordinate system X0Y0Z0 shown in FIG9A. It is understood that the embodiments shown in FIG9A and FIG9D are merely 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 can also be other direction modes, and the coordinate system can also be other types of coordinate systems. This application does not limit this.

[0216] 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).

[0217] 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.

[0218] The following describes the specific process of another mode switching method provided in an embodiment of the present application.

[0219] As shown in FIG10 , the specific process of another mode switching method provided in an embodiment of the present application may include the following steps:

[0220] S1001: The electronic device 100 starts micro-motion detection.

[0221] In some embodiments, the electronic device 100 may receive and respond to a user's operation to enable micro-motion detection, enable micro-motion detection, and begin monitoring the rotation of the electronic device 100 (or movement 11A). The user's operation to enable micro-motion detection may be a click operation on the micro-motion detection switch 441 in the embodiment shown in FIG. 6B .

[0222] In other embodiments, the electronic device 100 may also enable micro-motion detection by default after the device is started.

[0223] 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).

[0224] 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 the above embodiments, and may also include more or fewer conditions than the above trigger conditions. The present application does not limit this.

[0225] S1002 : When the electronic device 100 detects that the movement 11A rotates, the electronic device 100 determines the rotation angle 2 of the movement 11A.

[0226] The electronic device 100 may include an inertial measurement unit (IMU), which can 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, etc. Among them, the accelerometer can 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 can 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.

[0227] After micro-motion detection is enabled, 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 it can be 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.

[0228] In some embodiments, the IMU can return measurement results, which can include any one or more of a rotation matrix, Euler angles, and quaternions. The measurement results can be used to represent spatial rotations. Based on the above measurement results, the electronic device 100 can obtain the rotation angle of the movement 11A and then determine the rotation angle 2. In other embodiments, the IMU can also return raw measurement data, which includes: the linear acceleration of the electronic device 100 in the x0-axis direction, the linear acceleration in the y0-axis direction, and the linear acceleration in the z0-axis direction of the accelerometer; the angular acceleration of the electronic device 100 rotating about the x1-axis of the gyroscope, the angular acceleration of the gyroscope rotating about the y1-axis, and the angular acceleration of the gyroscope rotating about the z1-axis. Optionally, the data may also include the magnetic field data of the electronic device 100 in the x2-axis direction, the magnetic field data in the y2-axis direction, and the magnetic field data in the z2-axis direction of the magnetometer. 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.

[0229] 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. For example, 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, not only can the displayed content be ensured to be in a direction that is convenient for the user to view and operate, but the rotation of the displayed content relative to the display screen 13A due to vibration and shaking can also be reduced, thereby reducing energy consumption.

[0230] S1003 : The electronic device 100 determines a rotation angle 3 of the displayed content based on the rotation angle 2 .

[0231] The rotation angle 3 is the angle at which the display content is rotated relative to the display screen 13A.

[0232] If movement 11A rotates clockwise by rotation angle 2, the displayed content can be rotated in the same direction opposite to the rotation angle. That is, rotation angle 3 can be the difference between 360° and rotation angle 2. For example, if movement 11A rotates 45° clockwise, rotation angle 3 becomes 45° counterclockwise, or 315° clockwise.

[0233] S1004 , the electronic device 100 rotates the displayed content based on the rotation angle 3 .

[0234] S1005 , the electronic device 100 adapts the touch screen event based on the rotation angle 3 .

[0235] S1006 , the electronic device 100 adapts the crown rotation event based on the rotation angle 3 .

[0236] S1007 , the electronic device 100 adapts the coordinate system based on the rotation angle 3 .

[0237] 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.

[0238] 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 in real time based on the rotation angle of the movement 11A. Even in the scenario where the movement 11A is continuously rotating, the user can also view and operate the display content very conveniently.

[0239] It can be understood that the embodiments shown in Figures 7 to 10 are explained by taking the electronic device 100 as the watch 100A or movement 11A shown in Figure 1A above as an example. In the embodiment of the present application, the electronic device 100 can also be the bracelet 100B or movement 11B shown in Figure 1B, or other forms of devices. In this case, the direction mode can 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.

[0240] 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 all described using clockwise rotation as an example for the rotation angles (e.g., rotation angle 1, rotation angle 2, and rotation angle 3, etc.). 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. In this case, 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.

[0241] FIG11 shows a flow chart of a method for switching wearing modes provided in an embodiment of the present application.

[0242] As shown in FIG11 , a method for switching wearing modes provided in an embodiment of the present application may include the following steps:

[0243] S1101, the electronic device 100 receives the user's operation 2.

[0244] Operation 2 may be an operation in which the user switches 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 in which the user connects or separates 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 a gesture operation to switch the wearing mode. In this case, the electronic device 100 may be provided with a gesture operation 1 for switching to the movement mode and a 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.

[0245] S1102: In response to operation 2, the electronic device 100 switches the wearing mode.

[0246] Wearing modes can include watch mode and movement mode.

[0247] 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.

[0248] In some embodiments, the wearing mode after switching depends on the target of Operation 2. For example, if the target of Operation 2 is the movement mode control 422 shown in FIG4C , the wearing mode after switching is the movement mode; if the target of Operation 2 is the watch mode control 421 shown in FIG4C , the wearing mode after switching is the watch mode.

[0249] 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 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.) can be provided on the shell and the movement 11A respectively. 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.

[0250] 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.

[0251] In some embodiments, the watch mode and / or movement mode can be further subdivided into multiple modes. For example, the watch mode can include forward wearing and reverse wearing, etc.; the movement mode can include necklace mode, pocket watch mode, alarm clock mode, etc. In this case, in response to operation 2, the electronic device 100 can also switch the wearing mode from one mode in the watch mode (e.g., forward wearing) to another mode in the watch mode (e.g., reverse mode), or from one mode in the movement mode (e.g., necklace mode) to another mode in the movement mode (e.g., alarm clock mode), etc.

[0252] In some embodiments, the electronic device 100 may also store a correspondence between the wearing mode and the orientation mode. In this case, in response to operation 2, the electronic device 100 may determine whether to switch the orientation mode based on the correspondence between the switched wearing mode and the orientation mode. If the orientation mode is switched, the display content, coordinate system, touch screen events, etc. are adapted based on the switched orientation mode. The specific adaptation method can be referred to the relevant content in the embodiment shown in Figure 7 above, and will not be repeated here.

[0253] S1103: When the switched wearing mode is the movement mode, the electronic device 100 turns off the photoplethysmography (PPG) measurement function.

[0254] If the switched wearing mode is determined to be movement mode, the electronic device 100 may broadcast a notification of the wearing mode change to the monitoring module of the electronic device 100, instructing the monitoring module to disable the PPG measurement function. The monitoring module of the electronic device 100 can be used to perform functions such as PPG measurement. PPG measurement can be used to measure blood oxygen, blood pressure, stress, energy consumption, sleep, and other sports and health-related data.

[0255] It should be noted that, in some embodiments, if the wearing modes before and after switching are both movement modes, the electronic device 100 can keep the PPG measurement function turned off.

[0256] S1104: When the switched wearing mode is the watch mode, the electronic device 100 turns on the PPG measurement function.

[0257] 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.

[0258] It should be noted that, in some embodiments, if the wearing modes before and after switching are both watch modes, the electronic device 100 can keep the PPG measurement function turned on.

[0259] 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.

[0260] S1105, the electronic device 100 receives the user's operation 3.

[0261] When the wearing mode of the electronic device 100 is movement mode, operation 3 may be a user clicking on an icon of an application such as a health-related application or a sports-related application. Operation 3 may also be a user clicking on a measurement control in an application interface of an application such as a health-related application or a sports-related application, where the measurement control is used to trigger the electronic device 100 to measure corresponding data using the PPG measurement function.

[0262] S1106, the electronic device 100 displays a mode switching prompt, including a mode switching control.

[0263] The mode switch prompt is used to inform the user that the PPG measurement function cannot be used normally in movement mode and ask the user whether to switch to watch mode. The mode switch prompt may include a mode switch control, which can be used to trigger the electronic device 100 to switch the wearing mode from movement mode to watch mode.

[0264] S1107 , the electronic device 100 receives and responds to the user's operation 4 , switching the movement mode to the watch mode.

[0265] 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 watchband 12A.

[0266] S1108 , the electronic device 100 executes a response corresponding to operation 3 .

[0267] 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.

[0268] By using the mode switching method provided in the embodiments of the present application, the electronic device 100 can quickly switch back to watch mode when it receives a user operation using the PPG measurement function while in movement mode. This not only avoids the collection of inaccurate data, but also enables rapid switching of wearing modes.

[0269] The following introduces the functional modules of an electronic device 100 provided in an embodiment of the present application.

[0270] 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 , and a monitoring module 1205 .

[0271] The interaction module 1201 may receive user operations, such as operation 1 in the above-described embodiment for setting the orientation mode, operation 2 in the above-described embodiment for switching the wearing mode, operation 3 in the above-described embodiment for using the PPG measurement function, operation 4 in the above-described embodiment for switching the wearing mode, and so on. In response to the user operations, the interaction module 1201 may send instructions to the mode setting module 1202, instructing the mode setting module 1202 to switch the wearing mode and / or instructing the mode setting module 1202 to switch the orientation mode. The specific content of the instructions depends on the user operations received by the interaction module 1201. The interaction module 1201 may also receive the orientation mode and / or rotation angle sent by the mode setting module 1202, and adjust interaction events based on the orientation mode and / or rotation angle, such as the touch screen event and crown rotation event in the above-described embodiments shown in FIG. 7 and FIG. 10 .

[0272] The mode setting module 1202 can receive instructions sent by the interaction module 1201 to switch the wearing mode and / or orientation mode. In some embodiments, after switching the orientation mode, the mode setting module 1202 can send the switched orientation mode (e.g., orientation mode 1 in the embodiment shown in FIG. 7 ) to the interaction module 1201, the coordinate system module 1203, the display module 1204, etc. In other embodiments, after switching the orientation mode, the mode setting module 1202 can also determine a rotation angle (e.g., rotation angle 1, rotation angle 3, etc. in the embodiment shown above) based on the switched orientation mode and send the rotation angle to the interaction module 1201, the coordinate system module 1203, the display module 1204, etc. In some embodiments, after switching the wearing mode, the mode setting module 1202 can determine whether the switched wearing mode is the movement mode. If the switched wearing mode is the movement mode, the mode setting module 1202 can send a shutdown instruction to the monitoring module 1205, instructing the monitoring module 1205 to disable the PPG measurement function. If the switched wearing mode is the watch mode, the mode setting module 1202 may send an activation instruction to the monitoring module 1205 to instruct the monitoring module 1205 to activate the PPG measurement function.

[0273] The coordinate system module 1203 may receive the direction mode and / or rotation angle sent by the mode setting module 1202 and adapt the coordinate system based on the direction mode and / or rotation angle.

[0274] 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.

[0275] The monitoring module 1205 can 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 can receive an off instruction sent by the mode setting module 1202, and in response to the off instruction, turn off the PPG measurement function.

[0276] 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. The present application does not limit this.

[0277] FIG13 shows a flow chart of a mode switching method provided in an embodiment of the present application.

[0278] As shown in FIG13 , the process of the mode switching method may include the following steps:

[0279] 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, with the button located at a first position.

[0280] 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 the button 15B in the above embodiment.

[0281] In the embodiment of the present application, the display content on 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 to the right of the movement 11A relative to the movement 11A.

[0282] 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 and a first angle, after the electronic device is rotated in the first rotation direction and the first angle, the key is located in a second orientation, and the first orientation is different from the second orientation.

[0283] The first operation of the user may be an operation of rotating the electronic device 100 .

[0284] The first rotation direction may be clockwise or counterclockwise. The first angle may be the rotation angle 2 in the embodiment shown in FIG10 .

[0285] 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.

[0286] 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 .

[0287] S1304: The electronic device rotates the coordinate system by a first angle in a second rotation direction.

[0288] The specific operation of step S1304 may refer to step S706 shown in FIG. 7 and step S1007 shown in FIG. 10 .

[0289] S1305: The electronic device adjusts one or more touch screen events based on the first angle.

[0290] The one or more touch screen events may include a first touch screen event (e.g., an upward swipe event, a downward swipe event, a left swipe event, a right swipe event, etc.). The first touch screen event includes a first swiping direction and a first touch screen response. The first swiping direction is the direction of a sliding track of the first touch screen event on the display screen. The first swiping direction is determined based on the angle between the sliding track and a first reference line of the display screen. The first reference line may be a line connecting the center of the display screen and the button, or may be other straight lines on the display screen, which is not limited in this application.

[0291] 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.

[0292] For adjustments to other touch screen events, refer to the first touch screen event.

[0293] The specific adjustment steps of the touch screen event can also refer to step S704 shown in Figure 7 and step S1005 shown in Figure 10.

[0294] In some embodiments, after the electronic device rotates the first angle in the first rotational direction, it may further adjust a key rotation event (e.g., 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 details 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.

[0295] The various implementation modes of this application can be combined arbitrarily to achieve different technical effects.

[0296] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments may be implemented 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, all or part of the processes or functions described herein are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated therein. The available medium may 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)).

[0297] Those skilled in the art will appreciate that all or part of the process steps in the above-described method embodiments can be implemented by a computer program instructing the relevant hardware. The program can be stored in a computer-readable storage medium, and when executed, the program can include the process steps in the above-described method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.

[0298] In short, the above description is only an embodiment of the technical solution of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent replacements, improvements, etc. made based on the disclosure of the present invention should be included in the scope of protection of the present invention.

Claims

1. A mode switching method, It is characterized in that 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 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.

2. The method according to claim 1, It is 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 a 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.

3. The method according to claim 1 or 2, It is characterized in that Before the electronic device is rotated in a first rotation direction by a first angle, the method further includes: receiving a second operation from the user; In response to the second operation, the rotation angle of the electronic device begins to be monitored.

4. The method according to claim 3, It is characterized in that The second operation is a click operation of the user on the first control.

5. The method according to any one of claims 1 to 4, It is characterized in that The electronic device comprises a movement and a watch strap, the movement comprises the display screen, and the watch strap is provided with a first housing; the method further comprises: When it is detected that the movement is connected to the first housing, the electronic device enters a watch mode.

6. The method according to any one of claims 1 to 4, It is characterized in that The electronic device comprises a movement and a watch strap, the movement comprises the display screen, and the watch strap is provided with a first housing; 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.

7. The method according to any one of claims 1 to 6, It is characterized in that The electronic device stores a plurality of key rotation events acting on the key, wherein the key rotation event includes a key rotation direction and a key rotation response; After the electronic device is rotated in a first rotation direction by a first angle, the method further 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.

8. An electronic device, which is a wearable device, It is characterized in that include: 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.

9. A computer-readable storage medium comprising computer instructions, It is characterized in that When the computer instructions are executed on an electronic device, the electronic device is caused to execute the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Display rotation control method and intelligent wearable device

    CN105389011A

  • Screen rotation control method, system and apparatus

    CN107300973A

  • Intelligent wearable equipment, display control method thereof, and computer readable storage medium

    CN108650405A

  • Communication method and device for intelligent terminal and intelligent wearable equipment, terminal and medium

    CN113473432A

  • Precision 6-dof tracking for wearable devices

    US20220295223A1