Communication processing devices, chips and electronic devices
By using a communication processing device in the audio playback device and allocating interval channels for audio and ranging signal transmission, the interference problem between audio playback devices is solved, ensuring the smoothness of the audio signal and the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- ACTIONS ZHUHAI TECH CO
- Filing Date
- 2026-01-21
- Publication Date
- 2026-06-02
Smart Images

Figure CN122137409A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of audio transmission technology, and more specifically, to a communication processing device, chip, and electronic device. Background Technology
[0002] Currently, in order to enhance the surround sound experience for users listening to audio, multiple audio playback devices can be deployed in different settings such as homes and cinemas to provide stereo sound effects.
[0003] In related technologies, if an audio playback device needs to measure the distance between itself and other audio playback devices while playing audio, it will cause interference with the audio playback, or even cause the audio playback to pause, which will bring a bad user experience. Summary of the Invention
[0004] The purpose of this disclosure is to provide a communication processing device, chip, and electronic device designed to ensure smooth audio playback during the process of playing audio and measuring the distance between audio playback devices.
[0005] In a first aspect, this disclosure provides a communication processing device applied to a first chip, the communication processing device comprising: a first radio frequency module, a processing module and a second radio frequency module; The first radio frequency module is used to transmit audio signals to the second chip through the first channel; The processing module is used to allocate the second channel to the second radio frequency module; the number of channels between the first channel and the second channel is greater than or equal to a preset number; The second radio frequency module is used to send a ranging signal to the second chip through the second channel; the ranging signal is used to measure the distance between the first chip and the second chip.
[0006] Optionally, it also includes a first channel pool and a second channel pool; the first channel pool includes a plurality of first channels, the second channel pool includes a plurality of second channels, and the number of channels between any first channel in the first channel pool and any second channel in the second channel pool is greater than or equal to the preset number; The processing module is further configured to allocate any of the first channels in the first channel pool to the first radio frequency module, and to allocate any of the second channels in the second channel pool to the second radio frequency module.
[0007] Optionally, the processing module is further configured to determine the target channel range in which the first channel is located, and to assign any second channel outside the target channel range to the second radio frequency module; the multiple channels in the target channel range are arranged in ascending order of frequency point, the number of channels between the first channel and the channel with the smallest frequency point in the target channel range is greater than or equal to the preset number, and the number of channels between the first channel and the channel with the largest frequency point in the target channel range is greater than or equal to the preset number.
[0008] Optionally, the second radio frequency module is further configured to send the measured distance to the processing module; The processing module is further configured to adjust the first radio frequency power of the first radio frequency module and / or adjust the second radio frequency power of the second radio frequency module according to the measured distance; wherein, the closer the distance, the smaller the first radio frequency power and / or the second radio frequency power.
[0009] Optionally, the processing module is further configured to activate the second radio frequency module when it is determined that the data error rate of the data received by the first radio frequency module is greater than a preset error rate; The second radio frequency module is also used to send a ranging signal to the second chip via the second channel after startup.
[0010] Optionally, the processing module is further configured to obtain adjustment parameters based on the measured distance and send the adjustment parameters to the first radio frequency module; The first radio frequency module is also used to adjust the equalizer of the audio playback device where the first chip is located and / or adjust the sound effects of the audio playback device according to the adjustment parameters.
[0011] Optionally, the second radio frequency module is further configured to detect the number of channels between the first channel and the second channel, and stop sending the ranging signal to the second chip if the number of channels is less than or equal to the preset number, or send the ranging signal to the second chip if the number of channels is greater than or equal to the preset number.
[0012] Optionally, the communication processing device further includes a first filtering module and a second filtering module; The first filtering module is used to filter out signals other than the audio signal and send the audio signal to the first channel to transmit the audio signal to the second chip through the first channel; The second filtering module is used to filter out signals other than the ranging signal and send the ranging signal to the second channel so as to transmit the ranging signal to the second chip through the second channel.
[0013] Secondly, this disclosure provides a chip on which the communication processing device provided in the first aspect is configured.
[0014] Thirdly, this disclosure provides an audio playback device, wherein the audio playback device is configured with the chip provided in the second aspect.
[0015] Through the above technical solution, the processing module can allocate a second channel to the second radio frequency module, ensuring that the number of channels between the second channel and the first channel is greater than a preset number. Because the number of channels between the first channel used by the first radio frequency module to send audio signals to the second chip and the second channel used by the second radio frequency module to send ranging signals to the second chip is relatively large, interference between the audio signals sent by the first radio frequency module and the ranging signals sent by the second radio frequency module is minimized. Even if the audio signals and ranging signals are sent in parallel on different channels, there will be no stuttering or interruption in the audio signals sent by the first radio frequency module, thus ensuring smooth audio signal playback.
[0016] Other features and advantages of this disclosure will be described in detail in the following detailed description section. Attached Figure Description
[0017] The accompanying drawings are provided to further illustrate the present disclosure and form part of the specification. They are used together with the following detailed description to explain the present disclosure, but do not constitute a limitation thereof. In the drawings: Figure 1 This is a schematic diagram of a first chip according to an exemplary embodiment; Figure 2 This is a schematic diagram illustrating communication between a first chip and a second chip according to an exemplary embodiment; Figure 3 This is a schematic diagram of multiple channels according to an exemplary embodiment; Figure 4 This is a schematic diagram of a first channel pool and a second channel pool according to an exemplary embodiment; Figure 5 This is a schematic diagram of a target channel range according to an exemplary embodiment; Figure 6 This is a waveform diagram of an audio signal and a ranging signal according to an exemplary embodiment; Figure 7 This is a schematic diagram of a first chip according to an exemplary embodiment; Figure 8 This is a schematic diagram of an electronic device according to an exemplary embodiment. Detailed Implementation
[0018] The specific embodiments of this disclosure will be described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are for illustration and explanation only and are not intended to limit this disclosure.
[0019] In related technologies, if an audio playback device needs to measure the distance between itself and other audio playback devices while playing audio, it will cause interference with the audio playback, or even cause the audio playback to pause, which will bring a bad user experience.
[0020] The reason is that if an audio playback device needs to work with other audio playback devices to provide better sound effects for the user, when the speaker playback device plays its own audio, it needs to occupy one channel to transmit the audio signal to the other audio playback devices, and it will also occupy another channel to send a ranging signal to the other audio playback devices to measure the distance between the audio playback device and the other audio playback devices. If the channel occupied by transmitting the audio signal and the channel occupied by transmitting the ranging signal are adjacent to each other, the two channels will interfere with each other, causing the audio signal to be unable to be transmitted smoothly, and ultimately causing the playback of the audio signal to be interfered with or even paused.
[0021] In some scenarios, assuming the primary audio playback device is the main playback device and the others are secondary playback devices, the primary playback device will coordinate with the secondary playback devices to provide better surround sound for the user. The primary playback device needs to send the audio to the secondary playback devices. During this process, the primary playback device sends a ranging signal to the secondary playback devices to measure the distance between them and adjusts the music effects accordingly to better provide surround sound. However, if the channel used by the primary playback device to send the audio signal and the channel used to send the ranging signal are adjacent or have similar frequencies, interference can occur. This can cause stuttering or even pauses in audio playback on the primary playback device, resulting in a poor user experience.
[0022] Based on this, this disclosure proposes a communication processing apparatus, please refer to... Figure 1 As shown, the communication processing device is applied to a first chip, such as a SOC (System on Chip), which can be configured in audio playback devices with audio playback functions, such as speakers, mobile phones, computers, and tablets.
[0023] Among them, see Figure 1 As shown, the communication processing device includes a first radio frequency module, a processing module, and a second radio frequency module.
[0024] A first radio frequency (RF) module is used to transmit audio signals to a second chip via a first channel. The first channel is the channel occupied by the first RF module for transmitting audio signals. The audio signals emitted by the first RF module are sent to the second chip, which is configured in another audio playback device.
[0025] For example, let's consider chip A as the first chip and chip B as the second chip. Chip A is located in the main playback device, and chip B is located in the secondary playback device. Since the main playback device contains complete audio data, while the secondary playback device lacks the required audio data, when the main and secondary playback devices play audio together, the main playback device needs to send the required portion of the audio from the secondary playback device to the secondary playback device. Chip A in the main playback device can then send an audio signal to chip B in the secondary playback device through the first channel. The difference between the main and secondary playback devices is that the main playback device, as the master node, provides audio data to the secondary playback device for playback. The main playback device can produce sound independently, adjust the volume, and has a larger number of interfaces; while the secondary playback device cannot play audio independently and requires audio data from the main playback device to play audio.
[0026] Of course, this example is one scenario, and it can also be applied to scenarios where the mobile phone is the main playback device and the speaker is the secondary playback device, with the mobile phone and speaker playing audio together; it can also be applied to scenarios where one mobile phone is the main playback device and another mobile phone is the secondary playback device, with the mobile phones playing audio together.
[0027] The audio data played by the main playback device can come from the main playback device itself or from audio data sent by external devices, such as audio data sent to the main playback device by external mobile phones, tablets, laptops, or computers. The main playback device plays part of the local or external audio data itself and transmits the other part to the secondary playback device for playback.
[0028] The second radio frequency module is used to transmit ranging signals to the second chip via a second channel. This second channel is the channel used by the second radio frequency module to transmit the ranging signals. Specifically, the ranging signals emitted by the second radio frequency module are sent to the second chip.
[0029] The ranging signal is a target audio signal used to measure the distance between the first chip and the second chip. The second radio frequency module locally stores the target audio signal as a reference audio signal and sends the target audio signal to the second chip. After receiving the target audio signal, the second chip plays the target audio signal. The second radio frequency module collects the target audio signal to obtain a sampled audio signal. The second radio frequency module then compares the time offset between the sampled audio signal and the reference audio signal, and uses the time offset as the time from when the second radio frequency module sends the target audio signal to when it receives the target audio signal again. Based on the time offset and the speed of sound in the air, the distance between the first chip and the second chip is calculated.
[0030] In some scenarios, refer to Figure 2 As shown, the first chip and the second chip have the same configuration. The first chip contains a first radio frequency (RF) module and a second RF module, while the second chip contains a third RF module and a fourth RF module. The first RF module communicates with the third RF module, and the first RF module in the first chip transmits audio signals to the third RF module in the second chip via a first channel. The second RF module communicates with the fourth RF module, and the second RF module in the first chip transmits ranging signals to the fourth RF module in the second chip via a second channel.
[0031] The processing module is used to allocate the second channel to the second radio frequency module, such that the number of channels between the first channel and the second channel is greater than or equal to a preset number. The processing module can be a top-level scheduler configured in the first chip, such as software, controller, or processor deployed in the first chip.
[0032] See Figure 3 As shown, one frequency point corresponds to one channel. Taking a preset number of 10 as an example, if the first radio frequency module occupies the channel with frequency point 1, the processing module will allocate a channel arranged after frequency point 10 to the second radio frequency module, so that the number of channels between the first channel and the second channel is more than 10.
[0033] Through the above technical solution, the processing module can allocate a second channel to the second radio frequency module, ensuring that the number of channels between the second channel and the first channel is greater than a preset number. Because the number of channels between the first channel used by the first radio frequency module to send audio signals to the second chip and the second channel used by the second radio frequency module to send ranging signals to the second chip is relatively large, interference between the audio signals sent by the first radio frequency module and the ranging signals sent by the second radio frequency module is minimal. Even if the audio signals and ranging signals are sent in parallel on different channels, there will be no stuttering or interruption of the audio signals sent by the first radio frequency module.
[0034] Figure 4 and Figure 5 This disclosure includes exemplary embodiments for interpreting the processing module's allocation of channels or timing to the first radio frequency module and / or the second radio frequency module, comprising the following three schemes: In the first scheme, the processing module allocates channels to both the first RF module and the second RF module. The processing module allocates any first channel from the first channel pool to the first RF module and any second channel from the second channel pool to the second RF module.
[0035] The first channel pool includes multiple first channels, whose frequency points are arranged in ascending order. The second channel pool includes multiple second channels, whose frequency points are arranged in ascending order. The number of channels between any first channel in the first channel pool and any second channel in the second channel pool is greater than or equal to a preset number. This can also be understood as the number of channels between the first channel with the largest frequency point in the first channel pool and the second channel with the smallest frequency point in the second channel pool being greater than or equal to a preset number.
[0036] For example, please see Figure 4 As shown, taking a preset quantity of 10 as an example, the processing module allocates a first channel pool for the first radio frequency module, which includes five first channels at frequencies 1 to 5. The processing module allocates a second channel pool for the second radio frequency module, which includes five second channels at frequencies 15 to 20. Since the number of channels between the first channel at frequency 5 in the first channel pool and the second channel at frequency 15 in the second channel pool is more than 10, the processing module can ensure that the number of channels between the first channel and the second channel is more than 10 by selecting any first channel in the first channel pool and any second channel in the second channel pool.
[0037] The processing module can also control the first radio frequency module to switch from its currently occupied first channel to a first channel in the first channel pool with higher signal quality when the transmission quality of the first channel currently occupied by the first radio frequency module becomes low or lower than a preset quality. Similarly, the processing module can control the second radio frequency module to switch from its currently occupied second channel to a second channel in the second channel pool with higher signal quality when the transmission quality of the second channel currently occupied by the second radio frequency module becomes low or lower than a preset quality.
[0038] In the second approach, the processing module allocates a channel separately to the second radio frequency module. The processing module determines the target channel range where the first channel is located and allocates any second channel outside the target channel range to the second radio frequency module.
[0039] Among them, multiple channels in the target channel range are arranged in ascending order of frequency. The number of channels between the first channel and the channel with the smallest frequency in the target channel range is greater than or equal to a preset number, and the number of channels between the first channel and the channel with the largest frequency in the target channel range is greater than or equal to a preset number.
[0040] For example, see Figure 5 As shown, taking a preset quantity of 10 as an example, assuming that the first channel currently occupied by the first radio frequency module is the first channel of frequency point 10, then the target channel range is the channel range composed of 10 first channels before and after frequency point 10, which is the range composed of frequency point 0 to frequency point 20. Channels outside this range can be used as second channels for the second radio frequency module.
[0041] In the third approach, the second radio frequency module can also detect the number of channels between the first channel and the second channel, and stop sending the ranging signal to the second chip if the number of channels is less than or equal to the preset number, or send the ranging signal to the second chip if the number of channels is greater than or equal to the preset number.
[0042] If the first radio frequency module sends an audio signal while the second radio frequency module sends a ranging signal, and the first channel occupied by the audio signal and the second channel occupied by the ranging signal are close to each other, then the audio signal and the ranging signal can be sent alternately, thereby achieving parallel transmission of the audio signal and the ranging signal.
[0043] For example, please see Figure 6 As shown, the second radio frequency module can detect the audio signal sent by the first radio frequency module. When it detects that the audio signal transmitted and received by the first radio frequency module is at a high level, it determines that the first radio frequency module is working. At this time, the transmission and reception actions of the second radio frequency module can be cancelled, and the transmission and reception of the ranging signal can be cancelled. At this time, the ranging signal is at a low level. When it detects that the audio signal transmitted and received by the first radio frequency module is at a low level, it determines that the first radio frequency module is not working. At this time, the transmission and reception actions of the second radio frequency module can be executed normally, and the ranging signal can be sent or received normally. At this time, the ranging signal is at a high level. In this way, the audio signal and the ranging signal can be transmitted and received alternately.
[0044] Optionally, see Figure 1As shown, the system also includes a first filtering module and a second filtering module. The first filtering module communicates with the first radio frequency module and is used to filter out signals other than the audio signal, and send the audio signal to the first channel for transmission to the second chip via the first channel. The second filtering module communicates with the second radio frequency module and is used to filter out signals other than the ranging signal, and send the ranging signal to the second channel for transmission to the second chip via the second channel. By configuring the first filtering module, the audio signal can be transmitted to the first channel, and by configuring the second filtering module, the ranging signal can be transmitted to the second channel, thus ensuring the independent transmission of the two signals without interference.
[0045] The first approach eliminates the need for real-time calculation of the target channel range of the first channel occupied by the first radio frequency module. The processing module can directly allocate the first channel from the preset first channel pool to the first radio frequency module and allocate the second channel from the preset second channel pool to the second radio frequency module. This allows the number of channels between the first and second channels to be greater than the preset number, resulting in less computation and making it more suitable for processing modules with insufficient computing power.
[0046] The second approach requires real-time calculation of the target channel range of the first channel occupied by the first RF module. However, it can dynamically adjust the second channel occupied by the second RF module based on the target channel range of the first channel occupied by the first RF module. This allows for a greater number of channels for both the first and second RF modules to choose from, thus enabling better utilization of channel resources and providing a better data transmission speed.
[0047] The third approach addresses the scenario where the first RF module needs to transmit an audio signal while the second RF module needs to transmit a ranging signal. If the number of channels between the channels occupied by the first and second RF modules is small, the audio and ranging signals can be transmitted alternately. Although only one signal, either an audio or a ranging signal, is transmitted at the same time, the audio and ranging signals are transmitted synchronously throughout the entire signal transmission process. This ensures that the audio signal is not interfered with and that the ranging signal is transmitted synchronously.
[0048] Figure 7 This is an exemplary embodiment of the present disclosure, which is an exemplary scheme for interpreting the processing module to adjust the first radio frequency module and / or the second radio frequency module.
[0049] The second radio frequency module sends the measured distance to the processing module; the processing module can also adjust the first radio frequency power of the first radio frequency module and / or adjust the second radio frequency power of the second radio frequency module according to the measured distance.
[0050] The first radio frequency (RF) module includes a first controller and a first RF circuit. The first controller receives a first RF power transmitted by the processor and controls the first RF circuit to package the audio signal into a first wireless frame according to the first RF power and transmit it to the first RF circuit. The first RF circuit transmits the packaged first wireless frame to a first filtering module, which then transmits the first wireless frame to a first channel. The first RF power is the transmission power of the audio signal emitted by the first RF circuit; the higher the RF power, the higher the energy of the emitted audio signal and the louder the sound.
[0051] The second radio frequency (RF) module includes a second controller and a second RF circuit. The second controller receives the second RF power sent by the processor and controls the second RF circuit to package the audio signal into second wireless frames according to the second RF power, which are then sent to the first RF circuit. The first RF circuit sends the packaged second wireless frames to the second filtering module, which then transmits the second wireless frames to the second channel. The second RF power is the transmission power of the ranging signal emitted by the second RF circuit; the higher the RF power, the higher the energy of the emitted ranging signal and the louder the sound.
[0052] In essence, channel allocation involves the processing module allocating a first channel to a first controller and a second channel to a second controller.
[0053] The closer the distance between the first chip and the second chip, for example, the closer the distance between the audio playback device where the first chip is located and the audio playback device where the second chip is located, the smaller the first RF power and / or the second RF power; conversely, the farther the distance between the first chip and the second chip, the greater the first RF power and / or the second RF power.
[0054] It's understandable that wireless audio signals transmitted via Bluetooth, Wi-Fi, FM, etc., are essentially electromagnetic waves. These signals attenuate during transmission through the air, and the attenuation rate increases rapidly with distance. Therefore, the greater the distance between the first and second chips, the more powerful the wireless audio signal the first chip needs to emit for the second chip to receive it. Thus, one approach is to increase the first radio frequency (RF) power in the first chip, allowing it to emit a more powerful audio signal that is received by the third RF module in the second chip, enabling the audio playback device connected to the second chip to receive and play the signal. Alternatively, one approach is to increase the second RF power in the first chip, allowing it to emit a more powerful ranging signal that is received by the fourth RF module in the second chip, enabling the second chip to receive the ranging signal and return the corresponding audio signal for distance measurement.
[0055] Conversely, the closer the distance between the first chip and the second chip, the lower the first RF power and / or the second RF power can be controlled. This is because when the first chip and the second chip are close, the first RF module in the first chip and the third RF module in the second chip are also close, so even if the first RF module emits an audio signal with a lower first RF power, it can still be received by the third RF module; similarly, the second RF module in the first chip and the fourth RF module in the second chip are also close, so even if the second RF module emits a ranging signal with a lower second RF power, it can still be received by the fourth RF module.
[0056] With the above technical solution, when the distance between the first chip and the second chip is close, the first chip can be controlled to transmit audio signals with a lower first transmission power, and / or the second chip can be controlled to transmit ranging signals with a lower second transmission power. In this way, the close distance between the first chip and the second chip will result in less signal attenuation, so even if the signal is transmitted with a lower first transmission power and / or a lower second transmission power, it can still be received by the second chip, saving energy consumption of the audio playback device where the first chip is located.
[0057] Figure 7 This is an exemplary embodiment of the present disclosure, which is an exemplary scheme for the interpretation processing module to adjust the equalizer and / or sound effects of the first chip based on the measured distance.
[0058] The processing module can obtain adjustment parameters based on the measured distance and send the adjustment parameters to the first radio frequency module; the first radio frequency module can adjust the equalizer of the audio playback device where the first chip is located and / or adjust the sound effects of the audio playback device based on the adjustment parameters.
[0059] Among them, the adjustment parameters include the first adjustment parameters of the equalizer of the audio playback device where the first chip is located. The equalizer is a processing device used to adjust the intensity of different frequency components in the audio signal, thereby optimizing the sound quality, compensating for signal transmission loss, eliminating noise, or achieving a specific sound effect style.
[0060] The first adjustment parameter includes frequency band, gain, bandwidth, and quality parameters. The processing module first receives data such as angle and phase difference measured by the first RF module and distance measured by the second RF module, and calculates the aforementioned first adjustment parameter based on this data to control the equalizer of the audio playback device to execute the first adjustment parameter. Here, the angle refers to the angle between the audio playback device containing the first chip and the audio playback device containing the second chip.
[0061] If the distance between the main playback device containing the first chip and the slave playback device containing the second chip is relatively close, and both devices emit bass frequencies simultaneously, these bass frequencies will overlap, resulting in a muffled sound. Therefore, the equalizer can be adjusted based on the distance between the main and slave playback devices to reduce this muffled sound. Conversely, if the distance between the main playback device containing the first chip and the slave playback device containing the second chip is relatively far, the high-frequency audio signals emitted by both devices are easily attenuated by air or obstacles, causing the sound to become more blurred. Therefore, the equalizer can also be adjusted based on the distance between the main and slave playback devices to reduce the blurred sound.
[0062] The adjustment parameters include a second adjustment parameter used to adjust the sound effects of the audio playback device where the first chip is located. This sound effect can be stereo sound, etc.
[0063] The second adjustment parameters include channel balance parameters, channel separation, and channel delay. The processing module first receives data such as angle and phase difference measured by the first RF module and data such as distance measured by the second RF module, and calculates the aforementioned second adjustment parameters based on these data to adjust the sound effects of the audio playback device.
[0064] It is understandable that the distance between the main playback device where the first chip is located and the slave playback device where the second chip is located will affect the equalizer adjustment and sound effect adjustment. This disclosure does not limit the specific adjustment method. This disclosure focuses more on detecting the distance between the first chip and the second chip in real time while the main playback device where the first chip is located is playing audio, and adjusting the equalizer and / or sound effect of the audio playback device where the first chip is located in real time according to the changed distance when the distance changes. This achieves the ability to adjust the equalizer and / or sound effect of the audio playback device immediately when the distance changes, giving users a better listening experience.
[0065] For example, if the user temporarily moves the location of the main playback device, causing a change in the distance between the main playback device and the secondary playback device, the first chip will obtain the changed distance between the main playback device and the secondary playback device in real time, and adjust the equalizer and / or sound effects of the main playback device according to the changed distance. In addition, the first chip will also send the audio signal required by the secondary playback device to the secondary playback device. The main playback device and the secondary playback device can adjust the equalizer and / or sound effects in real time according to the changed position, ensuring that the sound effects and sound quality heard by the user are guaranteed even when the user moves the main playback device and the main playback device is playing audio.
[0066] Optionally, the processing module may also activate the second radio frequency module if it determines that the data error rate of the data received by the first radio frequency module is greater than a preset error rate. The second radio frequency module is also used to send a ranging signal to the second chip through the second channel after activation.
[0067] The data received by the first radio frequency module can be an acknowledgment response for the audio signal returned by the second radio frequency module. After the first chip sends an audio signal to the second chip, the second chip will return an acknowledgment response to the first chip to indicate that the second chip has received the audio signal. The first radio frequency module can then forward this acknowledgment response to the processing module, which calculates the data error rate of the acknowledgment response to determine whether to activate the second radio frequency module.
[0068] The error rate of the data received by the first radio frequency module being greater than the preset error rate can be caused by the bit error rate of the acknowledgment response received by the first radio frequency module from the playback device being greater than the preset error rate. This indicates that the error rate of the acknowledgment response received by the first radio frequency module is relatively high. Regardless of whether the distance between the main playback device and the slave playback device is too close or too far, it may lead to a high data error rate in the acknowledgment response received by the first radio frequency module. Therefore, the second radio frequency module can be activated to measure the distance between the first chip and the second chip, and then determine whether the distance is within the preset distance range. If the distance is within the preset distance range, it means that the high bit error rate is not caused by the distance. If the distance is outside the preset distance range, it means that the high bit error rate is caused by the distance. Therefore, an alarm signal can be output to prompt the user to move the position of the main playback device or the slave playback device.
[0069] The preset distance range is the range consisting of a first distance and a second distance. If the distance between the first chip and the second chip is less than the first preset distance, it means that the distance between the main playback device where the first chip is located and the slave playback device where the second chip is located is relatively close. If the distance between the first chip and the second chip is greater than the second preset distance, it means that the distance between the main playback device where the first chip is located and the slave playback device where the second chip is located is relatively far.
[0070] Through the above technical solution, the main playback device where the first chip is located can detect the distance between the first chip and the second chip in real time while playing audio. When the distance changes, the equalizer and / or sound effects of the audio playback device where the first chip is located can be adjusted in real time according to the changed distance. This allows the equalizer and / or sound effects of the audio playback device to be adjusted immediately when the distance changes, providing users with a better listening experience.
[0071] Figure 8 This is a block diagram illustrating an electronic device 800 according to an exemplary embodiment. For example... Figure 8 As shown, the electronic device 800 may include a processor 801 and a memory 802. The electronic device 800 may also include one or more of a multimedia component 803, an input / output (I / O) interface 804, and a communication component 805.
[0072] The processor 801 controls the overall operation of the electronic device 800 to complete all or part of the steps in the method described above for the processing module to allocate channels to the first radio frequency module and / or the second radio frequency module. The memory 802 stores various types of data to support the operation of the electronic device 800. This data may include, for example, instructions for any application or method operating on the electronic device 800, and application-related data such as contact data, sent and received messages, pictures, audio, video, etc. The memory 802 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. Multimedia component 803 may include a screen and an audio component. The screen may be, for example, a touchscreen, and the audio component is used to output and / or input audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signals may be further stored in memory 802 or transmitted via communication component 805. The audio component also includes at least one speaker for outputting audio signals. I / O interface 804 provides an interface between processor 801 and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual or physical buttons. Communication component 805 is used for wired or wireless communication between the electronic device 800 and other devices. Wireless communication may include Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G, or 4G, or one or more combinations thereof; therefore, the corresponding communication component 805 may include a Wi-Fi module, a Bluetooth module, or an NFC module.
[0073] In an exemplary embodiment, the electronic device 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the method of allocating channels for the first radio frequency module and / or the second radio frequency module as described above.
[0074] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided. When executed by a processor, these program instructions implement the steps of the method described above for the processing module to allocate channels to the first radio frequency module and / or the second radio frequency module. For example, the computer-readable storage medium may be the memory 802 described above, which includes program instructions that can be executed by the processor 801 of the electronic device 800 to complete the method described above for the processing module to allocate channels to the first radio frequency module and / or the second radio frequency module.
[0075] In another exemplary embodiment, a computer program product is also provided, which includes a computer program executable by a processor, wherein when executed by the processor, the computer program implements the steps of the method described above for the processing module to allocate channels for the first radio frequency module and / or the second radio frequency module.
[0076] The preferred embodiments of this disclosure have been described in detail above with reference to the accompanying drawings. However, this disclosure is not limited to the specific details of the above embodiments. Within the scope of the technical concept of this disclosure, various simple modifications can be made to the technical solutions of this disclosure, and these simple modifications all fall within the protection scope of this disclosure.
[0077] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, this disclosure will not describe the various possible combinations separately.
[0078] Furthermore, various different embodiments of this disclosure can be combined in any way, as long as they do not violate the spirit of this disclosure, they should also be regarded as the content disclosed in this disclosure.
Claims
1. A communication processing device, characterized in that, The communication processing device, applied to the first chip, includes: a first radio frequency module, a processing module, and a second radio frequency module; The first radio frequency module is used to transmit audio signals to the second chip through the first channel; The processing module is used to allocate the second channel to the second radio frequency module; the number of channels between the first channel and the second channel is greater than or equal to a preset number; The second radio frequency module is used to send a ranging signal to the second chip through the second channel; the ranging signal is used to measure the distance between the first chip and the second chip.
2. The apparatus according to claim 1, characterized in that, It also includes a first channel pool and a second channel pool; the first channel pool includes multiple first channels, the second channel pool includes multiple second channels, and the number of channels between any first channel in the first channel pool and any second channel in the second channel pool is greater than or equal to the preset number; The processing module is further configured to allocate any of the first channels in the first channel pool to the first radio frequency module, and to allocate any of the second channels in the second channel pool to the second radio frequency module.
3. The apparatus according to claim 1, characterized in that, The processing module is further configured to determine the target channel range in which the first channel is located, and to allocate any second channel outside the target channel range to the second radio frequency module; The multiple channels in the target channel range are arranged in ascending order of frequency. The number of channels between the first channel and the channel with the smallest frequency in the target channel range is greater than or equal to the preset number, and the number of channels between the first channel and the channel with the largest frequency in the target channel range is greater than or equal to the preset number.
4. The apparatus according to claim 1, characterized in that, The second radio frequency module is also used to send the measured distance to the processing module; The processing module is further configured to adjust the first radio frequency power of the first radio frequency module and / or adjust the second radio frequency power of the second radio frequency module according to the measured distance; wherein, the closer the distance, the smaller the first radio frequency power and / or the second radio frequency power.
5. The apparatus according to claim 4, characterized in that, The processing module is also configured to activate the second radio frequency module when it is determined that the data error rate of the data received by the first radio frequency module is greater than a preset error rate; The second radio frequency module is also used to send a ranging signal to the second chip via the second channel after startup.
6. The apparatus according to claim 1, characterized in that, The processing module is further configured to obtain adjustment parameters based on the measured distance and send the adjustment parameters to the first radio frequency module; The first radio frequency module is also used to adjust the equalizer of the audio playback device where the first chip is located and / or adjust the sound effects of the audio playback device according to the adjustment parameters.
7. The apparatus according to claim 1, characterized in that, The second radio frequency module is further configured to detect the number of channels between the first channel and the second channel, and to stop sending the ranging signal to the second chip if the number of channels is less than or equal to the preset number, or to send the ranging signal to the second chip if the number of channels is greater than or equal to the preset number.
8. The apparatus according to claim 1, characterized in that, The communication processing device further includes a first filtering module and a second filtering module; The first filtering module is used to filter out signals other than the audio signal and send the audio signal to the first channel to transmit the audio signal to the second chip through the first channel; The second filtering module is used to filter out signals other than the ranging signal and send the ranging signal to the second channel so as to transmit the ranging signal to the second chip through the second channel.
9. A chip, characterized in that, The chip is equipped with the communication processing device as described in any one of claims 1 to 8.
10. An audio playback device, characterized in that, The audio playback device is equipped with the chip described in claim 9.