Movatterモバイル変換


[0]ホーム

URL:


CN107404339A - A method and device for adjusting Bluetooth A2DP encoding settings - Google Patents

A method and device for adjusting Bluetooth A2DP encoding settings
Download PDF

Info

Publication number
CN107404339A
CN107404339ACN201710693152.8ACN201710693152ACN107404339ACN 107404339 ACN107404339 ACN 107404339ACN 201710693152 ACN201710693152 ACN 201710693152ACN 107404339 ACN107404339 ACN 107404339A
Authority
CN
China
Prior art keywords
encoding
source device
wifi module
current state
setting
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.)
Granted
Application number
CN201710693152.8A
Other languages
Chinese (zh)
Other versions
CN107404339B (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.)
Qingdao Hisense Electronics Co Ltd
Original Assignee
Qingdao Hisense Electronics 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 Qingdao Hisense Electronics Co LtdfiledCriticalQingdao Hisense Electronics Co Ltd
Priority to CN201710693152.8ApriorityCriticalpatent/CN107404339B/en
Priority to CN202110711122.1Aprioritypatent/CN113470668B/en
Publication of CN107404339ApublicationCriticalpatent/CN107404339A/en
Application grantedgrantedCritical
Publication of CN107404339BpublicationCriticalpatent/CN107404339B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

The present application provides a method and apparatus for adjusting bluetooth A2DP encoding settings. The method for adjusting the Bluetooth A2DP coding setting provided by the application is applied to a source end device, and the method comprises the following steps: when the AVDTP link is in an initialization state or a WiFi module state change event occurs after the AVDTP link is initialized, determining the coding setting matched with the current state parameters of the WiFi module of the source end device for the source end device, determining the starting strategy of the coding setting according to the current state of the AVDTP link, starting the coding setting by adopting the starting strategy, and sending the coding setting to the receiving end device when the coding setting is started. The method and the device for adjusting the code setting of the Bluetooth A2DP can ensure that the code setting of source end equipment can adapt to the WiFi interference degree all the time, reduce the interference of WiFi signals to transmission data, and avoid the tone quality problem caused by improper code setting when WiFi interference exists.

Description

Translated fromChinese
一种调节蓝牙A2DP编码设置的方法和装置A method and device for adjusting Bluetooth A2DP encoding settings

技术领域technical field

本申请涉及无线通信技术领域,尤其涉及一种调节蓝牙A2DP(AdvancedDistribution Profile,简称A2DP)编码设置的方法和装置。The present application relates to the technical field of wireless communication, and in particular to a method and a device for adjusting Bluetooth A2DP (Advanced Distribution Profile, A2DP for short) encoding settings.

背景技术Background technique

蓝牙技术是一种工作在2.4GHz频段的无线通信技术,蓝牙技术的出现,使得用户可以通过蓝牙技术来听音乐。其实现原理为:当源端设备(Source,简称SRC,例如,可以是智能电视)与接收端设备(Sink,简称SNK,例如,可以是蓝牙音箱)建立AVDTP(Audio/videoDistribution Transport Protocol,简称AVDTP)链路后,源端设备对音频数据进行编码,然后将音频数据通过两个设备之间建立的AVDTP链路发送给接收端设备,接收端设备收到音频数据后,进行解码播放。在通过蓝牙技术播放音乐时,为保证高品质的音质,源端设备的编码设置显得尤其重要。Bluetooth technology is a wireless communication technology working in the 2.4GHz frequency band. The emergence of Bluetooth technology enables users to listen to music through Bluetooth technology. The realization principle is: when the source device (Source, referred to as SRC, for example, it can be a smart TV) and the receiver device (Sink, referred to as SNK, for example, it can be a Bluetooth speaker) establish an AVDTP (Audio/videoDistribution Transport Protocol, referred to as AVDTP ) link, the source device encodes the audio data, and then sends the audio data to the receiver device through the AVDTP link established between the two devices, and the receiver device decodes and plays the audio data after receiving it. When playing music through Bluetooth technology, in order to ensure high-quality sound quality, the encoding settings of the source device are particularly important.

目前,源端设备一般按照如下方法来确定编码设置,该方法包括:获取接收端设备所支持的编码信息,在源端设备和接收端设备均支持的编码信息中,选择高音质编码设置(低失真率,高码率)作为当前编码设置。At present, the source device generally determines the encoding setting according to the following method. The method includes: obtaining the encoding information supported by the receiving end device, and selecting a high-quality encoding setting (low Distortion rate, high bit rate) as the current encoding setting.

但是,当采用高音质编码设置对音频文件进行编码时,为了传递同样播放时间量的A2DP音频封包,需要更长的2.4GHz频段空中传输时间。如此一来,在存在2.4GHz频段WiFi信号干扰的情况下将更容易发生音质问题(顿音,杂音,扭曲)。However, when an audio file is encoded with a high-quality encoding setting, longer over-the-air time in the 2.4GHz band is required to deliver the same amount of playback time for A2DP audio packets. In this way, sound quality problems (stutter, noise, distortion) will be more likely to occur in the presence of WiFi signal interference in the 2.4GHz band.

发明内容Contents of the invention

有鉴于此,本申请提供一种调节蓝牙A2DP编码设置的方法和装置,以解决现有方法在存在2.4GHz频段WiFi信号干扰时因编码设置不当造成的音质问题。In view of this, the present application provides a method and device for adjusting the Bluetooth A2DP encoding setting, so as to solve the sound quality problem caused by improper encoding setting in the existing method when there is 2.4GHz band WiFi signal interference.

本申请第一方面提供一种调节蓝牙A2DP编码设置的方法,所述方法应用于源端设备,所述方法包括:The first aspect of the present application provides a method for adjusting Bluetooth A2DP encoding settings, the method is applied to a source device, and the method includes:

在AVDTP链路处于初始化状态时或所述AVDTP链路初始化之后发生WiFi模块状态变化事件时,为所述源端设备确定与所述源端设备的WiFi模块当前的状态参数匹配的编码设置;When the AVDTP link is in an initialization state or when a WiFi module state change event occurs after the AVDTP link is initialized, determine for the source device a coding setting that matches the current state parameters of the WiFi module of the source device;

根据所述AVDTP链路当前的状态,确定所述编码设置的启用策略;According to the current state of the AVDTP link, determine the enabling strategy of the encoding settings;

采用所述启用策略启用所述编码设置,并在所述编码设置启用时,将所述编码设置发送给与所述源端设备连接的接收端设备。Enabling the encoding setting by using the enabling policy, and sending the encoding setting to the receiving end device connected to the source end device when the encoding setting is enabled.

本申请第二方面提供一种调节蓝牙A2DP编码设置的装置,所述装置应用于源端设备,所述装置包括:处理模块和发送模块,其中,The second aspect of the present application provides a device for adjusting Bluetooth A2DP encoding settings, the device is applied to a source device, and the device includes: a processing module and a sending module, wherein,

所述处理模块,用于在AVDTP链路处于初始化状态时或所述AVDTP链路初始化之后发生WiFi模块状态变化事件时,为所述源端设备确定与所述源端设备的WiFi模块当前的状态参数匹配的编码设置;The processing module is configured to determine the current state of the WiFi module of the source device for the source device when the AVDTP link is in an initialization state or when a WiFi module state change event occurs after the AVDTP link is initialized Encoding settings for parameter matching;

所述处理模块,还用于根据所述AVDTP链路当前的状态,确定所述编码设置的启用策略,并采用所述启用策略启用所述编码设置The processing module is further configured to determine the enabling policy of the encoding setting according to the current state of the AVDTP link, and enable the encoding setting by using the enabling policy

所述发送模块,用于在所述编码设置启用时,将所述编码设置发送给与所述源端设备连接的接收端设备。The sending module is configured to send the encoding setting to the receiving end device connected to the source end device when the encoding setting is enabled.

本申请提供的调节蓝牙A2DP编码设置的方法和装置,在AVDTP链路处于初始化状态时或上述AVDTP链路初始化之后发生WiFi模块状态变化事件时,通过为源端设备确定与源端设备的WiFi模块当前的状态参数匹配的编码设置,并根据AVDTP链路当前的状态,确定上述编码设置的启用策略,进而采用上述启用策略启用上述编码设置,并在上述编码设置启用时,将上述编码设置发送给与所述源端设备连接的接收端设备。这样,可保证源端设备的编码设备始终能够适应WiFi干扰程度,以降低WiFi信号对传输数据的干扰,避免在存在WiFi干扰时因编码设置不当造成的音质问题。此外,通过确定编码设置的启用策略,进而采用确定出的启用策略启用编码设置,可实现无接缝调节,以降低因调节编码设置对使用者造成的影响。The method and device for adjusting the Bluetooth A2DP encoding settings provided by this application, when the AVDTP link is in the initialization state or when the WiFi module state change event occurs after the above-mentioned AVDTP link initialization, by determining the WiFi module of the source device for the source device The current state parameter matches the encoding setting, and according to the current state of the AVDTP link, determine the enable policy of the above encoding setting, and then use the above enabling policy to enable the above encoding setting, and when the above encoding setting is enabled, send the above encoding setting to A sink device connected to the source device. In this way, it can ensure that the encoding device of the source device can always adapt to the degree of WiFi interference, so as to reduce the interference of the WiFi signal on the transmitted data, and avoid sound quality problems caused by improper encoding settings when there is WiFi interference. In addition, by determining the enabling policy of the encoding setting, and then using the determined enabling policy to enable the encoding setting, seamless adjustment can be realized, so as to reduce the impact on the user caused by adjusting the encoding setting.

附图说明Description of drawings

图1为本申请提供的调节蓝牙A2DP编码设置的方法和装置的应用场景示意图;FIG. 1 is a schematic diagram of an application scenario of a method and a device for adjusting Bluetooth A2DP coding settings provided by the present application;

图2为本申请调节蓝牙A2DP编码设置的方法实施例一的流程图;Fig. 2 is the flow chart of the first embodiment of the method for adjusting the Bluetooth A2DP encoding setting in the present application;

图3为本申请调节蓝牙A2DP编码设置的方法实施例二的流程图;Fig. 3 is the flow chart of the second embodiment of the method for adjusting the Bluetooth A2DP encoding setting in the present application;

图4为本申请调节蓝牙A2DP编码设置的方法实施例三的流程图;Fig. 4 is the flow chart of the third embodiment of the method for adjusting the Bluetooth A2DP encoding setting in the present application;

图5为本申请调节蓝牙A2DP编码设置的方法实施例四的流程图;FIG. 5 is a flow chart of Embodiment 4 of the method for adjusting Bluetooth A2DP encoding settings in the present application;

图6为本申请调节蓝牙A2DP编码设置的装置实施例一的结构示意图。FIG. 6 is a schematic structural diagram of Embodiment 1 of a device for adjusting Bluetooth A2DP encoding settings according to the present application.

具体实施方式detailed description

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present application as recited in the appended claims.

在本申请使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请。在本申请和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terminology used in this application is for the purpose of describing particular embodiments only, and is not intended to limit the application. As used in this application and the appended claims, the singular forms "a", "the", and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It should also be understood that the term "and/or" as used herein refers to and includes any and 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 in this application to describe various information, the information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of the present application, first information may also be called second information, and similarly, second information may also be called first information. Depending on the context, the word "if" as used herein may be interpreted as "at" or "when" or "in response to a determination."

本申请提供一种调节蓝牙A2DP编码设置的方法和装置,以解决现有方法在存在2.4GHz频段WiFi信号干扰时因编码设置不当造成的音质问题。The present application provides a method and device for adjusting the Bluetooth A2DP encoding setting, so as to solve the sound quality problem caused by improper encoding setting in the existing method when there is 2.4GHz frequency band WiFi signal interference.

图1为本申请提供的调节蓝牙A2DP编码设置的方法和装置的应用场景示意图。请参照图1,本申请提供的调节蓝牙A2DP编码设置的方法和装置,应用于图1所示场景中的源端设备,该源端设备可以是智能手机、智能电视等。相应的,图1中,接收端设备可以是蓝牙音箱、蓝牙耳机等。FIG. 1 is a schematic diagram of an application scenario of the method and device for adjusting Bluetooth A2DP encoding settings provided by the present application. Please refer to FIG. 1 , the method and device for adjusting Bluetooth A2DP encoding settings provided by this application are applied to the source device in the scenario shown in FIG. 1 , and the source device may be a smart phone, a smart TV, and the like. Correspondingly, in FIG. 1, the receiver device may be a Bluetooth speaker, a Bluetooth headset, and the like.

下面以具体的实施例对本申请的技术方案进行详细说明,下面这几个具体的实施例可以相互结合,对于相同或相似的概念在某些实施例可能不再赘述。The technical solution of the present application will be described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts may not be repeated in some embodiments.

图2为本申请调节蓝牙A2DP编码设置的方法实施例一的流程图。本实施例涉及的是调节蓝牙A2DP编码设置的具体方法。本实施例的执行主体可以为单独的调节蓝牙A2DP编码设置的装置,或者是集成有调节蓝牙A2DP编码设置的装置的源端设备,下面以执行主体为集成有调节蓝牙A2DP编码设置的装置的源端设备为例进行说明。请参照图2,本实施例提供的方法,可以包括以下步骤:FIG. 2 is a flow chart of Embodiment 1 of the method for adjusting Bluetooth A2DP encoding settings in the present application. This embodiment relates to a specific method for adjusting the Bluetooth A2DP encoding setting. The execution subject of this embodiment can be a separate device for adjusting the Bluetooth A2DP encoding setting, or a source device integrated with a device for adjusting the Bluetooth A2DP encoding setting. The following uses the execution subject as the source integrated with the device for adjusting the Bluetooth A2DP encoding setting terminal equipment as an example. Please refer to Fig. 2, the method provided in this embodiment may include the following steps:

S101、在AVDTP链路处于初始化状态时或上述AVDTP链路初始化之后发生WiFi模块状态变化事件时,为源端设备确定与上述源端设备的WiFi模块当前的状态参数匹配的编码设置。S101. When the AVDTP link is in the initialization state or when a WiFi module state change event occurs after the AVDTP link is initialized, determine for the source device a coding setting that matches the current state parameters of the WiFi module of the source device.

需要说明的是,源端设备的WiFi模块当前的状态参数能够表征源端设备当前的WiFi干扰程度,本步骤中,在AVDTP链路处于初始化状态时或上述AVDTP链路初始化之后发生WiFi模块状态变化事件时,通过为源端设备确定与上述源端设备的WiFi模块当前的状态参数匹配的编码设置,这样,可保证源端设备的编码设备始终能够适应WiFi干扰程度,以降低WiFi信号对传输数据的干扰。It should be noted that the current state parameters of the WiFi module of the source device can represent the current WiFi interference degree of the source device. In this step, the state of the WiFi module changes when the AVDTP link is in the initialization state or after the above-mentioned AVDTP link initialization When an event occurs, by determining the encoding settings for the source device that match the current state parameters of the WiFi module of the source device, it can be ensured that the encoding device of the source device can always adapt to the degree of WiFi interference, so as to reduce the impact of WiFi signals on the transmitted data. interference.

具体的,AVDTP链路指源端设备和与源端设备连接的接收端设备之间的AVDTP链路。此外,WiFi模块状态变化事件包括WiFi模块打开、WiFi模块关闭、WiFi模块连线2.4GHz路由器、WiFi模块断开2.4GHz断开路由器、WiFi模块开始扫描2.4GHz信道和WiFi模块结束扫描2.4GHz信道。Specifically, the AVDTP link refers to the AVDTP link between the source device and the sink device connected to the source device. In addition, the state change events of the WiFi module include the WiFi module turning on, the WiFi module turning off, the WiFi module connecting to the 2.4GHz router, the WiFi module disconnecting from the 2.4GHz router, the WiFi module starting to scan the 2.4GHz channel, and the WiFi module ending the scanning of the 2.4GHz channel.

本步骤中,在AVDTP链路处于初始化状态时或上述AVDTP链路初始化之后发生WiFi模块状态变化事件时,为源端设备确定与WiFi模块当前的状态参数匹配的编码设置。具体的,可按照如下方法为源端设备确定与WiFi模块当前的状态参数匹配的编码设置,即当WiFi模块当前的状态参数表征源端设备当前的WiFi干扰程度较高时,就从源端设备和接收端设备均支持的编码设置中选择同样源音频时间量需要空中传输时间较短的编码设置作为与WiFi模块当前的状态参数匹配的编码设置。关于为源端设备确定与WiFi模块当前的状态参数匹配的编码设置的具体实现方法和实现原理将在下面的实施例详细介绍,此处不再赘述。In this step, when the AVDTP link is in the initialization state or when the WiFi module state change event occurs after the above-mentioned AVDTP link initialization, determine the encoding setting that matches the current state parameters of the WiFi module for the source device. Specifically, the encoding setting that matches the current status parameters of the WiFi module can be determined for the source device according to the following method, that is, when the current status parameters of the WiFi module indicate that the current WiFi interference degree of the source device is relatively high, the source device Among the encoding settings supported by both the receiving end device and the same source audio time, the encoding setting that requires a shorter air transmission time is selected as the encoding setting that matches the current state parameters of the WiFi module. The specific implementation method and implementation principle of determining the encoding setting that matches the current state parameters of the WiFi module for the source device will be described in detail in the following embodiments, and will not be repeated here.

S102、根据上述AVDTP链路当前的状态,确定上述编码设置的启用策略。S102. According to the current state of the above-mentioned AVDTP link, determine the enabling policy of the above-mentioned encoding setting.

具体的,AVDTP链路的状态包括初始化状态、设置完成未播放状态以及播放状态。此外,源端设备会实时记录AVDTP链路的状态,可从源端设备读取AVDTP链路当前的状态。本步骤中,就根据AVDTP链路当前的状态,确定上述编码设置的启用策略。Specifically, the state of the AVDTP link includes an initialization state, a setting complete and unplayed state, and a playing state. In addition, the source device will record the status of the AVDTP link in real time, and the current status of the AVDTP link can be read from the source device. In this step, according to the current state of the AVDTP link, the enabling policy of the above encoding setting is determined.

可选地,在本申请一可能的实现方式中,本步骤中,若上述AVDTP链路当前的状态为初始化状态或设置完成未播放状态时,确定上述编码设置的启用策略为立即启用;若上述AVDTP链路当前的状态为播放状态时,确定上述编码设置的启用策略为在上述源端设备进入可调整状态时启用。Optionally, in a possible implementation of the present application, in this step, if the current state of the above-mentioned AVDTP link is the initialization state or when the setting is completed and the unplaying state is completed, it is determined that the enable policy of the above-mentioned encoding setting is to enable immediately; if the above-mentioned When the current state of the AVDTP link is the playing state, it is determined that the enabling policy of the above-mentioned encoding settings is enabled when the above-mentioned source device enters the adjustable state.

例如,在AVDTP链路处于初始化状态时,为源端设备确定与WiFi模块当前的状态参数匹配的编码设置后,此时,AVDTP链路处于初始化状态,确定上述编码设置的启用策略为立即启用。再例如,在上述AVDTP链路初始化之后发生WiFi模块状态变化事件时,为源端设备确定与WiFi模块当前的状态参数匹配的编码设置后,此时,若源端设备正在播放音乐,即AVDTP链路处于播放状态,则确定上述编码设置的启用策略为在源端设备进入可调整时机时启用。需要说明的是,当AVDTP链路处于播放状态时,通过将编码设置的启用策略设置为在源端设备进入可调整状态时启用,这样,在源端设备进入可调整状态时再启用上述编码设置,可降低对用户的影响,实现无接缝切换。For example, when the AVDTP link is in the initialization state, after determining the encoding settings that match the current state parameters of the WiFi module for the source device, at this time, the AVDTP link is in the initialization state, and the enabling strategy for determining the above encoding settings is to enable immediately. For another example, when the WiFi module state change event occurs after the above-mentioned AVDTP link initialization, after determining the encoding setting that matches the current state parameters of the WiFi module for the source device, at this time, if the source device is playing music, that is, the AVDTP link If the channel is in the playing state, it is determined that the enabling policy of the above encoding settings is enabled when the source device enters an adjustable timing. It should be noted that when the AVDTP link is in the playback state, by setting the enable policy of the encoding setting to enable when the source device enters the adjustable state, in this way, enable the above encoding settings when the source device enters the adjustable state , which can reduce the impact on users and realize seamless switching.

具体的,可调整状态包括曲目切换状态或播放暂停状态。具体实现时,源端设备需要监听从AVRCP应用的两个事件:EVENT_TRACK_CHANGED(曲目切换事件)和EVENT_PLAYBACK_STATUS_CHANGED(播放中到暂停的参数切换事件),当监听到这两个事件时,表征源端设备进入可调整状态。Specifically, the adjustable state includes a song switching state or a playback pause state. During specific implementation, the source device needs to monitor two events from the AVRCP application: EVENT_TRACK_CHANGED (track switching event) and EVENT_PLAYBACK_STATUS_CHANGED (parameter switching event from playback to pause), when these two events are monitored, it indicates that the source device has entered Adjustable state.

S103、采用上述启用策略启用上述编码设置,并在上述编码设置启用时,将上述编码设置发送给与上述源端设备连接的接收端设备。S103. Use the enabling policy to enable the encoding setting, and when the encoding setting is enabled, send the encoding setting to the receiving end device connected to the source end device.

具体的,当经过步骤S101和步骤S102确定了与WiFi模块当前的状态参数匹配的编码设置以及该编码设置的启用策略时,本步骤中,就采用上述启用策略启用上述编码设置,并在上述编码设置启用时,将上述编码设置发送给与上述源端设备连接的接收端设备。例如,当启用策略为立即启用时,此时,就立即启用上述编码设置,并将上述编码设置发送给接收端设备,以使接收端设备根据接收到的编码设置重新配置本端的编码设置。Specifically, when the encoding setting that matches the current state parameters of the WiFi module and the enabling policy of the encoding setting are determined through steps S101 and S102, in this step, the above-mentioned enabling policy is used to enable the above-mentioned encoding setting, and in the above-mentioned encoding When the setting is enabled, the above encoding settings will be sent to the sink device connected to the above source device. For example, when the enabling policy is enabled immediately, at this time, the above-mentioned encoding settings are immediately enabled, and the above-mentioned encoding settings are sent to the receiving end device, so that the receiving end device reconfigures the encoding settings of the local end according to the received encoding settings.

再例如,当启用策略为在源端设备进入可调整状态时启用,此时,结合上面的描述,则在源端设备监听到曲目切换事件或播放中到暂停的参数切换事件时(当源端设备监听到上述事件时,表征源端设备进入可调整状态),启用上述编码设置,并将上述编码设置发送给接收端设备。需要说明的是,此时,在源端设备将上述编码设置发送给接收端设备之前,源端设备会先将上述AVDTP链路的状态调整为设置完成未播放状态,然后将上述编码设置发送给接收设备,之后再将上述AVDTP链路的状态调整为播放状态,进而使用重新设置的编码设置播放音乐。For another example, when the enabling policy is enabled when the source device enters an adjustable state, at this time, combined with the above description, when the source device detects a track switching event or a parameter switching event from playing to pause (when the source device When the device detects the above events, it means that the source device enters an adjustable state), enables the above encoding settings, and sends the above encoding settings to the receiving end device. It should be noted that at this time, before the source device sends the above encoding settings to the receiving end device, the source device will first adjust the status of the above AVDTP link to the state of setting completed and not playing, and then send the above encoding settings to The receiving device then adjusts the status of the above-mentioned AVDTP link to the playback status, and then uses the reset encoding settings to play music.

本实施例提供的方法,在AVDTP链路处于初始化状态时或上述AVDTP链路初始化之后发生WiFi模块状态变化事件时,通过为源端设备确定与源端设备的WiFi模块当前的状态参数匹配的编码设置,并根据AVDTP链路当前的状态,确定上述编码设置的启用策略,进而采用上述启用策略启用上述编码设置,并在上述编码设置启用时,将上述编码设置发送给与所述源端设备连接的接收端设备。这样,可保证源端设备的编码设备始终能够适应WiFi干扰程度,以降低WiFi信号对传输数据的干扰,避免在存在WiFi干扰时因编码设置不当造成的音质问题。此外,通过确定编码设置的启用策略,进而采用确定出的启用策略启用编码设置,可实现无接缝调节,以降低因调节编码设置对使用者造成的影响。In the method provided by this embodiment, when the AVDTP link is in the initialization state or when a WiFi module state change event occurs after the above-mentioned AVDTP link initialization, by determining for the source device the code that matches the current state parameters of the WiFi module of the source device setting, and according to the current state of the AVDTP link, determine the enabling policy of the above-mentioned encoding settings, and then use the above-mentioned enabling policy to enable the above-mentioned encoding settings, and when the above-mentioned encoding settings are enabled, send the above-mentioned encoding settings to the receiving device. In this way, it can ensure that the encoding device of the source device can always adapt to the degree of WiFi interference, so as to reduce the interference of the WiFi signal on the transmitted data, and avoid sound quality problems caused by improper encoding settings when there is WiFi interference. In addition, by determining the enabling policy of the encoding setting, and then using the determined enabling policy to enable the encoding setting, seamless adjustment can be realized, so as to reduce the impact on the user caused by adjusting the encoding setting.

图3为本申请调节蓝牙A2DP编码设置的方法实施例二的流程图。本实施例涉及的是为源端设备确定与WiFi模块当前的状态参数匹配的编码设置的具体过程。请参照图3,在上述实施例的基础上,本实施例提供的方法,步骤S101具体包括:FIG. 3 is a flow chart of Embodiment 2 of the method for adjusting Bluetooth A2DP encoding settings in the present application. This embodiment relates to the specific process of determining the encoding settings that match the current state parameters of the WiFi module for the source device. Please refer to FIG. 3, on the basis of the above-mentioned embodiments, the method provided in this embodiment, step S101 specifically includes:

S201、确定与上述源端设备的WiFi模块当前的状态参数对应的干扰程度值。S201. Determine an interference degree value corresponding to a current state parameter of the WiFi module of the source device.

具体的,源端设备的WiFi模块的状态参数包括:WiFi模块的开关状态、WiFi模块的连线状态、WiFi模块的天线状态和WiFi模块的默认码率。本步骤中,可根据上述源端设备的WiFi模块当前的状态参数以及不同的状态参数与不同的干扰程度值的对应关系,确定与上述源端设备的WiFi模块当前的状态参数对应的干扰程度值。需要说明的是,与上述源端设备的WiFi模块当前的状态参数对应的干扰程度值=WiFi模块的开关状态对应的干扰程度值*WiFi模块的天线状态对应的干扰程度值*(WiFi模块的连线状态对应的干扰程度值+WiFi模块的默认码率对应的干扰程度值)。例如,在本申请一可能的实现方式中,不同的状态参数与不同的干扰程度值的对应关系如表1所示:Specifically, the state parameters of the WiFi module of the source device include: the switch 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 degree value corresponding to the current state parameter of the WiFi module of the above-mentioned source-end device can be determined according to the current state parameters of the WiFi module of the above-mentioned source-end device and the corresponding relationship between different state parameters and different interference degree values . It should be noted that the interference degree value corresponding to the current state parameter of the WiFi module of the above-mentioned source device=the interference degree value corresponding to the switch state of the WiFi module*the interference degree value corresponding to the antenna state of the WiFi module*(connection of the WiFi module The interference degree value corresponding to the online state + the interference degree value corresponding to the default code rate of the WiFi module). For example, in a possible implementation of the present application, the corresponding relationship between different state parameters and different interference degree values is shown in Table 1:

表1不同的状态参数与不同的干扰程度值的对应关系Table 1 Correspondence between different state parameters and different interference degree values

下面给出一个具体的例子,用以详细介绍本步骤的具体实现过程。例如,在本申请一可能的实现方式中,源端设备的WiFi模块当前的状态参数如表2所示,此时,根据表1,确定WiFi模块的开关状态对应的干扰程度值为1、WiFi模块的天线状态对应的干扰程度值为1、WiFi模块的连线状态对应的干扰程度值为4、WiFi模块的默认码率对应的干扰程度值为2,进一步地,与上述源端设备的WiFi模块当前的状态参数对应的干扰程度值=WiFi模块的开关状态对应的干扰程度值*WiFi模块的天线状态对应的干扰程度值*(WiFi模块的连线状态对应的干扰程度值+WiFi模块的默认码率对应的干扰程度值),这样,确定与上述源端设备的WiFi模块当前的状态参数对应的干扰程度值等于6。需要说明的是,根据表1可知,当源端设备的WiFi模块的状态参数发生变化时,与上述源端设备的WiFi模块当前的状态参数对应的干扰程度值在0到16之间变化。A specific example is given below to introduce the specific implementation process of this step in detail. For example, in a possible implementation of the present application, the current state parameters of the WiFi module of the source device are shown in Table 2. At this time, according to Table 1, determine that the interference degree value corresponding to the switch state of the WiFi module is 1, WiFi The interference degree value corresponding to the antenna state of the module is 1, the interference degree value corresponding to the connection state of the WiFi module is 4, and the interference degree value corresponding to the default code rate of the WiFi module is 2. The interference degree value corresponding to the current state parameter of the module = the interference degree value corresponding to the switch state of the WiFi module * the interference degree value corresponding to the antenna state of the WiFi module * (the interference degree value corresponding to the connection state of the WiFi module + the default value of the WiFi module In this way, it is determined that the interference degree value corresponding to the current state parameter of the WiFi module of the source device is equal to 6. It should be noted that, according to Table 1, when the state parameter of the WiFi module of the source device changes, the interference degree value corresponding to the current state parameter of the WiFi module of the source device changes between 0 and 16.

表2源端设备的WiFi模块当前的状态参数Table 2 Current state parameters of the WiFi module of the source device

WiFi模块的开关状态Switch status of WiFi moduleopenWiFi模块的连线状态The connection status of the WiFi module2.4GHz路由器连接过程中2.4GHz router connection processWiFi模块的天线状态Antenna status of WiFi module与蓝牙模块不共用天线Does not share antenna with Bluetooth moduleWiFi模块的默认码率The default code rate of the WiFi module12M12M

S202、若上述干扰程度值小于或者等于第一预设阈值,则确定上述源端设备当前的第一编码格式为与上述WiFi模块当前的状态参数匹配的编码格式、以及从上述源端设备和上述接收端设备均支持的上述第一编码格式对应的编码参数中选择与上述干扰程度值对应的编码参数,并确定选择的编码参数为与上述WiFi模块当前的状态参数匹配的编码参数。S202. If the above-mentioned interference degree value is less than or equal to the first preset threshold, determine that the current first coding format of the above-mentioned source-end device is a coding format that matches the current state parameters of the above-mentioned WiFi module, and obtain the information from the above-mentioned source-end device and the above-mentioned Select the encoding parameter corresponding to the above-mentioned interference degree value from the encoding parameters corresponding to the above-mentioned first encoding format supported by the receiving end devices, and determine that the selected encoding parameter is an encoding parameter that matches the current state parameter of the above-mentioned WiFi module.

在介绍本步骤的具体实现过程之前,先简单介绍一下源端设备和接收端设备支持的编码信息。具体的,针对LDAC(Low-Density Paritycodes,简称LDAC)编码格式,相关协议规定源端设备和接收端设备必须同时支持LDAC quality priority mode、LDAC normalmode以及LDAC connection priority mode;对于APT-X编码格式,相关协议规定源端设备和接收端设备必须同时支持APT-X,此外,源端设备和接收端设备还可以支持APT-X HD或APT-X低延迟;对于AAC(Advanced Audio Coding,简称AAC)编码格式,相关协议规定源端设备和接收端设备必须支持采样率48KHz和44.1KHz,此外,源端设备和接收端设备还可以支持采样率32KHz。Before introducing the specific implementation process of this step, briefly introduce the encoding information supported by the source device and the receiver device. Specifically, for the LDAC (Low-Density Paritycodes, LDAC) encoding format, the relevant agreement stipulates that the source device and the receiving end device must simultaneously support LDAC quality priority mode, LDAC normalmode, and LDAC connection priority mode; for the APT-X encoding format, The relevant agreement stipulates that the source device and the receiver device must support APT-X at the same time. In addition, the source device and the receiver device can also support APT-X HD or APT-X low delay; for AAC (Advanced Audio Coding, referred to as AAC) Coding format, the relevant agreement stipulates that the source device and the sink device must support the sampling rate of 48KHz and 44.1KHz. In addition, the source device and the sink device can also support the sampling rate of 32KHz.

进一步地,在介绍了源端设备和接收端设备支持的编码信息后,下面详细介绍本步骤的具体实现过程。Further, after introducing the encoding information supported by the source device and the receiver device, the specific implementation process of this step will be described in detail below.

具体的,第一预设阈值是根据实际需要确定的。本实施例中,不对第一预设阈值的具体值进行限定。例如,在一可能的实现方式中,第一预设阈值为10。Specifically, the first preset threshold is determined according to actual needs. In this embodiment, the specific value of the first preset threshold is not limited. For example, in a possible implementation manner, the first preset threshold is 10.

需要说明的是,当确定出的干扰程度值小于或者等于第一预设阈值,此时,确定上述源端设备当前的第一编码格式为与上述WiFi模块当前的状态参数匹配的编码格式。例如,源端设备当前的第一编码格式为LDAC编码格式,此时,则确定LDAC编码格式为与上述WiFi模块当前的状态参数匹配的编码格式。进一步地,在确定了编码格式后,可按照如下方法确定编码参数,即从上述源端设备和上述接收端设备均支持的上述第一编码格式对应的编码参数中选择与上述干扰程度值对应的编码参数,并确定选择的编码参数为与上述WiFi模块当前的状态参数匹配的编码参数。在具体实现时,可按照编码参数的选择规则,从上述源端设备和上述接收端设备均支持的上述第一编码格式对应的编码参数中选择与上述干扰程度值对应的编码参数。例如,在本申请一实施例中,可按照表3所示的编码参数的选择规则从上述源端设备和上述接收端设备均支持的上述第一编码格式对应的编码参数中选择与上述干扰程度值对应的编码参数。It should be noted that, when the determined interference degree value is less than or equal to the first preset threshold, at this time, it is determined that the current first encoding format of the source device is an encoding format that matches the current state parameter of the WiFi module. For example, the current first encoding format of the source device is the LDAC encoding format. At this time, it is determined that the LDAC encoding format is an encoding format that matches the current state parameter of the above-mentioned WiFi module. Further, after the encoding format is determined, the encoding parameters may be determined as follows, that is, the encoding parameters corresponding to the above-mentioned interference degree value are selected from the encoding parameters corresponding to the above-mentioned first encoding format supported by both the above-mentioned source-end device and the above-mentioned receiving-end device. encoding parameters, and determine that the selected encoding parameters are encoding parameters that match the current state parameters of the WiFi module. During specific implementation, the encoding parameter corresponding to the interference degree value may be selected from the encoding parameters corresponding to the first encoding format supported by both the source device and the receiving end device according to the selection rule of the encoding parameter. For example, in an embodiment of the present application, according to the selection rules of encoding parameters shown in Table 3, the encoding parameters corresponding to the first encoding format supported by both the source device and the receiver device can be selected from the encoding parameters corresponding to the above interference degree The value corresponds to the encoding parameter.

表3编码参数的选择规则Table 3 Selection rules for encoding parameters

结合上面的例子,即确定出的干扰程度值为6,源端设备当前的第一编码格式为LDAC编码格式,此时,干扰程度值小于第一预设阈值,确定LDAC编码格式为与上述WiFi模块当前的状态参数匹配的编码格式,进一步地,例如,本实施例中,源端设备和接收端设备均支持LDAC quality priority mode、LDAC normal mode以及LDAC connection prioritymode,此时,根据表3,选择与确定出的干扰程度值对应的编码参数为LDAC normal mode,此时,则确定LDAC normal mode为与WiFi模块当前的状态参数匹配的编码参数。再例如,若源端设备当前的第一编码格式为SBC编码格式,此时,确定SBC编码格式为与WiFi模块当前的状态参数匹配的编码格式,进一步地,参照表3,在源端设备和接收端设备均支持的SBC编码格式对应的采样率和bitpool值中,选择中间的采样率和中间的bitpool值作为与上述WiFi模块当前的状态参数匹配的编码参数。例如,源端设备和接收端设备均支持的采样率为32KHZ~48KHZ、bitpool值为33~51。此时,则选择采样率为44.1KHZ、bitpool值为33,并确定采样率44.1KHZ、bitpool 33为与WiFi模块当前的状态参数匹配的编码参数。In combination with the above example, the determined interference degree value is 6, and the current first encoding format of the source device is the LDAC encoding format. At this time, the interference degree value is less than the first preset threshold, and the LDAC encoding format is determined to be the same as the above-mentioned WiFi encoding format. The encoding format of the current state parameter matching of the 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 connection priority mode. At this time, according to Table 3, select The encoding parameter corresponding to the determined interference degree value is LDAC normal mode, and at this time, it is determined that the LDAC normal mode is an encoding parameter matching the current state parameter of the WiFi module. For another example, if the current first encoding format of the source device is the SBC encoding format, at this time, determine that the SBC encoding format is the encoding format that matches the current state parameters of the WiFi module. Further, referring to Table 3, the source device and Among the sampling rate and bitpool value corresponding to the SBC encoding format supported by the receiving end devices, select the intermediate sampling rate and the intermediate bitpool value as the encoding parameters that match the current state parameters of the above-mentioned WiFi module. For example, the sampling rate supported by both the source device and the sink device is 32KHZ-48KHZ, and the bitpool value is 33-51. At this point, select the sampling rate as 44.1KHZ and the bitpool value as 33, and determine that the sampling rate as 44.1KHZ and bitpool as 33 are the encoding parameters that match the current state parameters of the WiFi module.

再例如,在一实施例中,确定出的干扰程度值为4,源端设备当前的第一编码格式为APT-X编码格式,此时,确定APT-X编码格式为与WiFi模块当前的状态参数匹配的编码格式,进一步地,参照表3,若源端设备和接收端设备均支持APT-X HD,则确定APT-X HD为与WiFi模块当前的状态参数匹配的编码参数。若源端设备和接收端设备不支持APT-X HD,则确定APT-X为与WiFi模块当前的状态参数匹配的编码参数(例如,在一实施例中,源端设备和接收端端均支持的APT-X编码格式对应的编码参数为APT-X HD、APT-X、APT低延迟,此时,则确定APT-X HD为与WiFi模块当前的状态参数匹配的编码参数)。For another example, in one embodiment, the determined interference degree value is 4, and the current first encoding format of the source device is the APT-X encoding format. At this time, it is determined that the APT-X encoding format is consistent with the current state of the WiFi module. For the encoding format of parameter matching, further, referring to Table 3, if both the source device and the receiving end device support APT-X HD, then determine that APT-X HD is the encoding parameter that matches the current state parameters of the WiFi module. If the source device and the receiver device do not support APT-X HD, then determine that APT-X is an encoding parameter that matches the current state parameter of the WiFi module (for example, in one embodiment, both the source device and the receiver support The encoding parameters corresponding to the APT-X encoding format are APT-X HD, APT-X, and APT low delay. At this time, it is determined that APT-X HD is an encoding parameter that matches the current state parameters of the WiFi module).

S203、若上述干扰程度值大于第一预设阈值,则从上述源端设备和上述接收端设备均支持的编码格式中选择优先级最高的第二编码格式,并确定上述第二编码格式为与上述WiFi模块当前的状态参数匹配的编码格式、以及从上述源端设备和上述接收端设备均支持的上述第二编码格式对应的编码参数中选择与上述干扰程度值对应的编码参数,并确定选择的编码参数为与上述WiFi模块当前的状态参数匹配的编码参数。S203. If the above-mentioned interference degree value is greater than the first preset threshold, select the second coding format with the highest priority from the coding formats supported by both the above-mentioned source device and the above-mentioned receiving-end device, and determine that the above-mentioned second coding format is the same as The encoding format matched by the current state parameter of the above-mentioned WiFi module, and selecting the encoding parameter corresponding to the above-mentioned interference degree value from the encoding parameters corresponding to the above-mentioned second encoding format supported by both the above-mentioned source device and the above-mentioned receiving-end device, and determining the selection The encoding parameters of are the encoding parameters that match the current state parameters of the above-mentioned WiFi module.

具体的,编码格式按照优先级从高到低依次为:APT-X编码格式、LDAC编码格式、AAC编码格式、SBC编码格式。本步骤中,若上述干扰程度值大于第一预设阈值,则从上述源端设备和上述接收端设备均支持的编码格式中选择优先级最高的第二编码格式,并确定上述第二编码格式为与上述WiFi模块当前的状态参数匹配的编码格式。例如,在一实施例中,源端设备和接收端设备均支持的编码格式有AAC编码格式、SBC编码格式和LDAC编码格式,此时,源端设备和接收端设备均支持的编码格式中优先级最高的编码格式为LDAC编码格式,此时,则确定LDAC编码格式为与上述WiFi模块当前的状态参数匹配的编码格式。进一步地,在确定了编码格式后,按照表3所示编码参数的选择规则确定编码参数,这样,确定编码参数LDAC connection priority mode为与上述WiFi模块当前的状态参数匹配的编码参数。Specifically, the encoding formats in descending order of priority are: APT-X encoding format, LDAC encoding format, AAC encoding format, and SBC encoding format. In this step, if the above-mentioned interference degree value is greater than the first preset threshold, select the second coding format with the highest priority from the coding formats supported by both the above-mentioned source-end device and the above-mentioned receiving-end device, and determine the above-mentioned second coding format It is the encoding format that matches the current state parameters of the above-mentioned WiFi module. For example, in one embodiment, the encoding formats supported by both the source device and the receiving end device include AAC encoding format, SBC encoding format, and LDAC encoding format. At this time, the encoding formats supported by both the source end device and the receiving end device have priority The encoding format with the highest level is the LDAC encoding format. At this time, it is determined that the LDAC encoding format is an encoding format that matches the current state parameters of the above-mentioned WiFi module. Further, after the encoding format is determined, the encoding parameters are determined according to the selection rules of the encoding parameters shown in Table 3, so that the encoding parameter LDAC connection priority mode is determined to be an encoding parameter that matches the current state parameters of the above-mentioned WiFi module.

再例如,在另一实施例中,源端设备和接收端设备均支持的编码格式有APT-X编码格式和AAC编码格式,此时,确定APT-X编码格式为与上述WiFi模块当前的状态参数匹配的编码格式。进一步地,若源端设备和接收端设备均支持的APT-X编码格式对应的编码参数有APT-X低延迟和APT-X,此时,根据表3,则选择APT-X低延迟为与上述WiFi模块当前的状态参数匹配的编码参数。此外,若源端设备和接收端设备均支持APT-X编码格式对应的编码参数只有APT-X,此时则选择APT-X为与上述WiFi模块当前的状态参数匹配的编码参数。再例如,在另一实施例中,若确定AAC编码格式为与WiFi模块当前的状态参数匹配的编码格式,此时,若源端设备和接收端设备均支持采样率32KHz,则选择采样率32,若不支持,则选择采样率44.1KHz。进一步地,再例如,在又一实施例中,若确定SBC编码格式为与上述WiFi模块当前的状态参数匹配的编码格式,此时,则在源端设备和接收端设备均支持的采样率和bitpool值中,选择最小的采样率和最小的bitpool值作为与上述WiFi模块当前的状态参数匹配的编码参数。例如,在一实施例中,源端设备和接收端设备均支持的采样率为32KHZ~48KHZ、bitpool值为33~51。此时,则选择采样率32KHZ、bitpool值33为与WiFi模块当前的状态参数匹配的编码参数。For another example, in another embodiment, the encoding formats supported by both the source device and the receiving end device include APT-X encoding format and AAC encoding format. At this time, it is determined that the APT-X encoding format is consistent with the current state of the WiFi module The encoding format that the parameter matches. Further, if the encoding parameters corresponding to the APT-X encoding format supported by both the source device and the receiving end device include APT-X low delay and APT-X, at this time, according to Table 3, select APT-X low delay as the same as The encoding parameters that match the current state parameters of the above-mentioned WiFi module. In addition, if both the source device and the receiver device support the APT-X encoding format and the corresponding encoding parameter is only APT-X, then select APT-X as the encoding parameter that matches the current state parameters of the above-mentioned WiFi module. For another example, in another embodiment, if it is determined that the AAC encoding format is the encoding format that matches the current state parameters of the WiFi module, at this time, if both the source device and the receiving end device support a sampling rate of 32KHz, then select a sampling rate of 32KHz , if not supported, select a sampling rate of 44.1KHz. Further, for another example, in yet another embodiment, if it is determined that the SBC encoding format is an encoding format that matches the current state parameters of the above WiFi module, at this time, the sampling rate and the sampling rate supported by both the source device and the receiving end device In the bitpool value, select the smallest sampling rate and the smallest bitpool value as the encoding parameters that match the current state parameters of the above-mentioned WiFi module. For example, in one embodiment, the sampling rate supported by both the source device and the sink device is 32KHZ-48KHZ, and the bitpool value is 33-51. At this time, select the sampling rate of 32KHZ and the bitpool value of 33 as the encoding parameters that match the current state parameters of the WiFi module.

本实施例提供的方法,提供了一种为源端设备确定与WiFi模块当前的状态参数匹配的编码设置的具体方法,通过本实施例提供的方法,可为源端设备确定出与WiFi模块当前的状态参数匹配的编码设置,以使源端设备的编码设备始终能够适应WiFi干扰程度,以降低WiFi信号对传输数据的干扰,避免在存在WiFi干扰时因编码设置不当造成的音质问题。The method provided in this embodiment provides a specific method for the source device to determine the encoding settings that match the current state parameters of the WiFi module. Through the method provided in this embodiment, the source device can determine the current code settings that match the current state parameters of the WiFi module. The state parameters match the encoding settings, so that the encoding equipment of the source device can always adapt to the degree of WiFi interference, so as to reduce the interference of WiFi signals on the transmitted data, and avoid sound quality problems caused by improper encoding settings when there is WiFi interference.

图4为本申请调节蓝牙A2DP编码设置的方法实施例三的流程图。请参照图4,在上述实施例的基础上,本实施例提供的方法,在为源端设备确定与源端设备的WiFi模块当前的状态参数匹配的编码设置之前,所述方法还包括:FIG. 4 is a flow chart of Embodiment 3 of the method for adjusting Bluetooth A2DP encoding settings in the present application. Please refer to FIG. 4 , on the basis of the above-mentioned embodiments, the method provided in this embodiment, before determining the encoding setting that matches the current state parameters of the WiFi module of the source device for the source device, the method further includes:

S301、判断是否存储有与上述源端设备连接的接收端设备支持的编码信息。S301. Determine whether encoding information supported by a sink device connected to the source device is stored.

具体的,可根据接收端设备的标识,来判断是否存储有接收端设备支持的编码信息。Specifically, whether encoding information supported by the receiving end device is stored can be determined according to the identifier of the receiving end device.

S302、若否,则获取上述接收端设备支持的编码信息。S302. If not, acquire encoding information supported by the receiving end device.

具体的,本步骤中,可通过给接收端设备发请求的方式来获取接收端设备支持的编码信息。Specifically, in this step, the encoding information supported by the receiving end device may be obtained by sending a request to the receiving end device.

本实施例提供的方法,通过判断是否存储有与上述源端设备连接的接收端设备支持的编码信息,进而在判断没有存储接收端设备支持的编码信息时,获取接收端设备支持的编码信息。这样,可保证源端设备上存储有接收端设备的编码信息,进而可根据源端设备支持的编码信息和接受端设备支持的编码信息为源端设备确定与WiFi模块当前的状态参数匹配的编码设置。The method provided in this embodiment obtains the encoding information supported by the receiving end device by judging whether the encoding information supported by the receiving end device connected to the source end device is stored, and then when it is judged that the encoding information supported by the receiving end device is not stored. In this way, it can be guaranteed that the encoding information of the receiving end device is stored on the source end device, and then the encoding information that matches the current state parameters of the WiFi module can be determined for the source end device according to the encoding information supported by the source end device and the encoding information supported by the receiving end device. set up.

图5为本申请调节蓝牙A2DP编码设置的方法实施例四的流程图。请参照图5,在上述实施例的基础上,本实施例提供的方法,在AVDTP链路初始化之后发生WiFi模块状态变化事件时,确定与源端设备的WiFi模块当前的状态参数对应的干扰程度值之后,还可以包括:FIG. 5 is a flow chart of Embodiment 4 of the method for adjusting Bluetooth A2DP encoding settings in the present application. Please refer to Figure 5, on the basis of the above embodiments, the method provided by this embodiment determines the degree of interference corresponding to the current state parameters of the WiFi module of the source device when a WiFi module state change event occurs after the AVDTP link is initialized After the value, you can also include:

S401、若上述干扰程度值与已存储的干扰程度值属于同一干扰程度等级,确定上述源端设备当前的编码设置为与上述WiFi模块当前的状态参数匹配的编码设置。S401. If the interference degree value and the stored interference degree value belong to the same interference degree level, determine that the current encoding setting of the source device is an encoding setting matching the current state parameter of the WiFi module.

具体的,干扰程度等级是依据干扰程度值预先划分的,例如,在一实施例中,当干扰程度值处于[0 5]时,规定干扰程度等级为等级一;当干扰程度值处于(5 10],规定干扰程度等级为等级二;当干扰程度值为(10 16]时,规定干扰程度等级为等级三。需要说明的是,已存储的干扰程度值是在AVTDP初始化时确定出的干扰程度值。例如,在一实施例中,已存储的干扰程度值为3,在AVDTP链路初始化之后发生WiFi模块状态变化事件时,确定出的干扰程度值为4,此时,确定出的干扰程度值与已存储的干扰程度值属于同一干扰程度等级。再例如,已存储的干扰程度值为3,在AVDTP链路初始化之后发生WiFi模块状态变化事件时,确定出的干扰程度值为8,此时,确定出的干扰程度值与已存储的干扰程度值不属于同一干扰程度等级。Specifically, the interference degree level is pre-divided according to the interference degree value. For example, in one embodiment, when the interference degree value is in [0 5], the interference degree level is specified as level one; when the interference degree value is in (5 10 ], the specified interference level is level two; when the interference level is (10 16], the specified interference level is level three. It should be noted that the stored interference level value is the interference level determined when AVTDP is initialized Value. For example, in one embodiment, the stored interference degree value is 3, when a WiFi module state change event occurs after the AVDTP link initialization, the determined interference degree value is 4, at this time, the determined interference degree Value and the stored interference degree value belong to the same interference degree level.For another example, the stored interference degree value is 3, when the WiFi module state change event occurs after the AVDTP link initialization, the determined interference degree value is 8, this , the determined interference degree value and the stored interference degree value do not belong to the same interference degree level.

具体的,若确定出的干扰程度值与已存储的干扰程度值属于同一干扰程度等级,此时,认为当前的编码设置即能够适应当前WiFi干扰程度,确定上述源端设备当前的编码设置为与上述WiFi模块当前的状态参数匹配的编码设置。Specifically, if the determined interference degree value and the stored interference degree value belong to the same interference degree level, at this time, it is considered that the current encoding setting can adapt to the current WiFi interference degree, and it is determined that the current encoding setting of the source device is the same as The encoding settings that match the current state parameters of the above WiFi module.

S402、若上述干扰程度值与已存储的干扰程度值不属于同一干扰程度等级时,为上述源端设备确定与上述WiFi模块当前的状态参数匹配的编码设置。S402. If the interference degree value and the stored interference degree value do not belong to the same interference degree level, determine for the source device an encoding setting that matches the current state parameter of the WiFi module.

具体的,若确定出的干扰程度值与已存储的干扰程度值不属于同一干扰程度等级,此时,认为当前的编码设置不能适应当前WiFi干扰程度,此时,需要为源端设备确定与WiFi模块当前的状态参数匹配的编码设置。即按照实施例二介绍的方法为源端设备确定与WiFi模块当前的状态参数匹配的编码设置。Specifically, if the determined interference degree value and the stored interference degree value do not belong to the same interference degree level, at this time, it is considered that the current encoding setting cannot adapt to the current WiFi interference degree. The encoding setting that the module's current state parameter matches. That is, according to the method introduced in the second embodiment, the encoding setting matching the current state parameters of the WiFi module is determined for the source device.

本实施例提供的方法,在AVDTP链路初始化之后发生WiFi模块状态变化事件时,在确定与源端设备的WiFi模块当前的状态参数对应的干扰程度值之后,若上述干扰程度值与已存储的干扰程度值属于同一干扰程度等级,确定源端设备当前的编码设置为与WiFi模块当前的状态参数匹配的编码设置,若上述干扰程度值与已存储的干扰程度值不属于同一干扰程度等级时,才为源端设备确定与源端设备的WiFi模块当前的状态参数匹配的编码设置。这样,可节省计算资源。In the method provided by this embodiment, when a WiFi module state change event occurs after the AVDTP link is initialized, after determining the interference degree value corresponding to the current state parameter of the WiFi module of the source device, if the above interference degree value is different from the stored The interference degree value belongs to the same interference degree level, and the current encoding setting of the source device is determined to match the encoding setting of the current state parameter of the WiFi module. If the above interference degree value and the stored interference degree value do not belong to the same interference degree level, Only then is the encoding setting that matches the current state parameters of the WiFi module of the source device determined for the source device. In this way, computing resources can be saved.

图6为本申请调节蓝牙A2DP编码设置的装置实施例一的结构示意图。该装置可以通过软件、硬件或软硬结合的方式实现。请参照图6,本实施例提供的装置,包括:处理模块100和发送模块200,其中,FIG. 6 is a schematic structural diagram of Embodiment 1 of a device for adjusting Bluetooth A2DP encoding settings according to the present application. The device can be realized by software, hardware or a combination of software and hardware. Referring to FIG. 6, the device provided in this embodiment includes: a processing module 100 and a sending module 200, wherein,

所述处理模块100,用于在AVDTP链路处于初始化状态时或所述AVDTP链路初始化之后发生WiFi模块状态变化事件时,为所述源端设备确定与所述源端设备的WiFi模块当前的状态参数匹配的编码设置;The processing module 100 is configured to determine the current relationship between the source device and the WiFi module of the source device when the AVDTP link is in an initialization state or when a WiFi module state change event occurs after the AVDTP link is initialized. Encoding settings for state parameter matching;

所述处理模块100,还用于根据所述AVDTP链路当前的状态,确定所述编码设置的启用策略,并采用所述启用策略启用所述编码设置The processing module 100 is further configured to determine the enabling policy of the encoding setting according to the current state of the AVDTP link, and enable the encoding setting by using the enabling policy

所述发送模块200,用于在所述编码设置启用时,将所述编码设置发送给与所述源端设备连接的接收端设备。The sending module 200 is configured to send the encoding setting to the receiving end device connected to the source end device when the encoding setting is enabled.

本实施例的装置,可以执行图1所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The device in this embodiment can execute the technical solution of the method embodiment shown in FIG. 1 , and its implementation principle and technical effect are similar, and details are not repeated here.

进一步地,所述处理模块100,具体用于执行以下步骤:Further, the processing module 100 is specifically configured to perform the following steps:

确定与所述源端设备的WiFi模块当前的状态参数对应的干扰程度值;Determine the interference degree value corresponding to the current state parameter of the WiFi module of the source device;

若所述干扰程度值小于或者等于第一预设阈值,则确定所述源端设备当前的第一编码格式为与所述WiFi模块当前的状态参数匹配的编码格式、以及从所述源端设备和所述接收端设备均支持的所述第一编码格式对应的编码参数中选择与所述干扰程度值对应的编码参数,并确定选择的编码参数为与所述WiFi模块当前的状态参数匹配的编码参数;If the interference degree value is less than or equal to the first preset threshold, determine that the current first coding format of the source device is a coding format that matches the current state parameter of the WiFi module, and from the source device Select a coding parameter corresponding to the interference degree value from the coding parameters corresponding to the first coding format supported by the receiving end device, and determine that the selected coding parameter matches the current state parameter of the WiFi module encoding parameters;

若所述干扰程度值大于第一预设阈值,则从所述源端设备和所述接收端设备均支持的编码格式中选择优先级最高的第二编码格式,并确定所述第二编码格式为与所述WiFi模块当前的状态参数匹配的编码格式、以及从所述源端设备和所述接收端设备均支持的所述第二编码格式对应的编码参数中选择与所述干扰程度值对应的编码参数,并确定选择的编码参数为与所述WiFi模块当前的状态参数匹配的编码参数。If the interference degree value is greater than a first preset threshold, select a second coding format with the highest priority from coding formats supported by both the source device and the receiving device, and determine the second coding format Select the encoding format corresponding to the current state parameter of the WiFi module and the encoding parameter corresponding to the second encoding format supported by both the source device and the receiving end device to correspond to the interference degree value encoding parameters, and determine that the selected encoding parameters are encoding parameters that match the current state parameters of the WiFi module.

本实施例的装置,可以用于执行图2所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The device of this embodiment can be used to implement the technical solution of the method embodiment shown in FIG. 2 , and its implementation principle and technical effect are similar, and will not be repeated here.

进一步地,所述处理模块100,具体用于在所述AVDTP链路当前的状态为初始化状态或设置完成未播放状态时,确定所述编码设置的启用策略为立即启用,并在所述AVDTP链路当前的状态为播放状态时,确定所述编码设置的启动策略为在所述源端设备进入可调整状态时启用。Further, the processing module 100 is specifically configured to, when the current state of the AVDTP link is the initialization state or the setting completes the unplayed state, determine that the enabling strategy of the encoding setting is to enable immediately, and perform When the current state of the channel is the playing state, it is determined that the start policy of the encoding setting is enabled when the source device enters the adjustable state.

进一步地,请继续参照图6,本实施例的装置,还可以包括判断模块300和获取模块400,其中,Further, please continue to refer to FIG. 6, the device of this embodiment may also include a judgment module 300 and an acquisition module 400, wherein,

所述判断模块300,用于在所述处理模块100为所述源端设备确定与所述源端设备的WiFi模块当前的状态参数匹配的编码设置之前,判断是否存储有与所述源端设备连接的接收端设备支持的编码信息;The judging module 300 is used to judge whether there is a code setting matching the current state parameter of the WiFi module of the source device for the source device before the processing module 100 determines whether the The encoding information supported by the connected receiver device;

所述获取模块400,用于在所述判断模块300判断没有存储与所述源端设备连接的接收端设备支持的编码信息时,获取所述接收端设备支持的编码信息。The acquiring module 400 is configured to acquire the encoding information supported by the receiving end device when the judging module 300 judges that the encoding information supported by the receiving end device connected to the source end device is not stored.

进一步地,所述处理模块100,还用于在所述AVDTP链路初始化之后发生WiFi模块状态变化事件时,在所述处理模块确定与所述源端设备的WiFi模块当前的状态参数对应的干扰程度值之后,在所述干扰程度值与已存储的干扰程度值属于同一干扰程度等级时,确定所述源端设备当前的编码设置为与所述WiFi模块当前的状态参数匹配的编码设置,并在所述干扰程度值与已存储的干扰程度值不属于同一干扰程度等级时,为所述源端设备确定与所述WiFi模块当前的状态参数匹配的编码设置。Further, the processing module 100 is also configured to determine, in the processing module, the interference corresponding to the current state parameter of the WiFi module of the source device when a WiFi module state change event occurs after the AVDTP link is initialized After the degree value, when the interference degree value and the stored interference degree value belong to the same interference degree level, determine that the current encoding setting of the source device is an encoding setting that matches the current state parameter of the WiFi module, and When the interference degree value and the stored interference degree value do not belong to the same interference degree level, determine an encoding setting that matches the current state parameter of the WiFi module for the source device.

本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps for implementing the above method embodiments can be completed by program instructions and related hardware. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps including the above-mentioned method embodiments; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other various media that can store program codes.

最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than limiting them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: It is still possible to modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the various embodiments of the present invention. scope.

Claims (10)

Translated fromChinese
1.一种调节蓝牙A2DP编码设置的方法,其特征在于,所述方法应用于源端设备,所述方法包括:1. A method for adjusting Bluetooth A2DP coding settings, characterized in that, the method is applied to a source device, and the method includes:在AVDTP链路处于初始化状态时或所述AVDTP链路初始化之后发生WiFi模块状态变化事件时,为所述源端设备确定与所述源端设备的WiFi模块当前的状态参数匹配的编码设置;When the AVDTP link is in an initialization state or when a WiFi module state change event occurs after the AVDTP link is initialized, determine for the source device a coding setting that matches the current state parameters of the WiFi module of the source device;根据所述AVDTP链路当前的状态,确定所述编码设置的启用策略;According to the current state of the AVDTP link, determine the enabling strategy of the encoding settings;采用所述启用策略启用所述编码设置,并在所述编码设置启用时,将所述编码设置发送给与所述源端设备连接的接收端设备。Enabling the encoding setting by using the enabling policy, and sending the encoding setting to the receiving end device connected to the source end device when the encoding setting is enabled.2.根据权利要求1所述的方法,其特征在于,所述为所述源端设备确定与所述源端设备的WiFi模块当前的状态参数匹配的编码设置,包括:2. The method according to claim 1, wherein the determining the encoding setting for the source device to match the current state parameter of the WiFi module of the source device comprises:确定与所述源端设备的WiFi模块当前的状态参数对应的干扰程度值;Determine the interference degree value corresponding to the current state parameter of the WiFi module of the source device;若所述干扰程度值小于或者等于第一预设阈值,则确定所述源端设备当前的第一编码格式为与所述WiFi模块当前的状态参数匹配的编码格式、以及从所述源端设备和所述接收端设备均支持的所述第一编码格式对应的编码参数中选择与所述干扰程度值对应的编码参数,并确定选择的编码参数为与所述WiFi模块当前的状态参数匹配的编码参数;If the interference degree value is less than or equal to the first preset threshold, determine that the current first coding format of the source device is a coding format that matches the current state parameter of the WiFi module, and from the source device Select a coding parameter corresponding to the interference degree value from the coding parameters corresponding to the first coding format supported by the receiving end device, and determine that the selected coding parameter matches the current state parameter of the WiFi module encoding parameters;若所述干扰程度值大于第一预设阈值,则从所述源端设备和所述接收端设备均支持的编码格式中选择优先级最高的第二编码格式,并确定所述第二编码格式为与所述WiFi模块当前的状态参数匹配的编码格式、以及从所述源端设备和所述接收端设备均支持的所述第二编码格式对应的编码参数中选择与所述干扰程度值对应的编码参数,并确定选择的编码参数为与所述WiFi模块当前的状态参数匹配的编码参数。If the interference degree value is greater than the first preset threshold, select a second encoding format with the highest priority from encoding formats supported by both the source device and the receiving end device, and determine the second encoding format Select the encoding format corresponding to the current state parameter of the WiFi module and the encoding parameter corresponding to the second encoding format supported by both the source device and the receiving end device to correspond to the interference degree value encoding parameters, and determine that the selected encoding parameters are encoding parameters that match the current state parameters of the WiFi module.3.根据权利要求1所述的方法,其特征在于,所述根据所述AVDTP链路当前的状态,确定所述编码设置的启用策略,包括:3. The method according to claim 1, wherein, according to the current state of the AVDTP link, determining the enabling strategy of the encoding setting includes:若所述AVDTP链路当前的状态为初始化状态或设置完成未播放状态时,确定所述编码设置的启用策略为立即启用;若所述AVDTP链路当前的状态为播放状态时,确定所述编码设置的启动策略为在所述源端设备进入可调整状态时启用。If the current state of the AVDTP link is an initialization state or when the setting is completed and not played, determine that the enabling policy of the encoding setting is to enable immediately; if the current state of the AVDTP link is a playing state, determine the encoding The set startup policy is enabled when the source device enters an adjustable state.4.根据权利要求1所述的方法,其特征在于,所述为所述源端设备确定与所述源端设备的WiFi模块当前的状态参数匹配的编码设置之前,所述方法还包括:4. The method according to claim 1, characterized in that, before the encoding setting for the source device is determined to match the current state parameter of the WiFi module of the source device, the method further comprises:判断是否存储有与所述源端设备连接的接收端设备支持的编码信息;judging whether encoding information supported by the receiving device connected to the source device is stored;若否,则获取所述接收端设备支持的编码信息。If not, acquire encoding information supported by the receiver device.5.根据权利要求2所述的方法,其特征在于,在所述AVDTP链路初始化之后发生WiFi模块状态变化事件时,所述确定与所述源端设备的WiFi模块当前的状态参数对应的干扰程度值之后,所述方法还包括:5. The method according to claim 2, wherein, when a WiFi module state change event occurs after the AVDTP link initialization, the interference corresponding to the current state parameter of the WiFi module of the source device is determined After the degree value, the method also includes:若所述干扰程度值与已存储的干扰程度值属于同一干扰程度等级,确定所述源端设备当前的编码设置为与所述WiFi模块当前的状态参数匹配的编码设置;If the interference degree value and the stored interference degree value belong to the same interference degree level, determine that the current encoding setting of the source device is an encoding setting that matches the current state parameter of the WiFi module;若所述干扰程度值与已存储的干扰程度值不属于同一干扰程度等级,为所述源端设备确定与所述WiFi模块当前的状态参数匹配的编码设置。If the interference degree value and the stored interference degree value do not belong to the same interference degree level, determine an encoding setting matching a current state parameter of the WiFi module for the source device.6.一种调节蓝牙A2DP编码设置的装置,其特征在于,所述装置应用于源端设备,所述装置包括:处理模块和发送模块,其中,6. A device for adjusting Bluetooth A2DP encoding settings, characterized in that the device is applied to a source device, and the device includes: a processing module and a sending module, wherein,所述处理模块,用于在AVDTP链路处于初始化状态时或所述AVDTP链路初始化之后发生WiFi模块状态变化事件时,为所述源端设备确定与所述源端设备的WiFi模块当前的状态参数匹配的编码设置;The processing module is configured to determine the current state of the WiFi module of the source device for the source device when the AVDTP link is in an initialization state or when a WiFi module state change event occurs after the AVDTP link is initialized Encoding settings for parameter matching;所述处理模块,还用于根据所述AVDTP链路当前的状态,确定所述编码设置的启用策略,并采用所述启用策略启用所述编码设置;The processing module is further configured to determine an enabling policy of the encoding setting according to the current state of the AVDTP link, and enable the encoding setting by using the enabling policy;所述发送模块,用于在所述编码设置启用时,将所述编码设置发送给与所述源端设备连接的接收端设备。The sending module is configured to send the encoding setting to the receiving end device connected to the source end device when the encoding setting is enabled.7.根据权利要求6所述的装置,其特征在于,所述处理模块,具体用于执行以下步骤:7. The device according to claim 6, wherein the processing module is specifically configured to perform the following steps:确定与所述源端设备的WiFi模块当前的状态参数对应的干扰程度值;Determine the interference degree value corresponding to the current state parameter of the WiFi module of the source device;若所述干扰程度值小于或者等于第一预设阈值,则确定所述源端设备当前的第一编码格式为与所述WiFi模块当前的状态参数匹配的编码格式、以及从所述源端设备和所述接收端设备均支持的所述第一编码格式对应的编码参数中选择与所述干扰程度值对应的编码参数,并确定选择的编码参数为与所述WiFi模块当前的状态参数匹配的编码参数;If the interference degree value is less than or equal to the first preset threshold, determine that the current first coding format of the source device is a coding format that matches the current state parameter of the WiFi module, and from the source device Select a coding parameter corresponding to the interference degree value from the coding parameters corresponding to the first coding format supported by the receiving end device, and determine that the selected coding parameter matches the current state parameter of the WiFi module encoding parameters;若所述干扰程度值大于第一预设阈值,则从所述源端设备和所述接收端设备均支持的编码格式中选择优先级最高的第二编码格式,并确定所述第二编码格式为与所述WiFi模块当前的状态参数匹配的编码格式、以及从所述源端设备和所述接收端设备均支持的所述第二编码格式对应的编码参数中选择与所述干扰程度值对应的编码参数,并确定选择的编码参数为与所述WiFi模块当前的状态参数匹配的编码参数。If the interference degree value is greater than the first preset threshold, select a second encoding format with the highest priority from encoding formats supported by both the source device and the receiving end device, and determine the second encoding format Select the encoding format corresponding to the current state parameter of the WiFi module and the encoding parameter corresponding to the second encoding format supported by both the source device and the receiving end device to correspond to the interference degree value encoding parameters, and determine that the selected encoding parameters are encoding parameters that match the current state parameters of the WiFi module.8.根据权利要求6所述的装置,其特征在于,所述处理模块,具体用于在所述AVDTP链路当前的状态为初始化状态或设置完成未播放状态时,确定所述编码设置的启用策略为立即启用,并在所述AVDTP链路当前的状态为播放状态时,确定所述编码设置的启动策略为在所述源端设备进入可调整状态时启用。8. The device according to claim 6, wherein the processing module is specifically configured to determine that the encoding setting is enabled when the current state of the AVDTP link is an initialization state or a setting is completed and an unplayed state The strategy is to enable immediately, and when the current state of the AVDTP link is the playback state, determine that the startup strategy of the encoding setting is to enable when the source device enters an adjustable state.9.根据权利要求6所述的装置,其特征在于,所述装置还包括判断模块和获取模块,其中,9. The device according to claim 6, further comprising a judgment module and an acquisition module, wherein,所述判断模块,用于在所述处理模块为所述源端设备确定与所述源端设备的WiFi模块当前的状态参数匹配的编码设置之前,判断是否存储有与所述源端设备连接的接收端设备支持的编码信息;The judging module is used to judge whether there is any stored information connected to the source device before the processing module determines the encoding setting that matches the current state parameter of the WiFi module of the source device for the source device. Encoding information supported by the receiving device;所述获取模块,用于在所述判断模块判断没有存储与所述源端设备连接的接收端设备支持的编码信息时,获取所述接收端设备支持的编码信息。The acquiring module is configured to acquire the encoding information supported by the receiving end device when the judging module judges that the encoding information supported by the receiving end device connected to the source end device is not stored.10.根据权利要求7所述的装置,其特征在于,所述处理模块,还用于在在所述AVDTP链路初始化之后发生WiFi模块状态变化事件时,在所述处理模块确定与所述源端设备的WiFi模块当前的状态参数对应的干扰程度值之后,在所述干扰程度值与已存储的干扰程度值属于同一干扰程度等级时,确定所述源端设备当前的编码设置为与所述WiFi模块当前的状态参数匹配的编码设置,并在所述干扰程度值与已存储的干扰程度值不属于同一干扰程度等级时,为所述源端设备确定与所述WiFi模块当前的状态参数匹配的编码设置。10. The device according to claim 7, wherein the processing module is further configured to, when a WiFi module state change event occurs after the AVDTP link is initialized, when the processing module determines that it is related to the source After the interference degree value corresponding to the current state parameter of the WiFi module of the end device, when the interference degree value and the stored interference degree value belong to the same interference degree level, determine that the current encoding setting of the source end device is the same as the The encoding setting of the current state parameter matching of the WiFi module, and when the interference degree value and the stored interference degree value do not belong to the same interference degree level, determine that the source device matches the current state parameter of the WiFi module encoding settings.
CN201710693152.8A2017-08-142017-08-14 A method and device for adjusting Bluetooth A2DP encoding settingsActiveCN107404339B (en)

Priority Applications (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

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201710693152.8ACN107404339B (en)2017-08-142017-08-14 A method and device for adjusting Bluetooth A2DP encoding settings

Related Child Applications (1)

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

Publications (2)

Publication NumberPublication Date
CN107404339Atrue CN107404339A (en)2017-11-28
CN107404339B CN107404339B (en)2021-07-16

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 Before (1)

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

Country Status (1)

CountryLink
CN (2)CN113470668B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN108389583A (en)*2018-07-042018-08-10恒玄科技(上海)有限公司A kind of coding/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
CN111199743A (en)*2020-02-282020-05-26Oppo广东移动通信有限公司 Audio coding format determination method, device, storage medium and electronic device
CN111510900A (en)*2020-04-202020-08-07Oppo广东移动通信有限公司Bluetooth transmission method, terminal device and computer readable storage medium
WO2022222713A1 (en)*2021-04-202022-10-27华为技术有限公司Codec negotiation and switching method

Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20060030266A1 (en)*2002-08-012006-02-09Prasanna DesaiMethod and system for achieving enhanced quality and higher throughput for collocated IEEE 802.11B/G and bluetooth devices in coexistent operation
CN101286770A (en)*2007-04-092008-10-15艾威梯软件技术(北京)有限公司Method and system for automatically configuring audio encoding format transmitted by bluetooth A2DP
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
CN106559738A (en)*2015-09-302017-04-05苹果公司The short-distance wireless packet of the sensitive application of prioritization time
CN106792954A (en)*2016-12-162017-05-31中南大学A kind of bluetooth based on environment sensing and Wifi changing methods and transmission equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US6873825B2 (en)*2002-01-102005-03-29Qualcomm, IncorporatedSystem and method for optimizing bluetooth transmissions to overcome signal interference
WO2013019182A1 (en)*2011-07-292013-02-07Research In Motion LimitedEnhancement of in-device coexistence interference avoidance
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
CN106332132B (en)*2015-07-032021-05-04中兴通讯股份有限公司Communication terminal and method for self-adaptive Bluetooth performance adjustment
CN105578232A (en)*2016-01-052016-05-11珠海格力电器股份有限公司Multimedia playing system and playing method based on mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20060030266A1 (en)*2002-08-012006-02-09Prasanna DesaiMethod and system for achieving enhanced quality and higher throughput for collocated IEEE 802.11B/G and bluetooth devices in coexistent operation
CN101286770A (en)*2007-04-092008-10-15艾威梯软件技术(北京)有限公司Method and system for automatically configuring audio encoding format transmitted by bluetooth A2DP
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
CN106559738A (en)*2015-09-302017-04-05苹果公司The short-distance wireless packet of the sensitive application of prioritization time
CN106792954A (en)*2016-12-162017-05-31中南大学A kind of bluetooth based on environment sensing and Wifi changing methods and transmission equipment

Cited By (10)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN108389583A (en)*2018-07-042018-08-10恒玄科技(上海)有限公司A kind of coding/decoding method and system of wireless Bluetooth headsets communication audio
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
CN111199743A (en)*2020-02-282020-05-26Oppo广东移动通信有限公司 Audio coding format determination method, device, storage medium and electronic device
CN111199743B (en)*2020-02-282023-08-18Oppo广东移动通信有限公司Audio coding format determining method and device, storage medium and electronic equipment
CN111510900A (en)*2020-04-202020-08-07Oppo广东移动通信有限公司Bluetooth transmission method, terminal device and computer readable storage medium
CN111510900B (en)*2020-04-202023-08-25Oppo广东移动通信有限公司 Bluetooth transmission method, terminal device and computer-readable storage medium
WO2022222713A1 (en)*2021-04-202022-10-27华为技术有限公司Codec negotiation and switching method
JP2024515684A (en)*2021-04-202024-04-10華為技術有限公司 Codec Negotiation and Switching Methods
JP7681720B2 (en)2021-04-202025-05-22華為技術有限公司 Codec Negotiation and Switching Methods

Also Published As

Publication numberPublication date
CN113470668A (en)2021-10-01
CN113470668B (en)2024-03-12
CN107404339B (en)2021-07-16

Similar Documents

PublicationPublication DateTitle
US11425485B2 (en)Wireless earphone that transitions between wireless networks
CN107170460B (en) Sound quality adjustment method, system, host, and storage medium
KR102697310B1 (en)Method for operating a bluetooth device
CN107404339A (en) A method and device for adjusting Bluetooth A2DP encoding settings
EP3745813B1 (en)Method for operating a bluetooth device
TWI669923B (en)Method of choosing master wireless earphone in wireless earphone set, electronic apparatus and wireless earphone
US7860458B2 (en)Audio transmitting apparatus and mobile communication terminal
CN111199743A (en) Audio coding format determination method, device, storage medium and electronic device
US20240022783A1 (en)Multimedia playback synchronization
US12131741B2 (en)Audio transmission method and electronic device
WO2016150316A1 (en)Audio output control method and apparatus
US11089496B2 (en)Obtention of latency information in a wireless audio system
JP4445515B2 (en) Information processing device
CN114945208A (en)Method and system for reducing power consumption and earphone pair
CN202856964U (en) An audio playback system and a multi-channel earphone incorporating wireless voice
CN110366752B (en)Voice frequency division transmission method, source terminal, play terminal, source terminal circuit and play terminal circuit
TWI894366B (en)Multimedia playback synchronization
CN105635903A (en) Wireless connection and control method and system for wireless speaker
CN105679344B (en)Audio frequency playing method and device
CN116709418A (en)Dynamic delay adjustment method and device, bluetooth playing equipment and storage medium
CN120512634A (en) Audio playback method, charging box, audio playback system, and storage medium
US8073383B2 (en)Method and apparatus for long-time music play on a mobile communication terminal
CN120044862A (en)Control method, electronic device and output device
JP2018049124A (en) Wireless communication apparatus, wireless communication system, and noise reduction method
JP2007174210A (en)Wireless communication apparatus and method for enhancing voice quality

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
CB02Change of applicant information

Address after:266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218

Applicant after:Hisense Visual Technology Co., Ltd.

Address before:266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218

Applicant before:QINGDAO HISENSE ELECTRONICS Co.,Ltd.

CB02Change of applicant information
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp