A terminal device control method and device based on earphone interaction, equipment and medium
By using touch commands from the headphone sensor, the timing operation function is activated and the time increments are performed in a gradient manner. This solves the problem of the lack of timing operation in the terminal media stream control, and realizes precise media stream timing control and convenient user interaction.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- GUANGDONG QINXIANG TECHNOLOGY CO LTD
- Filing Date
- 2026-03-24
- Publication Date
- 2026-06-19
Smart Images

Figure CN122240054A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of intelligent wearable device control technology, and in particular to a terminal device control method based on headphone interaction, a terminal device control device based on headphone interaction, a corresponding wearable device, and a corresponding computer-readable storage medium. Background Technology
[0002] In the relevant technologies for timed control of terminal media streams, the terminal timed scheme is usually adopted. However, for multimedia playback software that does not have timed shutdown and timed start functions, it is not possible to achieve timed control of the media stream. Summary of the Invention
[0003] This application provides a terminal device control method, apparatus, device, and medium based on headphone interaction, which can trigger protocol layer instructions through headphone interaction behavior to achieve timed control of terminal media streams.
[0004] In one aspect, this application provides a terminal device control method based on headphone interaction, the method comprising:
[0005] In response to a preset first touch command to the headphone sensor, the headphone is triggered to enter a timed operation function; the timed operation function is used to instruct the headphone sensor to perform a timed operation on a preset media application of the terminal device;
[0006] After entering the timed operation function, it is determined whether a preset second touch command to the headphone sensor is detected within a preset time window; the preset time window is the time difference between the current time and entering the timed operation function, or the time difference between the current time and the previous time the preset second touch command was detected.
[0007] If the preset second touch command is detected within the preset time window, the currently set time interval is gradually increased based on the number of touches of the preset second touch command to obtain the final set time interval.
[0008] After the final set time is reached, the headset is controlled to send a specific instruction to the terminal device; the specific instruction is used to control the preset media application accordingly.
[0009] In some embodiments of this application, the step of gradually increasing the currently set timing time based on the number of touches according to the preset second touch command to obtain the final set timing time includes:
[0010] Get the timeout duration set for each touch operation;
[0011] The final set timer is obtained by adding the current set timer duration to the timer duration of the number of touches.
[0012] In some embodiments of this application, the method further includes:
[0013] If the preset second touch command is not detected within the time difference between entering the timed operation function, the earphone exits the timed operation function.
[0014] In some embodiments of this application, the method further includes:
[0015] If the preset second touch command is not detected within the time difference between the previous detection of the preset second touch command and the current time interval, then the current time interval is determined to be the final time interval.
[0016] In some embodiments of this application, the preset first touch command and the preset second touch command are generated based on the user's touch operation on the earphone, and the touch operation includes a pressing operation.
[0017] In some embodiments of this application, the specific instructions are preset on the device side, and the specific instructions include media stream pause instructions, media stream playback instructions, and screen-off instructions.
[0018] On the other hand, this application provides a terminal device control device based on headphone interaction, the device comprising:
[0019] The timed operation function entry module is used to respond to a preset first touch command on the headphone sensor of the headphone, triggering the headphone to enter the timed operation function; the timed operation function is used to instruct the headphone sensor to perform timed operation on the preset media application of the terminal device;
[0020] The touch command detection module is used to determine whether a preset second touch command to the headphone sensor is detected within a preset time window after the timed operation function is entered; the preset time window is the time difference between the current time and the time of entering the timed operation function, or the time difference between the current time and the time of the previous detection of the preset second touch command.
[0021] The timing duration setting module is used to gradually increase the currently set timing duration based on the number of touches of the preset second touch command when the preset second touch command is detected within the preset time window, so as to obtain the final set timing duration.
[0022] The timing operation module is used to control the earphone to send a specific instruction to the terminal device after the final set timing time is reached; the specific instruction is used to control the preset media application accordingly.
[0023] In some embodiments of this application, the timing duration setting module includes:
[0024] The timing duration setting submodule is used to obtain the timing duration set for each touch operation; and to add the current timing duration to the timing duration of the number of touches to obtain the final timing duration.
[0025] In some embodiments of this application, the apparatus further includes:
[0026] The timed operation function exit module is used to allow the earphone to exit the timed operation function when no preset second touch command is detected within the time difference between entering the timed operation function and entering the timed operation function.
[0027] In some embodiments of this application, the timing duration setting module is further configured to determine the currently set timing time as the final set timing time when no preset second touch instruction is detected within the time difference from the previous detection of the preset second touch instruction.
[0028] In some embodiments of this application, the preset first touch command and the preset second touch command are generated based on the user's touch operation on the earphone, and the touch operation includes a pressing operation.
[0029] In some embodiments of this application, the specific instructions are preset on the device side, and the specific instructions include media stream pause instructions, media stream playback instructions, and screen-off instructions.
[0030] In another aspect, this application also provides a wearable device, including: a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program, when executed by the processor, implements any of the headphone-based terminal device control methods described above.
[0031] In another aspect, this application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements any of the headphone-based terminal device control methods described in the present invention.
[0032] In another aspect, this application also provides a computer program product containing instructions that, when run on a computer, cause the computer to perform the terminal device control method based on headphone interaction described in the above aspects.
[0033] The terminal device control method, apparatus, device, and medium based on headphone interaction provided in this application trigger the headphones to enter a timed operation function in response to a preset first touch command on the headphone sensor. The timed operation function can be mainly used to instruct the headphone sensor to perform timed operations on preset media applications of the terminal device. After the headphones enter the timed operation function, it can be determined whether a preset second touch command on the headphone sensor is detected within a preset time window. The preset time window is the time difference between the current time and the time of entering the timed operation, or the time difference between the current time and the time of the previous detection of the preset second touch command. If the preset second touch command is detected within the preset time window, the currently set time can be gradually increased based on the number of touches of the preset second touch command to obtain the final set time. After the final set time is reached, the headphones can be controlled to send specific commands to the terminal device to control the preset media applications of the terminal device accordingly. By setting a timer in the headphone sensor and executing a countdown, the headphone sends a specific command to the terminal device when the set duration is reached. This triggers protocol layer instructions based on the headphone's interactive behavior, enabling timed control of the terminal's media stream. It also compensates for the lack of timed operation functionality in some terminal media applications. Furthermore, the mechanism of using a preset time window and a gradient increase in timer duration after entering the timed operation function avoids false triggers, ensures the accuracy of timer settings, simplifies the timer setting operation of screenless headphones, reduces interaction costs, and increases the convenience of timer operation. Attached Figure Description
[0034] Figure 1 This is a flowchart illustrating the steps of a terminal device control method based on headphone interaction provided in an embodiment of this application;
[0035] Figure 2 This is a flowchart illustrating the headphone-based interactive control terminal device provided in an embodiment of this application.
[0036] Figure 3 This is a structural block diagram of a terminal device control device based on headphone interaction provided in an embodiment of this application;
[0037] Figure 4 This is a structural block diagram of a wearable device provided in an embodiment of this application;
[0038] Figure 5 This is a structural block diagram of a computer-readable storage medium provided in an embodiment of this application. Detailed Implementation
[0039] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0040] This application embodiment enables timed operation of a remote terminal device via an earphone sensor. Specifically, by setting a timeout period in the earphone sensor and executing a countdown, the earphone sends a specific command to the terminal device when the set duration is reached. This triggers protocol layer instructions based on the earphone's interactive behavior, achieving timed control of the terminal's media stream. It also compensates for the lack of timed operation functionality in some terminal media applications. By effectively judging touch operations through a preset time window, only valid touches within the time window are recognized as timeout duration setting operations. This avoids invalid operations such as accidental touches and unintentional touches, prevents incorrect modification of the timeout duration, ensures the accuracy of the timeout setting, and improves the stability and reliability of the earphone's timed function controlling the remote terminal device. Furthermore, by employing a timeout duration gradient increase mechanism, users can quickly adjust the timeout duration to the target value with simple repeated touches, eliminating the need for complex operations. This simplifies the earphone's timeout setting operation, reduces interaction costs, and greatly optimizes the media timeout interaction experience on the earphone. Furthermore, by effectively determining the time window, each valid touch corresponds to an increment of the timing duration, which can form a multi-level, continuously stackable timing duration scheme to meet the differentiated timing needs of users in different scenarios (such as naps, sleep, commuting, etc.), rather than a fixed single duration, thereby achieving flexible and gradient-based customization of timing duration.
[0041] Reference Figure 1 The diagram illustrates a flowchart of a terminal device control method based on headphone interaction according to an embodiment of this application, which may specifically include the following steps:
[0042] Step S101: Responding to the preset first touch command on the headphone sensor, the headphone is triggered to enter the timed operation function.
[0043] The preset first touch command can be generated based on the user's touch operation on the headphones. Optionally, the touch operation can include pressing, touching, etc., where pressing refers to a complete light touch action from pressing down to releasing. In practical applications, the timed operation function can be entered through a specific pressing rhythm, such as three pressing operations or other specific methods. That is, the preset first touch command can actually be generated based on the corresponding touch operation for entering the timed operation function as mentioned above. This application embodiment does not limit this.
[0044] The timed operation function is mainly used to instruct the headphone sensor to perform timed operations on the preset media application of the terminal device, including timed shutdown, timed startup, and timed screen-off. The preset media application can be any multimedia application, which can be a multimedia application with timed shutdown and timed startup functions or a multimedia application without timed shutdown and timed startup functions. This application embodiment does not limit this.
[0045] Step S102: After entering the timed operation function, determine whether a preset second touch command to the headphone sensor is detected within the preset time window.
[0046] In some embodiments of this application, after the headphones enter the timed operation function, it can be determined whether a preset second touch command to the headphone sensor is detected within a preset time window. The touch operation is effectively determined through the preset time window, and only the effective touch within the time window is identified as the timed duration setting operation. This can avoid invalid operations such as accidental touch and unintentional touch, prevent the timed duration from being modified incorrectly, and ensure the accuracy of the timed setting.
[0047] The preset second touch command can be generated based on the user's touch operation on the headphones. Optionally, the touch operation can include pressing, touching, etc. In practical applications, a timer can be set through a specific touch operation; that is, the preset second touch command can be generated based on the corresponding touch operation set above for setting the timer.
[0048] The preset time window can be the time difference between the current moment and the time of entering the timed operation function, or the time difference between the current moment and the time of the previous detection of the preset second touch command.
[0049] In this embodiment, the preset time window can be used to define whether to continue adjusting or restart adjusting. That is, to determine whether to continue accumulating the time duration based on the currently set time duration or to exit the timer operation function to re-enter a new round of timer settings, thereby ensuring that the internal timing, duration calculation, and subsequent sending of instructions when the set time is reached are logically accurate and not disordered.
[0050] Step S103: If a preset second touch command is detected within the preset time window, the current set time interval is gradually increased based on the number of touches of the preset second touch command to obtain the final set time interval.
[0051] In one scenario, if a preset second touch command is detected within a preset time window, the timer duration is then increased based on the currently set timer duration. Optionally, the timer duration set for each touch operation can be obtained. If a preset second touch command is detected within the preset time window, the currently set timer duration can be increased by the timer duration of the number of touches to obtain the final set timer duration, thus achieving a gradient increase in the timer duration.
[0052] In practical applications, detecting whether a preset second touch command exists within a preset time window can be manifested as determining whether a press operation is detected within the preset time window. Specifically, in response to each detected user press operation, the currently set timeout duration can be added to the preset timeout duration, such as increasing the timeout duration by 10 minutes for each press.
[0053] Optionally, the adjustment method for the timing duration may include at least one of the following: adjusting the increase in timing duration based on the pressure applied during the pressing operation; adjusting the direction of increase or decrease in timing duration based on clockwise or counterclockwise touch operation using the fingertip; adjusting the adjustment level of timing duration based on the number of touch circles or the duration of touch; and achieving continuous stacking or graded adjustment of timing duration based on continuous touch operation. This application does not impose limitations on the embodiments described.
[0054] In this embodiment, to achieve customizable timing duration, the timing duration can be continuously or progressively adjusted by combining multi-dimensional interactive methods such as pressure intensity, clockwise or counterclockwise fingertip movement during pressing, or the number of touch circles, rather than relying solely on a single fixed gradient increase. This overcomes the limitation that each press increment results in a fixed timing duration. By mapping different interactive parameters to different adjustment amplitudes or directions, multi-level, continuously stackable, and adjustable (i.e., forward / reverse adjustment) timing duration schemes can be formed. This meets the differentiated timing needs of users in different scenarios (such as naps, sleep, commuting, etc.), improves the freedom and ease of operation of timing settings, and makes the timing control of remote devices by the headset more user-friendly and precise.
[0055] In another scenario, if no preset second touch command is detected within the time difference between entering the timed operation function, the headphones will exit the timed operation function.
[0056] In another scenario, if no preset second touch command is detected within the time difference between the previous detection of the preset second touch command and the current time setting, the current time setting can be determined as the final time setting, so that the headphones trigger the operation of sending a specific command to the terminal device according to the set time.
[0057] Step S104: After the final set time is reached, control the headset to send a specific instruction to the terminal device.
[0058] In some embodiments of this application, a timer inside the earphone can be activated according to a set time interval to enable timed control of the terminal device based on the time interval.
[0059] Specific commands are primarily used to control preset media applications. Specifically, after receiving a specific command from the headset, the terminal device can respond to the command and control the preset media application accordingly, including turning it off, on, or turning off the screen, to achieve timed closing, timed opening, and timed screen turning off of the preset media application.
[0060] Optionally, specific commands can be preset or selected on the device. Specifically, the device can create a command configuration list, which pre-stores a set of configurable commands. This set of commands can correspond to standard operation codes in audio / video remote control protocols. The device can provide a user configuration / selection interface, offering users options for configuring timed trigger commands. This allows users to manually switch between and select target commands from multiple preset commands. The device can then locally save the user-selected command type and its corresponding protocol operation code. By supporting the preset or selection of specific commands on the device, the control commands sent from the headset to the terminal device can be flexibly configured according to user habits, improving the versatility and personalization of the timed control function.
[0061] In practical applications, after the headset and device establish a connection, the device can use the Bluetooth General Attribute Configuration Protocol (GAMP) to write the target command type, operation code, and command parameters into the headset's preset characteristic values; alternatively, it can send configuration information to the headset via a manufacturer-defined command. The headset can then receive and store this specific command information in its local memory. When the headset enters the timed operation function and reaches the set time, the headset can retrieve the locally stored configured specific command, encapsulate the command data packet according to the corresponding protocol format, and then send the specific command to the device via the Bluetooth channel to control the device to perform the corresponding media stream operation.
[0062] Furthermore, it can also support users to reselect or modify specific commands on the device side. The device side can synchronize the updated command information to the headset side in real time, so that the headset side can execute the latest configured command when the next timer arrives, without the need to restart or re-pair. This application embodiment does not limit this.
[0063] In this embodiment, by implementing the pre-setting and dynamic selection of specific instructions on the device side, the control behavior executed by the earphone after the timer arrives can be flexibly configured according to user habits, adapting to different scenario requirements without modifying the earphone firmware; at the same time, the instructions are synchronized through the standard Bluetooth protocol, which has strong compatibility and high stability, improving the versatility and personalization of the overall solution.
[0064] Optionally, the specific instruction may include a media stream pause instruction, a media stream play instruction, a screen-off instruction, etc., and the media stream may include audio and video. That is, after receiving the specific instruction, the device can perform any function agreed upon by both parties in advance, and this application embodiment does not impose any restrictions on this.
[0065] Specifically, specific commands belong to the protocol layer. Protocol layer commands are the communication language between the headset and the device. After the timing logic is triggered on the headset side, the control intention is encapsulated into a protocol layer command and transmitted to the device side via Bluetooth. This allows the device side to respond to the specific command and execute the corresponding media stream control after parsing the command.
[0066] Optionally, the communication protocol between the headset and the device can include the Bluetooth standard protocol and the manufacturer's proprietary protocol.
[0067] As an example, if the Bluetooth standard protocol is used, the protocol layer instructions are standardized operation codes. The headphones only need to encapsulate the standardized operation codes according to the protocol format and send them, and the terminal device can recognize and execute them directly. For example, the operation code for the playback function is 0x44, and the terminal device starts playing music / video after parsing it; the operation code for the pause function is 0x45, and the terminal device stops playing media after parsing it, and so on.
[0068] As another example, if a vendor's proprietary protocol is used, the fields of the proprietary protocol instruction can include instruction type, operation type, timeout duration, and checksum. The interaction logic of the proprietary protocol instruction can be represented by a built-in timer on the headset. After the set time is reached, the proprietary instruction can be written to a predefined feature value on the terminal side through the Write Characteristic operation of BLE GATT. This allows the device to call the media API to start / stop playback after parsing the instruction based on the feature value, thereby realizing the audio / video playback and pause protocol.
[0069] In this embodiment, by responding to a preset first touch command to the headphone sensor, the headphone is triggered to enter a timed operation function. The timed operation function can be mainly used to instruct the headphone sensor to perform timed operations on a preset media application of the terminal device. After the headphone enters the timed operation function, it can be determined whether a preset second touch command to the headphone sensor is detected within a preset time window. The preset time window is the time difference between the current time and the time of entering the timed operation, or the time difference between the current time and the time of the previous detection of the preset second touch command. If the preset second touch command is detected within the preset time window, the currently set time can be gradually increased based on the number of touches of the preset second touch command to obtain the final set time. After the final set time is reached, the headphone can be controlled to send a specific command to the terminal device to control the preset media application of the terminal device accordingly. By setting a timer in the headphone sensor and executing a countdown, the headphone sends a specific command to the terminal device when the set duration is reached. This triggers protocol layer instructions based on the headphone's interactive behavior, enabling timed control of the terminal's media stream. It also compensates for the lack of timed operation functionality in some terminal media applications. Furthermore, the mechanism of using a preset time window and a gradient increase in timer duration after entering the timed operation function avoids false triggers, ensures the accuracy of timer settings, simplifies the timer setting operation of screenless headphones, reduces interaction costs, and increases the convenience of timer operation.
[0070] To facilitate understanding by those skilled in the art of the terminal device control method based on headphone interaction provided in the embodiments of this application, the following examples are used for illustration:
[0071] Reference Figure 2 This illustration shows a flowchart of a headset-based interactive control terminal device provided in an embodiment of this application, primarily applied to the headset end. Specifically, as shown... Figure 2 As shown, after entering the timed operation function through a specific pressing rhythm, such as three presses, it can be determined whether there has been a press operation within a preset time window (e.g., 500ms) since entering the function or the last press. If a press operation exists within this time window, the timer duration increases incrementally. If the time exceeds the preset time window, the function is exited. Assuming the set timer duration is 10 minutes, pressing the headphone sensor represents adding 10 minutes to the timer duration. After each press, there is a 500ms window allowing continued pressing, with each press adding 10 minutes to the timer duration. Presses after 500ms are irrelevant to the function, preventing accidental or unintentional touches, preventing incorrect modification of the timer duration, ensuring the accuracy of the timer setting, and improving the stability and reliability of the headphone's timer function for controlling remote terminal devices.
[0072] In practical applications, the timer inside the headphones can be activated according to a set timeout period. After the set timeout period is reached, the headphones send specific instructions to the device, such as audio pause or audio playback, video pause or video playback, screen off, and other combined instructions, to realize innovative timed operation functions such as timed shutdown or timed startup.
[0073] In this embodiment, timing operations are implemented on a remote terminal device via an earphone sensor. Specifically, a timing period is set in the earphone sensor and a countdown is executed. When the set duration is reached, the earphone sends a specific command to the terminal device, thereby triggering protocol layer instructions based on the earphone's interactive behavior. This enables timing control of the terminal's media stream and compensates for the lack of timing operation functionality in some terminal media applications. By using a preset time window to effectively determine touch operations, only valid touches within the time window are identified as timing duration setting operations. This avoids invalid operations such as accidental touches and unintentional touches, prevents the timing duration from being incorrectly modified, ensures the accuracy of timing settings, and improves the stability and reliability of the earphone's timing function for controlling the remote terminal device. By adopting a timing duration gradient increase mechanism, users can quickly adjust the timing duration to the target value with simple repeated touches, without complex operations. This simplifies the earphone's timing setting operation, reduces interaction costs, and greatly optimizes the media timing interaction experience on the earphone. Furthermore, by effectively determining the time window, each valid touch corresponds to an increment of the timing duration, which can form a multi-level, continuously stackable timing duration scheme to meet the differentiated timing needs of users in different scenarios (such as naps, sleep, commuting, etc.), rather than a fixed single duration, thereby achieving flexible and gradient-based customization of timing duration.
[0074] It should be noted that, for the sake of simplicity, the method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments of this application are not limited to the described order of actions, because according to the embodiments of this application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of this application.
[0075] Reference Figure 3 This diagram illustrates a structural block diagram of a terminal device control device based on headphone interaction according to an embodiment of this application, which may specifically include the following modules:
[0076] The timed operation function entry module 301 is used to respond to a preset first touch command on the headphone sensor of the headphone and trigger the headphone to enter the timed operation function; the timed operation function is used to instruct the headphone sensor to perform timed operation on the preset media application of the terminal device.
[0077] The touch command detection module 302 is used to determine whether a preset second touch command to the headphone sensor is detected within a preset time window after entering the timed operation function; the preset time window is the time difference between the current time and the time of entering the timed operation function, or the time difference between the current time and the time of the previous detection of the preset second touch command;
[0078] The timing duration setting module 303 is used to gradually increase the currently set timing duration based on the number of touches of the preset second touch instruction when a preset second touch instruction is detected within a preset time window, so as to obtain the final set timing duration.
[0079] The timing operation module 304 is used to control the headphones to send a specific instruction to the terminal device after the final set timing time is reached; the specific instruction is used to control the preset media application accordingly.
[0080] In some embodiments of this application, the timing duration setting module 303 may include the following sub-modules:
[0081] The timing duration setting submodule is used to obtain the timing duration set for each touch operation; it adds the current timing duration to the timing duration of the number of touches to obtain the final timing duration.
[0082] In some embodiments of this application, the apparatus provided in this application may further include the following modules:
[0083] The timed operation function exit module is used to exit the timed operation function when no preset second touch command is detected within the time difference between entering the timed operation function and exiting the timed operation function.
[0084] In some embodiments of this application, the timing duration setting module 303 is further configured to determine the currently set timing time as the final set timing time when no preset second touch instruction is detected within the time difference from the previous detection of the preset second touch instruction.
[0085] In some embodiments of this application, the preset first touch command and the preset second touch command are generated based on the user's touch operation on the headphones, and the touch operation includes a pressing operation.
[0086] In some embodiments of this application, specific instructions are pre-set on the device side, including media stream pause instructions, media stream playback instructions, and screen-off instructions.
[0087] In this embodiment, by responding to a preset first touch command to the headphone sensor, the headphone is triggered to enter a timed operation function. The timed operation function can be mainly used to instruct the headphone sensor to perform timed operations on a preset media application of the terminal device. After the headphone enters the timed operation function, it can be determined whether a preset second touch command to the headphone sensor is detected within a preset time window. The preset time window is the time difference between the current time and the time of entering the timed operation, or the time difference between the current time and the time of the previous detection of the preset second touch command. If the preset second touch command is detected within the preset time window, the currently set time can be gradually increased based on the number of touches of the preset second touch command to obtain the final set time. After the final set time is reached, the headphone can be controlled to send a specific command to the terminal device to control the preset media application of the terminal device accordingly. By setting a timer in the headphone sensor and executing a countdown, the headphone sends a specific command to the terminal device when the set duration is reached. This triggers protocol layer instructions based on the headphone's interactive behavior, enabling timed control of the terminal's media stream. It also compensates for the lack of timed operation functionality in some terminal media applications. Furthermore, the mechanism of using a preset time window and a gradient increase in timer duration after entering the timed operation function avoids false triggers, ensures the accuracy of timer settings, simplifies the timer setting operation of screenless headphones, reduces interaction costs, and increases the convenience of timer operation.
[0088] As the device embodiment is basically similar to the method embodiment, the description is relatively simple, and relevant parts can be found in the description of the method embodiment.
[0089] This application also provides a wearable device, see embodiments thereof. Figure 4 The provided electronic device 400 includes a memory 410, a processor 420, and a computer program 411 stored in the memory 410 and capable of running on the processor 420. When the computer program 411 is executed by the processor, it implements the various processes of the above-described embodiment of the terminal device control method based on headphone interaction and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0090] This application also provides a computer-readable storage medium, see embodiments thereof. Figure 5 The computer-readable storage medium 500 provides a computer program 411. When the computer program 411 is executed by the processor, it implements the various processes of the above-described embodiment of the terminal device control method based on headphone interaction and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0091] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.
[0092] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of the embodiments of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or modules is not necessarily limited to those steps or modules explicitly listed, but may include other steps or modules not explicitly listed or inherent to these processes, methods, products, or devices. The division of modules in the embodiments of this application is merely a logical division; in actual applications, there may be other division methods. For example, multiple modules may be combined into or integrated into another system, or some features may be ignored or not performed. Additionally, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interface, and the indirect coupling or communication connection between modules may be electrical or other similar forms, none of which are limited in the embodiments of this application. Furthermore, the modules or sub-modules described as separate components may or may not be physically separated, may or may not be physical modules, or may be distributed among multiple circuit modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the embodiments of this application.
[0093] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.
[0094] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and modules described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0095] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection between devices or modules through some interfaces, and may be electrical, mechanical, or other forms.
[0096] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules; that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0097] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium.
[0098] In the above embodiments, the implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, in the form of a computer program product.
[0099] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server or data center that integrates one or more available media. The available medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)).
[0100] This application describes embodiments with reference to flowchart illustrations and / or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0101] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The functions specified in one or more boxes; these computer program instructions may also be loaded onto a computer or other programmable data processing terminal equipment to cause a series of operational steps to be performed on the computer or other programmable terminal equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable terminal equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0102] Although preferred embodiments of the present application have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of the present application.
[0103] Finally, it should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and corresponding operation portals are provided for users to choose to authorize or refuse.
[0104] The technical solutions provided in the embodiments of this application have been described in detail above. Specific examples have been used in the embodiments of this application to illustrate the principles and implementation methods of the embodiments of this application. The description of the above embodiments is only for the purpose of helping to understand the methods and core ideas of the embodiments of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the embodiments of this application. Therefore, the content of this specification should not be construed as a limitation on the embodiments of this application.
Claims
1. A terminal device control method based on headphone interaction, characterized in that, The method includes: In response to a preset first touch command to the headphone sensor, the headphone is triggered to enter a timed operation function; the timed operation function is used to instruct the headphone sensor to perform a timed operation on a preset media application of the terminal device; After entering the timed operation function, it is determined whether a preset second touch command to the headphone sensor is detected within a preset time window; the preset time window is the time difference between the current time and entering the timed operation function, or the time difference between the current time and the previous time the preset second touch command was detected. If the preset second touch command is detected within the preset time window, the currently set time interval is gradually increased based on the number of touches of the preset second touch command to obtain the final set time interval. After the final set time is reached, the headset is controlled to send a specific instruction to the terminal device; the specific instruction is used to control the preset media application accordingly.
2. The method according to claim 1, characterized in that, The step of gradually increasing the currently set timeout based on the number of touches according to the preset second touch command to obtain the final set timeout includes: Get the timeout duration set for each touch operation; The final set timer is obtained by adding the current set timer duration to the timer duration of the number of touches.
3. The method according to claim 1, characterized in that, The method further includes: If the preset second touch command is not detected within the time difference between entering the timed operation function, the earphone exits the timed operation function.
4. The method according to claim 1 or 3, characterized in that, The method further includes: If the preset second touch command is not detected within the time difference between the previous detection of the preset second touch command and the current time interval, then the current time interval is determined to be the final time interval.
5. The method according to claim 1, characterized in that, The preset first touch command and the preset second touch command are generated based on the user's touch operation on the headphones, and the touch operation includes a pressing operation.
6. The method according to claim 1, characterized in that, The specific instructions are preset on the device side, including media stream pause instructions, media stream playback instructions, and screen-off instructions.
7. A terminal device control device based on headphone interaction, characterized in that, The device includes: The timed operation function entry module is used to respond to a preset first touch command on the headphone sensor of the headphone, triggering the headphone to enter the timed operation function; the timed operation function is used to instruct the headphone sensor to perform timed operation on the preset media application of the terminal device; The touch command detection module is used to determine whether a preset second touch command to the headphone sensor is detected within a preset time window after the timed operation function is entered; the preset time window is the time difference between the current time and the time of entering the timed operation function, or the time difference between the current time and the time of the previous detection of the preset second touch command. The timing duration setting module is used to gradually increase the currently set timing duration based on the number of touches of the preset second touch command when the preset second touch command is detected within the preset time window, so as to obtain the final set timing duration. The timing operation module is used to control the earphone to send a specific instruction to the terminal device after the final set timing time is reached; the specific instruction is used to control the preset media application accordingly.
8. The apparatus according to claim 7, characterized in that, The timing duration setting module includes: The timing duration setting submodule is used to obtain the timing duration set for each touch operation; and to add the current timing duration to the timing duration of the number of touches to obtain the final timing duration.
9. A wearable device, characterized in that, include: A processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program, when executed by the processor, implements the terminal device control method based on headphone interaction as described in any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, which, when executed by a processor, implements the terminal device control method based on headphone interaction as described in any one of claims 1 to 6.