Mode switching method and device, electronic equipment and computer readable storage medium
By detecting target signals to enter cycling mode and automatically switching based on movement speed information, the problem of inconvenient operation of smart devices during cycling is solved, achieving a convenient cycling experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- TCL COMM TECH (CHENGDU) LTD
- Filing Date
- 2026-01-13
- Publication Date
- 2026-05-12
AI Technical Summary
Existing smart devices are inconvenient to operate while cycling and lack adaptation designs suitable for cycling scenarios, resulting in a poor user experience.
The system detects target signals to enter cycling mode and provides a cycling style interface within the cycling mode, responding to user interaction requests. It also combines movement speed information to determine whether to exit cycling mode, achieving automated switching control.
It improves the ease of operation and user experience during cycling, reduces manual operation by users, and provides an adaptive design suitable for cycling scenarios.
Smart Images

Figure CN122019034A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of mode switching technology, specifically to a mode switching method, apparatus, electronic device, and computer-readable storage medium. Background Technology
[0002] With increasingly severe urban traffic congestion and the growing popularity of green travel concepts, two-wheeled vehicles such as electric bicycles and motorcycles have become the mainstream choice for short-distance commuting. Cycling is also a major outdoor sport, providing users with a common way to connect with nature and improve their quality of life.
[0003] However, the current level of intelligence in cycling is lagging behind. Smart devices, such as mobile phones, are not adapted to cycling scenarios. Users encounter inconvenience when using mobile phones and other smart devices while cycling. Therefore, there is a lack of adaptive designs suitable for cycling and other sports scenarios. Summary of the Invention
[0004] This application provides a mode switching method, device, electronic device, and computer-readable storage medium, which can provide an adaptive design suitable for cycling scenarios and improve the cycling experience.
[0005] In a first aspect, embodiments of this application provide a mode switching method applied to a terminal device, the method comprising: If a target signal is detected, the system enters cycling mode, which provides a cycling style interface. The cycling style interface responds to the target user's cycling interaction request and obtains the cycling interaction result. If the target signal is detected to be continuously interrupted, and the moving speed information of the terminal device meets the preset conditions, then the riding mode is exited.
[0006] Secondly, embodiments of this application also provide a mode switching device applied to a terminal device, the device comprising: A detection module is used to enter cycling mode if a target signal is detected, wherein the cycling mode provides a cycling style interface; The response module is used to respond to the cycling interaction request of the target user through the cycling style interface and obtain the cycling interaction result; The control module is configured to exit the riding mode if it detects that the target signal is continuously interrupted and the moving speed information of the terminal device meets preset conditions.
[0007] Optionally, in some embodiments of this application, the apparatus further includes: A mode configuration interface is provided, which is used to configure control information for mode switching; The mode configuration interface includes a signal addition control, a toggle switch control, a mode exit control, or a mode exit timer control; The signal adding control is used to add the target signal for controlling mode switching; The switch control is used to control the on / off state switching function. The mode exit control is used to control whether the mode exit conditions are enabled or disabled. The mode exit conditions include the target signal being in an interrupted state and the movement speed information meeting preset conditions. The exit timer control is used to control the countdown for exiting the mode. When the mode exit condition is enabled and the mode exit condition is met, the mode exit operation is executed according to the set countdown.
[0008] Optionally, in some embodiments of this application, the cycling style interface includes at least one icon of target size, an initial function area, or a custom function area, and the cycling style interface is used to automatically adjust the landscape and portrait screen layout according to the orientation of the terminal device. The status bar of the cycling style interface displays at least one of the following: mobile signal strength information, location status information, battery percentage information, or estimated remaining mileage information; The cycling style interface replaces the hierarchical information display mode with a single-screen full-display mode. The cycling style interface includes cycling settings controls, which are used to configure at least one display parameter of the cycling style interface, such as brightness, color, resolution, and theme. The cycling settings controls are also used to configure the on / off switching of target navigation mode, safety monitoring mode, voice assistant restriction mode, and dynamic volume compensation mode.
[0009] Optionally, in some embodiments of this application, the riding mode includes an intelligent notification control module, a resource management module, or a safety control module; the intelligent notification control module includes a hierarchical notification processing unit or a notification priority display unit; the resource management module includes a resource management unit or a riding voice assistant control unit. The hierarchical notification processing unit performs hierarchical notification processing based on intelligent identification strategy, instant notification strategy, whitelist notification strategy, or silent processing strategy. The notification priority display unit performs notification priority display processing based on a visual adaptation strategy or a gesture simplification strategy; The resource management unit manages resources based on a whitelist protection strategy or a background optimization strategy. The cycling voice assistant control unit controls the cycling voice assistant based on a command restriction strategy, a safety priority strategy, or an intelligent broadcast strategy. The security management module performs security monitoring and early warning based on multi-sensor fusion strategy, intelligent anomaly detection strategy, emergency response linkage strategy, or configurable early warning strategy.
[0010] Optionally, in some embodiments of this application, the apparatus further includes: In the cycling mode, if audio to be output is detected, the motion characteristic information of the terminal device and the environmental characteristic information of the surrounding environment are obtained. The target volume information is determined based on the motion feature information and the environmental feature information; The audio to be output is output according to the target volume information.
[0011] Optionally, in some embodiments of this application, the apparatus further includes: A navigation configuration interface is provided for the target navigation mode. The navigation configuration interface includes an energy-saving standby setting area or an audio wake-up setting area. The energy-saving standby setting area includes a screen energy-saving standby switch control, an entry speed threshold control, or an exit speed threshold control. The audio wake-up setting area includes an audio event wake-up switch control, a screen-on duration control, or a touch wake-up control. The screen energy-saving standby switch control is used to control the on / off state of the screen energy-saving standby mode; The entry speed threshold control is used to set the first speed threshold for entering the screen power-saving standby mode; The exit speed threshold control is used to set a second speed threshold for exiting the screen power saving standby mode; The audio event wake-up switch control is used to control the on / off state of the audio event wake-up mode; The screen-on duration control is used to set the duration of screen-on. The touch wake-up control is used to control the on / off state of the touch wake-up mode.
[0012] Optionally, in some embodiments of this application, the apparatus further includes: When the audio event wake-up function is enabled via the audio event wake-up switch, if audio information to be output is detected, the audio event type information corresponding to the audio information to be output is determined. Determine the target priority information based on the audio event type information; Wake-up strategy information is determined based on the target priority information, and the wake-up strategy information includes wake-up method information and hold duration information; The screen of the terminal device is woken up according to the wake-up method information and the hold duration information to obtain screen control result information. Furthermore, when the screen energy-saving standby function is enabled via the screen energy-saving standby switch, if the preset conditions are met, the brightness of the terminal device's screen is gradually reduced according to the preset brightness ratio information and preset duration information until the preset brightness conditions are met, and the screen display result information is obtained.
[0013] Thirdly, embodiments of this application also provide an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the steps in the mode switching method described above.
[0014] Fourthly, embodiments of this application also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps in the above-described mode switching method.
[0015] Fifthly, embodiments of this application also provide a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in the various optional implementations described in embodiments of this application.
[0016] In summary, if the terminal device of this application embodiment detects a target signal, it enters a cycling mode. The cycling mode provides a cycling style interface, which responds to the target user's cycling interaction request and obtains the cycling interaction result. If the target signal is detected to be continuously interrupted and the moving speed information of the terminal device meets the preset conditions, the device exits the cycling mode.
[0017] In this embodiment, the system switches to cycling mode after detecting a target signal and provides a cycling style interface suitable for cycling. This provides an adaptive design suitable for cycling scenarios and responds to user interaction requests during cycling through the cycling style interface, allowing users to enjoy the convenience of smart devices and improve their cycling experience.
[0018] Specifically, the system uses target signals to switch riding modes and combines movement speed information to determine whether to exit riding mode, thus achieving automated switching control of riding modes, reducing manual operation by the user, improving the convenience of operation while riding, and enhancing the user experience. Attached Figure Description
[0019] To more clearly illustrate the technical solutions in this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0020] Figure 1 This is a schematic diagram illustrating a scenario where a terminal device, as provided in an embodiment of this application, executes the mode switching method. Figure 2 This is a flowchart illustrating the mode switching method provided in an embodiment of this application; Figure 3 This is a schematic diagram of the mode configuration interface provided in an embodiment of this application; Figure 4 This is a schematic diagram of the cycling style interface provided in an embodiment of this application; Figure 5 This is a schematic diagram of the cycling mode setting interface provided in an embodiment of this application; Figure 6 This is a schematic diagram of the navigation configuration interface provided in an embodiment of this application; Figure 7 This is a schematic diagram of the mode switching device provided in the embodiments of this application; Figure 8 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application.
[0021] Explanation of icon numbers: 101-Terminal device; 701-Detection module; 702-Response module; 703-Control module; 801-Processor; 802-Memory; 803-Power supply; 804-Input unit. Detailed Implementation
[0022] The technical solutions of this application will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0023] In the description of the embodiments of this application, it should be understood that the terms "center," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," and "outer," etc., indicating orientation or positional relationships based on the orientation or positional relationships shown in the accompanying drawings, are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of the present invention. Furthermore, the terms "first," "second," "third," and "fourth" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, features defined with "first," "second," "third," and "fourth" may explicitly or implicitly include one or more features. In the description of the present invention, "a plurality of" means two or more, unless otherwise explicitly specified.
[0024] In this application, the term "exemplary" is used to mean "serving as an example, illustration, or description." Any embodiment described as "exemplary" in this application is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is provided to enable any person skilled in the art to make and use the invention. Details are set forth in the following description for purposes of explanation. It should be understood that those skilled in the art will recognize that the invention can be made without using these specific details. In other instances, well-known structures and processes will not be described in detail to avoid obscuring the description of the invention with unnecessary detail. Therefore, the invention is not intended to be limited to the embodiments shown, but is consistent with the broadest scope of the principles and features disclosed in this application.
[0025] This application provides a mode switching method, apparatus, electronic device, and computer-readable storage medium. Specifically, this application provides a mode switching apparatus suitable for electronic devices, including terminal devices, which include, but are not limited to, devices with screen display functions such as mobile phones, tablets, smart bracelets, smartwatches, or extended reality devices.
[0026] For example, please see Figure 1 , Figure 1 This is a schematic diagram illustrating a scenario where a terminal device, according to an embodiment of this application, executes the mode switching method. Specifically, the execution process of the mode switching method by the terminal device is as follows: If the terminal device 101 detects a target signal, it enters a cycling mode. This cycling mode provides a cycling style interface, through which it responds to the target user's cycling interaction request and obtains the cycling interaction result. If the target signal is detected to be continuously interrupted and the terminal device's movement speed information meets preset conditions, it exits the cycling mode.
[0027] For example, after detecting a target signal corresponding to a cycling tool, the terminal device automatically enters cycling mode. In this mode, a cycling-style interface suitable for cycling needs is provided, allowing users to interact with the device during cycling. Furthermore, if the target signal is detected to be interrupted and the movement speed decreases, it is determined that the user is not currently cycling; for example, if the user interrupts or ends their ride. In this case, the device can exit cycling mode without manual intervention from the user.
[0028] It is understood that the embodiments of this application switch to cycling mode after detecting the target signal, and provide a cycling style interface suitable for cycling in cycling mode, thereby providing an adaptive design suitable for cycling scenarios. The cycling style interface responds to the user's interaction requests during cycling, allowing the user to enjoy the convenience brought by smart devices and improve the cycling experience.
[0029] Among them, the switching of riding modes is realized by using target signals, and the determination of whether to exit riding mode is made by combining movement speed information, so as to realize the automatic switching control of riding modes, reduce manual operation by users, improve the convenience of operation by users while riding, meet the needs or characteristics of riding scenarios where manual operation is difficult, and improve the user experience.
[0030] The following sections provide detailed descriptions of each example. It should be noted that the order in which the embodiments are described is not intended to limit the priority of the embodiments.
[0031] Please see Figure 2 , Figure 2 This is a flowchart illustrating the mode switching method provided in this application embodiment. Although the flowchart shows a logical order, in some cases, the steps shown or described can be performed in a different order than that shown in the flowchart. Specifically, this mode switching method is applied to a terminal device, and the specific flow of the mode switching method is as follows: S201. If a target signal is detected, the cycling mode is entered, wherein the cycling mode provides a cycling style interface.
[0032] The target signal is a signal that has a specific marking or identification function. In this embodiment of the application, it serves as a marking signal, indication signal, or control signal for entering the riding mode. For example, the riding mode is switched after the target signal is detected.
[0033] In this embodiment, the target signal includes a specific NFC signal, such as an NFC signal containing the name of the riding tool (bicycle or electric vehicle). Alternatively, the target signal can also be a Bluetooth signal; for example, upon detecting a Bluetooth signal and confirming that the signal strength meets a threshold, the system switches to riding mode.
[0034] It is understood that, in this embodiment of the application, detecting a target signal indicates that the terminal device is close to the cycling tool, such as when the terminal device is fixed to the cycling tool via a bracket. In this case, it indicates that the user has a cycling need, and the device can be switched to cycling mode to meet the user's needs for using the terminal device while cycling. It is understood that the target signal can be a signal emitted by the cycling tool or a signal emitted by the bracket that fixes the terminal device. For example, the target signal may include an NFC tag set on a mobile phone holder.
[0035] Among them, cycling mode refers to the terminal mode suitable for cycling scenarios, mainly referring to the display mode. For example, cycling mode includes modes suitable for viewing dynamic scenes during cycling. The cycling-style interface is the user interface that meets the needs of cycling. For example, taking a mobile phone as an example, during normal use, the user uses the regular mode, where the icons are of normal size and the desktop theme is displayed normally. When a target signal is detected, the phone switches to cycling mode, in which the cycling-style interface is displayed. In this cycling-style interface, the icons are larger, and the desktop theme and colors are more suitable for the visual needs of strong outdoor light.
[0036] Understandably, the cycling-style interface design allows users to conveniently view and operate the terminal device while cycling, enjoying the intelligent and convenient experience it provides.
[0037] S202. Respond to the target user's cycling interaction request through the cycling style interface and obtain the cycling interaction result; For example, a cycling-style interface can respond to user actions such as viewing information, navigation, or playing audio and video.
[0038] Understandably, cycling interaction results are the outcome of the interaction between the terminal device and the user through the cycling-style interface, including displaying the information the user needs to view, playing audio and video, or adjusting the volume, screen brightness, etc., to a state that satisfies the user.
[0039] S203. If the target signal is detected to be continuously interrupted and the moving speed information of the terminal device meets the preset conditions, then exit the riding mode.
[0040] It is understandable that the interrupted state refers to the state in which no target signal is detected, and the continuous interrupted state refers to the state that is continuously or basically maintained for a period of time (such as 3 to 5 seconds).
[0041] Understandably, as explained earlier regarding the role of the target signal as a marker or indicator, the absence of a target signal suggests that the user may be interrupting their ride, for example, by taking photos or resting by removing their phone.
[0042] It is understandable that relying solely on the determination of the absence of a target signal can lead to inaccurate judgments of cycling interruption. Therefore, this application further incorporates the mobile device's speed information to assist in determining whether cycling has been interrupted, thereby improving the accuracy of determining whether a user is in a cycling interruption state.
[0043] For example, if no target signal is detected for 5 consecutive seconds and the terminal device's moving speed is less than 5 km / h, the riding mode will be exited and the terminal device will be switched back to its normal mode.
[0044] In summary, this application embodiment switches to cycling mode after detecting a target signal and provides a cycling style interface suitable for cycling in cycling mode, realizing the provision of an adaptive design suitable for cycling scenarios. The cycling style interface responds to the user's interaction requests during cycling, allowing the user to enjoy the convenience brought by smart devices and improve the cycling experience.
[0045] Among them, the switching of riding modes is realized by using target signals, and the determination of whether to exit riding mode is made by combining movement speed information, so as to realize the automatic switching control of riding modes, reduce manual operation by users, improve the convenience of operation by users while riding, meet the needs or characteristics of riding scenarios where manual operation is difficult, and improve the user experience.
[0046] In this embodiment of the application, a mode configuration interface can be provided so that users can configure control information related to mode switching through the mode configuration interface. For example, please refer to... Figure 3 , Figure 3 This is a schematic diagram of the mode configuration interface provided in the embodiments of this application. The mode configuration interface includes multiple controls, such as a signal addition control, a toggle switch control, a mode exit control, and a mode exit timer control.
[0047] The signal addition control is used to add target signals for controlling mode switching. For example, with NFC, users can add signals through... Figure 3The "Add New Tag" control allows you to add NFC tags for controlling cycling mode switching. When these NFC tags are detected, the terminal device switches to cycling mode. Understandably, you can also configure the names of the NFC tags, such as "electric vehicle" or "bicycle" for cycling devices. Furthermore, it supports renaming and deleting NFC tags.
[0048] The toggle switch control is used to control the mode switching function, such as... Figure 3 The control labeled "NFC Quick Start" allows users to switch between NFC tag-based control modes by clicking it.
[0049] The mode exit control is used to enable or disable mode exit conditions. These conditions include the target signal being interrupted and the movement speed information meeting preset conditions, such as... Figure 3 The control labeled "Auto Exit" will automatically exit riding mode when the user clicks it. If the NFC tag is detected to be in an interrupted state and the speed is less than 5km / h, the riding mode will be automatically exited. If the user clicks it to close, the function will not be enabled, and the user will need to manually exit riding mode. It will not automatically exit riding mode based on the interrupted state of the NFC tag and the speed.
[0050] The exit timer control is used to control the countdown for exiting the mode. When the mode exit condition is enabled and met, the mode exit operation is executed according to the set countdown, such as... Figure 3 The control labeled "Exit Confirmation Time" will, if set to 5 seconds, countdown 5 seconds will begin before exiting riding mode if the exit conditions are met. Specifically, if a target signal is detected again or the moving speed is greater than or equal to 5 km / h during the countdown, the exit will be interrupted. If no target signal is detected, the moving speed is less than 5 km / h, and the countdown ends, the riding mode will exit.
[0051] Understandably, the design of controls such as signal addition controls, toggle switch controls, mode exit controls, and mode exit timer controls allows users to customize the entry and exit conditions of riding modes, thereby improving the user experience.
[0052] In this embodiment, the cycling-style interface is designed primarily to meet the viewing and interaction needs of dynamic cycling scenarios. For example, please refer to... Figure 4 , Figure 4This is a schematic diagram of a cycling-style interface provided in an embodiment of this application. The cycling-style interface includes at least one icon of a target size, an initial function area, and a custom function area, etc., and is used to automatically adjust the landscape / portrait screen layout according to the orientation of the terminal device. For example, in this cycling interaction interface, the size of the application icon is increased, and the application icon is arranged according to the initial function area (such as...). Figure 4 The area where each application icon is displayed) and the customizable function area (such as...) Figure 4 The system can be divided into four areas (with added identifiers). For example, core cycling-related applications (such as speed, weather, navigation, phone, and SMS) can be placed in the initial function area, while user-defined applications can be placed in the custom function area. It should be noted that user-defined applications include existing applications whose locations are customized according to user needs, and do not specifically refer to new applications developed independently by the user.
[0053] In this embodiment, the cycling style interface can also display information such as mobile signal strength, location status, battery percentage, or estimated remaining mileage via a status bar for user preview.
[0054] In this embodiment of the application, a dedicated lock screen interface for cycling mode can also be set to optimize content display. For example, the lock screen interface can also adopt a single-screen full-display mode, or key information such as movement speed, weather and navigation can still be displayed in the lock screen interface.
[0055] In this embodiment, since the scenario is a cycling scenario, users have limited time to browse the interface compared to a static scenario. Therefore, this embodiment adopts a single-screen full-display approach for information display. That is, the hierarchical information display mode is replaced with a single-screen full-display mode. The hierarchical information display mode refers to a mode where information is displayed in an orderly manner according to multiple levels, such as information set according to application source, username, type, etc., requiring users to click through each level to see the most relevant information. The single-screen full-display mode displays all information on a single screen, allowing users to view all content at once and avoiding the time-consuming and inconvenient problems caused by viewing information hierarchically.
[0056] In this embodiment of the application, the cycling style interface is also provided with a cycling settings control, which allows users to configure the functions of the cycling mode. For example, the cycling settings control is used to configure at least one display parameter of the cycling style interface, such as brightness, color, resolution, and theme. The cycling settings control is also used to configure the on / off settings of target navigation mode, safety monitoring mode, voice assistant restriction mode, and dynamic volume compensation mode.
[0057] For example, please see Figure 5 , Figure 5 This is a schematic diagram of the cycling mode setting interface provided in the embodiments of this application. After the user clicks the cycling setting control, the terminal device pops up the cycling mode setting interface. In the cycling mode setting interface, the user can adjust the screen brightness, UI theme (such as day mode, night mode or automatic switching, etc.), enter the mode configuration interface through the "NFC start setting" control, or perform a series of function (such as target navigation mode, security monitoring mode, voice assistant restriction mode and dynamic volume compensation mode) on / off settings, etc.
[0058] In this embodiment, the target navigation mode refers to the super navigation mode, used to activate an ultra-power-saving state suitable for long-distance riding. This target navigation mode includes settings for energy-saving standby and audio wake-up; for example, please refer to... Figure 6 , Figure 6 This is a schematic diagram of the navigation configuration interface provided in the embodiments of this application. After the user clicks the control with the words "Super Navigation" in the cycling mode settings interface, he enters the navigation configuration interface. The navigation configuration interface is provided with an energy-saving standby setting area for energy-saving standby settings and an audio wake-up setting area for audio wake-up settings.
[0059] The power-saving standby setting area includes a screen power-saving standby switch control, an entry speed threshold control, or an exit speed threshold control; the audio wake-up setting area includes an audio event wake-up switch control, a screen-on duration control, or a touch wake-up control. The screen power-saving standby switch control is used to control the on / off state of the screen power-saving standby mode, such as... Figure 6 The control labeled "Screen Energy Saving Standby" will automatically reduce screen brightness as the user rides at high speeds.
[0060] The speed threshold control is used to set the first speed threshold for entering screen power-saving standby mode, such as... Figure 6 The control with the words "Enter Speed Threshold" is set to enter screen power-saving standby mode when the speed reaches 20km / h.
[0061] The exit speed threshold control is used to set a second speed threshold for exiting screen power-saving standby mode, such as... Figure 6 The threshold marked "Exit Speed Threshold" is set to automatically exit the screen power-saving standby mode when the speed is below 5km / h.
[0062] The audio event wake-up switch control is used to control the on / off state of the audio event wake-up mode, such as... Figure 6 The control labeled "Audio Event Wake-up" enables wake-up control based on audio events when clicked by the user.
[0063] The screen-on duration control is used to set the duration the screen remains on, such as... Figure 6 The control with the words "Screen stay duration" allows you to set a 15-second screen stay duration, meaning the screen stays on for 15 seconds after being woken up by audio.
[0064] The touch wake-up control is used to control the on / off state of the touch wake-up mode, such as... Figure 6 The control labeled "Touch Wake-up" allows users to wake up the screen via touch, such as by turning on the screen to display content.
[0065] In this embodiment of the application, the audio event wake-up function and the screen power-saving standby function are described in detail below: When the audio event wake-up function is enabled via the audio event wake-up switch, if audio information to be output is detected, the audio event type information corresponding to the audio information to be output is determined. Determine the target priority information based on the audio event type information; The screen of the terminal device is woken up according to the target priority information to obtain screen control result information.
[0066] Furthermore, when the screen energy-saving standby function is enabled via the screen energy-saving standby switch, if the preset conditions are met, the brightness of the terminal device's screen is gradually reduced according to the preset brightness ratio information and preset duration information until the preset brightness conditions are met, and the screen display result information is obtained.
[0067] The audio information to be output is the audio that the terminal device will output. This audio information can be generated based on received notifications, such as generating different audio based on different notifications such as incoming calls, alarms, and navigation. The audio to be output can also be generated by playing streaming media, such as playing audio or video.
[0068] Among them, audio event type information refers to the event type corresponding to the audio information to be output, reflecting the differences in the source of the audio, notification type, notification content, etc. For example, audio event type information includes incoming call ringtone, alarm clock ring, navigation voice, navigation TTS, system notification, message notification, email reminder, media playback or video playback, etc.
[0069] It is understood that, in the embodiments of this application, while determining the audio event type information corresponding to the audio information to be output, the normal playback process of the audio information to be output can be maintained.
[0070] Understandably, determining the audio event type information corresponding to the audio information to be output helps to control the screen based on the audio event type information in order to achieve the desired result.
[0071] Among them, the target priority information is the basis for screen wake-up control. Generally, the higher the priority, the faster the screen wakes up, the longer the screen stays on, and the more centrally the notification is displayed (indicating that the notification is more important and easier for the user to view).
[0072] For example, when the audio event type information is incoming call ringtone, alarm clock ring, navigation voice, or navigation TTS, the target priority information is high; when the audio event type information is system notification, message notification, or email reminder, the target priority information is heavy; and when the audio event type information is media playback or video playback, the target priority information is low.
[0073] Understandably, by determining the target priority information through audio event type information and controlling the screen wake-up based on the target priority information, differentiated control of different audio event types can be achieved, thereby improving the accuracy and rationality of screen control.
[0074] It is understandable that both notifications and audio playback of audio and video output content to the user. Therefore, if audio information to be output is detected, it means that the user is likely to interact with the terminal device in the future. Therefore, screen control based on audio or audio events, compared with screen control based solely on notification types or other events, can avoid invalid screen control and is more conducive to improving the rationality and accuracy of screen control.
[0075] In summary, after detecting the audio information to be output, this embodiment of the application determines the audio event type information and controls the screen wake-up, thereby realizing the association between the audio event and the screen wake-up control. This makes the screen wake-up control more in line with the notification needs of the audio event, improves the rationality of screen control, and enhances the user experience.
[0076] For example, for highly timely notification audio such as incoming calls, the screen can be quickly woken up, while for less timely notification audio such as fun events, a delayed wake-up method can be used.
[0077] This application embodiment determines the target priority information corresponding to the audio event type information and performs screen wake-up control based on the target priority information, thereby realizing hierarchical differentiated control of different audio event type information and improving the accuracy and rationality of screen control.
[0078] For example, wake-up strategies for audio event types with similar priorities should be similar, while wake-up strategies for audio event types with different priorities should be clearly distinguishable. This allows for the control of audio events of different priorities to be woken up using different wake-up strategies, achieving accurate and reasonable screen control.
[0079] In this embodiment of the application, the audio event type information can be determined based on the audio stream type information of the audio information to be output and the application type information of the corresponding target application. That is, optionally, in some embodiments of this application, the step "if audio information to be output is detected, then determine the audio event type information corresponding to the audio information to be output" includes: Determine the audio stream type information and application type information corresponding to the audio information to be output; The audio event type information is determined based on the audio stream type information and the application type information.
[0080] The audio stream type information refers to the type of audio stream corresponding to the audio information to be output. This audio stream type information includes STREAM_RING, STREAM_ALARM, STREAM_MUSIC, or STREAM_NOTIFICATION, etc. This audio stream type information can be obtained by parsing and extracting the audio stream.
[0081] The application type information refers to the type information of the target application corresponding to the audio information to be output. The target application is the source of the audio information to be output. For example, if the audio information to be output is a call notification audio, the target application is a telephone / call application; if the audio information to be output is an email reminder, the target application is an email application.
[0082] The application type information can be determined based on a preset application classification database, or from the classification results of the app store. For example, the application type information includes navigation, social communication, system services, audio and video, email, or alarm clock, etc.
[0083] In this application embodiment, the application type information of the target application can also be analyzed based on the permissions requested by the target application and the required sensor data. That is, optionally, in some embodiments of this application, the step of obtaining application type information includes: Extract the permission request information of the target application corresponding to the audio information to be output; The functional information of the target application is determined based on the permission request information and sensor information; The application type information is determined based on the functional information.
[0084] For example, if the permission request information is BLUETOOTH, Wi-Fi, LAN, location (network configuration / geofencing), and notifications, and the GPS status is low-frequency and non-continuous, and the sensor information is transmitted from the network, then the application can be analyzed as a smart home application or a device network configuration application.
[0085] For example, if the permission requests are for location, SMS, microphone, etc., the GPS status is high-frequency continuous, and the sensor information is for heart rate, speed, time, etc., then the application can be analyzed as a fitness application.
[0086] In this embodiment of the application, the wake-up strategy includes wake-up method and hold duration, that is, screen wake-up control is performed through wake-up method and hold duration. Then, the step "perform wake-up control on the screen of the terminal device according to the target priority information to obtain screen control result information" includes: Wake-up strategy information is determined based on the target priority information, and the wake-up strategy information includes wake-up method information and hold duration information; The screen is controlled to wake up according to the wake-up strategy information to obtain the screen control result information.
[0087] Among them, the wake-up method information refers to the method used to wake up, such as immediate wake-up, delayed wake-up, or no wake-up, etc. The duration information refers to the duration for which the screen lights up after wake-up, such as 20 seconds, 15 seconds, or 10 seconds.
[0088] For example, high-priority audio event type information corresponds to immediate wake-up, with a duration of 20-25 seconds during operation; medium-priority audio event type information corresponds to delayed wake-up, with a duration of 10-15 seconds; and low-priority audio event type information corresponds to no automatic wake-up, with no duration setting.
[0089] Understandably, controlling the wake-up method and duration according to different priorities for different types of audio events improves the rationality of screen control. For example, high-priority incoming call audio will immediately wake up the screen and keep it on during the call, while medium-priority social message notification audio will wake up the screen after a 3-second delay and keep it on for 12 seconds.
[0090] In this embodiment of the application, a correspondence between each audio event type information and its priority can be pre-established. Based on this correspondence, the target priority information corresponding to the current audio event type information is determined. That is, optionally, in some embodiments of this application, the step "determine the target priority information based on the audio event type information" includes: Obtain a mapping relationship set, which includes a mapping relationship between preset audio event type information and preset priority information; filter preset priority information from the mapping relationship set according to the audio event type information, and determine the preset priority information as the target priority information; This set of mapping relationships can be pre-established to meet the current need for real-time determination of target priorities.
[0091] In this embodiment of the application, the mapping relationships in the mapping relationship set can also be dynamically adjusted. For example, in this embodiment of the application, the mapping relationship set can be adjusted according to the target user's attention to preset audio event type information, preference information of the scene, or historical misjudgment information at different time periods.
[0092] For example, the mapping set can be updated based on users' varying levels of attention to different audio event types at different times, ensuring that the mapping set aligns with the current time-specific needs. Furthermore, users' attention to the same audio event type can change even within the same time period; therefore, attention-based mapping updates are more likely to match target priority information that meets user needs.
[0093] It is understandable that scene preference information refers to the user's preference information within a given scene. User preference information can be the same or different in different scenes. Therefore, scene relationships can be incorporated into the mapping relationship to construct a mapping relationship between preset audio event type information, preset scene, and preset target priority information. Furthermore, based on the current scene requirements, the mapping relationship is used to match the audio event type information and the target priority information that best suits the current scene.
[0094] In this embodiment of the application, the target priority information can also be determined directly based on the user's attention and scene preference information. That is, the step "determine the target priority information based on the audio event type information" includes: Obtain the target user's attention level to the audio event type information in the current time period, and determine the target priority information based on the attention level information; or, Obtain the scenario information of the target user, determine the preference information of the target user according to the scenario information, and determine the target priority information according to the preference information.
[0095] Understandably, combining user attention information based on audio event type and scenario preference information to determine target priority information improves the accuracy and rationality of target priority information.
[0096] Optionally, in this embodiment, when the terminal device has not been operated for a long time, the terminal device can be controlled to switch from a screen-on state to a low-power screen-off state to reduce the power consumption of the terminal device. In this embodiment, a stepped brightness change strategy can be set to make the brightness change of the terminal device more gradual. For example, the screen brightness can be gradually increased when the screen is on and gradually decreased when the screen is off. For example, taking a system as an example, the method further includes: When preset conditions are met, the brightness of the screen is gradually reduced according to preset brightness ratio information and preset duration information until the preset brightness conditions are met, and the screen display result information is obtained.
[0097] The preset conditions refer to the conditions that trigger brightness adjustment, such as prolonged inactivity or user-triggered screen-off when a button is pressed.
[0098] For example, if the screen brightness is gradually reduced in three steps, the preset brightness ratio can be set to 30%, or the brightness ratio for each step can be set separately, for example, the brightness changes are 100%-60%-25%-minimum brightness. The preset duration information refers to the duration of brightness maintenance for each step, for example, this preset duration information can be 5 seconds, 3 seconds, etc.
[0099] In this application embodiment, the content on the screen can also be analyzed, and differentiated brightness step processing can be performed on different areas of the screen based on the content. That is, in some embodiments of this application, the method further includes: The screen is divided into at least one display area based on the screen content information corresponding to the audio information to be output, and the importance information of each display area is determined. The display strategy information for each display area is determined according to the importance information, and the display strategy information includes at least one of preset brightness ratio information and preset duration information; The brightness of each display area is adjusted according to the aforementioned display strategy information to obtain the screen display result information.
[0100] For example, the screen can be divided into multiple display areas based on the different content and their importance. Then, the brightness of each area can be adjusted according to preset brightness ratios and durations. For instance, the screen in areas with important content can be displayed quickly and efficiently, while the brightness of less important content areas can be reduced quickly and efficiently.
[0101] In this application embodiment, a typical application scenario is: after the screen of the terminal device is turned off according to the preset brightness ratio information and preset duration information, a notification audio is detected, and the target priority information is analyzed, and then screen wake-up control is performed while outputting the audio.
[0102] Understandably, if the screen is woken up and there is user interaction, the screen will be gradually turned off in stages according to the preset brightness ratio and preset duration information after the user interaction.
[0103] In this embodiment, the screen content corresponding to the audio information to be output can also be identified, and the target priority information can be determined based on the screen content and the audio event type information. This enables the screen wake-up control by combining the audio event type information and the screen content information. Optionally, in some embodiments of this application, the step "determine the target priority information based on the audio event type information" includes: Identify the screen content information corresponding to the audio information to be output; The target priority information is determined based on the audio event type information and the screen content information.
[0104] For example, by analyzing screen content through machine learning algorithms, different types of information such as navigation information, notification information, or media content can be identified, and target priority information can be determined based on audio event type information combined with screen content.
[0105] It is understood that the screen control method of this application embodiment is particularly suitable for sports scenarios. By combining screen control when outputting audio, the screen display is made more in line with the user's actual state. For example, in sports scenarios, users have less need or opportunity and frequency to pay attention to terminal devices, especially the screen. Therefore, less screen lighting meets the user's needs. Alternatively, for some low-priority or low-importance notifications, screen lighting can be delayed to minimize interference to the user.
[0106] That is, optionally, in some embodiments of this application, the step "if audio information to be output is detected, then determine the audio event type information corresponding to the audio information to be output" includes: If the audio information to be output is detected, and the speed information of the terminal device meets the preset speed condition, then the audio event type information corresponding to the audio information to be output is determined.
[0107] The condition that the user's movement speed meets a preset speed condition indicates that the user is in motion. It is understood that a user in motion is less likely to view information than a user in a static state. In this embodiment, a speed threshold can be set. If the user's movement speed is greater than the speed threshold, the user (i.e., the terminal device) is considered to be in motion.
[0108] It's particularly noteworthy that after audio is output normally, a dual design combining audio and screen control can be implemented to enhance the user experience. For example, after audio is output normally, users will generally notice the audio notification. Furthermore, the screen wake-up time varies depending on the audio event type. High-priority audio events result in rapid screen wake-up, while low-priority events may have a delayed wake-up. Therefore, after noticing the output audio, users can analyze the importance of the notification based on whether the screen wakes up quickly, thus determining whether they need to view the notification message more promptly. For instance, when the terminal device outputs audio, users will habitually or instinctively look at the device. If the screen is not lit at this time, it indicates that the notification has a low priority or is not important enough. In this case, users can choose to view the notification at an appropriate time, such as after finishing an ongoing activity and viewing the notification message while in a static state.
[0109] Correspondingly, the delayed screen-on design aligns with users' work habits. For example, for low-priority notifications, users can begin processing the notification after finishing a high-priority task requiring focused attention. In this case, because the screen is delayed, the screen's on time matches the user's start time, ensuring the screen is either already on or not off when the user is processing the notification. This saves approximately the screen-on time between audio output and the user's actual notification processing, thus conserving screen power.
[0110] Optionally, in this embodiment, the screen of the terminal device can also respond to wake-up commands such as voice, touch, or gestures; that is, the method further includes: In response to the detection of a voice signal, touch signal, or gesture signal, and the voice signal, touch signal, or gesture signal meets the preset wake-up conditions, the screen is directly woken up to obtain the screen control result information.
[0111] Among them, meeting the preset wake-up conditions means that the screen can be triggered to wake up. For example, if the voice signal is a preset wake-up word, if the touch signal meets the temperature and duration, or if the gesture signal meets the preset wake-up gesture, then the screen of the terminal device will be woken up.
[0112] In summary, after detecting the audio information to be output, this embodiment of the application determines the audio event type information and controls the screen wake-up, thereby realizing the association between the audio event and the screen wake-up control. This makes the screen wake-up control more in line with the notification needs of the audio event, improves the rationality of screen control, and enhances the user experience.
[0113] Specifically, by determining the target priority information corresponding to the audio event type information and controlling the screen wake-up based on the target priority information, hierarchical differentiated control of different audio event types can be achieved, thereby improving the accuracy and rationality of screen control.
[0114] It is understood that, in the embodiments of this application, the following functional modules are ensured to operate normally in the screen-off standby state (screen at minimum brightness): Touch response layer: Keeps touch sensing active, supports user touch wake-up and basic gesture operations; Sensor subsystem: GPS positioning, accelerometer, gyroscope, magnetometer and other sensors work continuously; Network communication module: Maintains WiFi and cellular network connectivity to ensure real-time data synchronization and push reception; Background application services: Background services for critical applications such as navigation applications and music players are running normally; System notification services: Notification Manager, push notification service, etc., should remain active; Audio processing system: The audio driver and audio event detection modules run continuously.
[0115] It is understood that in the embodiments of this application, if multiple audios exist at the same time and the target priority information corresponding to the multiple audios is different, the high-priority wake-up control process is processed first. For example, the high-priority wake-up control process can cover the medium / low-priority wake-up control process.
[0116] If there are still user touch operations on the screen during the screen wake-up control process, the screen will be woken up directly without any delay.
[0117] In this application embodiment, configuration interfaces can be provided for the speed threshold for determining whether the terminal device is in motion, the function switch for screen wake-up control, the audio event types applicable to screen wake-up control, the application scope, or the delay time for screen wake-up, so that users can flexibly customize the configuration.
[0118] In this embodiment of the application, the most recent event recognition results can also be cached, and the audio event type information can be determined by comparing the consistency between the audio stream type and the application type to avoid duplicate calculations.
[0119] Furthermore, when a new application cannot determine the audio event type information, a more conservative medium priority is used as the target priority information at this time.
[0120] The embodiments of this application are applicable to dynamic scenarios such as cycling and driving, reducing the impact of notifications on users and lowering safety risks.
[0121] In this embodiment of the application, in view of the differences in audio frequency domain characteristics corresponding to each type of audio event information, the Fast Fourier Transform (FFT) can also be used to perform frequency domain analysis on the output audio, and the audio event type information can be identified through spectral features.
[0122] In the embodiments of this application, audio events can also be classified into priority levels based on their function, timeliness, urgency, etc. For example, the first-level classification includes audio event types such as security, function, and entertainment; the second-level classification includes audio event types such as urgency and timeliness; and the third-level classification includes specific event subtypes.
[0123] In this embodiment, the function of the dynamic volume compensation mode is described.
[0124] That is, in the cycling mode, if the audio to be output is detected, the motion feature information of the terminal device and the environmental feature information of the surrounding environment are obtained; the target volume information is determined according to the motion feature information and the environmental feature information; and the audio to be output is output according to the target volume information.
[0125] The audio to be output is the audio to be output. For example, the audio to be output can be audio sent by other devices or audio generated by itself. For example, the audio to be output includes voice audio, prompt audio, or music audio.
[0126] It is understood that the embodiments of this application are mainly aimed at adjusting and optimizing the audio output volume based on environmental adaptability or matching. Therefore, the audio to be output includes audio that can be output by various terminal devices. It is particularly suitable for device audio output in outdoor scenarios, such as playing music, navigation voice, or incoming call / mail notification tones on a mobile phone while cycling. Or it is suitable for situations where the original volume settings cannot meet the user's good listening experience due to environmental factors, such as outdoor walking or shopping.
[0127] Motion characteristic information refers to quantified data or abstract features that describe the motion state and changing patterns of a terminal device. For example, this motion characteristic information includes the terminal device's speed, direction of motion, and posture during motion. This motion characteristic information can be obtained through statistical analysis of data collected by devices such as position sensors, accelerometers, and gyroscopes.
[0128] Environmental characteristic information refers to the description of the attributes, structure, and state of the external physical or virtual space where the terminal device is located, reflecting the static or dynamic characteristics of the environment. For example, this environmental characteristic information includes noise intensity, apparent wind speed, windward angle, road surface roughness coefficient, or road surface type. This environmental characteristic information can be obtained through statistical analysis of data collected by devices such as position sensors, related APIs, or microphones.
[0129] It is understood that, by obtaining motion feature information and environmental feature information of the terminal device after detecting the audio to be output, the embodiments of this application can help control the output of the audio to be output based on the motion feature information and environmental feature information, so that the output of the audio to be output meets the current motion and environmental requirements.
[0130] It is understandable that determining the target volume information through motion feature information and environmental feature information, and thus acquiring the volume of the current motion status and environment of the matching terminal device, helps to control the output volume of the audio to be output to meet the real-time environment of the user.
[0131] It is understandable that by controlling the output of the audio to be output by determining the target volume information based on motion feature information and environmental feature information, the output volume of the audio to be output can meet the needs of the terminal device or the user's scenario, ensure a good listening experience for the user, and prevent the user from missing voice messages or call / mail notification tones.
[0132] In summary, the embodiments of this application match the audio output volume based on the movement of the terminal device and the usage environment, and control the audio output volume so that the audio playback volume of the terminal device matches the environmental conditions and movement state, thereby improving the audio playback effect in different environments and enhancing the user experience.
[0133] Understandably, considering the motion information of the terminal device allows for a more accurate perception and understanding of the environment, further improving the accuracy and rationality of target volume information and enhancing the user experience. For example, optimizing and correcting environmental information based on motion information improves the accuracy of environment-based volume configuration.
[0134] In this application embodiment, considering optimization for the given scenario, volume compensation can be divided into basic compensation and additional compensation. Basic compensation refers to a steady-state, always-present gain base, while additional compensation is extra gain processing to account for certain special cases. Optionally, in some embodiments of this application, the step "determine the target volume information based on the motion characteristic information and the environmental characteristic information" includes: Based on the motion characteristic information and the environmental characteristic information, calculate the basic compensation ratio information, wind noise compensation ratio information and road surface compensation ratio information; The environmental compensation ratio information is obtained by integrating the basic compensation ratio information, the wind noise compensation ratio information, and the road surface compensation ratio information; The target volume information is obtained by compensating the current output volume information based on the environmental compensation ratio information.
[0135] Understandably, since the main factors affecting volume in outdoor sports scenarios are wind noise and road bumps, additional compensation includes wind noise compensation and road surface compensation.
[0136] It is understandable that the basic compensation ratio information, wind noise compensation ratio information, and road surface compensation ratio information refer to the ratios of basic compensation, wind noise compensation, and road surface compensation, respectively. For example, these ratio information indicate the ratio by which the volume needs to be increased.
[0137] In this embodiment, environmental compensation ratio information is obtained by fusing basic compensation ratio information, wind noise compensation ratio information, and road surface compensation ratio information, thereby achieving the acquisition of overall ratio information based on the required volume compensation for the environment.
[0138] For example, the current output volume information can be boosted based on the environmental compensation ratio information to obtain the target volume information after volume boosting.
[0139] It is understood that the embodiments of this application do not increase the volume by a fixed value or directly set the volume to the maximum value. The purpose is to match the volume output with the environment, so as to ensure that the user can hear the audio clearly and also ensure a good listening effect, and avoid negative experiences such as ear-piercing noise caused by excessive volume.
[0140] Specifically, in this embodiment, the motion characteristic information includes motion speed information, which includes instantaneous speed, average speed, or rate of change of speed, or information characterizing motion features calculated based on instantaneous speed, average speed, or rate of change of speed. In this embodiment, position changes can be collected using a GPS sensor. For example, the sampling frequency can be set to 1Hz (to meet the position change monitoring requirements in cycling scenarios), and the instantaneous velocity vector can be calculated using continuous position points. In addition, the direction of motion can be calculated based on the GPS sensor. In this embodiment, GPS speed data and accelerometer integration results can be fused to improve the accuracy of speed measurement. Furthermore, a simplified Kalman filter algorithm can be used to eliminate GPS signal fluctuations and adapt to the computing power of mobile terminals for the collected GPS speed data, thereby calculating instantaneous speed, 3-second average speed, and rate of change of speed based on the relationship between position change and time.
[0141] In this embodiment, noise intensity information refers to noise sound pressure level information. It can be obtained by collecting environmental audio through dual microphones or a microphone array (the acquisition supports a sampling rate of 16kHz and quantization accuracy of 16-bit, meeting the Nyquist theorem requirements of the speech audio segment (<8kHz). The audio frame length is set to 1024 sampling points and the frame interval is 64ms to balance real-time performance and computational efficiency). Then, a 512-point Fast Fourier Transform (FFT) is performed on the environmental audio to adapt to the 16kHz sampling rate. Typical noise sources in the cycling scenario are identified: traffic noise (200-2000Hz), wind noise (50-800Hz), road noise (100-1500Hz), etc. The A-weighted sound pressure level is calculated and then smoothed for a short time to obtain the noise sound pressure level information, i.e., noise intensity information.
[0142] In this embodiment, vibration intensity information refers to the vibration intensity coefficient (WVI) corresponding to vibration types such as road vibration, cycling vibration, and rapid acceleration / deceleration. This can be achieved by collecting accelerometer and gyroscope data during the device's movement using an accelerometer / gyroscope. The vibration frequency and amplitude characteristics are analyzed by examining this data. For example, in this embodiment, the mean acceleration of each axis of the terminal device is calculated to obtain the mean acceleration information. The variance of acceleration for each axis is then calculated based on the mean acceleration information. Finally, the variance of acceleration for each axis is fused using a fusion weight to obtain the vibration intensity information. For example, the formula for calculating the vibration intensity information WVI can be expressed as: WVI = α·√(σ²x) + β·√(σ²y) + γ·√(σ²z).
[0143] Where σ²x = Σ(ax[i] - μx)² / (N-1), σ²y = Σ(ay[i] - μy)² / (N-1), and σ²z = Σ(az[i] - μz)² / (N-1), σ²x, σ²y, and σ²z are the variances of acceleration along the x-axis, y-axis, and z-axis, respectively, and μx, μy, and μz are the mean values of each axis. ax[i] represents the acceleration data at position i along the x-axis, ay[i] represents the acceleration data at position i along the y-axis, and az[i] represents the acceleration data at position i along the z-axis. N is the number of acceleration data sampling points, and i is the index of these sampling points (from 0 to N-1). In this embodiment, α represents the lateral vibration weight, with a value of 0.3, β represents the forward and backward vibration weight, with a value of 0.2, and γ represents the vertical vibration weight, with a value of 0.5.
[0144] In this embodiment, apparent wind speed information refers to the wind speed of the cyclist (or device) relative to the air, which is the wind intensity you actually feel. It is affected by both the ambient wind and the cyclist's own forward speed, and is one of the most critical inputs for wind noise compensation. Therefore, in this embodiment, apparent wind speed information can be calculated by summing ambient wind speed information and movement speed information. For example, the relative wind speed vector is represented as the ambient wind speed vector + the movement speed vector. Then, the apparent wind speed information is the absolute value of the relative wind speed vector. In this embodiment, real-time ambient wind speed and direction data can be obtained by calling a weather service API based on GPS location information, and the update frequency can be set to update meteorological data every ten minutes.
[0145] In this embodiment, the windward angle information is the angle between the forward direction and the wind direction, used to characterize the directionality of wind noise. The windward angle information is calculated based on relative angle information, apparent wind speed information, and motion direction information. For example, taking cycling as an example, the windward angle during cycling = arccos(relative wind speed vector · cycling direction vector / apparent wind speed).
[0146] In this embodiment of the application, the road surface type coefficient information, also known as the road surface smoothness coefficient information, can be obtained by looking up a table or by searching data. For example, a road surface feature database based on road type can be obtained, which includes preset road surface type coefficient information and preset vibration reference information for at least one preset road surface type; the current road surface type can be identified, and the road surface type coefficient information can be determined from the road surface feature database according to the current road surface type.
[0147] The road surface feature database includes a simplified database built based on road types obtained from a map API. For example, this road surface feature database includes several data entries, each of which includes a preset road type, preset road surface type coefficient information, and preset vibration reference information corresponding to that road type. For instance, the road surface feature database includes the following data: Highway: The preset road surface type coefficient is 0.9, the basic noise level is 45dB, and the preset vibration reference value is 0.8m / s². Urban arterial roads: The preset road surface type coefficient is 0.8, the basic noise level is 50dB, and the preset vibration reference value is 1.2m / s². Urban roads: The preset road surface type coefficient is 0.6, the basic noise level is 48dB, and the preset vibration reference value is 1.8m / s². Rural roads: The preset road surface type coefficient is 0.4, the basic noise level is 42dB, and the preset vibration reference value is 2.5m / s².
[0148] Correspondingly, the current road surface type can be identified, and the current road surface type coefficient information can be matched from the road surface feature database based on this type. For example, the current geographical coordinates of the device can be obtained through a GPS sensor, and the road surface type (including highways, urban arterial roads, urban roads, and rural roads) can be determined based on these coordinates. A road type query operation can be triggered when the location changes by more than 100 meters to achieve timely updates of the road type. Then, the preset road surface type coefficient information corresponding to the same road surface type is obtained from the road surface feature database, and this preset road surface type coefficient information is determined as the current road surface type coefficient information.
[0149] In this embodiment, the road surface roughness coefficient information RSS refers to the roughness of the road surface. This road surface roughness coefficient information can be obtained by adjusting the road surface type coefficient information based on the vibration intensity information. That is, the road surface roughness coefficient information is obtained by adjusting the road surface type coefficient information corresponding to the current road surface type based on the vibration intensity information. For example, using the road surface type coefficient information corresponding to the current road surface type as a base value, if the vibration intensity information is higher than the vibration reference information corresponding to the current road surface type, the road surface type coefficient information is appropriately increased to obtain the road surface roughness coefficient information. If the vibration intensity information is lower than the vibration reference information corresponding to the current road surface type, the road surface type coefficient information is appropriately decreased to obtain the road surface roughness coefficient information. The vibration reference information corresponding to the current road surface type can also be obtained by matching from a road surface feature database. For example, a preset vibration reference information corresponding to the current road surface type in the road surface feature database can be set as the vibration reference information for the current road surface type.
[0150] Optionally, in this embodiment, after obtaining at least one of the motion speed information, noise intensity information, vibration intensity information, apparent wind speed information, windward angle information, road surface roughness coefficient information, or road surface type coefficient information, the information is synchronized in time and fused, or a weighted average method is used to process the data to avoid its uncertainty.
[0151] In this embodiment, the basic compensation ratio information is calculated based on the motion speed information, the noise intensity information, and the vibration intensity information; the wind noise compensation ratio information is calculated based on the apparent wind speed information and the windward angle information; and the road surface compensation ratio information is calculated based on the road surface roughness coefficient information and the road surface type coefficient information.
[0152] For example, the basic compensation ratio information, wind noise compensation ratio information, and pavement compensation ratio information are respectively represented as: Basic compensation ratio information = α1×ln(1+instantaneous velocity / 8) +α2×√(noise intensity information / 40) +α3×(WVI / 2)^0.4.
[0153] Wind noise compensation ratio information = β1×(apparent wind speed / 15)^0.7 + β2×|cos(windward angle information)|×(apparent wind speed information / 25).
[0154] Road surface compensation ratio information = γ1 × RSS × 1.5 + γ2 × road surface type coefficient information × 0.8.
[0155] Among them, α1=0.15, α2=0.12, α3=0.18, β1=0.08, β2=0.06, γ1=0.10, γ2=0.05.
[0156] Accordingly, the environmental compensation ratio information = basic compensation ratio information + wind noise compensation ratio information + road surface compensation ratio information. In this embodiment, a maximum increase in the environmental compensation ratio information is also set, for example, limiting the environmental compensation ratio information to between 0 and 0.8, that is, based on the maximum environmental impact, the volume increase is based on 80%.
[0157] It is understood that the formula for the environmental compensation ratio information in this application embodiment covers "normal masking," "directional wind noise," and "road vibration." The additive structure facilitates independent tuning and diagnosis, reducing coupling complexity. Furthermore, by dividing by constants (8, 40, 2, 15, 25, etc.), different physical quantities are mapped to similar perceptual scales, and the output is unified as a ratio, facilitating superposition and amplitude limiting. Additionally, dynamic range compression is achieved through square roots and fractional powers, conforming to the power law and masking characteristics of hearing, reducing the risk of excessive gain in extreme environments. Moreover, each term outputs zero when the input is zero, and the total compensation is monotonically non-negative, making it easy to incorporate global amplitude limiting, rate of change limiting, and time smoothing, avoiding volume pumping and hearing risks. Furthermore, the basic compensation already includes velocity and broad-spectrum noise; the wind noise term focuses on apparent wind and direction, and the road surface term focuses on vibration and type; α / β / γ weights prevent repeated amplification of the same physical cause.
[0158] In this application embodiment, human adjustment factors can also be considered, and personalized adjustment coefficients can be applied to the volume compensation to achieve timely satisfaction of personalized needs. That is, optionally, in some embodiments of this application, the step "compensating the current output volume information according to the environmental compensation ratio information to obtain the target volume information" includes: In response to receiving a personalized adjustment coefficient, which is obtained from input by the target user; The target volume information is obtained by compensating the current output volume information based on the environmental compensation ratio information and the personalized adjustment coefficient.
[0159] That is, the current output volume is adjusted by combining the environmental compensation ratio information obtained from the environment with the personalized adjustment coefficient input by the user.
[0160] It is understandable that the current output volume is the volume set to meet the user's listening needs in a static scene or before the current scene is subject to interference such as wind noise and road vibration.
[0161] In this embodiment of the application, the adjustable range of the personalized adjustment coefficient is set to 0.5-2.0, the default value is 1.0, and the adjustment compensation is 0.1.
[0162] For example, in some embodiments of this application, the volume increment is determined based on environmental compensation ratio information and personalized adjustment coefficient, and the target volume information is determined based on this volume increment. That is, optionally, in some embodiments of this application, the step "compensating the current output volume information according to the environmental compensation ratio information and the personalized adjustment coefficient to obtain the target volume information" includes: The compensation volume increment information is calculated based on the environmental compensation ratio information, the personalized adjustment coefficient, and the current output volume information. Calculate reference volume information based on the current output volume information and the compensation volume increment information; The target volume information is determined based on the reference volume information and the maximum volume threshold information of the terminal device.
[0163] For example, the compensation volume increment information = current output volume information × environmental compensation ratio information × personalized adjustment coefficient; Reference volume information = current output volume information + compensation volume increment information; It is understandable that in some scenarios, the reference volume information can be directly set as the target volume information. However, in this embodiment, in order to control the reference volume information or the target volume information within the effective volume range of the terminal device, the reference volume information is adjusted according to the maximum volume threshold information of the terminal to obtain the final target volume information. For example, target volume information = min(maximum volume threshold information, max(0, reference volume information)).
[0164] In summary, the embodiments of this application comprehensively consider environmental impacts and users' personalized needs to compensate for volume, thereby obtaining target volume information that matches both the environment and personalized needs.
[0165] In this embodiment of the application, to improve the output audio effect, the audio spectrum can be enhanced to optimize the auditory effect. Specifically, in some embodiments of this application, after the step "compensate the current output volume information according to the environmental compensation ratio information to obtain the target volume information," the method further includes: Identify the audio type information of the audio to be output; Extract the spectral information of the audio to be output, wherein the spectral information includes at least one frequency band; For each frequency band information, the target gain information corresponding to that frequency band information is calculated according to the enhancement strategy corresponding to that frequency band information, the audio type information, the noise intensity information, and the environmental feature information. The compression characteristic information is calculated based on the noise intensity information and the environmental compensation ratio information. Based on the gain information and / or compression feature information of each frequency band, the spectrum information is optimized to obtain optimized spectrum information; The step of outputting the audio to be output according to the target volume information includes: The audio to be output is output according to the target volume information and the optimized spectrum information; or, The target volume is smoothed to obtain smoothed volume information, and the audio to be output is output according to the smoothed volume information and the optimized spectrum information.
[0166] That is, the audio spectrum is divided into multiple frequency bands (corresponding to a frequency range), and the gain information of each frequency band is determined according to the corresponding enhancement strategy. Furthermore, noise intensity information is calculated based on environmental noise characteristics, and compression characteristics are calculated based on this noise intensity information and environmental compensation ratio information. The spectrum of the output audio is then adjusted using the gain information and compression characteristics to optimize the quality of the output audio.
[0167] For example, if the frequency band information includes keyframe information of the speech, corresponding to the range of 300Hz-3400Hz, then the target gain information corresponding to the keyframe information of the speech can be calculated according to the basic gain information corresponding to the audio type information and the noise intensity information. For example, the target gain information corresponding to the keyframe information of the speech = basic gain × (1 + 0.2 × ambient noise level / 70), where the ambient noise level = min(80, max(40, noise intensity information)).
[0168] For example, if the frequency band information includes speech intelligibility frequency band information, corresponding to the range of 2000Hz-4000Hz, then the target gain information corresponding to the speech intelligibility frequency band information can be calculated according to the base gain information corresponding to the audio type information and the apparent wind speed information in the environmental feature information. For example, the target gain information corresponding to the speech intelligibility segment information = base gain × (1 + 0.3 × target apparent wind speed / 20), where the target apparent wind speed = min(30, max(0, apparent wind speed information)).
[0169] Specifically, for the partially overlapping area (2000–3400Hz) of the speech key frame information (300Hz–3400Hz) and the speech intelligibility frequency band information (2000Hz–4000Hz), the gain of this range is set to the larger value of the two enhancement strategies.
[0170] For example, if the frequency band information includes low-frequency information, corresponding to the range of 100Hz-300Hz, then the target gain information corresponding to the low-frequency information can be calculated based on the base gain information corresponding to the audio type information and the vibration intensity information in the environmental feature information. For example, the target gain information corresponding to the low-frequency information = base gain × (1 - 0.1 × target vibration intensity information / 2.5), and the target vibration intensity information = min(3.0, max(0, WVI)).
[0171] The base gain is related to the audio type information. Different audio type information corresponds to different base gains. For example, in this embodiment, the audio type information includes speech audio, prompt audio, and music audio. Accordingly, the base gain of speech audio is in the range of 1.2-1.6, the base gain of prompt audio is in the range of 1.3-1.8, and the base gain of music audio is in the range of 1.1-1.4.
[0172] In this embodiment of the application, the compression feature information includes target compression ratio information and compression threshold information. The step of "calculating compression feature information based on the noise intensity information and environmental compensation ratio information" includes: Calculate the target noise level information based on the noise intensity information and the noise level threshold; The target noise level information is linearly mapped to compression ratio information; The compression ratio information is subjected to upper and lower limit shrinkage processing to obtain the target compression ratio information; The environmental compensation ratio information is subjected to range constraint processing to obtain the compensation ratio information; The compression threshold information is calculated based on the compensation ratio information and the preset threshold.
[0173] For example, the specific calculation is as follows: Target noise level information = min(80, max(40, noise intensity information)), where 80 and 40 are the maximum and minimum values corresponding to the noise level threshold.
[0174] Compression ratio information = 2.0 + (target noise level information - 60) / 20.
[0175] Target compression ratio information = max(2.0, min(4.0, compression ratio information)): 1.
[0176] Compensation ratio information = min(0.8, max(0, environmental compensation ratio information)).
[0177] Compression threshold information = -20 + (compensation ratio information × 10). The unit of compression threshold information is dB.
[0178] In addition, the compressed feature information may also include inflection point softness, attack time, and release time. In this embodiment, the inflection point softness is 3dB, the attack time is 5ms, and the release time is 100ms.
[0179] In this embodiment, the target volume information obtained after compensation can be processed by volume smoothing to obtain audio with better auditory effect. For example, a three-level filtering mechanism is used to avoid sudden volume changes. Specifically: the first level is an anomaly detection filter to remove outliers exceeding 3 times the standard deviation; the second level is a 5-point moving average filter to smooth short-term fluctuations; and the third level is an exponential smoothing filter with a smoothing coefficient α=0.3.
[0180] For example, if the absolute value of the difference between the current target volume information and the previous volume information exceeds 2, the optimization will be performed to reduce the difference to within 0-2. For instance, the final target volume information = target volume information + sign(target volume information - previous volume information) × 2. The sign() function is used to determine the sign of the input value, returning -1 (negative), 0 (zero), or 1 (positive). For example, it returns -1 when the target volume information - previous volume information is negative, 0 when the target volume information - previous volume information is 0, and 1 when the target volume information - previous volume information is positive.
[0181] In this embodiment of the application, after calculating the target volume information or the final target volume information after smoothing optimization, the volume adjustment level can be calculated based on the difference between the target volume information or the final target volume information after smoothing optimization and the current output volume. The terminal device is then adjusted from the current output volume to the target volume or the final target volume information after smoothing according to the volume adjustment level.
[0182] In the embodiments of this application, the audio quality can also be optimized based on the volume increase to ensure the audio output command. For example, when the volume increase is >40%, appropriate high-frequency attenuation (above 4kHz -2dB) is performed to avoid sound quality degradation; when the volume increase is <10%, dynamic range expansion is performed to improve sound quality details; when the volume increase is moderate (10%-40%), the original sound quality characteristics are maintained.
[0183] High-frequency attenuation refers to a significant increase in overall volume, but to prevent high frequencies from "stealing the show" or being "ear-piercing," the volume in the high-frequency range is slightly reduced to create a more balanced listening experience. Dynamic range expansion refers to making the contrast between strong and weak sounds more pronounced and enhancing detail in quiet environments with minimal volume changes.
[0184] In this embodiment of the application, the current system volume value and compensation status are monitored in real time, the volume adjustment history and the correspondence between environmental changes are recorded, abnormal volume adjustment situations such as frequent changes or exceeding the reasonable range are detected, and a debugging interface is provided to support parameter optimization and problem diagnosis.
[0185] In summary, the embodiments of this application match the audio output volume based on the movement of the terminal device and the usage environment, and control the audio output volume so that the audio playback volume of the terminal device matches the environmental conditions and movement state, thereby improving the audio playback effect in different environments and enhancing the user experience.
[0186] Furthermore, by fusing multi-sensor (GPS, accelerometer / gyroscope, microphone) and multi-dimensional data (weather wind speed, map road type) to perform non-linear optimization of audio output volume, the audio output effect is improved, enhancing the user's auditory experience.
[0187] Dynamic adaptation of compression feature information is achieved by calculating compression feature information based on environmental characteristics. Frequency band-based spectrum enhancement improves audio output quality, achieving the desired audio output quality while maintaining sufficient volume.
[0188] The audio processing method in this application embodiment is suitable for clearly conveying emergency prompts (such as navigation prompts or incoming calls) in scenarios such as outdoor sports, outdoor work, and micro-mobility using electric scooters / balance bikes. It avoids traffic accidents caused by distraction due to manual volume adjustment, and the volume optimization by integrating multi-dimensional data realizes intelligent volume adjustment to reduce the cognitive burden on users.
[0189] In addition, in this embodiment of the application, notifications, resources, and cycling safety can also be controlled in the cycling mode. That is, the cycling mode includes an intelligent notification control module, a resource management module, or a safety control module. The intelligent notification control module includes a hierarchical notification processing unit or a notification priority display unit; the resource management module includes a resource management unit or a cycling voice assistant control unit. The hierarchical notification processing unit performs hierarchical notification processing based on intelligent identification strategy, instant notification strategy, whitelist notification strategy, or silent processing strategy. Among them, the intelligent recognition strategy refers to automatically including the cycling desktop application and core system applications in the notification whitelist without requiring manual configuration by the user.
[0190] Among them, the instant notification strategy guides navigation voice prompts, emergency calls, safety warnings and other key information to be displayed and broadcast immediately by voice.
[0191] The whitelist notification policy means that all push messages from whitelisted applications will be displayed normally.
[0192] The silent processing strategy means that notifications from non-whitelisted applications will be processed silently and will only be displayed after exiting cycling mode.
[0193] The notification priority display unit performs notification priority display processing based on a visual adaptation strategy or a gesture simplification strategy; Among them, the visual adaptation strategy refers to the use of large fonts and high contrast design in the notification interface to facilitate quick recognition while riding.
[0194] Among them, the gesture simplification strategy refers to supporting simple swipe gestures to quickly process notifications and reduce complex operations.
[0195] The resource management unit manages resources based on a whitelist protection strategy or a background optimization strategy. Among them, the whitelist protection strategy prioritizes the protection of core applications such as navigation and communications (in the whitelist) to ensure the stable operation of critical functions.
[0196] Among them, background optimization strategies refer to restricting unnecessary applications from starting automatically, intelligently cleaning up high-energy-consuming processes, and releasing system resources.
[0197] The cycling voice assistant control unit controls the cycling voice assistant based on a command restriction strategy, a safety priority strategy, or an intelligent broadcast strategy. The instruction restriction policy refers to responding only to core instructions such as navigation, calls, emergency rescue, and weather inquiries, in order to avoid generalization of functions.
[0198] Among them, the safety-first strategy refers to blocking or weakening distracting functions such as entertainment, shopping, and complex conversations to maintain focus on driving.
[0199] Among them, the intelligent broadcasting strategy refers to a message broadcasting mechanism based on a notification whitelist to ensure that important information is delivered in a timely manner.
[0200] The security management module performs security monitoring and early warning based on multi-sensor fusion strategy, intelligent anomaly detection strategy, emergency response linkage strategy, or configurable early warning strategy.
[0201] Among them, the multi-sensor fusion strategy refers to integrating sensors such as GPS, accelerometer, and gyroscope, and using data fusion algorithms to monitor the riding status in real time and improve detection accuracy.
[0202] Among them, the intelligent anomaly detection strategy refers to the identification of dangerous situations such as sudden braking, collisions, and falls through a multi-level early warning mechanism, effectively avoiding false alarms.
[0203] Among them, the emergency response linkage strategy refers to automatically triggering SOS calls, emergency contact notifications, and sending precise location information, and intelligently linking with professional rescue services.
[0204] Among them, the configurable early warning strategy means that users can set the early warning sensitivity and response method according to their personal needs to achieve personalized security.
[0205] In summary, this application embodiment switches to cycling mode after detecting a target signal and provides a cycling style interface suitable for cycling in cycling mode, realizing the provision of an adaptive design suitable for cycling scenarios. The cycling style interface responds to the user's interaction requests during cycling, allowing the user to enjoy the convenience brought by smart devices and improve the cycling experience.
[0206] Specifically, the system uses target signals to switch riding modes and combines movement speed information to determine whether to exit riding mode, thus achieving automated switching control of riding modes, reducing manual operation by the user, improving the convenience of operation while riding, and enhancing the user experience.
[0207] In this embodiment of the application, for the cycling mode, multiple independent applications such as speed, weather, and navigation are integrated and displayed seamlessly, so that users do not need to frequently switch between multiple applications, reducing the complexity of operation and meeting the needs of difficult cycling operations.
[0208] It is understood that, in the embodiments of this application, when the terminal device is connected to the cycling tool, the cycling tool can undertake tasks such as display and audio processing, thereby improving processing efficiency and quality by utilizing the capabilities of the cycling tool, while the terminal device serves as an information relay and data relay.
[0209] In this embodiment, user gaze information can also be captured to wake the screen based on gaze. The screen can also be woken up or audio adjusted in response to user voice or gestures. A personal preference database can also be established, and this data can be used to assist in control, for example, adjusting the output volume of audio and video based on personal preference volume.
[0210] To facilitate better implementation of the mode switching method of this application, this application also provides a mode switching device based on the above-described mode switching method. The meanings of the terms used are the same as in the mode switching method described above, and specific implementation details can be found in the descriptions of the method embodiments.
[0211] Please see Figure 7 , Figure 7 This is a schematic diagram of the mode switching device provided in an embodiment of this application, wherein the mode switching device is applied to a terminal device, and the mode switching device can be specifically as follows: The detection module 701 is used to enter the riding mode if a target signal is detected, wherein the riding mode provides a riding style interface; Response module 702 is used to respond to the cycling interaction request of the target user through the cycling style interface and obtain the cycling interaction result; The control module 703 is used to exit the riding mode if it detects that the target signal is continuously interrupted and the moving speed information of the terminal device meets the preset conditions.
[0212] Optionally, in some embodiments of this application, the apparatus further includes: A mode configuration interface is provided, which is used to configure control information for mode switching; The mode configuration interface includes a signal addition control, a toggle switch control, a mode exit control, or a mode exit timer control; The signal adding control is used to add the target signal for controlling mode switching; The switch control is used to control the on / off state switching function. The mode exit control is used to control whether the mode exit conditions are enabled or disabled. The mode exit conditions include the target signal being in an interrupted state and the movement speed information meeting preset conditions. The exit timer control is used to control the countdown for exiting the mode. When the mode exit condition is enabled and the mode exit condition is met, the mode exit operation is executed according to the set countdown.
[0213] Optionally, in some embodiments of this application, the cycling style interface includes at least one icon of target size, an initial function area, or a custom function area, and the cycling style interface is used to automatically adjust the landscape and portrait screen layout according to the orientation of the terminal device. The status bar of the cycling style interface displays at least one of the following: mobile signal strength information, location status information, battery percentage information, or estimated remaining mileage information; The cycling style interface replaces the hierarchical information display mode with a single-screen full-display mode. The cycling style interface includes cycling settings controls, which are used to configure at least one display parameter of the cycling style interface, such as brightness, color, resolution, and theme. The cycling settings controls are also used to configure the on / off switching of target navigation mode, safety monitoring mode, voice assistant restriction mode, and dynamic volume compensation mode.
[0214] Optionally, in some embodiments of this application, the riding mode includes an intelligent notification control module, a resource management module, or a safety control module; the intelligent notification control module includes a hierarchical notification processing unit or a notification priority display unit; the resource management module includes a resource management unit or a riding voice assistant control unit. The hierarchical notification processing unit performs hierarchical notification processing based on intelligent identification strategy, instant notification strategy, whitelist notification strategy, or silent processing strategy. The notification priority display unit performs notification priority display processing based on a visual adaptation strategy or a gesture simplification strategy; The resource management unit manages resources based on a whitelist protection strategy or a background optimization strategy. The cycling voice assistant control unit controls the cycling voice assistant based on a command restriction strategy, a safety priority strategy, or an intelligent broadcast strategy. The security management module performs security monitoring and early warning based on multi-sensor fusion strategy, intelligent anomaly detection strategy, emergency response linkage strategy, or configurable early warning strategy.
[0215] Optionally, in some embodiments of this application, the apparatus further includes: In the cycling mode, if audio to be output is detected, the motion characteristic information of the terminal device and the environmental characteristic information of the surrounding environment are obtained. The target volume information is determined based on the motion feature information and the environmental feature information; The audio to be output is output according to the target volume information.
[0216] Optionally, in some embodiments of this application, the apparatus further includes: A navigation configuration interface is provided for the target navigation mode. The navigation configuration interface includes an energy-saving standby setting area or an audio wake-up setting area. The energy-saving standby setting area includes a screen energy-saving standby switch control, an entry speed threshold control, or an exit speed threshold control. The audio wake-up setting area includes an audio event wake-up switch control, a screen-on duration control, or a touch wake-up control. The screen energy-saving standby switch control is used to control the on / off state of the screen energy-saving standby mode; The entry speed threshold control is used to set the first speed threshold for entering the screen power-saving standby mode; The exit speed threshold control is used to set a second speed threshold for exiting the screen power saving standby mode; The audio event wake-up switch control is used to control the on / off state of the audio event wake-up mode; The screen-on duration control is used to set the duration of screen-on. The touch wake-up control is used to control the on / off state of the touch wake-up mode.
[0217] Optionally, in some embodiments of this application, the apparatus further includes: When the audio event wake-up function is enabled via the audio event wake-up switch, if audio information to be output is detected, the audio event type information corresponding to the audio information to be output is determined. Determine the target priority information based on the audio event type information; Wake-up strategy information is determined based on the target priority information, and the wake-up strategy information includes wake-up method information and hold duration information; The screen of the terminal device is woken up according to the wake-up method information and the hold duration information to obtain screen control result information. Furthermore, when the screen energy-saving standby function is enabled via the screen energy-saving standby switch, if the preset conditions are met, the brightness of the terminal device's screen is gradually reduced according to the preset brightness ratio information and preset duration information until the preset brightness conditions are met, and the screen display result information is obtained.
[0218] In this embodiment of the application, if the detection module 701 detects a target signal, it enters the cycling mode. The cycling mode provides a cycling style interface. The response module 702 responds to the target user's cycling interaction request through the cycling style interface and obtains the cycling interaction result. If the control module 703 detects that the target signal is continuously interrupted and the moving speed information of the terminal device meets the preset conditions, it exits the cycling mode.
[0219] In this embodiment, the system switches to cycling mode after detecting a target signal and provides a cycling style interface suitable for cycling. This provides an adaptive design suitable for cycling scenarios and responds to user interaction requests during cycling through the cycling style interface, allowing users to enjoy the convenience of smart devices and improve their cycling experience.
[0220] Specifically, the system uses target signals to switch riding modes and combines movement speed information to determine whether to exit riding mode, thus achieving automated switching control of riding modes, reducing manual operation by the user, improving the convenience of operation while riding, and enhancing the user experience.
[0221] In addition, this application also provides an electronic device, such as Figure 8 As shown, it illustrates a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Specifically: The electronic device may include components such as a processor 801 with one or more processing cores, a memory 802 with one or more computer-readable storage media, a power supply 803, and an input unit 804. Those skilled in the art will understand that... Figure 8 The electronic device structure shown does not constitute a limitation on the electronic device and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein: The processor 801 is the control center of the electronic device. It connects various parts of the electronic device via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 802, and by calling data stored in the memory 802, it performs various functions and processes data, thereby providing overall monitoring of the electronic device. Optionally, the processor 801 may include one or more processing cores; preferably, the processor 801 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 801.
[0222] The memory 802 can be used to store software programs and modules. The processor 801 executes various functional applications and data processing by running the software programs and modules stored in the memory 802. The memory 802 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, application programs required for at least one function, etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 802 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 802 may also include a memory controller to provide the processor 801 with access to the memory 802.
[0223] The electronic device also includes a power supply 803 that supplies power to the various components. Preferably, the power supply 803 can be logically connected to the processor 801 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The power supply 803 may also include one or more DC or AC power supplies, recharging systems, power equipment debugging circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0224] The electronic device may also include an input unit 804, which can be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
[0225] Although not shown, the electronic device may also include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 801 in the electronic device loads the executable files corresponding to the processes of one or more applications into the memory 802 according to the following instructions, and the processor 801 runs the applications stored in the memory 802, thereby implementing the steps in any of the mode switching methods provided in the embodiments of this application.
[0226] If the terminal device in this embodiment detects a target signal, it enters a cycling mode. The cycling mode provides a cycling style interface, which responds to the target user's cycling interaction request and obtains the cycling interaction result. If the target signal is continuously interrupted and the terminal device's movement speed information meets preset conditions, it exits the cycling mode.
[0227] In this embodiment, the system switches to cycling mode after detecting a target signal and provides a cycling style interface suitable for cycling. This provides an adaptive design suitable for cycling scenarios and responds to user interaction requests during cycling through the cycling style interface, allowing users to enjoy the convenience of smart devices and improve their cycling experience.
[0228] Specifically, the system uses target signals to switch riding modes and combines movement speed information to determine whether to exit riding mode, thus achieving automated switching control of riding modes, reducing manual operation by the user, improving the convenience of operation while riding, and enhancing the user experience.
[0229] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.
[0230] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.
[0231] To this end, this application provides a computer-readable storage medium storing a computer program that can be loaded by a processor to execute the steps in any of the mode switching methods provided in this application.
[0232] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.
[0233] The computer-readable storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.
[0234] Since the instructions stored in the computer-readable storage medium can execute the steps in any of the mode switching methods provided in this application, the beneficial effects that any of the mode switching methods provided in this application can achieve can be realized, as detailed in the preceding embodiments, and will not be repeated here.
[0235] The above provides a detailed description of a mode switching method, apparatus, electronic device, and computer-readable storage medium provided in this application. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, those skilled in the art will recognize that there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.
Claims
1. A mode switching method, characterized in that, Applied to a terminal device, the method includes: If a target signal is detected, the system enters cycling mode, which provides a cycling style interface. The cycling style interface responds to the target user's cycling interaction request and obtains the cycling interaction result. If the target signal is detected to be continuously interrupted, and the moving speed information of the terminal device meets the preset conditions, then the riding mode is exited.
2. The mode switching method according to claim 1, characterized in that, The method further includes: A mode configuration interface is provided, which is used to configure control information for mode switching; The mode configuration interface includes a signal addition control, a toggle switch control, a mode exit control, or a mode exit timer control; The signal adding control is used to add the target signal for controlling mode switching; The switch control is used to control the on / off state switching function. The mode exit control is used to control whether the mode exit conditions are enabled or disabled. The mode exit conditions include the target signal being in an interrupted state and the movement speed information meeting preset conditions. The exit timer control is used to control the countdown for exiting the mode. When the mode exit condition is enabled and the mode exit condition is met, the mode exit operation is executed according to the set countdown.
3. The mode switching method according to claim 1, characterized in that, The cycling style interface includes at least one icon of target size, an initial function area or a custom function area, and the cycling style interface is used to automatically adjust the landscape and portrait screen layout according to the orientation of the terminal device. The status bar of the cycling style interface displays at least one of the following: mobile signal strength information, location status information, battery percentage information, or estimated remaining mileage information; The cycling style interface replaces the hierarchical information display mode with a single-screen full-display mode. The cycling style interface includes cycling settings controls, which are used to configure at least one display parameter among brightness, color, resolution, and theme of the cycling style interface, and to switch on / off target navigation mode, safety monitoring mode, voice assistant restriction mode, and dynamic volume compensation mode.
4. The mode switching method according to claim 1, characterized in that, The cycling mode includes an intelligent notification control module, a resource management module, or a safety control module. The intelligent notification control module includes a hierarchical notification processing unit or a notification priority display unit. The resource management module includes a resource management unit or a cycling voice assistant control unit. The hierarchical notification processing unit performs hierarchical notification processing based on intelligent identification strategy, instant notification strategy, whitelist notification strategy, or silent processing strategy. The notification priority display unit performs notification priority display processing based on a visual adaptation strategy or a gesture simplification strategy; The resource management unit manages resources based on a whitelist protection strategy or a background optimization strategy. The cycling voice assistant control unit controls the cycling voice assistant based on a command restriction strategy, a safety priority strategy, or an intelligent broadcast strategy. The security management module performs security monitoring and early warning based on multi-sensor fusion strategy, intelligent anomaly detection strategy, emergency response linkage strategy, or configurable early warning strategy.
5. The mode switching method according to claim 1, characterized in that, The method further includes: In the cycling mode, if audio to be output is detected, the motion characteristic information of the terminal device and the environmental characteristic information of the surrounding environment are obtained. The target volume information is determined based on the motion feature information and the environmental feature information; The audio to be output is output according to the target volume information.
6. The mode switching method according to claim 1, characterized in that, The method further includes: A navigation configuration interface is provided for the target navigation mode. The navigation configuration interface includes an energy-saving standby setting area or an audio wake-up setting area. The energy-saving standby setting area includes a screen energy-saving standby switch control, an entry speed threshold control, or an exit speed threshold control. The audio wake-up setting area includes an audio event wake-up switch control, a screen-on duration control, or a touch wake-up control. The screen energy-saving standby switch control is used to control the on / off state of the screen energy-saving standby mode; The entry speed threshold control is used to set the first speed threshold for entering the screen power-saving standby mode; The exit speed threshold control is used to set a second speed threshold for exiting the screen power saving standby mode; The audio event wake-up switch control is used to control the on / off state of the audio event wake-up mode; The screen-on duration control is used to set the duration of screen-on. The touch wake-up control is used to control the on / off state of the touch wake-up mode.
7. The mode switching method according to claim 6, characterized in that, The method further includes: When the audio event wake-up function is enabled via the audio event wake-up switch, if audio information to be output is detected, the audio event type information corresponding to the audio information to be output is determined. Determine the target priority information based on the audio event type information; Wake-up strategy information is determined based on the target priority information, and the wake-up strategy information includes wake-up method information and hold duration information; The screen of the terminal device is woken up according to the wake-up method information and the hold duration information to obtain screen control result information. Furthermore, when the screen energy-saving standby function is enabled via the screen energy-saving standby switch, if the preset conditions are met, the brightness of the terminal device's screen is gradually reduced according to the preset brightness ratio information and preset duration information until the preset brightness conditions are met, and the screen display result information is obtained.
8. A mode switching device, characterized in that, Applied to a terminal device, the device includes: A detection module is used to enter cycling mode if a target signal is detected, wherein the cycling mode provides a cycling style interface; The response module is used to respond to the cycling interaction request of the target user through the cycling style interface and obtain the cycling interaction result; The control module is configured to exit the riding mode if it detects that the target signal is continuously interrupted and the moving speed information of the terminal device meets preset conditions.
9. An electronic device, characterized in that, It includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the mode switching method as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the mode switching method as described in any one of claims 1-7.