Sampling rate conversion device, multi-channel sampling rate conversion system and electronic equipment

By designing a sampling rate conversion device including a synchronization interface and a sampling unit, the problems of out-of-synchronization of sampling between multiple channels and high hardware resource consumption are solved, and the synchronous sampling and resource optimization of multi-channel data are realized.

CN119519710APending Publication Date: 2025-02-25ACTIONS ZHUHAI TECH CO
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311062295.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-22
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

The problem of sampling out-of-synchronization between multiple channels and the problem of large hardware resources consumption and high clock frequency of existing sampling rate conversion devices.

Method used

A sampling rate conversion device is designed, including a synchronization interface and a sampling unit, through which the synchronization interface is obtained, the synchronization sampling rate, compensation value and start signal are obtained, and the start signal is sampled when the start signal is valid. The device may also be optionally equipped with a sampling rate configuration unit and a phase compensation unit for generating sampling rate and compensation values.

Benefits of technology

Synchronous sampling of data of multiple channels is realized to ensure that the sampling rate and phase of the output sampled data are completely consistent, and the consumption of hardware resources is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119519710A_ABST
    Figure CN119519710A_ABST
Patent Text Reader

Abstract

The invention relates to a sampling rate conversion device, a multi-channel sampling rate conversion system and electronic equipment. The sampling rate conversion device comprises a sampling unit and a synchronous interface, the synchronous interface comprises a first input interface for inputting a synchronous sampling rate, a second input interface for inputting a synchronous sampling rate compensation value and a third input interface for inputting a synchronous sampling starting signal; the sampling unit is respectively connected with the first input interface, the second input interface and the third input interface, and is used for acquiring a synchronous sampling rate, a synchronous sampling rate compensation value and a synchronous sampling starting signal, and sampling to-be-sampled data according to the synchronous sampling rate and the synchronous sampling rate compensation value when the synchronous sampling starting signal is valid to obtain sampled data. In this way, when the sampling rate conversion devices corresponding to the multiple channels receive the same synchronous sampling rate, the same synchronous sampling rate compensation value and the same synchronous sampling starting signal, the purpose of synchronous sampling of the data of the multiple channels can be achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of data sampling and processing, and in particular to a sampling rate conversion device, a multi-channel sampling rate conversion system and an electronic device. Background Art

[0002] A sampling rate converter is a device widely used in the field of digital signal processing, which is used to convert a digital signal from one sampling rate to another. In an audio system, the sampling rate converter is used to convert between several specific sampling rates, namely, some common audio sampling rates (8kHz, 11.025kHz, 12kHz, 12.8kHz, 16kHz, 22.05kHz, 24kHz, 32kHz, 44.1kHz, 48kHz).

[0003] At present, sampling rate conversion devices are mostly designed for two channels, and the sampling rate and signal phase between the two channels are synchronized. However, when there are more channels, due to the asynchronous clock of the phase tracking compensation controller and the certain degree of swing characteristics of phase tracking, the resampling ratio compensation between multiple channels will deviate, and even become so large that it cannot be ignored over time, which causes the problem of asynchronous sampling between multiple channels. In addition, the sampling rate conversion device designed for two channels has the problem of requiring more hardware resources and higher clock frequency. Summary of the invention

[0004] The purpose of the present disclosure is to provide a sampling rate conversion device, a multi-channel sampling rate conversion system and an electronic device to solve the problems existing in the related art.

[0005] In order to achieve the above-mentioned object, the present disclosure provides a sampling rate conversion device in a first aspect, the sampling rate conversion device comprising: a sampling unit and a synchronization interface;

[0006] The synchronization interface comprises a first input interface for inputting a synchronization sampling rate, a second input interface for inputting a synchronization sampling rate compensation value, and a third input interface for inputting a synchronization sampling start signal;

[0007] The sampling unit is respectively connected to the first input interface, the second input interface and the third input interface, and is used to obtain the synchronous sampling rate, the synchronous sampling rate compensation value and the synchronous sampling start signal, and when the synchronous sampling start signal is valid, the data to be sampled is sampled according to the synchronous sampling rate and the synchronous sampling rate compensation value to obtain sampled data.

[0008] Optionally, the sampling rate conversion device further includes a sampling rate configuration unit and a phase compensation unit;

[0009] The sampling rate configuration unit is used to generate the sampling rate of the sampling rate conversion device;

[0010] The phase compensation unit is connected to the sampling rate configuration unit, and is used to generate a sampling rate compensation value of the sampling rate conversion device according to the sampling rate, a first clock for inputting the data to be sampled, and a second clock for outputting the sampled data;

[0011] The synchronization interface also includes a first output interface and a second output interface;

[0012] The first output interface is connected to the sampling rate configuration unit for outputting the sampling rate, and the second output interface is connected to the phase compensation unit for outputting the sampling rate compensation value, so as to determine the synchronous sampling rate according to the sampling rate, and determine the synchronous sampling rate compensation value according to the sampling rate compensation value.

[0013] Optionally, the sampling rate conversion device further includes: a first cache unit and a second cache unit;

[0014] The first cache unit is used to store the data to be sampled;

[0015] The sampling unit is connected to the first cache unit and the second cache unit respectively, and is used to obtain the data to be sampled from the first cache unit and store the sampled data in the second cache unit.

[0016] Optionally, the synchronization interface further includes a third output interface and a fourth output interface;

[0017] The third output interface is connected to the first cache unit and is used to output the number of data to be sampled stored in the first cache unit. The fourth output interface is connected to the second cache unit and is used to output the remaining storage space of the second cache unit, so as to generate the synchronous sampling start signal according to the number of data to be sampled and the remaining storage space.

[0018] A second aspect of the present disclosure provides a multi-channel sampling rate conversion system, the system comprising: a group synchronization control device and N sampling rate conversion devices as described in any one of the first aspect of the present disclosure, N is an integer greater than 2, wherein the number of channels is N, and the channels correspond to the sampling rate conversion devices one by one, and the group synchronization control device is connected to the N sampling rate conversion devices;

[0019] The group synchronization control device is used to input group configuration related information of N channels, and control the N channel groups according to the group configuration related information, and determine the synchronous sampling related parameters corresponding to each channel group, so as to control each channel belonging to the same channel group to perform synchronous sampling according to the synchronous sampling related parameters, wherein the synchronous sampling related parameters include a synchronous sampling rate, a synchronous sampling rate compensation value and a synchronous sampling start signal.

[0020] Optionally, the sampling rate conversion device further includes a sampling rate configuration unit and a phase compensation unit;

[0021] The sampling rate configuration unit is used to generate the sampling rate of the sampling rate conversion device;

[0022] The phase compensation unit is connected to the sampling rate configuration unit, and is used to generate a sampling rate compensation value of the sampling rate conversion device according to the sampling rate, a first clock for inputting the data to be sampled, and a second clock for outputting the sampled data;

[0023] The grouping configuration related information includes first information related to sampling start, grouping information of each channel, and the sampling rate and the sampling rate compensation value of each sampling rate conversion device. The grouping information includes a first signal for indicating whether the channel participates in grouping.

[0024] Optionally, the grouping information further includes a second signal for indicating whether the channel is a main channel.

[0025] Optionally, the packet synchronization control device comprises: N synchronizers and N packet selectors; the N channels correspond one-to-one to the N synchronizers and the N packet selectors respectively;

[0026] For each synchronizer, the synchronizer is connected to the N sampling rate conversion devices, and is used to obtain first information related to sampling start, and is also used to receive grouping information of each channel input by a user, and determine whether the sampling rate conversion devices corresponding to each channel in the channel group with the first target channel corresponding to the synchronizer as the main channel all meet the sampling start condition according to the first information and the grouping information of each channel, and output a first sampling start signal of the first sampling rate conversion device corresponding to the first target channel;

[0027] For each of the grouping selectors, the grouping selector is respectively connected to each sampling rate configuration unit and each phase compensation unit in the N synchronizers, the N sampling rate conversion devices, and the first sampling start signal output by each of the synchronizers, the sampling rate and the sampling rate compensation value of each of the sampling rate conversion devices, and the grouping information of the second target channel corresponding to the grouping selector, determines the synchronous sampling related parameters corresponding to the channel group to which the second target channel belongs, and sends the synchronous sampling related parameters to the synchronous interface of the second sampling rate conversion device corresponding to the second target channel.

[0028] Optionally, the grouping selector is used to determine whether the second target channel participates in grouping according to the grouping information of the second target channel; if the second target channel does not participate in grouping, the synchronous sampling rate and the synchronous sampling rate compensation value of the second sampling rate conversion device are determined to be the sampling rate and the sampling rate compensation value of the second sampling rate conversion device corresponding to the second target channel, respectively, and the synchronous sampling start signal of the second sampling rate conversion device is determined to be a valid signal; if the second target channel participates in grouping, the main channel of the channel group to which the second target channel belongs is determined, and the synchronous sampling related parameters corresponding to the channel group are determined to be the sampling rate, the sampling rate compensation value and the first sampling start signal of the third sampling rate conversion device corresponding to the main channel.

[0029] Optionally, the synchronizer is used to output a first sampling start signal identified by a first numerical value when it is determined that the sampling rate conversion devices corresponding to each channel in the channel group with the first target channel as the main channel meet the sampling start conditions; and output a first sampling start signal identified by a second numerical value when it is determined that there is a channel in the channel group whose sampling rate conversion device does not meet the sampling start conditions.

[0030] Optionally, the sampling rate conversion device further includes: a first cache unit and a second cache unit;

[0031] The first information includes the amount of to-be-sampled data stored in the first cache unit of each of the sampling rate conversion devices and the remaining storage space of the second cache unit of each of the sampling rate conversion devices, or the first information is a second sampling start signal used to indicate whether each of the sampling rate conversion devices meets the sampling start condition, wherein whether the sampling rate conversion device meets the sampling start condition is determined based on the first cache unit and the second cache unit of the sampling rate conversion device.

[0032] Optionally, the first information is a second sampling start signal used to indicate whether each of the sampling rate conversion devices meets the sampling start condition; the packet synchronization control device further includes N decoders, and the N decoders correspond to the N sampling rate conversion devices one by one respectively;

[0033] For each of the decoders, the decoder obtains the number of data to be sampled stored in the first cache unit of the sampling rate conversion device corresponding to the decoder and the remaining storage space of the second cache unit, and when the number of data to be sampled is greater than or equal to a first threshold and the remaining storage space is greater than or equal to a second threshold, determines that the sampling rate conversion device meets the sampling start condition, and outputs a second sampling start signal identified as a third value, otherwise outputs a second sampling start signal identified as a fourth value, wherein the third value is used to indicate that the sampling rate conversion device meets the sampling start condition, and the fourth value is used to indicate that the sampling rate conversion device does not meet the sampling start condition;

[0034] For each synchronizer, the synchronizer is connected to N decoders to obtain the second sampling start signal output by each decoder, and determine whether the sampling rate conversion devices corresponding to each channel in the channel group with the first target channel as the main channel meet the sampling start conditions based on the second sampling start signal output by each decoder and the grouping information of each channel.

[0035] Optionally, the first information includes the amount of to-be-sampled data stored in the first cache unit of each of the sampling rate conversion devices and the remaining storage space of the second cache unit of each of the sampling rate conversion devices;

[0036] For each synchronizer, the synchronizer is used to obtain the number of data to be sampled stored in each first cache unit and the remaining storage space of each second cache unit, and determine a channel group with the first target channel corresponding to the synchronizer as the main channel according to the grouping information of each channel. If the number of data to be sampled of the sampling rate conversion device corresponding to each channel in the channel group is greater than or equal to a first threshold and the remaining storage space is greater than or equal to a second threshold, it is determined that the sampling rate conversion device corresponding to each channel in the channel group meets the sampling start condition.

[0037] Optionally, the synchronization interface further includes a first output interface and a second output interface;

[0038] The group selector is connected to each of the sampling rate configuration units through the first output interface of each of the sampling rate conversion devices to obtain the sampling rate generated by each of the sampling rate configuration units, and is connected to each of the phase compensation units through the second output interface of each of the sampling rate conversion devices to obtain the sampling rate compensation value generated by each of the phase compensation units.

[0039] Optionally, the synchronization interface further includes a third output interface and a fourth output interface;

[0040] The decoder obtains the amount of to-be-sampled data stored in the first cache unit of the sampling rate conversion device through the third output interface of the sampling rate conversion device corresponding to the decoder, and obtains the remaining storage space of the second cache unit of the sampling rate conversion device through the fourth output interface of the sampling rate conversion device corresponding to the decoder.

[0041] A third aspect of the present disclosure provides an electronic device, comprising the multi-channel sampling rate conversion system described in any one of the second aspects of the present disclosure.

[0042] By adopting the above technical solution, the sampling rate conversion device includes a synchronization interface and a sampling unit. The sampling unit can obtain the synchronization sampling rate, the synchronization sampling rate compensation value and the synchronization sampling start signal through the synchronization interface, and when the synchronization sampling start signal is valid, the sampling data to be sampled is sampled according to the synchronization sampling rate and the synchronization sampling rate compensation value to obtain the sampling data. In this way, when the sampling rate conversion devices corresponding to the multiple channels receive the same synchronization sampling rate, the same synchronization sampling rate compensation value and the same synchronization sampling start signal, the multiple sampling rate conversion devices can synchronously sample the data of the corresponding channels to ensure that the sampling rate and phase of the output sampling data are completely consistent, that is, the sampling rate conversion device provided by the present disclosure can achieve the purpose of synchronously sampling the data of multiple channels.

[0043] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] The accompanying drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present disclosure but do not constitute a limitation of the present disclosure. In the accompanying drawings:

[0045] Figure 1 is a block diagram of a conventional sampling rate conversion device according to an exemplary embodiment.

[0046] Figure 2 is a schematic diagram showing a sampling rate conversion device according to an exemplary embodiment.

[0047] Figure 3 is a schematic diagram showing another sampling rate conversion device according to an exemplary embodiment.

[0048] Figure 4 is a schematic diagram of a multi-channel sampling rate conversion system according to an exemplary embodiment.

[0049] Figure 5 It is a schematic diagram of a decoder according to an exemplary embodiment.

[0050] Figure 6 is a schematic diagram of a synchronizer according to an exemplary embodiment.

[0051] Figure 7 The diagram is a schematic diagram of a group selector according to an exemplary embodiment. DETAILED DESCRIPTION

[0052] The specific implementation of the present disclosure is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described herein is only used to illustrate and explain the present disclosure, and is not used to limit the present disclosure.

[0053] It should be noted that all actions of acquiring signals, information or data in the present disclosure are carried out in compliance with the relevant data protection laws and policies of the country where the device is located and with the authorization given by the owner of the corresponding device.

[0054] Figure 1 FIG. 1 is a block diagram of an existing sampling rate conversion device according to an exemplary embodiment. Figure 1 As shown, the existing sampling rate conversion device includes a sampling unit, a fixed sampling rate controller and a phase tracking compensation controller. Figure 1 As shown, the fixed sampling rate controller can be configured by software to obtain the resampling ratio ratio. The phase tracking compensation controller is connected to the fixed sampling rate controller for receiving the resampling ratio ratio. The phase tracking compensation controller is also used to obtain the input comparison clock and the output comparison clock, and generate the resampling ratio compensation ratio_diff according to the input comparison clock, the output comparison clock and the resampling ratio ratio. The sampling unit is respectively connected to the fixed sampling rate controller and the phase tracking compensation controller, and is used to obtain the resampling ratio ratio and the resampling ratio compensation ratio_diff, and samples the data to be sampled according to the resampling ratio ratio and the resampling ratio compensation ratio_diff, and outputs the sampled data.

[0055] In addition, if Figure 1As shown, the existing sampling rate conversion device also includes an input buffer unit and an output buffer unit. The data to be sampled is first stored in the buffer unit, and the sampling unit obtains the data to be sampled from the input buffer unit. In addition, the sampling data obtained after the sampling unit collects is stored in the output buffer unit.

[0056] at present, Figure 1 The existing sampling rate conversion devices shown are mostly designed for two channels, and the sampling rate and signal phase between the two channels are synchronized. However, for devices with more than 2 channels, for example, in applications such as 4-microphone arrays and 8-speakers, even if the resampling ratios between multiple channels are set to be consistent, due to the existence of an asynchronous clock in the phase tracking compensation controller and the fact that phase tracking has a certain degree of swing characteristics, the resampling ratio compensation between multiple channels will deviate, and even become so large that it cannot be ignored over time, which causes the problem of asynchronous sampling between multiple channels, resulting in the output sampling data being no longer synchronized in sampling rate, signal phase, and signal amplitude. Therefore, it is necessary to specially design a sampling rate conversion device that can synchronously sample multi-channel data.

[0057] The present disclosure provides a sampling rate conversion device, a multi-channel sampling rate conversion system and an electronic device. The sampling rate conversion device provided by the present disclosure makes the sampling rate conversion processes of multiple channels consistent. During the sampling process, the sampling rate and sampling rate compensation value used when sampling the data to be sampled of the multiple channels are consistent, ensuring that the sampling rate and phase of the output sampling data are completely consistent, thereby achieving the purpose of synchronous sampling of the data of the multiple channels.

[0058] First, the sampling rate conversion device provided by the present disclosure is described.

[0059] Figure 2 FIG. 1 is a schematic diagram of a sampling rate conversion device according to an exemplary embodiment. Figure 2 As shown, the sampling rate conversion device 200 may include a sampling unit 201 and a synchronization interface 202. The synchronization interface 202 may include a first input interface 2021, a second input interface 2022, and a third input interface 2023. The first input interface 2021 is used to input a synchronization sampling rate, the second input interface 2022 is used to input a synchronization sampling rate compensation value, and the third input interface 2023 is used to input a synchronization sampling start signal.

[0060] The sampling unit 201 is connected to the first input interface 2021, the second input interface 2022 and the third input interface 2023 respectively, and is used to obtain the synchronous sampling rate, the synchronous sampling rate compensation value and the synchronous sampling start signal, and when the synchronous sampling start signal is valid, the sampling data to be sampled is sampled according to the synchronous sampling rate and the synchronous sampling rate compensation value to obtain the sampling data.

[0061] By way of example, the sampling unit 201 obtains the synchronous sampling rate via the first input interface 2021 , obtains the synchronous sampling rate compensation value via the second input interface 2022 , and obtains the synchronous sampling start signal via the third input interface 2023 .

[0062] First, it should be understood that when synchronous sampling of multi-channel data is required, each channel can correspond to a Figure 2 The sampling rate conversion device 200 shown in the figure can realize synchronous sampling of multi-channel data by sending the same synchronous sampling related parameters to the sampling rate conversion devices corresponding to the multiple channels that need to be synchronously sampled. The synchronous sampling related parameters include synchronous sampling rate, synchronous sampling rate compensation value and synchronous sampling start signal.

[0063] Secondly, it should be understood that the same synchronous sampling related parameters refer to the same synchronous sampling rates, same synchronous sampling rate compensation values ​​and same synchronous sampling start signals sent to multiple sampling rate conversion devices.

[0064] In the present disclosure, the synchronous sampling start signal is effective means that the sampling rate conversion device corresponding to each channel in the same channel group meets the sampling condition and can be sampled synchronously. Among them, the channels that need to be synchronously sampled can be considered to belong to the same channel group. For example, assuming that the data of the first channel, the second channel and the third channel need to be synchronously sampled, the first channel, the second channel and the third channel belong to the channels in the same channel group.

[0065] By adopting the above technical solution, the sampling rate conversion device includes a synchronization interface and a sampling unit. The sampling unit can obtain the synchronization sampling rate, the synchronization sampling rate compensation value and the synchronization sampling start signal through the synchronization interface, and when the synchronization sampling start signal is valid, the sampling data to be sampled is sampled according to the synchronization sampling rate and the synchronization sampling rate compensation value to obtain the sampling data. In this way, when the sampling rate conversion devices corresponding to the multiple channels receive the same synchronization sampling rate, the same synchronization sampling rate compensation value and the same synchronization sampling start signal, the multiple sampling rate conversion devices can synchronously sample the data of the corresponding channels to ensure that the sampling rate and phase of the output sampling data are completely consistent, that is, the sampling rate conversion device provided by the present disclosure can achieve the purpose of synchronously sampling the data of multiple channels.

[0066] Figure 3 FIG. 1 is a schematic diagram of another sampling rate conversion device according to an exemplary embodiment. Figure 3As shown, the sampling rate conversion device includes, in addition to the sampling unit 201, a sampling rate configuration unit 203 and a phase compensation unit 204. The sampling rate configuration unit 203 is used to generate the sampling rate of the sampling rate conversion device 200, and the phase compensation unit 204 is connected to the sampling rate configuration unit 203, and is used to generate a sampling rate compensation value of the sampling rate conversion device according to the sampling rate, a first clock for inputting the data to be sampled, and a second clock for outputting the sampled data.

[0067] exist Figure 3 In the example, the user can generate the sampling rate in the sampling rate configuration unit 203 through software settings. In addition to obtaining the sampling rate, the phase compensation unit 204 also obtains the first clock of the input data to be sampled and the second clock of the output sampled data, and then generates the sampling rate compensation value of the sampling rate conversion device according to the obtained sampling rate, the first clock of the input data to be sampled and the second clock of the output sampled data. Among them, the specific method of generating the sampling rate compensation value belongs to a relatively mature technology, and this disclosure will not repeat it.

[0068] Correspondingly, the synchronization interface 202 also includes a first output interface 2024 and a second output interface 2025. The first output interface 2024 is connected to the sampling rate configuration unit 203 for outputting the sampling rate, and the second output interface 2025 is connected to the phase compensation unit 204 for outputting the sampling rate compensation value, so as to determine the synchronization sampling rate according to the sampling rate, and determine the synchronization sampling rate compensation value according to the sampling rate compensation value.

[0069] For example, a user may determine the synchronous sampling rate based on the sampling rates output by sampling rate conversion devices corresponding to multiple channels in the same channel group, and determine the synchronous sampling rate compensation value based on the sampling rate compensation value output by sampling rate conversion devices corresponding to multiple channels in the same channel group.

[0070] By adopting the above technical scheme, the sampling rate conversion device outputs the sampling rate and sampling rate compensation value calculated by itself, which is convenient for the subsequent determination of the synchronous sampling rate according to the sampling rate output by each sampling rate conversion device and the determination of the synchronous sampling rate compensation value according to the sampling rate compensation value output by each sampling rate conversion device. Compared with the user-defined synchronous sampling rate and synchronous sampling rate compensation value, this scheme improves the reliability of synchronous sampling.

[0071] In one embodiment, considering that the sampling unit 201 may not immediately sample each received data, but may sample multiple data only when multiple data are received, therefore, in this embodiment, the sampling rate conversion device further includes a first cache unit and a second cache unit. Figure 3As shown, the sampling rate conversion device further includes a first cache unit 205 and a second cache unit 206. The first cache unit 205 is used to store the data to be sampled, and the second cache unit 206 is used to store the sampled data. Figure 3 In the example, the sampling unit 201 is connected to the first cache unit 205 and the second cache unit 206 respectively. The data to be sampled of the channel is first input into the first cache unit 205. When the sampling unit 201 starts sampling, the data to be sampled is obtained from the first cache unit 205, and the sampled data obtained by sampling is stored in the second cache unit 206. After that, the sampled data is output from the second cache unit 206. By way of example, the first cache unit 205 and the second cache unit 206 may be FIFO memories.

[0072] It should be understood that, in this embodiment, the sampling unit 201 obtains the data to be sampled from the first cache unit 205, and stores the sampled data obtained after sampling in the second cache unit 206. That is to say, only when the amount of the data to be sampled stored in the first cache unit 205 meets the amount required by the sampling unit 201, and the remaining storage space of the second cache unit 206 has enough space to store the sampled data sampled by the sampling unit 201, the sampling rate conversion device meets the sampling condition, and the sampling unit 201 may start the sampling operation. Therefore, the generated synchronous sampling start signal is related to the amount of the data to be sampled stored in the first cache unit and the remaining storage space of the second cache unit.

[0073] Accordingly, if Figure 3 As shown, the synchronization interface 202 may further include a third output interface 2026 and a fourth output interface 2027. The third output interface 2026 is connected to the first cache unit 205, and is used to output the number of data to be sampled stored in the first cache unit 205, and the fourth output interface 2027 is connected to the second cache unit 206, and is used to output the remaining storage space of the second cache unit 206, so as to generate a synchronization sampling start signal according to the number of data to be sampled and the remaining storage space.

[0074] For example, the sampling rate conversion device corresponding to each channel belonging to the same channel can output the number of data to be sampled and the remaining storage space. If the number of data to be sampled output by each sampling rate conversion device is greater than or equal to the first threshold, and the remaining storage space is greater than or equal to the second threshold, it indicates that each sampling rate conversion device meets the sampling start condition, and thus a valid synchronous sampling start signal can be generated.

[0075] By adopting the above technical solution, the sampling rate conversion device outputs the number of data to be sampled and the remaining storage space, so that according to the number of data to be sampled and the remaining storage space output by each sampling rate conversion device, when it is determined that multiple sampling rate conversion devices corresponding to multiple channels that need synchronous sampling data meet the sampling start conditions, an effective synchronous sampling start signal is generated, thereby further improving the reliability of synchronous sampling.

[0076] It is worth noting that if there are multiple channels that need to be sampled synchronously, then the multiple channels correspond to the multiple sampling rate conversion devices one by one. Figure 3 The sampling rate conversion device shown is the x-th sampling rate conversion device corresponding to the x-th channel, then the synchronous sampling rate input by the first input interface 2021 is recorded as the channel x sampling rate input (chx_ratio_i), the synchronous sampling rate compensation value input by the second input interface 2022 is the channel x sampling rate compensation value input (chx_ratio_diff_i), the synchronous sampling start signal input by the third input interface 2023 is recorded as the channel x synchronous start signal (chx_start_i), the sampling rate output by the first output interface 2024 is recorded as the channel x sampling rate output (chx_ratio_o), the sampling rate compensation value output by the second output interface 2025 is recorded as the channel x sampling rate compensation value output (chx_ratio_diff_o), the number of data to be sampled stored in the first cache unit output by the third output interface 2026 is recorded as the channel x input FIFO read level (chx_rlevel), and the remaining storage space of the second cache unit output by the fourth output interface 2027 is recorded as the channel x output FIFO write level. level(chx_wlevel).

[0077] The following includes Figure 2 or Figure 3 A multi-channel sampling rate conversion system of the sampling rate conversion apparatus shown will be described.

[0078] Figure 4 FIG. 1 is a schematic diagram of a multi-channel sampling rate conversion system according to an exemplary embodiment. Figure 4 As shown, the multi-channel sampling rate conversion system 40 includes a group synchronization control device 401 and N sampling rate conversion devices 200, wherein the sampling rate conversion device 200 is the sampling rate conversion device described above, for example, Figure 2 or Figure 3 The sampling rate conversion device shown. In the present disclosure, N is an integer greater than 2, wherein the number of channels is N, and the channels correspond to the sampling rate conversion devices one by one.

[0079] The group synchronization control device 401 is used to input the group configuration related information of N channels, and control the N channel grouping according to the group configuration related information, and determine the synchronous sampling related parameters corresponding to each channel group, so as to control each channel belonging to the same channel group to perform synchronous sampling according to the synchronous sampling related parameters, wherein the synchronous sampling related parameters include the synchronous sampling rate, the synchronous sampling rate compensation value and the synchronous sampling start signal.

[0080] For example, the group synchronization control device 401 determines the channel group to which each channel belongs and the synchronous sampling related parameters corresponding to each channel group according to the group configuration related information, and sends the synchronous sampling related parameters corresponding to the channel group to the synchronous interface of the sampling rate conversion device corresponding to each channel in the channel group for each channel group, so that the sampling rate conversion device corresponding to each channel in the same channel group uses the same synchronous sampling related parameters to synchronously sample the to-be-sampled data. The synchronous sampling related parameters include the synchronous sampling rate, the synchronous sampling rate compensation value and the synchronous sampling start signal.

[0081] like Figure 4 As shown, the input end of the grouping synchronization control device 401 is used to input the grouping configuration related information of N channels, and the output end thereof is connected to the synchronization interface 202 of the N sampling rate conversion devices 200, so as to send the synchronization sampling related parameters of the sampling rate conversion device 200 to the synchronization interface 202 of each sampling rate conversion device 200, that is, to send the synchronization sampling related parameters corresponding to the corresponding channel to the synchronization interface 202 of each sampling rate conversion device 200.

[0082] By adopting the above technical solution, multiple channels can be flexibly grouped according to the grouping configuration related information to obtain channel groups. In addition, for each channel group, the sampling rate conversion device corresponding to each channel in the channel group adopts the same synchronous sampling related parameters, so that the sampling process of the sampling rate conversion device corresponding to each channel in the channel group is consistent, ensuring that the sampling rate and phase of the sampled data output by each sampling rate conversion device are completely consistent, and the purpose of synchronous sampling of multi-channel data can be achieved.

[0083] In one embodiment, the sampling rate conversion device further includes a sampling rate configuration unit and a phase compensation unit, wherein the functions of the sampling rate configuration unit and the phase compensation unit have been described in the embodiment of the sampling rate conversion device and will not be repeated here.

[0084] In this embodiment, the grouping configuration related information includes first information related to sampling start, grouping information of each channel, and sampling rate and sampling rate compensation value of each sampling rate conversion device. The grouping information includes a first signal for indicating whether the channel participates in grouping.

[0085] Among them, the grouping information may only include a first signal for indicating whether the channel participates in the grouping. In this way, in the channel group obtained by subsequent grouping, a channel can be randomly defined as the main channel of the channel group, or a channel in the channel group, such as the first channel, the middle channel or the last channel, can be pre-specified as the main channel of the channel group. The present disclosure does not limit this. In addition, in order to facilitate the acquisition of which channel group the channel belongs to, the first signal can indicate the channel group identifier to which it belongs in addition to indicating that the channel participates in the grouping. For example, the first signal indicates that the channel participates in the grouping and the channel group to which it belongs is channel group 1.

[0086] In addition, in order to further improve the flexibility of grouping, the grouping information may include, in addition to the above-mentioned first signal, a second signal for indicating whether the channel is a main channel.

[0087] For example, the first signal of the x-th channel may be chx_group_en, and the second signal of the x-th channel may be chx_group_sel. Among them, chx_group_en=1 indicates that the x-th channel participates in grouping, and chx_group_en=0 indicates that the x-th channel does not participate in grouping. chx_group_sel=k indicates that the main channel of the x-th channel is the k-th channel, and the value range of x and k is [1, N]. It should be understood that other two different numbers can also be used to indicate whether the x-th channel participates in grouping, and the present disclosure is not limited to this.

[0088] In one embodiment, N channels may form a channel group. For example, the first signal of each channel is set to 1, and the second signal of each channel is set to k. Then, N channels form a channel group, and the main channel in the channel group is the kth channel.

[0089] In another embodiment, N channels may be divided into two channel groups, for example, N=8, and the identifiers of the first signal group_en and the second signal group_sel of each channel, the main channel of each channel, and the channel group number are shown in Table 1.

[0090] Table 1

[0091]

[0092] In Table 1, each of the 8 channels participates in grouping, and the first 4 channels form a channel group with group number 1, and the main channel in the channel group is channel 1. The last 4 channels form a channel group with group number 2, and the main channel in the channel group is channel 4.

[0093] It should be understood that multiple channels can be divided into a greater number of channel groups according to actual needs, and the present disclosure does not make any specific limitation on this.

[0094] In one embodiment, the packet synchronization control device 401 may include N synchronizers and N packet selectors, wherein the N channels correspond one-to-one to the N synchronizers and the N packet selectors respectively.

[0095] For each synchronizer, the synchronizer is connected to N sampling rate conversion devices, and is used to obtain first information related to sampling start, and is also used to receive grouping information of each channel, and determine whether the sampling rate conversion devices corresponding to each channel in the channel group with the first target channel corresponding to the synchronizer as the main channel meet the sampling start conditions based on the first information and the grouping information of each channel, and output the first sampling start signal of the first sampling rate conversion device corresponding to the first target channel.

[0096] Specifically, the synchronizer is used to output a first sampling start signal identified by a first value when it is determined that the sampling rate conversion device corresponding to each channel in the channel group with the first target channel as the main channel meets the sampling start condition, and output a first sampling start signal identified by a second value when it is determined that there is a channel in the channel group whose sampling rate conversion device does not meet the sampling start condition. The first value is used to indicate that the first sampling start signal is valid, and the second value is used to indicate that the first sampling start signal is invalid.

[0097] In the case where the sampling rate conversion device further includes a first cache unit and a second cache unit, the first information includes the amount of to-be-sampled data stored in the first cache unit of each sampling rate conversion device and the remaining storage space of the second cache unit of each sampling rate conversion device, or the first information is a second sampling start signal for indicating whether each sampling rate conversion device satisfies the sampling start condition, wherein whether the sampling rate conversion device satisfies the sampling start condition is determined based on the first cache unit and the second cache unit of the sampling rate conversion device.

[0098] In one embodiment, the first information includes the number of data to be sampled stored in the first cache unit of each sampling rate conversion device and the remaining storage space of the second cache unit of each sampling rate conversion device. The sampling start condition is that the number of data to be sampled is greater than or equal to the first threshold value and the remaining storage space is greater than or equal to the second threshold value. For each synchronizer, the synchronizer obtains the number of data to be sampled stored in each cache unit and the remaining storage space of each second cache unit, and determines the channel group with the first target channel corresponding to the synchronizer as the main channel according to the grouping information of each channel. If the number of data to be sampled of the sampling rate conversion device corresponding to each channel in the channel group is greater than or equal to the first threshold value and the remaining storage space is greater than or equal to the second threshold value, it is determined that the sampling rate conversion device corresponding to each channel in the channel group meets the sampling start condition, and the synchronizer outputs a first sampling start signal marked as a first value used to characterize that the first sampling start signal is valid. When it is determined that there is a channel in the channel group where the sampling rate conversion device does not meet the sampling start condition, the first sampling start signal marked as a second value used to characterize that the first sampling start signal is invalid is output. The first value is different from the second value.

[0099] For example, the first threshold value may be the same as or different from the second threshold value. If the sampling rate conversion device is a stereo sampling rate conversion device, the first threshold value may be the same as the second threshold value, both being 2. If the sampling rate conversion device is a mono sampling rate conversion device, the first threshold value may be the same as the second threshold value, both being 1.

[0100] In one embodiment, the first information is a second sampling start signal used to characterize whether each sampling rate conversion device meets the sampling start condition. In this embodiment, the packet synchronization control device 401 may also include N decoders, and the N decoders correspond to the N sampling rate conversion devices one by one. For each decoder, the decoder obtains the number of data to be sampled stored in the first cache unit of the sampling rate conversion device corresponding to the decoder and the remaining storage space of the second cache unit. When the number of data to be sampled is greater than or equal to the first threshold, and the remaining storage space is greater than or equal to the second threshold, it is determined that the sampling rate conversion device meets the sampling start condition, and outputs a second sampling start signal marked as a third value, otherwise, a second sampling start signal marked as a fourth value is output, wherein the third value is used for the sampling rate conversion device to meet the sampling start condition, and the fourth value is used to characterize that the sampling rate conversion device does not meet the sampling start condition. Among them, the third value is different from the fourth value, the third value can be the same as or different from the above-mentioned first value, and the fourth value can be the same as or different from the above-mentioned second value. For example, the third value is the same as the first value, both are 1, and the fourth value is the same as the above-mentioned second value, both are 0.

[0101] Figure 5FIG. 1 is a schematic diagram of a decoder according to an exemplary embodiment. Figure 5 As shown, taking the x-th decoder as an example, the input end of the x-th decoder is used to input the number of data to be sampled chx_rlevel stored in the first cache unit of the x-th sampling rate conversion device and the remaining storage space chx_wlevel of the second cache unit. The output end of the x-th decoder is used to output the second sampling start signal chx_start. Among them, the logic of the x-th decoder is when chx_rlevel≥first threshold value, chx_wlevel≥second threshold value, chx_start=1, otherwise, chx_start=0. Among them, the third value is 1, and the fourth value is 0. In addition, the third value and the fourth value can also be two other different values, which is not limited by the present disclosure.

[0102] Thus, according to the above method, each decoder can output a second sampling start signal for indicating whether the corresponding sampling rate conversion device meets the sampling start condition, and obtain N second sampling start signals. Among them, the N second sampling start signals can be represented as ch1_start, ch2_start, ch3_start, ..., chN_start.

[0103] In addition, the synchronization interface of the sampling rate conversion device also includes a third output interface and a fourth output interface. The decoder obtains the number of to-be-sampled data stored in the first cache unit of the sampling rate conversion device through the third output interface of the sampling rate conversion device corresponding to the decoder, and obtains the remaining storage space of the second cache unit of the sampling rate conversion device through the fourth output interface of the sampling rate conversion device corresponding to the decoder.

[0104] In this way, the number of to-be-sampled data stored in the first cache unit and the remaining storage space of the second cache unit are outputted using different output interfaces, thereby improving the reliability of data transmission.

[0105] Correspondingly, for each synchronizer, the synchronizer is connected to N decoders to obtain the second sampling start signal output by each decoder, and determine whether the sampling rate conversion devices corresponding to each channel in the channel group with the first target channel as the main channel meet the sampling start conditions based on the second sampling start signal output by each decoder and the grouping information of each channel.

[0106] Figure 6 is a schematic diagram of a synchronizer according to an exemplary embodiment. Figure 6 In the description, the synchronizer is taken as the xth synchronizer among N synchronizers as an example. Figure 6As shown, the input end of the xth synchronizer is used to input the first information related to sampling start and the grouping information of each channel, and the input end of the xth synchronizer is used to output the second sampling start signal of the xth sampling rate conversion device corresponding to the xth channel corresponding to the xth synchronizer. Figure 6 As shown, the grouping information of N channels can be expressed as ch1_group_en, ch1_group_sel, ch2_group_en, ch2_group_sel, ch3_group_en, ch3_group_sel, ..., chN_group_en, chN_group_sel. And the first information related to sampling start is N second sampling start signals can be expressed as ch1_start, ch2_start, ch3_start, ..., chN_start. The x-th synchronizer determines whether the sampling rate conversion device corresponding to each channel in the channel group with the x-th channel as the main channel meets the sampling start condition according to ch1_group_en, ch1_group_sel, ch2_group_en, ch2_group_sel, ch3_group_en, ch3_group_sel, ..., chN_group_en, chN_group_sel, and ch1_start, ch2_start, ch3_start, ..., chN_start. If the condition is satisfied, the x-th synchronizer outputs a first sampling start signal chx_start_o=1, which is a first value used to indicate that the first sampling start signal is valid. If the condition is not satisfied, the x-th synchronizer outputs a first sampling start signal chx_start_o=0, which is a second value used to indicate that the first sampling start signal is invalid. The first value is 1, and the second value is 0. In addition, the first value and the second value may also be other two different values, which is not limited in the present disclosure.

[0107] For example, the logic of the xth synchronizer is that the kth channel does not select the xth channel as the main channel, and its logical expression is! (chk_group_en & chk_group_sel == x), that is, the second sampling start signal chk_start corresponding to the kth channel does not work whether it is 1 or 0. When the second sampling start signal corresponding to each channel in the channel group with the xth channel as the main channel is 1, the first sampling start signal chx_start_o output by the xth synchronizer is 1. The logical expression is as follows:

[0108] chx_start_o=(!(ch1_group_en&ch1_group_sel==x)|ch1_start)&

[0109] (!(ch2_group_en&ch2_group_sel==x)|ch2_start)&

[0110] …

[0111] (!(chN_group_en&chN_group_sel==x)|chN_start).

[0112] Assuming that the first channel does not select the xth channel as the main channel, then (ch1_group_en&ch1_group_sel==x)=0,!(ch1_group_en&ch1_group_sel==x)=1, therefore, no matter ch1_start is 1 or 0, (!(ch1_group_en&ch1_group_sel==x)|ch1_start)=1, that is, the result of (!(ch1_group_en&ch1_group_sel==x)|ch1_start) has nothing to do with the value of chx_start_o. Among them,! represents logical negation, & represents logical and, and | represents logical or.

[0113] The group selector is described below.

[0114] For each grouping selector, the grouping selector is respectively connected to each sampling rate configuration unit and each phase compensation unit in the N synchronizers, the N sampling rate conversion devices, and the grouping information of the second target channel corresponding to the grouping selector, and according to the first sampling start signal output by each synchronizer, the sampling rate and the sampling rate compensation value of each sampling rate conversion device, and the grouping information of the second target channel corresponding to the grouping selector, the synchronous sampling related parameters corresponding to the channel group to which the second target channel belongs are determined, and the synchronous sampling related parameters are sent to the synchronous interface of the second sampling rate conversion device corresponding to the second target channel.

[0115] Specifically, the grouping selector is used to determine whether the second target channel participates in the grouping according to the grouping information of the second target channel. If the second target channel does not participate in the grouping, the synchronous sampling rate and the synchronous sampling rate compensation value of the second sampling rate conversion device are respectively the sampling rate and the sampling rate compensation value of the second sampling rate conversion device corresponding to the second target channel, and the synchronous sampling start signal of the second sampling rate conversion device is determined to be a valid signal. That is to say, when the second target channel does not participate in the grouping, it does not need to perform synchronous acquisition with the number of other channels, so the second target channel performs sampling according to the sampling rate and sampling rate compensation value calculated by itself.

[0116] If the second target channel participates in the grouping, the main channel of the channel group to which the second target channel belongs is determined, and the synchronous sampling related parameters corresponding to the channel group are determined to be the sampling rate, sampling rate compensation value and first sampling start signal of the third sampling rate conversion device corresponding to the main channel.

[0117] Figure 7 FIG. 1 is a schematic diagram of a group selector according to an exemplary embodiment. Figure 7 As shown in the figure, the xth group selector is taken as an example for description. Figure 7 As shown, the input end of the x-th group selector is used to input the N first sampling start signals output by the N synchronizers, the sampling rates and sampling rate compensation values ​​of the N sampling rate conversion devices, and the grouping information of the x-th channel. Among them, the N first sampling start signals are recorded as ch1_start_o, ch2_start_o, ch3_start_o, ..., chN_start_o, the sampling rates of the N sampling rate conversion devices are recorded as ch1_ratio_o, ch2_ratio_o, ch3_ratio_o, ..., chN_ratio_o, the sampling rate compensation values ​​of the N sampling rate conversion devices are recorded as ch1_ratio_diff_o, ch2_ratio_diff_o, ch3_ratio_diff_o, ..., chN_ratio_diff_o, and the grouping information of the x-th channel corresponding to the x-th group selector is recorded as chx_group_en, chx_group_sel. The output end of the x-th group selector outputs the synchronous sampling related parameters of the x-th sampling rate conversion device corresponding to the x-th channel, including the synchronous sampling rate chx_ratio_i, the synchronous sampling rate compensation value chx_ratio_diff_i, and the synchronous sampling start signal chx_start_i.

[0118] For example, the logic of the x-th group selector is: when chx_group_en=0, the synchronous sampling related parameters of the x-th sampling rate conversion device are the sampling related parameters of the x-th sampling rate conversion device, that is, chx_ratio_diff_i=chx_ratio_diff_o; chx_ratio_i=chx_ratio_o; chx_start_i=1. When chx_group_en=1, chx_group_sel=k (k=any value from 1 to N), the synchronous sampling related parameters of the x-th sampling rate conversion device output by the x-th group selector are the synchronous sampling related parameters of the k-th sampling rate conversion device corresponding to the k-th channel, that is, chx_ratio_diff_i=chk_ratio_diff_o; chx_ratio_i=chk_ratio_o; chx_start_i=chk_start_o.

[0119] First of all, it should be understood that for the x-th channel that does not participate in the grouping, chx_start_i is set to 1. However, during sampling, the sampling rate conversion device corresponding to the x-th channel will still determine whether the sampling conditions are met, that is, whether the number of data to be sampled stored in the first cache unit is greater than the first threshold, and whether the remaining storage space of the first cache unit is greater than the second threshold. If both are greater, sampling will start, otherwise sampling will not be performed.

[0120] Secondly, it should be understood that for the x-th channel participating in the grouping, chx_start_i=chx_start can also be set. In this way, after receiving the synchronous sampling related parameters, the sampling rate conversion device corresponding to the x-th channel does not need to determine again whether the number of to-be-sampled data stored in the first cache unit is greater than the first threshold and whether the remaining storage space of the first cache unit is greater than the second threshold.

[0121] In this way, by adopting the above technical scheme, the group synchronization control device can flexibly group multiple channels according to the group configuration related information to obtain channel groups, and for each channel group, the sampling rate conversion device corresponding to each channel in the channel group adopts the same synchronous sampling related parameters, so that the sampling process of the sampling rate conversion device corresponding to each channel in the channel group is consistent, ensuring that the sampling rate and phase of the sampling data output by each sampling rate conversion device are completely consistent, and the purpose of synchronous sampling of multi-channel data can be achieved.

[0122] In addition, the synchronization interface of the sampling rate conversion device also includes a first output interface and a second output interface; the group selector is connected to each sampling rate configuration unit through the first output interface of each sampling rate conversion device to obtain the sampling rate generated by each sampling rate configuration unit, and is connected to each phase compensation unit through the second output interface of each sampling rate conversion device to obtain the sampling rate compensation value generated by each phase compensation unit.

[0123] In this way, the sampling rate and the sampling rate compensation value are outputted using different output interfaces, thereby improving the reliability of data transmission.

[0124] Based on the same inventive concept, the present disclosure also provides an electronic device, which includes the multi-channel sampling rate conversion system provided by the present disclosure. For example, the electronic device can be an audio device, such as a stereo, a television, and the like.

[0125] The preferred embodiments of the present disclosure are described in detail above in conjunction with the accompanying drawings; however, the present disclosure is not limited to the specific details in the above embodiments. Within the technical concept of the present disclosure, a variety of simple modifications can be made to the technical solution of the present disclosure, and these simple modifications all fall within the protection scope of the present disclosure.

[0126] 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, the present disclosure will not further describe various possible combinations.

[0127] In addition, various embodiments of the present disclosure may be arbitrarily combined, and as long as they do not violate the concept of the present disclosure, they should also be regarded as the contents disclosed by the present disclosure.

Claims

1. A sampling rate conversion device, characterized in that: The sampling rate conversion device comprises: a sampling unit and a synchronization interface; The synchronization interface comprises a first input interface for inputting a synchronization sampling rate, a second input interface for inputting a synchronization sampling rate compensation value, and a third input interface for inputting a synchronization sampling start signal; The sampling unit is respectively connected to the first input interface, the second input interface and the third input interface, and is used to obtain the synchronous sampling rate, the synchronous sampling rate compensation value and the synchronous sampling start signal, and when the synchronous sampling start signal is valid, samples the data to be sampled according to the synchronous sampling rate and the synchronous sampling rate compensation value to obtain sampling data.

2. The sampling rate conversion device according to claim 1, characterized in that: The sampling rate conversion device also includes a sampling rate configuration unit and a phase compensation unit; The sampling rate configuration unit is used to generate the sampling rate of the sampling rate conversion device; The phase compensation unit is connected to the sampling rate configuration unit, and is used to generate a sampling rate compensation value of the sampling rate conversion device according to the sampling rate, a first clock for inputting the data to be sampled, and a second clock for outputting the sampled data; The synchronization interface also includes a first output interface and a second output interface; The first output interface is connected to the sampling rate configuration unit for outputting the sampling rate, and the second output interface is connected to the phase compensation unit for outputting the sampling rate compensation value, so as to determine the synchronous sampling rate according to the sampling rate, and determine the synchronous sampling rate compensation value according to the sampling rate compensation value.

3. The sampling rate conversion device according to claim 1 or 2, characterized in that: The sampling rate conversion device further includes: a first buffer unit and a second buffer unit; The first cache unit is used to store the data to be sampled; The sampling unit is connected to the first cache unit and the second cache unit respectively, and is used to obtain the data to be sampled from the first cache unit and store the sampled data in the second cache unit.

4. The sampling rate conversion device according to claim 3, characterized in that: The synchronization interface also includes a third output interface and a fourth output interface; The third output interface is connected to the first cache unit and is used to output the number of data to be sampled stored in the first cache unit. The fourth output interface is connected to the second cache unit and is used to output the remaining storage space of the second cache unit, so as to generate the synchronous sampling start signal according to the number of data to be sampled and the remaining storage space.

5. A multi-channel sampling rate conversion system, characterized in that: The system comprises: a group synchronization control device and N sampling rate conversion devices according to any one of claims 1 to 4, N is an integer greater than 2, wherein the number of channels is N, and the channels correspond to the sampling rate conversion devices one by one, and the group synchronization control device is connected to the N sampling rate conversion devices; The group synchronization control device is used to input group configuration related information of N channels, and control the N channel groups according to the group configuration related information, and determine the synchronous sampling related parameters corresponding to each channel group, so as to control each channel belonging to the same channel group to perform synchronous sampling according to the synchronous sampling related parameters, wherein the synchronous sampling related parameters include a synchronous sampling rate, a synchronous sampling rate compensation value and a synchronous sampling start signal.

6. The system according to claim 5, characterized in that The sampling rate conversion device also includes a sampling rate configuration unit and a phase compensation unit; The sampling rate configuration unit is used to generate the sampling rate of the sampling rate conversion device; The phase compensation unit is connected to the sampling rate configuration unit, and is used to generate a sampling rate compensation value of the sampling rate conversion device according to the sampling rate, a first clock for inputting the data to be sampled, and a second clock for outputting the sampled data; The grouping configuration related information includes first information related to sampling start, grouping information of each channel, and the sampling rate and the sampling rate compensation value of each sampling rate conversion device. The grouping information includes a first signal for indicating whether the channel participates in grouping.

7. The system according to claim 6, characterized in that The grouping information further includes a second signal for indicating whether the channel is a main channel.

8. The system according to claim 6 or 7, characterized in that: The packet synchronization control device comprises: N synchronizers and N packet selectors; the N channels correspond to the N synchronizers and the N packet selectors one by one respectively; For each synchronizer, the synchronizer is connected to the N sampling rate conversion devices, and is used to obtain first information related to sampling start, and is also used to receive grouping information of each channel, and determine whether the sampling rate conversion device corresponding to each channel in the channel group with the first target channel corresponding to the synchronizer as the main channel meets the sampling start condition according to the first information and the grouping information of each channel, and output a first sampling start signal of the first sampling rate conversion device corresponding to the first target channel; For each of the grouping selectors, the grouping selector is respectively connected to each sampling rate configuration unit and each phase compensation unit in the N synchronizers, the N sampling rate conversion devices, and the first sampling start signal output by each of the synchronizers, the sampling rate and the sampling rate compensation value of each of the sampling rate conversion devices, and the grouping information of the second target channel corresponding to the grouping selector, determines the synchronous sampling related parameters corresponding to the channel group to which the second target channel belongs, and sends the synchronous sampling related parameters to the synchronous interface of the second sampling rate conversion device corresponding to the second target channel.

9. The system according to claim 8, characterized in that The grouping selector is used to determine whether the second target channel participates in grouping according to the grouping information of the second target channel; if the second target channel does not participate in grouping, determine the synchronous sampling rate and the synchronous sampling rate compensation value of the second sampling rate conversion device to be the sampling rate and the sampling rate compensation value of the second sampling rate conversion device corresponding to the second target channel, respectively, and determine that the synchronous sampling start signal of the second sampling rate conversion device is a valid signal; if the second target channel participates in grouping, determine the main channel of the channel group to which the second target channel belongs, and determine the synchronous sampling related parameters corresponding to the channel group to be the sampling rate, the sampling rate compensation value and the first sampling start signal of the third sampling rate conversion device corresponding to the main channel.

10. The system according to claim 8, characterized in that The synchronizer is used to output a first sampling start signal identified by a first value when it is determined that the sampling rate conversion devices corresponding to each channel in the channel group with the first target channel as the main channel meet the sampling start condition, and output a first sampling start signal identified by a second value when it is determined that there is a channel in the channel group whose sampling rate conversion device does not meet the sampling start condition.

11. The system according to claim 8, characterized in that: The sampling rate conversion device further includes: a first buffer unit and a second buffer unit; The first information includes the amount of to-be-sampled data stored in the first cache unit of each of the sampling rate conversion devices and the remaining storage space of the second cache unit of each of the sampling rate conversion devices, or the first information is a second sampling start signal used to indicate whether each of the sampling rate conversion devices meets the sampling start condition, wherein whether the sampling rate conversion device meets the sampling start condition is determined based on the first cache unit and the second cache unit of the sampling rate conversion device.

12. The system according to claim 11, characterized in that The first information is a second sampling start signal used to indicate whether each of the sampling rate conversion devices meets the sampling start condition; the packet synchronization control device also includes N decoders, and the N decoders correspond to the N sampling rate conversion devices one by one; For each of the decoders, the decoder obtains the number of data to be sampled stored in the first cache unit of the sampling rate conversion device corresponding to the decoder and the remaining storage space of the second cache unit, and when the number of data to be sampled is greater than or equal to a first threshold and the remaining storage space is greater than or equal to a second threshold, determines that the sampling rate conversion device meets the sampling start condition, and outputs a second sampling start signal identified as a third value, otherwise outputs a second sampling start signal identified as a fourth value, wherein the third value is used to indicate that the sampling rate conversion device meets the sampling start condition, and the fourth value is used to indicate that the sampling rate conversion device does not meet the sampling start condition; For each synchronizer, the synchronizer is connected to N decoders to obtain the second sampling start signal output by each decoder, and determine whether the sampling rate conversion devices corresponding to each channel in the channel group with the first target channel as the main channel meet the sampling start conditions based on the second sampling start signal output by each decoder and the grouping information of each channel.

13. The system according to claim 11, characterized in that The first information includes the amount of to-be-sampled data stored in the first cache unit of each sampling rate conversion device and the remaining storage space of the second cache unit of each sampling rate conversion device; For each synchronizer, the synchronizer is used to obtain the number of data to be sampled stored in each first cache unit and the remaining storage space of each second cache unit, and determine a channel group with the first target channel corresponding to the synchronizer as the main channel according to the grouping information of each channel. If the number of data to be sampled of the sampling rate conversion device corresponding to each channel in the channel group is greater than or equal to a first threshold and the remaining storage space is greater than or equal to a second threshold, it is determined that the sampling rate conversion devices corresponding to each channel in the channel group meet the sampling start condition.

14. The system according to claim 8, characterized in that The synchronization interface also includes a first output interface and a second output interface; The group selector is connected to each of the sampling rate configuration units through the first output interface of each of the sampling rate conversion devices to obtain the sampling rate generated by each of the sampling rate configuration units, and is connected to each of the phase compensation units through the second output interface of each of the sampling rate conversion devices to obtain the sampling rate compensation value generated by each of the phase compensation units.

15. The system according to claim 12, characterized in that The synchronization interface also includes a third output interface and a fourth output interface; The decoder obtains the amount of to-be-sampled data stored in the first cache unit of the sampling rate conversion device through the third output interface of the sampling rate conversion device corresponding to the decoder, and obtains the remaining storage space of the second cache unit of the sampling rate conversion device through the fourth output interface of the sampling rate conversion device corresponding to the decoder.

16. An electronic device, characterized in that: The invention comprises a multi-channel sampling rate conversion system as claimed in any one of claims 5 to 15.