Equipment communication method and device and storage medium
By setting connection priority for the data transmission channel of the playback device, the problem that other devices find it difficult to connect and control the playback device when the data transmission channel has been occupied is solved, and a simplified control device switching process is realized.
Patent Information
- Application Number
- CN202311407421.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-26
- Publication Date
- 2025-04-29
AI Technical Summary
When the data transmission channel of the playback device has been occupied, it is difficult for other devices to directly connect and control the playback device, resulting in a cumbersome process of increasing or switching the control device.
By setting connection priority for the data transmission channel, instructions carrying the priority identification are allowed to determine the connection priority on the playback device, thereby enabling connection between other devices and data transmission channels, and even disconnecting from the original device.
It is realized that when the data transmission channel of the playback device has been occupied, other devices can directly connect and control the playback device through the instructions identified by the priority, simplifying the process of adding or switching of the control device.
Smart Images

Figure CN119907132A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of information transmission technology, and in particular to a device communication method, apparatus and storage medium. Background Art
[0002] In the related art, in scenarios where a private, clear or immersive audio experience is required, users usually use headphones as a playback device.
[0003] In the case of using headphones as a playback device, in order to reduce the impact of wearing headphones on users, headphones that can be wirelessly connected to terminals are designed. Such headphones can establish a connection with the terminal device through a wireless connection, and can receive and play sound information sent by the terminal device. Summary of the invention
[0004] In order to overcome the problems existing in the related art, the present disclosure provides a device communication method, apparatus and storage medium, which can set a connection priority for a first data transmission channel, so that when the first data transmission channel of a playback device is already occupied, other devices can also directly send instructions carrying a priority identifier to achieve connection to the first data transmission channel. In this way, it is also convenient to add or switch control devices for playback devices.
[0005] According to a first aspect of an embodiment of the present disclosure, there is provided a device communication method, which is applied to a playback device, and the method comprises: when a first data transmission channel of the playback device is in a connected state with a first terminal, receiving a connection instruction for the first data transmission channel sent by a second terminal, and, based on a first priority identifier carried by the connection instruction, determining a first connection priority corresponding to the second terminal and the first data transmission channel; when the first connection priority meets a preset condition, determining that the first data transmission channel is connected to the second terminal, and determining that the first data transmission channel is disconnected from the first terminal.
[0006] According to the second aspect of the embodiment of the present disclosure, there is provided a device communication method, which is applied to a first terminal. When the first terminal is connected to a first data transmission channel of a playback device, the device communication method includes:
[0007] In response to receiving the disconnection prompt information sent by the playback device, determining that the first data transmission channel is in a disconnected state, and displaying the disconnection prompt information;
[0008] Among them, the above-mentioned playback device is used to receive a connection instruction for the above-mentioned first data transmission channel sent by the second terminal, and determine the first connection priority between the above-mentioned first data transmission channel and the above-mentioned second terminal according to the first priority identifier carried by the above-mentioned connection instruction, and when the above-mentioned first connection priority meets the preset conditions, the above-mentioned playback device is used to determine that the above-mentioned first data transmission channel is connected to the above-mentioned second terminal, and determine that the above-mentioned first data transmission channel is disconnected from the above-mentioned first terminal.
[0009] According to a third aspect of an embodiment of the present disclosure, a device communication method is provided, which is applied to a second terminal. When a first data transmission channel between the second terminal and a playback device is disconnected and the first data transmission channel between the playback device and the first terminal is connected, the device communication method includes:
[0010] Determine a first priority identifier corresponding to the above-mentioned second terminal; send a connection instruction carrying the above-mentioned first priority identifier to the above-mentioned playback device; so that the above-mentioned playback device determines that the above-mentioned first data transmission channel is connected to the above-mentioned second terminal when the first connection priority indicated by the above-mentioned first priority identifier meets the preset conditions, and determines that the above-mentioned first data transmission channel is disconnected from the above-mentioned first terminal.
[0011] According to a fourth aspect of an embodiment of the present disclosure, a device communication apparatus is provided, which is applied to a playback device. The device communication apparatus includes:
[0012] an execution module, configured to receive a connection instruction for the first data transmission channel sent by the second terminal when the first data transmission channel of the playback device is in a connected state with the first terminal;
[0013] A determination model is configured to determine a first connection priority corresponding to the second terminal and the first data transmission channel according to the first priority identifier carried in the connection instruction;
[0014] The connection module is configured to determine that the first data transmission channel is connected to the second terminal and to determine that the first data transmission channel is disconnected from the first terminal when the first connection priority meets a preset condition.
[0015] According to a fifth aspect of an embodiment of the present disclosure, there is provided a device communication apparatus, which is applied to a first terminal. When the first terminal is connected to a first data transmission channel of a playback device, the device communication apparatus includes:
[0016] a determination and display module, configured to, in response to receiving the disconnection prompt information sent by the playback device, determine that the first data transmission channel is in a disconnected state, and display the disconnection prompt information;
[0017] Among them, the above-mentioned playback device is used to receive a connection instruction for the above-mentioned first data transmission channel sent by the second terminal, and determine the first connection priority between the above-mentioned first data transmission channel and the above-mentioned second terminal according to the first priority identifier carried by the above-mentioned connection instruction, and when the above-mentioned first connection priority meets the preset conditions, the above-mentioned playback device is used to determine that the above-mentioned first data transmission channel is connected to the above-mentioned second terminal, and determine that the above-mentioned first data transmission channel is disconnected from the above-mentioned first terminal.
[0018] According to a sixth aspect of an embodiment of the present disclosure, there is provided a device communication apparatus, which is applied to a second terminal. When a first data transmission channel between the second terminal and a playback device is disconnected and the first data transmission channel between the playback device and the first terminal is connected, the device communication apparatus includes:
[0019] A determination model is configured to determine a first priority identifier corresponding to the second terminal;
[0020] The sending module is configured to send a connection instruction carrying the above-mentioned first priority identifier to the above-mentioned playback device; so that the above-mentioned playback device determines that the above-mentioned first data transmission channel is connected to the above-mentioned second terminal when the first connection priority indicated by the above-mentioned first priority identifier meets the preset conditions, and determines that the above-mentioned first data transmission channel is disconnected from the above-mentioned first terminal.
[0021] According to a seventh aspect of an embodiment of the present disclosure, there is provided a device communication apparatus, including: a processor;
[0022] a memory for storing processor-executable instructions;
[0023] Among them, when the above-mentioned processor is configured to execute the instructions shown, it implements the steps of the device communication method provided in the above-mentioned first aspect.
[0024] According to the seventh aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the device communication method provided by the first aspect, the second aspect or the third aspect of the present disclosure are implemented.
[0025] The technical solution provided by the embodiment of the present disclosure may include the following beneficial effects: when the first data transmission channel of the playback device is in a connected state with the first terminal, if the playback device receives a connection instruction for the first data transmission channel sent by the second terminal, the first connection priority corresponding to the second terminal and the first data transmission channel can be determined according to the priority identifier carried by the connection instruction; and whether to connect the second terminal to the first data transmission channel is determined accordingly. In this way, the second terminal can realize the connection with the first data transmission channel of the playback device by controlling the priority identifier carried by the connection instruction, thereby realizing the control of the playback device.
[0026] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0028] Figure 1 The present invention is a flowchart of a device communication method according to an exemplary embodiment.
[0029] Figure 2 The present invention is a data flow diagram of a device communication method according to an exemplary embodiment.
[0030] Figure 3 The figure is a data flow diagram of yet another device communication method according to an exemplary embodiment.
[0031] Figure 4 The flowchart of another device communication method is shown according to an exemplary embodiment.
[0032] Figure 5 The flowchart of another device communication method is shown according to an exemplary embodiment.
[0033] Figure 6 The invention is a block diagram showing a device communication apparatus according to an exemplary embodiment.
[0034] Figure 7 It is a block diagram of yet another device communication apparatus according to an exemplary embodiment.
[0035] Figure 8 It is a block diagram of yet another device communication apparatus according to an exemplary embodiment.
[0036] Fig. 9 It is a block diagram of a device according to an exemplary embodiment (general structure of a mobile terminal).
[0037] Fig.10 It is a block diagram of a device (general structure of a server) according to an exemplary embodiment. DETAILED DESCRIPTION
[0038] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0039] It should be noted that all actions of acquiring signals, information or data in the present disclosure are carried out in compliance with the relevant data protection laws and policies of the country where the device is located and with the authorization given by the owner of the corresponding device.
[0040] The playback device in the present disclosure can be understood as a device that can play sound sources, such as headphones and speakers. The playback device and the sound source providing device transmit data wirelessly (for example, Bluetooth, infrared), so that the playback device can receive data such as sound sources and control information. However, the premise for the sound source providing device to send data to the playback device is that the playback device and the sound source providing device have established a connection.
[0041] The playback device can provide a channel for data transmission (data transmission channel). After the sound source providing device establishes a connection with the data transmission channel of the playback device, the playback device can receive the data sent by the sound source providing device.
[0042] In the related art, when the data transmission channel of the playback device is occupied by one device (device A), the other device (device B) cannot realize the control of the playback device. At this time, if device B wants to control the playback device, it is necessary to operate device A first to exit the connection between device A and the data transmission channel of the playback device, and then connect device B to the data transmission channel of the playback device, so as to realize the control of the playback device by device B. It can be seen that this process requires operating device A and device B at the same time, and the operation process is very cumbersome.
[0043] The device communication method provided by the present application can determine whether the first connection priority corresponding to the second terminal and the first data transmission channel meets the preset conditions when the first data transmission channel of the playback device is connected to the first terminal, and connect the first data transmission channel to the second terminal when the first connection priority meets the preset conditions. That is, by setting the connection priority for the first data transmission channel, when the first data transmission channel of the playback device is already occupied, other devices can also directly achieve connection to the first data transmission channel by sending instructions carrying a priority identifier. In this way, it is also convenient to add or switch control devices for playback devices.
[0044] Figure 1 is a flow chart of a device communication method according to an exemplary embodiment. Figure 1 As shown, the device communication method can be applied to a playback device (eg, earphones, speakers, etc.), and includes the following steps.
[0045] In S11, when the first data transmission channel of the playback device is in a connected state with the first terminal, a connection instruction for the first data transmission channel sent by the second terminal is received.
[0046] In S12, a first connection priority corresponding to the second terminal and the first data transmission channel is determined according to the first priority identifier carried in the connection instruction.
[0047] Here, the priority identifier indicates the connection priority of the first data transmission channel between the sound source providing device and the playing device, and the above-mentioned sound source providing device includes the above-mentioned first terminal and second terminal.
[0048] It can be understood that when the terminal device sends a connection instruction for the first data transmission channel to the playback device, it can carry a priority identifier. Of course, when the first terminal sends a connection instruction to connect to the first data transmission channel, the sent connection instruction can also carry a priority identifier (indicating the connection priority of the first data transmission channel between the terminal and the playback device).
[0049] In S13, when the first connection priority meets a preset condition, it is determined that the first data transmission channel is connected to the second terminal, and it is determined that the first data transmission channel is disconnected from the first terminal.
[0050] In some implementations, when the first connection priority reaches a preset priority, it can be determined that the first connection priority meets the preset condition. Alternatively, when the first connection priority is higher than the priority of the terminal that has been connected to the playback device (for example, the first connection priority is higher than the second connection priority, and the second connection priority indicates the connection priority of the first terminal to the first data transmission channel), it can also be determined that the first connection priority meets the preset condition.
[0051] It can be seen that in the present disclosure, when the first data transmission channel of the playback device is in a connected state with the first terminal, if the playback device receives a connection instruction for the first data transmission channel sent by the second terminal, the first connection priority corresponding to the second terminal and the first data transmission channel can be determined according to the first priority identifier carried in the connection instruction; and whether to connect the second terminal to the first data transmission channel is determined accordingly. In this way, the second terminal can achieve connection with the first data transmission channel of the playback device by controlling the priority identifier carried in the connection instruction, thereby achieving control over the playback device.
[0052] In the related art, when the first terminal is in a connected state with the first data transmission channel of the playback device, it is impossible to establish a connection with the first data transmission channel of the playback device by only sending connection information by the second terminal; this makes it difficult for the second terminal to control the playback device. However, in the method disclosed in the present invention, when the first connection priority indicated by the connection instruction sent by the second terminal meets the preset conditions, the first data transmission channel can be connected to the second terminal; in this way, the connection between the second terminal device and the first data transmission channel can be conveniently and efficiently realized, so that the second terminal can conveniently control the playback device.
[0053] In some implementations, the first data transmission channel can transmit audio sources, control information, etc.
[0054] In some embodiments, when the first connection priority is higher than the second connection priority, it is determined that the first connection priority meets a preset condition.
[0055] Here, the second connection priority indicates the connection priority corresponding to the first data transmission channel and the first terminal.
[0056] In the present disclosure, the switching of the control device corresponding to the playback device can be achieved by setting the priority identifier carried in the connection instruction sent by the first terminal and the second terminal. Figure 2 To illustrate with an example, Figure 2 It can be understood as a possible data flow diagram of the present disclosure:
[0057] In the initial state, the first data transmission channel of the playback device is not connected. When the first terminal needs to be connected to the first data transmission channel of the playback device, the first terminal can generate a connection instruction A and send the connection instruction A to the playback device; at this time, the connection instruction A can carry a priority identifier A indicating a low connection priority; in this way, it is convenient for other devices to obtain control authority over the playback device.
[0058] At this time, if the second terminal needs to be connected to the first data transmission channel of the playback device, the second terminal device can generate a connection instruction B, and the connection instruction B can carry a priority identifier B indicating a high connection priority, so that the second terminal can be connected to the first data transmission channel of the playback device.
[0059] It can be seen that in the present disclosure, by setting the priority identifier carried in the connection instruction sent to the playback device, the terminal connected to the first data transmission channel of the playback device can be switched, thereby conveniently adding or switching the control device for the playback device.
[0060] In some embodiments, the playback device may have a second data transmission channel, and the device communication method may further include:
[0061] In response to determining that the first data transmission channel and the second terminal have completed the connection, generate connection indication information indicating that the first data transmission channel and the second terminal have completed the connection; when the second data transmission channel and the first terminal are in a connected state, send the connection indication information to the first terminal through the second data transmission channel.
[0062] As an example, the playback device may include a first data transmission channel and a second data transmission channel, and the first data transmission channel and the second data transmission channel may be of different models, so that different devices can be easily connected to the playback device.
[0063] It should be understood that different terminal devices support different data transmission channels for connection. For example, the PC (Personal Compute, personal computer or personal computer) may only support connection using the SPP (Serial Port Profile, Bluetooth specification) channel, while mobile terminals (mobile phones, tablets and other devices) may support connection using the AT (AT Command Channel, command voice) channel and the SPP channel. The AT channel and SPP channel here can be understood as data transmission channels. It's just that the SPP channel can transmit more data types and has more efficient and perfect transmission efficiency than the AT channel. The AT channel is mainly used to transmit control instructions. Therefore, the control instructions transmitted by the AT channel may be executed first on the playback device.
[0064] In a possible implementation of the present disclosure, the first data transmission channel of the playback device can be understood as an SPP channel, and the second data transmission channel of the playback device can be understood as an AT channel. After the first data transmission channel is connected by the PC end, the terminal device can also interact with the playback device through the AT channel.
[0065] In order to facilitate understanding of the concept of the present disclosure, the following Figure 3 To explain, Figure 3 It can be understood as a data flow diagram of a possible implementation method of the present disclosure, which is composed of Figure 3 It can be seen that the mobile terminal (using the Android terminal as an example) can send an AT control instruction to the playback device. At this time, the AT control instruction may include an identifier (priority identifier) indicating the connection priority with the SPP channel. At this time, the playback device can determine whether the SPP channel is occupied at this time. If the SPP channel is not occupied, the SPP channel can be connected to the mobile terminal; if the SPP channel is occupied, the connection priority (the connection priority of the terminal to which the SPP channel is connected is compared with the connection priority indicated by the priority identifier) to determine whether to connect the SPP channel of the playback device to the mobile terminal. For example, if the connection priority of the terminal to which the SPP channel is connected is lower than the connection priority indicated by the priority identifier, the SPP channel of the playback device is connected to the mobile terminal; and when the connection priority of the terminal to which the SPP channel is connected is higher than the connection priority indicated by the priority identifier, the mobile terminal is fed back with indication information indicating that the SPP channel connection failed.
[0066] Furthermore, the PC can also send a connection request for the SPP channel to the playback device. When the playback device receives the connection instruction sent by the PC, the judgment process is similar to the above judgment method. For example, if the SPP channel is not occupied, the SPP channel can be connected to the PC; if the SPP channel is occupied, the connection priority can be compared to determine whether to connect the SPP channel of the playback device to the PC.
[0067] It should be noted that usually a mobile terminal can support connection with both an SPP channel and an AT channel. Therefore, the connection instruction for the SPP channel sent by the mobile terminal carries a low priority identifier, while the connection instruction for the SPP channel sent by the PC can carry a high priority identifier. In this way, when the PC needs to use the SPP channel, it can connect to the SPP channel. Since the mobile terminal can also connect to the playback device through the AT channel, the mobile terminal device can also control the playback device.
[0068] The method disclosed in the present invention not only realizes dual control of the playback device, but also, even if the mobile terminal has established a connection with the playback device (the SPP channel has been occupied by the mobile terminal), the PC side can be added to control the playback device, thereby enriching the control of the playback device.
[0069] In some embodiments, the device communication method may further include: in response to receiving the control information, executing a control method indicated by the control information.
[0070] Here, the control information may be generated by the first terminal or the second terminal.
[0071] In the present disclosure, since the first terminal can be connected to the playback device through the second data transmission channel, and the second terminal can be connected to the playback device through the first data transmission channel, the first terminal and the second terminal can both transmit control information to the playback device to control the playback device.
[0072] In some embodiments, when the control information is generated by the first terminal, the first terminal sends the control information using the second data transmission channel; when the control information is generated by the second terminal, the second terminal sends the control information through the first data transmission channel.
[0073] That is, the first terminal and the second terminal each correspond to a data transmission channel, so that the first terminal and the second terminal can both send control information to the playback device to achieve control of the playback device.
[0074] In some embodiments, the device communication method may further include: when the control information is generated by the first terminal and the playback device is currently provided with a sound source by the second terminal, generating first control prompt information corresponding to the control method indicated by the control information, and sending the first control prompt information to the second terminal; or,
[0075] When the control information is generated by the second terminal and the playback device is currently provided with a sound source by the first terminal, second control prompt information corresponding to the control method indicated by the control information is generated, and the second control prompt information is sent to the second terminal.
[0076] It can be understood that when the terminal device sending the control information is different from the terminal device currently providing the sound source, a prompt message that the playback device is controlled can be sent to the terminal device currently providing the sound source. For ease of understanding, an example can be given:
[0077] For example, a mobile terminal is connected to a playback device through an AT channel, and a PC terminal is connected through an SPP channel. If the playback device is playing the sound source provided by the mobile terminal, and the playback device receives a control instruction to pause the music sent by the PC through the SPP channel, then a control prompt message similar to "the current playback is paused by the PC" can be generated to prompt the user of the mobile terminal that the current playback is paused by the PC, so that the user can know the reason why the playback device is paused, making the interaction process clearer.
[0078] It should be noted that in the present disclosure, when the control prompt information is sent to the corresponding terminal, if the control information needs to be sent to the first terminal, the control prompt information can be sent through the second data transmission channel, and when the control information needs to be sent to the second terminal, it can be sent through the first data transmission channel. In this way, after the terminal controls the playback device, there is no need to inform the other terminal (the terminal that previously controlled the playback device) by broadcasting, so that the information transmission between the first terminal and the second terminal can be circulated through the channel provided by the playback device, thereby improving the security of the information transmission process.
[0079] For easier understanding, please refer to Figure 3 When the mobile terminal sends an AT command to the playback device (headphone), the playback device can forward the AT command to the PC through the SPP channel.
[0080] It should be noted that, although the first control prompt information and the second control prompt information are both generated according to the control mode indicated by the control information, the first control prompt information is transmitted to the second terminal via the first data transmission channel, while the second control prompt information is transmitted to the first terminal via the second data transmission channel; therefore, the formats of the first control prompt information and the second control prompt information may be different. The specific formats of the first control prompt information and the second control prompt information can be limited by the formats supported by the first data transmission channel and the second data transmission channel, respectively.
[0081] In some embodiments, the control method includes at least one of the following:
[0082] Noise reduction, turn on gesture operation settings, turn off gesture operation settings, play, pause.
[0083] Of course, in a specific implementation, the specific selection of the above control methods can be limited according to actual conditions.
[0084] In some embodiments, Figure 4 is a flow chart of a device communication method according to an exemplary embodiment. Figure 4As shown, the device communication method can be applied to a first terminal (eg, a mobile terminal). When the first terminal is connected to a first data transmission channel of a playback device, the device communication method can include the following steps.
[0085] In S41, in response to receiving the disconnection prompt information sent by the playback device, it is determined that the first data transmission channel is in a disconnected state, and the disconnection prompt information is displayed.
[0086] Here, the playback device is used to receive a connection instruction for the first data transmission channel sent by the second terminal, determine the first connection priority between the first data transmission channel and the second terminal according to the first priority identifier carried by the connection instruction, and, when the first connection priority meets a preset condition, the playback device is used to determine that the first data transmission channel is connected to the above-mentioned second terminal, and determine that the first data transmission channel is disconnected from the first terminal.
[0087] As an example, after the first data transmission channel of the playback device completes the connection with the second terminal, the playback device can generate a disconnection prompt message and can send the disconnection prompt message to the first terminal to prompt that the first data transmission channel is connected to the second terminal, so that the user of the first terminal is informed that the first data transmission channel is currently disconnected.
[0088] In some embodiments, in response to detecting a connection instruction for a first data transmission channel, a second priority identifier corresponding to the first terminal is determined, wherein the second priority identifier indicates a second connection priority between the first terminal and the first data transmission channel.
[0089] The connection instruction carrying the second priority identifier is sent to the playback device, wherein the playback device is used to determine the connection result between the first data transmission channel and the first terminal according to the second connection priority and the first connection priority, wherein the connection result includes: connection failure or connection success.
[0090] Displays the connection result returned by the playback device.
[0091] Here, when the first data transmission channel is connected to the second terminal, the first terminal may continue to send an instruction to connect to the first data transmission channel so that the first terminal can obtain the connection with the first data transmission channel again.
[0092] In some embodiments, the playback device has a second data transmission channel; and the device communication method may further include:
[0093] When the first terminal is in a connected state with the second data transmission channel, it is determined that the second connection priority indicated by the second priority identifier is lower than a preset priority threshold.
[0094] Here, the first connection priority threshold is higher than or equal to the preset priority threshold; when the first connection priority is higher than the second connection priority, the playback device determines that the first connection priority meets the preset condition.
[0095] As an example, since the first terminal can also be connected to the second data transmission channel of the playback device, the first terminal can also use the second data transmission channel to send a control instruction to the playback device to control the playback device.
[0096] That is, in the present disclosure, the connection priority between the first terminal (mobile phone terminal) and the first data transmission channel (SPP channel) can be set to a low connection priority, while the connection priority between the second terminal (PC terminal) and the first data transmission channel can be set to a high connection priority, thereby facilitating the connection between the second terminal and the first data transmission channel.
[0097] It should be noted that the first terminal can support connection with the AT channel of the playback device, and can also support connection with the SPP channel of the playback device; however, the AT channel can usually connect more efficiently. Therefore, in actual use, the terminal device usually first uses the AT channel to connect to the playback device, and then in order to ensure the comprehensiveness of data transmission, the mobile terminal will continue to generate a connection instruction for connecting to the SPP channel of the playback device; at this time, the connection instruction can carry a second priority identifier (a priority identifier indicating a low connection priority) and be sent to the playback device.
[0098] In some embodiments, the playback device has a second data transmission channel, and the first terminal is connected to the second data transmission channel; and the device communication method further includes:
[0099] Generate control information, and send the control information to the playback device using a second data transmission channel.
[0100] Here, the playback device receives the control information and executes the control method indicated by the control information.
[0101] In some embodiments, the playback device has a second data transmission channel, and the first terminal is connected to the second data transmission channel; and the device communication method may further include:
[0102] Display control prompt information.
[0103] Here, the playback device receives the control information sent by the second terminal through the first data transmission channel, generates control prompt information according to the control mode indicated by the control information, and transmits the control prompt information to the first terminal through the second data transmission channel.
[0104] It can be seen that since the first terminal can be connected to the second data transmission channel of the playback device, both the first terminal and the second terminal can send control information to the playback device, and when the second terminal sends control information to the playback device, the first terminal can also display control prompt information of the control method indicated by the control information, so that the user of the first terminal knows that the second terminal is currently controlling the playback device.
[0105] In some embodiments, Figure 5 is a flow chart of a device communication method according to an exemplary embodiment. Figure 5 As shown, the device communication method can be applied to a second terminal (for example, a PC terminal). When the first data transmission channel between the second terminal and the playback device is in a disconnected state, and the first data transmission channel of the playback device is in a connected state with the first terminal, the device communication method may include the following steps.
[0106] In S51, a first priority identifier corresponding to the second terminal is determined, wherein the first priority identifier indicates a first connection priority between the second terminal and the first data transmission channel.
[0107] In S52, a connection instruction carrying a first priority identifier is sent to the playback device.
[0108] Here, a connection instruction carrying a first priority identifier is sent to the playback device so that the playback device determines that the first data transmission channel is connected to the second terminal and determines that the first data transmission channel is disconnected from the first terminal when the first connection priority indicated by the first priority identifier meets a preset condition.
[0109] As an example, when the first data transmission channel (SPP channel) of the playback device is connected to the first terminal, the second terminal can also obtain the connection with the first data transmission channel of the playback device by sending a connection instruction.
[0110] In some embodiments, when the second terminal is in a connected state with the first data transmission channel, the above-mentioned device control method may also include: generating control information, and sending the control information to the playback device using the first data transmission channel; wherein the playback device receives the control information and executes the control method indicated by the control information.
[0111] As an example, since the second terminal is already connected to the first data transmission channel of the playback device, the second terminal can use the first data transmission channel to send control information to the playback device.
[0112] In some embodiments, when the second terminal is in a connected state with the first data transmission channel, the device control method further includes:
[0113] Display control prompt information.
[0114] Here, the playback device has a second data transmission channel, the playback device receives control information sent by the first terminal through the second data transmission channel, generates control prompt information according to the control method indicated by the control information, and transmits the control prompt information to the second terminal using the first data transmission channel.
[0115] As an example, since the first terminal is connected to the second data transmission channel of the playback device, the first terminal can control the playback device, and when the first terminal controls the playback device, control prompt information is generated according to the control method to prompt the user of the second terminal that the current playback device is controlled by the first terminal.
[0116] In the present disclosure, both the mobile terminal and the PC can provide audio sources to the playback device, that is, both the mobile terminal and the PC can serve as audio source providing devices. Therefore, the playback device may correspond to two control devices. When the playback device receives control information, the control information may not be sent by the current audio source providing device. At this time, a prompt message can be sent to the audio source providing device to inform the audio source providing device that the current playback device has executed the control information.
[0117] For example, when a playback device is playing an audio source provided by a mobile terminal, if it receives a pause command sent by the playback device on the PC, a pause indication message can be generated and sent to the mobile terminal so that the user of the mobile terminal can know that the PC has currently performed a pause operation on the playback device.
[0118] That is, the prompt information can be understood as the user's instruction that the playback device is to be controlled, as well as information such as the specific control method and the control object.
[0119] The connection result may indicate a successful connection or a failed connection. For example, if the audio source providing device is a mobile terminal, when the SPP channel (first data transmission channel) of the playback device is connected to the PC, the mobile terminal may connect to the SPP channel, which may cause the connection to the SPP channel to fail.
[0120] It can be seen that in the present disclosure, the playback device can not only correspond to multiple control devices, but also the playback device can serve as a turnover station for the control information sent by the control device, so that other control devices may also receive the control information. In this way, after the playback device sends a state change, the control device as the playback device can know the reason for the state change, thereby making the interactive experience during use better.
[0121] Figure 6 is a block diagram of a device communication apparatus according to an exemplary embodiment. Figure 6 The device communication apparatus includes an execution module 620, a determination module 640, and a connection module 660.
[0122] The execution module 620 is configured to receive a connection instruction for the first data transmission channel sent by the second terminal when the first data transmission channel of the playback device is in a connected state with the first terminal;
[0123] The determination module 640 is configured to determine the first connection priority corresponding to the second terminal and the first data transmission channel according to the first priority identifier carried in the connection instruction;
[0124] The connection module 660 is configured to determine that the first data transmission channel is connected to the second terminal and to determine that the first data transmission channel is disconnected from the first terminal when the first connection priority meets a preset condition.
[0125] Optionally, the device communication device 600 is also specifically used to: when the above-mentioned first connection priority is higher than the second connection priority, determine that the above-mentioned first connection priority meets the preset conditions, wherein the above-mentioned second connection priority indicates the connection priority corresponding to the above-mentioned first data transmission channel and the above-mentioned first terminal.
[0126] Optionally, the playback device has a second data transmission channel, and the device communication device 600 is further configured to: in response to determining that the first data transmission channel is connected to the second terminal, generate connection indication information indicating that the first data transmission channel is connected to the second terminal;
[0127] When the second data transmission channel is in a connected state with the first terminal, the connection indication information is sent to the first terminal through the second data transmission channel.
[0128] Optionally, the device communication apparatus 600 is further specifically configured to: in response to receiving control information, execute a control method indicated by the control information, wherein the control information is generated by the first terminal or the second terminal.
[0129] Optionally, the device communication apparatus 600 is further configured to: when the control information is generated by the first terminal, the first terminal sends the control information by using the second data transmission channel;
[0130] In the case where the control information is generated by the second terminal, the second terminal sends the control information through the first data transmission channel.
[0131] Optionally, the device communication device 600 is also specifically used to: when the above-mentioned control information is generated by the above-mentioned first terminal and the above-mentioned playback device is currently provided with a sound source by the above-mentioned second terminal, generate first control prompt information corresponding to the control method indicated by the above-mentioned control information, and send the above-mentioned first control prompt information to the above-mentioned second terminal; or, when the above-mentioned control information is generated by the above-mentioned second terminal and the above-mentioned playback device is currently provided with a sound source by the above-mentioned first terminal, generate second control prompt information corresponding to the control method indicated by the above-mentioned control information, and send the above-mentioned second control prompt information to the above-mentioned second terminal.
[0132] Optionally, the control method includes at least one of the following:
[0133] Noise reduction, turn on gesture operation settings, turn off gesture operation settings, play, pause.
[0134] Figure 7 is a block diagram of a device communication apparatus according to an exemplary embodiment. Figure 7 In the case where the first terminal and the first data transmission channel of the playback device are connected, the device communication device includes a determination display module 720.
[0135] The determination and display module 720 is configured to determine that the first data transmission channel is in a disconnected state in response to receiving the disconnection prompt information sent by the above-mentioned playback device, and to display the above-mentioned disconnection prompt information; wherein the above-mentioned playback device is used to receive a connection instruction for the above-mentioned first data transmission channel sent by the second terminal, and determine the first connection priority between the above-mentioned first data transmission channel and the above-mentioned second terminal according to the first priority identifier carried by the above-mentioned connection instruction, and, when the above-mentioned first connection priority meets the preset conditions, the above-mentioned playback device is used to determine that the above-mentioned first data transmission channel is connected to the above-mentioned second terminal, and determine that the above-mentioned first data transmission channel is disconnected from the above-mentioned first terminal.
[0136] Optionally, the device communication device 700 is also specifically used to determine a second priority identifier corresponding to the above-mentioned first terminal in response to detecting a connection instruction for the above-mentioned first data transmission channel, wherein the above-mentioned second priority identifier indicates a second connection priority between the above-mentioned first terminal and the above-mentioned first data transmission channel; send the connection instruction carrying the above-mentioned second priority identifier to the above-mentioned playback device, wherein the above-mentioned playback device is used to determine the connection result between the above-mentioned first data transmission channel and the above-mentioned first terminal according to the above-mentioned second connection priority and the above-mentioned first connection priority, wherein the connection result includes: connection failure or connection success; display the connection result returned by the above-mentioned playback device.
[0137] Optionally, the above-mentioned playback device has the above-mentioned second data transmission channel; and the device communication device 700 is specifically used to determine that the second connection priority indicated by the above-mentioned second priority identifier is lower than the preset priority threshold when the above-mentioned first terminal and the above-mentioned second data transmission channel are in a connected state; wherein the above-mentioned first connection priority threshold is higher than or equal to the above-mentioned preset priority threshold; and when the above-mentioned first connection priority is higher than the second connection priority, the above-mentioned playback device determines that the above-mentioned first connection priority meets the preset conditions.
[0138] Optionally, the above-mentioned playback device has the above-mentioned second data transmission channel, and the above-mentioned first terminal is in a connected state with the above-mentioned second data transmission channel; and the device communication device 700 is specifically used to: generate control information, and use the above-mentioned second data transmission channel to send the control information to the above-mentioned playback device; wherein the above-mentioned playback device receives the control information and executes the control method indicated by the control information.
[0139] Optionally, the playback device has the second data transmission channel, and the first terminal is connected to the second data transmission channel; and the device communication device 700 is further used to: display control prompt information;
[0140] The playback device receives the control information sent by the second terminal through the first data transmission channel, generates the control prompt information according to the control method indicated by the control information, and transmits the control prompt information to the first terminal through the second data transmission channel.
[0141] Figure 8 is a block diagram of a device communication apparatus according to an exemplary embodiment. Figure 8 When the first data transmission channel between the second terminal and the playback device is in a disconnected state, and the first data transmission channel between the playback device and the first terminal is in a connected state, the device communication device includes a determination module 820 and a sending module 840.
[0142] A determination module 820 is configured to determine a first priority identifier corresponding to the second terminal;
[0143] The sending module 840 is configured to send a connection instruction carrying the above-mentioned first priority identifier to the above-mentioned playback device; so that the above-mentioned playback device determines that the above-mentioned first data transmission channel is connected to the above-mentioned second terminal when the first connection priority indicated by the above-mentioned first priority identifier meets the preset conditions, and determines that the above-mentioned first data transmission channel is disconnected from the above-mentioned first terminal.
[0144] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0145] The present disclosure also provides a computer-readable storage medium having computer program instructions stored thereon, and when the program instructions are executed by a processor, the steps of the device communication method provided by the present disclosure are implemented.
[0146] Fig. 9 1 is a block diagram of an apparatus 900 for device communication according to an exemplary embodiment. For example, the apparatus 900 may be a headset, a speaker, a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0147] Reference Fig. 9 , the device 900 may include one or more of the following components: a processing component 902 , a memory 904 , a power component 906 , a multimedia component 908 , an audio component 910 , an input / output interface 912 , a sensor component 914 , and a communication component 916 .
[0148] The processing component 902 generally controls the overall operation of the device 900, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 902 may include one or more processors 920 to execute instructions to complete all or part of the steps of the above-mentioned method of device communication. In addition, the processing component 902 may include one or more modules to facilitate the interaction between the processing component 902 and other components. For example, the processing component 902 may include a multimedia module to facilitate the interaction between the multimedia component 908 and the processing component 902.
[0149] The memory 904 is configured to store various types of data to support operations on the device 900. Examples of such data include instructions for any application or method operating on the device 900, contact data, phone book data, messages, pictures, videos, etc. The memory 904 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0150] The power supply component 906 provides power to the various components of the device 900. The power supply component 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 900.
[0151] The multimedia component 908 includes a screen that provides an output interface between the above-mentioned device 900 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The above-mentioned touch sensor can not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the above-mentioned touch or slide operation. In some embodiments, the multimedia component 908 includes a front camera and / or a rear camera. When the device 900 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have a focal length and optical zoom capability.
[0152] The audio component 910 is configured to output and / or input audio signals. For example, the audio component 910 includes a microphone (MIC), and when the device 900 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 904 or sent via the communication component 916. In some embodiments, the audio component 910 also includes a speaker for outputting audio signals.
[0153] The input / output interface 912 provides an interface between the processing component 902 and the peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0154] The sensor assembly 914 includes one or more sensors for providing various aspects of status assessment for the device 900. For example, the sensor assembly 914 can detect the open / closed state of the device 900, the relative positioning of components, such as the display and keypad of the device 900, and the sensor assembly 914 can also detect the position change of the device 900 or a component of the device 900, the presence or absence of user contact with the device 900, the orientation or acceleration / deceleration of the device 900, and the temperature change of the device 900. The sensor assembly 914 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 914 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 914 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0155] The communication component 916 is configured to facilitate wired or wireless communication between the device 900 and other devices. The device 900 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0156] In an exemplary embodiment, the device 900 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above-mentioned device communication method.
[0157] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 904 including instructions, and the instructions can be executed by the processor 920 of the apparatus 900 to complete the device communication method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0158] In addition to being an independent electronic device, the above-mentioned device can also be a part of an independent electronic device. For example, in one embodiment, the device can be an integrated circuit (IC) or a chip, wherein the integrated circuit can be an IC or a collection of multiple ICs; the chip can include but is not limited to the following types: GPU (Graphics Processing Unit), CPU (Central Processing Unit), FPGA (Field Programmable Gate Array), DSP (Digital Signal Processor), ASIC (Application Specific Integrated Circuit), SOC (System on Chip, SoC), etc. The above-mentioned integrated circuit or chip can be used to execute executable instructions (or codes) to implement the above-mentioned device communication method. The executable instructions can be stored in the integrated circuit or chip, or can be obtained from other devices or equipment, for example, the integrated circuit or chip includes a processor, a memory, and an interface for communicating with other devices. The executable instruction may be stored in the memory, and when the executable instruction is executed by the processor, the above-mentioned device communication method may be implemented; alternatively, the integrated circuit or chip may receive the executable instruction through the interface and transmit it to the processor for execution, so as to implement the above-mentioned device communication method.
[0159] In another exemplary embodiment, a computer program product is further provided. The computer program product includes a computer program executable by a programmable device, and the computer program has a code portion for executing the above-mentioned device communication method when executed by the programmable device.
[0160] Fig.10 1 is a block diagram of an apparatus 1000 for device communication according to an exemplary embodiment. For example, the apparatus 1000 may be provided as a server. Fig.10, the device 1000 includes a processing component 1022, which further includes one or more processors, and a memory resource represented by a memory 1032, for storing instructions that can be executed by the processing component 1022, such as an application. The application stored in the memory 1032 may include one or more modules, each of which corresponds to a set of instructions. In addition, the processing component 1022 is configured to execute instructions to perform the above method: when the first data transmission channel of the above-mentioned playback device is in a connected state with the first terminal, receive a connection instruction for the above-mentioned first data transmission channel sent by the second terminal; determine the first connection priority corresponding to the above-mentioned second terminal and the above-mentioned first data transmission channel according to the first priority identifier carried by the above-mentioned connection instruction; when the above-mentioned first connection priority meets the preset condition, determine that the above-mentioned first data transmission channel is connected to the above-mentioned second terminal, and determine that the above-mentioned first data transmission channel is disconnected from the above-mentioned first terminal. Alternatively, in a case where the first terminal is connected to the first data transmission channel of the playback device, in response to receiving the disconnection prompt information sent by the playback device, it is determined that the first data transmission channel is in a disconnected state, and the disconnection prompt information is displayed; wherein the playback device is used to receive a connection instruction for the first data transmission channel sent by the second terminal, determine the first connection priority between the first data transmission channel and the second terminal according to the first priority identifier carried by the connection instruction, and, when the first connection priority meets a preset condition, the playback device is used to determine that the first data transmission channel is connected to the second terminal, and determine that the first data transmission channel is disconnected from the first terminal. Alternatively, when the first data transmission channel between the second terminal and the playback device is in a disconnected state, and the first data transmission channel of the playback device is in a connected state with the first terminal, a first priority identifier corresponding to the second terminal is determined, wherein the first priority identifier indicates a first connection priority between the second terminal and the first data transmission channel; a connection instruction carrying the first priority identifier is sent to the playback device; so that the playback device determines that the first data transmission channel is connected to the second terminal when the first connection priority indicated by the first priority identifier meets a preset condition, and determines that the first data transmission channel is disconnected from the first terminal.
[0161] The device 1000 may also include a power supply component 1026 configured to perform power management of the device 1000, a wired or wireless network interface 1050 configured to connect the device 1000 to a network, and an input / output interface 1058. The device 1000 may operate based on an operating system stored in the memory 1032, such as Windows Server 2000. TM , Mac OS X TM , UnixTM , Linux TM , FreeBSD TM or similar.
[0162] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the present disclosure. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0163] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A device communication method, characterized in that: Applied to a playback device, the method comprises: When the first data transmission channel of the playback device is in a connected state with the first terminal, receiving a connection instruction for the first data transmission channel sent by the second terminal; determining, according to the first priority identifier carried in the connection instruction, a first connection priority corresponding to the second terminal and the first data transmission channel; When the first connection priority meets a preset condition, it is determined that the first data transmission channel is connected to the second terminal, and it is determined that the first data transmission channel is disconnected from the first terminal.
2. The method according to claim 1, characterized in that The method further comprises: In a case where the first connection priority is higher than a second connection priority, it is determined that the first connection priority meets a preset condition, wherein the second connection priority indicates a connection priority corresponding to the first data transmission channel and the first terminal.
3. The method according to claim 1, characterized in that The playback device has a second data transmission channel, and the method further includes: In response to determining that the first data transmission channel is connected to the second terminal, generating connection indication information indicating that the first data transmission channel is connected to the second terminal; When the second data transmission channel is in a connected state with the first terminal, the connection indication information is sent to the first terminal through the second data transmission channel.
4. The method according to claim 3, characterized in that The method further comprises: In response to receiving control information, a control mode indicated by the control information is executed, wherein the control information is generated by the first terminal or the second terminal.
5. The method according to claim 4, characterized in that The method further comprises: In a case where the control information is generated by the first terminal, the first terminal sends the control information by using the second data transmission channel; In a case where the control information is generated by the second terminal, the second terminal sends the control information through the first data transmission channel.
6. The method according to claim 3, characterized in that The method further comprises: When the control information is generated by the first terminal and the playback device is currently provided with a sound source by the second terminal, generating first control prompt information corresponding to the control mode indicated by the control information, and sending the first control prompt information to the second terminal; or, When the control information is generated by the second terminal and the playback device is currently provided with a sound source by the first terminal, second control prompt information corresponding to the control method indicated by the control information is generated, and the second control prompt information is sent to the second terminal.
7. The method according to claim 4 or 6, characterized in that: The control method includes at least one of the following: Noise reduction, turn on gesture operation settings, turn off gesture operation settings, play, pause.
8. A device communication method, characterized in that: Applied to a first terminal, when the first terminal is connected to a first data transmission channel of a playback device, the device communication method includes: In response to receiving the disconnection prompt information sent by the playback device, determining that the first data transmission channel is in a disconnected state, and displaying the disconnection prompt information; Among them, the playback device is used to receive a connection instruction for the first data transmission channel sent by the second terminal, determine the first connection priority between the first data transmission channel and the second terminal according to the first priority identifier carried by the connection instruction, and, when the first connection priority meets a preset condition, the playback device is used to determine that the first data transmission channel is connected to the second terminal, and determine that the first data transmission channel is disconnected from the first terminal.
9. The method according to claim 8, characterized in that The method further comprises: In response to detecting a connection instruction for the first data transmission channel, determining a second priority identifier corresponding to the first terminal, wherein the second priority identifier indicates a second connection priority between the first terminal and the first data transmission channel; sending a connection instruction carrying the second priority identifier to the playback device, wherein the playback device is used to determine a connection result between the first data transmission channel and the first terminal according to the second connection priority and the first connection priority, wherein the connection result includes: connection failure or connection success; Display the connection result returned by the playback device.
10. The method according to claim 9, characterized in that The playback device has a second data transmission channel; and the method further includes: When the first terminal and the second data transmission channel are in a connected state, determining that the second connection priority indicated by the second priority identifier is lower than a preset priority threshold; Among them, the first connection priority threshold is higher than or equal to the preset priority threshold; when the first connection priority is higher than the second connection priority, the playback device determines that the first connection priority meets the preset condition.
11. The method according to claim 8, characterized in that The playback device has the second data transmission channel, and the first terminal is connected to the second data transmission channel; and the method further includes: Generate control information, and send the control information to the playback device using the second data transmission channel; wherein the playback device receives the control information and executes the control method indicated by the control information.
12. The method according to claim 8, characterized in that The playback device has the second data transmission channel, and the first terminal is connected to the second data transmission channel; And, the method further comprises: Display control prompt information; The playback device receives control information sent by the second terminal through the first data transmission channel, generates the control prompt information according to the control method indicated by the control information, and transmits the control prompt information to the first terminal through the second data transmission channel.
13. A device communication method, characterized in that: Applied to a second terminal, when the second terminal is in a disconnected state with a first data transmission channel of a playback device, and the first data transmission channel of the playback device is in a connected state with the first terminal, the device communication method includes: Determining a first priority identifier corresponding to the second terminal; A connection instruction carrying the first priority identifier is sent to the playback device, so that the playback device determines that the first data transmission channel is connected to the second terminal and determines that the first data transmission channel is disconnected from the first terminal when the first connection priority indicated by the first priority identifier meets a preset condition.
14. The method according to claim 13, characterized in that In a case where the second terminal is in a connected state with the first data transmission channel, the method further includes: Generate control information, and send the control information to the playback device using the first data transmission channel; wherein the playback device receives the control information and executes the control method indicated by the control information.
15. The method according to claim 13, characterized in that In a case where the second terminal is in a connected state with the first data transmission channel, the method further includes: Display control prompt information; Among them, the playback device has a second data transmission channel, the playback device receives control information sent by the first terminal through the second data transmission channel, generates the control prompt information according to the control method indicated by the control information, and transmits the control prompt information to the second terminal using the first data transmission channel.
16. A device communication apparatus, characterized in that: Applied to a playback device, the device communication device comprises: An execution module is configured to receive a connection instruction for the first data transmission channel sent by the second terminal when the first data transmission channel of the playback device is in a connected state with the first terminal; a determining module configured to determine a first connection priority corresponding to the second terminal and the first data transmission channel according to a first priority identifier carried in the connection instruction, The connection module is configured to determine that the first data transmission channel is connected to the second terminal and to determine that the first data transmission channel is disconnected from the first terminal when the first connection priority meets a preset condition.
17. A device communication apparatus, characterized in that: Applied to a first terminal, when the first terminal is connected to a first data transmission channel of a playback device, the device communication device includes: a determination and display module, configured to, in response to receiving the disconnection prompt information sent by the playback device, determine that the first data transmission channel is in a disconnected state, and display the disconnection prompt information; Among them, the playback device is used to receive a connection instruction for the first data transmission channel sent by the second terminal, determine the first connection priority between the first data transmission channel and the second terminal according to the first priority identifier carried by the connection instruction, and, when the first connection priority meets a preset condition, the playback device is used to determine that the first data transmission channel is connected to the second terminal, and determine that the first data transmission channel is disconnected from the first terminal.
18. A device communication apparatus, characterized in that: Applied to a second terminal, when the second terminal and a first data transmission channel of a playback device are in a disconnected state, and the first data transmission channel of the playback device and the first terminal are in a connected state, the device communication device includes: A determination model is configured to determine a first priority identifier corresponding to the second terminal; a sending module, configured to send a connection instruction carrying the first priority identifier to the playback device; Among them, the playback device is used to determine, based on the priority identifier, that the first data transmission channel is connected to the second terminal and that the first data transmission channel is disconnected from the first terminal when the first connection priority indicated by the first priority identifier meets a preset condition.
19. A device communication apparatus, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, when the processor is configured to execute the instructions, the steps of the method described in any one of claims 1-7, any one of claims 8-12, or any one of claims 13-15 are implemented.
20. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the program instructions are executed by a processor, the steps of the method described in any one of claims 1 to 15 are implemented.