Circuit testing method, test board and test system
By sending digital audio signals in the on-chip system of the audio playback device and using the test board for loopback comparison, the problems of high test cost and insufficient accuracy of existing automotive audio bus circuits are solved, and a more economical and efficient test method is achieved.
Patent Information
- Application Number
- CN202110937260.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-16
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2041-08-16
AI Technical Summary
Existing automotive audio bus circuit testing methods rely on high-cost peripherals, resulting in high testing costs and test results that rely on subjective listening and lack accuracy.
By sending the digital audio signal to the car audio bus circuit in the on-chip system of the audio playback device, converting it into a car audio bus signal, and using the test board to convert it into a digital audio signal and looping it back to the on-chip system for comparison to determine whether the circuit exists abnormal.
It reduces the test cost, improves the test accuracy, avoids the use of high-cost peripherals and subjective detection, and enhances the detection efficiency.
Smart Images

Figure CN115941566B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of automobile audio bus, and in particular to a circuit testing method, a testing board and a testing system. Background Art
[0002] Automotive Audio Bus (A2B) is a type of audio bus. The A2B bus circuit is used to connect audio devices in the vehicle, such as microphones, amplifiers, multimedia hosts, etc. The A2B bus uses a pair of differential lines to transmit multi-channel audio data, control signals, clocks, and power across distances.
[0003] In the prior art, when testing the A2B bus circuit, a peripheral device supporting the A2B bus is used, and the sound is directly played through the power amplifier of the peripheral device. The tester determines whether there is any abnormality in the A2B bus circuit based on the played sound.
[0004] However, in the testing method of the prior art, in order to obtain accurate test results and avoid test errors caused by peripherals, testers often use high-cost peripherals to play sounds, and obtain accurate test results by listening to whether the sounds played by the peripherals are abnormal. The use of such peripherals increases the test cost of the A2B bus circuit. Summary of the invention
[0005] The present application provides a circuit testing method, a testing board and a testing system, which are used to solve the problem of high cost of testing existing automobile audio bus circuits.
[0006] In a first aspect, an embodiment of the present application provides a circuit testing method, which is applied to a system on a chip of an audio playback device, and the method includes:
[0007] Sending a first digital audio signal to a car audio bus circuit, and controlling the car audio bus circuit to convert the first digital audio signal into a car audio bus signal;
[0008] Controlling the car audio bus circuit to transmit the car audio bus signal to a test board, wherein the test board is used to convert the car audio bus signal into a second digital audio signal and loop the second digital audio signal back to the car audio bus circuit;
[0009] The second digital audio signal is obtained, and a test result is obtained according to the first digital audio signal and the second digital audio signal, wherein the test result is used to indicate whether there is an abnormality in the automobile audio bus circuit.
[0010] In a possible design of the first aspect, the audio playback device includes a digital processor, the digital processor is connected to the car audio bus circuit, and the sending of the first digital audio signal to the car audio bus circuit includes:
[0011] Configuring the audio channel of the digital processor according to the preset configuration information;
[0012] The first digital audio signal is sent to the digital processor, and the digital processor is controlled to transmit the first digital audio signal to the car audio bus circuit by using a first audio channel.
[0013] In another possible design of the first aspect, obtaining the second digital audio signal includes:
[0014] controlling the car audio bus circuit to transmit the second digital audio signal of the test board to the digital processor;
[0015] The digital processor is controlled to loop back the second digital audio signal using the first audio channel.
[0016] In another possible design of the first aspect, the audio playback device further includes a sound playback component, the sound playback component is connected to the digital processor, and after the controlling the car audio bus circuit to transmit the second digital audio signal of the test board to the digital processor, the method further includes:
[0017] The digital processor is controlled to transmit the second digital audio signal to the sound playing component using a second audio channel.
[0018] In another possible design of the first aspect, after controlling the car audio bus circuit to transmit the second digital audio signal of the test board to the digital processor, the method further includes:
[0019] The digital processor is controlled to use a preset sound effect processing algorithm to perform sound effect processing on the second digital audio signal to obtain a second digital audio signal after the sound effect processing.
[0020] In another possible design of the first aspect, obtaining a test result according to the first digital audio signal and the second digital audio signal includes:
[0021] Acquire audio data of the first digital audio signal and audio data of the second digital audio signal;
[0022] The audio data of the first digital audio signal is compared with the audio data of the second digital signal to obtain the test result.
[0023] In another possible design of the first aspect, before controlling the car audio bus circuit to transmit the car audio bus signal to the test board, the method further includes:
[0024] Detecting whether the car audio bus circuit is connected to the test board;
[0025] If the car audio bus circuit is connected to the test board, a first control signal is output to the car audio bus circuit, where the first control signal is used to configure a data format of the test board.
[0026] In a second aspect, an embodiment of the present application provides a test board, wherein the test board is used to connect a car audio bus circuit;
[0027] The test board is used to convert the car audio bus signal transmitted by the car audio bus circuit into a digital audio signal and loop it back to the car audio bus circuit.
[0028] In a third aspect, an embodiment of the present application provides a test system, including: a system on chip, a car audio bus circuit, and a test board, wherein the system on chip is connected to the test board through the car audio bus circuit;
[0029] The car audio bus circuit is used to receive a first digital audio signal sent by the system on chip, convert the first digital audio signal into a car audio bus signal, and send it to the test board;
[0030] The test board is used to convert the car audio bus signal into a second digital audio signal and loop it back to the car audio bus circuit;
[0031] The system on chip is used to obtain the second digital audio signal, and obtain a test result according to the first digital audio signal and the second digital audio signal, wherein the test result is used to indicate whether there is an abnormality in the automobile audio bus circuit.
[0032] In a possible design of the third aspect, the test system further includes: a digital processor connected to the system on chip and a car audio bus circuit.
[0033] In another possible design of the third aspect, the test system further includes: a sound playing component, the sound playing component being connected to the digital processor;
[0034] The sound playing component is used to obtain the second digital audio signal and play the sound according to the second digital audio signal.
[0035] In another possible design of the third aspect, the sound playing component includes a power amplifier and a speaker, the power amplifier is connected to the digital processor, and the speaker is connected to the power amplifier.
[0036] The circuit testing method, test board and test system provided in the embodiments of the present application use the test board to convert the car audio bus signal output by the car audio bus circuit to obtain a digital audio signal, and loop it back to the on-chip system. The on-chip system compares the emitted digital audio signal with the looped-back digital audio signal to determine whether there is an abnormality in the car audio bus circuit, thereby avoiding the need for testers to use peripherals to connect to the A2B circuit and test the A2B circuit through the sound played by the peripherals, thereby reducing the testing cost of the car audio bus circuit. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The accompanying drawings herein are incorporated in and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the description, are used to explain the principles of the present application;
[0038] Figure 1 A schematic diagram of a circuit testing method according to an embodiment of the present invention;
[0039] Figure 2 A schematic diagram of a flow chart of a circuit testing method provided in an embodiment of the present application;
[0040] Figure 3 A schematic diagram of the structure of a test system embodiment 1 provided in an embodiment of the present application;
[0041] Figure 4 A schematic diagram of the structure of the test system embodiment 2 provided in the embodiment of the present application;
[0042] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0043] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0044] First, the terms involved in this application are explained:
[0045] System on Chip:
[0046] System-on-a-chip (SOC) refers to a technology that integrates a complete system on a single chip and packages all or part of the necessary electronic circuits. The system generally includes a central processing unit, memory, and peripheral circuits.
[0047] Car Audio Bus Circuit:
[0048] Automotive Audio Bus (A2B) refers to an audio bus that uses a pair of 49.152M differential lines to transmit multi-channel audio data in both directions. A2B supports cascading multiple nodes and can directly connect to the PDM MIC. It also supports the audio data input and output of the integrated circuit built-in audio bus (Inter-IC Sound, I2S bus). The automotive audio bus circuit specifically includes A2B chip, filter circuit, power supply circuit and A2B bus.
[0049] Figure 1 A schematic diagram of a circuit testing method provided in an embodiment of the present application, such as Figure 1 As shown, the application scenario of this embodiment is an audio playback device, which includes a SOC 11, a digital processor (Digital Signal Process, DSP) 12 and an A2B circuit 13, etc. In actual application, the A2B circuit 13 can be equipped with a microphone, etc., to support the input and output of audio data of digital audio signals, and can realize the input and output of audio data through a built-in audio bus of the integrated circuit. Before the audio playback device leaves the factory or is used, the A2B circuit needs to undergo a detection process to determine whether there is any abnormality.
[0050] The existing technology mainly tests the A2B circuit by connecting the A2B bus to the peripherals supporting A2B, and the A2B circuit converts the digital audio signal of the SOC into a car audio bus signal, and transmits it to the peripherals through the car audio bus, and plays the sound through the power amplifier and speaker of the peripherals, and the tester listens to the played sound and detects whether there is noise to determine whether the A2B circuit is abnormal. The circuit of the peripherals used in this method of the existing technology is very complex, including A2B module circuit, power amplifier circuit and control circuit, etc. In addition, the cost of the peripherals that can support A2B is very high, which increases the testing cost of the A2B circuit.
[0051] In response to the above problems, the embodiments of the present application provide a circuit testing method, a test board and a test system, the main concept of which is as follows: utilizing the comparison function of the SOC of an audio playback device, the SOC sends a first digital audio signal to the A2B circuit through the I2S bus, the A2B circuit converts the first digital audio signal into a car audio bus signal and transmits it to the test board, the car audio bus signal is converted back into a second digital audio signal by the test board, and looped back to the SOC, the SOC uses the comparison function to complete the consistency comparison of the first digital audio signal and the second digital audio signal, and determines whether there is an abnormality in the A2B circuit, thereby avoiding the use of high-cost peripherals. At the same time, it does not require the tester to make subjective detection judgments by listening to the sound played by the peripherals, thereby improving the detection accuracy of the A2B circuit.
[0052] The technical solution of the present application is described in detail below through specific embodiments. It should be noted that the following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0053] Figure 2 A schematic diagram of a flow chart of a circuit testing method provided in an embodiment of the present application, wherein the circuit testing method is applied to a SOC in an audio playback device, such as Figure 2 As shown, the method specifically comprises the following steps:
[0054] S201: Send a first digital audio signal to a car audio bus circuit, and control the car audio bus circuit to convert the first digital audio signal into a car audio bus signal.
[0055] Exemplarily, the SOC may be connected to the A2B circuit via the DSP, and the SOC may send a first digital audio signal to the DSP via an I2S bus, and the DSP may then forward the first digital audio signal to the A2B circuit via a first I2S bus.
[0056] In this embodiment, the SOC can also send a control signal to the A2B circuit through the Inter-Integrated Circuit (I2C) bus to perform relevant configuration on the A2B circuit. The A2B circuit completes the conversion of the first digital audio signal according to the configuration information of the SOC, that is, converts the first digital audio signal into a car audio bus signal.
[0057] S202: Control the car audio bus circuit to transmit the car audio bus signal to the test board.
[0058] The test board is used to convert the car audio bus signal into a second digital audio signal, and loop the second digital audio signal back to the car audio bus circuit.
[0059] In this embodiment, the test board includes an A2B chip and a loopback circuit, etc. Exemplarily, the test board can convert the car audio bus into a second digital audio signal through the A2B chip, and then loop the second digital audio signal back to the A2B circuit through the loopback circuit.
[0060] Exemplarily, the test board is connected to the car audio bus in the A2B circuit, and the A2B circuit transmits the car audio bus signal to the test board through the car audio bus. The test board can also loop back the second digital audio signal to the A2B circuit through the car audio bus.
[0061] S203: Acquire a second digital audio signal, and acquire a test result according to the first digital audio signal and the second digital audio signal.
[0062] The test result is used to indicate whether there is an abnormality in the car audio bus circuit. Exemplarily, the test result can be obtained based on the comparison result of the first digital audio signal and the second digital audio signal. When the first digital audio signal is inconsistent with the second digital audio signal, the test result indicates that there is an abnormality in the car audio bus circuit. When the first digital audio signal is consistent with the second digital audio signal, the test result indicates that there is no abnormality in the car audio bus circuit.
[0063] In this embodiment, the SOC has a comparison function, which can determine whether there is an abnormality in the A2B circuit in the car audio device by comparing the consistency of the transmitted and received signals.
[0064] Exemplarily, after obtaining the second digital audio signal looped back by the test board, the A2B circuit can forward the second digital audio signal to the DSP through the I2S bus, and then the DSP loops the second digital audio signal back to the SOC through the first I2S bus.
[0065] In the embodiment of the present application, a test board is used to convert the car audio bus signal output by the A2B circuit to obtain a digital audio signal, and the digital audio signal is looped back to the SOC. The SOC compares the emitted digital audio signal with the looped-back digital audio signal to determine whether there is an abnormality in the A2B circuit. This avoids the need for testers to connect the A2B circuit with an external device and test the A2B circuit through the sound played by the external device, thereby reducing the testing cost of the car audio bus circuit. At the same time, it is also possible to detect whether there are errors in the audio signal during transmission, thereby improving testing efficiency.
[0066] Optionally, in some embodiments, if the audio playback device includes a digital processor, and the SOC is connected to the car audio bus circuit through the digital processor, then the "sending the first digital audio signal to the car audio bus circuit" in the above step S201 can be implemented by the following steps:
[0067] Configure the audio channels of the digital processor according to the preset configuration information;
[0068] The first digital audio signal is sent to the digital processor, and the digital processor is controlled to transmit the first digital audio signal to the car audio bus circuit by using the first audio channel.
[0069] Specifically, the SOC may send a control signal to the digital processor via an I2C bus, and configure the digital processor through preset configuration information. For example, the SOC may configure the audio channel of the digital processor, and the preset configuration information may be determined by a tester. The first audio channel may be the first I2S bus mentioned above. For example, the DSP may include multiple audio channels, and each audio channel is respectively connected to an electrical device in the audio playback device.
[0070] Exemplarily, the SOC may also send a control signal to the digital processor via the I2C bus to configure the sound effect processing algorithm of the digital processor, wherein the sound effect processing algorithm is used by the digital processor to perform sound effect processing on the audio signal.
[0071] In this embodiment, the digital processor includes multiple audio channels. Exemplarily, the digital processor may include a first audio channel and a second audio channel. The first audio channel may be an input channel for an audio signal, and the second audio channel may be an output channel for an audio signal. Through the output channel for the audio signal, the digital audio signal is converted into sound for playback.
[0072] Based on the above embodiment, in some embodiments, the “obtaining the second digital audio signal” in the above step S203 can be specifically implemented by the following steps:
[0073] controlling the car audio bus circuit to transmit the second digital audio signal of the test board to the digital processor;
[0074] The digital processor is controlled to loop back the second digital audio signal using the first audio channel.
[0075] Specifically, the SOC can send a control signal to the digital processor and the car audio bus through the I2C bus, control the digital processor to use the first audio channel (i.e., the first I2S bus) to loop the second digital audio signal back to the SOC, and the SOC completes the comparison between the first digital audio signal and the second digital audio signal.
[0076] Optionally, based on the above embodiment, in some embodiments, if the audio playback device further includes a sound playback component, and the sound playback component is connected to the digital processor, the above circuit testing method further includes the following steps:
[0077] The digital processor is controlled to transmit the second digital audio signal to the sound playing component by using the second audio channel.
[0078] In this embodiment, the second audio channel is different from the first audio channel. Exemplarily, the second audio channel may be an output channel. The sound playing component may include a power amplifier and a speaker. The digital processor outputs the second digital audio signal to the sound playing component via the I2S bus, and the sound playing component may play the sound. The second digital audio signal may be amplified by the power amplifier, and the sound may be output by the speaker.
[0079] The embodiment of the present application can play sound using the audio data of the second digital audio signal by setting a sound playing component. The tester can test the A2B circuit based on the played sound. When the played sound is abnormal, it indicates that the A2B circuit may be abnormal, thereby improving the test accuracy.
[0080] Based on the above embodiment, the above circuit testing method further includes the following steps:
[0081] The digital processor is controlled to perform sound effect processing on the second digital audio signal using a preset sound effect processing algorithm to obtain the second digital audio signal after the sound effect processing.
[0082] In this embodiment, the preset sound effect processing algorithm can be configured by the SOC to configure the digital processor. By way of example, the preset sound effect processing algorithm includes Dolby sound, stereo surround and other sound effect processing algorithms. The SOC can output configuration information to the digital processor via the I2C bus to configure the sound effect processing algorithm of the digital processor.
[0083] After the digital processor performs sound effect processing on the second digital audio signal, the sound playing component can obtain the second digital audio signal after the sound effect processing, and play the sound according to the audio data in the second digital audio signal.
[0084] The embodiment of the present application utilizes a digital processor to perform sound effect processing on the second digital audio signal and outputs it to a sound playback component for sound playback, thereby enabling test personnel to use the played sound to determine whether there is an abnormality in the A2B circuit, thereby increasing the means for abnormality testing of the A2B circuit and improving test accuracy.
[0085] In some embodiments, the step S203 of “obtaining a test result according to the first digital audio signal and the second digital audio signal” may be implemented by the following steps:
[0086] Acquire audio data of a first digital audio signal and audio data of a second digital audio signal;
[0087] The audio data of the first digital audio signal is compared with the audio data of the second digital signal to obtain a test result.
[0088] In this embodiment, the first digital audio signal can be used as the SOC's sending signal, and the second digital audio signal can be used as the SOC's receiving signal. The SOC can determine whether there is an abnormality in the A2B circuit by comparing the audio data in the sending and receiving signals, and obtain the test result of the A2B circuit.
[0089] It can be understood that after the first digital audio signal emitted by the SOC is forwarded to the A2B circuit through the digital processor, the A2B circuit converts the first digital audio signal into a car audio bus signal and transmits it to the test board through the car audio bus. The test board then converts the car audio bus signal into a second digital audio signal and loops it back to the SOC. If there is no abnormality in the A2B circuit, the audio data in the first digital audio signal should match the audio data in the second digital audio signal.
[0090] In some embodiments, the circuit testing method further includes the following steps:
[0091] Check whether the car audio bus circuit is connected to a test board;
[0092] If the car audio bus circuit is connected to a test board, a first control signal is output to the car audio bus circuit.
[0093] The first control signal is used to configure the data format of the test board.
[0094] In this embodiment, when the A2B circuit is connected to a test board, the A2B circuit can transmit a first control signal to the test board, and the test board includes an A2B chip. When the test board is connected to the A2B circuit through a car audio bus, the SOC can configure the data format of the A2B chip. Exemplarily, the data format can be the data format of the audio data in the second audio signal, specifically including wav format and mp3 format, etc. Exemplarily, the SOC can also output a second control signal to configure the working mode of the A2B chip in the test board.
[0095] Optionally, an embodiment of the present application provides a test board, which is used to connect to an A2B circuit. When the test board is connected to the A2B circuit, the car audio bus signal transmitted by the A2B circuit can be converted into a digital audio signal and looped back to the A2B circuit.
[0096] Exemplarily, in some embodiments, the test board includes an A2B chip and a loopback circuit, wherein the A2B chip is used to convert a car audio bus signal transmitted by the A2B circuit into a digital audio signal, and the loopback circuit is used to loop the digital audio signal back to the A2B circuit.
[0097] Optionally, an embodiment of the present application provides a test system, which includes a SOC, an A2B circuit and a test board, and the SOC is connected to the test board through the A2B circuit.
[0098] The A2B circuit is used to receive the first digital audio signal sent by the SOC, convert the first digital audio signal into a car audio bus signal, and send it to the test board. The test board is used to convert the car audio bus signal into a second digital audio signal and loop it back to the A2B circuit. The SOC is used to obtain the second digital audio signal, and obtain the test result according to the first digital audio signal and the second digital audio signal.
[0099] The test result is used to indicate whether there is an abnormality in the A2B circuit.
[0100] Specifically, the SOC may send a first digital audio signal to the A2B circuit via the I2S bus, and the A2B circuit may also transmit a looped-back second digital audio signal to the SOC via the I2S bus.
[0101] Exemplarily, in this embodiment, the A2B circuit may include an A2B chip, a filtering circuit, a power supply circuit, and a car audio bus, where the car audio bus is used to connect to the test board and send the first digital audio signal to the test board through the car audio bus.
[0102] Exemplarily, the SOC may obtain audio data of a first digital audio signal and audio data of a second digital audio signal, and determine whether an abnormality exists in the A2B circuit by comparing whether there is a difference between the audio data of the first digital audio signal and the audio data of the second digital audio signal.
[0103] Exemplarily, based on the above embodiments, Figure 3 The schematic diagram of the structure of the test system embodiment 1 provided in the present application is as follows: Figure 3 As shown, the test system further includes a DSP 32 , which is connected to the SOC 31 and the A2B circuit 33 , respectively, and the A2B circuit 33 is connected to the test board 34 .
[0104] Among them, DSP32 is used for audio channel selection and sound effect processing.
[0105] In this embodiment, when the SOC 31 sends the first digital audio signal to the DSP 32 via the I2S bus, the DSP 32 forwards the first digital audio signal to the A2B circuit 33 via the I2S bus.
[0106] Exemplarily, based on the above embodiments, Figure 4 The schematic diagram of the structure of the test system embodiment 2 provided in the present application is as follows: Figure 4 As shown, the test system further includes a sound playing component 44 , which is connected to the DSP 42 , and the DSP 42 is connected to the SOC 41 .
[0107] The sound playing component 44 is used to obtain the second digital audio signal forwarded by the A2B circuit 43 to the DSP 42, convert the second digital audio signal into a sound signal, and play the sound.
[0108] The A2B circuit 43 is also connected to a test board 45 .
[0109] Exemplarily, based on the above embodiments, in some embodiments, the sound playing component 44 includes a power amplifier and a speaker, the power amplifier is connected to the digital processor, and the speaker is connected to the power amplifier.
[0110] The power amplifier can amplify the power of the second digital audio signal, and the speaker can convert the second digital audio signal after the power amplification into sound.
[0111] In this embodiment, the SOC can also configure the working mode, data format and other functional parameters of the DSP, power amplifier, A2B circuit and A2B chip on the test board through the I2C bus, and control the storage and playback of audio data.
[0112] It is understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, without departing from the scope of this application, a first resistor may be referred to as a second resistor, and similarly, a second resistor may be referred to as a first resistor. Both the first resistor and the second resistor are resistors, but they are not the same resistor.
[0113] It can be understood that the “connection” in the following embodiments should be understood as “electrical connection”, “communication connection”, etc. if the connected circuits, modules, units, etc. have electrical signals or data transmission between each other.
[0114] It should also be understood that the terms "include / comprise" or "have" etc. specify the existence of stated features, wholes, steps, operations, components, parts or combinations thereof, but do not exclude the possibility of the existence or addition of one or more other features, wholes, steps, operations, components, parts or combinations thereof. At the same time, the term "and / or" used in this specification includes any and all combinations of the relevant listed items.
[0115] In the present application, "at least one" means one or more, and "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship; in the formula, the character " / " indicates that the previous and next associated objects are in a "division" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.
[0116] It is to be understood that the various numerical numbers involved in the embodiments of the present application are only for the convenience of description and are not intended to limit the scope of the embodiments of the present application. In the embodiments of the present application, the size of the sequence number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0117] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A circuit testing method, characterized in that: A system on chip applied to an audio playback device, the method comprising the following steps: Sending a first digital audio signal to a car audio bus circuit, and controlling the car audio bus circuit to convert the first digital audio signal into a car audio bus signal; Controlling the car audio bus circuit to transmit the car audio bus signal to a test board, wherein the test board is used to convert the car audio bus signal into a second digital audio signal and loop the second digital audio signal back to the car audio bus circuit; The second digital audio signal is obtained, and a test result is obtained according to the first digital audio signal and the second digital audio signal, wherein the test result is used to indicate whether there is an abnormality in the automobile audio bus circuit.
2. The method according to claim 1, characterized in that The audio playback device includes a digital processor, the digital processor is connected to the car audio bus circuit, and the sending of the first digital audio signal to the car audio bus circuit includes: Configuring the audio channel of the digital processor according to the preset configuration information; The first digital audio signal is sent to the digital processor, and the digital processor is controlled to transmit the first digital audio signal to the car audio bus circuit by using a first audio channel.
3. The method according to claim 2, characterized in that The acquiring the second digital audio signal comprises: controlling the car audio bus circuit to transmit the second digital audio signal of the test board to the digital processor; The digital processor is controlled to loop back the second digital audio signal using the first audio channel.
4. The method according to claim 3, characterized in that The audio playback device further includes a sound playback component, which is connected to the digital processor. After the control of the car audio bus circuit to transmit the second digital audio signal of the test board to the digital processor, the control further includes: The digital processor is controlled to transmit the second digital audio signal to the sound playing component using a second audio channel.
5. The method according to claim 4, characterized in that After controlling the car audio bus circuit to transmit the second digital audio signal of the test board to the digital processor, the method further includes: The digital processor is controlled to use a preset sound effect processing algorithm to perform sound effect processing on the second digital audio signal to obtain a second digital audio signal after the sound effect processing.
6. The method according to claim 1, characterized in that The obtaining a test result according to the first digital audio signal and the second digital audio signal includes: Acquire audio data of the first digital audio signal and audio data of the second digital audio signal; The audio data of the first digital audio signal is compared with the audio data of the second digital signal to obtain the test result.
7. The method according to claim 1, characterized in that Before controlling the car audio bus circuit to transmit the car audio bus signal to the test board, the method further includes: Detecting whether the car audio bus circuit is connected to the test board; If the car audio bus circuit is connected to the test board, a first control signal is output to the car audio bus circuit, where the first control signal is used to configure a data format of the test board.
8. A test board, characterized in that: The test board is used to connect the car audio bus circuit; The test board is used to convert the car audio bus signal transmitted by the car audio bus circuit into a second digital audio signal, and loop it back to the car audio bus circuit, so that the system-on-chip of the audio playback device obtains a test result based on the second digital audio signal and the first digital audio signal; wherein the test result is used to indicate whether there is an abnormality in the car audio bus circuit; the first digital audio signal is sent by the system-on-chip of the audio playback device to the car audio bus circuit, and the car audio bus signal is obtained after the system-on-chip of the audio playback device controls the car audio bus circuit to convert the first digital audio signal.
9. A testing system, characterized in that: include: A system on chip, a car audio bus circuit and a test board, wherein the system on chip is connected to the test board via the car audio bus circuit; The car audio bus circuit is used to receive a first digital audio signal sent by the system on chip, convert the first digital audio signal into a car audio bus signal, and send it to the test board; The test board is used to convert the car audio bus signal into a second digital audio signal and loop it back to the car audio bus circuit; The system on chip is used to obtain the second digital audio signal, and obtain a test result according to the first digital audio signal and the second digital audio signal, wherein the test result is used to indicate whether there is an abnormality in the automobile audio bus circuit.
10. The system according to claim 9, characterized in that The test system further includes: a digital processor connected to the system on chip and a car audio bus circuit.
11. The system according to claim 10, characterized in that The test system further comprises: a sound playing component, wherein the sound playing component is connected to the digital processor; The sound playing component is used to obtain the second digital audio signal and play the sound according to the second digital audio signal.
12. The system according to claim 11, characterized in that The sound playing component comprises a power amplifier and a loudspeaker, wherein the power amplifier is connected to the digital processor, and the loudspeaker is connected to the power amplifier.
