Parameter setting method, device, equipment and storage medium
By configuring multiple QoS parameters before starting the Bluetooth audio stream and extending the CIG state machine, the problem of being unable to switch QoS parameters after the audio stream is started is solved, enabling flexible adjustment of audio stream service quality and meeting user needs, and improving adaptability. sex and compatibility.
Patent Information
- Application Number
- CN202080106957.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-07
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2040-12-07
AI Technical Summary
After the Bluetooth audio stream is started, the QoS parameters of the audio stream cannot be reconfigured or switched, resulting in users being unable to flexibly adjust the service quality of the audio stream and unable to meet switching needs.
Before the audio stream starts, configure multiple QoS parameters for the audio group to ensure that it can switch to different QoS parameters after startup. By extending the CIG state machine and related operations, the audio group can be switched between inactive and active states. Support Configuration of multiple QoS parameters.
It realizes flexible adjustment of audio stream QoS parameters to meet user switching needs, avoids switching failures, is compatible with the original CIG state machine, and improves adaptability and compatibility.
Smart Images

Figure CN116490923B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of Bluetooth technology, and in particular to a parameter setting method, apparatus, device and storage medium. Background Art
[0002] In order to improve the Bluetooth audio characteristics and standardize the use of Bluetooth application products, SIG (Bluetooth Special Interest Group) proposed the LE (Low Energy) Audio standard.
[0003] The LE Audio standard includes a series of Profiles / Services, each of which is responsible for different functions. The Profiles / Services mainly involved in LE Unicast Audio include BAP (Basic Audio Profile) and ASCS (Audio Stream Control Service). ASCS defines a state machine for ASE (Audio Stream Endpoint). ASE refers to the stream endpoint existing at the Audio Sink end. ASCS defines a series of operations for AudioSource to operate the ASE at the audio sink end to achieve the purpose of configuring and controlling the audio stream. For example, after the Audio Source sets the QoS (Quality of Service) parameters of the audio stream, it configures the QoS parameters to the audio sink and starts the audio stream, so that the audio sink controls the audio stream according to the QoS parameters.
[0004] However, in the related art, after the audio stream is started, the audio source cannot reconfigure the QoS parameters corresponding to the audio stream to the audio receiver, and cannot meet the user's demand for switching the QoS parameters of the audio stream. Summary of the invention
[0005] The present application provides a parameter setting method, device, equipment and storage medium. The technical solution is as follows:
[0006] On the one hand, an embodiment of the present application provides a parameter setting method, the method comprising:
[0007] n QoS parameters are set according to the first parameter setting command, where the n QoS parameters refer to QoS parameters corresponding to the first audio group, and n is an integer greater than 1 or equal to 1.
[0008] On the other hand, an embodiment of the present application provides a parameter setting device, the device comprising:
[0009] The first setting module is used to set n QoS parameters according to a first parameter setting command, where the n QoS parameters refer to QoS parameters corresponding to the first audio group, and n is an integer greater than 1 or equal to 1.
[0010] On the other hand, an embodiment of the present application provides a device, comprising: a processor, and a transceiver connected to the processor; wherein:
[0011] The processor is used to set n quality of service QoS parameters according to a first parameter setting command, where the n QoS parameters refer to QoS parameters corresponding to the first audio group, and n is an integer greater than 1 or equal to 1.
[0012] On the other hand, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. The computer program is used to be executed by a processor of a device to implement the parameter setting method as described above.
[0013] On the other hand, an embodiment of the present application provides a chip, which includes a programmable logic circuit and / or program instructions. When the chip runs on a device, it is used to implement the parameter setting method as described above.
[0014] On the other hand, an embodiment of the present application provides a computer program product, which is used to implement the above-mentioned parameter setting method when the computer program product is run on a device.
[0015] The technical solution provided by the embodiments of the present application may have the following beneficial effects:
[0016] By configuring multiple QoS parameters for the audio group before starting the audio stream in the audio group, it is ensured that after the audio stream is subsequently started, it can switch to different QoS parameters to play the audio stream, avoiding the problem that the audio group can only switch back and forth between the activated state and the inactivated state after being in the inactivated state, and cannot configure the QoS parameters and cannot switch the QoS parameters of the audio stream, and realizes flexible adjustment of the QoS parameters of the audio stream, and meets the user's demand for switching the QoS parameters of the audio stream. In addition, in the embodiment of the present application, an audio stream in the audio group corresponds to a QoS parameter, thereby avoiding the situation where the audio stream corresponding to the QoS parameter that is subsequently switched to has not changed and causes the switching failure, and improves the effectiveness of the QoS parameter switching corresponding to the audio stream. In addition, in the embodiment of the present application, after the audio stream is started, although the QoS parameters are switched, the audio group still switches between the inactivated state and the activated state, so that the embodiment of the present application can be compatible with the original CIG state machine and related operations, and improve the adaptability and compatibility of the solution. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments 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 of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0018] Figure 1 It is a schematic diagram of a state machine and related operations of an ASE provided by an embodiment of the present application;
[0019] Figure 2 is a schematic diagram of a CIG state machine and related operations provided by an embodiment of the present application;
[0020] Figure 3 It is a schematic diagram of the configuration and startup process of QoS parameters of an audio stream provided by an embodiment of the present application;
[0021] Figure 4 is a schematic diagram of an application system provided by an embodiment of the present application;
[0022] Figure 5 is a flow chart of a parameter setting method provided by an embodiment of the present application;
[0023] Figure 6 is a schematic diagram of the configuration, startup and switching process of an audio stream provided by an embodiment of the present application;
[0024] Figure 7 is a flow chart of a parameter setting method provided by an embodiment of the present application;
[0025] Figure 8 is a schematic diagram of a state machine of an extended CIG and related operations provided by an embodiment of the present application;
[0026] Fig. 9 is a block diagram of a parameter setting device provided by an embodiment of the present application;
[0027] Fig.10 is a block diagram of a parameter setting device provided by another embodiment of the present application;
[0028] Fig.11 is a structural block diagram of a device provided by an embodiment of the present application;
[0029] Fig.12 is a schematic diagram of the configuration, startup and switching process of an audio stream provided by another embodiment of the present application;
[0030] Fig.13 This is a schematic diagram of the configuration, startup and switching process of the audio stream provided by another embodiment of the present application. DETAILED DESCRIPTION
[0031] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0032] The network architecture and business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. A person of ordinary skill in the art can appreciate that with the evolution of the network architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0033] As can be seen from the above background technology, ASCS defines a state machine for ASE. Figure 1 As shown, ASE includes the following states: Codec Configured, QoS Configured, Disabling, Enabling, Streaming, Releasing, and Idle.
[0034] To switch ASE between various states, ASCS defines a series of operations for the audio source to operate the ASE at the audio sink end. In one example, Figure 1As shown, the following operations are defined in ASCS for audio sources to operate ASE: Config Codec operation, Config QoS operation, Enable operation, Receiver Start Ready operation, Disable operation, Receiver Stop Ready operation, Update Metadata operation, Release operation, and Released operation.
[0035] In one example, after the audio source sets the QoS parameters of the audio stream, it configures the QoS parameters to the audio receiver and starts the audio stream, so that the audio receiver controls the audio stream according to the QoS parameters. For the audio source, the LEAudio standard provides some commands to provide the ability to configure CIG (ConnectedIsochronous Group) for the profile / service.
[0036] Please refer to Figure 2 , which shows the state machine and related operations of the CIG provided by an embodiment of the present application. Figure 2 As can be seen, CIG includes the following states: Configured, Active, Inactive, No CIG; CIG includes the following related operations: LE Set CIG Parameters command, LE Remove CIG command, LE Create CIS command, Disconnect command. Among them, the LE Audio standard stipulates some necessary conditions (requirements) for the use of LE Set Parameters command, as shown below.
[0037] The CIG_ID (Identifier) parameter identifies a CIG and is assigned by the Central's Host and passed to the Peripheral's Host via the Link Layer during the creation of the CIS. If the CIG_ID does not exist, the controller shall first create a new CIG. Once the CIG is created (either by this command or a previous command), the controller shall modify or add the CIS configuration in the CIG indicated by the CIG_ID and update all parameters applicable to the CIG. If the host issues this command when the CIG is not in a configurable state, the controller shall return the error code "Command Not Allowed" (0x0C).
[0038] Therefore, the LE parameter setting command can only be processed correctly when the CIG does not exist or when the CIG already exists and is in the configuration state, otherwise it returns failure.
[0039] In one example, based on the state machine and related operations of the CIG, the state machine and related operations of the ASE, such as Figure 3 As shown, the configuration and startup process of the QoS parameters of the audio stream is as follows.
[0040] When the target CIG does not exist, that is, when the CIG is in the no CIG state, the unicast client (Unicast C1ient) sends a codec configuration request to the unicast server (Unicast Server) to request the operation of configuring codec configuration A. In response to the codec configuration request, the unicast server sends a codec configuration notification (Notification) to the unicast client. At this time, the ASE in the unicast server enters the codec configuration state. When the unicast client initiates the LE set CIG parameter command, it creates a CIG_ID, and creates CIS_ID1 and the QoS parameter A corresponding to the CIS_ID1 under the CIG_ID. At this time, the state of the CIG switches from the no CIG state to the configuration state. Afterwards, the unicast client sends a QoS parameter configuration request to the unicast server to request the operation of configuring QoS parameter A. In response to the QoS parameter configuration request, the unicast server sends a QoS parameter configuration notification to the unicast client. At this time, the ASE enters the QoS parameter configuration state.
[0041] Optionally, the unicast client can start the audio stream, so that the ASE enters the streaming state and the CIG enters the activated state. Afterwards, the unicast client can choose to disable or release the audio stream, that is, the unicast client sends a disable request or a release request to the unicast server. The unicast server responds to the request of the unicast client and sends a notification to the unicast client, so that the ASE enters the codec configuration state and the CIG enters the inactive state.
[0042] From the above description, it can be known that the LE parameter setting command can only be processed correctly when the CIG does not exist or when the CIG already exists and is in the configuration state, otherwise it will return failure. Therefore, when the CIG is in the activated state or in the inactivated state, the unicast client cannot process the LE parameter setting command correctly. Figure 3 As shown, after starting the audio stream and when the CIG is in an inactive state, the unicast client initiates an LE parameter setting command to set the QoS parameter B corresponding to CIS_ID1. However, precisely because the CIG is in an inactive state, the unicast client cannot process the command correctly, and the connection layer returns an error code of "command not allowed".
[0043] Therefore, in the above example, after the audio stream is started, the unicast client will not be able to reconfigure the QoS parameters corresponding to the audio stream to the unicast server, and the user's need to switch the QoS parameters of the audio stream cannot be met. Figure 3 As shown, before the audio stream is started, ASE was in the codec configuration state for a period of time. At this time, CIG was in the configuration state, that is, it was able to configure the QoS parameters of the audio stream; after the audio stream was disabled or released, ASE was also in the codec configuration state, but at this time, CIG was in the inactive state, that is, it was unable to configure the QoS parameters of the audio stream. Therefore, when ASE is in the codec configuration state, the behavior of whether it can configure the QoS parameters of the audio stream is inconsistent.
[0044] Based on this, the embodiment of the present application provides a parameter setting method, which can be used to solve the above technical problems. Below, the technical solution provided by the present application is introduced and explained through several embodiments. It should be noted that in the embodiment of the present application, for the convenience of description, CIG is called an audio group and CIS is called an audio stream, and those skilled in the art should be able to understand their meanings.
[0045] Please refer to Figure 4 , which shows a schematic diagram of an application system provided by an embodiment of the present application. The application system includes: a client device 10 and a server device 20.
[0046] The client device 10 refers to a device that has a unicast client installed and running. Optionally, the client device 10 is the above-mentioned audio source (Audio Source). The embodiment of the present application does not limit the device type of the client device 10. Optionally, the client device 10 includes: a mobile phone, a tablet computer, a game console, an e-book reader, a multimedia playback device, a wearable device, a PC (Personal Computer), a smart TV, a smart car, and other devices.
[0047] The server device 20 is used to provide unicast services for unicast clients. Optionally, the server device 20 is the above-mentioned audio sink. The embodiment of the present application does not limit the device type of the server device 20. Optionally, the unicast server 20 includes: a server, a computer, a host and other devices. Optionally, when the server device 20 is a server, the server device 20 can be a server, a server cluster composed of multiple servers, or a cloud computing center.
[0048] Optionally, the client device 10 and the server device 20 communicate with each other via BLE (Bluetooth Low Energy). In one example, the unicast client installed and running in the client device 10 can send a request to the server device 20 via BLE to request the configuration of the ASE in the server device 20. In response to the request of the unicast client, the server device 20 can send a notification to the unicast client and switch the state of the ASE.
[0049] Please refer to Figure 5 , which shows a flow chart of a parameter setting method provided by an embodiment of the present application. The method can be applied to a client, and optionally, the client is the above-mentioned unicast client. Below, the technical solution of the present application is introduced and explained by taking the method applied to a unicast client as an example. The method includes the following steps.
[0050] Step 510: n QoS parameters are set according to the first parameter setting command, where the n QoS parameters refer to QoS parameters corresponding to the first audio group, and n is an integer greater than 1 or equal to 1.
[0051] The first parameter setting command is used to set relevant parameters of the first audio group. Optionally, the first parameter setting command is LE Set CIG Parameters command. Optionally, before initiating the first parameter setting command and in the absence of the first audio group, the first audio group is in a no audio group state, i.e., No CIG; before initiating the first parameter setting command and in the presence of the first audio group, the first audio group is in a configured state, i.e., Configured. The first parameter setting command can trigger the first audio group to switch from the no audio group state to the configured state.
[0052] In an embodiment of the present application, the unicast client may set n QoS parameters corresponding to the first audio group according to the first parameter setting command, where n is an integer greater than 1 or equal to 1, that is, in an embodiment of the present application, the unicast client sets multiple QoS parameters corresponding to the first audio group according to the first parameter setting command, and also ensures that the purpose of QoS parameter switching can be achieved later. Optionally, before initiating the first parameter setting command, and in the absence of the first audio group, the unicast client may also set at least one of the following information according to the first parameter setting command: the identifier of the first audio group, i.e., CIG_ID; the audio stream included in the first audio group, and the identifier of the audio stream, i.e., CIS_ID. In addition, since the server supports different QoS parameters, if the server only supports one QoS parameter, the unicast client cannot achieve the purpose of switching different QoS parameters later by setting multiple QoS parameters for the first audio group. Therefore, in one example, the above step 510 includes: when the server supports at least two QoS parameters for the first audio group, setting n QoS parameters according to the first parameter setting command.
[0053] The first audio group includes multiple audio streams. Optionally, different audio streams in the first audio group correspond to different QoS parameters among n QoS parameters. Optionally, an audio stream in the first audio group corresponds to one QoS parameter among n QoS parameters. Optionally, the unicast client can set n QoS parameters in combination with these two conditions, that is, the unicast client ensures that different audio streams correspond to different QoS parameters, and ensures that one audio stream corresponds to one QoS parameter. It should be understood that the embodiments of the present application do not limit whether one QoS parameter corresponds to one audio stream or to multiple different audio streams. The limitation of one audio stream corresponding to one QoS parameter here is to ensure that it is possible to switch to different audio streams later to achieve the purpose of switching QoS parameters.
[0054] Based on the condition that "one audio stream corresponds to one QoS parameter", when setting n QoS parameters, the unicast client can set the corresponding QoS parameters for each audio stream in the first audio group, and can also set the corresponding QoS parameters for some audio streams in the first audio group, that is, the number of audio streams included in the first audio group is greater than or equal to n.
[0055] In an example, after the above step 510, the method further includes: sending a first parameter configuration request to the server, where the first parameter configuration request includes a first QoS parameter among the n QoS parameters.
[0056] After the unicast client completes setting multiple QoS parameters for the first audio group, it can initiate a Config QoS operation, i.e., a Config QoS operation. Optionally, the unicast client sends a first parameter configuration request to the server to configure the first QoS parameter among the n QoS parameters to the server, so that the first parameter configuration request includes the first QoS parameter. Optionally, the first parameter configuration request also includes at least one of the following: an identifier of the first audio group, an identifier of the audio stream corresponding to the first QoS parameter.
[0057] In an embodiment of the present application, before the unicast client configures the first QoS parameter to the server, it can first initiate a configuration codec operation, that is, configure the codec configuration for the server. Optionally, the unicast client sends a first codec configuration request to the server to configure the first codec configuration to the server. Based on this, optionally, the QoS parameter configured by the unicast client to the server corresponds to the first codec configuration, that is, the first QoS parameter corresponds to the first codec configuration. Optionally, the configuration codec operation is Config Codec operation.
[0058] In the case where the unicast client initiates the QoS configuration operation, the ASE in the server switches to the QoS configuration operation. According to the state machine and related operations of the ASE, at this time, if the unicast client initiates the startup operation, the ASE in the server will switch to the startup state, and after the startup is completed, it will enter the streaming state. Based on this, in order to achieve the effect of audio streaming playback, in an example, after the unicast client sends the first parameter configuration request to the server, it also includes: starting the audio stream corresponding to the first QoS parameter in the first audio group.
[0059] In an embodiment of the present application, the unicast client configures multiple QoS parameters for the first audio group before starting the first audio stream. It can be seen from the state machine and related operations of the ASE that after the first audio group is started and when the first audio group is in an inactive state, the unicast client can initiate a create CIS command, namely, LE Create CIS command, to switch to other audio streams in the first audio group. Therefore, during the audio stream playback process, if the unicast client has a need to switch QoS parameters, the unicast client can switch from the audio stream corresponding to the first QoS parameter to the audio stream corresponding to other QoS parameters after initiating a disable operation or a release operation to disable or release the audio stream corresponding to the first QoS parameter.
[0060] Based on this, in one example, the above method also includes: when the first audio group is in an inactive state, sending a second parameter configuration request to the server, the second parameter configuration request including a second QoS parameter among n QoS parameters; wherein the audio stream corresponding to the first QoS parameter in the first audio group is different from the audio stream corresponding to the second QoS parameter in the first audio group.
[0061] After disabling or releasing the audio stream corresponding to the first QoS parameter, the unicast client is in an inactive state. At this time, the unicast client can initiate the configuration of the QoS parameter again. Optionally, the unicast client sends a second parameter configuration request to the server to configure the second QoS parameter among the n QoS parameters to the server, so that the second parameter configuration request includes the second QoS parameter. Optionally, the second parameter configuration request also includes at least one of the following: an identifier of the first audio group, an identifier of the audio stream corresponding to the second QoS parameter.
[0062] In the embodiment of the present application, before the unicast client configures the second QoS parameter to the server, it can first initiate a configuration codec operation, that is, configure the codec configuration for the server, and optionally, the unicast client sends a second codec configuration request to the server to configure the second codec configuration to the server. Based on this, optionally, the QoS parameter configured by the unicast client to the server corresponds to the second codec configuration, that is, the second QoS parameter corresponds to the second codec configuration.
[0063] In the case where the unicast client initiates the QoS configuration operation, the ASE in the server switches to the QoS configuration operation. According to the state machine and related operations of the ASE, at this time, if the unicast client initiates the startup operation, the ASE in the server will switch to the startup state, and after the startup is completed, it will enter the streaming state. Based on this, in order to achieve the effect of audio streaming playback again, in an example, after sending the second parameter configuration request to the server, it also includes: starting the audio stream corresponding to the second QoS parameter in the first audio group.
[0064] In summary, the technical solution provided by the embodiment of the present application configures multiple QoS parameters for the audio group before starting the audio stream in the audio group, thereby ensuring that after the subsequent audio stream is started, it can switch to different QoS parameters to play the audio stream, avoiding the problem that the audio group can only switch back and forth between the activated state and the inactivated state after being in the inactivated state, and cannot configure the QoS parameters, and cannot switch the QoS parameters of the audio stream, thereby realizing flexible adjustment of the QoS parameters of the audio stream, and meeting the user's demand for switching the QoS parameters of the audio stream. In addition, in the embodiment of the present application, an audio stream in the audio group corresponds to a QoS parameter, thereby avoiding the situation where the audio stream corresponding to the QoS parameter that is subsequently switched to has not changed and causes the switching failure, and improving the effectiveness of the QoS parameter switching corresponding to the audio stream. In addition, in the embodiment of the present application, after the audio stream is started, although the QoS parameters are switched, the audio group still switches between the inactivated state and the activated state, so that the embodiment of the present application can be compatible with the original CIG state machine and related operations, and improve the adaptability and compatibility of the solution.
[0065] Below, we take an example to illustrate the above Figure 5 Please refer to the examples for details. Figure 6 , which shows a schematic diagram of the configuration, startup and switching process of the audio stream provided by an embodiment of the present application.
[0066] When the target CIG does not exist, that is, when the CIG is in the no CIG state, the unicast client sends a codec configuration request to the unicast server to request the configuration of codec configuration A. In response to the codec configuration request, the unicast server sends a codec configuration notification to the unicast client. At this time, the ASE in the unicast server enters the codec configuration state. When the unicast client initiates the LE set CIG parameter command, it creates a CIG_ID and creates the following three sets of CIS and QoS parameters under the CIG_ID: CIS_ID1 and its corresponding QoS parameter A, CIS_ID2 and its corresponding QoS parameter B, CIS_ID3 and its corresponding QoS parameter C. In addition, QoS parameter A corresponds to codec configuration A, QoS parameter B corresponds to codec configuration B, and QoS parameter C corresponds to codec configuration C.
[0067] At this time, the state of the CIG switches from the no CIG state to the configuration state. Afterwards, the unicast client sends a QoS parameter configuration request to the unicast server to request the operation of configuring QoS parameter A corresponding to the codec configuration A. In response to the QoS parameter configuration request, the unicast server sends a QoS parameter configuration notification to the unicast client. At this time, the ASE enters the QoS parameter configuration state.
[0068] Optionally, the unicast client can start the audio stream corresponding to QoS parameter A, that is, the audio stream CIS_ID1, so that ASE enters the streaming state and CIG enters the activated state. Afterwards, if the unicast client needs to switch QoS parameters, the unicast client can choose to disable or release the audio stream, that is, the unicast client sends a disable request or a release request to the unicast server. In response to the request of the unicast client, the unicast server sends a notification to the unicast client, so that ASE enters the codec configuration state and CIG enters the inactive state.
[0069] When CIG is in an inactive state, the unicast client can send a codec configuration request to the unicast server again to request the configuration of codec configuration B. In response to the codec configuration request, the unicast server sends a codec configuration notification to the unicast client. At this time, the ASE in the unicast server enters the codec configuration state. Afterwards, the unicast client sends a QoS parameter configuration request to the unicast server to request the configuration of QoS parameter B corresponding to codec configuration B. In response to the QoS parameter configuration request, the unicast server sends a QoS parameter configuration notification to the unicast client. At this time, the ASE enters the QoS parameter configuration state. The unicast client initiates a start operation to trigger the audio stream to enter the streaming state again. At this time, the started audio stream is the audio stream corresponding to QoS parameter B, that is, the audio stream CIS_ID2, thereby realizing the playback of the audio stream again. Based on this, the effect of switching QoS parameters after the audio stream is started can be achieved.
[0070] Please refer to Figure 7 , which shows a flow chart of a parameter setting method provided by an embodiment of the present application. The method can be applied to a client, and optionally, the client is the above-mentioned unicast client. The method includes the following steps.
[0071] Step 710: After the first audio stream in the first audio group is started and the first audio group is in a configuration state, a third QoS parameter is set according to a second parameter setting command, where the third QoS parameter refers to a QoS parameter corresponding to the first audio stream.
[0072] By the above Figure 3 Examples and Figure 2 It can be seen that based on the original CIG state machine and related operations, after the audio stream is started, if it is necessary to play the audio stream in the audio group, the state of the audio group can only be switched between the active state and the inactive state. Therefore, after the audio stream is started, based on the original CIG state machine and related operations, the audio group cannot be in the configuration state, and thus the configuration of QoS parameters cannot be realized.
[0073] To solve the above problems, the embodiment of the present application provides an extended CIG state machine and related operations, so that after the audio stream is started, the audio group can still switch back to the configuration state, thereby realizing the reconfiguration of the QoS parameters. Based on this, in the embodiment of the present application, after the first audio stream in the first audio group is started, and when the first audio group is in the configuration state, the unicast client sets the third QoS parameter according to the second parameter setting command. Among them, the third QoS parameter refers to the QoS parameter corresponding to the first audio stream, that is, the embodiment of the present application changes the QoS parameter corresponding to the first audio stream after the first audio stream is started.
[0074] According to the original CIG state machine and related operations, when the audio stream is started, the audio group is in the activated state. Later, if the QoS parameters of the audio stream need to be switched, the unicast client releases or disables the audio stream. At this time, the audio group is in the inactive state. Figure 8 As shown, the extended CIG state machine and related operations provided in the embodiment of the present application realize the switching of the audio group between the inactive state and the configuration state. When the audio group is in the inactive state, the unicast client initiates the LE set QoS parameter command, thereby controlling the audio group to switch from the inactive state to the configuration state, so as to realize the reconfiguration of the QoS parameters of the audio stream.
[0075] Based on this, in one example, the above step 710 includes: after the first audio stream is started and the first audio group is in an inactive state, initiating a second parameter setting command; when the first audio group is in a configuration state, setting a third QoS parameter according to the second parameter setting command; wherein, when the client initiates the second parameter setting command, the first audio group switches from an inactive state to a configuration state. Optionally, the above initiating the second parameter setting command includes: after the first audio stream is started, initiating a cancel connection command; when the first audio group is in an inactive state, initiating the second parameter setting command; wherein, when the first audio stream is started, the first audio group is in an active state; when the client initiates the cancel connection command, the first audio group switches from an active state to an inactive state.
[0076] After reconfiguring the QoS parameters corresponding to the first audio stream, the unicast client needs to configure the reconfigured QoS parameters to the server. Based on this, in an example, after the above step 510, it also includes: sending a third parameter configuration request to the server, and the third parameter configuration request includes a third QoS parameter. Optionally, the third parameter configuration request also includes at least one of the following: an identifier of the first audio group, an identifier of the first audio stream.
[0077] In the case where the unicast client initiates the QoS configuration operation, the ASE in the server switches to the QoS configuration operation. According to the state machine and related operations of the ASE, at this time, if the unicast client initiates the startup operation, the ASE in the server will switch to the startup state, and after the startup is completed, it will enter the streaming state. Based on this, in order to achieve the effect of audio streaming playback again, in an example, after sending the third parameter configuration request to the server, it also includes: restarting the first audio stream.
[0078] To summarize, the technical solution provided in the embodiment of the present application, by extending the CIG state machine and related operations, modifies the restriction conditions of the original LE setting CIG parameter command, so that after the audio stream in the audio group is started, the audio group jumps out of the conversion between the inactive state and the active state, and switches the audio group from the inactive state back to the configured state through the LE setting CIG parameter command, thereby realizing the reconfiguration of the QoS parameters of the audio stream, realizing flexible adjustment of the QoS parameters of the audio stream, and meeting the user's needs for switching the QoS parameters of the audio stream.
[0079] Below, we take an example to illustrate the above Figure 7 The embodiments are described in detail. Figure 7 For the extended CIG state machine and related operations shown, please refer to Fig.12 The parameter setting method provided in the embodiment of the present application includes the following contents.
[0080] When the target CIG does not exist, that is, when the CIG is in the non-CIG state, the unicast client sends a codec configuration request to the unicast server to request the operation of configuring codec configuration A. In response to the codec configuration request, the unicast server sends a codec configuration notification to the unicast client. At this time, the ASE in the unicast server enters the codec configuration state. When the unicast client initiates the LE set CIG parameter command, it creates a CIG_ID and creates CIS_ID1 and its corresponding QoS parameter A under the CIG_ID.
[0081] At this time, the state of the CIG switches from the no CIG state to the configuration state. Afterwards, the unicast client sends a QoS parameter configuration request to the unicast server to request the operation of configuring QoS parameter A corresponding to the codec configuration A. In response to the QoS parameter configuration request, the unicast server sends a QoS parameter configuration notification to the unicast client. At this time, the ASE enters the QoS parameter configuration state.
[0082] Optionally, the unicast client can start the audio stream corresponding to QoS parameter A, that is, the audio stream CIS_ID1, so that ASE enters the streaming state and CIG enters the activated state. Afterwards, if the unicast client needs to switch QoS parameters, the unicast client can choose to disable or release the audio stream, that is, the unicast client sends a disable request or a release request to the unicast server. In response to the request of the unicast client, the unicast server sends a notification to the unicast client, so that ASE enters the codec configuration state and CIG enters the inactive state.
[0083] When the CIG is in an inactive state, the unicast client can send a codec configuration request to the unicast server again to request the operation of configuring codec configuration D. In response to the codec configuration request, the unicast server sends a codec configuration notification to the unicast client. At this time, the ASE in the unicast server enters the codec configuration state.
[0084] Afterwards, the unicast client initiates the LE setting CIG parameter command, so that the CIG switches from the inactive state to the configuration state, and the unicast client can reconfigure the QoS parameters for the CIS (i.e., CIS_ID1) corresponding to the QoS parameter A. In the embodiment of the present application, the QoS parameter reconfigured by the unicast client for CIS_ID1 is QoS parameter D. Afterwards, the unicast client sends a QoS parameter configuration request to the unicast server to request the configuration of QoS parameter D corresponding to the codec configuration D. In response to the QoS parameter configuration request, the unicast server sends a QoS parameter configuration notification to the unicast client, at which point the ASE enters the QoS parameter configuration state. The unicast client initiates a start operation to trigger the audio stream CIS_ID1 to enter the streaming state again.
[0085] It should be noted that, for the convenience of description, the embodiments of the present application are respectively Figure 5 Examples and Figure 7 The embodiments are described and explained. Figure 5 Examples and Figure 7 The solutions described in the embodiments can be used separately, but in practical applications, Figure 5 Examples and Figure 7 The technical solutions provided in the embodiments can also be used in combination. That is, Figure 5 The technical solution for switching QoS parameters corresponding to different audio streams provided in the embodiment can also be based on Figure 7 The extended CIG state machine and related operations provided in the embodiment should be understood to also fall within the protection scope of this application.
[0086] Below, the introduction Figure 5 Examples and Figure 7 Combination of embodiments. In one example, based on Figure 5 Examples and Figure 7 For a combination of embodiments, please refer to Fig.13 The parameter setting method provided in the embodiment of the present application includes the following contents.
[0087] When the target CIG does not exist, that is, when the CIG is in the no CIG state, the unicast client sends a codec configuration request to the unicast server to request the configuration of codec configuration A. In response to the codec configuration request, the unicast server sends a codec configuration notification to the unicast client. At this time, the ASE in the unicast server enters the codec configuration state. When the unicast client initiates the LE set CIG parameter command, it creates a CIG_ID and creates the following three sets of CIS and QoS parameters under the CIG_ID: CIS_ID1 and its corresponding QoS parameter A, CIS_ID2 and its corresponding QoS parameter B, CIS_ID3 and its corresponding QoS parameter C. In addition, QoS parameter A corresponds to codec configuration A, QoS parameter B corresponds to codec configuration B, and QoS parameter C corresponds to codec configuration C.
[0088] At this time, the state of the CIG switches from the no CIG state to the configuration state. Afterwards, the unicast client sends a QoS parameter configuration request to the unicast server to request the operation of configuring QoS parameter A corresponding to the codec configuration A. In response to the QoS parameter configuration request, the unicast server sends a QoS parameter configuration notification to the unicast client. At this time, the ASE enters the QoS parameter configuration state.
[0089] Optionally, the unicast client can start the audio stream corresponding to QoS parameter A, that is, the audio stream CIS_ID1, so that ASE enters the streaming state and CIG enters the activated state. Afterwards, if the unicast client needs to switch QoS parameters, the unicast client can choose to disable or release the audio stream, that is, the unicast client sends a disable request or a release request to the unicast server. In response to the request of the unicast client, the unicast server sends a notification to the unicast client, so that ASE enters the codec configuration state and CIG enters the inactive state.
[0090] Based on the above Figure 5 In this embodiment, after starting the audio stream and the CIG is in an inactive state, the unicast client can switch the QoS parameter A using other QoS parameters configured for the CIG before starting the audio stream. Figure 7In this embodiment, after starting the audio stream and when the CIG is in an inactive state, the unicast client can also control the CIG to switch from an inactive state to a configured state through the LE set CIG parameter command, thereby configuring new QoS parameters for the CIG, and then using the new QoS parameters to switch QoS parameter A. For the case where the unicast client uses other QoS parameters configured for the CIG before starting the audio stream to switch QoS parameter A, please refer to the above Figure 6 Description of the embodiment: Below, the case where a unicast client configures new QoS parameters for a CIG is described.
[0091] When the CIG is in an inactive state, the unicast client can send a codec configuration request to the unicast server again to request the operation of configuring codec configuration E. In response to the codec configuration request, the unicast server sends a codec configuration notification to the unicast client. At this time, the ASE in the unicast server enters the codec configuration state.
[0092] Afterwards, the unicast client initiates the LE setting CIG parameter command, so that the CIG switches from the inactive state to the configuration state, and the unicast client can reconfigure the QoS parameters for the CIS (i.e., CIS_ID1) corresponding to the QoS parameter A. In the embodiment of the present application, the QoS parameter reconfigured by the unicast client for CIS_ID1 is QoS parameter E. Afterwards, the unicast client sends a QoS parameter configuration request to the unicast server to request the operation of configuring QoS parameter E corresponding to the codec configuration E. In response to the QoS parameter configuration request, the unicast server sends a QoS parameter configuration notification to the unicast client, at which point the ASE enters the QoS parameter configuration state. The unicast client initiates a start operation to trigger the audio stream CIS_ID1 to enter the streaming state again.
[0093] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0094] Please refer to Fig. 9 , which shows a block diagram of a parameter setting device provided by an embodiment of the present application. The device has the function of implementing the above-mentioned client-side method example. The function can be implemented by hardware, or by hardware executing corresponding software. The device can be the client device introduced above, or it can be set in the client device to implement the above-mentioned client-side parameter setting method. Fig. 9 As shown, the device 900 may include: a first setting module 910.
[0095] The first setting module 910 is used to set n QoS parameters according to a first parameter setting command, where the n QoS parameters refer to QoS parameters corresponding to the first audio group, and n is an integer greater than 1 or equal to 1.
[0096] In an example, different audio streams in the first audio group correspond to different QoS parameters among the n QoS parameters.
[0097] In an example, one audio stream in the first audio group corresponds to one QoS parameter among the n QoS parameters.
[0098] In an example, the number of audio streams included in the first audio group is greater than or equal to the n.
[0099] In an example, the first setting module 910 is used to: when the server supports at least two QoS parameters for the first audio group, set the n QoS parameters according to the first parameter setting command.
[0100] In one example, if Fig.10 As shown, the device 900 also includes: a first sending module 920, used to send a first parameter configuration request to the server, where the first parameter configuration request includes a first QoS parameter among the n QoS parameters.
[0101] In an example, the first QoS parameter corresponds to a first codec configuration; wherein the first codec configuration is a codec configuration included in a first codec configuration request sent by the client to the server.
[0102] In one example, if Fig.10 As shown, the apparatus 900 further includes: a first starting module 930, configured to start the audio stream corresponding to the first QoS parameter in the first audio group.
[0103] In one example, if Fig.10 As shown, the device 900 also includes: a second sending module 940, which is used to send a second parameter configuration request to the server when the first audio group is in an inactive state, and the second parameter configuration request includes a second QoS parameter among the n QoS parameters; wherein the audio stream corresponding to the first QoS parameter in the first audio group is different from the audio stream corresponding to the second QoS parameter in the first audio group.
[0104] In an example, the second QoS parameter corresponds to a second codec configuration; wherein the second codec configuration is a codec configuration included in a second codec configuration request sent by the client to the server.
[0105] In one example, if Fig.10 As shown, the apparatus 900 further includes: a second starting module 950, configured to start the audio stream corresponding to the second QoS parameter in the first audio group.
[0106] In one example, if Fig.10 As shown, the device 900 also includes: a second setting module 960, which is used to set a third QoS parameter according to a second parameter setting command after the first audio stream in the first audio group is started and when the first audio group is in a configuration state, and the third QoS parameter refers to the QoS parameter corresponding to the first audio stream.
[0107] In one example, if Fig.10 As shown, the second setting module 960 includes: a command initiating unit 962, used to receive the second parameter setting command after the first audio stream is started and when the first audio group is in an inactive state; a second setting unit 964, used to set the third QoS parameter according to the second parameter setting command when the first audio group is in the configuration state; wherein, when the client receives the second parameter setting command, the first audio group switches from the inactive state to the configuration state.
[0108] In one example, if Fig.10 As shown, the command initiating unit 962 is used to: initiate a cancellation command after the first audio stream is started; and initiate the second parameter setting command when the first audio group is in the inactive state; wherein, when the first audio stream is started, the first audio group is in the active state; when the client initiates the cancellation command, the first audio group switches from the active state to the inactive state.
[0109] In one example, if Fig.10 As shown, the device 900 further includes: a third sending module 970, configured to send a third parameter configuration request to the server, wherein the third parameter configuration request includes the third QoS parameter.
[0110] In one example, if Fig.10 As shown, the device 900 further includes: a third starting module 980, configured to restart the first audio stream.
[0111] In one example, the device is arranged in a client.
[0112] In one example, the client is a unicast client.
[0113] In summary, the technical solution provided by the embodiment of the present application configures multiple QoS parameters for the audio group before starting the audio stream in the audio group, thereby ensuring that after the subsequent audio stream is started, it can switch to different QoS parameters to play the audio stream, avoiding the problem that the audio group can only switch back and forth between the activated state and the inactivated state after being in the inactivated state, and cannot configure the QoS parameters, and cannot switch the QoS parameters of the audio stream, thereby realizing flexible adjustment of the QoS parameters of the audio stream, and meeting the user's demand for switching the QoS parameters of the audio stream. In addition, in the embodiment of the present application, an audio stream in the audio group corresponds to a QoS parameter, thereby avoiding the situation where the audio stream corresponding to the QoS parameter that is subsequently switched to has not changed and causes the switching failure, and improving the effectiveness of the QoS parameter switching corresponding to the audio stream. In addition, in the embodiment of the present application, after the audio stream is started, although the QoS parameters are switched, the audio group still switches between the inactivated state and the activated state, so that the embodiment of the present application can be compatible with the original CIG state machine and related operations, and improve the adaptability and compatibility of the solution.
[0114] In addition, the technical solution provided in the embodiment of the present application, by extending the state machine and related operations of the CIG, modifies the restriction conditions of the original LE setting CIG parameter command, so that after the audio stream in the audio group is started, the audio group jumps out of the conversion between the inactive state and the active state, and the audio group is switched from the inactive state back to the configured state through the LE setting CIG parameter command, thereby realizing the reconfiguration of the QoS parameters of the audio stream, realizing flexible adjustment of the QoS parameters of the audio stream, and meeting the user's needs for switching the QoS parameters of the audio stream.
[0115] One point that needs to be explained is that the device provided in the above embodiment only uses the division of the above-mentioned functional modules as an example to implement its functions. In actual applications, the above-mentioned functions can be assigned to different functional modules according to actual needs, that is, the content structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0116] 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.
[0117] Please refer to Fig.11 , which shows a schematic diagram of the structure of a device 110 provided by an embodiment of the present application. The device may be the above-mentioned client device, so that the device may be used to execute the parameter setting method on the client device side. Specifically, the device 110 may include: a processor 111, and a transceiver 112 connected to the processor 111; wherein:
[0118] The processor 111 includes one or more processing cores. The processor 111 executes various functional applications and information processing by running software programs and modules.
[0119] The transceiver 112 includes a receiver and a transmitter. Optionally, the transceiver 112 is a communication chip.
[0120] In one example, the device 110 further includes: a memory and a bus. The memory is connected to the processor via the bus. The memory can be used to store a computer program, and the processor is used to execute the computer program to implement the various steps performed by the client device in the above method embodiment.
[0121] In addition, the memory may be implemented by any type of volatile or non-volatile storage device or a combination thereof, including but not limited to: RAM (Random-Access Memory) and ROM (Read-Only Memory), EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory or other solid-state storage technology, CD-ROM (Compact Disc Read-Only Memory), DVD (Digital Video Disc) or other optical storage, tape cassettes, magnetic tapes, disk storage or other magnetic storage devices. Among them:
[0122] The processor 111 is configured to set n QoS parameters according to a first parameter setting command, where the n QoS parameters are QoS parameters corresponding to the first audio group, and n is an integer greater than 1 or equal to 1.
[0123] In an example, different audio streams in the first audio group correspond to different QoS parameters among the n QoS parameters.
[0124] In an example, one audio stream in the first audio group corresponds to one QoS parameter among the n QoS parameters.
[0125] In an example, the number of audio streams included in the first audio group is greater than or equal to the n.
[0126] In an example, the processor 111 is configured to: when the server supports at least two QoS parameters for the first audio group, set the n QoS parameters according to the first parameter setting command.
[0127] In an example, the transceiver 112 is used to: send a first parameter configuration request to the server, where the first parameter configuration request includes a first QoS parameter among the n QoS parameters.
[0128] In an example, the first QoS parameter corresponds to a first codec configuration; wherein the first codec configuration is a codec configuration included in a first codec configuration request sent by the client to the server.
[0129] In an example, the processor 111 is further configured to: start an audio stream corresponding to the first QoS parameter in the first audio group.
[0130] In one example, the transceiver 112 is also used to: when the first audio group is in an inactive state, send a second parameter configuration request to the server, the second parameter configuration request including a second QoS parameter among the n QoS parameters; wherein the audio stream corresponding to the first QoS parameter in the first audio group is different from the audio stream corresponding to the second QoS parameter in the first audio group.
[0131] In an example, the second QoS parameter corresponds to a second codec configuration; wherein the second codec configuration is a codec configuration included in a second codec configuration request sent by the client to the server.
[0132] In an example, the processor 111 is further configured to: start an audio stream corresponding to the second QoS parameter in the first audio group.
[0133] In one example, the processor 111 is further used to: after the first audio stream in the first audio group is started and when the first audio group is in a configuration state, set a third QoS parameter according to a second parameter setting command, where the third QoS parameter refers to the QoS parameter corresponding to the first audio stream.
[0134] In one example, the transceiver 112 is further used to initiate the second parameter setting command after the first audio stream is started and when the first audio group is in an inactive state; the processor 111 is further used to set the third QoS parameter according to the second parameter setting command when the first audio group is in the configuration state; wherein, when the client initiates the second parameter setting command, the first audio group switches from the inactive state to the configuration state.
[0135] In one example, the transceiver 112 is further used to: initiate a cancel connection command after the first audio stream is started; and initiate the second parameter setting command when the first audio group is in the inactive state; wherein, when the first audio stream is started, the first audio group is in the active state; when the client initiates the cancel connection command, the first audio group switches from the active state to the inactive state.
[0136] In an example, the transceiver 112 is further used to: send a third parameter configuration request to the server, where the third parameter configuration request includes the third QoS parameter.
[0137] In an example, the processor 111 is further configured to: restart the first audio stream.
[0138] In one example, a client is installed in the device, and the client is used to execute the parameter setting method on the client device side.
[0139] In one example, the client is a unicast client.
[0140] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. The computer program is used to be executed by a processor of a device to implement the parameter setting method on the client device side as described above.
[0141] An embodiment of the present application further provides a chip, which includes a programmable logic circuit and / or program instructions. When the chip runs on a device, it is used to implement the parameter setting method on the client device side as described above.
[0142] The embodiment of the present application also provides a computer program product, which, when executed on a device, is used to implement the parameter setting method on the client device side as described above.
[0143] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented with hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein the communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.
[0144] The above description is only an exemplary embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A parameter setting method, It is characterized in that The method comprises: Setting n quality of service QoS parameters according to the first parameter setting command, where the n QoS parameters refer to QoS parameters corresponding to the first audio group, and n is an integer greater than 1 or equal to 1; Wherein, after setting n QoS parameters according to the first parameter setting command, the method further includes: Sending a first parameter configuration request to the server, where the first parameter configuration request includes a first QoS parameter among the n QoS parameters; The first QoS parameter corresponds to a first codec configuration; wherein the first codec configuration is a codec configuration included in a first codec configuration request sent by the client to the server.
2. The method according to claim 1, It is characterized in that Different audio streams in the first audio group correspond to different QoS parameters among the n QoS parameters.
3. The method according to claim 1, It is characterized in that An audio stream in the first audio group corresponds to one QoS parameter among the n QoS parameters.
4. The method according to any one of claims 1 to 3, It is characterized in that The number of audio streams included in the first audio group is greater than or equal to n.
5. The method according to any one of claims 1 to 3, It is characterized in that The step of setting n QoS parameters according to the first parameter setting command includes: In a case where the server supports at least two QoS parameters for the first audio group, the n QoS parameters are set according to the first parameter setting command.
6. The method according to claim 1, It is characterized in that After sending the first parameter configuration request to the server, the method further includes: Start an audio stream corresponding to the first QoS parameter in the first audio group.
7. The method according to any one of claims 1 to 3, It is characterized in that The method further comprises: When the first audio group is in an inactive state, sending a second parameter configuration request to the server, where the second parameter configuration request includes a second QoS parameter among the n QoS parameters; The audio stream corresponding to the first QoS parameter in the first audio group is different from the audio stream corresponding to the second QoS parameter in the first audio group.
8. The method according to claim 7, It is characterized in that The second QoS parameter corresponds to a second codec configuration; The second codec configuration is the codec configuration included in the second codec configuration request sent by the client to the server.
9. The method according to claim 7, It is characterized in that After sending the second parameter configuration request to the server, the method further includes: Start the audio stream corresponding to the second QoS parameter in the first audio group.
10. The method according to any one of claims 1 to 3, It is characterized in that The method further comprises: After the first audio stream in the first audio group is started and when the first audio group is in a configuration state, a third QoS parameter is set according to a second parameter setting command, where the third QoS parameter refers to a QoS parameter corresponding to the first audio stream.
11. The method according to claim 10, It is characterized in that The step of setting the third QoS parameter according to the second parameter setting command includes: After the first audio stream is started and when the first audio group is in an inactive state, initiating the second parameter setting command; When the first audio group is in the configuration state, setting the third QoS parameter according to the second parameter setting command; Wherein, when the client initiates the second parameter setting command, the first audio group is switched from the inactive state to the configuration state.
12. The method according to claim 11, It is characterized in that The initiating the second parameter setting command comprises: After the first audio stream is started, initiating a cancel connection command; Initiating the second parameter setting command when the first audio group is in the inactive state; When the first audio stream is started, the first audio group is in an activated state; when the client initiates the cancel connection command, the first audio group is switched from the activated state to the inactivated state.
13. The method according to claim 10, It is characterized in that After the third QoS parameter is set according to the second parameter setting command, the method further includes: Send a third parameter configuration request to the server, where the third parameter configuration request includes the third QoS parameter.
14. The method according to claim 13, It is characterized in that After sending the third parameter configuration request to the server, the method further includes: Restart the first audio stream.
15. The method according to any one of claims 1 to 3, It is characterized in that The method is applied in a client.
16. The method according to claim 15, It is characterized in that The client is a unicast client.
17. A parameter setting device, It is characterized in that The device comprises: A first setting module, configured to set n quality of service QoS parameters according to a first parameter setting command, wherein the n QoS parameters refer to QoS parameters corresponding to the first audio group, and n is an integer greater than 1 or equal to 1; Wherein, the device further comprises: A first sending module, configured to send a first parameter configuration request to a server after the first setting module sets n QoS parameters according to a first parameter setting command, wherein the first parameter configuration request includes a first QoS parameter among the n QoS parameters; The first QoS parameter corresponds to a first codec configuration; wherein the first codec configuration is a codec configuration included in a first codec configuration request sent by the client to the server.
18. The device according to claim 17, It is characterized in that Different audio streams in the first audio group correspond to different QoS parameters among the n QoS parameters.
19. The device according to claim 17, It is characterized in that An audio stream in the first audio group corresponds to one QoS parameter among the n QoS parameters.
20. The device according to any one of claims 17 to 19, It is characterized in that The number of audio streams included in the first audio group is greater than or equal to n.
21. The device according to any one of claims 17 to 19, It is characterized in that The first setting module is used to: In a case where the server supports at least two QoS parameters for the first audio group, the n QoS parameters are set according to the first parameter setting command.
22. The device according to claim 17, It is characterized in that The device also includes: The first starting module is used to start the audio stream corresponding to the first QoS parameter in the first audio group.
23. The device according to any one of claims 17 to 19, It is characterized in that The device also includes: A second sending module, configured to send a second parameter configuration request to the server when the first audio group is in an inactive state, wherein the second parameter configuration request includes a second QoS parameter among the n QoS parameters; The audio stream corresponding to the first QoS parameter in the first audio group is different from the audio stream corresponding to the second QoS parameter in the first audio group.
24. The device according to claim 23, It is characterized in that The second QoS parameter corresponds to a second codec configuration; The second codec configuration is the codec configuration included in the second codec configuration request sent by the client to the server.
25. The device according to claim 23, It is characterized in that The device also includes: The second starting module is used to start the audio stream corresponding to the second QoS parameter in the first audio group.
26. The device according to any one of claims 17 to 19, It is characterized in that The device also includes: The second setting module is used to set a third QoS parameter according to a second parameter setting command after the first audio stream in the first audio group is started and when the first audio group is in a configuration state, where the third QoS parameter refers to the QoS parameter corresponding to the first audio stream.
27. The device according to claim 26, It is characterized in that The second setting module includes: a command initiating unit, configured to initiate the second parameter setting command after the first audio stream is started and when the first audio group is in an inactive state; a second setting unit, configured to set the third QoS parameter according to the second parameter setting command when the first audio group is in the configuration state; Wherein, when the client initiates the second parameter setting command, the first audio group is switched from the inactive state to the configuration state.
28. The device according to claim 27, It is characterized in that The command initiating unit is used to: After the first audio stream is started, initiating a cancel connection command; Initiating the second parameter setting command when the first audio group is in the inactive state; When the first audio stream is started, the first audio group is in an activated state; when the client initiates the cancel connection command, the first audio group is switched from the activated state to the inactivated state.
29. The device according to claim 26, It is characterized in that The device also includes: The third sending module is used to send a third parameter configuration request to the server, where the third parameter configuration request includes the third QoS parameter.
30. The device according to claim 29, It is characterized in that The device also includes: The third starting module is used to restart the first audio stream.
31. The device according to any one of claims 17 to 19, It is characterized in that The device is arranged in the client.
32. The device according to claim 31, It is characterized in that The client is a unicast client.
33. An electronic device, It is characterized in that The electronic device comprises: a memory, a processor, and a transceiver connected to the processor; wherein: The memory is used to store a computer program, and the processor is used to execute the computer program to implement the parameter setting method according to any one of claims 1 to 16.
34. A computer readable storage medium, It is characterized in that The storage medium stores a computer program, and the computer program is used to be executed by a processor of the device to implement the parameter setting method according to any one of claims 1 to 16.
Citation Information
Patent Citations
Method for operating a bluetooth device
CN114026894A
Wireless audio system, and audio communication method and device
WO2020107491A1
