Equipment control method, device and system
By sending messages between electronic devices to obtain audio device information and determining the operation object in the target interface, the problem of cumbersome switching of audio output device in the prior art is solved, and efficient and user-friendly switching of audio output device is achieved.
Patent Information
- Application Number
- CN202510127912.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-27
- Publication Date
- 2025-05-09
AI Technical Summary
When switching audio output devices, existing electronic devices need to manually operate on both devices, which is cumbersome and reduces the user experience.
By sending a message to the second electronic device connected to the first electronic device, the audio device information that the second electronic device can output audio is obtained, and the operation object is determined in the target interface of the first electronic device, and the audio output device is automatically switched in response to a user's instruction.
It is realized efficiently switching of the audio output device in the second electronic device in the target interface of the first electronic device, avoiding back and forth operation on both devices, and improving the user experience.
Smart Images

Figure CN119967338A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic equipment control, and in particular to a device control method, apparatus and system. Background Art
[0002] Currently, electronic devices can use their own audio devices or connected external audio devices as audio output devices to perform audio output.
[0003] When this electronic device is connected to another electronic device, if you want to switch the audio output device to the audio device corresponding to the other electronic device, you need to first switch the audio output device on this electronic device to the connected device, and then manually switch to the corresponding audio device on the other electronic device. The operation is cumbersome and reduces the user experience. Summary of the invention
[0004] An embodiment of the present application provides a device control method, including: in response to satisfying a target trigger condition, sending a first message to a second electronic device connected to a first electronic device; obtaining a second message returned by the second electronic device based on the first message, the second message corresponding to at least one second audio device, and the second electronic device can output audio through the second audio device; according to the second message, determining an operation object in a target interface of the first electronic device, the operation object at least corresponding to the second audio device; and determining an audio output device in response to a selection instruction for the operation object.
[0005] In some embodiments, the operation object also corresponds to at least one first audio device, and the first electronic device can output audio through the first audio device, and also includes: when the audio output device belongs to the second audio device, sending a third message to the second electronic device, and the third message includes the device identification of the audio output device.
[0006] In some embodiments, after sending the third message to the second electronic device, if a fourth message sent by the second electronic device is received, it also includes at least one of the following: displaying the operation object corresponding to the audio output device in the target interface in a first display mode; issuing a first prompt message, wherein the first prompt message indicates that the audio output device is an unavailable audio device; and determining a default first audio device among each of the first audio devices as a new audio output device.
[0007] In some embodiments, after determining the operation object in the target interface of the first electronic device according to the second message, it also includes: if a fifth message including a target device identifier is received from the second electronic device, displaying the operation object corresponding to the target device identifier in the target interface in a first display mode, or deleting the operation object corresponding to the target device identifier from the target interface.
[0008] In some embodiments, the method further includes: determining a target volume value in response to a volume adjustment instruction for the audio output device when the audio output device belongs to the second audio device; and sending a message including the target volume value to the second electronic device.
[0009] In some embodiments, after determining the operation object in the target interface of the first electronic device according to the second message, it also includes: in response to the first instruction, sending the display data processed by the graphics card in the first electronic device to the second electronic device through the second channel for display, and the display data can also be sent to the display screen of the first electronic device through the first channel for display; obtaining a sixth message returned by the second electronic device based on the first instruction, the sixth message corresponding to a default second audio device in each of the second audio devices; determining the default second audio device as the audio output device according to the sixth message; and in response to a switching instruction corresponding to the target operation object, switching the audio output device to an audio device corresponding to the target operation object, the audio device corresponding to the target operation object being different from the default second audio device.
[0010] In some embodiments, the method further includes: obtaining communication parameters between the first electronic device and the second electronic device when the audio output device belongs to the second audio device; performing at least one of the following when the communication parameters meet a first condition: issuing a second prompt message, wherein the second prompt message indicates whether to switch the audio output device; determining a default first audio device in each of the first audio devices as a new audio output device.
[0011] An embodiment of the present application also proposes a device control apparatus, including: a sending module, used to send a first message to a second electronic device connected to a first electronic device in response to satisfying a target trigger condition; an acquisition module, used to acquire a second message returned by the second electronic device based on the first message, the second message corresponding to at least one second audio device, and the second electronic device can output audio through the second audio device; a first determination module, used to determine an operation object in a target interface of the first electronic device according to the second message, the operation object corresponding to at least the second audio device; a second determination module, used to determine an audio output device in response to an instruction to select the operation object.
[0012] An embodiment of the present application also proposes a device control system, including a first electronic device and a second electronic device, wherein the first electronic device sends a first message to the second electronic device in response to satisfying a target trigger condition; the second electronic device returns a second message to the first electronic device based on the first message, the second message corresponds to at least one second audio device, and the second electronic device can output audio through the second audio device; the first electronic device determines an operation object in its own target interface according to the second message, and the operation object corresponds to at least the second audio device; the first electronic device determines an audio output device in response to an instruction to select the operation object.
[0013] In some embodiments, the second electronic device displays an authorization interface after receiving the first message, and the second message is generated by the second electronic device after receiving a permission instruction in the authorization interface. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] In order to more clearly illustrate the technical solution of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0015] Figure 1 A process of a device control method according to an embodiment of the present application Figure 1 ;
[0016] Figure 2 A process of a device control method according to an embodiment of the present application Figure 2 ;
[0017] Figure 3 A process of a device control method according to an embodiment of the present application Figure 3 ;
[0018] Figure 4 A process of a device control method according to an embodiment of the present application Figure 4 ;
[0019] Figure 5 A process of a device control method according to an embodiment of the present application Figure 5 ;
[0020] Figure 6 A schematic diagram of an example of a target interface in an embodiment of the present application;
[0021] Figure 7 This is a structural block diagram of a device control device according to an embodiment of the present application;
[0022] Figure 8 This is a structural block diagram of a device control system according to an embodiment of the present application. DETAILED DESCRIPTION
[0023] Various aspects and features of the present application are described herein with reference to the accompanying drawings.
[0024] It should be understood that various modifications may be made to the embodiments of the present application. Therefore, the above description should not be considered as limiting, but only as an example of an embodiment. Other modifications within the scope and spirit of the present application will occur to those skilled in the art.
[0025] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the present application and, together with the general description of the present application given above and the detailed description of the embodiments given below, serve to explain the principles of the present application.
[0026] These and other characteristics of the present application will become apparent from the following description of a preferred form of embodiment given as a non-limiting example with reference to the accompanying drawings.
[0027] It should also be understood that although the present application has been described with reference to some specific examples, those skilled in the art will be able to readily implement many other equivalent forms of the present application.
[0028] The above and other aspects, features and advantages of the present application will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.
[0029] Specific embodiments of the present application are described hereinafter with reference to the accompanying drawings; however, it should be understood that the embodiments applied for are merely examples of the present application, which may be implemented in a variety of ways. Well-known and / or repeated functions and structures are not described in detail to avoid unnecessary or redundant details that obscure the present application. Therefore, the specific structural and functional details applied for herein are not intended to be limiting, but merely serve as a basis and representative basis for the claims to teach those skilled in the art to use the present application in a variety of ways with substantially any suitable detailed structure.
[0030] This specification may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," all of which may refer to one or more of the same or different embodiments according to the present application.
[0031] A device control method in an embodiment of the present application determines an operation object in a target interface of a first electronic device according to a second message returned by a second electronic device. Since the operation object corresponds to at least a second audio device, a user can switch the second audio device in the second electronic device to an audio output device by operating the operation object in the target interface of the first electronic device, thereby avoiding back and forth operations on the first electronic device and the second electronic device, achieving more efficient switching of audio output devices, and improving user experience.
[0032] like Figure 1 As shown, the device control method includes the following steps:
[0033] Step S101: in response to a target trigger condition being met, sending a first message to a second electronic device connected to a first electronic device.
[0034] In this embodiment, the first electronic device and the second electronic device may be a mobile phone, a tablet computer, a laptop computer, a PC (personal computer), a wearable device, etc. The first electronic device and the second electronic device may be electronic devices of the same type, such as both are laptop computers; or they may be electronic devices of different types, such as the first electronic device is a mobile phone and the second electronic device is a PC. One first electronic device may correspond to one second electronic device, and one first electronic device may correspond to multiple second electronic devices. A communication connection may be established between the first electronic device and the second electronic device according to a target communication mode, and the target communication mode may be, for example, a wireless communication mode such as Bluetooth and WiFi, or a wired communication mode connected via a data cable.
[0035] The device control method can be executed by a processor in the first electronic device, or by a device control device in the first electronic device that is independent of the processor. The target trigger condition can be the establishment of a communication connection between the first electronic device and the second electronic device, or it can be the receipt of an instruction to enter the target interface of the first electronic device. In response to satisfying the target trigger condition, a first message is sent to a second electronic device connected to the first electronic device, so that the second electronic device returns a second message based on the first message.
[0036] Step S102: obtaining a second message returned by the second electronic device based on the first message, wherein the second message corresponds to at least one second audio device, and the second electronic device can output audio through the second audio device.
[0037] In this embodiment, the second electronic device can output audio through the second audio device, and the second audio device includes, for example, a speaker in the second electronic device, a speaker connected to the second electronic device, a wired headset or a wireless headset connected to the second electronic device, etc. After receiving the first message, the second electronic device returns a second message, and the second message corresponds to at least one second audio device. For example, the second message may carry the identifier of each second audio device. Optionally, in the case of multiple second audio devices, the second message may correspond to all second audio devices, or may correspond to some of the second audio devices.
[0038] Step S103: determining an operation object in a target interface of the first electronic device according to the second message, wherein the operation object at least corresponds to the second audio device.
[0039] In this embodiment, the target interface may be an audio device switching interface in the first electronic device. In this case, the target interface includes both an operation object corresponding to the first audio device and an operation object corresponding to the second audio device, and the first electronic device can output audio through the first audio device. The target interface may also be an interface independent of the audio device switching interface. In this case, the target interface only includes an operation object corresponding to the second audio device.
[0040] The operation object may be, for example, a name or an identifier uniquely corresponding to the second audio device. The user may select the operation object in the target interface to use the corresponding second audio device as an audio output device.
[0041] For example, if the second audio device includes a speaker in the second electronic device, a speaker connected to the second electronic device, a wired headset and a wireless headset connected to the second electronic device, etc., then the operation objects in the target interface are the names of the above-mentioned speakers, speakers, wired headsets and wireless headsets respectively.
[0042] In some embodiments of the present application, the operation object also includes an icon corresponding to the type of electronic device, so that the user can intuitively determine whether the operation object specifically belongs to the first electronic device or the second electronic device based on the icon.
[0043] Step S104: determining an audio output device in response to an instruction to select the operation object.
[0044] In this embodiment, the selection instruction can be triggered after the user performs a click operation or a touch operation in the target interface. The selected operation object is determined according to the selection instruction, and the audio device corresponding to the selected operation object is determined as the audio output device. If the audio output device is a second audio device, the audio output is subsequently performed through the second audio device corresponding to the second electronic device.
[0045] The device control method of the embodiment of the present application sends a first message to a second electronic device connected to a first electronic device in response to meeting a target trigger condition; obtains a second message returned by the second electronic device based on the first message, the second message corresponds to at least one second audio device, and the second electronic device can output audio through the second audio device; determines an operation object in a target interface of the first electronic device according to the second message, the operation object corresponds to at least the second audio device; and determines an audio output device in response to a selection instruction for the operation object. Since the operation object corresponds to at least the second audio device, the user can switch the second audio device in the second electronic device to an audio output device by operating the operation object in the target interface of the first electronic device, thereby avoiding back and forth operations on the first electronic device and the second electronic device, achieving more efficient switching of audio output devices, and improving the user experience.
[0046] In some embodiments of the present application, the operation object further corresponds to at least one first audio device, and the first electronic device can output audio through the first audio device, such as Figure 2 As shown, the following steps are also included:
[0047] Step S105: When the audio output device belongs to the second audio device, a third message is sent to the second electronic device, where the third message includes a device identifier of the audio output device.
[0048] In this embodiment, the first electronic device can output audio through a first audio device, and the first audio device includes, for example, a speaker in the first electronic device, a speaker connected to the second electronic device, a wired headset or a wireless headset connected to the second electronic device, etc. The operation object in the target interface also corresponds to at least one first audio device.
[0049] For example, if the first electronic device is a mobile phone and the second electronic device is a PC, the target interface can be as follows: Figure 6As shown, it can be seen that the target interface includes six operation objects, namely the mobile phone speaker and Bluetooth headset TWS 5.0 corresponding to the mobile phone, and the PC headset (TWS 5.0 Hands-Free AG Audio), PC Realte HD Audio 2nd output (Realtek (R) Audio), PC speaker (Realtek (R) Audio), and PC headset (TWS 5.0 Stereo) corresponding to the PC.
[0050] After determining the audio output device, if the audio output device belongs to the second audio device, a third message is sent to the second electronic device, the third message including the device identifier of the audio output device, so that the second electronic device determines the corresponding second audio device as the audio output device according to the third message. For example, Figure 6 As shown, if the audio output device is a second audio device corresponding to the PC headset (TWS 5.0Stereo), a third message including the PC headset (TWS5.0Stereo) is sent to the PC, so that the PC uses the PC headset (TWS 5.0Stereo) as an audio output device for audio output.
[0051] By sending the third message to the second electronic device after determining the audio output device, the second electronic device can accurately determine the second audio device that needs to be used as the audio output device.
[0052] In some embodiments of the present application, after sending the third message to the second electronic device, if a fourth message sent by the second electronic device is received, at least one of the following is further included:
[0053] Displaying an operation object corresponding to the audio output device in the target interface in a first display mode;
[0054] issuing a first prompt message, wherein the first prompt message indicates that the audio output device is an unavailable audio device;
[0055] A default first audio device among the first audio devices is determined as a new audio output device.
[0056] In this embodiment, after sending the third message to the second electronic device, the second electronic device determines the status of the audio output device according to the third message. If the audio output device is disconnected or cannot be used, a fourth message is sent to the first electronic device. The first electronic device determines that the current audio output device cannot be used according to the fourth message. Then, the operation object corresponding to the audio output device can be displayed in the target interface in a first display mode, so that the user can intuitively determine that the current audio output device is unavailable. The first display mode can, for example, be to change the color, font, etc. of the operation object; a first prompt message can also be issued, and the first prompt message indicates that the audio output device is an unavailable audio device to remind the user that the audio output device cannot be used; a default first audio device among the first audio devices can also be determined as a new audio output device, and audio can be output through the new audio output device subsequently, thereby ensuring reliable audio output.
[0057] For example, if the first electronic device is a mobile phone, the second electronic device is a PC, and the audio output device corresponding to the third message is an external speaker connected to the PC, then after the PC receives the third message, the PC determines that the external speaker has become disconnected, and the PC sends a fourth message to the mobile phone. The mobile phone changes the operation object corresponding to the external speaker to gray according to the received fourth message, and sends the first prompt information that the external speaker is unavailable. Alternatively, the mobile phone is playing a specified audio, and the mobile phone changes the operation object corresponding to the external speaker to gray according to the received fourth message, and determines the Bluetooth headset connected to the mobile phone as a new audio output device.
[0058] In some embodiments of the present application, after determining the operation object in the target interface of the first electronic device according to the second message, such as Figure 3 As shown, the following steps are also included:
[0059] Step S106, if a fifth message including a target device identifier is received from the second electronic device, the operation object corresponding to the target device identifier is displayed in the target interface in a first display mode, or the operation object corresponding to the target device identifier is deleted from the target interface.
[0060] In this embodiment, the second electronic device monitors the status of each second audio device in real time or periodically. If there is a second audio device that has become disconnected, the second electronic device uses the device identifier of the second audio device in the disconnected state as the target device identifier, and sends a fifth message including the target device identifier to the first electronic device. The first electronic device determines that the second audio device corresponding to the target device identifier is unavailable based on the fifth message, and displays the operation object corresponding to the target device identifier in the target interface in the first display mode, so that the user can intuitively determine that the corresponding second audio device is unavailable, or deletes the operation object corresponding to the target device identifier from the target interface to prevent the user from selecting an unavailable audio device.
[0061] For example, if Figure 6 As shown, the first electronic device is a mobile phone, the second electronic device is a PC, and the mobile phone has added the operation objects corresponding to each second audio device of the PC to the target interface. If the PC detects that the earphone corresponding to the PC earphone (TWS 5.0Stereo) is disconnected, the PC sends a fifth message including the device identifier of the earphone to the mobile phone. The mobile phone turns the PC earphone (TWS 5.0Stereo) gray according to the received fifth message to make it unselectable, or the mobile phone deletes the PC earphone (TWS5.0Stereo) from the target interface.
[0062] In some embodiments of the present application, Figure 4 As shown, the following steps are also included:
[0063] Step S107: when the audio output device belongs to the second audio device, in response to a volume adjustment instruction for the audio output device, determining a target volume value.
[0064] In this embodiment, the volume adjustment instruction may be triggered by the user operating the volume key of the first electronic device, or by the user adjusting the volume of the operation object corresponding to the audio output device in the target interface, for example, the user may adjust the volume by touching or clicking the mouse on the operation object. In response to the audio adjustment instruction, a target volume value is determined.
[0065] Step S108: Send a message including the target volume value to the second electronic device.
[0066] In this embodiment, a message including the target volume value is sent to the second electronic device, so that the second electronic device adjusts the volume of the audio output device based on the target volume value.
[0067] By sending a message including a target volume value to the second electronic device, the volume of the audio device of the second electronic device can be adjusted directly on the first electronic device, thereby improving the user experience.
[0068] In some embodiments of the present application, after determining the operation object in the target interface of the first electronic device according to the second message, such as Figure 5 As shown, the following steps are also included:
[0069] Step S109, in response to the first instruction, the display data processed by the graphics card in the first electronic device is sent to the second electronic device through the second channel for display. The display data can also be sent to the display screen of the first electronic device through the first channel for display.
[0070] In this embodiment, the display data processed by the graphics card in the first electronic device can be sent to the second electronic device through the second channel for display, or can be sent to the display screen of the first electronic device through the first channel for display. The first instruction can be an instruction to cast the screen, such as sending the display data processed by the graphics card of the notebook to a TV or another notebook for display, or sending the display data processed by the graphics card of the mobile phone to a TV or notebook for display. The display data processed by the graphics card is, for example, the desktop display content of the notebook, the interface of a specified application in the notebook, the desktop display content of the mobile phone, etc.
[0071] Step S110: obtaining a sixth message returned by the second electronic device based on the first instruction, wherein the sixth message corresponds to a default second audio device in each of the second audio devices.
[0072] In this embodiment, after the display data processed by the graphics card in the first electronic device is sent to the second electronic device through the second channel, the display screen of the second electronic device can display the display content, and play the audio corresponding to the display content through the default second audio device in each second audio device, and send the sixth message to the first electronic device at the same time, so that the first electronic device determines that the current audio output device is the default second audio device. For example, if the first electronic device is a mobile phone and the second electronic device is a TV, the mobile phone can cast the video in the mobile phone to the TV according to the screen casting instruction, and the TV plays the audio in the video through its own speakers, and the TV sends the sixth message including the TV speaker identifier to the mobile phone.
[0073] Step S111: determining the default second audio device as the audio output device according to the sixth message.
[0074] In this embodiment, the sixth message may carry an identifier of the default second audio device, and the default second audio device is determined as the audio output device according to the identifier.
[0075] Step S112: in response to a switching instruction corresponding to the target operation object, the audio output device is switched to an audio device corresponding to the target operation object, wherein the audio device corresponding to the target operation object is different from the default second audio device.
[0076] In this embodiment, the target operation object may be an operation object selected by the user in the target interface, and the audio device corresponding to the target operation object is different from the default second audio device. After the user selects the target operation object in the target interface, a switching instruction is triggered, and in response to the switching instruction, the audio output device is switched to the audio device corresponding to the target operation object.
[0077] For example, if the first electronic device is a mobile phone, the second electronic device is a TV, and the speaker of the TV is the default second audio device, after the video in the mobile phone is projected to the TV, the audio is output through the speaker of the TV. After the user selects the Bluetooth speaker connected to the TV in the target interface of the mobile phone, the Bluetooth speaker connected to the TV is determined as the audio output device, and audio output is performed, so there is no need to use the TV remote control to switch the audio output device on the TV.
[0078] After the display data processed by the graphics card in the first electronic device is sent to the second electronic device for display through the second channel, the audio output device is switched from the default second audio device of the second electronic device to the audio device selected by the user through the switching instruction corresponding to the target operation object in the first electronic device, so that the user can switch the audio output device without operating on the second electronic device, thereby improving the switching efficiency and enhancing the user experience.
[0079] In some embodiments of the present application, the device control method further includes:
[0080] In a case where the audio output device belongs to the second audio device, obtaining a communication parameter between the first electronic device and the second electronic device;
[0081] When the communication parameter satisfies the first condition, at least one of the following is performed:
[0082] issuing a second prompt message, wherein the second prompt message indicates whether to switch the audio output device;
[0083] A default first audio device among the first audio devices is determined as a new audio output device.
[0084] In this embodiment, the communication parameters may be, for example, parameters such as bit error rate, signal-to-noise ratio, data rate, and delay, and the communication parameters may be monitored by the first electronic device or the second electronic device. The first condition may be, for example, that the delay reaches the target delay, the data rate is lower than the target rate, the bit error rate reaches the target ratio, etc. If the communication parameters meet the first condition, it means that the communication quality between the first electronic device and the second electronic device is poor, and the second audio device in the second electronic device cannot be reliably used for audio output. In this case, a second prompt message may be issued to remind the user whether to switch the audio output device. The default first audio device in each first audio device may also be automatically determined as a new audio output device, thereby ensuring reliable audio output.
[0085] For example, if the first electronic device is a mobile phone, the second electronic device is a PC, and the audio output device is the speaker of the PC, if the communication delay between the mobile phone and the PC reaches the target delay, the mobile phone will send a second prompt message asking whether to switch the audio output device. After the preset time is reached, if the user's switching instruction is not received, the audio output device will be automatically switched to the speaker of the mobile phone to ensure normal audio output.
[0086] The present application also provides a device control device, such as Figure 7 As shown, it includes: a sending module, used to send a first message to a second electronic device connected to the first electronic device in response to meeting a target trigger condition; an acquisition module, used to acquire a second message returned by the second electronic device based on the first message, the second message corresponds to at least one second audio device, and the second electronic device can output audio through the second audio device; a first determination module, used to determine an operation object in a target interface of the first electronic device according to the second message, the operation object corresponds to at least the second audio device; a second determination module, used to determine an audio output device in response to an instruction to select the operation object.
[0087] The device control apparatus of the embodiment of the present application includes a sending module, an acquiring module, a first determining module and a second determining module. Since the operation object corresponds to at least the second audio device, the user can switch the second audio device in the second electronic device to the audio output device by operating the operation object in the target interface of the first electronic device, thereby avoiding back and forth operations on the first electronic device and the second electronic device, achieving more efficient switching of the audio output device and improving the user experience.
[0088] In a specific application scenario, the operation object also corresponds to at least one first audio device, and the first electronic device can output audio through the first audio device. The sending module is also used to: when the audio output device belongs to the second audio device, send a third message to the second electronic device, and the third message includes the device identification of the audio output device.
[0089] In a specific application scenario, it also includes an adjustment module, which is used to execute at least one of the following if a fourth message sent by the second electronic device is received: displaying the operation object corresponding to the audio output device in the target interface in a first display mode; issuing a first prompt message, wherein the first prompt message indicates that the audio output device is an unavailable audio device; and determining a default first audio device among each of the first audio devices as a new audio output device.
[0090] In a specific application scenario, the adjustment module is also used to: if a fifth message including a target device identifier is received from the second electronic device, display the operation object corresponding to the target device identifier in the target interface in a first display mode, or delete the operation object corresponding to the target device identifier from the target interface.
[0091] In a specific application scenario, the adjustment module is also used to: when the audio output device belongs to the second audio device, determine the target volume value in response to a volume adjustment instruction for the audio output device; and send a message including the target volume value to the second electronic device.
[0092] In a specific application scenario, a switching module is also included, which is used to: in response to a first instruction, send the display data processed by the graphics card in the first electronic device to the second electronic device through the second channel for display, and the display data can also be sent to the display screen of the first electronic device through the first channel for display; obtain a sixth message returned by the second electronic device based on the first instruction, and the sixth message corresponds to a default second audio device in each of the second audio devices; determine the default second audio device as the audio output device according to the sixth message; in response to a switching instruction corresponding to a target operation object, switch the audio output device to an audio device corresponding to the target operation object, and the audio device corresponding to the target operation object is different from the default second audio device.
[0093] In a specific application scenario, the adjustment module is also used to: when the audio output device belongs to the second audio device, obtain the communication parameters between the first electronic device and the second electronic device; when the communication parameters meet the first condition, perform at least one of the following: issue a second prompt message, the second prompt message indicating whether to switch the audio output device; determine the default first audio device in each of the first audio devices as the new audio output device.
[0094] The present application also proposes a device control system, such as Figure 8 As shown, it includes a first electronic device and a second electronic device, wherein the first electronic device sends a first message to the second electronic device in response to meeting a target trigger condition; the second electronic device returns a second message to the first electronic device based on the first message, the second message corresponds to at least one second audio device, and the second electronic device can output audio through the second audio device; the first electronic device determines the operation object in its own target interface according to the second message, and the operation object corresponds to at least the second audio device; the first electronic device determines the audio output device in response to the selection instruction of the operation object.
[0095] The device control system of the embodiment of the present application includes a first electronic device and a second electronic device. Since the operation object corresponds to at least the second audio device, the user can switch the second audio device in the second electronic device to an audio output device by operating the operation object in the target interface of the first electronic device, thereby avoiding back and forth operations on the first electronic device and the second electronic device, achieving more efficient switching of audio output devices, and improving user experience.
[0096] In a specific application scenario, the second electronic device displays an authorization interface after receiving the first message, and the second message is generated by the second electronic device after receiving a permission instruction in the authorization interface.
[0097] In this embodiment, after receiving the first message, the second electronic device determines the second audio device as the audio output device and displays an authorization interface. The authorization interface may, for example, display information on whether the audio output device is allowed to be used. If the second electronic device receives a permission instruction from the user in the authorization interface, the second electronic device returns a second message to the first electronic device, thereby enabling the user to control whether to use the second audio device in the second electronic device, thereby improving the user experience.
[0098] The electronic device in the embodiment of the present application may be a terminal, or may be other devices other than a terminal. For example, the electronic device may be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a mobile Internet device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), etc., and may also be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present disclosure.
[0099] The memory may include a RAM (Random Access Memory) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0100] The above-mentioned processor can be a general-purpose processor, including CPU, NP (Network Processor), etc.; it can also be DSP (Digital Signal Processing), ASIC (Application Specific Integrated Circuit), FPGA (Field Programmable Gate Array) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0101] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. 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 includes one or more available media integration. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk), etc.
[0102] The above embodiments are only exemplary embodiments of the present application and are not intended to limit the present application. The protection scope of the present application is defined by the claims. Those skilled in the art may make various modifications or equivalent substitutions to the present application within the essence and protection scope of the present application, and such modifications or equivalent substitutions shall also be deemed to fall within the protection scope of the present application.
Claims
1. A device control method, comprising: In response to satisfying a target trigger condition, sending a first message to a second electronic device connected to the first electronic device; Acquire a second message returned by the second electronic device based on the first message, where the second message corresponds to at least one second audio device, and the second electronic device can output audio through the second audio device; determining, according to the second message, an operation object in a target interface of the first electronic device, the operation object at least corresponding to the second audio device; In response to a selection instruction of the operation object, an audio output device is determined.
2. The device control method according to claim 1, wherein the operation object further corresponds to at least one first audio device, and the first electronic device can output audio through the first audio device, further comprising: In a case where the audio output device belongs to the second audio device, a third message is sent to the second electronic device, where the third message includes a device identification of the audio output device.
3. The device control method according to claim 2, further comprising at least one of the following if a fourth message sent by the second electronic device is received after the third message is sent to the second electronic device: Displaying an operation object corresponding to the audio output device in the target interface in a first display mode; issuing a first prompt message, wherein the first prompt message indicates that the audio output device is an unavailable audio device; A default first audio device among the first audio devices is determined as a new audio output device.
4. The device control method according to claim 1, after determining the operation object in the target interface of the first electronic device according to the second message, further comprising: If a fifth message including a target device identifier is received from the second electronic device, the operation object corresponding to the target device identifier is displayed in the target interface in a first display manner, or the operation object corresponding to the target device identifier is deleted from the target interface.
5. The device control method according to claim 1, further comprising: In a case where the audio output device belongs to the second audio device, in response to a volume adjustment instruction for the audio output device, determining a target volume value; A message including the target volume value is sent to the second electronic device.
6. The device control method according to claim 1, after determining the operation object in the target interface of the first electronic device according to the second message, further comprising: In response to the first instruction, the display data processed by the graphics card in the first electronic device is sent to the second electronic device through the second channel for display, and the display data can also be sent to the display screen of the first electronic device through the first channel for display; Obtaining a sixth message returned by the second electronic device based on the first instruction, where the sixth message corresponds to a default second audio device in each of the second audio devices; determining the default second audio device as the audio output device according to the sixth message; In response to a switching instruction corresponding to a target operation object, the audio output device is switched to an audio device corresponding to the target operation object, where the audio device corresponding to the target operation object is different from the default second audio device.
7. The device control method according to claim 1, further comprising: In a case where the audio output device belongs to the second audio device, obtaining a communication parameter between the first electronic device and the second electronic device; When the communication parameter satisfies the first condition, at least one of the following is performed: issuing a second prompt message, wherein the second prompt message indicates whether to switch the audio output device; A default first audio device among the first audio devices is determined as a new audio output device.
8. A device control apparatus, comprising: A sending module, configured to send a first message to a second electronic device connected to the first electronic device in response to satisfying a target trigger condition; An acquisition module, configured to acquire a second message returned by the second electronic device based on the first message, wherein the second message corresponds to at least one second audio device, and the second electronic device can output audio through the second audio device; A first determining module, configured to determine an operation object in a target interface of the first electronic device according to the second message, wherein the operation object at least corresponds to the second audio device; The second determining module is used to determine an audio output device in response to a selection instruction for the operation object.
9. A device control system, comprising a first electronic device and a second electronic device, wherein: In response to satisfying a target trigger condition, the first electronic device sends a first message to the second electronic device; The second electronic device returns a second message to the first electronic device based on the first message, the second message corresponds to at least one second audio device, and the second electronic device can output audio through the second audio device; The first electronic device determines, according to the second message, an operation object in its own target interface, where the operation object at least corresponds to the second audio device; The first electronic device determines an audio output device in response to an instruction to select the operation object.
10. The device control system as claimed in claim 9, wherein the second electronic device displays an authorization interface after receiving the first message, and the second message is generated by the second electronic device after receiving a permission instruction in the authorization interface.