Control method, device, equipment, readable storage medium and program product

By dynamically selecting the transmission control mode and prioritizing the processing of control commands from wired devices, the problems of unstable data transmission and control conflicts under wired and wireless connections are resolved. This improves the automation and flexibility of device connection management, ensuring system stability and user experience.

CN121921949APending Publication Date: 2026-04-24TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
TENCENT TECHNOLOGY (SHENZHEN) CO LTD
Filing Date
2024-10-23
Publication Date
2026-04-24

AI Technical Summary

Technical Problem

In device connection management, existing technologies cannot effectively solve the problems of unstable data transmission and control conflicts under wired and wireless connection methods, resulting in low flexibility and automation of device connection management.

Method used

By determining the usage status of audio devices and wired and wireless connected devices, the transmission control mode is dynamically selected, prioritizing control commands from wired connected devices and blocking commands from wireless connected devices to avoid data and control conflicts.

Benefits of technology

It achieves automation and flexibility in device connection management, avoids data and control conflicts, ensures system stability and user experience, and adapts to various usage scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121921949A_ABST
    Figure CN121921949A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a control method and device, equipment, a readable storage medium and a program product, and the method comprises the steps: when audio equipment and first control equipment are in a wired connection state, and the audio equipment and second control equipment are in a wireless connection state, determining the audio equipment use states of the first control equipment and the second control equipment; determining a target transmission control mode according to the audio equipment use states of the first control equipment and the second control equipment; according to the target transmission control mode, transmission control processing is carried out on control instructions obtained from the first control equipment and the second control equipment; wherein in the transmission control processing process, different transmission control modes correspondingly execute control instructions of the control devices in different connection states. Through the embodiment of the invention, the flexibility and the automation degree of equipment connection management can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, specifically to control methods, control devices, computer equipment, computer-readable storage media, and computer program products. Background Technology

[0002] With the rapid development of information technology, wireless communication technology and wired connection technology have been widely used in our daily lives and work. Wireless communication technology uses mobile hotspots (Wi-Fi), Bluetooth, and other methods to connect devices, offering advantages such as high flexibility and convenient deployment. Wired connection technology uses Universal Serial Bus (USB) interfaces, Ethernet ports, and other methods to connect devices, enabling stable data transmission.

[0003] However, when control devices connect to other devices via both wired and wireless connections, data and control conflicts may arise, leading to unstable or interrupted data transmission. To avoid this, users typically need to manually select and switch connection methods, resulting in low flexibility and automation in device connection management. Therefore, improving the flexibility and automation of device connection management is a pressing issue that needs to be addressed. Summary of the Invention

[0004] This application provides a control method, apparatus, device, readable storage medium, and program product that can improve the flexibility and automation of device connection management.

[0005] On one hand, embodiments of this application provide a control method, the method comprising:

[0006] When the audio device is in a wired connection state with the first control device and in a wireless connection state with the second control device, determine the audio device usage status of the first control device and the second control device.

[0007] The target transmission control mode is determined based on the audio equipment usage status of the first and second control devices.

[0008] According to the target transmission control mode, the control commands obtained from the first control device and the second control device are processed for transmission control; wherein, during the transmission control processing, different transmission control modes correspond to the execution of control commands of control devices in different connection states.

[0009] On the other hand, embodiments of this application provide a control device, which includes:

[0010] The status determination unit is used to determine the audio device usage status of the first control device and the second control device when the audio device is in a wired connection state with the first control device and in a wireless connection state with the second control device.

[0011] The mode determination unit is used to determine the target transmission control mode based on the audio device usage status of the first control device and the second control device.

[0012] The processing unit is used to perform transmission control processing on the control instructions obtained from the first control device and the second control device according to the target transmission control mode; wherein, during the transmission control processing, different transmission control modes correspond to the execution of control instructions of control devices in different connection states.

[0013] In one possible implementation, the audio device usage state includes the microphone state and speaker state of the audio device; the mode determination unit, when determining the target transmission control mode based on the audio device usage states of the first control device and the second control device, is specifically used for:

[0014] Based on the audio device usage status of the first control device and the second control device, determine whether there is a control device with a microphone in use.

[0015] If the microphone of at least one of the first control device and the second control device is in use, then the target transmission control mode is determined based on the microphone status of the first control device and the second control device.

[0016] If the microphones of both the first and second control devices are in an unused state, the target transmission control mode is determined based on the speaker states of the first and second control devices.

[0017] In one possible implementation, when determining the target transmission control mode based on the microphone states of the first and second control devices, the mode determination unit specifically performs the following:

[0018] If both the microphones of the first control device and the second control device are in use, or if the microphone of the first control device is in use and the microphone of the second control device is not in use, then the target transmission control mode is determined to be the first transmission control mode; the first transmission control mode corresponds to the execution of the control command of the first control device.

[0019] If the microphone of the first control device is in an unused state and the microphone of the second control device is in a used state, then the target transmission control mode is determined to be the second transmission control mode; the control command of the second control device is executed accordingly in the second transmission control mode.

[0020] In one possible implementation, the mode determination unit, when determining the target transmission control mode based on the speaker states of the first and second control devices, specifically performs the following:

[0021] If the speakers of both the first control device and the second control device are in use, or if the speaker of the first control device is in use and the speaker of the second control device is not in use, then the target transmission control mode is determined to be the first transmission control mode.

[0022] If the speaker of the first control device is in an unused state and the speaker of the second control device is in a used state, then the target transmission control mode is determined to be the second transmission control mode.

[0023] In one possible implementation, the pattern determination unit is also used for:

[0024] If the speakers of both the first and second control devices are in an unused state, then the target transmission control mode is determined to be the first transmission control mode.

[0025] In one possible implementation, when the processing unit performs transmission control processing on the control commands obtained from the first control device and the second control device according to the target transmission control mode, it specifically performs the following:

[0026] If the target transmission control mode is the first transmission control mode, then the control instructions obtained from the first control device are executed according to the first transmission control mode, and the control instructions obtained from the second control device are masked.

[0027] If the target transmission control mode is the second transmission control mode, then the control instructions obtained from the second control device are executed according to the second transmission control mode, and the control instructions obtained from the first control device are masked.

[0028] In one possible implementation, the processing unit is also used for:

[0029] When the third control device connects to the audio device, the target connection state between the audio device and the third control device is determined, the target control device is determined based on the target connection state, and the connection with the target control device is disconnected; the target connection state is either a wired connection state or a wireless connection state, and the target control device is the control device in the first and second control devices that is in the target connection state with the audio device.

[0030] Determine the audio device usage status of the third control device and the remaining control device; the remaining control device is the control device other than the target control device among the first control device and the second control device.

[0031] The updated target transmission control mode is determined based on the audio equipment usage status of the third control device and the remaining control device.

[0032] According to the updated target transmission control mode, the control commands obtained from the third control device and the stored control device are processed for transmission control.

[0033] Accordingly, embodiments of this application provide a computer device, which includes:

[0034] A processor is a tool for implementing computer programs.

[0035] A computer-readable storage medium storing a computer program adapted to be loaded by a processor and executed by the control method described above.

[0036] Accordingly, embodiments of this application provide a computer-readable storage medium storing a computer program, which, when read and executed by the processor of a computer device, causes the computer device to perform the aforementioned control method.

[0037] Accordingly, this application provides a computer program product comprising a computer program stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium and executes the computer program, causing the computer device to perform the aforementioned control method.

[0038] In this embodiment, when the audio device is wired to the first control device and wirelessly connected to the second control device, the usage status of the audio devices in both devices is determined. Based on these usage statuses, a target transmission control mode for the audio device in the current usage scenario is determined. Control commands obtained from the first and second control devices are then processed according to this target transmission control mode. During this transmission control processing, control commands from devices in different connection states are selectively executed based on the target transmission control mode. This process effectively avoids data and control conflicts, ensuring system stability. This method eliminates the need for manual switching of connection methods by the user; instead, it automates transmission control processing by determining the transmission control mode, improving the flexibility and automation of device connection management and adapting to various usage scenarios. Attached Figure Description

[0039] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0040] Figure 1 This is a schematic diagram of the architecture of a control system provided in an embodiment of this application;

[0041] Figure 2 This is a flowchart illustrating a control method provided in an embodiment of this application;

[0042] Figure 3 This is a flowchart illustrating another control method provided in an embodiment of this application;

[0043] Figure 4A This is a schematic diagram of an inter-device connection provided in an embodiment of this application;

[0044] Figure 4B This is a schematic diagram of a transmission control mode selection strategy provided in an embodiment of this application;

[0045] Figure 4C This is a schematic diagram of a first transmission control mode with only a wire connection provided in an embodiment of this application;

[0046] Figure 4D This is a schematic diagram of a second transmission control mode for wireless connection only, provided in an embodiment of this application;

[0047] Figure 4E This is a schematic diagram of a first transmission control mode for simultaneous wired and wireless connections provided in an embodiment of this application;

[0048] Figure 4F This is a schematic diagram of a second transmission control mode for simultaneous wired and wireless connections provided in an embodiment of this application;

[0049] Figure 5 This is a schematic diagram of the structure of a control device provided in an embodiment of this application;

[0050] Figure 6 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation

[0051] 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 of ordinary skill in the art without creative effort are within the scope of protection of this application.

[0052] This application involves data related to the device (including the connection status of the control device, the usage status of the audio device, the microphone status, the speaker status, control commands, etc.). When the above embodiments of this application are applied to specific products or technologies, the collection, use and processing of related data should comply with the requirements of relevant laws and regulations. Before collecting the relevant data of the device, the information processing rules should be informed and the individual consent of the object should be obtained. The relevant data of the device should be processed in strict accordance with the requirements of laws and regulations and the information processing rules, and technical measures should be taken to ensure the security of the relevant data.

[0053] The control system provided in the embodiments of this application is described below with reference to the accompanying drawings. The control system is suitable for implementing the control method provided in the embodiments of this application.

[0054] Please see Figure 1 This figure is a schematic diagram of the architecture of a control system provided in an embodiment of this application. The control system may specifically include an audio device 101 and a control device 102. The audio device 101 and the control device 102 can be connected via a network, such as a local area network (LAN), a wide area network (WAN), or the mobile internet. Specifically, the network connection can include wired and wireless connections. Wired connections can include Ethernet, USB, etc., while wireless connections can include WiFi, Bluetooth, cellular networks, etc.

[0055] In this embodiment, the audio device 101 can refer to a microphone speaker, which is a device with a built-in microphone and speaker, allowing users to input voice while playing music or other sounds. This type of device is commonly used in KTVs, dance classes, lectures, meetings, and other settings to facilitate sharing audio content with others. The size and power of the microphone speaker can be selected according to the usage scenario and needs, and it is generally divided into two types: portable devices and large devices. Simultaneously, the audio device 101 can be connected to a power source, such as a direct current (DC) power supply.

[0056] Control device 102 can refer to terminal device, which may also be called terminal, user equipment (UE), access terminal, user unit, mobile device, user terminal, wireless communication device, user agent, or user device. Terminal device can be a smart home appliance, a handheld device with wireless communication capabilities (e.g., a smartphone, tablet), a computing device (e.g., a personal computer, PC), an in-vehicle terminal, a smart voice interaction device, a wearable device, or other smart device, but is not limited to these. In this embodiment, control device 102 can refer to a host computer, which is a device that can directly issue control commands, such as a PC or a large conference screen. The number of control devices 102 can be one or more, and control devices 102 can be connected to audio device 101 via wired or wireless connection.

[0057] In one possible implementation, when the audio device 101 is wired to the first control device and wirelessly connected to the second control device, the audio device usage status (which may include microphone status and speaker status) of the first and second control devices is determined. Based on the audio device usage status of the first and second control devices, the audio device 101 determines a target transmission control mode. The audio device 101 then performs transmission control processing on the control commands obtained from the first and second control devices according to the target transmission control mode. During the transmission control processing, different transmission control modes correspond to the execution of control commands from control devices in different connection states. For example, when the target transmission control mode is the first transmission control mode, the control commands from the wired connection device (such as the first control device) are executed; when the target transmission control mode is the second transmission control mode, the control commands from the wireless connection device (such as the second control device) are executed.

[0058] It is understood that the system architecture diagrams described in the embodiments of this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided in the embodiments of this application. For example, the control method provided in the embodiments of this application can be executed not only by the audio device 101, but also by other control devices, servers, or server clusters that are different from the audio device 101 and capable of communicating with the audio device 101. Those skilled in the art will understand that... Figure 1The number of audio devices and control devices shown is merely illustrative. Any number of audio devices and control devices can be configured according to business needs. Furthermore, as system architecture evolves and new business scenarios emerge, the technical solutions provided in this application are also applicable to similar technical problems. In subsequent embodiments, "audio device" will refer to the aforementioned audio device 101, and "control device" will refer to the aforementioned control device 102; further details will not be repeated in subsequent embodiments.

[0059] The control method provided in the embodiments of this application will be described in detail below with reference to the accompanying drawings.

[0060] This application provides a control method that can be executed by an audio device, such as an audio device that can be... Figure 1 The audio device 101 in the control system shown. (As...) Figure 2 As shown, the control method may include, but is not limited to, the following steps S201-S203:

[0061] S201. When the audio device is in a wired connection state with the first control device and in a wireless connection state with the second control device, determine the audio device usage status of the first control device and the second control device.

[0062] In this embodiment, both the first control device and the second control device can be connected to the audio device to send control commands to it. For example, the control commands can be used to adjust the microphone's on / off state, adjust the speaker volume, or control the audio device's power on / off state. In this embodiment, the first and second control devices can refer to a host computer connected to the audio device. The host computer can be a PC, a large conference screen, etc., and the system can be a Windows system or a Linux system.

[0063] In this embodiment, the audio device can be connected to 0 or 1 control device via a wired connection, or via a wireless connection. Alternatively, the audio device can be connected to 1 control device via a wired connection and simultaneously connected to 1 control device via a wireless connection.

[0064] When the audio device is wired to the first control device and wirelessly connected to the second control device, data and control conflicts may occur. These conflicts will be explained below:

[0065] Data conflict refers to the problem where multiple control devices connect to the same audio device simultaneously. These devices may attempt to use the audio components (such as speakers and microphones) of the audio device at the same time, leading to audio data interference and conflicts. For example, when an audio device connects to a first control device and a second control device, if the first control device is running a meeting application using both a microphone and speakers, while the second control device is playing music using its own speakers, the simultaneous playback of audio data from both devices through the speakers will cause interference between the two types of audio data, significantly impacting the user's meeting experience.

[0066] Control conflict issues refer to the situation where multiple control devices are connected to the same audio device simultaneously, and the control commands sent by these devices to the audio device may conflict or be inconsistent. For example, when the audio device is connected to a first control device and a second control device, the first control device might send a command to mute the microphone, while the second control device might send a command to enable the microphone; or, the first control device might send a command to adjust the speaker volume to 50, while the second control device might send a command to adjust the speaker volume to 80. Furthermore, different control devices may be configured with control commands that include multiple actions. For instance, the first control device might be configured to enable the microphone, adjust the speaker volume to 50, and switch to a meeting state, while the second control device might be configured to mute the microphone, adjust the speaker volume to 20, and switch to a non-meeting state. This inconsistency in control commands makes it impossible for the audio device to determine which control command to execute, thus causing the audio device to malfunction.

[0067] Based on this, in the embodiments of this application, when the audio device is in a wired connection state with the first control device and in a wireless connection state with the second control device, the audio device usage state of the first control device and the second control device is determined. Based on the audio device usage state of the first control device and the second control device, the transmission control mode to be used by the audio device is determined. The transmission control mode is used to determine how to process the control commands received from the control device in different usage scenarios, thereby effectively avoiding the problems of data conflict and control conflict.

[0068] In this embodiment, the audio device usage state of the first control device refers to the usage state of the first control device for the audio components (such as speakers and microphones) of the audio device. Therefore, the audio device usage state can include the microphone state and speaker state of the audio device. For example, if the first control device needs to use both a microphone and a speaker, then the microphone state of the audio device is in use, and the speaker state of the audio device is also in use. Similarly, the audio device usage state of the second control device refers to the usage state of the second control device for the audio components (such as speakers and microphones) of the audio device, which will not be elaborated further here.

[0069] In one possible implementation, the audio device usage status can be obtained directly from the control device, for example, the control device (such as a first control device) may have pre-configured the usage status of audio components (such as speakers and microphones). Alternatively, the audio device usage status can be determined by the audio device based on the operation of the control device. For example, if a conference application on the control device is in progress and the microphone and speaker usage functions are enabled, the audio device can determine that the microphone and speaker statuses included in the audio device usage status of the control device are both in use.

[0070] S202. Determine the target transmission control mode based on the audio equipment usage status of the first control device and the second control device.

[0071] In this embodiment, the audio device can determine the required transmission control mode (denoted as the target transmission control mode) based on the audio device usage status of the first and second control devices, thereby deciding how to process control commands received from different control devices (such as the first and second control devices). By determining the target transmission control mode, the transmission control processing of control commands from two control devices in different connection modes can be effectively performed, avoiding data and control conflicts. This dynamic selection method improves the system's flexibility and adaptability, enabling the determination of the optimal transmission control mode based on the actual usage requirements of the first and second control devices for different audio components (such as microphones and speakers) in the audio device. This optimizes the processing efficiency of control commands and improves processing accuracy.

[0072] S203. According to the target transmission control mode, the control commands obtained from the first control device and the second control device are processed for transmission control; wherein, during the transmission control processing, different transmission control modes correspond to the execution of control commands of control devices in different connection states.

[0073] In this embodiment, different transmission control modes correspond to the execution of control instructions from control devices in different connection states. That is, when the transmission control mode is different, the control instructions that the audio device needs to execute during transmission control processing are also different. By processing the control instructions obtained from the first and second control devices according to the target transmission control mode, it can be ensured that the audio device can accurately determine and execute valid control instructions when control devices with multiple connection methods are connected. This achieves precise control of the audio device, effectively avoiding audio device malfunctions caused by data or control conflicts, and also enabling users to obtain a better audio experience.

[0074] In one possible implementation, the control devices in different connection states may include: a control device in a wired connection state (such as the first control device) and a control device in a wireless connection state (such as the second control device). The target transmission control mode can be either the first transmission control mode or the second transmission control mode. Therefore, when the target transmission control mode is the first transmission control mode, the audio device can execute the control commands of the control device in the wired connection state (such as the first control device). That is, the control commands of the control device in the wired connection state need to be executed, while the control commands of the control device in the wireless connection state do not need to be executed. When the target transmission control mode is the second transmission control mode, the audio device can execute the control commands of the control device in the wireless connection state (such as the second control device). That is, the control commands of the control device in the wireless connection state need to be executed, while the control commands of the control device in the wired connection state do not need to be executed.

[0075] The above method effectively avoids data and control conflicts and ensures system stability by determining the target transmission control mode required by the audio device and selectively executing control commands from control devices with different connection states according to the target transmission control mode.

[0076] The above method dynamically selects which control device's control command needs to be processed based on the actual usage scenario. This flexible priority management mechanism ensures that critical tasks (such as meetings) are not interfered with by non-critical tasks (such as music playback), thus meeting critical business needs.

[0077] The above method, by selectively executing control commands, avoids the mixing of audio components, greatly improving the user experience when using audio devices and preventing undesirable sound effects such as noise and echo. Since this method only executes control commands for one device, unnecessary command parsing and conflict handling are avoided, reducing the system's computational burden and improving system response speed.

[0078] The above method eliminates the need for users to manually select connection methods to connect devices or switch between them. Instead, it automates transmission control by determining the transmission control mode, improving the flexibility and automation of device connection management and adapting to various usage scenarios. Whether it's a single device connection or a wired / wireless dual connection, the system can make corresponding command execution decisions based on the determined transmission control mode, enabling audio devices to maintain good working condition even in complex usage environments.

[0079] Based on the above embodiments, the beneficial effects of this application are as follows: When the audio device is wired to the first control device and wirelessly connected to the second control device, the usage status of the audio devices of the first and second control devices is determined; based on the usage status of the audio devices of the first and second control devices, the target transmission control mode of the audio device in the current usage scenario is determined; and according to the target transmission control mode, the control commands obtained from the first and second control devices are processed for transmission control. During the transmission control processing, control commands from control devices in different connection states are selectively executed according to the target transmission control mode, that is, valid control commands are determined and executed, which can effectively avoid data conflicts and control conflicts, and ensure the stability of the system. The above method does not require the user to manually switch the connection mode, but achieves automated transmission control processing by determining the transmission control mode, which improves the flexibility and automation of device connection management and can adapt to various usage scenarios.

[0080] This application provides another control method, which can be executed by an audio device, such as an audio device that can be... Figure 1 The audio device 101 in the control system shown. (As...) Figure 3 As shown, the control method may include, but is not limited to, the following steps S301-S305:

[0081] S301. When the audio device is in a wired connection state with the first control device and in a wireless connection state with the second control device, determine the audio device usage status of the first control device and the second control device.

[0082] In this embodiment, the audio device usage state may include microphone state and speaker state, that is, the usage state of the audio components (such as speakers and microphones) of the audio device controlled by the control device. The specific implementation of step S201 is described in the foregoing embodiments and will not be repeated here.

[0083] S302. Based on the audio device usage status of the first control device and the second control device, determine whether there is a control device with a microphone in use.

[0084] In this embodiment of the application, the audio device determines whether there is a control device whose microphone is in use, that is, it determines whether there is a control device among the first control device and the second control device that needs to use the microphone of the audio device.

[0085] S303. If the microphone of at least one of the first control device and the second control device is in use, then the target transmission control mode is determined based on the microphone status of the first control device and the second control device.

[0086] In this embodiment of the application, when the microphone of at least one control device is in use (that is, at least one control device needs to use the microphone of the audio device), the audio device will determine the target transmission control mode based on the microphone states of the first control device and the second control device.

[0087] In one possible implementation, regarding the determination of the target transmission control mode based on the microphone states of the first and second control devices in step S303 above, one implementation can be as follows: (1)-(2):

[0088] (1) If the microphones of the first control device and the second control device are both in use, or if the microphone of the first control device is in use and the microphone of the second control device is not in use, then the target transmission control mode is determined to be the first transmission control mode; the control command of the first control device is executed accordingly in the first transmission control mode.

[0089] In this embodiment, when the microphone of the first control device (the control device in a wired connection state) is in use (the microphone of the second control device in a wireless connection state can be in use or not), the audio device can determine the target transmission control mode as the first transmission control mode. The first transmission control mode corresponds to executing the control commands of the first control device. In other words, as long as the control device in a wired connection state uses the microphone of the audio device, the audio device will execute the control commands obtained from the control device in the wired connection state. Therefore, the first transmission control mode can also be called the wired mode.

[0090] (2) If the microphone of the first control device is in an unused state and the microphone of the second control device is in a used state, then the target transmission control mode is determined to be the second transmission control mode; the control command of the second control device is executed accordingly in the second transmission control mode.

[0091] In this embodiment, when the microphone of the first control device (the control device in a wired connection state) is in an unused state, and the microphone of the second control device (the control device in a wireless connection state) is in a used state, the audio device can determine that the target transmission control mode is the second transmission control mode. The second transmission control mode corresponds to executing the control commands of the second control device. That is to say, only when the control device in the wireless connection state uses the microphone of the audio device will the audio device execute the control commands obtained from the control device in the wireless connection state. Therefore, the second transmission control mode can also be called the wireless mode.

[0092] Steps (1)-(2) above identify the microphone usage status of different control devices, enabling the audio device to efficiently and accurately select the appropriate transmission control mode. In this embodiment, the microphone usage status of the control device with a wired connection (such as the first control device) is given priority, followed by the microphone usage status of the control device with a wireless connection (such as the second control device). That is, the wired mode (such as the first transmission control mode) has a higher priority than the wireless mode (such as the second transmission control mode). This is because wired connections are more perceptible and require active user intervention. This means that the user expects to use the audio components (such as microphones and speakers) of the audio device to meet the user's current needs and improve the user experience. In contrast, wireless connections (such as Bluetooth and Wi-Fi) are often imperceptible, and the device may automatically connect without the user's active intervention. For example, the user may simply bring their mobile phone close to the audio device, and the mobile phone will automatically establish a wireless connection with the audio device. This automatic connection may not be the connection that the user currently expects. Therefore, the wired mode has a higher priority than the wireless mode.

[0093] S304. If the microphones of both the first control device and the second control device are in an unused state, the target transmission control mode is determined based on the speaker states of the first control device and the second control device.

[0094] In this embodiment of the application, when the microphones of both the first control device and the second control device are in an unused state (that is, no control device needs to use the microphone of the audio device), the audio device will determine the target transmission control mode based on the speaker states of the first control device and the second control device.

[0095] In one possible implementation, regarding the determination of the target transmission control mode based on the speaker states of the first and second control devices in step S304 above, one implementation can be as follows: (1)-(3):

[0096] (1) If the speakers of the first control device and the second control device are both in use, or if the speakers of the first control device are in use and the speakers of the second control device are not in use, then the target transmission control mode is determined to be the first transmission control mode.

[0097] In this embodiment, when the speaker of the first control device (the control device in a wired connection state) is in use (the speaker of the second control device in a wireless connection state can be in use or not), the audio device can determine the target transmission control mode as the first transmission control mode, and the first transmission control mode corresponds to executing the control command of the first control device. That is, as long as the control device in the wired connection state uses the speaker of the audio device, the audio device will execute the control command obtained from the control device in the wired connection state.

[0098] (2) If the speaker of the first control device is in an unused state and the speaker of the second control device is in a used state, then the target transmission control mode is determined to be the second transmission control mode.

[0099] In this embodiment, when the speaker of the first control device (the control device in a wired connection state) is in an unused state, and the speaker of the second control device (the control device in a wireless connection state) is in a used state, then the audio device can determine that the target transmission control mode is the second transmission control mode, and the second transmission control mode corresponds to executing the control command of the second control device. That is, only when the control device in a wireless connection state uses the speaker of the audio device will the audio device execute the control command obtained from the control device in the wireless connection state.

[0100] (3) If the speakers of the first control device and the second control device are both in an unused state, then the target transmission control mode is determined to be the first transmission control mode.

[0101] In this embodiment, when both the speakers of the first and second control devices are in an unused state—that is, when the control device in wireless connection mode and the control device in wired connection mode are neither using the microphone nor the speaker of the audio device—then the target transmission control mode is determined to be the first transmission control mode. This is because the first transmission control mode has a higher priority than the second transmission control mode.

[0102] The above steps (1)-(3) identify the speaker usage status of different control devices, enabling the audio device to efficiently and accurately select the appropriate transmission control mode. In this embodiment, the microphone usage status of the control device with a wired connection (such as the first control device) is given priority, followed by the microphone usage status of the control device with a wireless connection (such as the second control device), so that the wired mode (such as the first transmission control mode) has a higher priority than the wireless mode (such as the second transmission control mode).

[0103] In steps S302-S304 above, the audio device prioritizes determining the target transmission control mode based on the microphone status, and then determines the target transmission control mode based on the speaker status. This is because in many application scenarios, such as video conferencing and voice calls, the audio device's microphone is required (for two-way audio data interaction), necessitating a continuous and stable audio input. These scenarios have a higher task priority compared to scenarios using only the speaker (such as music playback). Therefore, prioritizing the microphone status ensures that critical audio input can be effectively acquired and transmitted, guaranteeing the quality and smoothness of two-way network communication. This prioritization strategy ensures the stability of two-way audio data interaction, improves the smoothness of the user experience, and makes the audio device more intelligent in use.

[0104] S305. According to the target transmission control mode, the control commands obtained from the first control device and the second control device are processed for transmission control.

[0105] In this embodiment of the application, during the transmission control processing, different transmission control modes correspond to the execution of control instructions from control devices in different connection states.

[0106] In one possible implementation, for step S305 above, one implementation can be as follows: (1)-(2):

[0107] (1) If the target transmission control mode is the first transmission control mode, then the control instructions obtained from the first control device are executed according to the first transmission control mode, and the control instructions obtained from the second control device are masked.

[0108] (2) If the target transmission control mode is the second transmission control mode, then the control instructions obtained from the second control device are executed according to the second transmission control mode, and the control instructions obtained from the first control device are masked.

[0109] In steps (1)-(2) above, the audio device only responds to the control commands obtained from the first control device when the target transmission control mode is the first transmission control mode, and only responds to the control commands obtained from the second control device when the target transmission control mode is the second transmission control mode. This can effectively avoid data conflicts and control conflicts and ensure the stability of the system.

[0110] In one possible implementation, the audio device may also perform the following steps (1)-(4):

[0111] (1) When the third control device is connected to the audio device, the target connection state between the audio device and the third control device is determined, the target control device is determined according to the target connection state, and the connection with the target control device is disconnected; the target connection state is either a wired connection state or a wireless connection state, and the target control device is the control device in the first control device and the second control device that is in the target connection state with the audio device.

[0112] In this embodiment, the third control device refers to a newly added control device that needs to be connected to the audio device when the audio device is already connected to the first and second control devices. Since the audio device can connect to 0 or 1 control devices via wired connection or wireless connection, when the third control device is connected to the audio device, the audio device needs to disconnect from the control device that is connected to the third control device using the same connection method.

[0113] Based on this, when a third control device connects to an audio device, the audio device determines the target connection state with the third control device (e.g., a wired connection). The audio device then determines the target control device (e.g., a control device already wired to the audio device) based on the target connection state and disconnects from the target control device. This method ensures that the audio device will not connect to two or more control devices with the same connection method, thus avoiding connection conflicts, audio stuttering, and untimely device response. Users expect to be able to use a new audio device immediately after connection without manually disconnecting the old device, thereby improving the convenience and smoothness of connection operations and ensuring a good user experience.

[0114] (2) Determine the audio equipment usage status of the third control device and the remaining control device; the remaining control device is the control device other than the target control device among the first control device and the second control device.

[0115] (3) Determine the updated target transmission control mode based on the audio equipment usage status of the third control device and the remaining control device.

[0116] (4) According to the updated target transmission control mode, the control commands obtained from the third control device and the stored control device are processed for transmission control.

[0117] In steps (2)-(4) above, since the control device connected to the audio device sends a change, it is necessary to re-determine the audio device usage status of the third control device and the remaining control device already connected to the audio device, and based on this, determine the updated target transmission control mode. Then, according to the updated target transmission control mode, the control commands obtained from the third control device and the remaining control device are processed for transmission control. For specific implementation methods, please refer to the relevant descriptions in the aforementioned method embodiments, which will not be repeated here.

[0118] The above method enables audio devices to quickly adapt to new connection situations when the control devices they are connected to change. It allows audio devices to flexibly respond to different connections and usage scenarios of control devices without the need for complex manual switching operations when switching or adding control devices, thus maintaining a smooth operating experience.

[0119] In one possible implementation, the audio device may also perform the following steps (1)-(2):

[0120] (1) When the control device to be processed is disconnected from the audio device, determine the connection status between the audio device and the remaining control devices; the control device to be processed is either the first control device or the second control device, and the remaining control devices are the control devices other than the control device to be processed among the first control device and the second control device.

[0121] (2) According to the transmission control mode corresponding to the connection status between the audio device and the remaining control device, the control commands obtained from the remaining control device are processed for transmission control.

[0122] In the above steps (1)-(2), the control device to be processed is any one of the control devices that the audio device has been connected to. When the control device to be processed disconnects from the audio device, the control devices connected to the audio device have only one connection state. Therefore, the audio device can adjust the transmission control mode to the transmission control mode corresponding to the remaining control devices.

[0123] For example, when the remaining control device and the audio device are in a wired connection state, the transmission control mode is adjusted to the first transmission control mode (such as wired mode); when the remaining control device and the audio device are in a wireless connection state, the transmission control mode is adjusted to the second transmission control mode (such as wireless mode).

[0124] When the controlled device being processed is disconnected, the audio device can automatically adjust its transmission control mode to match the remaining controlled devices. This seamless switching ensures the continuity of transmission control and avoids transmission interruptions or errors caused by device disconnection. Furthermore, the audio device can automatically identify the remaining controlled devices and make corresponding adjustments, simplifying the user's operation process and improving user convenience.

[0125] The control method provided in the embodiments of this application will be illustrated below through examples:

[0126] The control method provided in this application is applicable to various types of audio devices (e.g., various microphone and speaker devices). It mainly describes the transmission control mode selection strategy for audio devices under different connection states. Specifically, it determines the transmission control mode of the audio device by judging the usage status of the microphone and speaker, thereby resolving the data flow and control flow conflict problem in multi-connection scenarios. This application does not impose additional constraints or regulations on the graphical user interface (GUI) layout or the interaction methods between devices.

[0127] like Figure 4A As shown, Figure 4A This is a schematic diagram illustrating an inter-device connection provided in an embodiment of this application. The control device can be connected to the audio device through various connection methods. For example, the audio device can be connected to a first control device (such as a host computer A) via a wired connection. The audio device also provides wired data control functionality; for example, it provides switches for the microphone and speaker respectively for controlling the data transmission of microphone and speaker data in the wired connection. For example, the audio device can be connected to a second control device (such as a host computer B) via a wireless connection. The audio device also provides wireless data control functionality; for example, it provides switches for the microphone and speaker respectively for controlling the data transmission of microphone and speaker data in the wireless connection.

[0128] The data streams in this application embodiment mainly include the following two types: uplink acquisition data streams (e.g., audio signals acquired by a microphone and uploaded to a control device) and downlink playback data streams (e.g., audio signals output by the control device to a speaker on an audio device for playback). The control streams in this application embodiment mainly include the following types: volume, mute, call, hang up, answer, and other control commands. In the first transmission control mode (e.g., wired mode), the data stream and control stream are transmitted via a wired connection; in the second transmission control mode (e.g., wireless mode), the data stream and control stream are transmitted via a wireless connection.

[0129] The transmission control mode selection strategy provided in the embodiments of this application will be illustrated below with examples: Figure 4B As shown, Figure 4B This is a schematic diagram of a transmission control mode selection strategy provided in an embodiment of this application. The main process is as follows:

[0130] 1) Determine the connection status between the audio device and the control device.

[0131] The connection status between audio devices and control devices includes three types: wired connection only, wireless connection only, and simultaneous wired and wireless connection.

[0132] 2) When the audio device is only connected to the control device via a wired connection, the target transmission control mode is determined to be the first transmission control mode (such as wired mode).

[0133] For example, such as Figure 4C As shown, Figure 4C This is a schematic diagram of a first transmission control mode with only a wired connection provided in an embodiment of this application. In this mode, the audio device is only connected to the first control device via a wired connection, and the switch corresponding to the wired data control function is in the on state, while the switch corresponding to the wireless data control function is in the off state.

[0134] 3) When the audio device is only wirelessly connected to the control device, the target transmission control mode is determined to be the second transmission control mode (such as wireless mode).

[0135] For example, such as Figure 4D As shown, Figure 4D This is a schematic diagram of a second transmission control mode with only wireless connection provided in an embodiment of this application. In this mode, the audio device is only wirelessly connected to the second control device, and the switch corresponding to the wired data control function is in the off state, while the switch corresponding to the wireless data control function is in the on state.

[0136] 4) When the audio device is wired to the first control device and wirelessly connected to the second control device, determine whether to use the microphone.

[0137] ① If a microphone is used, the target transmission control mode shall be determined according to the microphone usage.

[0138] If both the microphones of the first control device and the second control device are in use, or if the microphone of the first control device is in use and the microphone of the second control device is not in use, then the target transmission control mode is determined to be the first transmission control mode. For example, such as... Figure 4E As shown, Figure 4EThis is a schematic diagram of a first transmission control mode when wired and wireless connections are simultaneously provided in an embodiment of this application. In this mode, the audio device is wired to the first control device and wirelessly connected to the second control device. The switch corresponding to the wired data control function is in the on state, and the switch corresponding to the wireless data control function is in the off state.

[0139] If the microphone of the first control device is in an inactive state and the microphone of the second control device is in an active state, then the target transmission control mode is determined to be the second transmission control mode. For example, such as... Figure 4F As shown, Figure 4F This is a schematic diagram of a second transmission control mode when wired and wireless connections are simultaneously provided in an embodiment of this application. In this mode, the audio device is wired to the first control device and wirelessly connected to the second control device. The switch corresponding to the wired data control function is off, and the switch corresponding to the wireless data control function is on.

[0140] ② If the microphone is not in use, determine the target transmission control mode based on the speaker usage.

[0141] If both the speakers of the first and second control devices are in use, or if the speaker of the first control device is in use and the speaker of the second control device is not in use, then the target transmission control mode is determined to be the first transmission control mode. A schematic diagram of the first transmission control mode when wired and wireless connections are simultaneous is shown below. Figure 4E As shown, it will not be elaborated further here.

[0142] If the speaker of the first control device is in an unused state and the speaker of the second control device is in a used state, then the target transmission control mode is determined to be the second transmission control mode. A schematic diagram of the second transmission control mode when wired and wireless connections are simultaneous is shown below. Figure 4F As shown, it will not be elaborated further here.

[0143] ③ When neither the microphone nor the speaker is in use, determine the target transmission control mode as the first transmission control mode (such as wired mode).

[0144] The schematic diagram of the first transmission control mode when wired and wireless connections are simultaneous is shown below. Figure 4E As shown, it will not be elaborated further here.

[0145] The specific implementation methods of steps 1) to 4) above can be found in the relevant steps of the aforementioned method embodiments, and will not be repeated here.

[0146] The above method determines the transmission control mode required by the audio device by jointly judging the usage status of the microphone and speaker, thus solving the problems of data and control conflicts in multi-connection scenarios. This solution can automatically select the transmission control mode according to the user's usage scenario without requiring the user to manually select the connection method to realize the device connection and the switching of the connection method. It has high convenience and high applicability, and improves the flexibility and automation of device connection management.

[0147] The methods of the embodiments of this application have been described in detail above. In order to facilitate better implementation of the methods of the embodiments of this application, the apparatus of the embodiments of this application is provided below.

[0148] Please see Figure 5 This figure is a schematic diagram of a control device provided in an embodiment of this application. The control device can be installed in the audio device provided in this embodiment, and the audio device can be as described above. Figure 1 Audio device 101 in the control system shown. Figure 5 The control device shown can be a computer program running on the audio device, which can be used to execute... Figure 2 or Figure 3 Some or all of the steps in the method embodiments shown. Please refer to [link / reference]. Figure 5 The control device may include the following units:

[0149] The status determination unit 501 is used to determine the audio device usage status of the first control device and the second control device when the audio device is in a wired connection state with the first control device and in a wireless connection state with the second control device.

[0150] The mode determination unit 502 is used to determine the target transmission control mode based on the audio device usage status of the first control device and the second control device.

[0151] The processing unit 503 is used to perform transmission control processing on the control instructions obtained from the first control device and the second control device according to the target transmission control mode; wherein, during the transmission control processing, different transmission control modes correspond to the execution of control instructions of control devices in different connection states.

[0152] In one possible implementation, the audio device usage state includes the microphone state and speaker state of the audio device; the mode determination unit 502, when determining the target transmission control mode based on the audio device usage states of the first control device and the second control device, is specifically used for:

[0153] Based on the audio device usage status of the first control device and the second control device, determine whether there is a control device with a microphone in use.

[0154] If the microphone of at least one of the first control device and the second control device is in use, then the target transmission control mode is determined based on the microphone status of the first control device and the second control device.

[0155] If the microphones of both the first and second control devices are in an unused state, the target transmission control mode is determined based on the speaker states of the first and second control devices.

[0156] In one possible implementation, the mode determination unit 502, when determining the target transmission control mode based on the microphone states of the first control device and the second control device, specifically performs the following:

[0157] If both the microphones of the first control device and the second control device are in use, or if the microphone of the first control device is in use and the microphone of the second control device is not in use, then the target transmission control mode is determined to be the first transmission control mode; the first transmission control mode corresponds to the execution of the control command of the first control device.

[0158] If the microphone of the first control device is in an unused state and the microphone of the second control device is in a used state, then the target transmission control mode is determined to be the second transmission control mode; the control command of the second control device is executed accordingly in the second transmission control mode.

[0159] In one possible implementation, the mode determination unit 502, when determining the target transmission control mode based on the speaker states of the first control device and the second control device, specifically performs the following:

[0160] If the speakers of both the first control device and the second control device are in use, or if the speaker of the first control device is in use and the speaker of the second control device is not in use, then the target transmission control mode is determined to be the first transmission control mode.

[0161] If the speaker of the first control device is in an unused state and the speaker of the second control device is in a used state, then the target transmission control mode is determined to be the second transmission control mode.

[0162] In one possible implementation, the pattern determination unit 502 is further used for:

[0163] If the speakers of both the first and second control devices are in an unused state, then the target transmission control mode is determined to be the first transmission control mode.

[0164] In one possible implementation, when processing unit 503 performs transmission control processing on control commands obtained from the first control device and the second control device according to the target transmission control mode, it specifically performs the following:

[0165] If the target transmission control mode is the first transmission control mode, then the control instructions obtained from the first control device are executed according to the first transmission control mode, and the control instructions obtained from the second control device are masked.

[0166] If the target transmission control mode is the second transmission control mode, then the control instructions obtained from the second control device are executed according to the second transmission control mode, and the control instructions obtained from the first control device are masked.

[0167] In one possible implementation, the processing unit 503 is further configured to:

[0168] When the third control device connects to the audio device, the target connection state between the audio device and the third control device is determined, the target control device is determined based on the target connection state, and the connection with the target control device is disconnected; the target connection state is either a wired connection state or a wireless connection state, and the target control device is the control device in the first and second control devices that is in the target connection state with the audio device.

[0169] Determine the audio device usage status of the third control device and the remaining control device; the remaining control device is the control device other than the target control device among the first control device and the second control device.

[0170] The updated target transmission control mode is determined based on the audio equipment usage status of the third control device and the remaining control device.

[0171] According to the updated target transmission control mode, the control commands obtained from the third control device and the stored control device are processed for transmission control.

[0172] It should be noted that the functions of each unit of the control device in the embodiments of this application can be specifically implemented according to the methods in the above method embodiments. The specific implementation process can be referred to the relevant descriptions in the various method embodiments of this application, which will not be repeated here.

[0173] According to another embodiment of this application, Figure 5The various units in the control device shown can be individually or entirely combined into one or more other units, or some of the units can be further divided into multiple functionally smaller units. This achieves the same operation without affecting the technical effects of the embodiments of this application. The above-mentioned units are based on logical function division. In practical applications, the function of one unit can also be implemented by multiple units, or the function of multiple units can be implemented by one unit. In other embodiments of this application, the control device may also include other units. In practical applications, these functions can also be implemented with the assistance of other units, and can be implemented collaboratively by multiple units.

[0174] According to another embodiment of this application, the following can be achieved by running on a general-purpose computing device, such as a computer, which includes processing elements and storage elements such as a central processing unit (CPU), random access memory (RAM), and read-only memory (ROM), a device capable of performing operations such as... Figure 2 or Figure 3 Computer programs for the steps involved in some or all of the methods shown, to construct, for example... Figure 5 The control device shown herein, and the control method for implementing the embodiments of this application, are described. The computer program may be recorded on, for example, a computer-readable storage medium, loaded onto the aforementioned computing device via the computer-readable storage medium, and executed therein.

[0175] Based on the above methods and apparatus embodiments, this application provides a computer device. Please refer to... Figure 6 This figure is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Figure 6 The computer device shown includes at least a processor 601, an input interface 602, an output interface 603, and a computer-readable storage medium 604. The processor 601, input interface 602, output interface 603, and computer-readable storage medium 604 can be connected via a bus or other means.

[0176] Computer-readable storage medium 604 can be stored in the memory of a computer device. Computer-readable storage medium 604 is used to store computer programs, including program instructions. Processor 601 is used to execute the computer program stored in computer-readable storage medium 604. Processor 601 (or CPU (Central Processing Unit)) is the computing and control core of the computer device; it is suitable for implementing computer programs, specifically for loading and executing computer programs to achieve the above-mentioned functions. Figure 2 or Figure 3 The method flow is shown.

[0177] This application also provides a computer-readable storage medium (Memory), which is a memory device in a computer device used to store programs and data. It is understood that the computer-readable storage medium here can include both built-in storage media in the computer device and extended storage media supported by the computer device. The computer-readable storage medium provides storage space for storing the operating system of the computer device. Furthermore, the storage space also stores computer programs suitable for loading and execution by a processor. It should be noted that the computer-readable storage medium here can be high-speed RAM or non-volatile memory, such as at least one disk storage device; optionally, it can also be at least one computer-readable storage medium located remotely from the aforementioned processor.

[0178] The computer equipment can be the above. Figure 1 The audio device 101 in the control system shown. In a specific implementation, the processor 601 can load and execute the computer program stored in the computer-readable storage medium 604 to implement the corresponding steps of the control methods in the various method embodiments of this application. Specifically, the computer program in the computer-readable storage medium 604 is loaded by the processor 601 and executed with the following steps:

[0179] When the audio device is in a wired connection state with the first control device and in a wireless connection state with the second control device, determine the audio device usage status of the first control device and the second control device.

[0180] The target transmission control mode is determined based on the audio equipment usage status of the first and second control devices.

[0181] According to the target transmission control mode, the control commands obtained from the first control device and the second control device are processed for transmission control; wherein, during the transmission control processing, different transmission control modes correspond to the execution of control commands of control devices in different connection states.

[0182] In one possible implementation, the audio device usage state includes the microphone state and speaker state of the audio device; when determining the target transmission control mode based on the audio device usage states of the first control device and the second control device, the processor 601 specifically performs the following:

[0183] Based on the audio device usage status of the first control device and the second control device, determine whether there is a control device with a microphone in use.

[0184] If the microphone of at least one of the first control device and the second control device is in use, then the target transmission control mode is determined based on the microphone status of the first control device and the second control device.

[0185] If the microphones of both the first and second control devices are in an unused state, the target transmission control mode is determined based on the speaker states of the first and second control devices.

[0186] In one possible implementation, when the processor 601 determines the target transmission control mode based on the microphone states of the first and second control devices, it specifically performs the following tasks:

[0187] If both the microphones of the first control device and the second control device are in use, or if the microphone of the first control device is in use and the microphone of the second control device is not in use, then the target transmission control mode is determined to be the first transmission control mode; the first transmission control mode corresponds to the execution of the control command of the first control device.

[0188] If the microphone of the first control device is in an unused state and the microphone of the second control device is in a used state, then the target transmission control mode is determined to be the second transmission control mode; the control command of the second control device is executed accordingly in the second transmission control mode.

[0189] In one possible implementation, when determining the target transmission control mode based on the speaker states of the first and second control devices, the processor 601 specifically performs the following:

[0190] If the speakers of both the first control device and the second control device are in use, or if the speaker of the first control device is in use and the speaker of the second control device is not in use, then the target transmission control mode is determined to be the first transmission control mode.

[0191] If the speaker of the first control device is in an unused state and the speaker of the second control device is in a used state, then the target transmission control mode is determined to be the second transmission control mode.

[0192] In one possible implementation, processor 601 is also used for:

[0193] If the speakers of both the first and second control devices are in an unused state, then the target transmission control mode is determined to be the first transmission control mode.

[0194] In one possible implementation, when processor 601 performs transmission control processing on control instructions obtained from the first control device and the second control device according to the target transmission control mode, it specifically performs the following:

[0195] If the target transmission control mode is the first transmission control mode, then the control instructions obtained from the first control device are executed according to the first transmission control mode, and the control instructions obtained from the second control device are masked.

[0196] If the target transmission control mode is the second transmission control mode, then the control instructions obtained from the second control device are executed according to the second transmission control mode, and the control instructions obtained from the first control device are masked.

[0197] In one possible implementation, processor 601 is also used for:

[0198] When the third control device connects to the audio device, the target connection state between the audio device and the third control device is determined, the target control device is determined based on the target connection state, and the connection with the target control device is disconnected; the target connection state is either a wired connection state or a wireless connection state, and the target control device is the control device in the first and second control devices that is in the target connection state with the audio device.

[0199] Determine the audio device usage status of the third control device and the remaining control device; the remaining control device is the control device other than the target control device among the first control device and the second control device.

[0200] The updated target transmission control mode is determined based on the audio equipment usage status of the third control device and the remaining control device.

[0201] According to the updated target transmission control mode, the control commands obtained from the third control device and the stored control device are processed for transmission control.

[0202] In specific implementations, the processor 601, input interface 602, output interface 603, and computer-readable storage medium 604 described in the embodiments of this application can execute the embodiments of this application. Figure 2 or Figure 3 The implementation methods described in the relevant embodiments of the provided method can also be used to execute the embodiments of this application. Figure 6 The implementation methods described in the relevant embodiments of the provided device will not be repeated here.

[0203] In the several embodiments provided in this application, it should be understood that the disclosed methods, apparatus, systems, and computer devices can be implemented in other ways. The embodiments described above are merely illustrative, and the division of units is only a logical functional division. In actual implementation, there may be other division methods. For example, multiple units 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 through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.

[0204] This application also provides a computer program product, which includes program instructions stored in a computer-readable storage medium. A processor of a computer device reads the program instructions from the computer-readable storage medium and executes the program instructions, causing the computer device to perform the aforementioned control method, which will not be described in detail here.

[0205] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed in this application can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0206] In the above embodiments, 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, as a computer program product. A computer program product includes one or more program instructions. When the program instructions are loaded and executed on a computer, all or part of the flow or function according to the embodiments of this application is generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The program instructions can be stored in or transmitted through a computer-readable storage medium. The program instructions can 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.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state disk (SSD)).

[0207] It should be noted that, in the embodiments of this application, the terms "module" or "unit" refer to a computer program or part of a computer program with a predetermined function, which works together with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.

[0208] It should be noted that the terms "first," "second," etc., used in the embodiments of this application are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, a technical feature specified with "first" or "second" may explicitly or implicitly include at least one of those features.

[0209] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A control method, characterized in that, The method includes: When the audio device is in a wired connection state with the first control device and in a wireless connection state with the second control device, the audio device usage status of the first control device and the second control device is determined. The target transmission control mode is determined based on the audio device usage status of the first control device and the second control device; According to the target transmission control mode, the control commands obtained from the first control device and the second control device are processed for transmission control; wherein, during the transmission control processing, different transmission control modes correspond to the execution of control commands from control devices in different connection states.

2. The method as described in claim 1, characterized in that, The audio device usage status includes the microphone status and speaker status of the audio device; determining the target transmission control mode based on the audio device usage status of the first control device and the second control device includes: Based on the audio device usage status of the first control device and the second control device, determine whether there is a control device with a microphone in use. If the microphone of at least one of the first control device and the second control device is in use, then the target transmission control mode is determined based on the microphone status of the first control device and the second control device. If the microphones of both the first control device and the second control device are in an unused state, the target transmission control mode is determined based on the speaker states of the first control device and the second control device.

3. The method as described in claim 2, characterized in that, Determining the target transmission control mode based on the microphone states of the first control device and the second control device includes: If both the microphones of the first control device and the second control device are in use, or if the microphone of the first control device is in use and the microphone of the second control device is not in use, then the target transmission control mode is determined to be the first transmission control mode; the first transmission control mode corresponds to the execution of the control command of the first control device. If the microphone of the first control device is in an unused state and the microphone of the second control device is in a used state, then the target transmission control mode is determined to be the second transmission control mode; the control command of the second control device is executed accordingly in the second transmission control mode.

4. The method as described in claim 2, characterized in that, Determining the target transmission control mode based on the speaker status of the first control device and the second control device includes: If the speakers of both the first control device and the second control device are in use, or if the speaker of the first control device is in use and the speaker of the second control device is not in use, then the target transmission control mode is determined to be the first transmission control mode. If the speaker of the first control device is in an unused state and the speaker of the second control device is in a used state, then the target transmission control mode is determined to be the second transmission control mode.

5. The method as described in claim 4, characterized in that, The method further includes: If the speakers of both the first control device and the second control device are in an unused state, then the target transmission control mode is determined to be the first transmission control mode.

6. The method according to any one of claims 1-5, characterized in that, The step of performing transmission control processing on the control commands obtained from the first control device and the second control device according to the target transmission control mode includes: If the target transmission control mode is the first transmission control mode, then the control instructions obtained from the first control device are executed according to the first transmission control mode, and the control instructions obtained from the second control device are masked. If the target transmission control mode is the second transmission control mode, then the control instructions obtained from the second control device are executed according to the second transmission control mode, and the control instructions obtained from the first control device are masked.

7. The method according to any one of claims 1-5, characterized in that, The method further includes: When the third control device connects to the audio device, the target connection state between the audio device and the third control device is determined, the target control device is determined according to the target connection state, and the connection with the target control device is disconnected; the target connection state is the wired connection state or the wireless connection state, and the target control device is the control device that is in the target connection state with the audio device between the first control device and the second control device; Determine the audio device usage status of the third control device and the remaining control device; the remaining control device is the control device other than the target control device among the first control device and the second control device. The updated target transmission control mode is determined based on the audio device usage status of the third control device and the remaining control device. According to the updated target transmission control mode, the control commands obtained from the third control device and the storage control device are processed for transmission control.

8. A control device, characterized in that, The device includes: The status determination unit is used to determine the audio device usage status of the first control device and the second control device when the audio device is in a wired connection state with the first control device and in a wireless connection state with the second control device. The mode determination unit is used to determine the target transmission control mode based on the audio device usage status of the first control device and the second control device; The processing unit is configured to perform transmission control processing on the control instructions obtained from the first control device and the second control device according to the target transmission control mode; wherein, during the transmission control processing, different transmission control modes correspond to the execution of control instructions from control devices in different connection states.

9. A computer device, characterized in that, The computer device includes: A processor is a tool for implementing computer programs. A computer-readable storage medium storing a computer program adapted to be loaded by the processor and executed 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 adapted to be loaded by a processor and executed as described in any one of claims 1-7.

11. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the control method as described in any one of claims 1-7.