Movatterモバイル変換


[0]ホーム

URL:


CN113470668B - Display device adjusting Bluetooth method for setting A2DP (analog to digital) codes - Google Patents

Display device adjusting Bluetooth method for setting A2DP (analog to digital) codes
Download PDF

Info

Publication number
CN113470668B
CN113470668BCN202110711122.1ACN202110711122ACN113470668BCN 113470668 BCN113470668 BCN 113470668BCN 202110711122 ACN202110711122 ACN 202110711122ACN 113470668 BCN113470668 BCN 113470668B
Authority
CN
China
Prior art keywords
coding
wifi module
state
setting
avdtp
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110711122.1A
Other languages
Chinese (zh)
Other versions
CN113470668A (en
Inventor
萧维廷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Visual Technology Co Ltd
Original Assignee
Hisense Visual Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Visual Technology Co LtdfiledCriticalHisense Visual Technology Co Ltd
Priority to CN202110711122.1ApriorityCriticalpatent/CN113470668B/en
Publication of CN113470668ApublicationCriticalpatent/CN113470668A/en
Application grantedgrantedCritical
Publication of CN113470668BpublicationCriticalpatent/CN113470668B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

The present application provides seed display device a method of adjusting bluetooth A2DP coding settings. The apparatus comprises: a WiFi module; the processing module is configured to determine a state parameter of the WiFi module when the AVDTP link is in an initialization state or when the WiFi module state change event occurs after the AVDTP link is initialized; determining coding settings matched with the state parameters of the WiFi module according to the state parameters of the WiFi module; and the sending module is configured to send the coding setting to a receiving end device connected with the display device. The coding setting of the display device can be guaranteed to be always suitable for the WiFi interference degree, so that the interference of WiFi signals to transmission data is reduced, and the tone quality problem caused by improper coding setting when WiFi interference exists is avoided.

Description

Display device adjusting Bluetooth method for setting A2DP (analog to digital) codes
The application is provided in 2017, month 08 and 14, application number: 201710693152.8, name: a divisional application of 'a method and a device for adjusting Bluetooth A2DP coding setting'.
Technical Field
The present disclosure relates to the field of wireless communications technologies, and in particular, to a display device and a method for adjusting bluetooth A2DP (Advanced Distribution Profile, abbreviated as A2 DP) coding settings.
Background
Bluetooth technology is a wireless communication technology operating in the 2.4GHz band, and the advent of bluetooth technology has enabled users to listen to music through bluetooth technology. The implementation principle is as follows: when a Source device (SRC for short, for example, may be a smart tv) and a Sink device (Sink for short, SNK for short, for example, may be a bluetooth speaker) establish an AVDTP (Audio/video Distribution Transport Protocol, AVDTP for short) link, the Source device encodes the Audio data, then sends the Audio data to the Sink device through the AVDTP link established between the two devices, and after receiving the Audio data, the Sink device decodes and plays the Audio data. When playing music by bluetooth technology, the coding setting of source equipment is particularly important to ensure high-quality sound quality.
Currently, the source device generally determines the coding settings according to a method comprising: and acquiring the coding information supported by the receiving end equipment, and selecting high-tone-quality coding setting (low distortion rate and high code rate) from the coding information supported by the source end equipment and the receiving end equipment as the current coding setting.
However, when encoding audio files using a high-quality encoding setup, a longer 2.4GHz band over-the-air transmission time is required in order to deliver A2DP audio packets for the same amount of play time. In this way, the problem of sound quality (noise, distortion) will occur more easily in the presence of 2.4GHz WiFi signal interference.
Disclosure of Invention
In view of this, the present application provides a method and apparatus for adjusting bluetooth A2DP coding settings, so as to solve the problem of sound quality caused by improper coding settings when there is 2.4GHz band WiFi signal interference in the existing method.
A first aspect of the present application provides a method for adjusting bluetooth A2DP coding settings, where the method is applied to a source device, and the method includes:
determining coding setting matched with the current state parameters of a WiFi module of the source terminal equipment for the source terminal equipment when the AVDTP link is in an initialization state or when a WiFi module state change event occurs after the initialization of the AVDTP link;
determining an enabling strategy of the coding setting according to the current state of the AVDTP link;
and starting the coding setting by adopting the starting strategy, and sending the coding setting to a receiving end device connected with the source end device when the coding setting is started.
A second aspect of the present application provides an apparatus for adjusting bluetooth A2DP coding settings, the apparatus being applied to a source device, the apparatus comprising: a processing module and a transmitting module, wherein,
the processing module is used for determining the coding setting matched with the current state parameter of the WiFi module of the source terminal equipment for the source terminal equipment when the AVDTP link is in an initialization state or when a WiFi module state change event occurs after the initialization of the AVDTP link;
The processing module is further configured to determine an enabling policy of the coding setting according to the current state of the AVDTP link, and enable the coding setting by using the enabling policy
And the sending module is used for sending the coding setting to receiving end equipment connected with the source end equipment when the coding setting is started.
In a third aspect, the present application provides a display device, including:
a WiFi module; the processing module is configured to determine a state parameter of the WiFi module when the AVDTP link is in an initialization state or when the WiFi module state change event occurs after the AVDTP link is initialized; wherein, the WiFi module state change event includes: the WiFi module is turned on, the WiFi module is turned off, the WiFi module is connected with a 2.4GHz router, the WiFi module is disconnected with the 2.4GHz disconnection router, the WiFi module starts to scan a 2.4GHz channel, and the WiFi module finishes scanning the 2.4GHz channel; determining coding settings matched with the state parameters of the WiFi module according to the state parameters of the WiFi module; and the sending module is configured to send the coding setting to a receiving end device connected with the display device.
In a fourth aspect, the present application provides a method of adjusting bluetooth A2DP coding settings, the method comprising:
Determining a state parameter of the WiFi module when the AVDTP link is in an initialization state or when the WiFi module state change event occurs after the AVDTP link is initialized; wherein, the WiFi module state change event includes: the WiFi module is turned on, the WiFi module is turned off, the WiFi module is connected with a 2.4GHz router, the WiFi module is disconnected with the 2.4GHz disconnection router, the WiFi module starts to scan a 2.4GHz channel, and the WiFi module finishes scanning the 2.4GHz channel; determining coding settings matched with the state parameters of the WiFi module according to the state parameters of the WiFi module; and transmitting the coding setting to receiving end equipment connected with the display equipment.
According to the display device and the method for adjusting Bluetooth A2DP coding setting, when an AVDTP link is in an initialization state or a WiFi module state change event occurs after the AVDTP link is initialized, coding setting matched with the current state parameters of a WiFi module of source equipment is determined for the source equipment, and an enabling strategy of the coding setting is determined according to the current state of the AVDTP link, and then the coding setting is enabled by the enabling strategy, and when the coding setting is enabled, the coding setting is sent to a receiving end equipment connected with the source equipment. Therefore, the coding equipment of the source terminal equipment can be ensured to be always suitable for the WiFi interference degree, so that the interference of WiFi signals on transmission data is reduced, and the tone quality problem caused by improper coding setting when WiFi interference exists is avoided. In addition, by determining the enabling strategy of the code setting and further adopting the determined enabling strategy to enable the code setting, seamless adjustment can be realized, so that the influence on a user caused by adjusting the code setting is reduced.
Drawings
Fig. 1 is an application scenario schematic diagram of a method and an apparatus for adjusting bluetooth A2DP coding settings provided in the present application;
FIG. 2 is a flowchart of a first embodiment of a method for adjusting Bluetooth A2DP encoding settings according to the present disclosure;
fig. 3 is a flowchart of a second embodiment of a method for adjusting bluetooth A2DP coding settings according to the present application;
fig. 4 is a flowchart of a third embodiment of a method for adjusting bluetooth A2DP coding settings according to the present application;
fig. 5 is a flowchart of a fourth embodiment of a method for adjusting bluetooth A2DP coding settings according to the present application;
fig. 6 is a schematic structural diagram of an embodiment of a device for adjusting bluetooth A2DP coding set according to the present application.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as detailed in the accompanying claims.
The terminology used in the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the present application. As used in this application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any or all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first message may also be referred to as a second message, and similarly, a second message may also be referred to as a first message, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "at … …" or "responsive to a determination", depending on the context.
The application provides a method and a device for adjusting Bluetooth A2DP coding setting, which are used for solving the tone quality problem caused by improper coding setting when 2.4GHz frequency band WiFi signal interference exists in the existing method.
Fig. 1 is an application scenario schematic diagram of a method and an apparatus for adjusting bluetooth A2DP coding settings provided in the present application. Referring to fig. 1, the method and apparatus for adjusting bluetooth A2DP coding settings provided in the present application are applied to a source device in the scenario shown in fig. 1, where the source device may be a smart phone, a smart television, or the like. Correspondingly, in fig. 1, the receiving device may be a bluetooth speaker, a bluetooth headset, etc.
The technical solutions of the present application are described in detail below with specific embodiments, and the following specific embodiments may be combined with each other, and some embodiments may not be repeated for the same or similar concepts.
Fig. 2 is a flowchart of a first embodiment of a method for adjusting bluetooth A2DP coding settings according to the present application. The embodiment relates to a specific method for adjusting Bluetooth A2DP coding setting. The execution body of the embodiment may be a separate device for adjusting bluetooth A2DP coding setting or a source device integrated with a device for adjusting bluetooth A2DP coding setting, and the following description will take the execution body as an example of the source device integrated with the device for adjusting bluetooth A2DP coding setting. Referring to fig. 2, the method provided in this embodiment may include the following steps:
s101, when an AVDTP link is in an initialization state or a WiFi module state change event occurs after the initialization of the AVDTP link, determining coding setting matched with the current state parameters of a WiFi module of the source device for the source device.
In this step, when the AVDTP link is in an initialized state or when a WiFi module state change event occurs after the AVDTP link is initialized, the encoding setting matched with the current state parameter of the WiFi module of the source device is determined for the source device, so that the encoding device of the source device can be ensured to be always adapted to the WiFi interference degree, so as to reduce the interference of WiFi signals on transmission data.
Specifically, the AVDTP link refers to an AVDTP link between a source device and a sink device connected to the source device. In addition, the WiFi module state change event comprises a WiFi module on state, a WiFi module off state, a WiFi module connecting line 2.4GHz router, a WiFi module disconnecting 2.4GHz disconnecting router, a WiFi module starting scanning of a 2.4GHz channel and a WiFi module ending scanning of a 2.4GHz channel.
In this step, when the AVDTP link is in an initialized state or when a WiFi module state change event occurs after the AVDTP link is initialized, a coding setting matched with a current state parameter of the WiFi module is determined for the source device. Specifically, the encoding setting matched with the current state parameter of the WiFi module may be determined for the source device according to the following method, that is, when the current state parameter of the WiFi module characterizes that the current WiFi interference degree of the source device is higher, the encoding setting with the same source audio time amount and with a shorter air transmission time is selected from the encoding settings supported by both the source device and the receiving device as the encoding setting matched with the current state parameter of the WiFi module. The specific implementation method and implementation principle for determining the coding setting matched with the current state parameter of the WiFi module for the source device will be described in detail in the following embodiments, which are not repeated herein.
S102, determining the starting strategy of the coding setting according to the current state of the AVDTP link.
Specifically, the states of the AVDTP link include an initialization state, a set-up completion unplayed state, and a play state. In addition, the source device can record the state of the AVDTP link in real time, and the current state of the AVDTP link can be read from the source device. In this step, the enabling policy of the above-mentioned coding setting is determined according to the current state of the AVDTP link.
Optionally, in one possible implementation manner of the present application, in this step, if the current state of the AVDTP link is an initialized state or the setup is completed in an unplayed state, the activation policy of the encoding setup is determined to be activated immediately; if the current state of the AVDTP link is a play state, determining that the starting strategy of the coding setting is started when the source terminal equipment enters an adjustable state.
For example, when the AVDTP link is in the initialized state, after determining the coding setting matching the current state parameter of the WiFi module for the source device, the AVDTP link is in the initialized state at this time, and the activation policy of the coding setting is determined to be activated immediately. For another example, when a WiFi module state change event occurs after the AVDTP link is initialized, after determining, for the source device, a coding setting that matches a current state parameter of the WiFi module, at this time, if the source device is playing music, that is, the AVDTP link is in a playing state, it is determined that an enabling policy of the coding setting is enabled when the source device enters an adjustable opportunity. It should be noted that, when the AVDTP link is in the play state, the enabling policy of the coding setting is set to be enabled when the source device enters the adjustable state, so that the influence on the user can be reduced and seamless switching can be realized by restarting the coding setting when the source device enters the adjustable state.
Specifically, the adjustable state includes a track switching state or a play pause state. In particular implementations, the source device needs to monitor two events from AVRCP applications: event_track_change (EVENT for TRACK switch) and event_play_status_change (EVENT for parameter switch to pause in play), when both EVENTs are monitored, the source device is characterized as entering an adjustable state.
S103, the coding setting is started by adopting the starting strategy, and when the coding setting is started, the coding setting is sent to a receiving end device connected with the source end device.
Specifically, when the code setting matching the current state parameter of the WiFi module and the enabling policy of the code setting are determined through step S101 and step S102, in this step, the code setting is enabled by using the enabling policy, and when the code setting is enabled, the code setting is sent to the receiving end device connected to the source end device. For example, when the enabling policy is immediately enabled, at this time, the encoding setting is immediately enabled and the encoding setting is sent to the receiving end device, so that the receiving end device reconfigures the encoding setting of the local end according to the received encoding setting.
For another example, when the enabling policy is enabled when the source device enters the adjustable state, and when the source device listens to the track switch event or to a paused parameter switch event during play (when the source device listens to the event, the source device is characterized to enter the adjustable state), in combination with the above description, the encoding settings are enabled and the encoding settings are sent to the sink device. At this time, before the source device sends the coding setting to the sink device, the source device will first adjust the state of the AVDTP link to a state where the setting is not played, then send the coding setting to the sink device, then adjust the state of the AVDTP link to a playing state, and then play music using the reset coding setting.
According to the method provided by the embodiment, when the AVDTP link is in an initialization state or a WiFi module state change event occurs after the initialization of the AVDTP link, the encoding setting matched with the current state parameter of the WiFi module of the source terminal device is determined for the source terminal device, the starting strategy of the encoding setting is determined according to the current state of the AVDTP link, the encoding setting is started by adopting the starting strategy, and the encoding setting is sent to a receiving terminal device connected with the source terminal device when the encoding setting is started. Therefore, the coding equipment of the source terminal equipment can be ensured to be always suitable for the WiFi interference degree, so that the interference of WiFi signals on transmission data is reduced, and the tone quality problem caused by improper coding setting when WiFi interference exists is avoided. In addition, by determining the enabling strategy of the code setting and further adopting the determined enabling strategy to enable the code setting, seamless adjustment can be realized, so that the influence on a user caused by adjusting the code setting is reduced.
Fig. 3 is a flowchart of a second embodiment of a method for adjusting bluetooth A2DP coding settings according to the present application. The embodiment relates to a specific process of determining coding settings matched with current state parameters of a WiFi module for source equipment. Referring to fig. 3, based on the above embodiment, step S101 specifically includes:
s201, determining an interference degree value corresponding to the current state parameter of the WiFi module of the source terminal equipment.
Specifically, the state parameters of the WiFi module of the source device include: the switching state of the WiFi module, the connection state of the WiFi module, the antenna state of the WiFi module and the default code rate of the WiFi module. In this step, the interference level value corresponding to the current state parameter of the WiFi module of the source device may be determined according to the current state parameter of the WiFi module of the source device and the corresponding relation between different state parameters and different interference level values. It should be noted that, the interference level value corresponding to the current state parameter of the WiFi module of the source device=the interference level value corresponding to the on-off state of the WiFi module. For example, in one possible implementation of the present application, the correspondence between different state parameters and different interference level values is shown in table 1:
Table 1 correspondence between different state parameters and different interference level values
A specific example is given below to describe in detail the specific implementation of this step. For example, in one possible implementation manner of the present application, the current state parameter of the WiFi module of the source device is shown in table 2, at this time, according to table 1, it is determined that the interference level value corresponding to the on-off state of the WiFi module is 1, the interference level value corresponding to the antenna state of the WiFi module is 1, the interference level value corresponding to the connection state of the WiFi module is 4, the interference level value corresponding to the default code rate of the WiFi module is 2, further, the interference level value corresponding to the current state parameter of the WiFi module of the source device=the interference level value corresponding to the on-off state of the WiFi module is equal to the interference level value corresponding to the antenna state of the WiFi module (the interference level value corresponding to the connection state of the WiFi module+the interference level value corresponding to the default code rate of the WiFi module), so that the interference level value corresponding to the current state parameter of the WiFi module of the source device is equal to 6 is determined. It should be noted that, according to table 1, when the state parameter of the WiFi module of the source device changes, the interference level value corresponding to the current state parameter of the WiFi module of the source device changes between 0 and 16.
TABLE 2 Current status parameters of WiFi Module of Source device
Switch state of WiFi moduleOpening device
Connection state of WiFi module2.4GHz router connection process
Antenna state of WiFi moduleAntenna not shared with Bluetooth module
Default code rate of WiFi module12M
And S202, if the interference degree value is smaller than or equal to a first preset threshold value, determining that the current first coding format of the source terminal equipment is a coding format matched with the current state parameter of the WiFi module, selecting the coding parameter corresponding to the interference degree value from the coding parameters corresponding to the first coding format supported by the source terminal equipment and the receiving terminal equipment, and determining that the selected coding parameter is the coding parameter matched with the current state parameter of the WiFi module.
Before describing the specific implementation process of this step, the coding information supported by the source device and the receiving device will be briefly described. Specifically, for LDAC (Low-Density Paritycodes, LDAC) coding format, the related protocol specifies that the source device and the sink device must support LDAC quality priority mode, LDAC normal mode, and LDAC connection priority mode simultaneously; for the APT-X coding format, the related protocol specifies that the source device and the receiving device must support APT-X simultaneously, and in addition, the source device and the receiving device can also support APT-X HD or APT-X low delay; for the AAC (Advanced Audio Coding, abbreviated AAC) coding format, the relevant protocol specifies that the source and sink devices must support sample rates of 48KHz and 44.1KHz, and that the source and sink devices may also support sample rates of 32KHz.
Further, after the coding information supported by the source device and the receiving device is introduced, the specific implementation procedure of this step is described in detail below.
Specifically, the first preset threshold is determined according to actual needs. In this embodiment, a specific value of the first preset threshold is not limited. For example, in one possible implementation, the first preset threshold is 10.
It should be noted that, when the determined interference level value is smaller than or equal to the first preset threshold, at this time, the current first coding format of the source device is determined to be a coding format matched with the current state parameter of the WiFi module. For example, the current first coding format of the source device is an LDAC coding format, and at this time, it is determined that the LDAC coding format is a coding format that matches the current state parameter of the WiFi module. Further, after determining the coding format, the coding parameters may be determined according to a method of selecting a coding parameter corresponding to the interference level value from the coding parameters corresponding to the first coding format supported by both the source device and the sink device, and determining that the selected coding parameter is a coding parameter matching the current state parameter of the WiFi module. In a specific implementation, according to a rule for selecting coding parameters, coding parameters corresponding to the interference level value may be selected from coding parameters corresponding to the first coding format supported by both the source device and the receiving device. For example, in an embodiment of the present application, the coding parameters corresponding to the interference level value may be selected from the coding parameters corresponding to the first coding format supported by the source device and the sink device according to the coding parameter selection rule shown in table 3.
Table 3 selection rules for coding parameters
In combination with the above example, that is, the determined interference level value is 6, where the current first coding format of the source device is an LDAC coding format, where the interference level value is smaller than a first preset threshold, it is determined that the LDAC coding format is a coding format matching the current state parameter of the WiFi module, further, for example, in this embodiment, both the source device and the receiving device support LDAC quality priority mode, LDAC normal mode and LDAC connectionpriority mode, where, according to table 3, the coding parameter corresponding to the determined interference level value is selected to be LDAC normal mode, and at this time, it is determined that the LDAC normal mode is a coding parameter matching the current state parameter of the WiFi module. For another example, if the current first coding format of the source device is the SBC coding format, at this time, the SBC coding format is determined to be the coding format that matches the current state parameter of the WiFi module, and further, referring to table 3, the intermediate sampling rate and the intermediate bitpool value are selected as the coding parameters that match the current state parameter of the WiFi module from the sampling rates and bitpool values corresponding to the SBC coding formats supported by both the source device and the receiving device. For example, the sampling rate supported by the source device and the receiving device is 32 KHz-48 KHz, and the bitpool value is 33-51. At this time, the sampling rate is 44.1KHZ and the bitpool value is 33, and the sampling rate 44.1KHZ and the bitpool 33 are determined as encoding parameters matched with the current state parameters of the WiFi module.
For another example, in an embodiment, the determined interference level value is 4, the current first coding format of the source device is an APT-X coding format, at this time, the APT-X coding format is determined to be a coding format matching with the current state parameter of the WiFi module, and further, referring to table 3, if both the source device and the receiving device support APT-xhd, the APT-xhd is determined to be a coding parameter matching with the current state parameter of the WiFi module. If the source device and the receiving device do not support the APT-X HD, it is determined that the APT-X is a coding parameter that matches the current state parameter of the WiFi module (for example, in an embodiment, the coding parameters corresponding to the APT-X coding formats supported by both the source device and the receiving device are APT-X HD and APT-X, APT with low delay, and at this time, it is determined that the APT-X HD is a coding parameter that matches the current state parameter of the WiFi module).
And S203, if the interference degree value is greater than a first preset threshold value, selecting a second coding format with highest priority from coding formats supported by the source terminal equipment and the receiving terminal equipment, determining that the second coding format is a coding format matched with the current state parameter of the WiFi module, selecting a coding parameter corresponding to the interference degree value from coding parameters corresponding to the second coding format supported by the source terminal equipment and the receiving terminal equipment, and determining that the selected coding parameter is a coding parameter matched with the current state parameter of the WiFi module.
Specifically, the coding formats are sequentially from high to low according to the priority: APT-X coding format, LDAC coding format, AAC coding format, SBC coding format. In this step, if the interference level value is greater than a first preset threshold, a second coding format with the highest priority is selected from the coding formats supported by both the source device and the receiving device, and the second coding format is determined to be a coding format matched with the current state parameter of the WiFi module. For example, in an embodiment, the coding formats supported by the source device and the receiving device include an AAC coding format, an SBC coding format, and an LDAC coding format, where the coding format with the highest priority among the coding formats supported by the source device and the receiving device is the LDAC coding format, and at this time, it is determined that the LDAC coding format is the coding format matching the current state parameter of the WiFi module. Further, after determining the coding format, the coding parameters are determined according to the selection rules of the coding parameters shown in table 3, so that the coding parameters LDAC connectionpriority mode are determined to be the coding parameters matched with the current state parameters of the WiFi module.
For another example, in another embodiment, the coding formats supported by the source device and the receiving device include an APT-X coding format and an AAC coding format, and at this time, the APT-X coding format is determined to be a coding format that matches the current state parameter of the WiFi module. Further, if the coding parameters corresponding to the APT-X coding formats supported by both the source device and the sink device have APT-X low delay and APT-X, at this time, according to table 3, the APT-X low delay is selected as the coding parameter matched with the current state parameter of the WiFi module. In addition, if the source terminal device and the receiving terminal device both support the coding parameters corresponding to the APT-X coding format only have APT-X, at this time, selecting the APT-X as the coding parameters matched with the current state parameters of the WiFi module. For another example, in another embodiment, if the AAC coding format is determined to be a coding format matching the current state parameters of the WiFi module, then the sampling rate 32 is selected if the source device and the sink device both support the sampling rate 32KHz, and the sampling rate 44.1KHz is selected if not. Further, in another embodiment, if it is determined that the SBC encoding format is an encoding format that matches the current state parameter of the WiFi module, at this time, the minimum sampling rate and the minimum bitpool value are selected from the sampling rate and the bitpool value supported by both the source device and the sink device as the encoding parameter that matches the current state parameter of the WiFi module. For example, in one embodiment, the sampling rate supported by both the source device and the sink device is 32 KHZ-48 KHZ and the bitpool value is 33-51. At this time, the sampling rate 32KHZ and bitpool value 33 are selected as the encoding parameters matching the current state parameters of the WiFi module.
The method provided by the embodiment provides a specific method for determining the coding setting matched with the current state parameter of the WiFi module for the source terminal equipment, and the coding setting matched with the current state parameter of the WiFi module can be determined for the source terminal equipment by the method provided by the embodiment, so that the coding equipment of the source terminal equipment can always adapt to the WiFi interference degree, the interference of WiFi signals on transmission data is reduced, and the tone quality problem caused by improper coding setting when WiFi interference exists is avoided.
Fig. 4 is a flowchart of a third embodiment of a method for adjusting bluetooth A2DP coding settings according to the present application. Referring to fig. 4, on the basis of the foregoing embodiment, the method provided in this embodiment further includes, before determining, for the source device, a coding setting that matches a current state parameter of a WiFi module of the source device:
s301, judging whether the coding information supported by the receiving end equipment connected with the source end equipment is stored.
Specifically, whether the encoded information supported by the receiving end device is stored or not may be determined according to the identifier of the receiving end device.
S302, if not, acquiring the coding information supported by the receiving terminal equipment.
Specifically, in this step, the coding information supported by the receiving end device may be obtained by sending a request to the receiving end device.
According to the method provided by the embodiment, whether the code information supported by the receiving end equipment connected with the source end equipment is stored or not is judged, and when the code information supported by the receiving end equipment is not stored, the code information supported by the receiving end equipment is obtained. Therefore, the source equipment can be ensured to store the coding information of the receiving equipment, and coding settings matched with the current state parameters of the WiFi module can be determined for the source equipment according to the coding information supported by the source equipment and the coding information supported by the receiving equipment.
Fig. 5 is a flowchart of a fourth embodiment of a method for adjusting bluetooth A2DP coding settings according to the present application. Referring to fig. 5, on the basis of the foregoing embodiment, when a WiFi module state change event occurs after an AVDTP link is initialized, the method provided in this embodiment may further include, after determining an interference level value corresponding to a current state parameter of a WiFi module of a source device:
s401, if the interference degree value and the stored interference degree value belong to the same interference degree level, determining that the current coding setting of the source terminal equipment is the coding setting matched with the current state parameter of the WiFi module.
Specifically, the interference level is pre-divided according to the interference level value, for example, in one embodiment, when the interference level value is [0 5], the interference level is defined as level one; when the interference level value is at (5 ], the interference level is specified as level two, and when the interference level value is (10), the interference level is specified as level three, it is to be noted that the stored interference level value is the interference level value determined at the time of AVTDP initialization, for example, in one embodiment, the stored interference level value is 3, when a WiFi module state change event occurs after AVDTP link initialization, the determined interference level value is 4, at this time, the determined interference level value and the stored interference level value belong to the same interference level.
Specifically, if the determined interference level value and the stored interference level value belong to the same interference level, at this time, the current coding setting is considered to be capable of adapting to the current WiFi interference level, and the current coding setting of the source device is determined to be the coding setting matched with the current state parameter of the WiFi module.
And S402, if the interference degree value and the stored interference degree value do not belong to the same interference degree level, determining the coding setting matched with the current state parameter of the WiFi module for the source terminal equipment.
Specifically, if the determined interference level value and the stored interference level value do not belong to the same interference level, at this time, the current coding setting is considered to be unable to adapt to the current WiFi interference level, and at this time, the coding setting matched with the current state parameter of the WiFi module needs to be determined for the source device. The method described in the second embodiment is to determine, for the source device, a coding setting that matches the current state parameter of the WiFi module.
In the method provided by the embodiment, when a WiFi module state change event occurs after initializing an AVDTP link, after determining an interference level value corresponding to a current state parameter of a WiFi module of a source device, if the interference level value and a stored interference level value belong to the same interference level, determining that a current code of the source device is set as a code setting matched with the current state parameter of the WiFi module, and if the interference level value and the stored interference level value do not belong to the same interference level, determining, for the source device, a code setting matched with the current state parameter of the WiFi module of the source device. In this way, computing resources may be saved.
Fig. 6 is a schematic structural diagram of an embodiment of a device for adjusting bluetooth A2DP coding set according to the present application. The device may be implemented in software, hardware or a combination of both. Referring to fig. 6, the apparatus provided in this embodiment includes: a processing module 100 and a transmitting module 200, wherein,
the processing module 100 is configured to determine, for the source device, a coding setting that matches a current state parameter of a WiFi module of the source device when the AVDTP link is in an initialized state or when a WiFi module state change event occurs after the AVDTP link is initialized;
the processing module 100 is further configured to determine an enabling policy of the coding setting according to the current state of the AVDTP link, and enable the coding setting by using the enabling policy
The sending module 200 is configured to send the coding setting to a receiving end device connected to the source end device when the coding setting is enabled.
The device of this embodiment may execute the technical solution of the method embodiment shown in fig. 1, and its implementation principle and technical effects are similar, and will not be described herein again.
Further, the processing module 100 is specifically configured to perform the following steps:
Determining an interference degree value corresponding to the current state parameter of the WiFi module of the source terminal equipment;
if the interference degree value is smaller than or equal to a first preset threshold value, determining that the current first coding format of the source terminal equipment is a coding format matched with the current state parameter of the WiFi module, selecting a coding parameter corresponding to the interference degree value from coding parameters corresponding to the first coding format supported by the source terminal equipment and the receiving terminal equipment, and determining that the selected coding parameter is a coding parameter matched with the current state parameter of the WiFi module;
and if the interference degree value is greater than a first preset threshold value, selecting a second coding format with highest priority from coding formats supported by both the source terminal equipment and the receiving terminal equipment, determining that the second coding format is a coding format matched with the current state parameter of the WiFi module, selecting a coding parameter corresponding to the interference degree value from coding parameters corresponding to the second coding format supported by both the source terminal equipment and the receiving terminal equipment, and determining that the selected coding parameter is a coding parameter matched with the current state parameter of the WiFi module.
The device of the present embodiment may be used to implement the technical solution of the method embodiment shown in fig. 2, and its implementation principle and technical effects are similar, and are not described here again.
Further, the processing module 100 is specifically configured to determine that the activation policy of the coding setting is activated immediately when the current state of the AVDTP link is an initialized state or the setup is completed in an unplayed state, and determine that the activation policy of the coding setting is activated when the source device enters an adjustable state when the current state of the AVDTP link is a played state.
Further, referring to fig. 6, the apparatus of this embodiment may further include a determining module 300 and an obtaining module 400, where,
the judging module 300 is configured to judge whether code information supported by a receiving end device connected to the source end device is stored before the processing module 100 determines, for the source end device, a code setting that matches a current state parameter of a WiFi module of the source end device;
the obtaining module 400 is configured to obtain the encoded information supported by the receiving end device when the judging module 300 judges that the encoded information supported by the receiving end device connected to the source end device is not stored.
Further, the processing module 100 is further configured to, when a WiFi module state change event occurs after the AVDTP link is initialized, determine, after the processing module determines an interference level value corresponding to a WiFi module current state parameter of the source device, that a current code of the source device is set to a code setting matching the WiFi module current state parameter when the interference level value and the stored interference level value belong to the same interference level, and determine, for the source device, a code setting matching the WiFi module current state parameter when the interference level value and the stored interference level value do not belong to the same interference level.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the method embodiments described above may be performed by hardware associated with program instructions. The foregoing program may be stored in a computer readable storage medium. The program, when executed, performs steps including the method embodiments described above; and the aforementioned storage medium includes: various media that can store program code, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the invention.

Claims (10)

the processing module is configured to determine an interference degree value corresponding to the current state parameter of the WiFi module according to the corresponding relation between the state parameter of the WiFi module and different interference degree values when the AVDTP link is in an initialization state or when the state change event of the WiFi module occurs after the initialization of the AVDTP link; selecting the coding setting matched with the interference degree value as the coding setting matched with the current state parameter of the WiFi module of the display equipment; wherein, the WiFi module state change event includes: the WiFi module is turned on, the WiFi module is turned off, the WiFi module is connected with a 2.4GHz router, the WiFi module is disconnected with the 2.4GHz disconnection router, the WiFi module starts to scan a 2.4GHz channel, and the WiFi module finishes scanning the 2.4GHz channel;
when the AVDTP link is in an initialization state or a WiFi module state change event occurs after the AVDTP link is initialized, determining an interference degree value corresponding to a current WiFi module state parameter according to the corresponding relation between the WiFi module state parameter and different interference degree values; selecting the coding setting matched with the interference degree value as the coding setting matched with the current state parameter of the WiFi module of the display equipment; wherein, the WiFi module state change event includes: the WiFi module is turned on, the WiFi module is turned off, the WiFi module is connected with a 2.4GHz router, the WiFi module is disconnected with the 2.4GHz disconnection router, the WiFi module starts to scan a 2.4GHz channel, and the WiFi module finishes scanning the 2.4GHz channel;
CN202110711122.1A2017-08-142017-08-14Display device adjusting Bluetooth method for setting A2DP (analog to digital) codesActiveCN113470668B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202110711122.1ACN113470668B (en)2017-08-142017-08-14Display device adjusting Bluetooth method for setting A2DP (analog to digital) codes

Applications Claiming Priority (2)

Application NumberPriority DateFiling DateTitle
CN201710693152.8ACN107404339B (en)2017-08-142017-08-14 A method and device for adjusting Bluetooth A2DP encoding settings
CN202110711122.1ACN113470668B (en)2017-08-142017-08-14Display device adjusting Bluetooth method for setting A2DP (analog to digital) codes

Related Parent Applications (1)

Application NumberTitlePriority DateFiling Date
CN201710693152.8ADivisionCN107404339B (en)2017-08-142017-08-14 A method and device for adjusting Bluetooth A2DP encoding settings

Publications (2)

Publication NumberPublication Date
CN113470668A CN113470668A (en)2021-10-01
CN113470668Btrue CN113470668B (en)2024-03-12

Family

ID=60397160

Family Applications (2)

Application NumberTitlePriority DateFiling Date
CN202110711122.1AActiveCN113470668B (en)2017-08-142017-08-14Display device adjusting Bluetooth method for setting A2DP (analog to digital) codes
CN201710693152.8AActiveCN107404339B (en)2017-08-142017-08-14 A method and device for adjusting Bluetooth A2DP encoding settings

Family Applications After (1)

Application NumberTitlePriority DateFiling Date
CN201710693152.8AActiveCN107404339B (en)2017-08-142017-08-14 A method and device for adjusting Bluetooth A2DP encoding settings

Country Status (1)

CountryLink
CN (2)CN113470668B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN108389583B (en)*2018-07-042018-09-25恒玄科技(上海)有限公司A kind of encoding and decoding method and system of wireless Bluetooth headsets communication audio
CN109151861A (en)*2018-08-142019-01-04Oppo广东移动通信有限公司Encoding rate method of adjustment, device and electronic equipment
CN111199743B (en)*2020-02-282023-08-18Oppo广东移动通信有限公司Audio coding format determining method and device, storage medium and electronic equipment
CN111510900B (en)*2020-04-202023-08-25Oppo广东移动通信有限公司 Bluetooth transmission method, terminal device and computer-readable storage medium
CN115223579B (en)*2021-04-202025-09-12华为技术有限公司Codec negotiation and switching method

Citations (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1640075A (en)*2002-01-102005-07-13高通股份有限公司System and method for optimizing bluetooth transmissions to overcome signal interference
CN103426432A (en)*2012-05-142013-12-04德克萨斯仪器股份有限公司Bandwidth dependent audio quality adjustment
CN103532936A (en)*2013-09-282014-01-22福州瑞芯微电子有限公司Bluetooth audio self-adaption transmission method
CN103843438A (en)*2011-07-292014-06-04黑莓有限公司Enhancement of in-device coexistence interference avoidance
KR101552830B1 (en)*2014-11-102015-09-14리모트솔루션주식회사Method for implementing a bluetooth headset using smart devices
CN105578232A (en)*2016-01-052016-05-11珠海格力电器股份有限公司Multimedia playing system and playing method based on mobile terminal
CN106162278A (en)*2015-04-032016-11-23北京奇虎科技有限公司A kind of low energy consumption terminal control system and method
CN106332132A (en)*2015-07-032017-01-11中兴通讯股份有限公司Communication terminal for performance adjustment of self-adaptable Bluetooth and method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US8364080B2 (en)*2002-08-012013-01-29Broadcom CorporationMethod and system for achieving enhanced quality and higher throughput for collocated IEEE 802.11 B/G and bluetooth devices in coexistent operation
CN101286770B (en)*2007-04-092011-07-06艾威梯科技(北京)有限公司Method and system for automatically configuring audio encoding format transmitted by bluetooth A2DP
US10237193B2 (en)*2015-09-302019-03-19Apple Inc.Prioritizing short-range wireless packets for time-sensitive applications
CN106792954B (en)*2016-12-162020-02-04中南大学Bluetooth and Wifi switching method based on environment perception and transmission equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1640075A (en)*2002-01-102005-07-13高通股份有限公司System and method for optimizing bluetooth transmissions to overcome signal interference
CN103843438A (en)*2011-07-292014-06-04黑莓有限公司Enhancement of in-device coexistence interference avoidance
CN103426432A (en)*2012-05-142013-12-04德克萨斯仪器股份有限公司Bandwidth dependent audio quality adjustment
CN103532936A (en)*2013-09-282014-01-22福州瑞芯微电子有限公司Bluetooth audio self-adaption transmission method
KR101552830B1 (en)*2014-11-102015-09-14리모트솔루션주식회사Method for implementing a bluetooth headset using smart devices
CN106162278A (en)*2015-04-032016-11-23北京奇虎科技有限公司A kind of low energy consumption terminal control system and method
CN106332132A (en)*2015-07-032017-01-11中兴通讯股份有限公司Communication terminal for performance adjustment of self-adaptable Bluetooth and method
CN105578232A (en)*2016-01-052016-05-11珠海格力电器股份有限公司Multimedia playing system and playing method based on mobile terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
如何减少蓝牙设备与无线局域网设备共存时的互相干扰;孙小静 等;中国铁道科学;26(第02期);第122-126页*

Also Published As

Publication numberPublication date
CN107404339A (en)2017-11-28
CN113470668A (en)2021-10-01
CN107404339B (en)2021-07-16

Similar Documents

PublicationPublication DateTitle
CN113470668B (en)Display device adjusting Bluetooth method for setting A2DP (analog to digital) codes
US10674002B2 (en)Apparatus and method for controlling built-in microphone of portable terminal
CN109445739B (en) Audio playback method, apparatus, electronic device, and computer-readable medium
US7130623B2 (en)Remote broadcast recording
CN105161121B (en)To the control method and audio transfer control of audio peripheral hardware transmission audio
US9538318B2 (en)Apparatus and method for playing music
US20050190928A1 (en)Transmitting/receiving system, transmitting device, and device including speaker
CN111199743A (en) Audio coding format determination method, device, storage medium and electronic device
CN103518363A (en)Output system and display system
CN111132111B (en)BLE-based audio sharing method, system and computer readable storage medium
US8977202B2 (en)Communication apparatus having a unit to determine whether a profile is operating
JP2010537502A (en) System and method for recording intermittent broadcasts of multimedia programs
EP4086899A1 (en)Audio transmission method and electronic device
US20240022783A1 (en)Multimedia playback synchronization
KR101120019B1 (en)Apparatus and method for receiving and reproducing broadcasting data through wireless communication
CN118741467A (en) Display device, audio receiving device and BIS stream broadcasting method
CN107948904A (en)The method, apparatus and computer-readable recording medium of speaker degradation
CN112423197A (en)Method and device for realizing multipath Bluetooth audio output
JP2008092210A (en) Playback device
CN111913684B (en)Sound playing mode setting method, device and storage medium
TWI894366B (en)Multimedia playback synchronization
US20250208823A1 (en)Echo detection device, echo detector, host device, and non-transitory computer readable medium
JP2007049358A (en)Portable terminal and program
CN101867429A (en)Method, system and personal computer suite for realizing radio function
KR20010097522A (en)Portable digital music player and method for enabling wireless music broadcasting

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp